~matttbe/ubuntu/quantal/lxpanel/lp1013171

« back to all changes in this revision

Viewing changes to .pc/libtool-fix.patch/aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-07-23 21:48:25 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100723214825-m19pcniwxqqmv1k4
Tags: 0.5.6-0ubuntu1
* New upstream release.
* debian/copyright:
 - Update copyright for xkb plugin.
* debian/patches:
 - sort_dirmenu.patch: disable, merged upstream.
 - kbled.patch: disable, merged upstream.
 - panel_draw_label_text.patch: disable, merged upstream.
 - libtool-fix.patch: disable, merged upstream.
 - g_locale_to_utf8.patch: disable, merged upstream.
 - 99-autotools.patch: refresh.
 - redefine-alarm-variable.patch: Use upstream fix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2
 
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
5
 
# This file is free software; the Free Software Foundation
6
 
# gives unlimited permission to copy and/or distribute it,
7
 
# with or without modifications, as long as this notice is preserved.
8
 
 
9
 
# This program is distributed in the hope that it will be useful,
10
 
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
 
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
 
# PARTICULAR PURPOSE.
13
 
 
14
 
m4_ifndef([AC_AUTOCONF_VERSION],
15
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17
 
[m4_warning([this file was generated for autoconf 2.65.
18
 
You have another version of autoconf.  It may work, but is not guaranteed to.
19
 
If you have problems, you may need to regenerate the build system entirely.
20
 
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
 
 
22
 
# gettext.m4 serial 60 (gettext-0.17)
23
 
dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
24
 
dnl This file is free software; the Free Software Foundation
25
 
dnl gives unlimited permission to copy and/or distribute it,
26
 
dnl with or without modifications, as long as this notice is preserved.
27
 
dnl
28
 
dnl This file can can be used in projects which are not available under
29
 
dnl the GNU General Public License or the GNU Library General Public
30
 
dnl License but which still want to provide support for the GNU gettext
31
 
dnl functionality.
32
 
dnl Please note that the actual code of the GNU gettext library is covered
33
 
dnl by the GNU Library General Public License, and the rest of the GNU
34
 
dnl gettext package package is covered by the GNU General Public License.
35
 
dnl They are *not* in the public domain.
36
 
 
37
 
dnl Authors:
38
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
39
 
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2006.
40
 
 
41
 
dnl Macro to add for using GNU gettext.
42
 
 
43
 
dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
44
 
dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
45
 
dnl    default (if it is not specified or empty) is 'no-libtool'.
46
 
dnl    INTLSYMBOL should be 'external' for packages with no intl directory,
47
 
dnl    and 'no-libtool' or 'use-libtool' for packages with an intl directory.
48
 
dnl    If INTLSYMBOL is 'use-libtool', then a libtool library
49
 
dnl    $(top_builddir)/intl/libintl.la will be created (shared and/or static,
50
 
dnl    depending on --{enable,disable}-{shared,static} and on the presence of
51
 
dnl    AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
52
 
dnl    $(top_builddir)/intl/libintl.a will be created.
53
 
dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
54
 
dnl    implementations (in libc or libintl) without the ngettext() function
55
 
dnl    will be ignored.  If NEEDSYMBOL is specified and is
56
 
dnl    'need-formatstring-macros', then GNU gettext implementations that don't
57
 
dnl    support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
58
 
dnl INTLDIR is used to find the intl libraries.  If empty,
59
 
dnl    the value `$(top_builddir)/intl/' is used.
60
 
dnl
61
 
dnl The result of the configuration is one of three cases:
62
 
dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
63
 
dnl    and used.
64
 
dnl    Catalog format: GNU --> install in $(datadir)
65
 
dnl    Catalog extension: .mo after installation, .gmo in source tree
66
 
dnl 2) GNU gettext has been found in the system's C library.
67
 
dnl    Catalog format: GNU --> install in $(datadir)
68
 
dnl    Catalog extension: .mo after installation, .gmo in source tree
69
 
dnl 3) No internationalization, always use English msgid.
70
 
dnl    Catalog format: none
71
 
dnl    Catalog extension: none
72
 
dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
73
 
dnl The use of .gmo is historical (it was needed to avoid overwriting the
74
 
dnl GNU format catalogs when building on a platform with an X/Open gettext),
75
 
dnl but we keep it in order not to force irrelevant filename changes on the
76
 
dnl maintainers.
77
 
dnl
78
 
AC_DEFUN([AM_GNU_GETTEXT],
79
 
[
80
 
  dnl Argument checking.
81
 
  ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
82
 
    [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
83
 
])])])])])
84
 
  ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
85
 
    [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
86
 
])])])])
87
 
  define([gt_included_intl],
88
 
    ifelse([$1], [external],
89
 
      ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
90
 
      [yes]))
91
 
  define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
92
 
  gt_NEEDS_INIT
93
 
  AM_GNU_GETTEXT_NEED([$2])
94
 
 
95
 
  AC_REQUIRE([AM_PO_SUBDIRS])dnl
96
 
  ifelse(gt_included_intl, yes, [
97
 
    AC_REQUIRE([AM_INTL_SUBDIR])dnl
98
 
  ])
99
 
 
100
 
  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
101
 
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
102
 
  AC_REQUIRE([AC_LIB_RPATH])
103
 
 
104
 
  dnl Sometimes libintl requires libiconv, so first search for libiconv.
105
 
  dnl Ideally we would do this search only after the
106
 
  dnl      if test "$USE_NLS" = "yes"; then
107
 
  dnl        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
108
 
  dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
109
 
  dnl the configure script would need to contain the same shell code
110
 
  dnl again, outside any 'if'. There are two solutions:
111
 
  dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
112
 
  dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
113
 
  dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
114
 
  dnl documented, we avoid it.
115
 
  ifelse(gt_included_intl, yes, , [
116
 
    AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
117
 
  ])
118
 
 
119
 
  dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
120
 
  gt_INTL_MACOSX
121
 
 
122
 
  dnl Set USE_NLS.
123
 
  AC_REQUIRE([AM_NLS])
124
 
 
125
 
  ifelse(gt_included_intl, yes, [
126
 
    BUILD_INCLUDED_LIBINTL=no
127
 
    USE_INCLUDED_LIBINTL=no
128
 
  ])
129
 
  LIBINTL=
130
 
  LTLIBINTL=
131
 
  POSUB=
132
 
 
133
 
  dnl Add a version number to the cache macros.
134
 
  case " $gt_needs " in
135
 
    *" need-formatstring-macros "*) gt_api_version=3 ;;
136
 
    *" need-ngettext "*) gt_api_version=2 ;;
137
 
    *) gt_api_version=1 ;;
138
 
  esac
139
 
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
140
 
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
141
 
 
142
 
  dnl If we use NLS figure out what method
143
 
  if test "$USE_NLS" = "yes"; then
144
 
    gt_use_preinstalled_gnugettext=no
145
 
    ifelse(gt_included_intl, yes, [
146
 
      AC_MSG_CHECKING([whether included gettext is requested])
147
 
      AC_ARG_WITH(included-gettext,
148
 
        [  --with-included-gettext use the GNU gettext library included here],
149
 
        nls_cv_force_use_gnu_gettext=$withval,
150
 
        nls_cv_force_use_gnu_gettext=no)
151
 
      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
152
 
 
153
 
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
154
 
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
155
 
    ])
156
 
        dnl User does not insist on using GNU NLS library.  Figure out what
157
 
        dnl to use.  If GNU gettext is available we use this.  Else we have
158
 
        dnl to fall back to GNU NLS library.
159
 
 
160
 
        if test $gt_api_version -ge 3; then
161
 
          gt_revision_test_code='
162
 
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
163
 
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
164
 
#endif
165
 
changequote(,)dnl
166
 
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
167
 
changequote([,])dnl
168
 
'
169
 
        else
170
 
          gt_revision_test_code=
171
 
        fi
172
 
        if test $gt_api_version -ge 2; then
173
 
          gt_expression_test_code=' + * ngettext ("", "", 0)'
174
 
        else
175
 
          gt_expression_test_code=
176
 
        fi
177
 
 
178
 
        AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
179
 
         [AC_TRY_LINK([#include <libintl.h>
180
 
$gt_revision_test_code
181
 
extern int _nl_msg_cat_cntr;
182
 
extern int *_nl_domain_bindings;],
183
 
            [bindtextdomain ("", "");
184
 
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings],
185
 
            [eval "$gt_func_gnugettext_libc=yes"],
186
 
            [eval "$gt_func_gnugettext_libc=no"])])
187
 
 
188
 
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
189
 
          dnl Sometimes libintl requires libiconv, so first search for libiconv.
190
 
          ifelse(gt_included_intl, yes, , [
191
 
            AM_ICONV_LINK
192
 
          ])
193
 
          dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
194
 
          dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
195
 
          dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
196
 
          dnl even if libiconv doesn't exist.
197
 
          AC_LIB_LINKFLAGS_BODY([intl])
198
 
          AC_CACHE_CHECK([for GNU gettext in libintl],
199
 
            [$gt_func_gnugettext_libintl],
200
 
           [gt_save_CPPFLAGS="$CPPFLAGS"
201
 
            CPPFLAGS="$CPPFLAGS $INCINTL"
202
 
            gt_save_LIBS="$LIBS"
203
 
            LIBS="$LIBS $LIBINTL"
204
 
            dnl Now see whether libintl exists and does not depend on libiconv.
205
 
            AC_TRY_LINK([#include <libintl.h>
206
 
$gt_revision_test_code
207
 
extern int _nl_msg_cat_cntr;
208
 
extern
209
 
#ifdef __cplusplus
210
 
"C"
211
 
#endif
212
 
const char *_nl_expand_alias (const char *);],
213
 
              [bindtextdomain ("", "");
214
 
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
215
 
              [eval "$gt_func_gnugettext_libintl=yes"],
216
 
              [eval "$gt_func_gnugettext_libintl=no"])
217
 
            dnl Now see whether libintl exists and depends on libiconv.
218
 
            if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
219
 
              LIBS="$LIBS $LIBICONV"
220
 
              AC_TRY_LINK([#include <libintl.h>
221
 
$gt_revision_test_code
222
 
extern int _nl_msg_cat_cntr;
223
 
extern
224
 
#ifdef __cplusplus
225
 
"C"
226
 
#endif
227
 
const char *_nl_expand_alias (const char *);],
228
 
                [bindtextdomain ("", "");
229
 
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
230
 
               [LIBINTL="$LIBINTL $LIBICONV"
231
 
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
232
 
                eval "$gt_func_gnugettext_libintl=yes"
233
 
               ])
234
 
            fi
235
 
            CPPFLAGS="$gt_save_CPPFLAGS"
236
 
            LIBS="$gt_save_LIBS"])
237
 
        fi
238
 
 
239
 
        dnl If an already present or preinstalled GNU gettext() is found,
240
 
        dnl use it.  But if this macro is used in GNU gettext, and GNU
241
 
        dnl gettext is already preinstalled in libintl, we update this
242
 
        dnl libintl.  (Cf. the install rule in intl/Makefile.in.)
243
 
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
244
 
           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
245
 
                && test "$PACKAGE" != gettext-runtime \
246
 
                && test "$PACKAGE" != gettext-tools; }; then
247
 
          gt_use_preinstalled_gnugettext=yes
248
 
        else
249
 
          dnl Reset the values set by searching for libintl.
250
 
          LIBINTL=
251
 
          LTLIBINTL=
252
 
          INCINTL=
253
 
        fi
254
 
 
255
 
    ifelse(gt_included_intl, yes, [
256
 
        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
257
 
          dnl GNU gettext is not found in the C library.
258
 
          dnl Fall back on included GNU gettext library.
259
 
          nls_cv_use_gnu_gettext=yes
260
 
        fi
261
 
      fi
262
 
 
263
 
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
264
 
        dnl Mark actions used to generate GNU NLS library.
265
 
        BUILD_INCLUDED_LIBINTL=yes
266
 
        USE_INCLUDED_LIBINTL=yes
267
 
        LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
268
 
        LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
269
 
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
270
 
      fi
271
 
 
272
 
      CATOBJEXT=
273
 
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
274
 
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
275
 
        dnl Mark actions to use GNU gettext tools.
276
 
        CATOBJEXT=.gmo
277
 
      fi
278
 
    ])
279
 
 
280
 
    if test -n "$INTL_MACOSX_LIBS"; then
281
 
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
282
 
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
283
 
        dnl Some extra flags are needed during linking.
284
 
        LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
285
 
        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
286
 
      fi
287
 
    fi
288
 
 
289
 
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
290
 
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
291
 
      AC_DEFINE(ENABLE_NLS, 1,
292
 
        [Define to 1 if translation of program messages to the user's native language
293
 
   is requested.])
294
 
    else
295
 
      USE_NLS=no
296
 
    fi
297
 
  fi
298
 
 
299
 
  AC_MSG_CHECKING([whether to use NLS])
300
 
  AC_MSG_RESULT([$USE_NLS])
301
 
  if test "$USE_NLS" = "yes"; then
302
 
    AC_MSG_CHECKING([where the gettext function comes from])
303
 
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
304
 
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
305
 
        gt_source="external libintl"
306
 
      else
307
 
        gt_source="libc"
308
 
      fi
309
 
    else
310
 
      gt_source="included intl directory"
311
 
    fi
312
 
    AC_MSG_RESULT([$gt_source])
313
 
  fi
314
 
 
315
 
  if test "$USE_NLS" = "yes"; then
316
 
 
317
 
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
318
 
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
319
 
        AC_MSG_CHECKING([how to link with libintl])
320
 
        AC_MSG_RESULT([$LIBINTL])
321
 
        AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
322
 
      fi
323
 
 
324
 
      dnl For backward compatibility. Some packages may be using this.
325
 
      AC_DEFINE(HAVE_GETTEXT, 1,
326
 
       [Define if the GNU gettext() function is already present or preinstalled.])
327
 
      AC_DEFINE(HAVE_DCGETTEXT, 1,
328
 
       [Define if the GNU dcgettext() function is already present or preinstalled.])
329
 
    fi
330
 
 
331
 
    dnl We need to process the po/ directory.
332
 
    POSUB=po
333
 
  fi
334
 
 
335
 
  ifelse(gt_included_intl, yes, [
336
 
    dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
337
 
    dnl to 'yes' because some of the testsuite requires it.
338
 
    if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
339
 
      BUILD_INCLUDED_LIBINTL=yes
340
 
    fi
341
 
 
342
 
    dnl Make all variables we use known to autoconf.
343
 
    AC_SUBST(BUILD_INCLUDED_LIBINTL)
344
 
    AC_SUBST(USE_INCLUDED_LIBINTL)
345
 
    AC_SUBST(CATOBJEXT)
346
 
 
347
 
    dnl For backward compatibility. Some configure.ins may be using this.
348
 
    nls_cv_header_intl=
349
 
    nls_cv_header_libgt=
350
 
 
351
 
    dnl For backward compatibility. Some Makefiles may be using this.
352
 
    DATADIRNAME=share
353
 
    AC_SUBST(DATADIRNAME)
354
 
 
355
 
    dnl For backward compatibility. Some Makefiles may be using this.
356
 
    INSTOBJEXT=.mo
357
 
    AC_SUBST(INSTOBJEXT)
358
 
 
359
 
    dnl For backward compatibility. Some Makefiles may be using this.
360
 
    GENCAT=gencat
361
 
    AC_SUBST(GENCAT)
362
 
 
363
 
    dnl For backward compatibility. Some Makefiles may be using this.
364
 
    INTLOBJS=
365
 
    if test "$USE_INCLUDED_LIBINTL" = yes; then
366
 
      INTLOBJS="\$(GETTOBJS)"
367
 
    fi
368
 
    AC_SUBST(INTLOBJS)
369
 
 
370
 
    dnl Enable libtool support if the surrounding package wishes it.
371
 
    INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
372
 
    AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
373
 
  ])
374
 
 
375
 
  dnl For backward compatibility. Some Makefiles may be using this.
376
 
  INTLLIBS="$LIBINTL"
377
 
  AC_SUBST(INTLLIBS)
378
 
 
379
 
  dnl Make all documented variables known to autoconf.
380
 
  AC_SUBST(LIBINTL)
381
 
  AC_SUBST(LTLIBINTL)
382
 
  AC_SUBST(POSUB)
383
 
])
384
 
 
385
 
 
386
 
dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
387
 
m4_define([gt_NEEDS_INIT],
388
 
[
389
 
  m4_divert_text([DEFAULTS], [gt_needs=])
390
 
  m4_define([gt_NEEDS_INIT], [])
391
 
])
392
 
 
393
 
 
394
 
dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
395
 
AC_DEFUN([AM_GNU_GETTEXT_NEED],
396
 
[
397
 
  m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
398
 
])
399
 
 
400
 
 
401
 
dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
402
 
AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
403
 
 
404
 
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
405
 
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
406
 
#
407
 
# This file is free software, distributed under the terms of the GNU
408
 
# General Public License.  As a special exception to the GNU General
409
 
# Public License, this file may be distributed as part of a program
410
 
# that contains a configuration script generated by Autoconf, under
411
 
# the same distribution terms as the rest of that program.
412
 
#
413
 
# This file can be copied and used freely without restrictions.  It can
414
 
# be used in projects which are not available under the GNU Public License
415
 
# but which still want to provide support for the GNU gettext functionality.
416
 
#
417
 
# Macro to add for using GNU gettext.
418
 
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
419
 
#
420
 
# Modified to never use included libintl. 
421
 
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
422
 
#
423
 
# Major rework to remove unused code
424
 
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
425
 
#
426
 
# Added better handling of ALL_LINGUAS from GNU gettext version 
427
 
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
428
 
#
429
 
# Modified to require ngettext
430
 
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
431
 
#
432
 
# We need this here as well, since someone might use autoconf-2.5x
433
 
# to configure GLib then an older version to configure a package
434
 
# using AM_GLIB_GNU_GETTEXT
435
 
AC_PREREQ(2.53)
436
 
 
437
 
dnl
438
 
dnl We go to great lengths to make sure that aclocal won't 
439
 
dnl try to pull in the installed version of these macros
440
 
dnl when running aclocal in the glib directory.
441
 
dnl
442
 
m4_copy([AC_DEFUN],[glib_DEFUN])
443
 
m4_copy([AC_REQUIRE],[glib_REQUIRE])
444
 
dnl
445
 
dnl At the end, if we're not within glib, we'll define the public
446
 
dnl definitions in terms of our private definitions.
447
 
dnl
448
 
 
449
 
# GLIB_LC_MESSAGES
450
 
#--------------------
451
 
glib_DEFUN([GLIB_LC_MESSAGES],
452
 
  [AC_CHECK_HEADERS([locale.h])
453
 
    if test $ac_cv_header_locale_h = yes; then
454
 
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
455
 
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
456
 
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
457
 
    if test $am_cv_val_LC_MESSAGES = yes; then
458
 
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
459
 
        [Define if your <locale.h> file defines LC_MESSAGES.])
460
 
    fi
461
 
  fi])
462
 
 
463
 
# GLIB_PATH_PROG_WITH_TEST
464
 
#----------------------------
465
 
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
466
 
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
467
 
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
468
 
[# Extract the first word of "$2", so it can be a program name with args.
469
 
set dummy $2; ac_word=[$]2
470
 
AC_MSG_CHECKING([for $ac_word])
471
 
AC_CACHE_VAL(ac_cv_path_$1,
472
 
[case "[$]$1" in
473
 
  /*)
474
 
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
475
 
  ;;
476
 
  *)
477
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
478
 
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
479
 
    test -z "$ac_dir" && ac_dir=.
480
 
    if test -f $ac_dir/$ac_word; then
481
 
      if [$3]; then
482
 
        ac_cv_path_$1="$ac_dir/$ac_word"
483
 
        break
484
 
      fi
485
 
    fi
486
 
  done
487
 
  IFS="$ac_save_ifs"
488
 
dnl If no 4th arg is given, leave the cache variable unset,
489
 
dnl so AC_PATH_PROGS will keep looking.
490
 
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
491
 
])dnl
492
 
  ;;
493
 
esac])dnl
494
 
$1="$ac_cv_path_$1"
495
 
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
496
 
  AC_MSG_RESULT([$]$1)
497
 
else
498
 
  AC_MSG_RESULT(no)
499
 
fi
500
 
AC_SUBST($1)dnl
501
 
])
502
 
 
503
 
# GLIB_WITH_NLS
504
 
#-----------------
505
 
glib_DEFUN([GLIB_WITH_NLS],
506
 
  dnl NLS is obligatory
507
 
  [USE_NLS=yes
508
 
    AC_SUBST(USE_NLS)
509
 
 
510
 
    gt_cv_have_gettext=no
511
 
 
512
 
    CATOBJEXT=NONE
513
 
    XGETTEXT=:
514
 
    INTLLIBS=
515
 
 
516
 
    AC_CHECK_HEADER(libintl.h,
517
 
     [gt_cv_func_dgettext_libintl="no"
518
 
      libintl_extra_libs=""
519
 
 
520
 
      #
521
 
      # First check in libc
522
 
      #
523
 
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
524
 
        [AC_TRY_LINK([
525
 
#include <libintl.h>
526
 
],
527
 
         [return !ngettext ("","", 1)],
528
 
          gt_cv_func_ngettext_libc=yes,
529
 
          gt_cv_func_ngettext_libc=no)
530
 
        ])
531
 
  
532
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
533
 
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
534
 
                [AC_TRY_LINK([
535
 
#include <libintl.h>
536
 
],
537
 
                  [return !dgettext ("","")],
538
 
                  gt_cv_func_dgettext_libc=yes,
539
 
                  gt_cv_func_dgettext_libc=no)
540
 
                ])
541
 
      fi
542
 
  
543
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
544
 
        AC_CHECK_FUNCS(bind_textdomain_codeset)
545
 
      fi
546
 
 
547
 
      #
548
 
      # If we don't have everything we want, check in libintl
549
 
      #
550
 
      if test "$gt_cv_func_dgettext_libc" != "yes" \
551
 
         || test "$gt_cv_func_ngettext_libc" != "yes" \
552
 
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
553
 
        
554
 
        AC_CHECK_LIB(intl, bindtextdomain,
555
 
            [AC_CHECK_LIB(intl, ngettext,
556
 
                    [AC_CHECK_LIB(intl, dgettext,
557
 
                                  gt_cv_func_dgettext_libintl=yes)])])
558
 
 
559
 
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
560
 
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
561
 
          AC_MSG_RESULT([])
562
 
          AC_CHECK_LIB(intl, ngettext,
563
 
                [AC_CHECK_LIB(intl, dcgettext,
564
 
                       [gt_cv_func_dgettext_libintl=yes
565
 
                        libintl_extra_libs=-liconv],
566
 
                        :,-liconv)],
567
 
                :,-liconv)
568
 
        fi
569
 
 
570
 
        #
571
 
        # If we found libintl, then check in it for bind_textdomain_codeset();
572
 
        # we'll prefer libc if neither have bind_textdomain_codeset(),
573
 
        # and both have dgettext and ngettext
574
 
        #
575
 
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
576
 
          glib_save_LIBS="$LIBS"
577
 
          LIBS="$LIBS -lintl $libintl_extra_libs"
578
 
          unset ac_cv_func_bind_textdomain_codeset
579
 
          AC_CHECK_FUNCS(bind_textdomain_codeset)
580
 
          LIBS="$glib_save_LIBS"
581
 
 
582
 
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
583
 
            gt_cv_func_dgettext_libc=no
584
 
          else
585
 
            if test "$gt_cv_func_dgettext_libc" = "yes" \
586
 
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
587
 
              gt_cv_func_dgettext_libintl=no
588
 
            fi
589
 
          fi
590
 
        fi
591
 
      fi
592
 
 
593
 
      if test "$gt_cv_func_dgettext_libc" = "yes" \
594
 
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
595
 
        gt_cv_have_gettext=yes
596
 
      fi
597
 
  
598
 
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
599
 
        INTLLIBS="-lintl $libintl_extra_libs"
600
 
      fi
601
 
  
602
 
      if test "$gt_cv_have_gettext" = "yes"; then
603
 
        AC_DEFINE(HAVE_GETTEXT,1,
604
 
          [Define if the GNU gettext() function is already present or preinstalled.])
605
 
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
606
 
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
607
 
        if test "$MSGFMT" != "no"; then
608
 
          glib_save_LIBS="$LIBS"
609
 
          LIBS="$LIBS $INTLLIBS"
610
 
          AC_CHECK_FUNCS(dcgettext)
611
 
          MSGFMT_OPTS=
612
 
          AC_MSG_CHECKING([if msgfmt accepts -c])
613
 
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
614
 
msgid ""
615
 
msgstr ""
616
 
"Content-Type: text/plain; charset=UTF-8\n"
617
 
"Project-Id-Version: test 1.0\n"
618
 
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
619
 
"Last-Translator: test <foo@bar.xx>\n"
620
 
"Language-Team: C <LL@li.org>\n"
621
 
"MIME-Version: 1.0\n"
622
 
"Content-Transfer-Encoding: 8bit\n"
623
 
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
624
 
          AC_SUBST(MSGFMT_OPTS)
625
 
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
626
 
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
627
 
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
628
 
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
629
 
                         return _nl_msg_cat_cntr],
630
 
            [CATOBJEXT=.gmo 
631
 
             DATADIRNAME=share],
632
 
            [case $host in
633
 
            *-*-solaris*)
634
 
            dnl On Solaris, if bind_textdomain_codeset is in libc,
635
 
            dnl GNU format message catalog is always supported,
636
 
            dnl since both are added to the libc all together.
637
 
            dnl Hence, we'd like to go with DATADIRNAME=share and
638
 
            dnl and CATOBJEXT=.gmo in this case.
639
 
            AC_CHECK_FUNC(bind_textdomain_codeset,
640
 
              [CATOBJEXT=.gmo 
641
 
               DATADIRNAME=share],
642
 
              [CATOBJEXT=.mo
643
 
               DATADIRNAME=lib])
644
 
            ;;
645
 
            *)
646
 
            CATOBJEXT=.mo
647
 
            DATADIRNAME=lib
648
 
            ;;
649
 
            esac])
650
 
          LIBS="$glib_save_LIBS"
651
 
          INSTOBJEXT=.mo
652
 
        else
653
 
          gt_cv_have_gettext=no
654
 
        fi
655
 
      fi
656
 
    ])
657
 
 
658
 
    if test "$gt_cv_have_gettext" = "yes" ; then
659
 
      AC_DEFINE(ENABLE_NLS, 1,
660
 
        [always defined to indicate that i18n is enabled])
661
 
    fi
662
 
 
663
 
    dnl Test whether we really found GNU xgettext.
664
 
    if test "$XGETTEXT" != ":"; then
665
 
      dnl If it is not GNU xgettext we define it as : so that the
666
 
      dnl Makefiles still can work.
667
 
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
668
 
        : ;
669
 
      else
670
 
        AC_MSG_RESULT(
671
 
          [found xgettext program is not GNU xgettext; ignore it])
672
 
        XGETTEXT=":"
673
 
      fi
674
 
    fi
675
 
 
676
 
    # We need to process the po/ directory.
677
 
    POSUB=po
678
 
 
679
 
    AC_OUTPUT_COMMANDS(
680
 
      [case "$CONFIG_FILES" in *po/Makefile.in*)
681
 
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
682
 
      esac])
683
 
 
684
 
    dnl These rules are solely for the distribution goal.  While doing this
685
 
    dnl we only have to keep exactly one list of the available catalogs
686
 
    dnl in configure.in.
687
 
    for lang in $ALL_LINGUAS; do
688
 
      GMOFILES="$GMOFILES $lang.gmo"
689
 
      POFILES="$POFILES $lang.po"
690
 
    done
691
 
 
692
 
    dnl Make all variables we use known to autoconf.
693
 
    AC_SUBST(CATALOGS)
694
 
    AC_SUBST(CATOBJEXT)
695
 
    AC_SUBST(DATADIRNAME)
696
 
    AC_SUBST(GMOFILES)
697
 
    AC_SUBST(INSTOBJEXT)
698
 
    AC_SUBST(INTLLIBS)
699
 
    AC_SUBST(PO_IN_DATADIR_TRUE)
700
 
    AC_SUBST(PO_IN_DATADIR_FALSE)
701
 
    AC_SUBST(POFILES)
702
 
    AC_SUBST(POSUB)
703
 
  ])
704
 
 
705
 
# AM_GLIB_GNU_GETTEXT
706
 
# -------------------
707
 
# Do checks necessary for use of gettext. If a suitable implementation 
708
 
# of gettext is found in either in libintl or in the C library,
709
 
# it will set INTLLIBS to the libraries needed for use of gettext
710
 
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
711
 
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
712
 
# on various variables needed by the Makefile.in.in installed by 
713
 
# glib-gettextize.
714
 
dnl
715
 
glib_DEFUN([GLIB_GNU_GETTEXT],
716
 
  [AC_REQUIRE([AC_PROG_CC])dnl
717
 
   AC_REQUIRE([AC_HEADER_STDC])dnl
718
 
   
719
 
   GLIB_LC_MESSAGES
720
 
   GLIB_WITH_NLS
721
 
 
722
 
   if test "$gt_cv_have_gettext" = "yes"; then
723
 
     if test "x$ALL_LINGUAS" = "x"; then
724
 
       LINGUAS=
725
 
     else
726
 
       AC_MSG_CHECKING(for catalogs to be installed)
727
 
       NEW_LINGUAS=
728
 
       for presentlang in $ALL_LINGUAS; do
729
 
         useit=no
730
 
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
731
 
           desiredlanguages="$LINGUAS"
732
 
         else
733
 
           desiredlanguages="$ALL_LINGUAS"
734
 
         fi
735
 
         for desiredlang in $desiredlanguages; do
736
 
           # Use the presentlang catalog if desiredlang is
737
 
           #   a. equal to presentlang, or
738
 
           #   b. a variant of presentlang (because in this case,
739
 
           #      presentlang can be used as a fallback for messages
740
 
           #      which are not translated in the desiredlang catalog).
741
 
           case "$desiredlang" in
742
 
             "$presentlang"*) useit=yes;;
743
 
           esac
744
 
         done
745
 
         if test $useit = yes; then
746
 
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
747
 
         fi
748
 
       done
749
 
       LINGUAS=$NEW_LINGUAS
750
 
       AC_MSG_RESULT($LINGUAS)
751
 
     fi
752
 
 
753
 
     dnl Construct list of names of catalog files to be constructed.
754
 
     if test -n "$LINGUAS"; then
755
 
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
756
 
     fi
757
 
   fi
758
 
 
759
 
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
760
 
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
761
 
   dnl Try to locate is.
762
 
   MKINSTALLDIRS=
763
 
   if test -n "$ac_aux_dir"; then
764
 
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
765
 
   fi
766
 
   if test -z "$MKINSTALLDIRS"; then
767
 
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
768
 
   fi
769
 
   AC_SUBST(MKINSTALLDIRS)
770
 
 
771
 
   dnl Generate list of files to be processed by xgettext which will
772
 
   dnl be included in po/Makefile.
773
 
   test -d po || mkdir po
774
 
   if test "x$srcdir" != "x."; then
775
 
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
776
 
       posrcprefix="$srcdir/"
777
 
     else
778
 
       posrcprefix="../$srcdir/"
779
 
     fi
780
 
   else
781
 
     posrcprefix="../"
782
 
   fi
783
 
   rm -f po/POTFILES
784
 
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
785
 
        < $srcdir/po/POTFILES.in > po/POTFILES
786
 
  ])
787
 
 
788
 
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
789
 
# -------------------------------
790
 
# Define VARIABLE to the location where catalog files will
791
 
# be installed by po/Makefile.
792
 
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
793
 
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
794
 
glib_save_prefix="$prefix"
795
 
glib_save_exec_prefix="$exec_prefix"
796
 
glib_save_datarootdir="$datarootdir"
797
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
798
 
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
799
 
datarootdir=`eval echo "${datarootdir}"`
800
 
if test "x$CATOBJEXT" = "x.mo" ; then
801
 
  localedir=`eval echo "${libdir}/locale"`
802
 
else
803
 
  localedir=`eval echo "${datadir}/locale"`
804
 
fi
805
 
prefix="$glib_save_prefix"
806
 
exec_prefix="$glib_save_exec_prefix"
807
 
datarootdir="$glib_save_datarootdir"
808
 
AC_DEFINE_UNQUOTED($1, "$localedir",
809
 
  [Define the location where the catalogs will be installed])
810
 
])
811
 
 
812
 
dnl
813
 
dnl Now the definitions that aclocal will find
814
 
dnl
815
 
ifdef(glib_configure_in,[],[
816
 
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
817
 
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
818
 
])dnl
819
 
 
820
 
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
821
 
822
 
# Create a temporary file with TEST-FILE as its contents and pass the
823
 
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
824
 
# 0 and perform ACTION-IF-FAIL for any other exit status.
825
 
AC_DEFUN([GLIB_RUN_PROG],
826
 
[cat >conftest.foo <<_ACEOF
827
 
$2
828
 
_ACEOF
829
 
if AC_RUN_LOG([$1 conftest.foo]); then
830
 
  m4_ifval([$3], [$3], [:])
831
 
m4_ifvaln([$4], [else $4])dnl
832
 
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
833
 
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
834
 
fi])
835
 
 
836
 
 
837
 
 
838
 
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
839
 
# serial 40 IT_PROG_INTLTOOL
840
 
AC_DEFUN([IT_PROG_INTLTOOL], [
841
 
AC_PREREQ([2.50])dnl
842
 
AC_REQUIRE([AM_NLS])dnl
843
 
 
844
 
case "$am__api_version" in
845
 
    1.[01234])
846
 
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
847
 
    ;;
848
 
    *)
849
 
    ;;
850
 
esac
851
 
 
852
 
if test -n "$1"; then
853
 
    AC_MSG_CHECKING([for intltool >= $1])
854
 
 
855
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
856
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
857
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
858
 
    ]
859
 
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
860
 
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
861
 
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
862
 
fi
863
 
 
864
 
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
865
 
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
866
 
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
867
 
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
868
 
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
869
 
fi
870
 
 
871
 
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
872
 
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
873
 
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
874
 
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
875
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
876
 
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
877
 
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
878
 
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
879
 
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
880
 
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
881
 
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
882
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
883
 
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
884
 
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
885
 
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
886
 
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
887
 
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
888
 
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
889
 
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
890
 
 
891
 
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
892
 
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
893
 
_IT_SUBST(INTLTOOL_KEYS_RULE)
894
 
_IT_SUBST(INTLTOOL_PROP_RULE)
895
 
_IT_SUBST(INTLTOOL_OAF_RULE)
896
 
_IT_SUBST(INTLTOOL_PONG_RULE)
897
 
_IT_SUBST(INTLTOOL_SERVER_RULE)
898
 
_IT_SUBST(INTLTOOL_SHEET_RULE)
899
 
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
900
 
_IT_SUBST(INTLTOOL_UI_RULE)
901
 
_IT_SUBST(INTLTOOL_XAM_RULE)
902
 
_IT_SUBST(INTLTOOL_KBD_RULE)
903
 
_IT_SUBST(INTLTOOL_XML_RULE)
904
 
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
905
 
_IT_SUBST(INTLTOOL_CAVES_RULE)
906
 
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
907
 
_IT_SUBST(INTLTOOL_THEME_RULE)
908
 
_IT_SUBST(INTLTOOL_SERVICE_RULE)
909
 
_IT_SUBST(INTLTOOL_POLICY_RULE)
910
 
 
911
 
# Check the gettext tools to make sure they are GNU
912
 
AC_PATH_PROG(XGETTEXT, xgettext)
913
 
AC_PATH_PROG(MSGMERGE, msgmerge)
914
 
AC_PATH_PROG(MSGFMT, msgfmt)
915
 
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
916
 
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
917
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
918
 
fi
919
 
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
920
 
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
921
 
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
922
 
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
923
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
924
 
fi
925
 
 
926
 
AC_PATH_PROG(INTLTOOL_PERL, perl)
927
 
if test -z "$INTLTOOL_PERL"; then
928
 
   AC_MSG_ERROR([perl not found])
929
 
fi
930
 
AC_MSG_CHECKING([for perl >= 5.8.1])
931
 
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
932
 
if test $? -ne 0; then
933
 
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
934
 
else
935
 
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
936
 
   AC_MSG_RESULT([$IT_PERL_VERSION])
937
 
fi
938
 
if test "x$2" != "xno-xml"; then
939
 
   AC_MSG_CHECKING([for XML::Parser])
940
 
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
941
 
       AC_MSG_RESULT([ok])
942
 
   else
943
 
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
944
 
   fi
945
 
fi
946
 
 
947
 
# Substitute ALL_LINGUAS so we can use it in po/Makefile
948
 
AC_SUBST(ALL_LINGUAS)
949
 
 
950
 
# Set DATADIRNAME correctly if it is not set yet
951
 
# (copied from glib-gettext.m4)
952
 
if test -z "$DATADIRNAME"; then
953
 
  AC_LINK_IFELSE(
954
 
    [AC_LANG_PROGRAM([[]],
955
 
                     [[extern int _nl_msg_cat_cntr;
956
 
                       return _nl_msg_cat_cntr]])],
957
 
    [DATADIRNAME=share],
958
 
    [case $host in
959
 
    *-*-solaris*)
960
 
    dnl On Solaris, if bind_textdomain_codeset is in libc,
961
 
    dnl GNU format message catalog is always supported,
962
 
    dnl since both are added to the libc all together.
963
 
    dnl Hence, we'd like to go with DATADIRNAME=share
964
 
    dnl in this case.
965
 
    AC_CHECK_FUNC(bind_textdomain_codeset,
966
 
      [DATADIRNAME=share], [DATADIRNAME=lib])
967
 
    ;;
968
 
    *)
969
 
    [DATADIRNAME=lib]
970
 
    ;;
971
 
    esac])
972
 
fi
973
 
AC_SUBST(DATADIRNAME)
974
 
 
975
 
IT_PO_SUBDIR([po])
976
 
 
977
 
])
978
 
 
979
 
 
980
 
# IT_PO_SUBDIR(DIRNAME)
981
 
# ---------------------
982
 
# All po subdirs have to be declared with this macro; the subdir "po" is
983
 
# declared by IT_PROG_INTLTOOL.
984
 
#
985
 
AC_DEFUN([IT_PO_SUBDIR],
986
 
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
987
 
dnl
988
 
dnl The following CONFIG_COMMANDS should be exetuted at the very end
989
 
dnl of config.status.
990
 
AC_CONFIG_COMMANDS_PRE([
991
 
  AC_CONFIG_COMMANDS([$1/stamp-it], [
992
 
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
993
 
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
994
 
    fi
995
 
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
996
 
    >"$1/stamp-it.tmp"
997
 
    [sed '/^#/d
998
 
         s/^[[].*] *//
999
 
         /^[    ]*$/d
1000
 
        '"s|^|  $ac_top_srcdir/|" \
1001
 
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
1002
 
    ]
1003
 
    [sed '/^POTFILES =/,/[^\\]$/ {
1004
 
                /^POTFILES =/!d
1005
 
                r $1/POTFILES
1006
 
          }
1007
 
         ' "$1/Makefile.in" >"$1/Makefile"]
1008
 
    rm -f "$1/Makefile.tmp"
1009
 
    mv "$1/stamp-it.tmp" "$1/stamp-it"
1010
 
  ])
1011
 
])dnl
1012
 
])
1013
 
 
1014
 
# _IT_SUBST(VARIABLE)
1015
 
# -------------------
1016
 
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
1017
 
#
1018
 
AC_DEFUN([_IT_SUBST],
1019
 
[
1020
 
AC_SUBST([$1])
1021
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
1022
 
]
1023
 
)
1024
 
 
1025
 
# deprecated macros
1026
 
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
1027
 
# A hint is needed for aclocal from Automake <= 1.9.4:
1028
 
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
1029
 
 
1030
 
 
1031
 
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1032
 
#
1033
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1034
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
1035
 
#   Written by Gordon Matzigkeit, 1996
1036
 
#
1037
 
# This file is free software; the Free Software Foundation gives
1038
 
# unlimited permission to copy and/or distribute it, with or without
1039
 
# modifications, as long as this notice is preserved.
1040
 
 
1041
 
m4_define([_LT_COPYING], [dnl
1042
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1043
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
1044
 
#   Written by Gordon Matzigkeit, 1996
1045
 
#
1046
 
#   This file is part of GNU Libtool.
1047
 
#
1048
 
# GNU Libtool is free software; you can redistribute it and/or
1049
 
# modify it under the terms of the GNU General Public License as
1050
 
# published by the Free Software Foundation; either version 2 of
1051
 
# the License, or (at your option) any later version.
1052
 
#
1053
 
# As a special exception to the GNU General Public License,
1054
 
# if you distribute this file as part of a program or library that
1055
 
# is built using GNU Libtool, you may include this file under the
1056
 
# same distribution terms that you use for the rest of that program.
1057
 
#
1058
 
# GNU Libtool is distributed in the hope that it will be useful,
1059
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1060
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1061
 
# GNU General Public License for more details.
1062
 
#
1063
 
# You should have received a copy of the GNU General Public License
1064
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
1065
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
1066
 
# obtained by writing to the Free Software Foundation, Inc.,
1067
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1068
 
])
1069
 
 
1070
 
# serial 56 LT_INIT
1071
 
 
1072
 
 
1073
 
# LT_PREREQ(VERSION)
1074
 
# ------------------
1075
 
# Complain and exit if this libtool version is less that VERSION.
1076
 
m4_defun([LT_PREREQ],
1077
 
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
1078
 
       [m4_default([$3],
1079
 
                   [m4_fatal([Libtool version $1 or higher is required],
1080
 
                             63)])],
1081
 
       [$2])])
1082
 
 
1083
 
 
1084
 
# _LT_CHECK_BUILDDIR
1085
 
# ------------------
1086
 
# Complain if the absolute build directory name contains unusual characters
1087
 
m4_defun([_LT_CHECK_BUILDDIR],
1088
 
[case `pwd` in
1089
 
  *\ * | *\     *)
1090
 
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
1091
 
esac
1092
 
])
1093
 
 
1094
 
 
1095
 
# LT_INIT([OPTIONS])
1096
 
# ------------------
1097
 
AC_DEFUN([LT_INIT],
1098
 
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1099
 
AC_BEFORE([$0], [LT_LANG])dnl
1100
 
AC_BEFORE([$0], [LT_OUTPUT])dnl
1101
 
AC_BEFORE([$0], [LTDL_INIT])dnl
1102
 
m4_require([_LT_CHECK_BUILDDIR])dnl
1103
 
 
1104
 
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
1105
 
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
1106
 
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
1107
 
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
1108
 
dnl unless we require an AC_DEFUNed macro:
1109
 
AC_REQUIRE([LTOPTIONS_VERSION])dnl
1110
 
AC_REQUIRE([LTSUGAR_VERSION])dnl
1111
 
AC_REQUIRE([LTVERSION_VERSION])dnl
1112
 
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1113
 
m4_require([_LT_PROG_LTMAIN])dnl
1114
 
 
1115
 
dnl Parse OPTIONS
1116
 
_LT_SET_OPTIONS([$0], [$1])
1117
 
 
1118
 
# This can be used to rebuild libtool when needed
1119
 
LIBTOOL_DEPS="$ltmain"
1120
 
 
1121
 
# Always use our own libtool.
1122
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1123
 
AC_SUBST(LIBTOOL)dnl
1124
 
 
1125
 
_LT_SETUP
1126
 
 
1127
 
# Only expand once:
1128
 
m4_define([LT_INIT])
1129
 
])# LT_INIT
1130
 
 
1131
 
# Old names:
1132
 
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
1133
 
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
1134
 
dnl aclocal-1.4 backwards compatibility:
1135
 
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
1136
 
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
1137
 
 
1138
 
 
1139
 
# _LT_CC_BASENAME(CC)
1140
 
# -------------------
1141
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
1142
 
m4_defun([_LT_CC_BASENAME],
1143
 
[for cc_temp in $1""; do
1144
 
  case $cc_temp in
1145
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1146
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1147
 
    \-*) ;;
1148
 
    *) break;;
1149
 
  esac
1150
 
done
1151
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1152
 
])
1153
 
 
1154
 
 
1155
 
# _LT_FILEUTILS_DEFAULTS
1156
 
# ----------------------
1157
 
# It is okay to use these file commands and assume they have been set
1158
 
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1159
 
m4_defun([_LT_FILEUTILS_DEFAULTS],
1160
 
[: ${CP="cp -f"}
1161
 
: ${MV="mv -f"}
1162
 
: ${RM="rm -f"}
1163
 
])# _LT_FILEUTILS_DEFAULTS
1164
 
 
1165
 
 
1166
 
# _LT_SETUP
1167
 
# ---------
1168
 
m4_defun([_LT_SETUP],
1169
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1170
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1171
 
_LT_DECL([], [host_alias], [0], [The host system])dnl
1172
 
_LT_DECL([], [host], [0])dnl
1173
 
_LT_DECL([], [host_os], [0])dnl
1174
 
dnl
1175
 
_LT_DECL([], [build_alias], [0], [The build system])dnl
1176
 
_LT_DECL([], [build], [0])dnl
1177
 
_LT_DECL([], [build_os], [0])dnl
1178
 
dnl
1179
 
AC_REQUIRE([AC_PROG_CC])dnl
1180
 
AC_REQUIRE([LT_PATH_LD])dnl
1181
 
AC_REQUIRE([LT_PATH_NM])dnl
1182
 
dnl
1183
 
AC_REQUIRE([AC_PROG_LN_S])dnl
1184
 
test -z "$LN_S" && LN_S="ln -s"
1185
 
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
1186
 
dnl
1187
 
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
1188
 
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
1189
 
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
1190
 
dnl
1191
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1192
 
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1193
 
m4_require([_LT_CMD_RELOAD])dnl
1194
 
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
1195
 
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1196
 
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
1197
 
 
1198
 
_LT_CONFIG_LIBTOOL_INIT([
1199
 
# See if we are running on zsh, and set the options which allow our
1200
 
# commands through without removal of \ escapes INIT.
1201
 
if test -n "\${ZSH_VERSION+set}" ; then
1202
 
   setopt NO_GLOB_SUBST
1203
 
fi
1204
 
])
1205
 
if test -n "${ZSH_VERSION+set}" ; then
1206
 
   setopt NO_GLOB_SUBST
1207
 
fi
1208
 
 
1209
 
_LT_CHECK_OBJDIR
1210
 
 
1211
 
m4_require([_LT_TAG_COMPILER])dnl
1212
 
_LT_PROG_ECHO_BACKSLASH
1213
 
 
1214
 
case $host_os in
1215
 
aix3*)
1216
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
1217
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
1218
 
  # vanish in a puff of smoke.
1219
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
1220
 
    COLLECT_NAMES=
1221
 
    export COLLECT_NAMES
1222
 
  fi
1223
 
  ;;
1224
 
esac
1225
 
 
1226
 
# Sed substitution that helps us do robust quoting.  It backslashifies
1227
 
# metacharacters that are still active within double-quoted strings.
1228
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1229
 
 
1230
 
# Same as above, but do not quote variable references.
1231
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1232
 
 
1233
 
# Sed substitution to delay expansion of an escaped shell variable in a
1234
 
# double_quote_subst'ed string.
1235
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1236
 
 
1237
 
# Sed substitution to delay expansion of an escaped single quote.
1238
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1239
 
 
1240
 
# Sed substitution to avoid accidental globbing in evaled expressions
1241
 
no_glob_subst='s/\*/\\\*/g'
1242
 
 
1243
 
# Global variables:
1244
 
ofile=libtool
1245
 
can_build_shared=yes
1246
 
 
1247
 
# All known linkers require a `.a' archive for static linking (except MSVC,
1248
 
# which needs '.lib').
1249
 
libext=a
1250
 
 
1251
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
1252
 
 
1253
 
old_CC="$CC"
1254
 
old_CFLAGS="$CFLAGS"
1255
 
 
1256
 
# Set sane defaults for various variables
1257
 
test -z "$CC" && CC=cc
1258
 
test -z "$LTCC" && LTCC=$CC
1259
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1260
 
test -z "$LD" && LD=ld
1261
 
test -z "$ac_objext" && ac_objext=o
1262
 
 
1263
 
_LT_CC_BASENAME([$compiler])
1264
 
 
1265
 
# Only perform the check for file, if the check method requires it
1266
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1267
 
case $deplibs_check_method in
1268
 
file_magic*)
1269
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1270
 
    _LT_PATH_MAGIC
1271
 
  fi
1272
 
  ;;
1273
 
esac
1274
 
 
1275
 
# Use C for the default configuration in the libtool script
1276
 
LT_SUPPORTED_TAG([CC])
1277
 
_LT_LANG_C_CONFIG
1278
 
_LT_LANG_DEFAULT_CONFIG
1279
 
_LT_CONFIG_COMMANDS
1280
 
])# _LT_SETUP
1281
 
 
1282
 
 
1283
 
# _LT_PROG_LTMAIN
1284
 
# ---------------
1285
 
# Note that this code is called both from `configure', and `config.status'
1286
 
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
1287
 
# `config.status' has no value for ac_aux_dir unless we are using Automake,
1288
 
# so we pass a copy along to make sure it has a sensible value anyway.
1289
 
m4_defun([_LT_PROG_LTMAIN],
1290
 
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1291
 
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1292
 
ltmain="$ac_aux_dir/ltmain.sh"
1293
 
])# _LT_PROG_LTMAIN
1294
 
 
1295
 
 
1296
 
 
1297
 
# So that we can recreate a full libtool script including additional
1298
 
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1299
 
# in macros and then make a single call at the end using the `libtool'
1300
 
# label.
1301
 
 
1302
 
 
1303
 
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1304
 
# ----------------------------------------
1305
 
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1306
 
m4_define([_LT_CONFIG_LIBTOOL_INIT],
1307
 
[m4_ifval([$1],
1308
 
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1309
 
                     [$1
1310
 
])])])
1311
 
 
1312
 
# Initialize.
1313
 
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1314
 
 
1315
 
 
1316
 
# _LT_CONFIG_LIBTOOL([COMMANDS])
1317
 
# ------------------------------
1318
 
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1319
 
m4_define([_LT_CONFIG_LIBTOOL],
1320
 
[m4_ifval([$1],
1321
 
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1322
 
                     [$1
1323
 
])])])
1324
 
 
1325
 
# Initialize.
1326
 
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1327
 
 
1328
 
 
1329
 
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1330
 
# -----------------------------------------------------
1331
 
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1332
 
[_LT_CONFIG_LIBTOOL([$1])
1333
 
_LT_CONFIG_LIBTOOL_INIT([$2])
1334
 
])
1335
 
 
1336
 
 
1337
 
# _LT_FORMAT_COMMENT([COMMENT])
1338
 
# -----------------------------
1339
 
# Add leading comment marks to the start of each line, and a trailing
1340
 
# full-stop to the whole comment if one is not present already.
1341
 
m4_define([_LT_FORMAT_COMMENT],
1342
 
[m4_ifval([$1], [
1343
 
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1344
 
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1345
 
)])
1346
 
 
1347
 
 
1348
 
 
1349
 
 
1350
 
 
1351
 
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1352
 
# -------------------------------------------------------------------
1353
 
# CONFIGNAME is the name given to the value in the libtool script.
1354
 
# VARNAME is the (base) name used in the configure script.
1355
 
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1356
 
# VARNAME.  Any other value will be used directly.
1357
 
m4_define([_LT_DECL],
1358
 
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1359
 
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1360
 
        [m4_ifval([$1], [$1], [$2])])
1361
 
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1362
 
    m4_ifval([$4],
1363
 
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1364
 
    lt_dict_add_subkey([lt_decl_dict], [$2],
1365
 
        [tagged?], [m4_ifval([$5], [yes], [no])])])
1366
 
])
1367
 
 
1368
 
 
1369
 
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1370
 
# --------------------------------------------------------
1371
 
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1372
 
 
1373
 
 
1374
 
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1375
 
# ------------------------------------------------
1376
 
m4_define([lt_decl_tag_varnames],
1377
 
[_lt_decl_filter([tagged?], [yes], $@)])
1378
 
 
1379
 
 
1380
 
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1381
 
# ---------------------------------------------------------
1382
 
m4_define([_lt_decl_filter],
1383
 
[m4_case([$#],
1384
 
  [0], [m4_fatal([$0: too few arguments: $#])],
1385
 
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
1386
 
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1387
 
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1388
 
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
1389
 
])
1390
 
 
1391
 
 
1392
 
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1393
 
# --------------------------------------------------
1394
 
m4_define([lt_decl_quote_varnames],
1395
 
[_lt_decl_filter([value], [1], $@)])
1396
 
 
1397
 
 
1398
 
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1399
 
# ---------------------------------------------------
1400
 
m4_define([lt_decl_dquote_varnames],
1401
 
[_lt_decl_filter([value], [2], $@)])
1402
 
 
1403
 
 
1404
 
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1405
 
# ---------------------------------------------------
1406
 
m4_define([lt_decl_varnames_tagged],
1407
 
[m4_assert([$# <= 2])dnl
1408
 
_$0(m4_quote(m4_default([$1], [[, ]])),
1409
 
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1410
 
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1411
 
m4_define([_lt_decl_varnames_tagged],
1412
 
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1413
 
 
1414
 
 
1415
 
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1416
 
# ------------------------------------------------
1417
 
m4_define([lt_decl_all_varnames],
1418
 
[_$0(m4_quote(m4_default([$1], [[, ]])),
1419
 
     m4_if([$2], [],
1420
 
           m4_quote(lt_decl_varnames),
1421
 
        m4_quote(m4_shift($@))))[]dnl
1422
 
])
1423
 
m4_define([_lt_decl_all_varnames],
1424
 
[lt_join($@, lt_decl_varnames_tagged([$1],
1425
 
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1426
 
])
1427
 
 
1428
 
 
1429
 
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1430
 
# ------------------------------------
1431
 
# Quote a variable value, and forward it to `config.status' so that its
1432
 
# declaration there will have the same value as in `configure'.  VARNAME
1433
 
# must have a single quote delimited value for this to work.
1434
 
m4_define([_LT_CONFIG_STATUS_DECLARE],
1435
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1436
 
 
1437
 
 
1438
 
# _LT_CONFIG_STATUS_DECLARATIONS
1439
 
# ------------------------------
1440
 
# We delimit libtool config variables with single quotes, so when
1441
 
# we write them to config.status, we have to be sure to quote all
1442
 
# embedded single quotes properly.  In configure, this macro expands
1443
 
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1444
 
#
1445
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1446
 
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1447
 
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1448
 
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1449
 
 
1450
 
 
1451
 
# _LT_LIBTOOL_TAGS
1452
 
# ----------------
1453
 
# Output comment and list of tags supported by the script
1454
 
m4_defun([_LT_LIBTOOL_TAGS],
1455
 
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1456
 
available_tags="_LT_TAGS"dnl
1457
 
])
1458
 
 
1459
 
 
1460
 
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1461
 
# -----------------------------------
1462
 
# Extract the dictionary values for VARNAME (optionally with TAG) and
1463
 
# expand to a commented shell variable setting:
1464
 
#
1465
 
#    # Some comment about what VAR is for.
1466
 
#    visible_name=$lt_internal_name
1467
 
m4_define([_LT_LIBTOOL_DECLARE],
1468
 
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1469
 
                                           [description])))[]dnl
1470
 
m4_pushdef([_libtool_name],
1471
 
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1472
 
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1473
 
    [0], [_libtool_name=[$]$1],
1474
 
    [1], [_libtool_name=$lt_[]$1],
1475
 
    [2], [_libtool_name=$lt_[]$1],
1476
 
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1477
 
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1478
 
])
1479
 
 
1480
 
 
1481
 
# _LT_LIBTOOL_CONFIG_VARS
1482
 
# -----------------------
1483
 
# Produce commented declarations of non-tagged libtool config variables
1484
 
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1485
 
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
1486
 
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1487
 
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1488
 
[m4_foreach([_lt_var],
1489
 
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1490
 
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1491
 
 
1492
 
 
1493
 
# _LT_LIBTOOL_TAG_VARS(TAG)
1494
 
# -------------------------
1495
 
m4_define([_LT_LIBTOOL_TAG_VARS],
1496
 
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1497
 
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1498
 
 
1499
 
 
1500
 
# _LT_TAGVAR(VARNAME, [TAGNAME])
1501
 
# ------------------------------
1502
 
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1503
 
 
1504
 
 
1505
 
# _LT_CONFIG_COMMANDS
1506
 
# -------------------
1507
 
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
1508
 
# variables for single and double quote escaping we saved from calls
1509
 
# to _LT_DECL, we can put quote escaped variables declarations
1510
 
# into `config.status', and then the shell code to quote escape them in
1511
 
# for loops in `config.status'.  Finally, any additional code accumulated
1512
 
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1513
 
m4_defun([_LT_CONFIG_COMMANDS],
1514
 
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1515
 
        dnl If the libtool generation code has been placed in $CONFIG_LT,
1516
 
        dnl instead of duplicating it all over again into config.status,
1517
 
        dnl then we will have config.status run $CONFIG_LT later, so it
1518
 
        dnl needs to know what name is stored there:
1519
 
        [AC_CONFIG_COMMANDS([libtool],
1520
 
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1521
 
    dnl If the libtool generation code is destined for config.status,
1522
 
    dnl expand the accumulated commands and init code now:
1523
 
    [AC_CONFIG_COMMANDS([libtool],
1524
 
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1525
 
])#_LT_CONFIG_COMMANDS
1526
 
 
1527
 
 
1528
 
# Initialize.
1529
 
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1530
 
[
1531
 
 
1532
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
1533
 
# if CDPATH is set.
1534
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1535
 
 
1536
 
sed_quote_subst='$sed_quote_subst'
1537
 
double_quote_subst='$double_quote_subst'
1538
 
delay_variable_subst='$delay_variable_subst'
1539
 
_LT_CONFIG_STATUS_DECLARATIONS
1540
 
LTCC='$LTCC'
1541
 
LTCFLAGS='$LTCFLAGS'
1542
 
compiler='$compiler_DEFAULT'
1543
 
 
1544
 
# Quote evaled strings.
1545
 
for var in lt_decl_all_varnames([[ \
1546
 
]], lt_decl_quote_varnames); do
1547
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1548
 
    *[[\\\\\\\`\\"\\\$]]*)
1549
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1550
 
      ;;
1551
 
    *)
1552
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1553
 
      ;;
1554
 
    esac
1555
 
done
1556
 
 
1557
 
# Double-quote double-evaled strings.
1558
 
for var in lt_decl_all_varnames([[ \
1559
 
]], lt_decl_dquote_varnames); do
1560
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1561
 
    *[[\\\\\\\`\\"\\\$]]*)
1562
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1563
 
      ;;
1564
 
    *)
1565
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1566
 
      ;;
1567
 
    esac
1568
 
done
1569
 
 
1570
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
1571
 
case \$lt_ECHO in
1572
 
*'\\\[$]0 --fallback-echo"')dnl "
1573
 
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1574
 
  ;;
1575
 
esac
1576
 
 
1577
 
_LT_OUTPUT_LIBTOOL_INIT
1578
 
])
1579
 
 
1580
 
 
1581
 
# LT_OUTPUT
1582
 
# ---------
1583
 
# This macro allows early generation of the libtool script (before
1584
 
# AC_OUTPUT is called), incase it is used in configure for compilation
1585
 
# tests.
1586
 
AC_DEFUN([LT_OUTPUT],
1587
 
[: ${CONFIG_LT=./config.lt}
1588
 
AC_MSG_NOTICE([creating $CONFIG_LT])
1589
 
cat >"$CONFIG_LT" <<_LTEOF
1590
 
#! $SHELL
1591
 
# Generated by $as_me.
1592
 
# Run this file to recreate a libtool stub with the current configuration.
1593
 
 
1594
 
lt_cl_silent=false
1595
 
SHELL=\${CONFIG_SHELL-$SHELL}
1596
 
_LTEOF
1597
 
 
1598
 
cat >>"$CONFIG_LT" <<\_LTEOF
1599
 
AS_SHELL_SANITIZE
1600
 
_AS_PREPARE
1601
 
 
1602
 
exec AS_MESSAGE_FD>&1
1603
 
exec AS_MESSAGE_LOG_FD>>config.log
1604
 
{
1605
 
  echo
1606
 
  AS_BOX([Running $as_me.])
1607
 
} >&AS_MESSAGE_LOG_FD
1608
 
 
1609
 
lt_cl_help="\
1610
 
\`$as_me' creates a local libtool stub from the current configuration,
1611
 
for use in further configure time tests before the real libtool is
1612
 
generated.
1613
 
 
1614
 
Usage: $[0] [[OPTIONS]]
1615
 
 
1616
 
  -h, --help      print this help, then exit
1617
 
  -V, --version   print version number, then exit
1618
 
  -q, --quiet     do not print progress messages
1619
 
  -d, --debug     don't remove temporary files
1620
 
 
1621
 
Report bugs to <bug-libtool@gnu.org>."
1622
 
 
1623
 
lt_cl_version="\
1624
 
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1625
 
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1626
 
configured by $[0], generated by m4_PACKAGE_STRING.
1627
 
 
1628
 
Copyright (C) 2008 Free Software Foundation, Inc.
1629
 
This config.lt script is free software; the Free Software Foundation
1630
 
gives unlimited permision to copy, distribute and modify it."
1631
 
 
1632
 
while test $[#] != 0
1633
 
do
1634
 
  case $[1] in
1635
 
    --version | --v* | -V )
1636
 
      echo "$lt_cl_version"; exit 0 ;;
1637
 
    --help | --h* | -h )
1638
 
      echo "$lt_cl_help"; exit 0 ;;
1639
 
    --debug | --d* | -d )
1640
 
      debug=: ;;
1641
 
    --quiet | --q* | --silent | --s* | -q )
1642
 
      lt_cl_silent=: ;;
1643
 
 
1644
 
    -*) AC_MSG_ERROR([unrecognized option: $[1]
1645
 
Try \`$[0] --help' for more information.]) ;;
1646
 
 
1647
 
    *) AC_MSG_ERROR([unrecognized argument: $[1]
1648
 
Try \`$[0] --help' for more information.]) ;;
1649
 
  esac
1650
 
  shift
1651
 
done
1652
 
 
1653
 
if $lt_cl_silent; then
1654
 
  exec AS_MESSAGE_FD>/dev/null
1655
 
fi
1656
 
_LTEOF
1657
 
 
1658
 
cat >>"$CONFIG_LT" <<_LTEOF
1659
 
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1660
 
_LTEOF
1661
 
 
1662
 
cat >>"$CONFIG_LT" <<\_LTEOF
1663
 
AC_MSG_NOTICE([creating $ofile])
1664
 
_LT_OUTPUT_LIBTOOL_COMMANDS
1665
 
AS_EXIT(0)
1666
 
_LTEOF
1667
 
chmod +x "$CONFIG_LT"
1668
 
 
1669
 
# configure is writing to config.log, but config.lt does its own redirection,
1670
 
# appending to config.log, which fails on DOS, as config.log is still kept
1671
 
# open by configure.  Here we exec the FD to /dev/null, effectively closing
1672
 
# config.log, so it can be properly (re)opened and appended to by config.lt.
1673
 
if test "$no_create" != yes; then
1674
 
  lt_cl_success=:
1675
 
  test "$silent" = yes &&
1676
 
    lt_config_lt_args="$lt_config_lt_args --quiet"
1677
 
  exec AS_MESSAGE_LOG_FD>/dev/null
1678
 
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1679
 
  exec AS_MESSAGE_LOG_FD>>config.log
1680
 
  $lt_cl_success || AS_EXIT(1)
1681
 
fi
1682
 
])# LT_OUTPUT
1683
 
 
1684
 
 
1685
 
# _LT_CONFIG(TAG)
1686
 
# ---------------
1687
 
# If TAG is the built-in tag, create an initial libtool script with a
1688
 
# default configuration from the untagged config vars.  Otherwise add code
1689
 
# to config.status for appending the configuration named by TAG from the
1690
 
# matching tagged config vars.
1691
 
m4_defun([_LT_CONFIG],
1692
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1693
 
_LT_CONFIG_SAVE_COMMANDS([
1694
 
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1695
 
  m4_if(_LT_TAG, [C], [
1696
 
    # See if we are running on zsh, and set the options which allow our
1697
 
    # commands through without removal of \ escapes.
1698
 
    if test -n "${ZSH_VERSION+set}" ; then
1699
 
      setopt NO_GLOB_SUBST
1700
 
    fi
1701
 
 
1702
 
    cfgfile="${ofile}T"
1703
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1704
 
    $RM "$cfgfile"
1705
 
 
1706
 
    cat <<_LT_EOF >> "$cfgfile"
1707
 
#! $SHELL
1708
 
 
1709
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1710
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1711
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1712
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1713
 
#
1714
 
_LT_COPYING
1715
 
_LT_LIBTOOL_TAGS
1716
 
 
1717
 
# ### BEGIN LIBTOOL CONFIG
1718
 
_LT_LIBTOOL_CONFIG_VARS
1719
 
_LT_LIBTOOL_TAG_VARS
1720
 
# ### END LIBTOOL CONFIG
1721
 
 
1722
 
_LT_EOF
1723
 
 
1724
 
  case $host_os in
1725
 
  aix3*)
1726
 
    cat <<\_LT_EOF >> "$cfgfile"
1727
 
# AIX sometimes has problems with the GCC collect2 program.  For some
1728
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
1729
 
# vanish in a puff of smoke.
1730
 
if test "X${COLLECT_NAMES+set}" != Xset; then
1731
 
  COLLECT_NAMES=
1732
 
  export COLLECT_NAMES
1733
 
fi
1734
 
_LT_EOF
1735
 
    ;;
1736
 
  esac
1737
 
 
1738
 
  _LT_PROG_LTMAIN
1739
 
 
1740
 
  # We use sed instead of cat because bash on DJGPP gets confused if
1741
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1742
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
1743
 
  # is reportedly fixed, but why not run on old versions too?
1744
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1745
 
    || (rm -f "$cfgfile"; exit 1)
1746
 
 
1747
 
  _LT_PROG_XSI_SHELLFNS
1748
 
 
1749
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1750
 
    || (rm -f "$cfgfile"; exit 1)
1751
 
 
1752
 
  mv -f "$cfgfile" "$ofile" ||
1753
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1754
 
  chmod +x "$ofile"
1755
 
],
1756
 
[cat <<_LT_EOF >> "$ofile"
1757
 
 
1758
 
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1759
 
dnl in a comment (ie after a #).
1760
 
# ### BEGIN LIBTOOL TAG CONFIG: $1
1761
 
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1762
 
# ### END LIBTOOL TAG CONFIG: $1
1763
 
_LT_EOF
1764
 
])dnl /m4_if
1765
 
],
1766
 
[m4_if([$1], [], [
1767
 
    PACKAGE='$PACKAGE'
1768
 
    VERSION='$VERSION'
1769
 
    TIMESTAMP='$TIMESTAMP'
1770
 
    RM='$RM'
1771
 
    ofile='$ofile'], [])
1772
 
])dnl /_LT_CONFIG_SAVE_COMMANDS
1773
 
])# _LT_CONFIG
1774
 
 
1775
 
 
1776
 
# LT_SUPPORTED_TAG(TAG)
1777
 
# ---------------------
1778
 
# Trace this macro to discover what tags are supported by the libtool
1779
 
# --tag option, using:
1780
 
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
1781
 
AC_DEFUN([LT_SUPPORTED_TAG], [])
1782
 
 
1783
 
 
1784
 
# C support is built-in for now
1785
 
m4_define([_LT_LANG_C_enabled], [])
1786
 
m4_define([_LT_TAGS], [])
1787
 
 
1788
 
 
1789
 
# LT_LANG(LANG)
1790
 
# -------------
1791
 
# Enable libtool support for the given language if not already enabled.
1792
 
AC_DEFUN([LT_LANG],
1793
 
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1794
 
m4_case([$1],
1795
 
  [C],                  [_LT_LANG(C)],
1796
 
  [C++],                [_LT_LANG(CXX)],
1797
 
  [Java],               [_LT_LANG(GCJ)],
1798
 
  [Fortran 77],         [_LT_LANG(F77)],
1799
 
  [Fortran],            [_LT_LANG(FC)],
1800
 
  [Windows Resource],   [_LT_LANG(RC)],
1801
 
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1802
 
    [_LT_LANG($1)],
1803
 
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
1804
 
])# LT_LANG
1805
 
 
1806
 
 
1807
 
# _LT_LANG(LANGNAME)
1808
 
# ------------------
1809
 
m4_defun([_LT_LANG],
1810
 
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1811
 
  [LT_SUPPORTED_TAG([$1])dnl
1812
 
  m4_append([_LT_TAGS], [$1 ])dnl
1813
 
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
1814
 
  _LT_LANG_$1_CONFIG($1)])dnl
1815
 
])# _LT_LANG
1816
 
 
1817
 
 
1818
 
# _LT_LANG_DEFAULT_CONFIG
1819
 
# -----------------------
1820
 
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1821
 
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1822
 
  [LT_LANG(CXX)],
1823
 
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1824
 
 
1825
 
AC_PROVIDE_IFELSE([AC_PROG_F77],
1826
 
  [LT_LANG(F77)],
1827
 
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1828
 
 
1829
 
AC_PROVIDE_IFELSE([AC_PROG_FC],
1830
 
  [LT_LANG(FC)],
1831
 
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1832
 
 
1833
 
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1834
 
dnl pulling things in needlessly.
1835
 
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1836
 
  [LT_LANG(GCJ)],
1837
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1838
 
    [LT_LANG(GCJ)],
1839
 
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1840
 
      [LT_LANG(GCJ)],
1841
 
      [m4_ifdef([AC_PROG_GCJ],
1842
 
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1843
 
       m4_ifdef([A][M_PROG_GCJ],
1844
 
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1845
 
       m4_ifdef([LT_PROG_GCJ],
1846
 
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1847
 
 
1848
 
AC_PROVIDE_IFELSE([LT_PROG_RC],
1849
 
  [LT_LANG(RC)],
1850
 
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1851
 
])# _LT_LANG_DEFAULT_CONFIG
1852
 
 
1853
 
# Obsolete macros:
1854
 
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1855
 
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1856
 
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1857
 
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1858
 
dnl aclocal-1.4 backwards compatibility:
1859
 
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1860
 
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1861
 
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1862
 
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1863
 
 
1864
 
 
1865
 
# _LT_TAG_COMPILER
1866
 
# ----------------
1867
 
m4_defun([_LT_TAG_COMPILER],
1868
 
[AC_REQUIRE([AC_PROG_CC])dnl
1869
 
 
1870
 
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1871
 
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1872
 
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1873
 
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1874
 
 
1875
 
# If no C compiler was specified, use CC.
1876
 
LTCC=${LTCC-"$CC"}
1877
 
 
1878
 
# If no C compiler flags were specified, use CFLAGS.
1879
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1880
 
 
1881
 
# Allow CC to be a program name with arguments.
1882
 
compiler=$CC
1883
 
])# _LT_TAG_COMPILER
1884
 
 
1885
 
 
1886
 
# _LT_COMPILER_BOILERPLATE
1887
 
# ------------------------
1888
 
# Check for compiler boilerplate output or warnings with
1889
 
# the simple compiler test code.
1890
 
m4_defun([_LT_COMPILER_BOILERPLATE],
1891
 
[m4_require([_LT_DECL_SED])dnl
1892
 
ac_outfile=conftest.$ac_objext
1893
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1894
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1895
 
_lt_compiler_boilerplate=`cat conftest.err`
1896
 
$RM conftest*
1897
 
])# _LT_COMPILER_BOILERPLATE
1898
 
 
1899
 
 
1900
 
# _LT_LINKER_BOILERPLATE
1901
 
# ----------------------
1902
 
# Check for linker boilerplate output or warnings with
1903
 
# the simple link test code.
1904
 
m4_defun([_LT_LINKER_BOILERPLATE],
1905
 
[m4_require([_LT_DECL_SED])dnl
1906
 
ac_outfile=conftest.$ac_objext
1907
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1908
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1909
 
_lt_linker_boilerplate=`cat conftest.err`
1910
 
$RM -r conftest*
1911
 
])# _LT_LINKER_BOILERPLATE
1912
 
 
1913
 
# _LT_REQUIRED_DARWIN_CHECKS
1914
 
# -------------------------
1915
 
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1916
 
  case $host_os in
1917
 
    rhapsody* | darwin*)
1918
 
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1919
 
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1920
 
    AC_CHECK_TOOL([LIPO], [lipo], [:])
1921
 
    AC_CHECK_TOOL([OTOOL], [otool], [:])
1922
 
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1923
 
    _LT_DECL([], [DSYMUTIL], [1],
1924
 
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1925
 
    _LT_DECL([], [NMEDIT], [1],
1926
 
      [Tool to change global to local symbols on Mac OS X])
1927
 
    _LT_DECL([], [LIPO], [1],
1928
 
      [Tool to manipulate fat objects and archives on Mac OS X])
1929
 
    _LT_DECL([], [OTOOL], [1],
1930
 
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1931
 
    _LT_DECL([], [OTOOL64], [1],
1932
 
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1933
 
 
1934
 
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1935
 
      [lt_cv_apple_cc_single_mod=no
1936
 
      if test -z "${LT_MULTI_MODULE}"; then
1937
 
        # By default we will add the -single_module flag. You can override
1938
 
        # by either setting the environment variable LT_MULTI_MODULE
1939
 
        # non-empty at configure time, or by adding -multi_module to the
1940
 
        # link flags.
1941
 
        rm -rf libconftest.dylib*
1942
 
        echo "int foo(void){return 1;}" > conftest.c
1943
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1944
 
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1945
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1946
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1947
 
        _lt_result=$?
1948
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1949
 
          lt_cv_apple_cc_single_mod=yes
1950
 
        else
1951
 
          cat conftest.err >&AS_MESSAGE_LOG_FD
1952
 
        fi
1953
 
        rm -rf libconftest.dylib*
1954
 
        rm -f conftest.*
1955
 
      fi])
1956
 
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1957
 
      [lt_cv_ld_exported_symbols_list],
1958
 
      [lt_cv_ld_exported_symbols_list=no
1959
 
      save_LDFLAGS=$LDFLAGS
1960
 
      echo "_main" > conftest.sym
1961
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1962
 
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1963
 
        [lt_cv_ld_exported_symbols_list=yes],
1964
 
        [lt_cv_ld_exported_symbols_list=no])
1965
 
        LDFLAGS="$save_LDFLAGS"
1966
 
    ])
1967
 
    case $host_os in
1968
 
    rhapsody* | darwin1.[[012]])
1969
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1970
 
    darwin1.*)
1971
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1972
 
    darwin*) # darwin 5.x on
1973
 
      # if running on 10.5 or later, the deployment target defaults
1974
 
      # to the OS version, if on x86, and 10.4, the deployment
1975
 
      # target defaults to 10.4. Don't you love it?
1976
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1977
 
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1978
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1979
 
        10.[[012]]*)
1980
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1981
 
        10.*)
1982
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1983
 
      esac
1984
 
    ;;
1985
 
  esac
1986
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1987
 
      _lt_dar_single_mod='$single_module'
1988
 
    fi
1989
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1990
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1991
 
    else
1992
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1993
 
    fi
1994
 
    if test "$DSYMUTIL" != ":"; then
1995
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
1996
 
    else
1997
 
      _lt_dsymutil=
1998
 
    fi
1999
 
    ;;
2000
 
  esac
2001
 
])
2002
 
 
2003
 
 
2004
 
# _LT_DARWIN_LINKER_FEATURES
2005
 
# --------------------------
2006
 
# Checks for linker and compiler features on darwin
2007
 
m4_defun([_LT_DARWIN_LINKER_FEATURES],
2008
 
[
2009
 
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
2010
 
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
2011
 
  _LT_TAGVAR(hardcode_direct, $1)=no
2012
 
  _LT_TAGVAR(hardcode_automatic, $1)=yes
2013
 
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2014
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
2015
 
  _LT_TAGVAR(link_all_deplibs, $1)=yes
2016
 
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
2017
 
  case $cc_basename in
2018
 
     ifort*) _lt_dar_can_shared=yes ;;
2019
 
     *) _lt_dar_can_shared=$GCC ;;
2020
 
  esac
2021
 
  if test "$_lt_dar_can_shared" = "yes"; then
2022
 
    output_verbose_link_cmd=echo
2023
 
    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
2024
 
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
2025
 
    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
2026
 
    _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
2027
 
    m4_if([$1], [CXX],
2028
 
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
2029
 
      _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
2030
 
      _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
2031
 
    fi
2032
 
],[])
2033
 
  else
2034
 
  _LT_TAGVAR(ld_shlibs, $1)=no
2035
 
  fi
2036
 
])
2037
 
 
2038
 
# _LT_SYS_MODULE_PATH_AIX
2039
 
# -----------------------
2040
 
# Links a minimal program and checks the executable
2041
 
# for the system default hardcoded library path. In most cases,
2042
 
# this is /usr/lib:/lib, but when the MPI compilers are used
2043
 
# the location of the communication and MPI libs are included too.
2044
 
# If we don't find anything, use the default library path according
2045
 
# to the aix ld manual.
2046
 
m4_defun([_LT_SYS_MODULE_PATH_AIX],
2047
 
[m4_require([_LT_DECL_SED])dnl
2048
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2049
 
lt_aix_libpath_sed='
2050
 
    /Import File Strings/,/^$/ {
2051
 
        /^0/ {
2052
 
            s/^0  *\(.*\)$/\1/
2053
 
            p
2054
 
        }
2055
 
    }'
2056
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2057
 
# Check for a 64-bit object if we didn't find anything.
2058
 
if test -z "$aix_libpath"; then
2059
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2060
 
fi],[])
2061
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2062
 
])# _LT_SYS_MODULE_PATH_AIX
2063
 
 
2064
 
 
2065
 
# _LT_SHELL_INIT(ARG)
2066
 
# -------------------
2067
 
m4_define([_LT_SHELL_INIT],
2068
 
[ifdef([AC_DIVERSION_NOTICE],
2069
 
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2070
 
         [AC_DIVERT_PUSH(NOTICE)])
2071
 
$1
2072
 
AC_DIVERT_POP
2073
 
])# _LT_SHELL_INIT
2074
 
 
2075
 
 
2076
 
# _LT_PROG_ECHO_BACKSLASH
2077
 
# -----------------------
2078
 
# Add some code to the start of the generated configure script which
2079
 
# will find an echo command which doesn't interpret backslashes.
2080
 
m4_defun([_LT_PROG_ECHO_BACKSLASH],
2081
 
[_LT_SHELL_INIT([
2082
 
# Check that we are running under the correct shell.
2083
 
SHELL=${CONFIG_SHELL-/bin/sh}
2084
 
 
2085
 
case X$lt_ECHO in
2086
 
X*--fallback-echo)
2087
 
  # Remove one level of quotation (which was required for Make).
2088
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2089
 
  ;;
2090
 
esac
2091
 
 
2092
 
ECHO=${lt_ECHO-echo}
2093
 
if test "X[$]1" = X--no-reexec; then
2094
 
  # Discard the --no-reexec flag, and continue.
2095
 
  shift
2096
 
elif test "X[$]1" = X--fallback-echo; then
2097
 
  # Avoid inline document here, it may be left over
2098
 
  :
2099
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
2100
 
  # Yippee, $ECHO works!
2101
 
  :
2102
 
else
2103
 
  # Restart under the correct shell.
2104
 
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2105
 
fi
2106
 
 
2107
 
if test "X[$]1" = X--fallback-echo; then
2108
 
  # used as fallback echo
2109
 
  shift
2110
 
  cat <<_LT_EOF
2111
 
[$]*
2112
 
_LT_EOF
2113
 
  exit 0
2114
 
fi
2115
 
 
2116
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
2117
 
# if CDPATH is set.
2118
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2119
 
 
2120
 
if test -z "$lt_ECHO"; then
2121
 
  if test "X${echo_test_string+set}" != Xset; then
2122
 
    # find a string as large as possible, as long as the shell can cope with it
2123
 
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2124
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2125
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
2126
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
2127
 
      then
2128
 
        break
2129
 
      fi
2130
 
    done
2131
 
  fi
2132
 
 
2133
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2134
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2135
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
2136
 
    :
2137
 
  else
2138
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
2139
 
    # backslashes.  This makes it impossible to quote backslashes using
2140
 
    #   echo "$something" | sed 's/\\/\\\\/g'
2141
 
    #
2142
 
    # So, first we look for a working echo in the user's PATH.
2143
 
 
2144
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2145
 
    for dir in $PATH /usr/ucb; do
2146
 
      IFS="$lt_save_ifs"
2147
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2148
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2149
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2150
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
2151
 
        ECHO="$dir/echo"
2152
 
        break
2153
 
      fi
2154
 
    done
2155
 
    IFS="$lt_save_ifs"
2156
 
 
2157
 
    if test "X$ECHO" = Xecho; then
2158
 
      # We didn't find a better echo, so look for alternatives.
2159
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
2160
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
2161
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
2162
 
        # This shell has a builtin print -r that does the trick.
2163
 
        ECHO='print -r'
2164
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
2165
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
2166
 
        # If we have ksh, try running configure again with it.
2167
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2168
 
        export ORIGINAL_CONFIG_SHELL
2169
 
        CONFIG_SHELL=/bin/ksh
2170
 
        export CONFIG_SHELL
2171
 
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2172
 
      else
2173
 
        # Try using printf.
2174
 
        ECHO='printf %s\n'
2175
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2176
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2177
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
2178
 
          # Cool, printf works
2179
 
          :
2180
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2181
 
             test "X$echo_testing_string" = 'X\t' &&
2182
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2183
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
2184
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2185
 
          export CONFIG_SHELL
2186
 
          SHELL="$CONFIG_SHELL"
2187
 
          export SHELL
2188
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2189
 
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2190
 
             test "X$echo_testing_string" = 'X\t' &&
2191
 
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2192
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
2193
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2194
 
        else
2195
 
          # maybe with a smaller string...
2196
 
          prev=:
2197
 
 
2198
 
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2199
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
2200
 
            then
2201
 
              break
2202
 
            fi
2203
 
            prev="$cmd"
2204
 
          done
2205
 
 
2206
 
          if test "$prev" != 'sed 50q "[$]0"'; then
2207
 
            echo_test_string=`eval $prev`
2208
 
            export echo_test_string
2209
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2210
 
          else
2211
 
            # Oops.  We lost completely, so just stick with echo.
2212
 
            ECHO=echo
2213
 
          fi
2214
 
        fi
2215
 
      fi
2216
 
    fi
2217
 
  fi
2218
 
fi
2219
 
 
2220
 
# Copy echo and quote the copy suitably for passing to libtool from
2221
 
# the Makefile, instead of quoting the original, which is used later.
2222
 
lt_ECHO=$ECHO
2223
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2224
 
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2225
 
fi
2226
 
 
2227
 
AC_SUBST(lt_ECHO)
2228
 
])
2229
 
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2230
 
_LT_DECL([], [ECHO], [1],
2231
 
    [An echo program that does not interpret backslashes])
2232
 
])# _LT_PROG_ECHO_BACKSLASH
2233
 
 
2234
 
 
2235
 
# _LT_ENABLE_LOCK
2236
 
# ---------------
2237
 
m4_defun([_LT_ENABLE_LOCK],
2238
 
[AC_ARG_ENABLE([libtool-lock],
2239
 
  [AS_HELP_STRING([--disable-libtool-lock],
2240
 
    [avoid locking (might break parallel builds)])])
2241
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2242
 
 
2243
 
# Some flags need to be propagated to the compiler or linker for good
2244
 
# libtool support.
2245
 
case $host in
2246
 
ia64-*-hpux*)
2247
 
  # Find out which ABI we are using.
2248
 
  echo 'int i;' > conftest.$ac_ext
2249
 
  if AC_TRY_EVAL(ac_compile); then
2250
 
    case `/usr/bin/file conftest.$ac_objext` in
2251
 
      *ELF-32*)
2252
 
        HPUX_IA64_MODE="32"
2253
 
        ;;
2254
 
      *ELF-64*)
2255
 
        HPUX_IA64_MODE="64"
2256
 
        ;;
2257
 
    esac
2258
 
  fi
2259
 
  rm -rf conftest*
2260
 
  ;;
2261
 
*-*-irix6*)
2262
 
  # Find out which ABI we are using.
2263
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2264
 
  if AC_TRY_EVAL(ac_compile); then
2265
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
2266
 
      case `/usr/bin/file conftest.$ac_objext` in
2267
 
        *32-bit*)
2268
 
          LD="${LD-ld} -melf32bsmip"
2269
 
          ;;
2270
 
        *N32*)
2271
 
          LD="${LD-ld} -melf32bmipn32"
2272
 
          ;;
2273
 
        *64-bit*)
2274
 
          LD="${LD-ld} -melf64bmip"
2275
 
        ;;
2276
 
      esac
2277
 
    else
2278
 
      case `/usr/bin/file conftest.$ac_objext` in
2279
 
        *32-bit*)
2280
 
          LD="${LD-ld} -32"
2281
 
          ;;
2282
 
        *N32*)
2283
 
          LD="${LD-ld} -n32"
2284
 
          ;;
2285
 
        *64-bit*)
2286
 
          LD="${LD-ld} -64"
2287
 
          ;;
2288
 
      esac
2289
 
    fi
2290
 
  fi
2291
 
  rm -rf conftest*
2292
 
  ;;
2293
 
 
2294
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2295
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2296
 
  # Find out which ABI we are using.
2297
 
  echo 'int i;' > conftest.$ac_ext
2298
 
  if AC_TRY_EVAL(ac_compile); then
2299
 
    case `/usr/bin/file conftest.o` in
2300
 
      *32-bit*)
2301
 
        case $host in
2302
 
          x86_64-*kfreebsd*-gnu)
2303
 
            LD="${LD-ld} -m elf_i386_fbsd"
2304
 
            ;;
2305
 
          x86_64-*linux*)
2306
 
            LD="${LD-ld} -m elf_i386"
2307
 
            ;;
2308
 
          ppc64-*linux*|powerpc64-*linux*)
2309
 
            LD="${LD-ld} -m elf32ppclinux"
2310
 
            ;;
2311
 
          s390x-*linux*)
2312
 
            LD="${LD-ld} -m elf_s390"
2313
 
            ;;
2314
 
          sparc64-*linux*)
2315
 
            LD="${LD-ld} -m elf32_sparc"
2316
 
            ;;
2317
 
        esac
2318
 
        ;;
2319
 
      *64-bit*)
2320
 
        case $host in
2321
 
          x86_64-*kfreebsd*-gnu)
2322
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
2323
 
            ;;
2324
 
          x86_64-*linux*)
2325
 
            LD="${LD-ld} -m elf_x86_64"
2326
 
            ;;
2327
 
          ppc*-*linux*|powerpc*-*linux*)
2328
 
            LD="${LD-ld} -m elf64ppc"
2329
 
            ;;
2330
 
          s390*-*linux*|s390*-*tpf*)
2331
 
            LD="${LD-ld} -m elf64_s390"
2332
 
            ;;
2333
 
          sparc*-*linux*)
2334
 
            LD="${LD-ld} -m elf64_sparc"
2335
 
            ;;
2336
 
        esac
2337
 
        ;;
2338
 
    esac
2339
 
  fi
2340
 
  rm -rf conftest*
2341
 
  ;;
2342
 
 
2343
 
*-*-sco3.2v5*)
2344
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2345
 
  SAVE_CFLAGS="$CFLAGS"
2346
 
  CFLAGS="$CFLAGS -belf"
2347
 
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2348
 
    [AC_LANG_PUSH(C)
2349
 
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2350
 
     AC_LANG_POP])
2351
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2352
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2353
 
    CFLAGS="$SAVE_CFLAGS"
2354
 
  fi
2355
 
  ;;
2356
 
sparc*-*solaris*)
2357
 
  # Find out which ABI we are using.
2358
 
  echo 'int i;' > conftest.$ac_ext
2359
 
  if AC_TRY_EVAL(ac_compile); then
2360
 
    case `/usr/bin/file conftest.o` in
2361
 
    *64-bit*)
2362
 
      case $lt_cv_prog_gnu_ld in
2363
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
2364
 
      *)
2365
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2366
 
          LD="${LD-ld} -64"
2367
 
        fi
2368
 
        ;;
2369
 
      esac
2370
 
      ;;
2371
 
    esac
2372
 
  fi
2373
 
  rm -rf conftest*
2374
 
  ;;
2375
 
esac
2376
 
 
2377
 
need_locks="$enable_libtool_lock"
2378
 
])# _LT_ENABLE_LOCK
2379
 
 
2380
 
 
2381
 
# _LT_CMD_OLD_ARCHIVE
2382
 
# -------------------
2383
 
m4_defun([_LT_CMD_OLD_ARCHIVE],
2384
 
[AC_CHECK_TOOL(AR, ar, false)
2385
 
test -z "$AR" && AR=ar
2386
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
2387
 
_LT_DECL([], [AR], [1], [The archiver])
2388
 
_LT_DECL([], [AR_FLAGS], [1])
2389
 
 
2390
 
AC_CHECK_TOOL(STRIP, strip, :)
2391
 
test -z "$STRIP" && STRIP=:
2392
 
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2393
 
 
2394
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
2395
 
test -z "$RANLIB" && RANLIB=:
2396
 
_LT_DECL([], [RANLIB], [1],
2397
 
    [Commands used to install an old-style archive])
2398
 
 
2399
 
# Determine commands to create old-style static archives.
2400
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2401
 
old_postinstall_cmds='chmod 644 $oldlib'
2402
 
old_postuninstall_cmds=
2403
 
 
2404
 
if test -n "$RANLIB"; then
2405
 
  case $host_os in
2406
 
  openbsd*)
2407
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2408
 
    ;;
2409
 
  *)
2410
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2411
 
    ;;
2412
 
  esac
2413
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2414
 
fi
2415
 
_LT_DECL([], [old_postinstall_cmds], [2])
2416
 
_LT_DECL([], [old_postuninstall_cmds], [2])
2417
 
_LT_TAGDECL([], [old_archive_cmds], [2],
2418
 
    [Commands used to build an old-style archive])
2419
 
])# _LT_CMD_OLD_ARCHIVE
2420
 
 
2421
 
 
2422
 
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2423
 
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2424
 
# ----------------------------------------------------------------
2425
 
# Check whether the given compiler option works
2426
 
AC_DEFUN([_LT_COMPILER_OPTION],
2427
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2428
 
m4_require([_LT_DECL_SED])dnl
2429
 
AC_CACHE_CHECK([$1], [$2],
2430
 
  [$2=no
2431
 
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2432
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2433
 
   lt_compiler_flag="$3"
2434
 
   # Insert the option either (1) after the last *FLAGS variable, or
2435
 
   # (2) before a word containing "conftest.", or (3) at the end.
2436
 
   # Note that $ac_compile itself does not contain backslashes and begins
2437
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
2438
 
   # The option is referenced via a variable to avoid confusing sed.
2439
 
   lt_compile=`echo "$ac_compile" | $SED \
2440
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2441
 
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2442
 
   -e 's:$: $lt_compiler_flag:'`
2443
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2444
 
   (eval "$lt_compile" 2>conftest.err)
2445
 
   ac_status=$?
2446
 
   cat conftest.err >&AS_MESSAGE_LOG_FD
2447
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2448
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
2449
 
     # The compiler can only warn and ignore the option if not recognized
2450
 
     # So say no if there are warnings other than the usual output.
2451
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2452
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2453
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2454
 
       $2=yes
2455
 
     fi
2456
 
   fi
2457
 
   $RM conftest*
2458
 
])
2459
 
 
2460
 
if test x"[$]$2" = xyes; then
2461
 
    m4_if([$5], , :, [$5])
2462
 
else
2463
 
    m4_if([$6], , :, [$6])
2464
 
fi
2465
 
])# _LT_COMPILER_OPTION
2466
 
 
2467
 
# Old name:
2468
 
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2469
 
dnl aclocal-1.4 backwards compatibility:
2470
 
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2471
 
 
2472
 
 
2473
 
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2474
 
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
2475
 
# ----------------------------------------------------
2476
 
# Check whether the given linker option works
2477
 
AC_DEFUN([_LT_LINKER_OPTION],
2478
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2479
 
m4_require([_LT_DECL_SED])dnl
2480
 
AC_CACHE_CHECK([$1], [$2],
2481
 
  [$2=no
2482
 
   save_LDFLAGS="$LDFLAGS"
2483
 
   LDFLAGS="$LDFLAGS $3"
2484
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
2485
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2486
 
     # The linker can only warn and ignore the option if not recognized
2487
 
     # So say no if there are warnings
2488
 
     if test -s conftest.err; then
2489
 
       # Append any errors to the config.log.
2490
 
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
2491
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2492
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2493
 
       if diff conftest.exp conftest.er2 >/dev/null; then
2494
 
         $2=yes
2495
 
       fi
2496
 
     else
2497
 
       $2=yes
2498
 
     fi
2499
 
   fi
2500
 
   $RM -r conftest*
2501
 
   LDFLAGS="$save_LDFLAGS"
2502
 
])
2503
 
 
2504
 
if test x"[$]$2" = xyes; then
2505
 
    m4_if([$4], , :, [$4])
2506
 
else
2507
 
    m4_if([$5], , :, [$5])
2508
 
fi
2509
 
])# _LT_LINKER_OPTION
2510
 
 
2511
 
# Old name:
2512
 
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2513
 
dnl aclocal-1.4 backwards compatibility:
2514
 
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2515
 
 
2516
 
 
2517
 
# LT_CMD_MAX_LEN
2518
 
#---------------
2519
 
AC_DEFUN([LT_CMD_MAX_LEN],
2520
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2521
 
# find the maximum length of command line arguments
2522
 
AC_MSG_CHECKING([the maximum length of command line arguments])
2523
 
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2524
 
  i=0
2525
 
  teststring="ABCD"
2526
 
 
2527
 
  case $build_os in
2528
 
  msdosdjgpp*)
2529
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
2530
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
2531
 
    # during glob expansion).  Even if it were fixed, the result of this
2532
 
    # check would be larger than it should be.
2533
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
2534
 
    ;;
2535
 
 
2536
 
  gnu*)
2537
 
    # Under GNU Hurd, this test is not required because there is
2538
 
    # no limit to the length of command line arguments.
2539
 
    # Libtool will interpret -1 as no limit whatsoever
2540
 
    lt_cv_sys_max_cmd_len=-1;
2541
 
    ;;
2542
 
 
2543
 
  cygwin* | mingw* | cegcc*)
2544
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
2545
 
    # about 5 minutes as the teststring grows exponentially.
2546
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
2547
 
    # you end up with a "frozen" computer, even though with patience
2548
 
    # the test eventually succeeds (with a max line length of 256k).
2549
 
    # Instead, let's just punt: use the minimum linelength reported by
2550
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
2551
 
    lt_cv_sys_max_cmd_len=8192;
2552
 
    ;;
2553
 
 
2554
 
  amigaos*)
2555
 
    # On AmigaOS with pdksh, this test takes hours, literally.
2556
 
    # So we just punt and use a minimum line length of 8192.
2557
 
    lt_cv_sys_max_cmd_len=8192;
2558
 
    ;;
2559
 
 
2560
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2561
 
    # This has been around since 386BSD, at least.  Likely further.
2562
 
    if test -x /sbin/sysctl; then
2563
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2564
 
    elif test -x /usr/sbin/sysctl; then
2565
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2566
 
    else
2567
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
2568
 
    fi
2569
 
    # And add a safety zone
2570
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2571
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2572
 
    ;;
2573
 
 
2574
 
  interix*)
2575
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
2576
 
    lt_cv_sys_max_cmd_len=196608
2577
 
    ;;
2578
 
 
2579
 
  osf*)
2580
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2581
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2582
 
    # nice to cause kernel panics so lets avoid the loop below.
2583
 
    # First set a reasonable default.
2584
 
    lt_cv_sys_max_cmd_len=16384
2585
 
    #
2586
 
    if test -x /sbin/sysconfig; then
2587
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2588
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
2589
 
      esac
2590
 
    fi
2591
 
    ;;
2592
 
  sco3.2v5*)
2593
 
    lt_cv_sys_max_cmd_len=102400
2594
 
    ;;
2595
 
  sysv5* | sco5v6* | sysv4.2uw2*)
2596
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2597
 
    if test -n "$kargmax"; then
2598
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
2599
 
    else
2600
 
      lt_cv_sys_max_cmd_len=32768
2601
 
    fi
2602
 
    ;;
2603
 
  *)
2604
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2605
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
2606
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2607
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2608
 
    else
2609
 
      # Make teststring a little bigger before we do anything with it.
2610
 
      # a 1K string should be a reasonable start.
2611
 
      for i in 1 2 3 4 5 6 7 8 ; do
2612
 
        teststring=$teststring$teststring
2613
 
      done
2614
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2615
 
      # If test is not a shell built-in, we'll probably end up computing a
2616
 
      # maximum length that is only half of the actual maximum length, but
2617
 
      # we can't tell.
2618
 
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2619
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
2620
 
              test $i != 17 # 1/2 MB should be enough
2621
 
      do
2622
 
        i=`expr $i + 1`
2623
 
        teststring=$teststring$teststring
2624
 
      done
2625
 
      # Only check the string length outside the loop.
2626
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2627
 
      teststring=
2628
 
      # Add a significant safety factor because C++ compilers can tack on
2629
 
      # massive amounts of additional arguments before passing them to the
2630
 
      # linker.  It appears as though 1/2 is a usable value.
2631
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2632
 
    fi
2633
 
    ;;
2634
 
  esac
2635
 
])
2636
 
if test -n $lt_cv_sys_max_cmd_len ; then
2637
 
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2638
 
else
2639
 
  AC_MSG_RESULT(none)
2640
 
fi
2641
 
max_cmd_len=$lt_cv_sys_max_cmd_len
2642
 
_LT_DECL([], [max_cmd_len], [0],
2643
 
    [What is the maximum length of a command?])
2644
 
])# LT_CMD_MAX_LEN
2645
 
 
2646
 
# Old name:
2647
 
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2648
 
dnl aclocal-1.4 backwards compatibility:
2649
 
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2650
 
 
2651
 
 
2652
 
# _LT_HEADER_DLFCN
2653
 
# ----------------
2654
 
m4_defun([_LT_HEADER_DLFCN],
2655
 
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2656
 
])# _LT_HEADER_DLFCN
2657
 
 
2658
 
 
2659
 
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2660
 
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2661
 
# ----------------------------------------------------------------
2662
 
m4_defun([_LT_TRY_DLOPEN_SELF],
2663
 
[m4_require([_LT_HEADER_DLFCN])dnl
2664
 
if test "$cross_compiling" = yes; then :
2665
 
  [$4]
2666
 
else
2667
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2668
 
  lt_status=$lt_dlunknown
2669
 
  cat > conftest.$ac_ext <<_LT_EOF
2670
 
[#line __oline__ "configure"
2671
 
#include "confdefs.h"
2672
 
 
2673
 
#if HAVE_DLFCN_H
2674
 
#include <dlfcn.h>
2675
 
#endif
2676
 
 
2677
 
#include <stdio.h>
2678
 
 
2679
 
#ifdef RTLD_GLOBAL
2680
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
2681
 
#else
2682
 
#  ifdef DL_GLOBAL
2683
 
#    define LT_DLGLOBAL         DL_GLOBAL
2684
 
#  else
2685
 
#    define LT_DLGLOBAL         0
2686
 
#  endif
2687
 
#endif
2688
 
 
2689
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2690
 
   find out it does not work in some platform. */
2691
 
#ifndef LT_DLLAZY_OR_NOW
2692
 
#  ifdef RTLD_LAZY
2693
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
2694
 
#  else
2695
 
#    ifdef DL_LAZY
2696
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
2697
 
#    else
2698
 
#      ifdef RTLD_NOW
2699
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
2700
 
#      else
2701
 
#        ifdef DL_NOW
2702
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
2703
 
#        else
2704
 
#          define LT_DLLAZY_OR_NOW      0
2705
 
#        endif
2706
 
#      endif
2707
 
#    endif
2708
 
#  endif
2709
 
#endif
2710
 
 
2711
 
void fnord() { int i=42;}
2712
 
int main ()
2713
 
{
2714
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2715
 
  int status = $lt_dlunknown;
2716
 
 
2717
 
  if (self)
2718
 
    {
2719
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
2720
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2721
 
      /* dlclose (self); */
2722
 
    }
2723
 
  else
2724
 
    puts (dlerror ());
2725
 
 
2726
 
  return status;
2727
 
}]
2728
 
_LT_EOF
2729
 
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2730
 
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2731
 
    lt_status=$?
2732
 
    case x$lt_status in
2733
 
      x$lt_dlno_uscore) $1 ;;
2734
 
      x$lt_dlneed_uscore) $2 ;;
2735
 
      x$lt_dlunknown|x*) $3 ;;
2736
 
    esac
2737
 
  else :
2738
 
    # compilation failed
2739
 
    $3
2740
 
  fi
2741
 
fi
2742
 
rm -fr conftest*
2743
 
])# _LT_TRY_DLOPEN_SELF
2744
 
 
2745
 
 
2746
 
# LT_SYS_DLOPEN_SELF
2747
 
# ------------------
2748
 
AC_DEFUN([LT_SYS_DLOPEN_SELF],
2749
 
[m4_require([_LT_HEADER_DLFCN])dnl
2750
 
if test "x$enable_dlopen" != xyes; then
2751
 
  enable_dlopen=unknown
2752
 
  enable_dlopen_self=unknown
2753
 
  enable_dlopen_self_static=unknown
2754
 
else
2755
 
  lt_cv_dlopen=no
2756
 
  lt_cv_dlopen_libs=
2757
 
 
2758
 
  case $host_os in
2759
 
  beos*)
2760
 
    lt_cv_dlopen="load_add_on"
2761
 
    lt_cv_dlopen_libs=
2762
 
    lt_cv_dlopen_self=yes
2763
 
    ;;
2764
 
 
2765
 
  mingw* | pw32* | cegcc*)
2766
 
    lt_cv_dlopen="LoadLibrary"
2767
 
    lt_cv_dlopen_libs=
2768
 
    ;;
2769
 
 
2770
 
  cygwin*)
2771
 
    lt_cv_dlopen="dlopen"
2772
 
    lt_cv_dlopen_libs=
2773
 
    ;;
2774
 
 
2775
 
  darwin*)
2776
 
  # if libdl is installed we need to link against it
2777
 
    AC_CHECK_LIB([dl], [dlopen],
2778
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2779
 
    lt_cv_dlopen="dyld"
2780
 
    lt_cv_dlopen_libs=
2781
 
    lt_cv_dlopen_self=yes
2782
 
    ])
2783
 
    ;;
2784
 
 
2785
 
  *)
2786
 
    AC_CHECK_FUNC([shl_load],
2787
 
          [lt_cv_dlopen="shl_load"],
2788
 
      [AC_CHECK_LIB([dld], [shl_load],
2789
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2790
 
        [AC_CHECK_FUNC([dlopen],
2791
 
              [lt_cv_dlopen="dlopen"],
2792
 
          [AC_CHECK_LIB([dl], [dlopen],
2793
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2794
 
            [AC_CHECK_LIB([svld], [dlopen],
2795
 
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2796
 
              [AC_CHECK_LIB([dld], [dld_link],
2797
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2798
 
              ])
2799
 
            ])
2800
 
          ])
2801
 
        ])
2802
 
      ])
2803
 
    ;;
2804
 
  esac
2805
 
 
2806
 
  if test "x$lt_cv_dlopen" != xno; then
2807
 
    enable_dlopen=yes
2808
 
  else
2809
 
    enable_dlopen=no
2810
 
  fi
2811
 
 
2812
 
  case $lt_cv_dlopen in
2813
 
  dlopen)
2814
 
    save_CPPFLAGS="$CPPFLAGS"
2815
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2816
 
 
2817
 
    save_LDFLAGS="$LDFLAGS"
2818
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2819
 
 
2820
 
    save_LIBS="$LIBS"
2821
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
2822
 
 
2823
 
    AC_CACHE_CHECK([whether a program can dlopen itself],
2824
 
          lt_cv_dlopen_self, [dnl
2825
 
          _LT_TRY_DLOPEN_SELF(
2826
 
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2827
 
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2828
 
    ])
2829
 
 
2830
 
    if test "x$lt_cv_dlopen_self" = xyes; then
2831
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2832
 
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2833
 
          lt_cv_dlopen_self_static, [dnl
2834
 
          _LT_TRY_DLOPEN_SELF(
2835
 
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2836
 
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
2837
 
      ])
2838
 
    fi
2839
 
 
2840
 
    CPPFLAGS="$save_CPPFLAGS"
2841
 
    LDFLAGS="$save_LDFLAGS"
2842
 
    LIBS="$save_LIBS"
2843
 
    ;;
2844
 
  esac
2845
 
 
2846
 
  case $lt_cv_dlopen_self in
2847
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2848
 
  *) enable_dlopen_self=unknown ;;
2849
 
  esac
2850
 
 
2851
 
  case $lt_cv_dlopen_self_static in
2852
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2853
 
  *) enable_dlopen_self_static=unknown ;;
2854
 
  esac
2855
 
fi
2856
 
_LT_DECL([dlopen_support], [enable_dlopen], [0],
2857
 
         [Whether dlopen is supported])
2858
 
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2859
 
         [Whether dlopen of programs is supported])
2860
 
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2861
 
         [Whether dlopen of statically linked programs is supported])
2862
 
])# LT_SYS_DLOPEN_SELF
2863
 
 
2864
 
# Old name:
2865
 
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2866
 
dnl aclocal-1.4 backwards compatibility:
2867
 
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2868
 
 
2869
 
 
2870
 
# _LT_COMPILER_C_O([TAGNAME])
2871
 
# ---------------------------
2872
 
# Check to see if options -c and -o are simultaneously supported by compiler.
2873
 
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2874
 
m4_defun([_LT_COMPILER_C_O],
2875
 
[m4_require([_LT_DECL_SED])dnl
2876
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2877
 
m4_require([_LT_TAG_COMPILER])dnl
2878
 
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2879
 
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2880
 
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2881
 
   $RM -r conftest 2>/dev/null
2882
 
   mkdir conftest
2883
 
   cd conftest
2884
 
   mkdir out
2885
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2886
 
 
2887
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
2888
 
   # Insert the option either (1) after the last *FLAGS variable, or
2889
 
   # (2) before a word containing "conftest.", or (3) at the end.
2890
 
   # Note that $ac_compile itself does not contain backslashes and begins
2891
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
2892
 
   lt_compile=`echo "$ac_compile" | $SED \
2893
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2894
 
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2895
 
   -e 's:$: $lt_compiler_flag:'`
2896
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2897
 
   (eval "$lt_compile" 2>out/conftest.err)
2898
 
   ac_status=$?
2899
 
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
2900
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2901
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
2902
 
   then
2903
 
     # The compiler can only warn and ignore the option if not recognized
2904
 
     # So say no if there are warnings
2905
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2906
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2907
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2908
 
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2909
 
     fi
2910
 
   fi
2911
 
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
2912
 
   $RM conftest*
2913
 
   # SGI C++ compiler will create directory out/ii_files/ for
2914
 
   # template instantiation
2915
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2916
 
   $RM out/* && rmdir out
2917
 
   cd ..
2918
 
   $RM -r conftest
2919
 
   $RM conftest*
2920
 
])
2921
 
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2922
 
        [Does compiler simultaneously support -c and -o options?])
2923
 
])# _LT_COMPILER_C_O
2924
 
 
2925
 
 
2926
 
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2927
 
# ----------------------------------
2928
 
# Check to see if we can do hard links to lock some files if needed
2929
 
m4_defun([_LT_COMPILER_FILE_LOCKS],
2930
 
[m4_require([_LT_ENABLE_LOCK])dnl
2931
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2932
 
_LT_COMPILER_C_O([$1])
2933
 
 
2934
 
hard_links="nottested"
2935
 
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2936
 
  # do not overwrite the value of need_locks provided by the user
2937
 
  AC_MSG_CHECKING([if we can lock with hard links])
2938
 
  hard_links=yes
2939
 
  $RM conftest*
2940
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2941
 
  touch conftest.a
2942
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
2943
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2944
 
  AC_MSG_RESULT([$hard_links])
2945
 
  if test "$hard_links" = no; then
2946
 
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2947
 
    need_locks=warn
2948
 
  fi
2949
 
else
2950
 
  need_locks=no
2951
 
fi
2952
 
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2953
 
])# _LT_COMPILER_FILE_LOCKS
2954
 
 
2955
 
 
2956
 
# _LT_CHECK_OBJDIR
2957
 
# ----------------
2958
 
m4_defun([_LT_CHECK_OBJDIR],
2959
 
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2960
 
[rm -f .libs 2>/dev/null
2961
 
mkdir .libs 2>/dev/null
2962
 
if test -d .libs; then
2963
 
  lt_cv_objdir=.libs
2964
 
else
2965
 
  # MS-DOS does not allow filenames that begin with a dot.
2966
 
  lt_cv_objdir=_libs
2967
 
fi
2968
 
rmdir .libs 2>/dev/null])
2969
 
objdir=$lt_cv_objdir
2970
 
_LT_DECL([], [objdir], [0],
2971
 
         [The name of the directory that contains temporary libtool files])dnl
2972
 
m4_pattern_allow([LT_OBJDIR])dnl
2973
 
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2974
 
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
2975
 
])# _LT_CHECK_OBJDIR
2976
 
 
2977
 
 
2978
 
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2979
 
# --------------------------------------
2980
 
# Check hardcoding attributes.
2981
 
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2982
 
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2983
 
_LT_TAGVAR(hardcode_action, $1)=
2984
 
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2985
 
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2986
 
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2987
 
 
2988
 
  # We can hardcode non-existent directories.
2989
 
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2990
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2991
 
     # have to relink, otherwise we might link with an installed library
2992
 
     # when we should be linking with a yet-to-be-installed one
2993
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2994
 
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2995
 
    # Linking always hardcodes the temporary library directory.
2996
 
    _LT_TAGVAR(hardcode_action, $1)=relink
2997
 
  else
2998
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
2999
 
    _LT_TAGVAR(hardcode_action, $1)=immediate
3000
 
  fi
3001
 
else
3002
 
  # We cannot hardcode anything, or else we can only hardcode existing
3003
 
  # directories.
3004
 
  _LT_TAGVAR(hardcode_action, $1)=unsupported
3005
 
fi
3006
 
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
3007
 
 
3008
 
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
3009
 
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
3010
 
  # Fast installation is not supported
3011
 
  enable_fast_install=no
3012
 
elif test "$shlibpath_overrides_runpath" = yes ||
3013
 
     test "$enable_shared" = no; then
3014
 
  # Fast installation is not necessary
3015
 
  enable_fast_install=needless
3016
 
fi
3017
 
_LT_TAGDECL([], [hardcode_action], [0],
3018
 
    [How to hardcode a shared library path into an executable])
3019
 
])# _LT_LINKER_HARDCODE_LIBPATH
3020
 
 
3021
 
 
3022
 
# _LT_CMD_STRIPLIB
3023
 
# ----------------
3024
 
m4_defun([_LT_CMD_STRIPLIB],
3025
 
[m4_require([_LT_DECL_EGREP])
3026
 
striplib=
3027
 
old_striplib=
3028
 
AC_MSG_CHECKING([whether stripping libraries is possible])
3029
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
3030
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3031
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3032
 
  AC_MSG_RESULT([yes])
3033
 
else
3034
 
# FIXME - insert some real tests, host_os isn't really good enough
3035
 
  case $host_os in
3036
 
  darwin*)
3037
 
    if test -n "$STRIP" ; then
3038
 
      striplib="$STRIP -x"
3039
 
      old_striplib="$STRIP -S"
3040
 
      AC_MSG_RESULT([yes])
3041
 
    else
3042
 
      AC_MSG_RESULT([no])
3043
 
    fi
3044
 
    ;;
3045
 
  *)
3046
 
    AC_MSG_RESULT([no])
3047
 
    ;;
3048
 
  esac
3049
 
fi
3050
 
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
3051
 
_LT_DECL([], [striplib], [1])
3052
 
])# _LT_CMD_STRIPLIB
3053
 
 
3054
 
 
3055
 
# _LT_SYS_DYNAMIC_LINKER([TAG])
3056
 
# -----------------------------
3057
 
# PORTME Fill in your ld.so characteristics
3058
 
m4_defun([_LT_SYS_DYNAMIC_LINKER],
3059
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3060
 
m4_require([_LT_DECL_EGREP])dnl
3061
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3062
 
m4_require([_LT_DECL_OBJDUMP])dnl
3063
 
m4_require([_LT_DECL_SED])dnl
3064
 
AC_MSG_CHECKING([dynamic linker characteristics])
3065
 
m4_if([$1],
3066
 
        [], [
3067
 
if test "$GCC" = yes; then
3068
 
  case $host_os in
3069
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3070
 
    *) lt_awk_arg="/^libraries:/" ;;
3071
 
  esac
3072
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3073
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
3074
 
    # if the path contains ";" then we assume it to be the separator
3075
 
    # otherwise default to the standard path separator (i.e. ":") - it is
3076
 
    # assumed that no part of a normal pathname contains ";" but that should
3077
 
    # okay in the real world where ";" in dirpaths is itself problematic.
3078
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
3079
 
  else
3080
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
3081
 
  fi
3082
 
  # Ok, now we have the path, separated by spaces, we can step through it
3083
 
  # and add multilib dir if necessary.
3084
 
  lt_tmp_lt_search_path_spec=
3085
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
3086
 
  for lt_sys_path in $lt_search_path_spec; do
3087
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
3088
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
3089
 
    else
3090
 
      test -d "$lt_sys_path" && \
3091
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3092
 
    fi
3093
 
  done
3094
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
3095
 
BEGIN {RS=" "; FS="/|\n";} {
3096
 
  lt_foo="";
3097
 
  lt_count=0;
3098
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
3099
 
    if ($lt_i != "" && $lt_i != ".") {
3100
 
      if ($lt_i == "..") {
3101
 
        lt_count++;
3102
 
      } else {
3103
 
        if (lt_count == 0) {
3104
 
          lt_foo="/" $lt_i lt_foo;
3105
 
        } else {
3106
 
          lt_count--;
3107
 
        }
3108
 
      }
3109
 
    }
3110
 
  }
3111
 
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3112
 
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3113
 
}'`
3114
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
3115
 
else
3116
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3117
 
fi])
3118
 
library_names_spec=
3119
 
libname_spec='lib$name'
3120
 
soname_spec=
3121
 
shrext_cmds=".so"
3122
 
postinstall_cmds=
3123
 
postuninstall_cmds=
3124
 
finish_cmds=
3125
 
finish_eval=
3126
 
shlibpath_var=
3127
 
shlibpath_overrides_runpath=unknown
3128
 
version_type=none
3129
 
dynamic_linker="$host_os ld.so"
3130
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
3131
 
need_lib_prefix=unknown
3132
 
hardcode_into_libs=no
3133
 
 
3134
 
# when you set need_version to no, make sure it does not cause -set_version
3135
 
# flags to be left without arguments
3136
 
need_version=unknown
3137
 
 
3138
 
case $host_os in
3139
 
aix3*)
3140
 
  version_type=linux
3141
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3142
 
  shlibpath_var=LIBPATH
3143
 
 
3144
 
  # AIX 3 has no versioning support, so we append a major version to the name.
3145
 
  soname_spec='${libname}${release}${shared_ext}$major'
3146
 
  ;;
3147
 
 
3148
 
aix[[4-9]]*)
3149
 
  version_type=linux
3150
 
  need_lib_prefix=no
3151
 
  need_version=no
3152
 
  hardcode_into_libs=yes
3153
 
  if test "$host_cpu" = ia64; then
3154
 
    # AIX 5 supports IA64
3155
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
3156
 
    shlibpath_var=LD_LIBRARY_PATH
3157
 
  else
3158
 
    # With GCC up to 2.95.x, collect2 would create an import file
3159
 
    # for dependence libraries.  The import file would start with
3160
 
    # the line `#! .'.  This would cause the generated library to
3161
 
    # depend on `.', always an invalid library.  This was fixed in
3162
 
    # development snapshots of GCC prior to 3.0.
3163
 
    case $host_os in
3164
 
      aix4 | aix4.[[01]] | aix4.[[01]].*)
3165
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3166
 
           echo ' yes '
3167
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
3168
 
        :
3169
 
      else
3170
 
        can_build_shared=no
3171
 
      fi
3172
 
      ;;
3173
 
    esac
3174
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3175
 
    # soname into executable. Probably we can add versioning support to
3176
 
    # collect2, so additional links can be useful in future.
3177
 
    if test "$aix_use_runtimelinking" = yes; then
3178
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3179
 
      # instead of lib<name>.a to let people know that these are not
3180
 
      # typical AIX shared libraries.
3181
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3182
 
    else
3183
 
      # We preserve .a as extension for shared libraries through AIX4.2
3184
 
      # and later when we are not doing run time linking.
3185
 
      library_names_spec='${libname}${release}.a $libname.a'
3186
 
      soname_spec='${libname}${release}${shared_ext}$major'
3187
 
    fi
3188
 
    shlibpath_var=LIBPATH
3189
 
  fi
3190
 
  ;;
3191
 
 
3192
 
amigaos*)
3193
 
  case $host_cpu in
3194
 
  powerpc)
3195
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
3196
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
3197
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3198
 
    ;;
3199
 
  m68k)
3200
 
    library_names_spec='$libname.ixlibrary $libname.a'
3201
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
3202
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
3203
 
    ;;
3204
 
  esac
3205
 
  ;;
3206
 
 
3207
 
beos*)
3208
 
  library_names_spec='${libname}${shared_ext}'
3209
 
  dynamic_linker="$host_os ld.so"
3210
 
  shlibpath_var=LIBRARY_PATH
3211
 
  ;;
3212
 
 
3213
 
bsdi[[45]]*)
3214
 
  version_type=linux
3215
 
  need_version=no
3216
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3217
 
  soname_spec='${libname}${release}${shared_ext}$major'
3218
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3219
 
  shlibpath_var=LD_LIBRARY_PATH
3220
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3221
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3222
 
  # the default ld.so.conf also contains /usr/contrib/lib and
3223
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3224
 
  # libtool to hard-code these into programs
3225
 
  ;;
3226
 
 
3227
 
cygwin* | mingw* | pw32* | cegcc*)
3228
 
  version_type=windows
3229
 
  shrext_cmds=".dll"
3230
 
  need_version=no
3231
 
  need_lib_prefix=no
3232
 
 
3233
 
  case $GCC,$host_os in
3234
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
3235
 
    library_names_spec='$libname.dll.a'
3236
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
3237
 
    postinstall_cmds='base_file=`basename \${file}`~
3238
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3239
 
      dldir=$destdir/`dirname \$dlpath`~
3240
 
      test -d \$dldir || mkdir -p \$dldir~
3241
 
      $install_prog $dir/$dlname \$dldir/$dlname~
3242
 
      chmod a+x \$dldir/$dlname~
3243
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3244
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
3245
 
      fi'
3246
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3247
 
      dlpath=$dir/\$dldll~
3248
 
       $RM \$dlpath'
3249
 
    shlibpath_overrides_runpath=yes
3250
 
 
3251
 
    case $host_os in
3252
 
    cygwin*)
3253
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3254
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3255
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3256
 
      ;;
3257
 
    mingw* | cegcc*)
3258
 
      # MinGW DLLs use traditional 'lib' prefix
3259
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3260
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3261
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3262
 
        # It is most probably a Windows format PATH printed by
3263
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
3264
 
        # path with ; separators, and with drive letters. We can handle the
3265
 
        # drive letters (cygwin fileutils understands them), so leave them,
3266
 
        # especially as we might pass files found there to a mingw objdump,
3267
 
        # which wouldn't understand a cygwinified path. Ahh.
3268
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3269
 
      else
3270
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
3271
 
      fi
3272
 
      ;;
3273
 
    pw32*)
3274
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
3275
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3276
 
      ;;
3277
 
    esac
3278
 
    ;;
3279
 
 
3280
 
  *)
3281
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3282
 
    ;;
3283
 
  esac
3284
 
  dynamic_linker='Win32 ld.exe'
3285
 
  # FIXME: first we should search . and the directory the executable is in
3286
 
  shlibpath_var=PATH
3287
 
  ;;
3288
 
 
3289
 
darwin* | rhapsody*)
3290
 
  dynamic_linker="$host_os dyld"
3291
 
  version_type=darwin
3292
 
  need_lib_prefix=no
3293
 
  need_version=no
3294
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3295
 
  soname_spec='${libname}${release}${major}$shared_ext'
3296
 
  shlibpath_overrides_runpath=yes
3297
 
  shlibpath_var=DYLD_LIBRARY_PATH
3298
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3299
 
m4_if([$1], [],[
3300
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3301
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3302
 
  ;;
3303
 
 
3304
 
dgux*)
3305
 
  version_type=linux
3306
 
  need_lib_prefix=no
3307
 
  need_version=no
3308
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3309
 
  soname_spec='${libname}${release}${shared_ext}$major'
3310
 
  shlibpath_var=LD_LIBRARY_PATH
3311
 
  ;;
3312
 
 
3313
 
freebsd1*)
3314
 
  dynamic_linker=no
3315
 
  ;;
3316
 
 
3317
 
freebsd* | dragonfly*)
3318
 
  # DragonFly does not have aout.  When/if they implement a new
3319
 
  # versioning mechanism, adjust this.
3320
 
  if test -x /usr/bin/objformat; then
3321
 
    objformat=`/usr/bin/objformat`
3322
 
  else
3323
 
    case $host_os in
3324
 
    freebsd[[123]]*) objformat=aout ;;
3325
 
    *) objformat=elf ;;
3326
 
    esac
3327
 
  fi
3328
 
  version_type=freebsd-$objformat
3329
 
  case $version_type in
3330
 
    freebsd-elf*)
3331
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3332
 
      need_version=no
3333
 
      need_lib_prefix=no
3334
 
      ;;
3335
 
    freebsd-*)
3336
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3337
 
      need_version=yes
3338
 
      ;;
3339
 
  esac
3340
 
  shlibpath_var=LD_LIBRARY_PATH
3341
 
  case $host_os in
3342
 
  freebsd2*)
3343
 
    shlibpath_overrides_runpath=yes
3344
 
    ;;
3345
 
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3346
 
    shlibpath_overrides_runpath=yes
3347
 
    hardcode_into_libs=yes
3348
 
    ;;
3349
 
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3350
 
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3351
 
    shlibpath_overrides_runpath=no
3352
 
    hardcode_into_libs=yes
3353
 
    ;;
3354
 
  *) # from 4.6 on, and DragonFly
3355
 
    shlibpath_overrides_runpath=yes
3356
 
    hardcode_into_libs=yes
3357
 
    ;;
3358
 
  esac
3359
 
  ;;
3360
 
 
3361
 
gnu*)
3362
 
  version_type=linux
3363
 
  need_lib_prefix=no
3364
 
  need_version=no
3365
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3366
 
  soname_spec='${libname}${release}${shared_ext}$major'
3367
 
  shlibpath_var=LD_LIBRARY_PATH
3368
 
  hardcode_into_libs=yes
3369
 
  ;;
3370
 
 
3371
 
hpux9* | hpux10* | hpux11*)
3372
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
3373
 
  # link against other versions.
3374
 
  version_type=sunos
3375
 
  need_lib_prefix=no
3376
 
  need_version=no
3377
 
  case $host_cpu in
3378
 
  ia64*)
3379
 
    shrext_cmds='.so'
3380
 
    hardcode_into_libs=yes
3381
 
    dynamic_linker="$host_os dld.so"
3382
 
    shlibpath_var=LD_LIBRARY_PATH
3383
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3384
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3385
 
    soname_spec='${libname}${release}${shared_ext}$major'
3386
 
    if test "X$HPUX_IA64_MODE" = X32; then
3387
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3388
 
    else
3389
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3390
 
    fi
3391
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3392
 
    ;;
3393
 
  hppa*64*)
3394
 
    shrext_cmds='.sl'
3395
 
    hardcode_into_libs=yes
3396
 
    dynamic_linker="$host_os dld.sl"
3397
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3398
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3399
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3400
 
    soname_spec='${libname}${release}${shared_ext}$major'
3401
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3402
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3403
 
    ;;
3404
 
  *)
3405
 
    shrext_cmds='.sl'
3406
 
    dynamic_linker="$host_os dld.sl"
3407
 
    shlibpath_var=SHLIB_PATH
3408
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3409
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3410
 
    soname_spec='${libname}${release}${shared_ext}$major'
3411
 
    ;;
3412
 
  esac
3413
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
3414
 
  postinstall_cmds='chmod 555 $lib'
3415
 
  ;;
3416
 
 
3417
 
interix[[3-9]]*)
3418
 
  version_type=linux
3419
 
  need_lib_prefix=no
3420
 
  need_version=no
3421
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3422
 
  soname_spec='${libname}${release}${shared_ext}$major'
3423
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3424
 
  shlibpath_var=LD_LIBRARY_PATH
3425
 
  shlibpath_overrides_runpath=no
3426
 
  hardcode_into_libs=yes
3427
 
  ;;
3428
 
 
3429
 
irix5* | irix6* | nonstopux*)
3430
 
  case $host_os in
3431
 
    nonstopux*) version_type=nonstopux ;;
3432
 
    *)
3433
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
3434
 
                version_type=linux
3435
 
        else
3436
 
                version_type=irix
3437
 
        fi ;;
3438
 
  esac
3439
 
  need_lib_prefix=no
3440
 
  need_version=no
3441
 
  soname_spec='${libname}${release}${shared_ext}$major'
3442
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3443
 
  case $host_os in
3444
 
  irix5* | nonstopux*)
3445
 
    libsuff= shlibsuff=
3446
 
    ;;
3447
 
  *)
3448
 
    case $LD in # libtool.m4 will add one of these switches to LD
3449
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3450
 
      libsuff= shlibsuff= libmagic=32-bit;;
3451
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3452
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
3453
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3454
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
3455
 
    *) libsuff= shlibsuff= libmagic=never-match;;
3456
 
    esac
3457
 
    ;;
3458
 
  esac
3459
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3460
 
  shlibpath_overrides_runpath=no
3461
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3462
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3463
 
  hardcode_into_libs=yes
3464
 
  ;;
3465
 
 
3466
 
# No shared lib support for Linux oldld, aout, or coff.
3467
 
linux*oldld* | linux*aout* | linux*coff*)
3468
 
  dynamic_linker=no
3469
 
  ;;
3470
 
 
3471
 
# This must be Linux ELF.
3472
 
linux* | k*bsd*-gnu)
3473
 
  version_type=linux
3474
 
  need_lib_prefix=no
3475
 
  need_version=no
3476
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3477
 
  soname_spec='${libname}${release}${shared_ext}$major'
3478
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3479
 
  shlibpath_var=LD_LIBRARY_PATH
3480
 
  shlibpath_overrides_runpath=no
3481
 
  # Some binutils ld are patched to set DT_RUNPATH
3482
 
  save_LDFLAGS=$LDFLAGS
3483
 
  save_libdir=$libdir
3484
 
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3485
 
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3486
 
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3487
 
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3488
 
       [shlibpath_overrides_runpath=yes])])
3489
 
  LDFLAGS=$save_LDFLAGS
3490
 
  libdir=$save_libdir
3491
 
 
3492
 
  # This implies no fast_install, which is unacceptable.
3493
 
  # Some rework will be needed to allow for fast_install
3494
 
  # before this can be enabled.
3495
 
  hardcode_into_libs=yes
3496
 
 
3497
 
  # Append ld.so.conf contents to the search path
3498
 
  if test -f /etc/ld.so.conf; then
3499
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3500
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3501
 
  fi
3502
 
 
3503
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
3504
 
  # powerpc, because MkLinux only supported shared libraries with the
3505
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
3506
 
  # most powerpc-linux boxes support dynamic linking these days and
3507
 
  # people can always --disable-shared, the test was removed, and we
3508
 
  # assume the GNU/Linux dynamic linker is in use.
3509
 
  dynamic_linker='GNU/Linux ld.so'
3510
 
  ;;
3511
 
 
3512
 
netbsd*)
3513
 
  version_type=sunos
3514
 
  need_lib_prefix=no
3515
 
  need_version=no
3516
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3517
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3518
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3519
 
    dynamic_linker='NetBSD (a.out) ld.so'
3520
 
  else
3521
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3522
 
    soname_spec='${libname}${release}${shared_ext}$major'
3523
 
    dynamic_linker='NetBSD ld.elf_so'
3524
 
  fi
3525
 
  shlibpath_var=LD_LIBRARY_PATH
3526
 
  shlibpath_overrides_runpath=yes
3527
 
  hardcode_into_libs=yes
3528
 
  ;;
3529
 
 
3530
 
newsos6)
3531
 
  version_type=linux
3532
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3533
 
  shlibpath_var=LD_LIBRARY_PATH
3534
 
  shlibpath_overrides_runpath=yes
3535
 
  ;;
3536
 
 
3537
 
*nto* | *qnx*)
3538
 
  version_type=qnx
3539
 
  need_lib_prefix=no
3540
 
  need_version=no
3541
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3542
 
  soname_spec='${libname}${release}${shared_ext}$major'
3543
 
  shlibpath_var=LD_LIBRARY_PATH
3544
 
  shlibpath_overrides_runpath=no
3545
 
  hardcode_into_libs=yes
3546
 
  dynamic_linker='ldqnx.so'
3547
 
  ;;
3548
 
 
3549
 
openbsd*)
3550
 
  version_type=sunos
3551
 
  sys_lib_dlsearch_path_spec="/usr/lib"
3552
 
  need_lib_prefix=no
3553
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3554
 
  case $host_os in
3555
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
3556
 
    *)                          need_version=no  ;;
3557
 
  esac
3558
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3559
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3560
 
  shlibpath_var=LD_LIBRARY_PATH
3561
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3562
 
    case $host_os in
3563
 
      openbsd2.[[89]] | openbsd2.[[89]].*)
3564
 
        shlibpath_overrides_runpath=no
3565
 
        ;;
3566
 
      *)
3567
 
        shlibpath_overrides_runpath=yes
3568
 
        ;;
3569
 
      esac
3570
 
  else
3571
 
    shlibpath_overrides_runpath=yes
3572
 
  fi
3573
 
  ;;
3574
 
 
3575
 
os2*)
3576
 
  libname_spec='$name'
3577
 
  shrext_cmds=".dll"
3578
 
  need_lib_prefix=no
3579
 
  library_names_spec='$libname${shared_ext} $libname.a'
3580
 
  dynamic_linker='OS/2 ld.exe'
3581
 
  shlibpath_var=LIBPATH
3582
 
  ;;
3583
 
 
3584
 
osf3* | osf4* | osf5*)
3585
 
  version_type=osf
3586
 
  need_lib_prefix=no
3587
 
  need_version=no
3588
 
  soname_spec='${libname}${release}${shared_ext}$major'
3589
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3590
 
  shlibpath_var=LD_LIBRARY_PATH
3591
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3592
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3593
 
  ;;
3594
 
 
3595
 
rdos*)
3596
 
  dynamic_linker=no
3597
 
  ;;
3598
 
 
3599
 
solaris*)
3600
 
  version_type=linux
3601
 
  need_lib_prefix=no
3602
 
  need_version=no
3603
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3604
 
  soname_spec='${libname}${release}${shared_ext}$major'
3605
 
  shlibpath_var=LD_LIBRARY_PATH
3606
 
  shlibpath_overrides_runpath=yes
3607
 
  hardcode_into_libs=yes
3608
 
  # ldd complains unless libraries are executable
3609
 
  postinstall_cmds='chmod +x $lib'
3610
 
  ;;
3611
 
 
3612
 
sunos4*)
3613
 
  version_type=sunos
3614
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3615
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3616
 
  shlibpath_var=LD_LIBRARY_PATH
3617
 
  shlibpath_overrides_runpath=yes
3618
 
  if test "$with_gnu_ld" = yes; then
3619
 
    need_lib_prefix=no
3620
 
  fi
3621
 
  need_version=yes
3622
 
  ;;
3623
 
 
3624
 
sysv4 | sysv4.3*)
3625
 
  version_type=linux
3626
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3627
 
  soname_spec='${libname}${release}${shared_ext}$major'
3628
 
  shlibpath_var=LD_LIBRARY_PATH
3629
 
  case $host_vendor in
3630
 
    sni)
3631
 
      shlibpath_overrides_runpath=no
3632
 
      need_lib_prefix=no
3633
 
      runpath_var=LD_RUN_PATH
3634
 
      ;;
3635
 
    siemens)
3636
 
      need_lib_prefix=no
3637
 
      ;;
3638
 
    motorola)
3639
 
      need_lib_prefix=no
3640
 
      need_version=no
3641
 
      shlibpath_overrides_runpath=no
3642
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3643
 
      ;;
3644
 
  esac
3645
 
  ;;
3646
 
 
3647
 
sysv4*MP*)
3648
 
  if test -d /usr/nec ;then
3649
 
    version_type=linux
3650
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3651
 
    soname_spec='$libname${shared_ext}.$major'
3652
 
    shlibpath_var=LD_LIBRARY_PATH
3653
 
  fi
3654
 
  ;;
3655
 
 
3656
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3657
 
  version_type=freebsd-elf
3658
 
  need_lib_prefix=no
3659
 
  need_version=no
3660
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3661
 
  soname_spec='${libname}${release}${shared_ext}$major'
3662
 
  shlibpath_var=LD_LIBRARY_PATH
3663
 
  shlibpath_overrides_runpath=yes
3664
 
  hardcode_into_libs=yes
3665
 
  if test "$with_gnu_ld" = yes; then
3666
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3667
 
  else
3668
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3669
 
    case $host_os in
3670
 
      sco3.2v5*)
3671
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3672
 
        ;;
3673
 
    esac
3674
 
  fi
3675
 
  sys_lib_dlsearch_path_spec='/usr/lib'
3676
 
  ;;
3677
 
 
3678
 
tpf*)
3679
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
3680
 
  version_type=linux
3681
 
  need_lib_prefix=no
3682
 
  need_version=no
3683
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3684
 
  shlibpath_var=LD_LIBRARY_PATH
3685
 
  shlibpath_overrides_runpath=no
3686
 
  hardcode_into_libs=yes
3687
 
  ;;
3688
 
 
3689
 
uts4*)
3690
 
  version_type=linux
3691
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3692
 
  soname_spec='${libname}${release}${shared_ext}$major'
3693
 
  shlibpath_var=LD_LIBRARY_PATH
3694
 
  ;;
3695
 
 
3696
 
*)
3697
 
  dynamic_linker=no
3698
 
  ;;
3699
 
esac
3700
 
AC_MSG_RESULT([$dynamic_linker])
3701
 
test "$dynamic_linker" = no && can_build_shared=no
3702
 
 
3703
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3704
 
if test "$GCC" = yes; then
3705
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3706
 
fi
3707
 
 
3708
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3709
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3710
 
fi
3711
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3712
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3713
 
fi
3714
 
 
3715
 
_LT_DECL([], [variables_saved_for_relink], [1],
3716
 
    [Variables whose values should be saved in libtool wrapper scripts and
3717
 
    restored at link time])
3718
 
_LT_DECL([], [need_lib_prefix], [0],
3719
 
    [Do we need the "lib" prefix for modules?])
3720
 
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3721
 
_LT_DECL([], [version_type], [0], [Library versioning type])
3722
 
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
3723
 
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3724
 
_LT_DECL([], [shlibpath_overrides_runpath], [0],
3725
 
    [Is shlibpath searched before the hard-coded library search path?])
3726
 
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3727
 
_LT_DECL([], [library_names_spec], [1],
3728
 
    [[List of archive names.  First name is the real one, the rest are links.
3729
 
    The last name is the one that the linker finds with -lNAME]])
3730
 
_LT_DECL([], [soname_spec], [1],
3731
 
    [[The coded name of the library, if different from the real name]])
3732
 
_LT_DECL([], [postinstall_cmds], [2],
3733
 
    [Command to use after installation of a shared archive])
3734
 
_LT_DECL([], [postuninstall_cmds], [2],
3735
 
    [Command to use after uninstallation of a shared archive])
3736
 
_LT_DECL([], [finish_cmds], [2],
3737
 
    [Commands used to finish a libtool library installation in a directory])
3738
 
_LT_DECL([], [finish_eval], [1],
3739
 
    [[As "finish_cmds", except a single script fragment to be evaled but
3740
 
    not shown]])
3741
 
_LT_DECL([], [hardcode_into_libs], [0],
3742
 
    [Whether we should hardcode library paths into libraries])
3743
 
_LT_DECL([], [sys_lib_search_path_spec], [2],
3744
 
    [Compile-time system search path for libraries])
3745
 
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3746
 
    [Run-time system search path for libraries])
3747
 
])# _LT_SYS_DYNAMIC_LINKER
3748
 
 
3749
 
 
3750
 
# _LT_PATH_TOOL_PREFIX(TOOL)
3751
 
# --------------------------
3752
 
# find a file program which can recognize shared library
3753
 
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3754
 
[m4_require([_LT_DECL_EGREP])dnl
3755
 
AC_MSG_CHECKING([for $1])
3756
 
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3757
 
[case $MAGIC_CMD in
3758
 
[[\\/*] |  ?:[\\/]*])
3759
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3760
 
  ;;
3761
 
*)
3762
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
3763
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3764
 
dnl $ac_dummy forces splitting on constant user-supplied paths.
3765
 
dnl POSIX.2 word splitting is done only on the output of word expansions,
3766
 
dnl not every word.  This closes a longstanding sh security hole.
3767
 
  ac_dummy="m4_if([$2], , $PATH, [$2])"
3768
 
  for ac_dir in $ac_dummy; do
3769
 
    IFS="$lt_save_ifs"
3770
 
    test -z "$ac_dir" && ac_dir=.
3771
 
    if test -f $ac_dir/$1; then
3772
 
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3773
 
      if test -n "$file_magic_test_file"; then
3774
 
        case $deplibs_check_method in
3775
 
        "file_magic "*)
3776
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3777
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3778
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3779
 
            $EGREP "$file_magic_regex" > /dev/null; then
3780
 
            :
3781
 
          else
3782
 
            cat <<_LT_EOF 1>&2
3783
 
 
3784
 
*** Warning: the command libtool uses to detect shared libraries,
3785
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
3786
 
*** The result is that libtool may fail to recognize shared libraries
3787
 
*** as such.  This will affect the creation of libtool libraries that
3788
 
*** depend on shared libraries, but programs linked with such libtool
3789
 
*** libraries will work regardless of this problem.  Nevertheless, you
3790
 
*** may want to report the problem to your system manager and/or to
3791
 
*** bug-libtool@gnu.org
3792
 
 
3793
 
_LT_EOF
3794
 
          fi ;;
3795
 
        esac
3796
 
      fi
3797
 
      break
3798
 
    fi
3799
 
  done
3800
 
  IFS="$lt_save_ifs"
3801
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
3802
 
  ;;
3803
 
esac])
3804
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3805
 
if test -n "$MAGIC_CMD"; then
3806
 
  AC_MSG_RESULT($MAGIC_CMD)
3807
 
else
3808
 
  AC_MSG_RESULT(no)
3809
 
fi
3810
 
_LT_DECL([], [MAGIC_CMD], [0],
3811
 
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3812
 
])# _LT_PATH_TOOL_PREFIX
3813
 
 
3814
 
# Old name:
3815
 
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3816
 
dnl aclocal-1.4 backwards compatibility:
3817
 
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3818
 
 
3819
 
 
3820
 
# _LT_PATH_MAGIC
3821
 
# --------------
3822
 
# find a file program which can recognize a shared library
3823
 
m4_defun([_LT_PATH_MAGIC],
3824
 
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3825
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
3826
 
  if test -n "$ac_tool_prefix"; then
3827
 
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3828
 
  else
3829
 
    MAGIC_CMD=:
3830
 
  fi
3831
 
fi
3832
 
])# _LT_PATH_MAGIC
3833
 
 
3834
 
 
3835
 
# LT_PATH_LD
3836
 
# ----------
3837
 
# find the pathname to the GNU or non-GNU linker
3838
 
AC_DEFUN([LT_PATH_LD],
3839
 
[AC_REQUIRE([AC_PROG_CC])dnl
3840
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3841
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3842
 
m4_require([_LT_DECL_SED])dnl
3843
 
m4_require([_LT_DECL_EGREP])dnl
3844
 
 
3845
 
AC_ARG_WITH([gnu-ld],
3846
 
    [AS_HELP_STRING([--with-gnu-ld],
3847
 
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3848
 
    [test "$withval" = no || with_gnu_ld=yes],
3849
 
    [with_gnu_ld=no])dnl
3850
 
 
3851
 
ac_prog=ld
3852
 
if test "$GCC" = yes; then
3853
 
  # Check if gcc -print-prog-name=ld gives a path.
3854
 
  AC_MSG_CHECKING([for ld used by $CC])
3855
 
  case $host in
3856
 
  *-*-mingw*)
3857
 
    # gcc leaves a trailing carriage return which upsets mingw
3858
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3859
 
  *)
3860
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3861
 
  esac
3862
 
  case $ac_prog in
3863
 
    # Accept absolute paths.
3864
 
    [[\\/]]* | ?:[[\\/]]*)
3865
 
      re_direlt='/[[^/]][[^/]]*/\.\./'
3866
 
      # Canonicalize the pathname of ld
3867
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3868
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3869
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3870
 
      done
3871
 
      test -z "$LD" && LD="$ac_prog"
3872
 
      ;;
3873
 
  "")
3874
 
    # If it fails, then pretend we aren't using GCC.
3875
 
    ac_prog=ld
3876
 
    ;;
3877
 
  *)
3878
 
    # If it is relative, then search for the first ld in PATH.
3879
 
    with_gnu_ld=unknown
3880
 
    ;;
3881
 
  esac
3882
 
elif test "$with_gnu_ld" = yes; then
3883
 
  AC_MSG_CHECKING([for GNU ld])
3884
 
else
3885
 
  AC_MSG_CHECKING([for non-GNU ld])
3886
 
fi
3887
 
AC_CACHE_VAL(lt_cv_path_LD,
3888
 
[if test -z "$LD"; then
3889
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3890
 
  for ac_dir in $PATH; do
3891
 
    IFS="$lt_save_ifs"
3892
 
    test -z "$ac_dir" && ac_dir=.
3893
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3894
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
3895
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
3896
 
      # but apparently some variants of GNU ld only accept -v.
3897
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
3898
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3899
 
      *GNU* | *'with BFD'*)
3900
 
        test "$with_gnu_ld" != no && break
3901
 
        ;;
3902
 
      *)
3903
 
        test "$with_gnu_ld" != yes && break
3904
 
        ;;
3905
 
      esac
3906
 
    fi
3907
 
  done
3908
 
  IFS="$lt_save_ifs"
3909
 
else
3910
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3911
 
fi])
3912
 
LD="$lt_cv_path_LD"
3913
 
if test -n "$LD"; then
3914
 
  AC_MSG_RESULT($LD)
3915
 
else
3916
 
  AC_MSG_RESULT(no)
3917
 
fi
3918
 
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3919
 
_LT_PATH_LD_GNU
3920
 
AC_SUBST([LD])
3921
 
 
3922
 
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3923
 
])# LT_PATH_LD
3924
 
 
3925
 
# Old names:
3926
 
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3927
 
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3928
 
dnl aclocal-1.4 backwards compatibility:
3929
 
dnl AC_DEFUN([AM_PROG_LD], [])
3930
 
dnl AC_DEFUN([AC_PROG_LD], [])
3931
 
 
3932
 
 
3933
 
# _LT_PATH_LD_GNU
3934
 
#- --------------
3935
 
m4_defun([_LT_PATH_LD_GNU],
3936
 
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3937
 
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3938
 
case `$LD -v 2>&1 </dev/null` in
3939
 
*GNU* | *'with BFD'*)
3940
 
  lt_cv_prog_gnu_ld=yes
3941
 
  ;;
3942
 
*)
3943
 
  lt_cv_prog_gnu_ld=no
3944
 
  ;;
3945
 
esac])
3946
 
with_gnu_ld=$lt_cv_prog_gnu_ld
3947
 
])# _LT_PATH_LD_GNU
3948
 
 
3949
 
 
3950
 
# _LT_CMD_RELOAD
3951
 
# --------------
3952
 
# find reload flag for linker
3953
 
#   -- PORTME Some linkers may need a different reload flag.
3954
 
m4_defun([_LT_CMD_RELOAD],
3955
 
[AC_CACHE_CHECK([for $LD option to reload object files],
3956
 
  lt_cv_ld_reload_flag,
3957
 
  [lt_cv_ld_reload_flag='-r'])
3958
 
reload_flag=$lt_cv_ld_reload_flag
3959
 
case $reload_flag in
3960
 
"" | " "*) ;;
3961
 
*) reload_flag=" $reload_flag" ;;
3962
 
esac
3963
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3964
 
case $host_os in
3965
 
  darwin*)
3966
 
    if test "$GCC" = yes; then
3967
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3968
 
    else
3969
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3970
 
    fi
3971
 
    ;;
3972
 
esac
3973
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3974
 
_LT_DECL([], [reload_cmds], [2])dnl
3975
 
])# _LT_CMD_RELOAD
3976
 
 
3977
 
 
3978
 
# _LT_CHECK_MAGIC_METHOD
3979
 
# ----------------------
3980
 
# how to check for library dependencies
3981
 
#  -- PORTME fill in with the dynamic library characteristics
3982
 
m4_defun([_LT_CHECK_MAGIC_METHOD],
3983
 
[m4_require([_LT_DECL_EGREP])
3984
 
m4_require([_LT_DECL_OBJDUMP])
3985
 
AC_CACHE_CHECK([how to recognize dependent libraries],
3986
 
lt_cv_deplibs_check_method,
3987
 
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3988
 
lt_cv_file_magic_test_file=
3989
 
lt_cv_deplibs_check_method='unknown'
3990
 
# Need to set the preceding variable on all platforms that support
3991
 
# interlibrary dependencies.
3992
 
# 'none' -- dependencies not supported.
3993
 
# `unknown' -- same as none, but documents that we really don't know.
3994
 
# 'pass_all' -- all dependencies passed with no checks.
3995
 
# 'test_compile' -- check by making test program.
3996
 
# 'file_magic [[regex]]' -- check by looking for files in library path
3997
 
# which responds to the $file_magic_cmd with a given extended regex.
3998
 
# If you have `file' or equivalent on your system and you're not sure
3999
 
# whether `pass_all' will *always* work, you probably want this one.
4000
 
 
4001
 
case $host_os in
4002
 
aix[[4-9]]*)
4003
 
  lt_cv_deplibs_check_method=pass_all
4004
 
  ;;
4005
 
 
4006
 
beos*)
4007
 
  lt_cv_deplibs_check_method=pass_all
4008
 
  ;;
4009
 
 
4010
 
bsdi[[45]]*)
4011
 
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
4012
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4013
 
  lt_cv_file_magic_test_file=/shlib/libc.so
4014
 
  ;;
4015
 
 
4016
 
cygwin*)
4017
 
  # func_win32_libid is a shell function defined in ltmain.sh
4018
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4019
 
  lt_cv_file_magic_cmd='func_win32_libid'
4020
 
  ;;
4021
 
 
4022
 
mingw* | pw32*)
4023
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
4024
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4025
 
  # unless we find 'file', for example because we are cross-compiling.
4026
 
  if ( file / ) >/dev/null 2>&1; then
4027
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4028
 
    lt_cv_file_magic_cmd='func_win32_libid'
4029
 
  else
4030
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4031
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4032
 
  fi
4033
 
  ;;
4034
 
 
4035
 
cegcc)
4036
 
  # use the weaker test based on 'objdump'. See mingw*.
4037
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4038
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4039
 
  ;;
4040
 
 
4041
 
darwin* | rhapsody*)
4042
 
  lt_cv_deplibs_check_method=pass_all
4043
 
  ;;
4044
 
 
4045
 
freebsd* | dragonfly*)
4046
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4047
 
    case $host_cpu in
4048
 
    i*86 )
4049
 
      # Not sure whether the presence of OpenBSD here was a mistake.
4050
 
      # Let's accept both of them until this is cleared up.
4051
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
4052
 
      lt_cv_file_magic_cmd=/usr/bin/file
4053
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4054
 
      ;;
4055
 
    esac
4056
 
  else
4057
 
    lt_cv_deplibs_check_method=pass_all
4058
 
  fi
4059
 
  ;;
4060
 
 
4061
 
gnu*)
4062
 
  lt_cv_deplibs_check_method=pass_all
4063
 
  ;;
4064
 
 
4065
 
hpux10.20* | hpux11*)
4066
 
  lt_cv_file_magic_cmd=/usr/bin/file
4067
 
  case $host_cpu in
4068
 
  ia64*)
4069
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
4070
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4071
 
    ;;
4072
 
  hppa*64*)
4073
 
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
4074
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4075
 
    ;;
4076
 
  *)
4077
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
4078
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4079
 
    ;;
4080
 
  esac
4081
 
  ;;
4082
 
 
4083
 
interix[[3-9]]*)
4084
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4085
 
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
4086
 
  ;;
4087
 
 
4088
 
irix5* | irix6* | nonstopux*)
4089
 
  case $LD in
4090
 
  *-32|*"-32 ") libmagic=32-bit;;
4091
 
  *-n32|*"-n32 ") libmagic=N32;;
4092
 
  *-64|*"-64 ") libmagic=64-bit;;
4093
 
  *) libmagic=never-match;;
4094
 
  esac
4095
 
  lt_cv_deplibs_check_method=pass_all
4096
 
  ;;
4097
 
 
4098
 
# This must be Linux ELF.
4099
 
linux* | k*bsd*-gnu)
4100
 
  lt_cv_deplibs_check_method=pass_all
4101
 
  ;;
4102
 
 
4103
 
netbsd*)
4104
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4105
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4106
 
  else
4107
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4108
 
  fi
4109
 
  ;;
4110
 
 
4111
 
newos6*)
4112
 
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4113
 
  lt_cv_file_magic_cmd=/usr/bin/file
4114
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4115
 
  ;;
4116
 
 
4117
 
*nto* | *qnx*)
4118
 
  lt_cv_deplibs_check_method=pass_all
4119
 
  ;;
4120
 
 
4121
 
openbsd*)
4122
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4123
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4124
 
  else
4125
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4126
 
  fi
4127
 
  ;;
4128
 
 
4129
 
osf3* | osf4* | osf5*)
4130
 
  lt_cv_deplibs_check_method=pass_all
4131
 
  ;;
4132
 
 
4133
 
rdos*)
4134
 
  lt_cv_deplibs_check_method=pass_all
4135
 
  ;;
4136
 
 
4137
 
solaris*)
4138
 
  lt_cv_deplibs_check_method=pass_all
4139
 
  ;;
4140
 
 
4141
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4142
 
  lt_cv_deplibs_check_method=pass_all
4143
 
  ;;
4144
 
 
4145
 
sysv4 | sysv4.3*)
4146
 
  case $host_vendor in
4147
 
  motorola)
4148
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
4149
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4150
 
    ;;
4151
 
  ncr)
4152
 
    lt_cv_deplibs_check_method=pass_all
4153
 
    ;;
4154
 
  sequent)
4155
 
    lt_cv_file_magic_cmd='/bin/file'
4156
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4157
 
    ;;
4158
 
  sni)
4159
 
    lt_cv_file_magic_cmd='/bin/file'
4160
 
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4161
 
    lt_cv_file_magic_test_file=/lib/libc.so
4162
 
    ;;
4163
 
  siemens)
4164
 
    lt_cv_deplibs_check_method=pass_all
4165
 
    ;;
4166
 
  pc)
4167
 
    lt_cv_deplibs_check_method=pass_all
4168
 
    ;;
4169
 
  esac
4170
 
  ;;
4171
 
 
4172
 
tpf*)
4173
 
  lt_cv_deplibs_check_method=pass_all
4174
 
  ;;
4175
 
esac
4176
 
])
4177
 
file_magic_cmd=$lt_cv_file_magic_cmd
4178
 
deplibs_check_method=$lt_cv_deplibs_check_method
4179
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4180
 
 
4181
 
_LT_DECL([], [deplibs_check_method], [1],
4182
 
    [Method to check whether dependent libraries are shared objects])
4183
 
_LT_DECL([], [file_magic_cmd], [1],
4184
 
    [Command to use when deplibs_check_method == "file_magic"])
4185
 
])# _LT_CHECK_MAGIC_METHOD
4186
 
 
4187
 
 
4188
 
# LT_PATH_NM
4189
 
# ----------
4190
 
# find the pathname to a BSD- or MS-compatible name lister
4191
 
AC_DEFUN([LT_PATH_NM],
4192
 
[AC_REQUIRE([AC_PROG_CC])dnl
4193
 
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
4194
 
[if test -n "$NM"; then
4195
 
  # Let the user override the test.
4196
 
  lt_cv_path_NM="$NM"
4197
 
else
4198
 
  lt_nm_to_check="${ac_tool_prefix}nm"
4199
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4200
 
    lt_nm_to_check="$lt_nm_to_check nm"
4201
 
  fi
4202
 
  for lt_tmp_nm in $lt_nm_to_check; do
4203
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4204
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4205
 
      IFS="$lt_save_ifs"
4206
 
      test -z "$ac_dir" && ac_dir=.
4207
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
4208
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4209
 
        # Check to see if the nm accepts a BSD-compat flag.
4210
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4211
 
        #   nm: unknown option "B" ignored
4212
 
        # Tru64's nm complains that /dev/null is an invalid object file
4213
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4214
 
        */dev/null* | *'Invalid file or object type'*)
4215
 
          lt_cv_path_NM="$tmp_nm -B"
4216
 
          break
4217
 
          ;;
4218
 
        *)
4219
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4220
 
          */dev/null*)
4221
 
            lt_cv_path_NM="$tmp_nm -p"
4222
 
            break
4223
 
            ;;
4224
 
          *)
4225
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4226
 
            continue # so that we can try to find one that supports BSD flags
4227
 
            ;;
4228
 
          esac
4229
 
          ;;
4230
 
        esac
4231
 
      fi
4232
 
    done
4233
 
    IFS="$lt_save_ifs"
4234
 
  done
4235
 
  : ${lt_cv_path_NM=no}
4236
 
fi])
4237
 
if test "$lt_cv_path_NM" != "no"; then
4238
 
  NM="$lt_cv_path_NM"
4239
 
else
4240
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
4241
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
4242
 
  AC_SUBST([DUMPBIN])
4243
 
  if test "$DUMPBIN" != ":"; then
4244
 
    NM="$DUMPBIN"
4245
 
  fi
4246
 
fi
4247
 
test -z "$NM" && NM=nm
4248
 
AC_SUBST([NM])
4249
 
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
4250
 
 
4251
 
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4252
 
  [lt_cv_nm_interface="BSD nm"
4253
 
  echo "int some_variable = 0;" > conftest.$ac_ext
4254
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4255
 
  (eval "$ac_compile" 2>conftest.err)
4256
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
4257
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4258
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4259
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
4260
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
4261
 
  cat conftest.out >&AS_MESSAGE_LOG_FD
4262
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4263
 
    lt_cv_nm_interface="MS dumpbin"
4264
 
  fi
4265
 
  rm -f conftest*])
4266
 
])# LT_PATH_NM
4267
 
 
4268
 
# Old names:
4269
 
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
4270
 
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
4271
 
dnl aclocal-1.4 backwards compatibility:
4272
 
dnl AC_DEFUN([AM_PROG_NM], [])
4273
 
dnl AC_DEFUN([AC_PROG_NM], [])
4274
 
 
4275
 
 
4276
 
# LT_LIB_M
4277
 
# --------
4278
 
# check for math library
4279
 
AC_DEFUN([LT_LIB_M],
4280
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4281
 
LIBM=
4282
 
case $host in
4283
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
4284
 
  # These system don't have libm, or don't need it
4285
 
  ;;
4286
 
*-ncr-sysv4.3*)
4287
 
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4288
 
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4289
 
  ;;
4290
 
*)
4291
 
  AC_CHECK_LIB(m, cos, LIBM="-lm")
4292
 
  ;;
4293
 
esac
4294
 
AC_SUBST([LIBM])
4295
 
])# LT_LIB_M
4296
 
 
4297
 
# Old name:
4298
 
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4299
 
dnl aclocal-1.4 backwards compatibility:
4300
 
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4301
 
 
4302
 
 
4303
 
# _LT_COMPILER_NO_RTTI([TAGNAME])
4304
 
# -------------------------------
4305
 
m4_defun([_LT_COMPILER_NO_RTTI],
4306
 
[m4_require([_LT_TAG_COMPILER])dnl
4307
 
 
4308
 
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4309
 
 
4310
 
if test "$GCC" = yes; then
4311
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4312
 
 
4313
 
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4314
 
    lt_cv_prog_compiler_rtti_exceptions,
4315
 
    [-fno-rtti -fno-exceptions], [],
4316
 
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4317
 
fi
4318
 
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4319
 
        [Compiler flag to turn off builtin functions])
4320
 
])# _LT_COMPILER_NO_RTTI
4321
 
 
4322
 
 
4323
 
# _LT_CMD_GLOBAL_SYMBOLS
4324
 
# ----------------------
4325
 
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4326
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4327
 
AC_REQUIRE([AC_PROG_CC])dnl
4328
 
AC_REQUIRE([LT_PATH_NM])dnl
4329
 
AC_REQUIRE([LT_PATH_LD])dnl
4330
 
m4_require([_LT_DECL_SED])dnl
4331
 
m4_require([_LT_DECL_EGREP])dnl
4332
 
m4_require([_LT_TAG_COMPILER])dnl
4333
 
 
4334
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
4335
 
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4336
 
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4337
 
[
4338
 
# These are sane defaults that work on at least a few old systems.
4339
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4340
 
 
4341
 
# Character class describing NM global symbol codes.
4342
 
symcode='[[BCDEGRST]]'
4343
 
 
4344
 
# Regexp to match symbols that can be accessed directly from C.
4345
 
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4346
 
 
4347
 
# Define system-specific variables.
4348
 
case $host_os in
4349
 
aix*)
4350
 
  symcode='[[BCDT]]'
4351
 
  ;;
4352
 
cygwin* | mingw* | pw32* | cegcc*)
4353
 
  symcode='[[ABCDGISTW]]'
4354
 
  ;;
4355
 
hpux*)
4356
 
  if test "$host_cpu" = ia64; then
4357
 
    symcode='[[ABCDEGRST]]'
4358
 
  fi
4359
 
  ;;
4360
 
irix* | nonstopux*)
4361
 
  symcode='[[BCDEGRST]]'
4362
 
  ;;
4363
 
osf*)
4364
 
  symcode='[[BCDEGQRST]]'
4365
 
  ;;
4366
 
solaris*)
4367
 
  symcode='[[BDRT]]'
4368
 
  ;;
4369
 
sco3.2v5*)
4370
 
  symcode='[[DT]]'
4371
 
  ;;
4372
 
sysv4.2uw2*)
4373
 
  symcode='[[DT]]'
4374
 
  ;;
4375
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4376
 
  symcode='[[ABDT]]'
4377
 
  ;;
4378
 
sysv4)
4379
 
  symcode='[[DFNSTU]]'
4380
 
  ;;
4381
 
esac
4382
 
 
4383
 
# If we're using GNU nm, then use its standard symbol codes.
4384
 
case `$NM -V 2>&1` in
4385
 
*GNU* | *'with BFD'*)
4386
 
  symcode='[[ABCDGIRSTW]]' ;;
4387
 
esac
4388
 
 
4389
 
# Transform an extracted symbol line into a proper C declaration.
4390
 
# Some systems (esp. on ia64) link data and code symbols differently,
4391
 
# so use this general approach.
4392
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4393
 
 
4394
 
# Transform an extracted symbol line into symbol name and symbol address
4395
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
4396
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
4397
 
 
4398
 
# Handle CRLF in mingw tool chain
4399
 
opt_cr=
4400
 
case $build_os in
4401
 
mingw*)
4402
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4403
 
  ;;
4404
 
esac
4405
 
 
4406
 
# Try without a prefix underscore, then with it.
4407
 
for ac_symprfx in "" "_"; do
4408
 
 
4409
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4410
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4411
 
 
4412
 
  # Write the raw and C identifiers.
4413
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4414
 
    # Fake it for dumpbin and say T for any non-static function
4415
 
    # and D for any global variable.
4416
 
    # Also find C++ and __fastcall symbols from MSVC++,
4417
 
    # which start with @ or ?.
4418
 
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
4419
 
"     {last_section=section; section=\$ 3};"\
4420
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4421
 
"     \$ 0!~/External *\|/{next};"\
4422
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4423
 
"     {if(hide[section]) next};"\
4424
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4425
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4426
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4427
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4428
 
"     ' prfx=^$ac_symprfx]"
4429
 
  else
4430
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4431
 
  fi
4432
 
 
4433
 
  # Check to see that the pipe works correctly.
4434
 
  pipe_works=no
4435
 
 
4436
 
  rm -f conftest*
4437
 
  cat > conftest.$ac_ext <<_LT_EOF
4438
 
#ifdef __cplusplus
4439
 
extern "C" {
4440
 
#endif
4441
 
char nm_test_var;
4442
 
void nm_test_func(void);
4443
 
void nm_test_func(void){}
4444
 
#ifdef __cplusplus
4445
 
}
4446
 
#endif
4447
 
int main(){nm_test_var='a';nm_test_func();return(0);}
4448
 
_LT_EOF
4449
 
 
4450
 
  if AC_TRY_EVAL(ac_compile); then
4451
 
    # Now try to grab the symbols.
4452
 
    nlist=conftest.nm
4453
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4454
 
      # Try sorting and uniquifying the output.
4455
 
      if sort "$nlist" | uniq > "$nlist"T; then
4456
 
        mv -f "$nlist"T "$nlist"
4457
 
      else
4458
 
        rm -f "$nlist"T
4459
 
      fi
4460
 
 
4461
 
      # Make sure that we snagged all the symbols we need.
4462
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4463
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4464
 
          cat <<_LT_EOF > conftest.$ac_ext
4465
 
#ifdef __cplusplus
4466
 
extern "C" {
4467
 
#endif
4468
 
 
4469
 
_LT_EOF
4470
 
          # Now generate the symbol file.
4471
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4472
 
 
4473
 
          cat <<_LT_EOF >> conftest.$ac_ext
4474
 
 
4475
 
/* The mapping between symbol names and symbols.  */
4476
 
const struct {
4477
 
  const char *name;
4478
 
  void       *address;
4479
 
}
4480
 
lt__PROGRAM__LTX_preloaded_symbols[[]] =
4481
 
{
4482
 
  { "@PROGRAM@", (void *) 0 },
4483
 
_LT_EOF
4484
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4485
 
          cat <<\_LT_EOF >> conftest.$ac_ext
4486
 
  {0, (void *) 0}
4487
 
};
4488
 
 
4489
 
/* This works around a problem in FreeBSD linker */
4490
 
#ifdef FREEBSD_WORKAROUND
4491
 
static const void *lt_preloaded_setup() {
4492
 
  return lt__PROGRAM__LTX_preloaded_symbols;
4493
 
}
4494
 
#endif
4495
 
 
4496
 
#ifdef __cplusplus
4497
 
}
4498
 
#endif
4499
 
_LT_EOF
4500
 
          # Now try linking the two files.
4501
 
          mv conftest.$ac_objext conftstm.$ac_objext
4502
 
          lt_save_LIBS="$LIBS"
4503
 
          lt_save_CFLAGS="$CFLAGS"
4504
 
          LIBS="conftstm.$ac_objext"
4505
 
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4506
 
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4507
 
            pipe_works=yes
4508
 
          fi
4509
 
          LIBS="$lt_save_LIBS"
4510
 
          CFLAGS="$lt_save_CFLAGS"
4511
 
        else
4512
 
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4513
 
        fi
4514
 
      else
4515
 
        echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4516
 
      fi
4517
 
    else
4518
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4519
 
    fi
4520
 
  else
4521
 
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4522
 
    cat conftest.$ac_ext >&5
4523
 
  fi
4524
 
  rm -rf conftest* conftst*
4525
 
 
4526
 
  # Do not use the global_symbol_pipe unless it works.
4527
 
  if test "$pipe_works" = yes; then
4528
 
    break
4529
 
  else
4530
 
    lt_cv_sys_global_symbol_pipe=
4531
 
  fi
4532
 
done
4533
 
])
4534
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4535
 
  lt_cv_sys_global_symbol_to_cdecl=
4536
 
fi
4537
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4538
 
  AC_MSG_RESULT(failed)
4539
 
else
4540
 
  AC_MSG_RESULT(ok)
4541
 
fi
4542
 
 
4543
 
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4544
 
    [Take the output of nm and produce a listing of raw symbols and C names])
4545
 
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4546
 
    [Transform the output of nm in a proper C declaration])
4547
 
_LT_DECL([global_symbol_to_c_name_address],
4548
 
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
4549
 
    [Transform the output of nm in a C name address pair])
4550
 
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4551
 
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4552
 
    [Transform the output of nm in a C name address pair when lib prefix is needed])
4553
 
]) # _LT_CMD_GLOBAL_SYMBOLS
4554
 
 
4555
 
 
4556
 
# _LT_COMPILER_PIC([TAGNAME])
4557
 
# ---------------------------
4558
 
m4_defun([_LT_COMPILER_PIC],
4559
 
[m4_require([_LT_TAG_COMPILER])dnl
4560
 
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4561
 
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4562
 
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4563
 
 
4564
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
4565
 
m4_if([$1], [CXX], [
4566
 
  # C++ specific cases for pic, static, wl, etc.
4567
 
  if test "$GXX" = yes; then
4568
 
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4569
 
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4570
 
 
4571
 
    case $host_os in
4572
 
    aix*)
4573
 
      # All AIX code is PIC.
4574
 
      if test "$host_cpu" = ia64; then
4575
 
        # AIX 5 now supports IA64 processor
4576
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4577
 
      fi
4578
 
      ;;
4579
 
 
4580
 
    amigaos*)
4581
 
      case $host_cpu in
4582
 
      powerpc)
4583
 
            # see comment about AmigaOS4 .so support
4584
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4585
 
        ;;
4586
 
      m68k)
4587
 
            # FIXME: we need at least 68020 code to build shared libraries, but
4588
 
            # adding the `-m68020' flag to GCC prevents building anything better,
4589
 
            # like `-m68040'.
4590
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4591
 
        ;;
4592
 
      esac
4593
 
      ;;
4594
 
 
4595
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4596
 
      # PIC is the default for these OSes.
4597
 
      ;;
4598
 
    mingw* | cygwin* | os2* | pw32* | cegcc*)
4599
 
      # This hack is so that the source file can tell whether it is being
4600
 
      # built for inclusion in a dll (and should export symbols for example).
4601
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4602
 
      # (--disable-auto-import) libraries
4603
 
      m4_if([$1], [GCJ], [],
4604
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4605
 
      ;;
4606
 
    darwin* | rhapsody*)
4607
 
      # PIC is the default on this platform
4608
 
      # Common symbols not allowed in MH_DYLIB files
4609
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4610
 
      ;;
4611
 
    *djgpp*)
4612
 
      # DJGPP does not support shared libraries at all
4613
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4614
 
      ;;
4615
 
    interix[[3-9]]*)
4616
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4617
 
      # Instead, we relocate shared libraries at runtime.
4618
 
      ;;
4619
 
    sysv4*MP*)
4620
 
      if test -d /usr/nec; then
4621
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4622
 
      fi
4623
 
      ;;
4624
 
    hpux*)
4625
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4626
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4627
 
      # sets the default TLS model and affects inlining.
4628
 
      case $host_cpu in
4629
 
      hppa*64*)
4630
 
        ;;
4631
 
      *)
4632
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4633
 
        ;;
4634
 
      esac
4635
 
      ;;
4636
 
    *qnx* | *nto*)
4637
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4638
 
      # it will coredump.
4639
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4640
 
      ;;
4641
 
    *)
4642
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4643
 
      ;;
4644
 
    esac
4645
 
  else
4646
 
    case $host_os in
4647
 
      aix[[4-9]]*)
4648
 
        # All AIX code is PIC.
4649
 
        if test "$host_cpu" = ia64; then
4650
 
          # AIX 5 now supports IA64 processor
4651
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4652
 
        else
4653
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4654
 
        fi
4655
 
        ;;
4656
 
      chorus*)
4657
 
        case $cc_basename in
4658
 
        cxch68*)
4659
 
          # Green Hills C++ Compiler
4660
 
          # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
4661
 
          ;;
4662
 
        esac
4663
 
        ;;
4664
 
      dgux*)
4665
 
        case $cc_basename in
4666
 
          ec++*)
4667
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4668
 
            ;;
4669
 
          ghcx*)
4670
 
            # Green Hills C++ Compiler
4671
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4672
 
            ;;
4673
 
          *)
4674
 
            ;;
4675
 
        esac
4676
 
        ;;
4677
 
      freebsd* | dragonfly*)
4678
 
        # FreeBSD uses GNU C++
4679
 
        ;;
4680
 
      hpux9* | hpux10* | hpux11*)
4681
 
        case $cc_basename in
4682
 
          CC*)
4683
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4684
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4685
 
            if test "$host_cpu" != ia64; then
4686
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4687
 
            fi
4688
 
            ;;
4689
 
          aCC*)
4690
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4691
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4692
 
            case $host_cpu in
4693
 
            hppa*64*|ia64*)
4694
 
              # +Z the default
4695
 
              ;;
4696
 
            *)
4697
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4698
 
              ;;
4699
 
            esac
4700
 
            ;;
4701
 
          *)
4702
 
            ;;
4703
 
        esac
4704
 
        ;;
4705
 
      interix*)
4706
 
        # This is c89, which is MS Visual C++ (no shared libs)
4707
 
        # Anyone wants to do a port?
4708
 
        ;;
4709
 
      irix5* | irix6* | nonstopux*)
4710
 
        case $cc_basename in
4711
 
          CC*)
4712
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4713
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4714
 
            # CC pic flag -KPIC is the default.
4715
 
            ;;
4716
 
          *)
4717
 
            ;;
4718
 
        esac
4719
 
        ;;
4720
 
      linux* | k*bsd*-gnu)
4721
 
        case $cc_basename in
4722
 
          KCC*)
4723
 
            # KAI C++ Compiler
4724
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4725
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4726
 
            ;;
4727
 
          ecpc* )
4728
 
            # old Intel C++ for x86_64 which still supported -KPIC.
4729
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4730
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4731
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4732
 
            ;;
4733
 
          icpc* )
4734
 
            # Intel C++, used to be incompatible with GCC.
4735
 
            # ICC 10 doesn't accept -KPIC any more.
4736
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4737
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4738
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4739
 
            ;;
4740
 
          pgCC* | pgcpp*)
4741
 
            # Portland Group C++ compiler
4742
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4743
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4744
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4745
 
            ;;
4746
 
          cxx*)
4747
 
            # Compaq C++
4748
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
4749
 
            # Linux and Compaq Tru64 Unix objects are PIC.
4750
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4751
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4752
 
            ;;
4753
 
          xlc* | xlC*)
4754
 
            # IBM XL 8.0 on PPC
4755
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4756
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4757
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4758
 
            ;;
4759
 
          *)
4760
 
            case `$CC -V 2>&1 | sed 5q` in
4761
 
            *Sun\ C*)
4762
 
              # Sun C++ 5.9
4763
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4764
 
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4765
 
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4766
 
              ;;
4767
 
            esac
4768
 
            ;;
4769
 
        esac
4770
 
        ;;
4771
 
      lynxos*)
4772
 
        ;;
4773
 
      m88k*)
4774
 
        ;;
4775
 
      mvs*)
4776
 
        case $cc_basename in
4777
 
          cxx*)
4778
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4779
 
            ;;
4780
 
          *)
4781
 
            ;;
4782
 
        esac
4783
 
        ;;
4784
 
      netbsd*)
4785
 
        ;;
4786
 
      *qnx* | *nto*)
4787
 
        # QNX uses GNU C++, but need to define -shared option too, otherwise
4788
 
        # it will coredump.
4789
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4790
 
        ;;
4791
 
      osf3* | osf4* | osf5*)
4792
 
        case $cc_basename in
4793
 
          KCC*)
4794
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4795
 
            ;;
4796
 
          RCC*)
4797
 
            # Rational C++ 2.4.1
4798
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4799
 
            ;;
4800
 
          cxx*)
4801
 
            # Digital/Compaq C++
4802
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4803
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
4804
 
            # Linux and Compaq Tru64 Unix objects are PIC.
4805
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4806
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4807
 
            ;;
4808
 
          *)
4809
 
            ;;
4810
 
        esac
4811
 
        ;;
4812
 
      psos*)
4813
 
        ;;
4814
 
      solaris*)
4815
 
        case $cc_basename in
4816
 
          CC*)
4817
 
            # Sun C++ 4.2, 5.x and Centerline C++
4818
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4819
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4820
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4821
 
            ;;
4822
 
          gcx*)
4823
 
            # Green Hills C++ Compiler
4824
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4825
 
            ;;
4826
 
          *)
4827
 
            ;;
4828
 
        esac
4829
 
        ;;
4830
 
      sunos4*)
4831
 
        case $cc_basename in
4832
 
          CC*)
4833
 
            # Sun C++ 4.x
4834
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4835
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4836
 
            ;;
4837
 
          lcc*)
4838
 
            # Lucid
4839
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4840
 
            ;;
4841
 
          *)
4842
 
            ;;
4843
 
        esac
4844
 
        ;;
4845
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4846
 
        case $cc_basename in
4847
 
          CC*)
4848
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4849
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4850
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4851
 
            ;;
4852
 
        esac
4853
 
        ;;
4854
 
      tandem*)
4855
 
        case $cc_basename in
4856
 
          NCC*)
4857
 
            # NonStop-UX NCC 3.20
4858
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4859
 
            ;;
4860
 
          *)
4861
 
            ;;
4862
 
        esac
4863
 
        ;;
4864
 
      vxworks*)
4865
 
        ;;
4866
 
      *)
4867
 
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4868
 
        ;;
4869
 
    esac
4870
 
  fi
4871
 
],
4872
 
[
4873
 
  if test "$GCC" = yes; then
4874
 
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4875
 
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4876
 
 
4877
 
    case $host_os in
4878
 
      aix*)
4879
 
      # All AIX code is PIC.
4880
 
      if test "$host_cpu" = ia64; then
4881
 
        # AIX 5 now supports IA64 processor
4882
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4883
 
      fi
4884
 
      ;;
4885
 
 
4886
 
    amigaos*)
4887
 
      case $host_cpu in
4888
 
      powerpc)
4889
 
            # see comment about AmigaOS4 .so support
4890
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4891
 
        ;;
4892
 
      m68k)
4893
 
            # FIXME: we need at least 68020 code to build shared libraries, but
4894
 
            # adding the `-m68020' flag to GCC prevents building anything better,
4895
 
            # like `-m68040'.
4896
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4897
 
        ;;
4898
 
      esac
4899
 
      ;;
4900
 
 
4901
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4902
 
      # PIC is the default for these OSes.
4903
 
      ;;
4904
 
 
4905
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
4906
 
      # This hack is so that the source file can tell whether it is being
4907
 
      # built for inclusion in a dll (and should export symbols for example).
4908
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4909
 
      # (--disable-auto-import) libraries
4910
 
      m4_if([$1], [GCJ], [],
4911
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4912
 
      ;;
4913
 
 
4914
 
    darwin* | rhapsody*)
4915
 
      # PIC is the default on this platform
4916
 
      # Common symbols not allowed in MH_DYLIB files
4917
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4918
 
      ;;
4919
 
 
4920
 
    hpux*)
4921
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4922
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4923
 
      # sets the default TLS model and affects inlining.
4924
 
      case $host_cpu in
4925
 
      hppa*64*)
4926
 
        # +Z the default
4927
 
        ;;
4928
 
      *)
4929
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4930
 
        ;;
4931
 
      esac
4932
 
      ;;
4933
 
 
4934
 
    interix[[3-9]]*)
4935
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4936
 
      # Instead, we relocate shared libraries at runtime.
4937
 
      ;;
4938
 
 
4939
 
    msdosdjgpp*)
4940
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
4941
 
      # on systems that don't support them.
4942
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4943
 
      enable_shared=no
4944
 
      ;;
4945
 
 
4946
 
    *nto* | *qnx*)
4947
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4948
 
      # it will coredump.
4949
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4950
 
      ;;
4951
 
 
4952
 
    sysv4*MP*)
4953
 
      if test -d /usr/nec; then
4954
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4955
 
      fi
4956
 
      ;;
4957
 
 
4958
 
    *)
4959
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4960
 
      ;;
4961
 
    esac
4962
 
  else
4963
 
    # PORTME Check for flag to pass linker flags through the system compiler.
4964
 
    case $host_os in
4965
 
    aix*)
4966
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4967
 
      if test "$host_cpu" = ia64; then
4968
 
        # AIX 5 now supports IA64 processor
4969
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4970
 
      else
4971
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4972
 
      fi
4973
 
      ;;
4974
 
 
4975
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
4976
 
      # This hack is so that the source file can tell whether it is being
4977
 
      # built for inclusion in a dll (and should export symbols for example).
4978
 
      m4_if([$1], [GCJ], [],
4979
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4980
 
      ;;
4981
 
 
4982
 
    hpux9* | hpux10* | hpux11*)
4983
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4984
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4985
 
      # not for PA HP-UX.
4986
 
      case $host_cpu in
4987
 
      hppa*64*|ia64*)
4988
 
        # +Z the default
4989
 
        ;;
4990
 
      *)
4991
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4992
 
        ;;
4993
 
      esac
4994
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
4995
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4996
 
      ;;
4997
 
 
4998
 
    irix5* | irix6* | nonstopux*)
4999
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5000
 
      # PIC (with -KPIC) is the default.
5001
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5002
 
      ;;
5003
 
 
5004
 
    linux* | k*bsd*-gnu)
5005
 
      case $cc_basename in
5006
 
      # old Intel for x86_64 which still supported -KPIC.
5007
 
      ecc*)
5008
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5009
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5010
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5011
 
        ;;
5012
 
      # icc used to be incompatible with GCC.
5013
 
      # ICC 10 doesn't accept -KPIC any more.
5014
 
      icc* | ifort*)
5015
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5016
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5017
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5018
 
        ;;
5019
 
      # Lahey Fortran 8.1.
5020
 
      lf95*)
5021
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5022
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5023
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5024
 
        ;;
5025
 
      pgcc* | pgf77* | pgf90* | pgf95*)
5026
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
5027
 
        # which looks to be a dead project)
5028
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5029
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5030
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5031
 
        ;;
5032
 
      ccc*)
5033
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5034
 
        # All Alpha code is PIC.
5035
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5036
 
        ;;
5037
 
      xl*)
5038
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
5039
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5040
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5041
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5042
 
        ;;
5043
 
      *)
5044
 
        case `$CC -V 2>&1 | sed 5q` in
5045
 
        *Sun\ C*)
5046
 
          # Sun C 5.9
5047
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5048
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5049
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5050
 
          ;;
5051
 
        *Sun\ F*)
5052
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5053
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5054
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5055
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5056
 
          ;;
5057
 
        esac
5058
 
        ;;
5059
 
      esac
5060
 
      ;;
5061
 
 
5062
 
    newsos6)
5063
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5064
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5065
 
      ;;
5066
 
 
5067
 
    *nto* | *qnx*)
5068
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
5069
 
      # it will coredump.
5070
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5071
 
      ;;
5072
 
 
5073
 
    osf3* | osf4* | osf5*)
5074
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5075
 
      # All OSF/1 code is PIC.
5076
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5077
 
      ;;
5078
 
 
5079
 
    rdos*)
5080
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5081
 
      ;;
5082
 
 
5083
 
    solaris*)
5084
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5085
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5086
 
      case $cc_basename in
5087
 
      f77* | f90* | f95*)
5088
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5089
 
      *)
5090
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5091
 
      esac
5092
 
      ;;
5093
 
 
5094
 
    sunos4*)
5095
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5096
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5097
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5098
 
      ;;
5099
 
 
5100
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
5101
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5102
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5103
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5104
 
      ;;
5105
 
 
5106
 
    sysv4*MP*)
5107
 
      if test -d /usr/nec ;then
5108
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5109
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5110
 
      fi
5111
 
      ;;
5112
 
 
5113
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5114
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5115
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5116
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5117
 
      ;;
5118
 
 
5119
 
    unicos*)
5120
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5121
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5122
 
      ;;
5123
 
 
5124
 
    uts4*)
5125
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5126
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5127
 
      ;;
5128
 
 
5129
 
    *)
5130
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5131
 
      ;;
5132
 
    esac
5133
 
  fi
5134
 
])
5135
 
case $host_os in
5136
 
  # For platforms which do not support PIC, -DPIC is meaningless:
5137
 
  *djgpp*)
5138
 
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5139
 
    ;;
5140
 
  *)
5141
 
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5142
 
    ;;
5143
 
esac
5144
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5145
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5146
 
        [How to pass a linker flag through the compiler])
5147
 
 
5148
 
#
5149
 
# Check to make sure the PIC flag actually works.
5150
 
#
5151
 
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5152
 
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5153
 
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5154
 
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5155
 
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5156
 
     "" | " "*) ;;
5157
 
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5158
 
     esac],
5159
 
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5160
 
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5161
 
fi
5162
 
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5163
 
        [Additional compiler flags for building library objects])
5164
 
 
5165
 
#
5166
 
# Check to make sure the static flag actually works.
5167
 
#
5168
 
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5169
 
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5170
 
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5171
 
  $lt_tmp_static_flag,
5172
 
  [],
5173
 
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5174
 
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5175
 
        [Compiler flag to prevent dynamic linking])
5176
 
])# _LT_COMPILER_PIC
5177
 
 
5178
 
 
5179
 
# _LT_LINKER_SHLIBS([TAGNAME])
5180
 
# ----------------------------
5181
 
# See if the linker supports building shared libraries.
5182
 
m4_defun([_LT_LINKER_SHLIBS],
5183
 
[AC_REQUIRE([LT_PATH_LD])dnl
5184
 
AC_REQUIRE([LT_PATH_NM])dnl
5185
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5186
 
m4_require([_LT_DECL_EGREP])dnl
5187
 
m4_require([_LT_DECL_SED])dnl
5188
 
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5189
 
m4_require([_LT_TAG_COMPILER])dnl
5190
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5191
 
m4_if([$1], [CXX], [
5192
 
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5193
 
  case $host_os in
5194
 
  aix[[4-9]]*)
5195
 
    # If we're using GNU nm, then we don't want the "-C" option.
5196
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5197
 
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5198
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5199
 
    else
5200
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5201
 
    fi
5202
 
    ;;
5203
 
  pw32*)
5204
 
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5205
 
  ;;
5206
 
  cygwin* | mingw* | cegcc*)
5207
 
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5208
 
  ;;
5209
 
  *)
5210
 
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5211
 
  ;;
5212
 
  esac
5213
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5214
 
], [
5215
 
  runpath_var=
5216
 
  _LT_TAGVAR(allow_undefined_flag, $1)=
5217
 
  _LT_TAGVAR(always_export_symbols, $1)=no
5218
 
  _LT_TAGVAR(archive_cmds, $1)=
5219
 
  _LT_TAGVAR(archive_expsym_cmds, $1)=
5220
 
  _LT_TAGVAR(compiler_needs_object, $1)=no
5221
 
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5222
 
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5223
 
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5224
 
  _LT_TAGVAR(hardcode_automatic, $1)=no
5225
 
  _LT_TAGVAR(hardcode_direct, $1)=no
5226
 
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5227
 
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5228
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5229
 
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
5230
 
  _LT_TAGVAR(hardcode_minus_L, $1)=no
5231
 
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5232
 
  _LT_TAGVAR(inherit_rpath, $1)=no
5233
 
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
5234
 
  _LT_TAGVAR(module_cmds, $1)=
5235
 
  _LT_TAGVAR(module_expsym_cmds, $1)=
5236
 
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
5237
 
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5238
 
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
5239
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
5240
 
  # include_expsyms should be a list of space-separated symbols to be *always*
5241
 
  # included in the symbol list
5242
 
  _LT_TAGVAR(include_expsyms, $1)=
5243
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
5244
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5245
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5246
 
  # as well as any symbol that contains `d'.
5247
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5248
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5249
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
5250
 
  # the symbol is explicitly referenced.  Since portable code cannot
5251
 
  # rely on this symbol name, it's probably fine to never include it in
5252
 
  # preloaded symbol tables.
5253
 
  # Exclude shared library initialization/finalization symbols.
5254
 
dnl Note also adjust exclude_expsyms for C++ above.
5255
 
  extract_expsyms_cmds=
5256
 
 
5257
 
  case $host_os in
5258
 
  cygwin* | mingw* | pw32* | cegcc*)
5259
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5260
 
    # When not using gcc, we currently assume that we are using
5261
 
    # Microsoft Visual C++.
5262
 
    if test "$GCC" != yes; then
5263
 
      with_gnu_ld=no
5264
 
    fi
5265
 
    ;;
5266
 
  interix*)
5267
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
5268
 
    with_gnu_ld=yes
5269
 
    ;;
5270
 
  openbsd*)
5271
 
    with_gnu_ld=no
5272
 
    ;;
5273
 
  esac
5274
 
 
5275
 
  _LT_TAGVAR(ld_shlibs, $1)=yes
5276
 
  if test "$with_gnu_ld" = yes; then
5277
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
5278
 
    wlarc='${wl}'
5279
 
 
5280
 
    # Set some defaults for GNU ld with shared library support. These
5281
 
    # are reset later if shared libraries are not supported. Putting them
5282
 
    # here allows them to be overridden if necessary.
5283
 
    runpath_var=LD_RUN_PATH
5284
 
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5285
 
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5286
 
    # ancient GNU ld didn't support --whole-archive et. al.
5287
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5288
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5289
 
    else
5290
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
5291
 
    fi
5292
 
    supports_anon_versioning=no
5293
 
    case `$LD -v 2>&1` in
5294
 
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5295
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5296
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5297
 
      *\ 2.11.*) ;; # other 2.11 versions
5298
 
      *) supports_anon_versioning=yes ;;
5299
 
    esac
5300
 
 
5301
 
    # See if GNU ld supports shared libraries.
5302
 
    case $host_os in
5303
 
    aix[[3-9]]*)
5304
 
      # On AIX/PPC, the GNU linker is very broken
5305
 
      if test "$host_cpu" != ia64; then
5306
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5307
 
        cat <<_LT_EOF 1>&2
5308
 
 
5309
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5310
 
*** to be unable to reliably create shared libraries on AIX.
5311
 
*** Therefore, libtool is disabling shared libraries support.  If you
5312
 
*** really care for shared libraries, you may want to modify your PATH
5313
 
*** so that a non-GNU linker is found, and then restart.
5314
 
 
5315
 
_LT_EOF
5316
 
      fi
5317
 
      ;;
5318
 
 
5319
 
    amigaos*)
5320
 
      case $host_cpu in
5321
 
      powerpc)
5322
 
            # see comment about AmigaOS4 .so support
5323
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5324
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5325
 
        ;;
5326
 
      m68k)
5327
 
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5328
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5329
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5330
 
        ;;
5331
 
      esac
5332
 
      ;;
5333
 
 
5334
 
    beos*)
5335
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5336
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5337
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5338
 
        # support --undefined.  This deserves some investigation.  FIXME
5339
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5340
 
      else
5341
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5342
 
      fi
5343
 
      ;;
5344
 
 
5345
 
    cygwin* | mingw* | pw32* | cegcc*)
5346
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5347
 
      # as there is no search path for DLLs.
5348
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5349
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5350
 
      _LT_TAGVAR(always_export_symbols, $1)=no
5351
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5352
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5353
 
 
5354
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5355
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5356
 
        # If the export-symbols file already is a .def file (1st line
5357
 
        # is EXPORTS), use it as is; otherwise, prepend...
5358
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5359
 
          cp $export_symbols $output_objdir/$soname.def;
5360
 
        else
5361
 
          echo EXPORTS > $output_objdir/$soname.def;
5362
 
          cat $export_symbols >> $output_objdir/$soname.def;
5363
 
        fi~
5364
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5365
 
      else
5366
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5367
 
      fi
5368
 
      ;;
5369
 
 
5370
 
    interix[[3-9]]*)
5371
 
      _LT_TAGVAR(hardcode_direct, $1)=no
5372
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5373
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5374
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5375
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5376
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
5377
 
      # default) and relocated if they conflict, which is a slow very memory
5378
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
5379
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5380
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5381
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5382
 
      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5383
 
      ;;
5384
 
 
5385
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
5386
 
      tmp_diet=no
5387
 
      if test "$host_os" = linux-dietlibc; then
5388
 
        case $cc_basename in
5389
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
5390
 
        esac
5391
 
      fi
5392
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5393
 
         && test "$tmp_diet" = no
5394
 
      then
5395
 
        tmp_addflag=
5396
 
        tmp_sharedflag='-shared'
5397
 
        case $cc_basename,$host_cpu in
5398
 
        pgcc*)                          # Portland Group C compiler
5399
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5400
 
          tmp_addflag=' $pic_flag'
5401
 
          ;;
5402
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
5403
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5404
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
5405
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
5406
 
          tmp_addflag=' -i_dynamic' ;;
5407
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
5408
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
5409
 
        ifc* | ifort*)                  # Intel Fortran compiler
5410
 
          tmp_addflag=' -nofor_main' ;;
5411
 
        lf95*)                          # Lahey Fortran 8.1
5412
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
5413
 
          tmp_sharedflag='--shared' ;;
5414
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
5415
 
          tmp_sharedflag='-qmkshrobj'
5416
 
          tmp_addflag= ;;
5417
 
        esac
5418
 
        case `$CC -V 2>&1 | sed 5q` in
5419
 
        *Sun\ C*)                       # Sun C 5.9
5420
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5421
 
          _LT_TAGVAR(compiler_needs_object, $1)=yes
5422
 
          tmp_sharedflag='-G' ;;
5423
 
        *Sun\ F*)                       # Sun Fortran 8.3
5424
 
          tmp_sharedflag='-G' ;;
5425
 
        esac
5426
 
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5427
 
 
5428
 
        if test "x$supports_anon_versioning" = xyes; then
5429
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5430
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5431
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
5432
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5433
 
        fi
5434
 
 
5435
 
        case $cc_basename in
5436
 
        xlf*)
5437
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5438
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5439
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5440
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5441
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
5442
 
          if test "x$supports_anon_versioning" = xyes; then
5443
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5444
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5445
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
5446
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5447
 
          fi
5448
 
          ;;
5449
 
        esac
5450
 
      else
5451
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5452
 
      fi
5453
 
      ;;
5454
 
 
5455
 
    netbsd*)
5456
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5457
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5458
 
        wlarc=
5459
 
      else
5460
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5461
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5462
 
      fi
5463
 
      ;;
5464
 
 
5465
 
    solaris*)
5466
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5467
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5468
 
        cat <<_LT_EOF 1>&2
5469
 
 
5470
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5471
 
*** create shared libraries on Solaris systems.  Therefore, libtool
5472
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
5473
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
5474
 
*** your PATH or compiler configuration so that the native linker is
5475
 
*** used, and then restart.
5476
 
 
5477
 
_LT_EOF
5478
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5479
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5480
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5481
 
      else
5482
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5483
 
      fi
5484
 
      ;;
5485
 
 
5486
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5487
 
      case `$LD -v 2>&1` in
5488
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5489
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5490
 
        cat <<_LT_EOF 1>&2
5491
 
 
5492
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5493
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
5494
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
5495
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
5496
 
*** your PATH or compiler configuration so that the native linker is
5497
 
*** used, and then restart.
5498
 
 
5499
 
_LT_EOF
5500
 
        ;;
5501
 
        *)
5502
 
          # For security reasons, it is highly recommended that you always
5503
 
          # use absolute paths for naming shared libraries, and exclude the
5504
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
5505
 
          # requires that you compile everything twice, which is a pain.
5506
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5507
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5508
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5509
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5510
 
          else
5511
 
            _LT_TAGVAR(ld_shlibs, $1)=no
5512
 
          fi
5513
 
        ;;
5514
 
      esac
5515
 
      ;;
5516
 
 
5517
 
    sunos4*)
5518
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5519
 
      wlarc=
5520
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5521
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5522
 
      ;;
5523
 
 
5524
 
    *)
5525
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5526
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5527
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5528
 
      else
5529
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5530
 
      fi
5531
 
      ;;
5532
 
    esac
5533
 
 
5534
 
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5535
 
      runpath_var=
5536
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5537
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5538
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
5539
 
    fi
5540
 
  else
5541
 
    # PORTME fill in a description of your system's linker (not GNU ld)
5542
 
    case $host_os in
5543
 
    aix3*)
5544
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5545
 
      _LT_TAGVAR(always_export_symbols, $1)=yes
5546
 
      _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5547
 
      # Note: this linker hardcodes the directories in LIBPATH if there
5548
 
      # are no directories specified by -L.
5549
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5550
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5551
 
        # Neither direct hardcoding nor static linking is supported with a
5552
 
        # broken collect2.
5553
 
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
5554
 
      fi
5555
 
      ;;
5556
 
 
5557
 
    aix[[4-9]]*)
5558
 
      if test "$host_cpu" = ia64; then
5559
 
        # On IA64, the linker does run time linking by default, so we don't
5560
 
        # have to do anything special.
5561
 
        aix_use_runtimelinking=no
5562
 
        exp_sym_flag='-Bexport'
5563
 
        no_entry_flag=""
5564
 
      else
5565
 
        # If we're using GNU nm, then we don't want the "-C" option.
5566
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
5567
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5568
 
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5569
 
        else
5570
 
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5571
 
        fi
5572
 
        aix_use_runtimelinking=no
5573
 
 
5574
 
        # Test if we are trying to use run time linking or normal
5575
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5576
 
        # need to do runtime linking.
5577
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5578
 
          for ld_flag in $LDFLAGS; do
5579
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5580
 
            aix_use_runtimelinking=yes
5581
 
            break
5582
 
          fi
5583
 
          done
5584
 
          ;;
5585
 
        esac
5586
 
 
5587
 
        exp_sym_flag='-bexport'
5588
 
        no_entry_flag='-bnoentry'
5589
 
      fi
5590
 
 
5591
 
      # When large executables or shared objects are built, AIX ld can
5592
 
      # have problems creating the table of contents.  If linking a library
5593
 
      # or program results in "error TOC overflow" add -mminimal-toc to
5594
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5595
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5596
 
 
5597
 
      _LT_TAGVAR(archive_cmds, $1)=''
5598
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5599
 
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5600
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5601
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5602
 
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5603
 
 
5604
 
      if test "$GCC" = yes; then
5605
 
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
5606
 
        # We only want to do this on AIX 4.2 and lower, the check
5607
 
        # below for broken collect2 doesn't work under 4.3+
5608
 
          collect2name=`${CC} -print-prog-name=collect2`
5609
 
          if test -f "$collect2name" &&
5610
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5611
 
          then
5612
 
          # We have reworked collect2
5613
 
          :
5614
 
          else
5615
 
          # We have old collect2
5616
 
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
5617
 
          # It fails to find uninstalled libraries when the uninstalled
5618
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
5619
 
          # to unsupported forces relinking
5620
 
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
5621
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5622
 
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
5623
 
          fi
5624
 
          ;;
5625
 
        esac
5626
 
        shared_flag='-shared'
5627
 
        if test "$aix_use_runtimelinking" = yes; then
5628
 
          shared_flag="$shared_flag "'${wl}-G'
5629
 
        fi
5630
 
      else
5631
 
        # not using gcc
5632
 
        if test "$host_cpu" = ia64; then
5633
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5634
 
        # chokes on -Wl,-G. The following line is correct:
5635
 
          shared_flag='-G'
5636
 
        else
5637
 
          if test "$aix_use_runtimelinking" = yes; then
5638
 
            shared_flag='${wl}-G'
5639
 
          else
5640
 
            shared_flag='${wl}-bM:SRE'
5641
 
          fi
5642
 
        fi
5643
 
      fi
5644
 
 
5645
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5646
 
      # It seems that -bexpall does not export symbols beginning with
5647
 
      # underscore (_), so it is better to generate a list of symbols to export.
5648
 
      _LT_TAGVAR(always_export_symbols, $1)=yes
5649
 
      if test "$aix_use_runtimelinking" = yes; then
5650
 
        # Warning - without using the other runtime loading flags (-brtl),
5651
 
        # -berok will link without error, but may produce a broken library.
5652
 
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5653
 
        # Determine the default libpath from the value encoded in an
5654
 
        # empty executable.
5655
 
        _LT_SYS_MODULE_PATH_AIX
5656
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5657
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5658
 
      else
5659
 
        if test "$host_cpu" = ia64; then
5660
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5661
 
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5662
 
          _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5663
 
        else
5664
 
         # Determine the default libpath from the value encoded in an
5665
 
         # empty executable.
5666
 
         _LT_SYS_MODULE_PATH_AIX
5667
 
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5668
 
          # Warning - without using the other run time loading flags,
5669
 
          # -berok will link without error, but may produce a broken library.
5670
 
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5671
 
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5672
 
          # Exported symbols can be pulled into shared objects from archives
5673
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5674
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5675
 
          # This is similar to how AIX traditionally builds its shared libraries.
5676
 
          _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5677
 
        fi
5678
 
      fi
5679
 
      ;;
5680
 
 
5681
 
    amigaos*)
5682
 
      case $host_cpu in
5683
 
      powerpc)
5684
 
            # see comment about AmigaOS4 .so support
5685
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5686
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5687
 
        ;;
5688
 
      m68k)
5689
 
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5690
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5691
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5692
 
        ;;
5693
 
      esac
5694
 
      ;;
5695
 
 
5696
 
    bsdi[[45]]*)
5697
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5698
 
      ;;
5699
 
 
5700
 
    cygwin* | mingw* | pw32* | cegcc*)
5701
 
      # When not using gcc, we currently assume that we are using
5702
 
      # Microsoft Visual C++.
5703
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
5704
 
      # no search path for DLLs.
5705
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5706
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5707
 
      # Tell ltmain to make .lib files, not .a files.
5708
 
      libext=lib
5709
 
      # Tell ltmain to make .dll files, not .so files.
5710
 
      shrext_cmds=".dll"
5711
 
      # FIXME: Setting linknames here is a bad hack.
5712
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5713
 
      # The linker will automatically build a .lib file if we build a DLL.
5714
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5715
 
      # FIXME: Should let the user specify the lib program.
5716
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5717
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5718
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5719
 
      ;;
5720
 
 
5721
 
    darwin* | rhapsody*)
5722
 
      _LT_DARWIN_LINKER_FEATURES($1)
5723
 
      ;;
5724
 
 
5725
 
    dgux*)
5726
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5727
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5728
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5729
 
      ;;
5730
 
 
5731
 
    freebsd1*)
5732
 
      _LT_TAGVAR(ld_shlibs, $1)=no
5733
 
      ;;
5734
 
 
5735
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5736
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
5737
 
    # does not break anything, and helps significantly (at the cost of a little
5738
 
    # extra space).
5739
 
    freebsd2.2*)
5740
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5741
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5742
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5743
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5744
 
      ;;
5745
 
 
5746
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5747
 
    freebsd2*)
5748
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5749
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5750
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5751
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5752
 
      ;;
5753
 
 
5754
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5755
 
    freebsd* | dragonfly*)
5756
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5757
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5758
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5759
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5760
 
      ;;
5761
 
 
5762
 
    hpux9*)
5763
 
      if test "$GCC" = yes; then
5764
 
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5765
 
      else
5766
 
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5767
 
      fi
5768
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5769
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5770
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5771
 
 
5772
 
      # hardcode_minus_L: Not really in the search PATH,
5773
 
      # but as the default location of the library.
5774
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5775
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5776
 
      ;;
5777
 
 
5778
 
    hpux10*)
5779
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5780
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5781
 
      else
5782
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5783
 
      fi
5784
 
      if test "$with_gnu_ld" = no; then
5785
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5786
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5787
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5788
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
5789
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5790
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5791
 
        # hardcode_minus_L: Not really in the search PATH,
5792
 
        # but as the default location of the library.
5793
 
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
5794
 
      fi
5795
 
      ;;
5796
 
 
5797
 
    hpux11*)
5798
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5799
 
        case $host_cpu in
5800
 
        hppa*64*)
5801
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5802
 
          ;;
5803
 
        ia64*)
5804
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5805
 
          ;;
5806
 
        *)
5807
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5808
 
          ;;
5809
 
        esac
5810
 
      else
5811
 
        case $host_cpu in
5812
 
        hppa*64*)
5813
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5814
 
          ;;
5815
 
        ia64*)
5816
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5817
 
          ;;
5818
 
        *)
5819
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5820
 
          ;;
5821
 
        esac
5822
 
      fi
5823
 
      if test "$with_gnu_ld" = no; then
5824
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5825
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5826
 
 
5827
 
        case $host_cpu in
5828
 
        hppa*64*|ia64*)
5829
 
          _LT_TAGVAR(hardcode_direct, $1)=no
5830
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5831
 
          ;;
5832
 
        *)
5833
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
5834
 
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5835
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5836
 
 
5837
 
          # hardcode_minus_L: Not really in the search PATH,
5838
 
          # but as the default location of the library.
5839
 
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
5840
 
          ;;
5841
 
        esac
5842
 
      fi
5843
 
      ;;
5844
 
 
5845
 
    irix5* | irix6* | nonstopux*)
5846
 
      if test "$GCC" = yes; then
5847
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5848
 
        # Try to use the -exported_symbol ld option, if it does not
5849
 
        # work, assume that -exports_file does not work either and
5850
 
        # implicitly export all symbols.
5851
 
        save_LDFLAGS="$LDFLAGS"
5852
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5853
 
        AC_LINK_IFELSE(int foo(void) {},
5854
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5855
 
        )
5856
 
        LDFLAGS="$save_LDFLAGS"
5857
 
      else
5858
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5859
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5860
 
      fi
5861
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5862
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5863
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5864
 
      _LT_TAGVAR(inherit_rpath, $1)=yes
5865
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5866
 
      ;;
5867
 
 
5868
 
    netbsd*)
5869
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5870
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5871
 
      else
5872
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5873
 
      fi
5874
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5875
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5876
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5877
 
      ;;
5878
 
 
5879
 
    newsos6)
5880
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5881
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5882
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5883
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5884
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5885
 
      ;;
5886
 
 
5887
 
    *nto* | *qnx*)
5888
 
      ;;
5889
 
 
5890
 
    openbsd*)
5891
 
      if test -f /usr/libexec/ld.so; then
5892
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
5893
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5894
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5895
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5896
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5897
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5898
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5899
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5900
 
        else
5901
 
          case $host_os in
5902
 
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5903
 
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5904
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5905
 
             ;;
5906
 
           *)
5907
 
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5908
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5909
 
             ;;
5910
 
          esac
5911
 
        fi
5912
 
      else
5913
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5914
 
      fi
5915
 
      ;;
5916
 
 
5917
 
    os2*)
5918
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5919
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5920
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5921
 
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5922
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5923
 
      ;;
5924
 
 
5925
 
    osf3*)
5926
 
      if test "$GCC" = yes; then
5927
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5928
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5929
 
      else
5930
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5931
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5932
 
      fi
5933
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5934
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5935
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5936
 
      ;;
5937
 
 
5938
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
5939
 
      if test "$GCC" = yes; then
5940
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5941
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5942
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5943
 
      else
5944
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5945
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5946
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5947
 
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5948
 
 
5949
 
        # Both c and cxx compiler support -rpath directly
5950
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5951
 
      fi
5952
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5953
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5954
 
      ;;
5955
 
 
5956
 
    solaris*)
5957
 
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5958
 
      if test "$GCC" = yes; then
5959
 
        wlarc='${wl}'
5960
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5961
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5962
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5963
 
      else
5964
 
        case `$CC -V 2>&1` in
5965
 
        *"Compilers 5.0"*)
5966
 
          wlarc=''
5967
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5968
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5969
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5970
 
          ;;
5971
 
        *)
5972
 
          wlarc='${wl}'
5973
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5974
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5975
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5976
 
          ;;
5977
 
        esac
5978
 
      fi
5979
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5980
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5981
 
      case $host_os in
5982
 
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5983
 
      *)
5984
 
        # The compiler driver will combine and reorder linker options,
5985
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
5986
 
        # but is careful enough not to reorder.
5987
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
5988
 
        if test "$GCC" = yes; then
5989
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5990
 
        else
5991
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5992
 
        fi
5993
 
        ;;
5994
 
      esac
5995
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5996
 
      ;;
5997
 
 
5998
 
    sunos4*)
5999
 
      if test "x$host_vendor" = xsequent; then
6000
 
        # Use $CC to link under sequent, because it throws in some extra .o
6001
 
        # files that make .init and .fini sections work.
6002
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6003
 
      else
6004
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6005
 
      fi
6006
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6007
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
6008
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6009
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6010
 
      ;;
6011
 
 
6012
 
    sysv4)
6013
 
      case $host_vendor in
6014
 
        sni)
6015
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6016
 
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6017
 
        ;;
6018
 
        siemens)
6019
 
          ## LD is ld it makes a PLAMLIB
6020
 
          ## CC just makes a GrossModule.
6021
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6022
 
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6023
 
          _LT_TAGVAR(hardcode_direct, $1)=no
6024
 
        ;;
6025
 
        motorola)
6026
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6027
 
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6028
 
        ;;
6029
 
      esac
6030
 
      runpath_var='LD_RUN_PATH'
6031
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6032
 
      ;;
6033
 
 
6034
 
    sysv4.3*)
6035
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6036
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6037
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6038
 
      ;;
6039
 
 
6040
 
    sysv4*MP*)
6041
 
      if test -d /usr/nec; then
6042
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6043
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6044
 
        runpath_var=LD_RUN_PATH
6045
 
        hardcode_runpath_var=yes
6046
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
6047
 
      fi
6048
 
      ;;
6049
 
 
6050
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6051
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6052
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6053
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6054
 
      runpath_var='LD_RUN_PATH'
6055
 
 
6056
 
      if test "$GCC" = yes; then
6057
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6058
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6059
 
      else
6060
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6061
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6062
 
      fi
6063
 
      ;;
6064
 
 
6065
 
    sysv5* | sco3.2v5* | sco5v6*)
6066
 
      # Note: We can NOT use -z defs as we might desire, because we do not
6067
 
      # link with -lc, and that would cause any symbols used from libc to
6068
 
      # always be unresolved, which means just about no library would
6069
 
      # ever link correctly.  If we're not using GNU ld we use -z text
6070
 
      # though, which does catch some bad symbols but isn't as heavy-handed
6071
 
      # as -z defs.
6072
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6073
 
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6074
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6075
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6076
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6077
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6078
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6079
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6080
 
      runpath_var='LD_RUN_PATH'
6081
 
 
6082
 
      if test "$GCC" = yes; then
6083
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6084
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6085
 
      else
6086
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6087
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6088
 
      fi
6089
 
      ;;
6090
 
 
6091
 
    uts4*)
6092
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6093
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6094
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6095
 
      ;;
6096
 
 
6097
 
    *)
6098
 
      _LT_TAGVAR(ld_shlibs, $1)=no
6099
 
      ;;
6100
 
    esac
6101
 
 
6102
 
    if test x$host_vendor = xsni; then
6103
 
      case $host in
6104
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6105
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6106
 
        ;;
6107
 
      esac
6108
 
    fi
6109
 
  fi
6110
 
])
6111
 
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6112
 
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6113
 
 
6114
 
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6115
 
 
6116
 
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6117
 
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6118
 
_LT_DECL([], [extract_expsyms_cmds], [2],
6119
 
    [The commands to extract the exported symbol list from a shared archive])
6120
 
 
6121
 
#
6122
 
# Do we need to explicitly link libc?
6123
 
#
6124
 
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6125
 
x|xyes)
6126
 
  # Assume -lc should be added
6127
 
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6128
 
 
6129
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
6130
 
    case $_LT_TAGVAR(archive_cmds, $1) in
6131
 
    *'~'*)
6132
 
      # FIXME: we may have to deal with multi-command sequences.
6133
 
      ;;
6134
 
    '$CC '*)
6135
 
      # Test whether the compiler implicitly links with -lc since on some
6136
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
6137
 
      # to ld, don't add -lc before -lgcc.
6138
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6139
 
      $RM conftest*
6140
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6141
 
 
6142
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6143
 
        soname=conftest
6144
 
        lib=conftest
6145
 
        libobjs=conftest.$ac_objext
6146
 
        deplibs=
6147
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6148
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6149
 
        compiler_flags=-v
6150
 
        linker_flags=-v
6151
 
        verstring=
6152
 
        output_objdir=.
6153
 
        libname=conftest
6154
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6155
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
6156
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6157
 
        then
6158
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6159
 
        else
6160
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6161
 
        fi
6162
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6163
 
      else
6164
 
        cat conftest.err 1>&5
6165
 
      fi
6166
 
      $RM conftest*
6167
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6168
 
      ;;
6169
 
    esac
6170
 
  fi
6171
 
  ;;
6172
 
esac
6173
 
 
6174
 
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6175
 
    [Whether or not to add -lc for building shared libraries])
6176
 
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6177
 
    [enable_shared_with_static_runtimes], [0],
6178
 
    [Whether or not to disallow shared libs when runtime libs are static])
6179
 
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6180
 
    [Compiler flag to allow reflexive dlopens])
6181
 
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
6182
 
    [Compiler flag to generate shared objects directly from archives])
6183
 
_LT_TAGDECL([], [compiler_needs_object], [1],
6184
 
    [Whether the compiler copes with passing no objects directly])
6185
 
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6186
 
    [Create an old-style archive from a shared archive])
6187
 
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6188
 
    [Create a temporary old-style archive to link instead of a shared archive])
6189
 
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6190
 
_LT_TAGDECL([], [archive_expsym_cmds], [2])
6191
 
_LT_TAGDECL([], [module_cmds], [2],
6192
 
    [Commands used to build a loadable module if different from building
6193
 
    a shared archive.])
6194
 
_LT_TAGDECL([], [module_expsym_cmds], [2])
6195
 
_LT_TAGDECL([], [with_gnu_ld], [1],
6196
 
    [Whether we are building with GNU ld or not])
6197
 
_LT_TAGDECL([], [allow_undefined_flag], [1],
6198
 
    [Flag that allows shared libraries with undefined symbols to be built])
6199
 
_LT_TAGDECL([], [no_undefined_flag], [1],
6200
 
    [Flag that enforces no undefined symbols])
6201
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6202
 
    [Flag to hardcode $libdir into a binary during linking.
6203
 
    This must work even if $libdir does not exist])
6204
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6205
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
6206
 
    during linking.  This must work even if $libdir does not exist]])
6207
 
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6208
 
    [Whether we need a single "-rpath" flag with a separated argument])
6209
 
_LT_TAGDECL([], [hardcode_direct], [0],
6210
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6211
 
    DIR into the resulting binary])
6212
 
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6213
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6214
 
    DIR into the resulting binary and the resulting library dependency is
6215
 
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
6216
 
    library is relocated])
6217
 
_LT_TAGDECL([], [hardcode_minus_L], [0],
6218
 
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6219
 
    into the resulting binary])
6220
 
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6221
 
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6222
 
    into the resulting binary])
6223
 
_LT_TAGDECL([], [hardcode_automatic], [0],
6224
 
    [Set to "yes" if building a shared library automatically hardcodes DIR
6225
 
    into the library and all subsequent libraries and executables linked
6226
 
    against it])
6227
 
_LT_TAGDECL([], [inherit_rpath], [0],
6228
 
    [Set to yes if linker adds runtime paths of dependent libraries
6229
 
    to runtime path list])
6230
 
_LT_TAGDECL([], [link_all_deplibs], [0],
6231
 
    [Whether libtool must link a program against all its dependency libraries])
6232
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
6233
 
    [Fix the shell variable $srcfile for the compiler])
6234
 
_LT_TAGDECL([], [always_export_symbols], [0],
6235
 
    [Set to "yes" if exported symbols are required])
6236
 
_LT_TAGDECL([], [export_symbols_cmds], [2],
6237
 
    [The commands to list exported symbols])
6238
 
_LT_TAGDECL([], [exclude_expsyms], [1],
6239
 
    [Symbols that should not be listed in the preloaded symbols])
6240
 
_LT_TAGDECL([], [include_expsyms], [1],
6241
 
    [Symbols that must always be exported])
6242
 
_LT_TAGDECL([], [prelink_cmds], [2],
6243
 
    [Commands necessary for linking programs (against libraries) with templates])
6244
 
_LT_TAGDECL([], [file_list_spec], [1],
6245
 
    [Specify filename containing input files])
6246
 
dnl FIXME: Not yet implemented
6247
 
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6248
 
dnl    [Compiler flag to generate thread safe objects])
6249
 
])# _LT_LINKER_SHLIBS
6250
 
 
6251
 
 
6252
 
# _LT_LANG_C_CONFIG([TAG])
6253
 
# ------------------------
6254
 
# Ensure that the configuration variables for a C compiler are suitably
6255
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
6256
 
# the compiler configuration to `libtool'.
6257
 
m4_defun([_LT_LANG_C_CONFIG],
6258
 
[m4_require([_LT_DECL_EGREP])dnl
6259
 
lt_save_CC="$CC"
6260
 
AC_LANG_PUSH(C)
6261
 
 
6262
 
# Source file extension for C test sources.
6263
 
ac_ext=c
6264
 
 
6265
 
# Object file extension for compiled C test sources.
6266
 
objext=o
6267
 
_LT_TAGVAR(objext, $1)=$objext
6268
 
 
6269
 
# Code to be used in simple compile tests
6270
 
lt_simple_compile_test_code="int some_variable = 0;"
6271
 
 
6272
 
# Code to be used in simple link tests
6273
 
lt_simple_link_test_code='int main(){return(0);}'
6274
 
 
6275
 
_LT_TAG_COMPILER
6276
 
# Save the default compiler, since it gets overwritten when the other
6277
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6278
 
compiler_DEFAULT=$CC
6279
 
 
6280
 
# save warnings/boilerplate of simple test code
6281
 
_LT_COMPILER_BOILERPLATE
6282
 
_LT_LINKER_BOILERPLATE
6283
 
 
6284
 
if test -n "$compiler"; then
6285
 
  _LT_COMPILER_NO_RTTI($1)
6286
 
  _LT_COMPILER_PIC($1)
6287
 
  _LT_COMPILER_C_O($1)
6288
 
  _LT_COMPILER_FILE_LOCKS($1)
6289
 
  _LT_LINKER_SHLIBS($1)
6290
 
  _LT_SYS_DYNAMIC_LINKER($1)
6291
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
6292
 
  LT_SYS_DLOPEN_SELF
6293
 
  _LT_CMD_STRIPLIB
6294
 
 
6295
 
  # Report which library types will actually be built
6296
 
  AC_MSG_CHECKING([if libtool supports shared libraries])
6297
 
  AC_MSG_RESULT([$can_build_shared])
6298
 
 
6299
 
  AC_MSG_CHECKING([whether to build shared libraries])
6300
 
  test "$can_build_shared" = "no" && enable_shared=no
6301
 
 
6302
 
  # On AIX, shared libraries and static libraries use the same namespace, and
6303
 
  # are all built from PIC.
6304
 
  case $host_os in
6305
 
  aix3*)
6306
 
    test "$enable_shared" = yes && enable_static=no
6307
 
    if test -n "$RANLIB"; then
6308
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
6309
 
      postinstall_cmds='$RANLIB $lib'
6310
 
    fi
6311
 
    ;;
6312
 
 
6313
 
  aix[[4-9]]*)
6314
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6315
 
      test "$enable_shared" = yes && enable_static=no
6316
 
    fi
6317
 
    ;;
6318
 
  esac
6319
 
  AC_MSG_RESULT([$enable_shared])
6320
 
 
6321
 
  AC_MSG_CHECKING([whether to build static libraries])
6322
 
  # Make sure either enable_shared or enable_static is yes.
6323
 
  test "$enable_shared" = yes || enable_static=yes
6324
 
  AC_MSG_RESULT([$enable_static])
6325
 
 
6326
 
  _LT_CONFIG($1)
6327
 
fi
6328
 
AC_LANG_POP
6329
 
CC="$lt_save_CC"
6330
 
])# _LT_LANG_C_CONFIG
6331
 
 
6332
 
 
6333
 
# _LT_PROG_CXX
6334
 
# ------------
6335
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6336
 
# compiler, we have our own version here.
6337
 
m4_defun([_LT_PROG_CXX],
6338
 
[
6339
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6340
 
AC_PROG_CXX
6341
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6342
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6343
 
    (test "X$CXX" != "Xg++"))) ; then
6344
 
  AC_PROG_CXXCPP
6345
 
else
6346
 
  _lt_caught_CXX_error=yes
6347
 
fi
6348
 
popdef([AC_MSG_ERROR])
6349
 
])# _LT_PROG_CXX
6350
 
 
6351
 
dnl aclocal-1.4 backwards compatibility:
6352
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
6353
 
 
6354
 
 
6355
 
# _LT_LANG_CXX_CONFIG([TAG])
6356
 
# --------------------------
6357
 
# Ensure that the configuration variables for a C++ compiler are suitably
6358
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
6359
 
# the compiler configuration to `libtool'.
6360
 
m4_defun([_LT_LANG_CXX_CONFIG],
6361
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
6362
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6363
 
m4_require([_LT_DECL_EGREP])dnl
6364
 
 
6365
 
AC_LANG_PUSH(C++)
6366
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6367
 
_LT_TAGVAR(allow_undefined_flag, $1)=
6368
 
_LT_TAGVAR(always_export_symbols, $1)=no
6369
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
6370
 
_LT_TAGVAR(compiler_needs_object, $1)=no
6371
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6372
 
_LT_TAGVAR(hardcode_direct, $1)=no
6373
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6374
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6375
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6376
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6377
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
6378
 
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6379
 
_LT_TAGVAR(hardcode_automatic, $1)=no
6380
 
_LT_TAGVAR(inherit_rpath, $1)=no
6381
 
_LT_TAGVAR(module_cmds, $1)=
6382
 
_LT_TAGVAR(module_expsym_cmds, $1)=
6383
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6384
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6385
 
_LT_TAGVAR(no_undefined_flag, $1)=
6386
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6387
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6388
 
 
6389
 
# Source file extension for C++ test sources.
6390
 
ac_ext=cpp
6391
 
 
6392
 
# Object file extension for compiled C++ test sources.
6393
 
objext=o
6394
 
_LT_TAGVAR(objext, $1)=$objext
6395
 
 
6396
 
# No sense in running all these tests if we already determined that
6397
 
# the CXX compiler isn't working.  Some variables (like enable_shared)
6398
 
# are currently assumed to apply to all compilers on this platform,
6399
 
# and will be corrupted by setting them based on a non-working compiler.
6400
 
if test "$_lt_caught_CXX_error" != yes; then
6401
 
  # Code to be used in simple compile tests
6402
 
  lt_simple_compile_test_code="int some_variable = 0;"
6403
 
 
6404
 
  # Code to be used in simple link tests
6405
 
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6406
 
 
6407
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6408
 
  _LT_TAG_COMPILER
6409
 
 
6410
 
  # save warnings/boilerplate of simple test code
6411
 
  _LT_COMPILER_BOILERPLATE
6412
 
  _LT_LINKER_BOILERPLATE
6413
 
 
6414
 
  # Allow CC to be a program name with arguments.
6415
 
  lt_save_CC=$CC
6416
 
  lt_save_LD=$LD
6417
 
  lt_save_GCC=$GCC
6418
 
  GCC=$GXX
6419
 
  lt_save_with_gnu_ld=$with_gnu_ld
6420
 
  lt_save_path_LD=$lt_cv_path_LD
6421
 
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6422
 
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6423
 
  else
6424
 
    $as_unset lt_cv_prog_gnu_ld
6425
 
  fi
6426
 
  if test -n "${lt_cv_path_LDCXX+set}"; then
6427
 
    lt_cv_path_LD=$lt_cv_path_LDCXX
6428
 
  else
6429
 
    $as_unset lt_cv_path_LD
6430
 
  fi
6431
 
  test -z "${LDCXX+set}" || LD=$LDCXX
6432
 
  CC=${CXX-"c++"}
6433
 
  compiler=$CC
6434
 
  _LT_TAGVAR(compiler, $1)=$CC
6435
 
  _LT_CC_BASENAME([$compiler])
6436
 
 
6437
 
  if test -n "$compiler"; then
6438
 
    # We don't want -fno-exception when compiling C++ code, so set the
6439
 
    # no_builtin_flag separately
6440
 
    if test "$GXX" = yes; then
6441
 
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6442
 
    else
6443
 
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6444
 
    fi
6445
 
 
6446
 
    if test "$GXX" = yes; then
6447
 
      # Set up default GNU C++ configuration
6448
 
 
6449
 
      LT_PATH_LD
6450
 
 
6451
 
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
6452
 
      # archiving commands below assume that GNU ld is being used.
6453
 
      if test "$with_gnu_ld" = yes; then
6454
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6455
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6456
 
 
6457
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6458
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6459
 
 
6460
 
        # If archive_cmds runs LD, not CC, wlarc should be empty
6461
 
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6462
 
        #     investigate it a little bit more. (MM)
6463
 
        wlarc='${wl}'
6464
 
 
6465
 
        # ancient GNU ld didn't support --whole-archive et. al.
6466
 
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6467
 
          $GREP 'no-whole-archive' > /dev/null; then
6468
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6469
 
        else
6470
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
6471
 
        fi
6472
 
      else
6473
 
        with_gnu_ld=no
6474
 
        wlarc=
6475
 
 
6476
 
        # A generic and very simple default shared library creation
6477
 
        # command for GNU C++ for the case where it uses the native
6478
 
        # linker, instead of GNU ld.  If possible, this setting should
6479
 
        # overridden to take advantage of the native linker features on
6480
 
        # the platform it is being used on.
6481
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6482
 
      fi
6483
 
 
6484
 
      # Commands to make compiler produce verbose output that lists
6485
 
      # what "hidden" libraries, object files and flags are used when
6486
 
      # linking a shared library.
6487
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6488
 
 
6489
 
    else
6490
 
      GXX=no
6491
 
      with_gnu_ld=no
6492
 
      wlarc=
6493
 
    fi
6494
 
 
6495
 
    # PORTME: fill in a description of your system's C++ link characteristics
6496
 
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6497
 
    _LT_TAGVAR(ld_shlibs, $1)=yes
6498
 
    case $host_os in
6499
 
      aix3*)
6500
 
        # FIXME: insert proper C++ library support
6501
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6502
 
        ;;
6503
 
      aix[[4-9]]*)
6504
 
        if test "$host_cpu" = ia64; then
6505
 
          # On IA64, the linker does run time linking by default, so we don't
6506
 
          # have to do anything special.
6507
 
          aix_use_runtimelinking=no
6508
 
          exp_sym_flag='-Bexport'
6509
 
          no_entry_flag=""
6510
 
        else
6511
 
          aix_use_runtimelinking=no
6512
 
 
6513
 
          # Test if we are trying to use run time linking or normal
6514
 
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6515
 
          # need to do runtime linking.
6516
 
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6517
 
            for ld_flag in $LDFLAGS; do
6518
 
              case $ld_flag in
6519
 
              *-brtl*)
6520
 
                aix_use_runtimelinking=yes
6521
 
                break
6522
 
                ;;
6523
 
              esac
6524
 
            done
6525
 
            ;;
6526
 
          esac
6527
 
 
6528
 
          exp_sym_flag='-bexport'
6529
 
          no_entry_flag='-bnoentry'
6530
 
        fi
6531
 
 
6532
 
        # When large executables or shared objects are built, AIX ld can
6533
 
        # have problems creating the table of contents.  If linking a library
6534
 
        # or program results in "error TOC overflow" add -mminimal-toc to
6535
 
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6536
 
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6537
 
 
6538
 
        _LT_TAGVAR(archive_cmds, $1)=''
6539
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
6540
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6541
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6542
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
6543
 
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6544
 
 
6545
 
        if test "$GXX" = yes; then
6546
 
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
6547
 
          # We only want to do this on AIX 4.2 and lower, the check
6548
 
          # below for broken collect2 doesn't work under 4.3+
6549
 
          collect2name=`${CC} -print-prog-name=collect2`
6550
 
          if test -f "$collect2name" &&
6551
 
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6552
 
          then
6553
 
            # We have reworked collect2
6554
 
            :
6555
 
          else
6556
 
            # We have old collect2
6557
 
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
6558
 
            # It fails to find uninstalled libraries when the uninstalled
6559
 
            # path is not listed in the libpath.  Setting hardcode_minus_L
6560
 
            # to unsupported forces relinking
6561
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
6562
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6563
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
6564
 
          fi
6565
 
          esac
6566
 
          shared_flag='-shared'
6567
 
          if test "$aix_use_runtimelinking" = yes; then
6568
 
            shared_flag="$shared_flag "'${wl}-G'
6569
 
          fi
6570
 
        else
6571
 
          # not using gcc
6572
 
          if test "$host_cpu" = ia64; then
6573
 
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6574
 
          # chokes on -Wl,-G. The following line is correct:
6575
 
          shared_flag='-G'
6576
 
          else
6577
 
            if test "$aix_use_runtimelinking" = yes; then
6578
 
              shared_flag='${wl}-G'
6579
 
            else
6580
 
              shared_flag='${wl}-bM:SRE'
6581
 
            fi
6582
 
          fi
6583
 
        fi
6584
 
 
6585
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6586
 
        # It seems that -bexpall does not export symbols beginning with
6587
 
        # underscore (_), so it is better to generate a list of symbols to
6588
 
        # export.
6589
 
        _LT_TAGVAR(always_export_symbols, $1)=yes
6590
 
        if test "$aix_use_runtimelinking" = yes; then
6591
 
          # Warning - without using the other runtime loading flags (-brtl),
6592
 
          # -berok will link without error, but may produce a broken library.
6593
 
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6594
 
          # Determine the default libpath from the value encoded in an empty
6595
 
          # executable.
6596
 
          _LT_SYS_MODULE_PATH_AIX
6597
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6598
 
 
6599
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6600
 
        else
6601
 
          if test "$host_cpu" = ia64; then
6602
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6603
 
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6604
 
            _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6605
 
          else
6606
 
            # Determine the default libpath from the value encoded in an
6607
 
            # empty executable.
6608
 
            _LT_SYS_MODULE_PATH_AIX
6609
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6610
 
            # Warning - without using the other run time loading flags,
6611
 
            # -berok will link without error, but may produce a broken library.
6612
 
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6613
 
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6614
 
            # Exported symbols can be pulled into shared objects from archives
6615
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6616
 
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6617
 
            # This is similar to how AIX traditionally builds its shared
6618
 
            # libraries.
6619
 
            _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6620
 
          fi
6621
 
        fi
6622
 
        ;;
6623
 
 
6624
 
      beos*)
6625
 
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6626
 
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6627
 
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6628
 
          # support --undefined.  This deserves some investigation.  FIXME
6629
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6630
 
        else
6631
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6632
 
        fi
6633
 
        ;;
6634
 
 
6635
 
      chorus*)
6636
 
        case $cc_basename in
6637
 
          *)
6638
 
          # FIXME: insert proper C++ library support
6639
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6640
 
          ;;
6641
 
        esac
6642
 
        ;;
6643
 
 
6644
 
      cygwin* | mingw* | pw32* | cegcc*)
6645
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6646
 
        # as there is no search path for DLLs.
6647
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6648
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6649
 
        _LT_TAGVAR(always_export_symbols, $1)=no
6650
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6651
 
 
6652
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6653
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6654
 
          # If the export-symbols file already is a .def file (1st line
6655
 
          # is EXPORTS), use it as is; otherwise, prepend...
6656
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6657
 
            cp $export_symbols $output_objdir/$soname.def;
6658
 
          else
6659
 
            echo EXPORTS > $output_objdir/$soname.def;
6660
 
            cat $export_symbols >> $output_objdir/$soname.def;
6661
 
          fi~
6662
 
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6663
 
        else
6664
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6665
 
        fi
6666
 
        ;;
6667
 
      darwin* | rhapsody*)
6668
 
        _LT_DARWIN_LINKER_FEATURES($1)
6669
 
        ;;
6670
 
 
6671
 
      dgux*)
6672
 
        case $cc_basename in
6673
 
          ec++*)
6674
 
            # FIXME: insert proper C++ library support
6675
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6676
 
            ;;
6677
 
          ghcx*)
6678
 
            # Green Hills C++ Compiler
6679
 
            # FIXME: insert proper C++ library support
6680
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6681
 
            ;;
6682
 
          *)
6683
 
            # FIXME: insert proper C++ library support
6684
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6685
 
            ;;
6686
 
        esac
6687
 
        ;;
6688
 
 
6689
 
      freebsd[[12]]*)
6690
 
        # C++ shared libraries reported to be fairly broken before
6691
 
        # switch to ELF
6692
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6693
 
        ;;
6694
 
 
6695
 
      freebsd-elf*)
6696
 
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6697
 
        ;;
6698
 
 
6699
 
      freebsd* | dragonfly*)
6700
 
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6701
 
        # conventions
6702
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
6703
 
        ;;
6704
 
 
6705
 
      gnu*)
6706
 
        ;;
6707
 
 
6708
 
      hpux9*)
6709
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6710
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6711
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6712
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
6713
 
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6714
 
                                             # but as the default
6715
 
                                             # location of the library.
6716
 
 
6717
 
        case $cc_basename in
6718
 
          CC*)
6719
 
            # FIXME: insert proper C++ library support
6720
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6721
 
            ;;
6722
 
          aCC*)
6723
 
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6724
 
            # Commands to make compiler produce verbose output that lists
6725
 
            # what "hidden" libraries, object files and flags are used when
6726
 
            # linking a shared library.
6727
 
            #
6728
 
            # There doesn't appear to be a way to prevent this compiler from
6729
 
            # explicitly linking system object files so we need to strip them
6730
 
            # from the output so that they don't get included in the library
6731
 
            # dependencies.
6732
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6733
 
            ;;
6734
 
          *)
6735
 
            if test "$GXX" = yes; then
6736
 
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6737
 
            else
6738
 
              # FIXME: insert proper C++ library support
6739
 
              _LT_TAGVAR(ld_shlibs, $1)=no
6740
 
            fi
6741
 
            ;;
6742
 
        esac
6743
 
        ;;
6744
 
 
6745
 
      hpux10*|hpux11*)
6746
 
        if test $with_gnu_ld = no; then
6747
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6748
 
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6749
 
 
6750
 
          case $host_cpu in
6751
 
            hppa*64*|ia64*)
6752
 
              ;;
6753
 
            *)
6754
 
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6755
 
              ;;
6756
 
          esac
6757
 
        fi
6758
 
        case $host_cpu in
6759
 
          hppa*64*|ia64*)
6760
 
            _LT_TAGVAR(hardcode_direct, $1)=no
6761
 
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6762
 
            ;;
6763
 
          *)
6764
 
            _LT_TAGVAR(hardcode_direct, $1)=yes
6765
 
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6766
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6767
 
                                                 # but as the default
6768
 
                                                 # location of the library.
6769
 
            ;;
6770
 
        esac
6771
 
 
6772
 
        case $cc_basename in
6773
 
          CC*)
6774
 
            # FIXME: insert proper C++ library support
6775
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6776
 
            ;;
6777
 
          aCC*)
6778
 
            case $host_cpu in
6779
 
              hppa*64*)
6780
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6781
 
                ;;
6782
 
              ia64*)
6783
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6784
 
                ;;
6785
 
              *)
6786
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6787
 
                ;;
6788
 
            esac
6789
 
            # Commands to make compiler produce verbose output that lists
6790
 
            # what "hidden" libraries, object files and flags are used when
6791
 
            # linking a shared library.
6792
 
            #
6793
 
            # There doesn't appear to be a way to prevent this compiler from
6794
 
            # explicitly linking system object files so we need to strip them
6795
 
            # from the output so that they don't get included in the library
6796
 
            # dependencies.
6797
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6798
 
            ;;
6799
 
          *)
6800
 
            if test "$GXX" = yes; then
6801
 
              if test $with_gnu_ld = no; then
6802
 
                case $host_cpu in
6803
 
                  hppa*64*)
6804
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6805
 
                    ;;
6806
 
                  ia64*)
6807
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6808
 
                    ;;
6809
 
                  *)
6810
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6811
 
                    ;;
6812
 
                esac
6813
 
              fi
6814
 
            else
6815
 
              # FIXME: insert proper C++ library support
6816
 
              _LT_TAGVAR(ld_shlibs, $1)=no
6817
 
            fi
6818
 
            ;;
6819
 
        esac
6820
 
        ;;
6821
 
 
6822
 
      interix[[3-9]]*)
6823
 
        _LT_TAGVAR(hardcode_direct, $1)=no
6824
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6825
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6826
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6827
 
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6828
 
        # Instead, shared libraries are loaded at an image base (0x10000000 by
6829
 
        # default) and relocated if they conflict, which is a slow very memory
6830
 
        # consuming and fragmenting process.  To avoid this, we pick a random,
6831
 
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6832
 
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6833
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6834
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6835
 
        ;;
6836
 
      irix5* | irix6*)
6837
 
        case $cc_basename in
6838
 
          CC*)
6839
 
            # SGI C++
6840
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6841
 
 
6842
 
            # Archives containing C++ object files must be created using
6843
 
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6844
 
            # necessary to make sure instantiated templates are included
6845
 
            # in the archive.
6846
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6847
 
            ;;
6848
 
          *)
6849
 
            if test "$GXX" = yes; then
6850
 
              if test "$with_gnu_ld" = no; then
6851
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6852
 
              else
6853
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
6854
 
              fi
6855
 
            fi
6856
 
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6857
 
            ;;
6858
 
        esac
6859
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6860
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6861
 
        _LT_TAGVAR(inherit_rpath, $1)=yes
6862
 
        ;;
6863
 
 
6864
 
      linux* | k*bsd*-gnu)
6865
 
        case $cc_basename in
6866
 
          KCC*)
6867
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
6868
 
 
6869
 
            # KCC will only create a shared library if the output file
6870
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
6871
 
            # to its proper name (with version) after linking.
6872
 
            _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6873
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
6874
 
            # Commands to make compiler produce verbose output that lists
6875
 
            # what "hidden" libraries, object files and flags are used when
6876
 
            # linking a shared library.
6877
 
            #
6878
 
            # There doesn't appear to be a way to prevent this compiler from
6879
 
            # explicitly linking system object files so we need to strip them
6880
 
            # from the output so that they don't get included in the library
6881
 
            # dependencies.
6882
 
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6883
 
 
6884
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6885
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6886
 
 
6887
 
            # Archives containing C++ object files must be created using
6888
 
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6889
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6890
 
            ;;
6891
 
          icpc* | ecpc* )
6892
 
            # Intel C++
6893
 
            with_gnu_ld=yes
6894
 
            # version 8.0 and above of icpc choke on multiply defined symbols
6895
 
            # if we add $predep_objects and $postdep_objects, however 7.1 and
6896
 
            # earlier do not add the objects themselves.
6897
 
            case `$CC -V 2>&1` in
6898
 
              *"Version 7."*)
6899
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6900
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6901
 
                ;;
6902
 
              *)  # Version 8.0 or newer
6903
 
                tmp_idyn=
6904
 
                case $host_cpu in
6905
 
                  ia64*) tmp_idyn=' -i_dynamic';;
6906
 
                esac
6907
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6908
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6909
 
                ;;
6910
 
            esac
6911
 
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6912
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6913
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6914
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6915
 
            ;;
6916
 
          pgCC* | pgcpp*)
6917
 
            # Portland Group C++ compiler
6918
 
            case `$CC -V` in
6919
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6920
 
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6921
 
                rm -rf $tpldir~
6922
 
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6923
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6924
 
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6925
 
                rm -rf $tpldir~
6926
 
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6927
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6928
 
                $RANLIB $oldlib'
6929
 
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6930
 
                rm -rf $tpldir~
6931
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6932
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6933
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6934
 
                rm -rf $tpldir~
6935
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6936
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6937
 
              ;;
6938
 
            *) # Version 6 will use weak symbols
6939
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6940
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6941
 
              ;;
6942
 
            esac
6943
 
 
6944
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6945
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6946
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6947
 
            ;;
6948
 
          cxx*)
6949
 
            # Compaq C++
6950
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6951
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
6952
 
 
6953
 
            runpath_var=LD_RUN_PATH
6954
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6955
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6956
 
 
6957
 
            # Commands to make compiler produce verbose output that lists
6958
 
            # what "hidden" libraries, object files and flags are used when
6959
 
            # linking a shared library.
6960
 
            #
6961
 
            # There doesn't appear to be a way to prevent this compiler from
6962
 
            # explicitly linking system object files so we need to strip them
6963
 
            # from the output so that they don't get included in the library
6964
 
            # dependencies.
6965
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6966
 
            ;;
6967
 
          xl*)
6968
 
            # IBM XL 8.0 on PPC, with GNU ld
6969
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6970
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6971
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6972
 
            if test "x$supports_anon_versioning" = xyes; then
6973
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6974
 
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6975
 
                echo "local: *; };" >> $output_objdir/$libname.ver~
6976
 
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6977
 
            fi
6978
 
            ;;
6979
 
          *)
6980
 
            case `$CC -V 2>&1 | sed 5q` in
6981
 
            *Sun\ C*)
6982
 
              # Sun C++ 5.9
6983
 
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6984
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6985
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
6986
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6987
 
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6988
 
              _LT_TAGVAR(compiler_needs_object, $1)=yes
6989
 
 
6990
 
              # Not sure whether something based on
6991
 
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6992
 
              # would be better.
6993
 
              output_verbose_link_cmd='echo'
6994
 
 
6995
 
              # Archives containing C++ object files must be created using
6996
 
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6997
 
              # necessary to make sure instantiated templates are included
6998
 
              # in the archive.
6999
 
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7000
 
              ;;
7001
 
            esac
7002
 
            ;;
7003
 
        esac
7004
 
        ;;
7005
 
 
7006
 
      lynxos*)
7007
 
        # FIXME: insert proper C++ library support
7008
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7009
 
        ;;
7010
 
 
7011
 
      m88k*)
7012
 
        # FIXME: insert proper C++ library support
7013
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7014
 
        ;;
7015
 
 
7016
 
      mvs*)
7017
 
        case $cc_basename in
7018
 
          cxx*)
7019
 
            # FIXME: insert proper C++ library support
7020
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7021
 
            ;;
7022
 
          *)
7023
 
            # FIXME: insert proper C++ library support
7024
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7025
 
            ;;
7026
 
        esac
7027
 
        ;;
7028
 
 
7029
 
      netbsd*)
7030
 
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7031
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
7032
 
          wlarc=
7033
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7034
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
7035
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7036
 
        fi
7037
 
        # Workaround some broken pre-1.5 toolchains
7038
 
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7039
 
        ;;
7040
 
 
7041
 
      *nto* | *qnx*)
7042
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
7043
 
        ;;
7044
 
 
7045
 
      openbsd2*)
7046
 
        # C++ shared libraries are fairly broken
7047
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7048
 
        ;;
7049
 
 
7050
 
      openbsd*)
7051
 
        if test -f /usr/libexec/ld.so; then
7052
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
7053
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7054
 
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7055
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7056
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7057
 
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7058
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
7059
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7060
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7061
 
          fi
7062
 
          output_verbose_link_cmd=echo
7063
 
        else
7064
 
          _LT_TAGVAR(ld_shlibs, $1)=no
7065
 
        fi
7066
 
        ;;
7067
 
 
7068
 
      osf3* | osf4* | osf5*)
7069
 
        case $cc_basename in
7070
 
          KCC*)
7071
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
7072
 
 
7073
 
            # KCC will only create a shared library if the output file
7074
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
7075
 
            # to its proper name (with version) after linking.
7076
 
            _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7077
 
 
7078
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7079
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7080
 
 
7081
 
            # Archives containing C++ object files must be created using
7082
 
            # the KAI C++ compiler.
7083
 
            case $host in
7084
 
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7085
 
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7086
 
            esac
7087
 
            ;;
7088
 
          RCC*)
7089
 
            # Rational C++ 2.4.1
7090
 
            # FIXME: insert proper C++ library support
7091
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7092
 
            ;;
7093
 
          cxx*)
7094
 
            case $host in
7095
 
              osf3*)
7096
 
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7097
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7098
 
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7099
 
                ;;
7100
 
              *)
7101
 
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7102
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7103
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7104
 
                  echo "-hidden">> $lib.exp~
7105
 
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
7106
 
                  $RM $lib.exp'
7107
 
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7108
 
                ;;
7109
 
            esac
7110
 
 
7111
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7112
 
 
7113
 
            # Commands to make compiler produce verbose output that lists
7114
 
            # what "hidden" libraries, object files and flags are used when
7115
 
            # linking a shared library.
7116
 
            #
7117
 
            # There doesn't appear to be a way to prevent this compiler from
7118
 
            # explicitly linking system object files so we need to strip them
7119
 
            # from the output so that they don't get included in the library
7120
 
            # dependencies.
7121
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7122
 
            ;;
7123
 
          *)
7124
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7125
 
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7126
 
              case $host in
7127
 
                osf3*)
7128
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7129
 
                  ;;
7130
 
                *)
7131
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7132
 
                  ;;
7133
 
              esac
7134
 
 
7135
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7136
 
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7137
 
 
7138
 
              # Commands to make compiler produce verbose output that lists
7139
 
              # what "hidden" libraries, object files and flags are used when
7140
 
              # linking a shared library.
7141
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7142
 
 
7143
 
            else
7144
 
              # FIXME: insert proper C++ library support
7145
 
              _LT_TAGVAR(ld_shlibs, $1)=no
7146
 
            fi
7147
 
            ;;
7148
 
        esac
7149
 
        ;;
7150
 
 
7151
 
      psos*)
7152
 
        # FIXME: insert proper C++ library support
7153
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7154
 
        ;;
7155
 
 
7156
 
      sunos4*)
7157
 
        case $cc_basename in
7158
 
          CC*)
7159
 
            # Sun C++ 4.x
7160
 
            # FIXME: insert proper C++ library support
7161
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7162
 
            ;;
7163
 
          lcc*)
7164
 
            # Lucid
7165
 
            # FIXME: insert proper C++ library support
7166
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7167
 
            ;;
7168
 
          *)
7169
 
            # FIXME: insert proper C++ library support
7170
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7171
 
            ;;
7172
 
        esac
7173
 
        ;;
7174
 
 
7175
 
      solaris*)
7176
 
        case $cc_basename in
7177
 
          CC*)
7178
 
            # Sun C++ 4.2, 5.x and Centerline C++
7179
 
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7180
 
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7181
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7182
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7183
 
              $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7184
 
 
7185
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7186
 
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7187
 
            case $host_os in
7188
 
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7189
 
              *)
7190
 
                # The compiler driver will combine and reorder linker options,
7191
 
                # but understands `-z linker_flag'.
7192
 
                # Supported since Solaris 2.6 (maybe 2.5.1?)
7193
 
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7194
 
                ;;
7195
 
            esac
7196
 
            _LT_TAGVAR(link_all_deplibs, $1)=yes
7197
 
 
7198
 
            output_verbose_link_cmd='echo'
7199
 
 
7200
 
            # Archives containing C++ object files must be created using
7201
 
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
7202
 
            # necessary to make sure instantiated templates are included
7203
 
            # in the archive.
7204
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7205
 
            ;;
7206
 
          gcx*)
7207
 
            # Green Hills C++ Compiler
7208
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7209
 
 
7210
 
            # The C++ compiler must be used to create the archive.
7211
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7212
 
            ;;
7213
 
          *)
7214
 
            # GNU C++ compiler with Solaris linker
7215
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7216
 
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7217
 
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7218
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7219
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7220
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7221
 
 
7222
 
                # Commands to make compiler produce verbose output that lists
7223
 
                # what "hidden" libraries, object files and flags are used when
7224
 
                # linking a shared library.
7225
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7226
 
              else
7227
 
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
7228
 
                # platform.
7229
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7230
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7231
 
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7232
 
 
7233
 
                # Commands to make compiler produce verbose output that lists
7234
 
                # what "hidden" libraries, object files and flags are used when
7235
 
                # linking a shared library.
7236
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7237
 
              fi
7238
 
 
7239
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7240
 
              case $host_os in
7241
 
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7242
 
                *)
7243
 
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7244
 
                  ;;
7245
 
              esac
7246
 
            fi
7247
 
            ;;
7248
 
        esac
7249
 
        ;;
7250
 
 
7251
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7252
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7253
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7254
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7255
 
      runpath_var='LD_RUN_PATH'
7256
 
 
7257
 
      case $cc_basename in
7258
 
        CC*)
7259
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7260
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7261
 
          ;;
7262
 
        *)
7263
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7264
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7265
 
          ;;
7266
 
      esac
7267
 
      ;;
7268
 
 
7269
 
      sysv5* | sco3.2v5* | sco5v6*)
7270
 
        # Note: We can NOT use -z defs as we might desire, because we do not
7271
 
        # link with -lc, and that would cause any symbols used from libc to
7272
 
        # always be unresolved, which means just about no library would
7273
 
        # ever link correctly.  If we're not using GNU ld we use -z text
7274
 
        # though, which does catch some bad symbols but isn't as heavy-handed
7275
 
        # as -z defs.
7276
 
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7277
 
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7278
 
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7279
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7280
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7281
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7282
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
7283
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7284
 
        runpath_var='LD_RUN_PATH'
7285
 
 
7286
 
        case $cc_basename in
7287
 
          CC*)
7288
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7289
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7290
 
            ;;
7291
 
          *)
7292
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7293
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7294
 
            ;;
7295
 
        esac
7296
 
      ;;
7297
 
 
7298
 
      tandem*)
7299
 
        case $cc_basename in
7300
 
          NCC*)
7301
 
            # NonStop-UX NCC 3.20
7302
 
            # FIXME: insert proper C++ library support
7303
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7304
 
            ;;
7305
 
          *)
7306
 
            # FIXME: insert proper C++ library support
7307
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7308
 
            ;;
7309
 
        esac
7310
 
        ;;
7311
 
 
7312
 
      vxworks*)
7313
 
        # FIXME: insert proper C++ library support
7314
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7315
 
        ;;
7316
 
 
7317
 
      *)
7318
 
        # FIXME: insert proper C++ library support
7319
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7320
 
        ;;
7321
 
    esac
7322
 
 
7323
 
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7324
 
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7325
 
 
7326
 
    _LT_TAGVAR(GCC, $1)="$GXX"
7327
 
    _LT_TAGVAR(LD, $1)="$LD"
7328
 
 
7329
 
    ## CAVEAT EMPTOR:
7330
 
    ## There is no encapsulation within the following macros, do not change
7331
 
    ## the running order or otherwise move them around unless you know exactly
7332
 
    ## what you are doing...
7333
 
    _LT_SYS_HIDDEN_LIBDEPS($1)
7334
 
    _LT_COMPILER_PIC($1)
7335
 
    _LT_COMPILER_C_O($1)
7336
 
    _LT_COMPILER_FILE_LOCKS($1)
7337
 
    _LT_LINKER_SHLIBS($1)
7338
 
    _LT_SYS_DYNAMIC_LINKER($1)
7339
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
7340
 
 
7341
 
    _LT_CONFIG($1)
7342
 
  fi # test -n "$compiler"
7343
 
 
7344
 
  CC=$lt_save_CC
7345
 
  LDCXX=$LD
7346
 
  LD=$lt_save_LD
7347
 
  GCC=$lt_save_GCC
7348
 
  with_gnu_ld=$lt_save_with_gnu_ld
7349
 
  lt_cv_path_LDCXX=$lt_cv_path_LD
7350
 
  lt_cv_path_LD=$lt_save_path_LD
7351
 
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7352
 
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7353
 
fi # test "$_lt_caught_CXX_error" != yes
7354
 
 
7355
 
AC_LANG_POP
7356
 
])# _LT_LANG_CXX_CONFIG
7357
 
 
7358
 
 
7359
 
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7360
 
# ---------------------------------
7361
 
# Figure out "hidden" library dependencies from verbose
7362
 
# compiler output when linking a shared library.
7363
 
# Parse the compiler output and extract the necessary
7364
 
# objects, libraries and library flags.
7365
 
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7366
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7367
 
# Dependencies to place before and after the object being linked:
7368
 
_LT_TAGVAR(predep_objects, $1)=
7369
 
_LT_TAGVAR(postdep_objects, $1)=
7370
 
_LT_TAGVAR(predeps, $1)=
7371
 
_LT_TAGVAR(postdeps, $1)=
7372
 
_LT_TAGVAR(compiler_lib_search_path, $1)=
7373
 
 
7374
 
dnl we can't use the lt_simple_compile_test_code here,
7375
 
dnl because it contains code intended for an executable,
7376
 
dnl not a library.  It's possible we should let each
7377
 
dnl tag define a new lt_????_link_test_code variable,
7378
 
dnl but it's only used here...
7379
 
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7380
 
int a;
7381
 
void foo (void) { a = 0; }
7382
 
_LT_EOF
7383
 
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7384
 
class Foo
7385
 
{
7386
 
public:
7387
 
  Foo (void) { a = 0; }
7388
 
private:
7389
 
  int a;
7390
 
};
7391
 
_LT_EOF
7392
 
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7393
 
      subroutine foo
7394
 
      implicit none
7395
 
      integer*4 a
7396
 
      a=0
7397
 
      return
7398
 
      end
7399
 
_LT_EOF
7400
 
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7401
 
      subroutine foo
7402
 
      implicit none
7403
 
      integer a
7404
 
      a=0
7405
 
      return
7406
 
      end
7407
 
_LT_EOF
7408
 
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7409
 
public class foo {
7410
 
  private int a;
7411
 
  public void bar (void) {
7412
 
    a = 0;
7413
 
  }
7414
 
};
7415
 
_LT_EOF
7416
 
])
7417
 
dnl Parse the compiler output and extract the necessary
7418
 
dnl objects, libraries and library flags.
7419
 
if AC_TRY_EVAL(ac_compile); then
7420
 
  # Parse the compiler output and extract the necessary
7421
 
  # objects, libraries and library flags.
7422
 
 
7423
 
  # Sentinel used to keep track of whether or not we are before
7424
 
  # the conftest object file.
7425
 
  pre_test_object_deps_done=no
7426
 
 
7427
 
  for p in `eval "$output_verbose_link_cmd"`; do
7428
 
    case $p in
7429
 
 
7430
 
    -L* | -R* | -l*)
7431
 
       # Some compilers place space between "-{L,R}" and the path.
7432
 
       # Remove the space.
7433
 
       if test $p = "-L" ||
7434
 
          test $p = "-R"; then
7435
 
         prev=$p
7436
 
         continue
7437
 
       else
7438
 
         prev=
7439
 
       fi
7440
 
 
7441
 
       if test "$pre_test_object_deps_done" = no; then
7442
 
         case $p in
7443
 
         -L* | -R*)
7444
 
           # Internal compiler library paths should come after those
7445
 
           # provided the user.  The postdeps already come after the
7446
 
           # user supplied libs so there is no need to process them.
7447
 
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7448
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7449
 
           else
7450
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7451
 
           fi
7452
 
           ;;
7453
 
         # The "-l" case would never come before the object being
7454
 
         # linked, so don't bother handling this case.
7455
 
         esac
7456
 
       else
7457
 
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7458
 
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7459
 
         else
7460
 
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7461
 
         fi
7462
 
       fi
7463
 
       ;;
7464
 
 
7465
 
    *.$objext)
7466
 
       # This assumes that the test object file only shows up
7467
 
       # once in the compiler output.
7468
 
       if test "$p" = "conftest.$objext"; then
7469
 
         pre_test_object_deps_done=yes
7470
 
         continue
7471
 
       fi
7472
 
 
7473
 
       if test "$pre_test_object_deps_done" = no; then
7474
 
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7475
 
           _LT_TAGVAR(predep_objects, $1)="$p"
7476
 
         else
7477
 
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7478
 
         fi
7479
 
       else
7480
 
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7481
 
           _LT_TAGVAR(postdep_objects, $1)="$p"
7482
 
         else
7483
 
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7484
 
         fi
7485
 
       fi
7486
 
       ;;
7487
 
 
7488
 
    *) ;; # Ignore the rest.
7489
 
 
7490
 
    esac
7491
 
  done
7492
 
 
7493
 
  # Clean up.
7494
 
  rm -f a.out a.exe
7495
 
else
7496
 
  echo "libtool.m4: error: problem compiling $1 test program"
7497
 
fi
7498
 
 
7499
 
$RM -f confest.$objext
7500
 
 
7501
 
# PORTME: override above test on systems where it is broken
7502
 
m4_if([$1], [CXX],
7503
 
[case $host_os in
7504
 
interix[[3-9]]*)
7505
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
7506
 
  # hack all around it, let's just trust "g++" to DTRT.
7507
 
  _LT_TAGVAR(predep_objects,$1)=
7508
 
  _LT_TAGVAR(postdep_objects,$1)=
7509
 
  _LT_TAGVAR(postdeps,$1)=
7510
 
  ;;
7511
 
 
7512
 
linux*)
7513
 
  case `$CC -V 2>&1 | sed 5q` in
7514
 
  *Sun\ C*)
7515
 
    # Sun C++ 5.9
7516
 
 
7517
 
    # The more standards-conforming stlport4 library is
7518
 
    # incompatible with the Cstd library. Avoid specifying
7519
 
    # it if it's in CXXFLAGS. Ignore libCrun as
7520
 
    # -library=stlport4 depends on it.
7521
 
    case " $CXX $CXXFLAGS " in
7522
 
    *" -library=stlport4 "*)
7523
 
      solaris_use_stlport4=yes
7524
 
      ;;
7525
 
    esac
7526
 
 
7527
 
    if test "$solaris_use_stlport4" != yes; then
7528
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7529
 
    fi
7530
 
    ;;
7531
 
  esac
7532
 
  ;;
7533
 
 
7534
 
solaris*)
7535
 
  case $cc_basename in
7536
 
  CC*)
7537
 
    # The more standards-conforming stlport4 library is
7538
 
    # incompatible with the Cstd library. Avoid specifying
7539
 
    # it if it's in CXXFLAGS. Ignore libCrun as
7540
 
    # -library=stlport4 depends on it.
7541
 
    case " $CXX $CXXFLAGS " in
7542
 
    *" -library=stlport4 "*)
7543
 
      solaris_use_stlport4=yes
7544
 
      ;;
7545
 
    esac
7546
 
 
7547
 
    # Adding this requires a known-good setup of shared libraries for
7548
 
    # Sun compiler versions before 5.6, else PIC objects from an old
7549
 
    # archive will be linked into the output, leading to subtle bugs.
7550
 
    if test "$solaris_use_stlport4" != yes; then
7551
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7552
 
    fi
7553
 
    ;;
7554
 
  esac
7555
 
  ;;
7556
 
esac
7557
 
])
7558
 
 
7559
 
case " $_LT_TAGVAR(postdeps, $1) " in
7560
 
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7561
 
esac
7562
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7563
 
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7564
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7565
 
fi
7566
 
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7567
 
    [The directories searched by this compiler when creating a shared library])
7568
 
_LT_TAGDECL([], [predep_objects], [1],
7569
 
    [Dependencies to place before and after the objects being linked to
7570
 
    create a shared library])
7571
 
_LT_TAGDECL([], [postdep_objects], [1])
7572
 
_LT_TAGDECL([], [predeps], [1])
7573
 
_LT_TAGDECL([], [postdeps], [1])
7574
 
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7575
 
    [The library search path used internally by the compiler when linking
7576
 
    a shared library])
7577
 
])# _LT_SYS_HIDDEN_LIBDEPS
7578
 
 
7579
 
 
7580
 
# _LT_PROG_F77
7581
 
# ------------
7582
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
7583
 
# if there is no fortran compiler, we have our own version here.
7584
 
m4_defun([_LT_PROG_F77],
7585
 
[
7586
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7587
 
AC_PROG_F77
7588
 
if test -z "$F77" || test "X$F77" = "Xno"; then
7589
 
  _lt_disable_F77=yes
7590
 
fi
7591
 
popdef([AC_MSG_ERROR])
7592
 
])# _LT_PROG_F77
7593
 
 
7594
 
dnl aclocal-1.4 backwards compatibility:
7595
 
dnl AC_DEFUN([_LT_PROG_F77], [])
7596
 
 
7597
 
 
7598
 
# _LT_LANG_F77_CONFIG([TAG])
7599
 
# --------------------------
7600
 
# Ensure that the configuration variables for a Fortran 77 compiler are
7601
 
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7602
 
# to write the compiler configuration to `libtool'.
7603
 
m4_defun([_LT_LANG_F77_CONFIG],
7604
 
[AC_REQUIRE([_LT_PROG_F77])dnl
7605
 
AC_LANG_PUSH(Fortran 77)
7606
 
 
7607
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7608
 
_LT_TAGVAR(allow_undefined_flag, $1)=
7609
 
_LT_TAGVAR(always_export_symbols, $1)=no
7610
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
7611
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7612
 
_LT_TAGVAR(hardcode_direct, $1)=no
7613
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7614
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7615
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7616
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7617
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
7618
 
_LT_TAGVAR(hardcode_automatic, $1)=no
7619
 
_LT_TAGVAR(inherit_rpath, $1)=no
7620
 
_LT_TAGVAR(module_cmds, $1)=
7621
 
_LT_TAGVAR(module_expsym_cmds, $1)=
7622
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7623
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7624
 
_LT_TAGVAR(no_undefined_flag, $1)=
7625
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7626
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7627
 
 
7628
 
# Source file extension for f77 test sources.
7629
 
ac_ext=f
7630
 
 
7631
 
# Object file extension for compiled f77 test sources.
7632
 
objext=o
7633
 
_LT_TAGVAR(objext, $1)=$objext
7634
 
 
7635
 
# No sense in running all these tests if we already determined that
7636
 
# the F77 compiler isn't working.  Some variables (like enable_shared)
7637
 
# are currently assumed to apply to all compilers on this platform,
7638
 
# and will be corrupted by setting them based on a non-working compiler.
7639
 
if test "$_lt_disable_F77" != yes; then
7640
 
  # Code to be used in simple compile tests
7641
 
  lt_simple_compile_test_code="\
7642
 
      subroutine t
7643
 
      return
7644
 
      end
7645
 
"
7646
 
 
7647
 
  # Code to be used in simple link tests
7648
 
  lt_simple_link_test_code="\
7649
 
      program t
7650
 
      end
7651
 
"
7652
 
 
7653
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7654
 
  _LT_TAG_COMPILER
7655
 
 
7656
 
  # save warnings/boilerplate of simple test code
7657
 
  _LT_COMPILER_BOILERPLATE
7658
 
  _LT_LINKER_BOILERPLATE
7659
 
 
7660
 
  # Allow CC to be a program name with arguments.
7661
 
  lt_save_CC="$CC"
7662
 
  lt_save_GCC=$GCC
7663
 
  CC=${F77-"f77"}
7664
 
  compiler=$CC
7665
 
  _LT_TAGVAR(compiler, $1)=$CC
7666
 
  _LT_CC_BASENAME([$compiler])
7667
 
  GCC=$G77
7668
 
  if test -n "$compiler"; then
7669
 
    AC_MSG_CHECKING([if libtool supports shared libraries])
7670
 
    AC_MSG_RESULT([$can_build_shared])
7671
 
 
7672
 
    AC_MSG_CHECKING([whether to build shared libraries])
7673
 
    test "$can_build_shared" = "no" && enable_shared=no
7674
 
 
7675
 
    # On AIX, shared libraries and static libraries use the same namespace, and
7676
 
    # are all built from PIC.
7677
 
    case $host_os in
7678
 
      aix3*)
7679
 
        test "$enable_shared" = yes && enable_static=no
7680
 
        if test -n "$RANLIB"; then
7681
 
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7682
 
          postinstall_cmds='$RANLIB $lib'
7683
 
        fi
7684
 
        ;;
7685
 
      aix[[4-9]]*)
7686
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7687
 
          test "$enable_shared" = yes && enable_static=no
7688
 
        fi
7689
 
        ;;
7690
 
    esac
7691
 
    AC_MSG_RESULT([$enable_shared])
7692
 
 
7693
 
    AC_MSG_CHECKING([whether to build static libraries])
7694
 
    # Make sure either enable_shared or enable_static is yes.
7695
 
    test "$enable_shared" = yes || enable_static=yes
7696
 
    AC_MSG_RESULT([$enable_static])
7697
 
 
7698
 
    _LT_TAGVAR(GCC, $1)="$G77"
7699
 
    _LT_TAGVAR(LD, $1)="$LD"
7700
 
 
7701
 
    ## CAVEAT EMPTOR:
7702
 
    ## There is no encapsulation within the following macros, do not change
7703
 
    ## the running order or otherwise move them around unless you know exactly
7704
 
    ## what you are doing...
7705
 
    _LT_COMPILER_PIC($1)
7706
 
    _LT_COMPILER_C_O($1)
7707
 
    _LT_COMPILER_FILE_LOCKS($1)
7708
 
    _LT_LINKER_SHLIBS($1)
7709
 
    _LT_SYS_DYNAMIC_LINKER($1)
7710
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
7711
 
 
7712
 
    _LT_CONFIG($1)
7713
 
  fi # test -n "$compiler"
7714
 
 
7715
 
  GCC=$lt_save_GCC
7716
 
  CC="$lt_save_CC"
7717
 
fi # test "$_lt_disable_F77" != yes
7718
 
 
7719
 
AC_LANG_POP
7720
 
])# _LT_LANG_F77_CONFIG
7721
 
 
7722
 
 
7723
 
# _LT_PROG_FC
7724
 
# -----------
7725
 
# Since AC_PROG_FC is broken, in that it returns the empty string
7726
 
# if there is no fortran compiler, we have our own version here.
7727
 
m4_defun([_LT_PROG_FC],
7728
 
[
7729
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7730
 
AC_PROG_FC
7731
 
if test -z "$FC" || test "X$FC" = "Xno"; then
7732
 
  _lt_disable_FC=yes
7733
 
fi
7734
 
popdef([AC_MSG_ERROR])
7735
 
])# _LT_PROG_FC
7736
 
 
7737
 
dnl aclocal-1.4 backwards compatibility:
7738
 
dnl AC_DEFUN([_LT_PROG_FC], [])
7739
 
 
7740
 
 
7741
 
# _LT_LANG_FC_CONFIG([TAG])
7742
 
# -------------------------
7743
 
# Ensure that the configuration variables for a Fortran compiler are
7744
 
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7745
 
# to write the compiler configuration to `libtool'.
7746
 
m4_defun([_LT_LANG_FC_CONFIG],
7747
 
[AC_REQUIRE([_LT_PROG_FC])dnl
7748
 
AC_LANG_PUSH(Fortran)
7749
 
 
7750
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7751
 
_LT_TAGVAR(allow_undefined_flag, $1)=
7752
 
_LT_TAGVAR(always_export_symbols, $1)=no
7753
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
7754
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7755
 
_LT_TAGVAR(hardcode_direct, $1)=no
7756
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7757
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7758
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7759
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7760
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
7761
 
_LT_TAGVAR(hardcode_automatic, $1)=no
7762
 
_LT_TAGVAR(inherit_rpath, $1)=no
7763
 
_LT_TAGVAR(module_cmds, $1)=
7764
 
_LT_TAGVAR(module_expsym_cmds, $1)=
7765
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7766
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7767
 
_LT_TAGVAR(no_undefined_flag, $1)=
7768
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7769
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7770
 
 
7771
 
# Source file extension for fc test sources.
7772
 
ac_ext=${ac_fc_srcext-f}
7773
 
 
7774
 
# Object file extension for compiled fc test sources.
7775
 
objext=o
7776
 
_LT_TAGVAR(objext, $1)=$objext
7777
 
 
7778
 
# No sense in running all these tests if we already determined that
7779
 
# the FC compiler isn't working.  Some variables (like enable_shared)
7780
 
# are currently assumed to apply to all compilers on this platform,
7781
 
# and will be corrupted by setting them based on a non-working compiler.
7782
 
if test "$_lt_disable_FC" != yes; then
7783
 
  # Code to be used in simple compile tests
7784
 
  lt_simple_compile_test_code="\
7785
 
      subroutine t
7786
 
      return
7787
 
      end
7788
 
"
7789
 
 
7790
 
  # Code to be used in simple link tests
7791
 
  lt_simple_link_test_code="\
7792
 
      program t
7793
 
      end
7794
 
"
7795
 
 
7796
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7797
 
  _LT_TAG_COMPILER
7798
 
 
7799
 
  # save warnings/boilerplate of simple test code
7800
 
  _LT_COMPILER_BOILERPLATE
7801
 
  _LT_LINKER_BOILERPLATE
7802
 
 
7803
 
  # Allow CC to be a program name with arguments.
7804
 
  lt_save_CC="$CC"
7805
 
  lt_save_GCC=$GCC
7806
 
  CC=${FC-"f95"}
7807
 
  compiler=$CC
7808
 
  GCC=$ac_cv_fc_compiler_gnu
7809
 
 
7810
 
  _LT_TAGVAR(compiler, $1)=$CC
7811
 
  _LT_CC_BASENAME([$compiler])
7812
 
 
7813
 
  if test -n "$compiler"; then
7814
 
    AC_MSG_CHECKING([if libtool supports shared libraries])
7815
 
    AC_MSG_RESULT([$can_build_shared])
7816
 
 
7817
 
    AC_MSG_CHECKING([whether to build shared libraries])
7818
 
    test "$can_build_shared" = "no" && enable_shared=no
7819
 
 
7820
 
    # On AIX, shared libraries and static libraries use the same namespace, and
7821
 
    # are all built from PIC.
7822
 
    case $host_os in
7823
 
      aix3*)
7824
 
        test "$enable_shared" = yes && enable_static=no
7825
 
        if test -n "$RANLIB"; then
7826
 
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7827
 
          postinstall_cmds='$RANLIB $lib'
7828
 
        fi
7829
 
        ;;
7830
 
      aix[[4-9]]*)
7831
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7832
 
          test "$enable_shared" = yes && enable_static=no
7833
 
        fi
7834
 
        ;;
7835
 
    esac
7836
 
    AC_MSG_RESULT([$enable_shared])
7837
 
 
7838
 
    AC_MSG_CHECKING([whether to build static libraries])
7839
 
    # Make sure either enable_shared or enable_static is yes.
7840
 
    test "$enable_shared" = yes || enable_static=yes
7841
 
    AC_MSG_RESULT([$enable_static])
7842
 
 
7843
 
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7844
 
    _LT_TAGVAR(LD, $1)="$LD"
7845
 
 
7846
 
    ## CAVEAT EMPTOR:
7847
 
    ## There is no encapsulation within the following macros, do not change
7848
 
    ## the running order or otherwise move them around unless you know exactly
7849
 
    ## what you are doing...
7850
 
    _LT_SYS_HIDDEN_LIBDEPS($1)
7851
 
    _LT_COMPILER_PIC($1)
7852
 
    _LT_COMPILER_C_O($1)
7853
 
    _LT_COMPILER_FILE_LOCKS($1)
7854
 
    _LT_LINKER_SHLIBS($1)
7855
 
    _LT_SYS_DYNAMIC_LINKER($1)
7856
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
7857
 
 
7858
 
    _LT_CONFIG($1)
7859
 
  fi # test -n "$compiler"
7860
 
 
7861
 
  GCC=$lt_save_GCC
7862
 
  CC="$lt_save_CC"
7863
 
fi # test "$_lt_disable_FC" != yes
7864
 
 
7865
 
AC_LANG_POP
7866
 
])# _LT_LANG_FC_CONFIG
7867
 
 
7868
 
 
7869
 
# _LT_LANG_GCJ_CONFIG([TAG])
7870
 
# --------------------------
7871
 
# Ensure that the configuration variables for the GNU Java Compiler compiler
7872
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7873
 
# to write the compiler configuration to `libtool'.
7874
 
m4_defun([_LT_LANG_GCJ_CONFIG],
7875
 
[AC_REQUIRE([LT_PROG_GCJ])dnl
7876
 
AC_LANG_SAVE
7877
 
 
7878
 
# Source file extension for Java test sources.
7879
 
ac_ext=java
7880
 
 
7881
 
# Object file extension for compiled Java test sources.
7882
 
objext=o
7883
 
_LT_TAGVAR(objext, $1)=$objext
7884
 
 
7885
 
# Code to be used in simple compile tests
7886
 
lt_simple_compile_test_code="class foo {}"
7887
 
 
7888
 
# Code to be used in simple link tests
7889
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7890
 
 
7891
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7892
 
_LT_TAG_COMPILER
7893
 
 
7894
 
# save warnings/boilerplate of simple test code
7895
 
_LT_COMPILER_BOILERPLATE
7896
 
_LT_LINKER_BOILERPLATE
7897
 
 
7898
 
# Allow CC to be a program name with arguments.
7899
 
lt_save_CC="$CC"
7900
 
lt_save_GCC=$GCC
7901
 
GCC=yes
7902
 
CC=${GCJ-"gcj"}
7903
 
compiler=$CC
7904
 
_LT_TAGVAR(compiler, $1)=$CC
7905
 
_LT_TAGVAR(LD, $1)="$LD"
7906
 
_LT_CC_BASENAME([$compiler])
7907
 
 
7908
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7909
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7910
 
 
7911
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7912
 
 
7913
 
if test -n "$compiler"; then
7914
 
  _LT_COMPILER_NO_RTTI($1)
7915
 
  _LT_COMPILER_PIC($1)
7916
 
  _LT_COMPILER_C_O($1)
7917
 
  _LT_COMPILER_FILE_LOCKS($1)
7918
 
  _LT_LINKER_SHLIBS($1)
7919
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
7920
 
 
7921
 
  _LT_CONFIG($1)
7922
 
fi
7923
 
 
7924
 
AC_LANG_RESTORE
7925
 
 
7926
 
GCC=$lt_save_GCC
7927
 
CC="$lt_save_CC"
7928
 
])# _LT_LANG_GCJ_CONFIG
7929
 
 
7930
 
 
7931
 
# _LT_LANG_RC_CONFIG([TAG])
7932
 
# -------------------------
7933
 
# Ensure that the configuration variables for the Windows resource compiler
7934
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7935
 
# to write the compiler configuration to `libtool'.
7936
 
m4_defun([_LT_LANG_RC_CONFIG],
7937
 
[AC_REQUIRE([LT_PROG_RC])dnl
7938
 
AC_LANG_SAVE
7939
 
 
7940
 
# Source file extension for RC test sources.
7941
 
ac_ext=rc
7942
 
 
7943
 
# Object file extension for compiled RC test sources.
7944
 
objext=o
7945
 
_LT_TAGVAR(objext, $1)=$objext
7946
 
 
7947
 
# Code to be used in simple compile tests
7948
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7949
 
 
7950
 
# Code to be used in simple link tests
7951
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
7952
 
 
7953
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7954
 
_LT_TAG_COMPILER
7955
 
 
7956
 
# save warnings/boilerplate of simple test code
7957
 
_LT_COMPILER_BOILERPLATE
7958
 
_LT_LINKER_BOILERPLATE
7959
 
 
7960
 
# Allow CC to be a program name with arguments.
7961
 
lt_save_CC="$CC"
7962
 
lt_save_GCC=$GCC
7963
 
GCC=
7964
 
CC=${RC-"windres"}
7965
 
compiler=$CC
7966
 
_LT_TAGVAR(compiler, $1)=$CC
7967
 
_LT_CC_BASENAME([$compiler])
7968
 
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7969
 
 
7970
 
if test -n "$compiler"; then
7971
 
  :
7972
 
  _LT_CONFIG($1)
7973
 
fi
7974
 
 
7975
 
GCC=$lt_save_GCC
7976
 
AC_LANG_RESTORE
7977
 
CC="$lt_save_CC"
7978
 
])# _LT_LANG_RC_CONFIG
7979
 
 
7980
 
 
7981
 
# LT_PROG_GCJ
7982
 
# -----------
7983
 
AC_DEFUN([LT_PROG_GCJ],
7984
 
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7985
 
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7986
 
    [AC_CHECK_TOOL(GCJ, gcj,)
7987
 
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7988
 
      AC_SUBST(GCJFLAGS)])])[]dnl
7989
 
])
7990
 
 
7991
 
# Old name:
7992
 
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7993
 
dnl aclocal-1.4 backwards compatibility:
7994
 
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7995
 
 
7996
 
 
7997
 
# LT_PROG_RC
7998
 
# ----------
7999
 
AC_DEFUN([LT_PROG_RC],
8000
 
[AC_CHECK_TOOL(RC, windres,)
8001
 
])
8002
 
 
8003
 
# Old name:
8004
 
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
8005
 
dnl aclocal-1.4 backwards compatibility:
8006
 
dnl AC_DEFUN([LT_AC_PROG_RC], [])
8007
 
 
8008
 
 
8009
 
# _LT_DECL_EGREP
8010
 
# --------------
8011
 
# If we don't have a new enough Autoconf to choose the best grep
8012
 
# available, choose the one first in the user's PATH.
8013
 
m4_defun([_LT_DECL_EGREP],
8014
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
8015
 
AC_REQUIRE([AC_PROG_FGREP])dnl
8016
 
test -z "$GREP" && GREP=grep
8017
 
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8018
 
_LT_DECL([], [EGREP], [1], [An ERE matcher])
8019
 
_LT_DECL([], [FGREP], [1], [A literal string matcher])
8020
 
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8021
 
AC_SUBST([GREP])
8022
 
])
8023
 
 
8024
 
 
8025
 
# _LT_DECL_OBJDUMP
8026
 
# --------------
8027
 
# If we don't have a new enough Autoconf to choose the best objdump
8028
 
# available, choose the one first in the user's PATH.
8029
 
m4_defun([_LT_DECL_OBJDUMP],
8030
 
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
8031
 
test -z "$OBJDUMP" && OBJDUMP=objdump
8032
 
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8033
 
AC_SUBST([OBJDUMP])
8034
 
])
8035
 
 
8036
 
 
8037
 
# _LT_DECL_SED
8038
 
# ------------
8039
 
# Check for a fully-functional sed program, that truncates
8040
 
# as few characters as possible.  Prefer GNU sed if found.
8041
 
m4_defun([_LT_DECL_SED],
8042
 
[AC_PROG_SED
8043
 
test -z "$SED" && SED=sed
8044
 
Xsed="$SED -e 1s/^X//"
8045
 
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8046
 
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8047
 
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
8048
 
])# _LT_DECL_SED
8049
 
 
8050
 
m4_ifndef([AC_PROG_SED], [
8051
 
# NOTE: This macro has been submitted for inclusion into   #
8052
 
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
8053
 
#  a released version of Autoconf we should remove this    #
8054
 
#  macro and use it instead.                               #
8055
 
 
8056
 
m4_defun([AC_PROG_SED],
8057
 
[AC_MSG_CHECKING([for a sed that does not truncate output])
8058
 
AC_CACHE_VAL(lt_cv_path_SED,
8059
 
[# Loop through the user's path and test for sed and gsed.
8060
 
# Then use that list of sed's as ones to test for truncation.
8061
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062
 
for as_dir in $PATH
8063
 
do
8064
 
  IFS=$as_save_IFS
8065
 
  test -z "$as_dir" && as_dir=.
8066
 
  for lt_ac_prog in sed gsed; do
8067
 
    for ac_exec_ext in '' $ac_executable_extensions; do
8068
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8069
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8070
 
      fi
8071
 
    done
8072
 
  done
8073
 
done
8074
 
IFS=$as_save_IFS
8075
 
lt_ac_max=0
8076
 
lt_ac_count=0
8077
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8078
 
# along with /bin/sed that truncates output.
8079
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8080
 
  test ! -f $lt_ac_sed && continue
8081
 
  cat /dev/null > conftest.in
8082
 
  lt_ac_count=0
8083
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8084
 
  # Check for GNU sed and select it if it is found.
8085
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8086
 
    lt_cv_path_SED=$lt_ac_sed
8087
 
    break
8088
 
  fi
8089
 
  while true; do
8090
 
    cat conftest.in conftest.in >conftest.tmp
8091
 
    mv conftest.tmp conftest.in
8092
 
    cp conftest.in conftest.nl
8093
 
    echo >>conftest.nl
8094
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8095
 
    cmp -s conftest.out conftest.nl || break
8096
 
    # 10000 chars as input seems more than enough
8097
 
    test $lt_ac_count -gt 10 && break
8098
 
    lt_ac_count=`expr $lt_ac_count + 1`
8099
 
    if test $lt_ac_count -gt $lt_ac_max; then
8100
 
      lt_ac_max=$lt_ac_count
8101
 
      lt_cv_path_SED=$lt_ac_sed
8102
 
    fi
8103
 
  done
8104
 
done
8105
 
])
8106
 
SED=$lt_cv_path_SED
8107
 
AC_SUBST([SED])
8108
 
AC_MSG_RESULT([$SED])
8109
 
])#AC_PROG_SED
8110
 
])#m4_ifndef
8111
 
 
8112
 
# Old name:
8113
 
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8114
 
dnl aclocal-1.4 backwards compatibility:
8115
 
dnl AC_DEFUN([LT_AC_PROG_SED], [])
8116
 
 
8117
 
 
8118
 
# _LT_CHECK_SHELL_FEATURES
8119
 
# ------------------------
8120
 
# Find out whether the shell is Bourne or XSI compatible,
8121
 
# or has some other useful features.
8122
 
m4_defun([_LT_CHECK_SHELL_FEATURES],
8123
 
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8124
 
# Try some XSI features
8125
 
xsi_shell=no
8126
 
( _lt_dummy="a/b/c"
8127
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8128
 
      = c,a/b,, \
8129
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
8130
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8131
 
  && xsi_shell=yes
8132
 
AC_MSG_RESULT([$xsi_shell])
8133
 
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8134
 
 
8135
 
AC_MSG_CHECKING([whether the shell understands "+="])
8136
 
lt_shell_append=no
8137
 
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8138
 
    >/dev/null 2>&1 \
8139
 
  && lt_shell_append=yes
8140
 
AC_MSG_RESULT([$lt_shell_append])
8141
 
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8142
 
 
8143
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8144
 
  lt_unset=unset
8145
 
else
8146
 
  lt_unset=false
8147
 
fi
8148
 
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8149
 
 
8150
 
# test EBCDIC or ASCII
8151
 
case `echo X|tr X '\101'` in
8152
 
 A) # ASCII based system
8153
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8154
 
  lt_SP2NL='tr \040 \012'
8155
 
  lt_NL2SP='tr \015\012 \040\040'
8156
 
  ;;
8157
 
 *) # EBCDIC based system
8158
 
  lt_SP2NL='tr \100 \n'
8159
 
  lt_NL2SP='tr \r\n \100\100'
8160
 
  ;;
8161
 
esac
8162
 
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8163
 
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8164
 
])# _LT_CHECK_SHELL_FEATURES
8165
 
 
8166
 
 
8167
 
# _LT_PROG_XSI_SHELLFNS
8168
 
# ---------------------
8169
 
# Bourne and XSI compatible variants of some useful shell functions.
8170
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
8171
 
[case $xsi_shell in
8172
 
  yes)
8173
 
    cat << \_LT_EOF >> "$cfgfile"
8174
 
 
8175
 
# func_dirname file append nondir_replacement
8176
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
8177
 
# otherwise set result to NONDIR_REPLACEMENT.
8178
 
func_dirname ()
8179
 
{
8180
 
  case ${1} in
8181
 
    */*) func_dirname_result="${1%/*}${2}" ;;
8182
 
    *  ) func_dirname_result="${3}" ;;
8183
 
  esac
8184
 
}
8185
 
 
8186
 
# func_basename file
8187
 
func_basename ()
8188
 
{
8189
 
  func_basename_result="${1##*/}"
8190
 
}
8191
 
 
8192
 
# func_dirname_and_basename file append nondir_replacement
8193
 
# perform func_basename and func_dirname in a single function
8194
 
# call:
8195
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
8196
 
#             add APPEND to the result, otherwise set result
8197
 
#             to NONDIR_REPLACEMENT.
8198
 
#             value returned in "$func_dirname_result"
8199
 
#   basename: Compute filename of FILE.
8200
 
#             value retuned in "$func_basename_result"
8201
 
# Implementation must be kept synchronized with func_dirname
8202
 
# and func_basename. For efficiency, we do not delegate to
8203
 
# those functions but instead duplicate the functionality here.
8204
 
func_dirname_and_basename ()
8205
 
{
8206
 
  case ${1} in
8207
 
    */*) func_dirname_result="${1%/*}${2}" ;;
8208
 
    *  ) func_dirname_result="${3}" ;;
8209
 
  esac
8210
 
  func_basename_result="${1##*/}"
8211
 
}
8212
 
 
8213
 
# func_stripname prefix suffix name
8214
 
# strip PREFIX and SUFFIX off of NAME.
8215
 
# PREFIX and SUFFIX must not contain globbing or regex special
8216
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
8217
 
# dot (in which case that matches only a dot).
8218
 
func_stripname ()
8219
 
{
8220
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8221
 
  # positional parameters, so assign one to ordinary parameter first.
8222
 
  func_stripname_result=${3}
8223
 
  func_stripname_result=${func_stripname_result#"${1}"}
8224
 
  func_stripname_result=${func_stripname_result%"${2}"}
8225
 
}
8226
 
 
8227
 
# func_opt_split
8228
 
func_opt_split ()
8229
 
{
8230
 
  func_opt_split_opt=${1%%=*}
8231
 
  func_opt_split_arg=${1#*=}
8232
 
}
8233
 
 
8234
 
# func_lo2o object
8235
 
func_lo2o ()
8236
 
{
8237
 
  case ${1} in
8238
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8239
 
    *)    func_lo2o_result=${1} ;;
8240
 
  esac
8241
 
}
8242
 
 
8243
 
# func_xform libobj-or-source
8244
 
func_xform ()
8245
 
{
8246
 
  func_xform_result=${1%.*}.lo
8247
 
}
8248
 
 
8249
 
# func_arith arithmetic-term...
8250
 
func_arith ()
8251
 
{
8252
 
  func_arith_result=$(( $[*] ))
8253
 
}
8254
 
 
8255
 
# func_len string
8256
 
# STRING may not start with a hyphen.
8257
 
func_len ()
8258
 
{
8259
 
  func_len_result=${#1}
8260
 
}
8261
 
 
8262
 
_LT_EOF
8263
 
    ;;
8264
 
  *) # Bourne compatible functions.
8265
 
    cat << \_LT_EOF >> "$cfgfile"
8266
 
 
8267
 
# func_dirname file append nondir_replacement
8268
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
8269
 
# otherwise set result to NONDIR_REPLACEMENT.
8270
 
func_dirname ()
8271
 
{
8272
 
  # Extract subdirectory from the argument.
8273
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8274
 
  if test "X$func_dirname_result" = "X${1}"; then
8275
 
    func_dirname_result="${3}"
8276
 
  else
8277
 
    func_dirname_result="$func_dirname_result${2}"
8278
 
  fi
8279
 
}
8280
 
 
8281
 
# func_basename file
8282
 
func_basename ()
8283
 
{
8284
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8285
 
}
8286
 
 
8287
 
dnl func_dirname_and_basename
8288
 
dnl A portable version of this function is already defined in general.m4sh
8289
 
dnl so there is no need for it here.
8290
 
 
8291
 
# func_stripname prefix suffix name
8292
 
# strip PREFIX and SUFFIX off of NAME.
8293
 
# PREFIX and SUFFIX must not contain globbing or regex special
8294
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
8295
 
# dot (in which case that matches only a dot).
8296
 
# func_strip_suffix prefix name
8297
 
func_stripname ()
8298
 
{
8299
 
  case ${2} in
8300
 
    .*) func_stripname_result=`$ECHO "X${3}" \
8301
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8302
 
    *)  func_stripname_result=`$ECHO "X${3}" \
8303
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8304
 
  esac
8305
 
}
8306
 
 
8307
 
# sed scripts:
8308
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8309
 
my_sed_long_arg='1s/^-[[^=]]*=//'
8310
 
 
8311
 
# func_opt_split
8312
 
func_opt_split ()
8313
 
{
8314
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8315
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8316
 
}
8317
 
 
8318
 
# func_lo2o object
8319
 
func_lo2o ()
8320
 
{
8321
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8322
 
}
8323
 
 
8324
 
# func_xform libobj-or-source
8325
 
func_xform ()
8326
 
{
8327
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8328
 
}
8329
 
 
8330
 
# func_arith arithmetic-term...
8331
 
func_arith ()
8332
 
{
8333
 
  func_arith_result=`expr "$[@]"`
8334
 
}
8335
 
 
8336
 
# func_len string
8337
 
# STRING may not start with a hyphen.
8338
 
func_len ()
8339
 
{
8340
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8341
 
}
8342
 
 
8343
 
_LT_EOF
8344
 
esac
8345
 
 
8346
 
case $lt_shell_append in
8347
 
  yes)
8348
 
    cat << \_LT_EOF >> "$cfgfile"
8349
 
 
8350
 
# func_append var value
8351
 
# Append VALUE to the end of shell variable VAR.
8352
 
func_append ()
8353
 
{
8354
 
  eval "$[1]+=\$[2]"
8355
 
}
8356
 
_LT_EOF
8357
 
    ;;
8358
 
  *)
8359
 
    cat << \_LT_EOF >> "$cfgfile"
8360
 
 
8361
 
# func_append var value
8362
 
# Append VALUE to the end of shell variable VAR.
8363
 
func_append ()
8364
 
{
8365
 
  eval "$[1]=\$$[1]\$[2]"
8366
 
}
8367
 
 
8368
 
_LT_EOF
8369
 
    ;;
8370
 
  esac
8371
 
])
8372
 
 
8373
 
# Helper functions for option handling.                    -*- Autoconf -*-
8374
 
#
8375
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8376
 
#   Written by Gary V. Vaughan, 2004
8377
 
#
8378
 
# This file is free software; the Free Software Foundation gives
8379
 
# unlimited permission to copy and/or distribute it, with or without
8380
 
# modifications, as long as this notice is preserved.
8381
 
 
8382
 
# serial 6 ltoptions.m4
8383
 
 
8384
 
# This is to help aclocal find these macros, as it can't see m4_define.
8385
 
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8386
 
 
8387
 
 
8388
 
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8389
 
# ------------------------------------------
8390
 
m4_define([_LT_MANGLE_OPTION],
8391
 
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8392
 
 
8393
 
 
8394
 
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8395
 
# ---------------------------------------
8396
 
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8397
 
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
8398
 
# saved as a flag.
8399
 
m4_define([_LT_SET_OPTION],
8400
 
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8401
 
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8402
 
        _LT_MANGLE_DEFUN([$1], [$2]),
8403
 
    [m4_warning([Unknown $1 option `$2'])])[]dnl
8404
 
])
8405
 
 
8406
 
 
8407
 
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8408
 
# ------------------------------------------------------------
8409
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8410
 
m4_define([_LT_IF_OPTION],
8411
 
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8412
 
 
8413
 
 
8414
 
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8415
 
# -------------------------------------------------------
8416
 
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8417
 
# are set.
8418
 
m4_define([_LT_UNLESS_OPTIONS],
8419
 
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8420
 
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8421
 
                      [m4_define([$0_found])])])[]dnl
8422
 
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8423
 
])[]dnl
8424
 
])
8425
 
 
8426
 
 
8427
 
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8428
 
# ----------------------------------------
8429
 
# OPTION-LIST is a space-separated list of Libtool options associated
8430
 
# with MACRO-NAME.  If any OPTION has a matching handler declared with
8431
 
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8432
 
# the unknown option and exit.
8433
 
m4_defun([_LT_SET_OPTIONS],
8434
 
[# Set options
8435
 
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8436
 
    [_LT_SET_OPTION([$1], _LT_Option)])
8437
 
 
8438
 
m4_if([$1],[LT_INIT],[
8439
 
  dnl
8440
 
  dnl Simply set some default values (i.e off) if boolean options were not
8441
 
  dnl specified:
8442
 
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8443
 
  ])
8444
 
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8445
 
  ])
8446
 
  dnl
8447
 
  dnl If no reference was made to various pairs of opposing options, then
8448
 
  dnl we run the default mode handler for the pair.  For example, if neither
8449
 
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
8450
 
  dnl archives by default:
8451
 
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8452
 
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8453
 
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8454
 
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8455
 
                   [_LT_ENABLE_FAST_INSTALL])
8456
 
  ])
8457
 
])# _LT_SET_OPTIONS
8458
 
 
8459
 
 
8460
 
 
8461
 
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8462
 
# -----------------------------------------
8463
 
m4_define([_LT_MANGLE_DEFUN],
8464
 
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8465
 
 
8466
 
 
8467
 
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8468
 
# -----------------------------------------------
8469
 
m4_define([LT_OPTION_DEFINE],
8470
 
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8471
 
])# LT_OPTION_DEFINE
8472
 
 
8473
 
 
8474
 
# dlopen
8475
 
# ------
8476
 
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8477
 
])
8478
 
 
8479
 
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8480
 
[_LT_SET_OPTION([LT_INIT], [dlopen])
8481
 
AC_DIAGNOSE([obsolete],
8482
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8483
 
put the `dlopen' option into LT_INIT's first parameter.])
8484
 
])
8485
 
 
8486
 
dnl aclocal-1.4 backwards compatibility:
8487
 
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8488
 
 
8489
 
 
8490
 
# win32-dll
8491
 
# ---------
8492
 
# Declare package support for building win32 dll's.
8493
 
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8494
 
[enable_win32_dll=yes
8495
 
 
8496
 
case $host in
8497
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8498
 
  AC_CHECK_TOOL(AS, as, false)
8499
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8500
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
8501
 
  ;;
8502
 
esac
8503
 
 
8504
 
test -z "$AS" && AS=as
8505
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
8506
 
 
8507
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
8508
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8509
 
 
8510
 
test -z "$OBJDUMP" && OBJDUMP=objdump
8511
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8512
 
])# win32-dll
8513
 
 
8514
 
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8515
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8516
 
_LT_SET_OPTION([LT_INIT], [win32-dll])
8517
 
AC_DIAGNOSE([obsolete],
8518
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8519
 
put the `win32-dll' option into LT_INIT's first parameter.])
8520
 
])
8521
 
 
8522
 
dnl aclocal-1.4 backwards compatibility:
8523
 
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8524
 
 
8525
 
 
8526
 
# _LT_ENABLE_SHARED([DEFAULT])
8527
 
# ----------------------------
8528
 
# implement the --enable-shared flag, and supports the `shared' and
8529
 
# `disable-shared' LT_INIT options.
8530
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8531
 
m4_define([_LT_ENABLE_SHARED],
8532
 
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8533
 
AC_ARG_ENABLE([shared],
8534
 
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8535
 
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8536
 
    [p=${PACKAGE-default}
8537
 
    case $enableval in
8538
 
    yes) enable_shared=yes ;;
8539
 
    no) enable_shared=no ;;
8540
 
    *)
8541
 
      enable_shared=no
8542
 
      # Look at the argument we got.  We use all the common list separators.
8543
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8544
 
      for pkg in $enableval; do
8545
 
        IFS="$lt_save_ifs"
8546
 
        if test "X$pkg" = "X$p"; then
8547
 
          enable_shared=yes
8548
 
        fi
8549
 
      done
8550
 
      IFS="$lt_save_ifs"
8551
 
      ;;
8552
 
    esac],
8553
 
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8554
 
 
8555
 
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
8556
 
        [Whether or not to build shared libraries])
8557
 
])# _LT_ENABLE_SHARED
8558
 
 
8559
 
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8560
 
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8561
 
 
8562
 
# Old names:
8563
 
AC_DEFUN([AC_ENABLE_SHARED],
8564
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8565
 
])
8566
 
 
8567
 
AC_DEFUN([AC_DISABLE_SHARED],
8568
 
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8569
 
])
8570
 
 
8571
 
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8572
 
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8573
 
 
8574
 
dnl aclocal-1.4 backwards compatibility:
8575
 
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8576
 
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8577
 
 
8578
 
 
8579
 
 
8580
 
# _LT_ENABLE_STATIC([DEFAULT])
8581
 
# ----------------------------
8582
 
# implement the --enable-static flag, and support the `static' and
8583
 
# `disable-static' LT_INIT options.
8584
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8585
 
m4_define([_LT_ENABLE_STATIC],
8586
 
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8587
 
AC_ARG_ENABLE([static],
8588
 
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8589
 
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8590
 
    [p=${PACKAGE-default}
8591
 
    case $enableval in
8592
 
    yes) enable_static=yes ;;
8593
 
    no) enable_static=no ;;
8594
 
    *)
8595
 
     enable_static=no
8596
 
      # Look at the argument we got.  We use all the common list separators.
8597
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8598
 
      for pkg in $enableval; do
8599
 
        IFS="$lt_save_ifs"
8600
 
        if test "X$pkg" = "X$p"; then
8601
 
          enable_static=yes
8602
 
        fi
8603
 
      done
8604
 
      IFS="$lt_save_ifs"
8605
 
      ;;
8606
 
    esac],
8607
 
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8608
 
 
8609
 
    _LT_DECL([build_old_libs], [enable_static], [0],
8610
 
        [Whether or not to build static libraries])
8611
 
])# _LT_ENABLE_STATIC
8612
 
 
8613
 
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8614
 
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8615
 
 
8616
 
# Old names:
8617
 
AC_DEFUN([AC_ENABLE_STATIC],
8618
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8619
 
])
8620
 
 
8621
 
AC_DEFUN([AC_DISABLE_STATIC],
8622
 
[_LT_SET_OPTION([LT_INIT], [disable-static])
8623
 
])
8624
 
 
8625
 
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8626
 
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8627
 
 
8628
 
dnl aclocal-1.4 backwards compatibility:
8629
 
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8630
 
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8631
 
 
8632
 
 
8633
 
 
8634
 
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8635
 
# ----------------------------------
8636
 
# implement the --enable-fast-install flag, and support the `fast-install'
8637
 
# and `disable-fast-install' LT_INIT options.
8638
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8639
 
m4_define([_LT_ENABLE_FAST_INSTALL],
8640
 
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8641
 
AC_ARG_ENABLE([fast-install],
8642
 
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8643
 
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8644
 
    [p=${PACKAGE-default}
8645
 
    case $enableval in
8646
 
    yes) enable_fast_install=yes ;;
8647
 
    no) enable_fast_install=no ;;
8648
 
    *)
8649
 
      enable_fast_install=no
8650
 
      # Look at the argument we got.  We use all the common list separators.
8651
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8652
 
      for pkg in $enableval; do
8653
 
        IFS="$lt_save_ifs"
8654
 
        if test "X$pkg" = "X$p"; then
8655
 
          enable_fast_install=yes
8656
 
        fi
8657
 
      done
8658
 
      IFS="$lt_save_ifs"
8659
 
      ;;
8660
 
    esac],
8661
 
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8662
 
 
8663
 
_LT_DECL([fast_install], [enable_fast_install], [0],
8664
 
         [Whether or not to optimize for fast installation])dnl
8665
 
])# _LT_ENABLE_FAST_INSTALL
8666
 
 
8667
 
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8668
 
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8669
 
 
8670
 
# Old names:
8671
 
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8672
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8673
 
AC_DIAGNOSE([obsolete],
8674
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8675
 
the `fast-install' option into LT_INIT's first parameter.])
8676
 
])
8677
 
 
8678
 
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8679
 
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8680
 
AC_DIAGNOSE([obsolete],
8681
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8682
 
the `disable-fast-install' option into LT_INIT's first parameter.])
8683
 
])
8684
 
 
8685
 
dnl aclocal-1.4 backwards compatibility:
8686
 
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8687
 
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8688
 
 
8689
 
 
8690
 
# _LT_WITH_PIC([MODE])
8691
 
# --------------------
8692
 
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8693
 
# LT_INIT options.
8694
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
8695
 
m4_define([_LT_WITH_PIC],
8696
 
[AC_ARG_WITH([pic],
8697
 
    [AS_HELP_STRING([--with-pic],
8698
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8699
 
    [pic_mode="$withval"],
8700
 
    [pic_mode=default])
8701
 
 
8702
 
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8703
 
 
8704
 
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8705
 
])# _LT_WITH_PIC
8706
 
 
8707
 
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8708
 
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8709
 
 
8710
 
# Old name:
8711
 
AU_DEFUN([AC_LIBTOOL_PICMODE],
8712
 
[_LT_SET_OPTION([LT_INIT], [pic-only])
8713
 
AC_DIAGNOSE([obsolete],
8714
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8715
 
put the `pic-only' option into LT_INIT's first parameter.])
8716
 
])
8717
 
 
8718
 
dnl aclocal-1.4 backwards compatibility:
8719
 
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8720
 
 
8721
 
 
8722
 
m4_define([_LTDL_MODE], [])
8723
 
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8724
 
                 [m4_define([_LTDL_MODE], [nonrecursive])])
8725
 
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8726
 
                 [m4_define([_LTDL_MODE], [recursive])])
8727
 
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8728
 
                 [m4_define([_LTDL_MODE], [subproject])])
8729
 
 
8730
 
m4_define([_LTDL_TYPE], [])
8731
 
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8732
 
                 [m4_define([_LTDL_TYPE], [installable])])
8733
 
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8734
 
                 [m4_define([_LTDL_TYPE], [convenience])])
8735
 
 
8736
 
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
8737
 
#
8738
 
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8739
 
# Written by Gary V. Vaughan, 2004
8740
 
#
8741
 
# This file is free software; the Free Software Foundation gives
8742
 
# unlimited permission to copy and/or distribute it, with or without
8743
 
# modifications, as long as this notice is preserved.
8744
 
 
8745
 
# serial 6 ltsugar.m4
8746
 
 
8747
 
# This is to help aclocal find these macros, as it can't see m4_define.
8748
 
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8749
 
 
8750
 
 
8751
 
# lt_join(SEP, ARG1, [ARG2...])
8752
 
# -----------------------------
8753
 
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8754
 
# associated separator.
8755
 
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8756
 
# versions in m4sugar had bugs.
8757
 
m4_define([lt_join],
8758
 
[m4_if([$#], [1], [],
8759
 
       [$#], [2], [[$2]],
8760
 
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8761
 
m4_define([_lt_join],
8762
 
[m4_if([$#$2], [2], [],
8763
 
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8764
 
 
8765
 
 
8766
 
# lt_car(LIST)
8767
 
# lt_cdr(LIST)
8768
 
# ------------
8769
 
# Manipulate m4 lists.
8770
 
# These macros are necessary as long as will still need to support
8771
 
# Autoconf-2.59 which quotes differently.
8772
 
m4_define([lt_car], [[$1]])
8773
 
m4_define([lt_cdr],
8774
 
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8775
 
       [$#], 1, [],
8776
 
       [m4_dquote(m4_shift($@))])])
8777
 
m4_define([lt_unquote], $1)
8778
 
 
8779
 
 
8780
 
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8781
 
# ------------------------------------------
8782
 
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8783
 
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8784
 
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8785
 
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8786
 
# than defined and empty).
8787
 
#
8788
 
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8789
 
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8790
 
m4_define([lt_append],
8791
 
[m4_define([$1],
8792
 
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8793
 
 
8794
 
 
8795
 
 
8796
 
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8797
 
# ----------------------------------------------------------
8798
 
# Produce a SEP delimited list of all paired combinations of elements of
8799
 
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
8800
 
# has the form PREFIXmINFIXSUFFIXn.
8801
 
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8802
 
m4_define([lt_combine],
8803
 
[m4_if(m4_eval([$# > 3]), [1],
8804
 
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8805
 
[[m4_foreach([_Lt_prefix], [$2],
8806
 
             [m4_foreach([_Lt_suffix],
8807
 
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8808
 
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8809
 
 
8810
 
 
8811
 
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8812
 
# -----------------------------------------------------------------------
8813
 
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8814
 
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8815
 
m4_define([lt_if_append_uniq],
8816
 
[m4_ifdef([$1],
8817
 
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8818
 
                 [lt_append([$1], [$2], [$3])$4],
8819
 
                 [$5])],
8820
 
          [lt_append([$1], [$2], [$3])$4])])
8821
 
 
8822
 
 
8823
 
# lt_dict_add(DICT, KEY, VALUE)
8824
 
# -----------------------------
8825
 
m4_define([lt_dict_add],
8826
 
[m4_define([$1($2)], [$3])])
8827
 
 
8828
 
 
8829
 
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8830
 
# --------------------------------------------
8831
 
m4_define([lt_dict_add_subkey],
8832
 
[m4_define([$1($2:$3)], [$4])])
8833
 
 
8834
 
 
8835
 
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8836
 
# ----------------------------------
8837
 
m4_define([lt_dict_fetch],
8838
 
[m4_ifval([$3],
8839
 
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8840
 
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8841
 
 
8842
 
 
8843
 
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8844
 
# -----------------------------------------------------------------
8845
 
m4_define([lt_if_dict_fetch],
8846
 
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8847
 
        [$5],
8848
 
    [$6])])
8849
 
 
8850
 
 
8851
 
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8852
 
# --------------------------------------------------------------
8853
 
m4_define([lt_dict_filter],
8854
 
[m4_if([$5], [], [],
8855
 
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
8856
 
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8857
 
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8858
 
])
8859
 
 
8860
 
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
8861
 
#
8862
 
#   Copyright (C) 2004 Free Software Foundation, Inc.
8863
 
#   Written by Scott James Remnant, 2004
8864
 
#
8865
 
# This file is free software; the Free Software Foundation gives
8866
 
# unlimited permission to copy and/or distribute it, with or without
8867
 
# modifications, as long as this notice is preserved.
8868
 
 
8869
 
# Generated from ltversion.in.
8870
 
 
8871
 
# serial 3017 ltversion.m4
8872
 
# This file is part of GNU Libtool
8873
 
 
8874
 
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
8875
 
m4_define([LT_PACKAGE_REVISION], [1.3017])
8876
 
 
8877
 
AC_DEFUN([LTVERSION_VERSION],
8878
 
[macro_version='2.2.6b'
8879
 
macro_revision='1.3017'
8880
 
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8881
 
_LT_DECL(, macro_revision, 0)
8882
 
])
8883
 
 
8884
 
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8885
 
#
8886
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8887
 
#   Written by Scott James Remnant, 2004.
8888
 
#
8889
 
# This file is free software; the Free Software Foundation gives
8890
 
# unlimited permission to copy and/or distribute it, with or without
8891
 
# modifications, as long as this notice is preserved.
8892
 
 
8893
 
# serial 4 lt~obsolete.m4
8894
 
 
8895
 
# These exist entirely to fool aclocal when bootstrapping libtool.
8896
 
#
8897
 
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8898
 
# which have later been changed to m4_define as they aren't part of the
8899
 
# exported API, or moved to Autoconf or Automake where they belong.
8900
 
#
8901
 
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
8902
 
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8903
 
# using a macro with the same name in our local m4/libtool.m4 it'll
8904
 
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8905
 
# and doesn't know about Autoconf macros at all.)
8906
 
#
8907
 
# So we provide this file, which has a silly filename so it's always
8908
 
# included after everything else.  This provides aclocal with the
8909
 
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8910
 
# because those macros already exist, or will be overwritten later.
8911
 
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
8912
 
#
8913
 
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8914
 
# Yes, that means every name once taken will need to remain here until
8915
 
# we give up compatibility with versions before 1.7, at which point
8916
 
# we need to keep only those names which we still refer to.
8917
 
 
8918
 
# This is to help aclocal find these macros, as it can't see m4_define.
8919
 
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8920
 
 
8921
 
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8922
 
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
8923
 
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8924
 
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
8925
 
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8926
 
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
8927
 
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
8928
 
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8929
 
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
8930
 
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8931
 
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
8932
 
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8933
 
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8934
 
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8935
 
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8936
 
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8937
 
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
8938
 
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8939
 
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8940
 
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
8941
 
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
8942
 
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8943
 
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8944
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8945
 
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8946
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8947
 
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8948
 
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8949
 
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
8950
 
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
8951
 
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
8952
 
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8953
 
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8954
 
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
8955
 
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
8956
 
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8957
 
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8958
 
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
8959
 
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8960
 
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
8961
 
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
8962
 
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
8963
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
8964
 
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8965
 
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8966
 
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8967
 
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8968
 
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8969
 
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8970
 
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8971
 
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8972
 
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8973
 
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8974
 
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8975
 
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8976
 
 
8977
 
# nls.m4 serial 3 (gettext-0.15)
8978
 
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8979
 
dnl This file is free software; the Free Software Foundation
8980
 
dnl gives unlimited permission to copy and/or distribute it,
8981
 
dnl with or without modifications, as long as this notice is preserved.
8982
 
dnl
8983
 
dnl This file can can be used in projects which are not available under
8984
 
dnl the GNU General Public License or the GNU Library General Public
8985
 
dnl License but which still want to provide support for the GNU gettext
8986
 
dnl functionality.
8987
 
dnl Please note that the actual code of the GNU gettext library is covered
8988
 
dnl by the GNU Library General Public License, and the rest of the GNU
8989
 
dnl gettext package package is covered by the GNU General Public License.
8990
 
dnl They are *not* in the public domain.
8991
 
 
8992
 
dnl Authors:
8993
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8994
 
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8995
 
 
8996
 
AC_PREREQ(2.50)
8997
 
 
8998
 
AC_DEFUN([AM_NLS],
8999
 
[
9000
 
  AC_MSG_CHECKING([whether NLS is requested])
9001
 
  dnl Default is enabled NLS
9002
 
  AC_ARG_ENABLE(nls,
9003
 
    [  --disable-nls           do not use Native Language Support],
9004
 
    USE_NLS=$enableval, USE_NLS=yes)
9005
 
  AC_MSG_RESULT($USE_NLS)
9006
 
  AC_SUBST(USE_NLS)
9007
 
])
9008
 
 
9009
 
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
9010
 
9011
 
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
9012
 
#
9013
 
# This program is free software; you can redistribute it and/or modify
9014
 
# it under the terms of the GNU General Public License as published by
9015
 
# the Free Software Foundation; either version 2 of the License, or
9016
 
# (at your option) any later version.
9017
 
#
9018
 
# This program is distributed in the hope that it will be useful, but
9019
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
9020
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9021
 
# General Public License for more details.
9022
 
#
9023
 
# You should have received a copy of the GNU General Public License
9024
 
# along with this program; if not, write to the Free Software
9025
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9026
 
#
9027
 
# As a special exception to the GNU General Public License, if you
9028
 
# distribute this file as part of a program that contains a
9029
 
# configuration script generated by Autoconf, you may include it under
9030
 
# the same distribution terms that you use for the rest of that program.
9031
 
 
9032
 
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
9033
 
# ----------------------------------
9034
 
AC_DEFUN([PKG_PROG_PKG_CONFIG],
9035
 
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9036
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
9037
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
9038
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9039
 
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
9040
 
fi
9041
 
if test -n "$PKG_CONFIG"; then
9042
 
        _pkg_min_version=m4_default([$1], [0.9.0])
9043
 
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
9044
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9045
 
                AC_MSG_RESULT([yes])
9046
 
        else
9047
 
                AC_MSG_RESULT([no])
9048
 
                PKG_CONFIG=""
9049
 
        fi
9050
 
                
9051
 
fi[]dnl
9052
 
])# PKG_PROG_PKG_CONFIG
9053
 
 
9054
 
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9055
 
#
9056
 
# Check to see whether a particular set of modules exists.  Similar
9057
 
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
9058
 
#
9059
 
#
9060
 
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
9061
 
# this or PKG_CHECK_MODULES is called, or make sure to call
9062
 
# PKG_CHECK_EXISTS manually
9063
 
# --------------------------------------------------------------
9064
 
AC_DEFUN([PKG_CHECK_EXISTS],
9065
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9066
 
if test -n "$PKG_CONFIG" && \
9067
 
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
9068
 
  m4_ifval([$2], [$2], [:])
9069
 
m4_ifvaln([$3], [else
9070
 
  $3])dnl
9071
 
fi])
9072
 
 
9073
 
 
9074
 
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9075
 
# ---------------------------------------------
9076
 
m4_define([_PKG_CONFIG],
9077
 
[if test -n "$$1"; then
9078
 
    pkg_cv_[]$1="$$1"
9079
 
 elif test -n "$PKG_CONFIG"; then
9080
 
    PKG_CHECK_EXISTS([$3],
9081
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
9082
 
                     [pkg_failed=yes])
9083
 
 else
9084
 
    pkg_failed=untried
9085
 
fi[]dnl
9086
 
])# _PKG_CONFIG
9087
 
 
9088
 
# _PKG_SHORT_ERRORS_SUPPORTED
9089
 
# -----------------------------
9090
 
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
9091
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9092
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9093
 
        _pkg_short_errors_supported=yes
9094
 
else
9095
 
        _pkg_short_errors_supported=no
9096
 
fi[]dnl
9097
 
])# _PKG_SHORT_ERRORS_SUPPORTED
9098
 
 
9099
 
 
9100
 
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
9101
 
# [ACTION-IF-NOT-FOUND])
9102
 
#
9103
 
#
9104
 
# Note that if there is a possibility the first call to
9105
 
# PKG_CHECK_MODULES might not happen, you should be sure to include an
9106
 
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
9107
 
#
9108
 
#
9109
 
# --------------------------------------------------------------
9110
 
AC_DEFUN([PKG_CHECK_MODULES],
9111
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9112
 
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
9113
 
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
9114
 
 
9115
 
pkg_failed=no
9116
 
AC_MSG_CHECKING([for $1])
9117
 
 
9118
 
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
9119
 
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
9120
 
 
9121
 
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
9122
 
and $1[]_LIBS to avoid the need to call pkg-config.
9123
 
See the pkg-config man page for more details.])
9124
 
 
9125
 
if test $pkg_failed = yes; then
9126
 
        _PKG_SHORT_ERRORS_SUPPORTED
9127
 
        if test $_pkg_short_errors_supported = yes; then
9128
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
9129
 
        else 
9130
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
9131
 
        fi
9132
 
        # Put the nasty error message in config.log where it belongs
9133
 
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9134
 
 
9135
 
        ifelse([$4], , [AC_MSG_ERROR(dnl
9136
 
[Package requirements ($2) were not met:
9137
 
 
9138
 
$$1_PKG_ERRORS
9139
 
 
9140
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9141
 
installed software in a non-standard prefix.
9142
 
 
9143
 
_PKG_TEXT
9144
 
])],
9145
 
                [AC_MSG_RESULT([no])
9146
 
                $4])
9147
 
elif test $pkg_failed = untried; then
9148
 
        ifelse([$4], , [AC_MSG_FAILURE(dnl
9149
 
[The pkg-config script could not be found or is too old.  Make sure it
9150
 
is in your PATH or set the PKG_CONFIG environment variable to the full
9151
 
path to pkg-config.
9152
 
 
9153
 
_PKG_TEXT
9154
 
 
9155
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
9156
 
                [$4])
9157
 
else
9158
 
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9159
 
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9160
 
        AC_MSG_RESULT([yes])
9161
 
        ifelse([$3], , :, [$3])
9162
 
fi[]dnl
9163
 
])# PKG_CHECK_MODULES
9164
 
 
9165
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
9166
 
#
9167
 
# This file is free software; the Free Software Foundation
9168
 
# gives unlimited permission to copy and/or distribute it,
9169
 
# with or without modifications, as long as this notice is preserved.
9170
 
 
9171
 
# AM_AUTOMAKE_VERSION(VERSION)
9172
 
# ----------------------------
9173
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
9174
 
# generated from the m4 files accompanying Automake X.Y.
9175
 
# (This private macro should not be called outside this file.)
9176
 
AC_DEFUN([AM_AUTOMAKE_VERSION],
9177
 
[am__api_version='1.11'
9178
 
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9179
 
dnl require some minimum version.  Point them to the right macro.
9180
 
m4_if([$1], [1.11.1], [],
9181
 
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9182
 
])
9183
 
 
9184
 
# _AM_AUTOCONF_VERSION(VERSION)
9185
 
# -----------------------------
9186
 
# aclocal traces this macro to find the Autoconf version.
9187
 
# This is a private macro too.  Using m4_define simplifies
9188
 
# the logic in aclocal, which can simply ignore this definition.
9189
 
m4_define([_AM_AUTOCONF_VERSION], [])
9190
 
 
9191
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
9192
 
# -------------------------------
9193
 
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9194
 
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9195
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9196
 
[AM_AUTOMAKE_VERSION([1.11.1])dnl
9197
 
m4_ifndef([AC_AUTOCONF_VERSION],
9198
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9199
 
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9200
 
 
9201
 
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
9202
 
 
9203
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9204
 
#
9205
 
# This file is free software; the Free Software Foundation
9206
 
# gives unlimited permission to copy and/or distribute it,
9207
 
# with or without modifications, as long as this notice is preserved.
9208
 
 
9209
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9210
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
9211
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9212
 
#
9213
 
# Of course, Automake must honor this variable whenever it calls a
9214
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
9215
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
9216
 
# depending on how configure is run.  This is pretty annoying, since
9217
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
9218
 
# source directory, any form will work fine, but in subdirectories a
9219
 
# relative path needs to be adjusted first.
9220
 
#
9221
 
# $ac_aux_dir/missing
9222
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
9223
 
# $top_srcdir/$ac_aux_dir/missing
9224
 
#    fails if $ac_aux_dir is absolute,
9225
 
#    fails when called from a subdirectory in a VPATH build with
9226
 
#          a relative $ac_aux_dir
9227
 
#
9228
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9229
 
# are both prefixed by $srcdir.  In an in-source build this is usually
9230
 
# harmless because $srcdir is `.', but things will broke when you
9231
 
# start a VPATH build or use an absolute $srcdir.
9232
 
#
9233
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9234
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
9235
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9236
 
# and then we would define $MISSING as
9237
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
9238
 
# This will work as long as MISSING is not called from configure, because
9239
 
# unfortunately $(top_srcdir) has no meaning in configure.
9240
 
# However there are other variables, like CC, which are often used in
9241
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
9242
 
#
9243
 
# Another solution, used here, is to always expand $ac_aux_dir to an
9244
 
# absolute PATH.  The drawback is that using absolute paths prevent a
9245
 
# configured tree to be moved without reconfiguration.
9246
 
 
9247
 
AC_DEFUN([AM_AUX_DIR_EXPAND],
9248
 
[dnl Rely on autoconf to set up CDPATH properly.
9249
 
AC_PREREQ([2.50])dnl
9250
 
# expand $ac_aux_dir to an absolute path
9251
 
am_aux_dir=`cd $ac_aux_dir && pwd`
9252
 
])
9253
 
 
9254
 
# AM_CONDITIONAL                                            -*- Autoconf -*-
9255
 
 
9256
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
9257
 
# Free Software Foundation, Inc.
9258
 
#
9259
 
# This file is free software; the Free Software Foundation
9260
 
# gives unlimited permission to copy and/or distribute it,
9261
 
# with or without modifications, as long as this notice is preserved.
9262
 
 
9263
 
# serial 9
9264
 
 
9265
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9266
 
# -------------------------------------
9267
 
# Define a conditional.
9268
 
AC_DEFUN([AM_CONDITIONAL],
9269
 
[AC_PREREQ(2.52)dnl
9270
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
9271
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9272
 
AC_SUBST([$1_TRUE])dnl
9273
 
AC_SUBST([$1_FALSE])dnl
9274
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
9275
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
9276
 
m4_define([_AM_COND_VALUE_$1], [$2])dnl
9277
 
if $2; then
9278
 
  $1_TRUE=
9279
 
  $1_FALSE='#'
9280
 
else
9281
 
  $1_TRUE='#'
9282
 
  $1_FALSE=
9283
 
fi
9284
 
AC_CONFIG_COMMANDS_PRE(
9285
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9286
 
  AC_MSG_ERROR([[conditional "$1" was never defined.
9287
 
Usually this means the macro was only invoked conditionally.]])
9288
 
fi])])
9289
 
 
9290
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
9291
 
# Free Software Foundation, Inc.
9292
 
#
9293
 
# This file is free software; the Free Software Foundation
9294
 
# gives unlimited permission to copy and/or distribute it,
9295
 
# with or without modifications, as long as this notice is preserved.
9296
 
 
9297
 
# serial 10
9298
 
 
9299
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9300
 
# written in clear, in which case automake, when reading aclocal.m4,
9301
 
# will think it sees a *use*, and therefore will trigger all it's
9302
 
# C support machinery.  Also note that it means that autoscan, seeing
9303
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9304
 
 
9305
 
 
9306
 
# _AM_DEPENDENCIES(NAME)
9307
 
# ----------------------
9308
 
# See how the compiler implements dependency checking.
9309
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
9310
 
# We try a few techniques and use that to set a single cache variable.
9311
 
#
9312
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9313
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9314
 
# dependency, and given that the user is not expected to run this macro,
9315
 
# just rely on AC_PROG_CC.
9316
 
AC_DEFUN([_AM_DEPENDENCIES],
9317
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
9318
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9319
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9320
 
AC_REQUIRE([AM_DEP_TRACK])dnl
9321
 
 
9322
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
9323
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
9324
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9325
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
9326
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
9327
 
                   [depcc="$$1"   am_compiler_list=])
9328
 
 
9329
 
AC_CACHE_CHECK([dependency style of $depcc],
9330
 
               [am_cv_$1_dependencies_compiler_type],
9331
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9332
 
  # We make a subdir and do the tests there.  Otherwise we can end up
9333
 
  # making bogus files that we don't know about and never remove.  For
9334
 
  # instance it was reported that on HP-UX the gcc test will end up
9335
 
  # making a dummy file named `D' -- because `-MD' means `put the output
9336
 
  # in D'.
9337
 
  mkdir conftest.dir
9338
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
9339
 
  # using a relative directory.
9340
 
  cp "$am_depcomp" conftest.dir
9341
 
  cd conftest.dir
9342
 
  # We will build objects and dependencies in a subdirectory because
9343
 
  # it helps to detect inapplicable dependency modes.  For instance
9344
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
9345
 
  # side effect of compilation, but ICC will put the dependencies in
9346
 
  # the current directory while Tru64 will put them in the object
9347
 
  # directory.
9348
 
  mkdir sub
9349
 
 
9350
 
  am_cv_$1_dependencies_compiler_type=none
9351
 
  if test "$am_compiler_list" = ""; then
9352
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9353
 
  fi
9354
 
  am__universal=false
9355
 
  m4_case([$1], [CC],
9356
 
    [case " $depcc " in #(
9357
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9358
 
     esac],
9359
 
    [CXX],
9360
 
    [case " $depcc " in #(
9361
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9362
 
     esac])
9363
 
 
9364
 
  for depmode in $am_compiler_list; do
9365
 
    # Setup a source with many dependencies, because some compilers
9366
 
    # like to wrap large dependency lists on column 80 (with \), and
9367
 
    # we should not choose a depcomp mode which is confused by this.
9368
 
    #
9369
 
    # We need to recreate these files for each test, as the compiler may
9370
 
    # overwrite some of them when testing with obscure command lines.
9371
 
    # This happens at least with the AIX C compiler.
9372
 
    : > sub/conftest.c
9373
 
    for i in 1 2 3 4 5 6; do
9374
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9375
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9376
 
      # Solaris 8's {/usr,}/bin/sh.
9377
 
      touch sub/conftst$i.h
9378
 
    done
9379
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9380
 
 
9381
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9382
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
9383
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
9384
 
    # versions had trouble with output in subdirs
9385
 
    am__obj=sub/conftest.${OBJEXT-o}
9386
 
    am__minus_obj="-o $am__obj"
9387
 
    case $depmode in
9388
 
    gcc)
9389
 
      # This depmode causes a compiler race in universal mode.
9390
 
      test "$am__universal" = false || continue
9391
 
      ;;
9392
 
    nosideeffect)
9393
 
      # after this tag, mechanisms are not by side-effect, so they'll
9394
 
      # only be used when explicitly requested
9395
 
      if test "x$enable_dependency_tracking" = xyes; then
9396
 
        continue
9397
 
      else
9398
 
        break
9399
 
      fi
9400
 
      ;;
9401
 
    msvisualcpp | msvcmsys)
9402
 
      # This compiler won't grok `-c -o', but also, the minuso test has
9403
 
      # not run yet.  These depmodes are late enough in the game, and
9404
 
      # so weak that their functioning should not be impacted.
9405
 
      am__obj=conftest.${OBJEXT-o}
9406
 
      am__minus_obj=
9407
 
      ;;
9408
 
    none) break ;;
9409
 
    esac
9410
 
    if depmode=$depmode \
9411
 
       source=sub/conftest.c object=$am__obj \
9412
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9413
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9414
 
         >/dev/null 2>conftest.err &&
9415
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9416
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9417
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9418
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9419
 
      # icc doesn't choke on unknown options, it will just issue warnings
9420
 
      # or remarks (even with -Werror).  So we grep stderr for any message
9421
 
      # that says an option was ignored or not supported.
9422
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
9423
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
9424
 
      # The diagnosis changed in icc 8.0:
9425
 
      #   icc: Command line remark: option '-MP' not supported
9426
 
      if (grep 'ignoring option' conftest.err ||
9427
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9428
 
        am_cv_$1_dependencies_compiler_type=$depmode
9429
 
        break
9430
 
      fi
9431
 
    fi
9432
 
  done
9433
 
 
9434
 
  cd ..
9435
 
  rm -rf conftest.dir
9436
 
else
9437
 
  am_cv_$1_dependencies_compiler_type=none
9438
 
fi
9439
 
])
9440
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9441
 
AM_CONDITIONAL([am__fastdep$1], [
9442
 
  test "x$enable_dependency_tracking" != xno \
9443
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9444
 
])
9445
 
 
9446
 
 
9447
 
# AM_SET_DEPDIR
9448
 
# -------------
9449
 
# Choose a directory name for dependency files.
9450
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9451
 
AC_DEFUN([AM_SET_DEPDIR],
9452
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9453
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9454
 
])
9455
 
 
9456
 
 
9457
 
# AM_DEP_TRACK
9458
 
# ------------
9459
 
AC_DEFUN([AM_DEP_TRACK],
9460
 
[AC_ARG_ENABLE(dependency-tracking,
9461
 
[  --disable-dependency-tracking  speeds up one-time build
9462
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
9463
 
if test "x$enable_dependency_tracking" != xno; then
9464
 
  am_depcomp="$ac_aux_dir/depcomp"
9465
 
  AMDEPBACKSLASH='\'
9466
 
fi
9467
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9468
 
AC_SUBST([AMDEPBACKSLASH])dnl
9469
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9470
 
])
9471
 
 
9472
 
# Generate code to set up dependency tracking.              -*- Autoconf -*-
9473
 
 
9474
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9475
 
# Free Software Foundation, Inc.
9476
 
#
9477
 
# This file is free software; the Free Software Foundation
9478
 
# gives unlimited permission to copy and/or distribute it,
9479
 
# with or without modifications, as long as this notice is preserved.
9480
 
 
9481
 
#serial 5
9482
 
 
9483
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9484
 
# ------------------------------
9485
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9486
 
[{
9487
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
9488
 
  # are listed without --file.  Let's play safe and only enable the eval
9489
 
  # if we detect the quoting.
9490
 
  case $CONFIG_FILES in
9491
 
  *\'*) eval set x "$CONFIG_FILES" ;;
9492
 
  *)   set x $CONFIG_FILES ;;
9493
 
  esac
9494
 
  shift
9495
 
  for mf
9496
 
  do
9497
 
    # Strip MF so we end up with the name of the file.
9498
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
9499
 
    # Check whether this is an Automake generated Makefile or not.
9500
 
    # We used to match only the files named `Makefile.in', but
9501
 
    # some people rename them; so instead we look at the file content.
9502
 
    # Grep'ing the first line is not enough: some people post-process
9503
 
    # each Makefile.in and add a new line on top of each file to say so.
9504
 
    # Grep'ing the whole file is not good either: AIX grep has a line
9505
 
    # limit of 2048, but all sed's we know have understand at least 4000.
9506
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9507
 
      dirpart=`AS_DIRNAME("$mf")`
9508
 
    else
9509
 
      continue
9510
 
    fi
9511
 
    # Extract the definition of DEPDIR, am__include, and am__quote
9512
 
    # from the Makefile without running `make'.
9513
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9514
 
    test -z "$DEPDIR" && continue
9515
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9516
 
    test -z "am__include" && continue
9517
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9518
 
    # When using ansi2knr, U may be empty or an underscore; expand it
9519
 
    U=`sed -n 's/^U = //p' < "$mf"`
9520
 
    # Find all dependency output files, they are included files with
9521
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9522
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
9523
 
    # expansion.
9524
 
    for file in `sed -n "
9525
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9526
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9527
 
      # Make sure the directory exists.
9528
 
      test -f "$dirpart/$file" && continue
9529
 
      fdir=`AS_DIRNAME(["$file"])`
9530
 
      AS_MKDIR_P([$dirpart/$fdir])
9531
 
      # echo "creating $dirpart/$file"
9532
 
      echo '# dummy' > "$dirpart/$file"
9533
 
    done
9534
 
  done
9535
 
}
9536
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9537
 
 
9538
 
 
9539
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
9540
 
# -----------------------------
9541
 
# This macro should only be invoked once -- use via AC_REQUIRE.
9542
 
#
9543
 
# This code is only required when automatic dependency tracking
9544
 
# is enabled.  FIXME.  This creates each `.P' file that we will
9545
 
# need in order to bootstrap the dependency handling code.
9546
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9547
 
[AC_CONFIG_COMMANDS([depfiles],
9548
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9549
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9550
 
])
9551
 
 
9552
 
# Do all the work for Automake.                             -*- Autoconf -*-
9553
 
 
9554
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9555
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9556
 
#
9557
 
# This file is free software; the Free Software Foundation
9558
 
# gives unlimited permission to copy and/or distribute it,
9559
 
# with or without modifications, as long as this notice is preserved.
9560
 
 
9561
 
# serial 16
9562
 
 
9563
 
# This macro actually does too much.  Some checks are only needed if
9564
 
# your package does certain things.  But this isn't really a big deal.
9565
 
 
9566
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9567
 
# AM_INIT_AUTOMAKE([OPTIONS])
9568
 
# -----------------------------------------------
9569
 
# The call with PACKAGE and VERSION arguments is the old style
9570
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
9571
 
# and VERSION should now be passed to AC_INIT and removed from
9572
 
# the call to AM_INIT_AUTOMAKE.
9573
 
# We support both call styles for the transition.  After
9574
 
# the next Automake release, Autoconf can make the AC_INIT
9575
 
# arguments mandatory, and then we can depend on a new Autoconf
9576
 
# release and drop the old call support.
9577
 
AC_DEFUN([AM_INIT_AUTOMAKE],
9578
 
[AC_PREREQ([2.62])dnl
9579
 
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
9580
 
dnl the ones we care about.
9581
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9582
 
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9583
 
AC_REQUIRE([AC_PROG_INSTALL])dnl
9584
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9585
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9586
 
  # is not polluted with repeated "-I."
9587
 
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9588
 
  # test to see if srcdir already configured
9589
 
  if test -f $srcdir/config.status; then
9590
 
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9591
 
  fi
9592
 
fi
9593
 
 
9594
 
# test whether we have cygpath
9595
 
if test -z "$CYGPATH_W"; then
9596
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
9597
 
    CYGPATH_W='cygpath -w'
9598
 
  else
9599
 
    CYGPATH_W=echo
9600
 
  fi
9601
 
fi
9602
 
AC_SUBST([CYGPATH_W])
9603
 
 
9604
 
# Define the identity of the package.
9605
 
dnl Distinguish between old-style and new-style calls.
9606
 
m4_ifval([$2],
9607
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9608
 
 AC_SUBST([PACKAGE], [$1])dnl
9609
 
 AC_SUBST([VERSION], [$2])],
9610
 
[_AM_SET_OPTIONS([$1])dnl
9611
 
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9612
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9613
 
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9614
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9615
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9616
 
 
9617
 
_AM_IF_OPTION([no-define],,
9618
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9619
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9620
 
 
9621
 
# Some tools Automake needs.
9622
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
9623
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
9624
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9625
 
AM_MISSING_PROG(AUTOCONF, autoconf)
9626
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9627
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
9628
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
9629
 
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9630
 
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9631
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9632
 
# We need awk for the "check" target.  The system "awk" is bad on
9633
 
# some platforms.
9634
 
AC_REQUIRE([AC_PROG_AWK])dnl
9635
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9636
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9637
 
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9638
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9639
 
                             [_AM_PROG_TAR([v7])])])
9640
 
_AM_IF_OPTION([no-dependencies],,
9641
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9642
 
                  [_AM_DEPENDENCIES(CC)],
9643
 
                  [define([AC_PROG_CC],
9644
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9645
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9646
 
                  [_AM_DEPENDENCIES(CXX)],
9647
 
                  [define([AC_PROG_CXX],
9648
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9649
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9650
 
                  [_AM_DEPENDENCIES(OBJC)],
9651
 
                  [define([AC_PROG_OBJC],
9652
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9653
 
])
9654
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9655
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9656
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
9657
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9658
 
AC_CONFIG_COMMANDS_PRE(dnl
9659
 
[m4_provide_if([_AM_COMPILER_EXEEXT],
9660
 
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9661
 
])
9662
 
 
9663
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
9664
 
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9665
 
dnl mangled by Autoconf and run in a shell conditional statement.
9666
 
m4_define([_AC_COMPILER_EXEEXT],
9667
 
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9668
 
 
9669
 
 
9670
 
# When config.status generates a header, we must update the stamp-h file.
9671
 
# This file resides in the same directory as the config header
9672
 
# that is generated.  The stamp files are numbered to have different names.
9673
 
 
9674
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9675
 
# loop where config.status creates the headers, so we can generate
9676
 
# our stamp files there.
9677
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9678
 
[# Compute $1's index in $config_headers.
9679
 
_am_arg=$1
9680
 
_am_stamp_count=1
9681
 
for _am_header in $config_headers :; do
9682
 
  case $_am_header in
9683
 
    $_am_arg | $_am_arg:* )
9684
 
      break ;;
9685
 
    * )
9686
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9687
 
  esac
9688
 
done
9689
 
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9690
 
 
9691
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
9692
 
#
9693
 
# This file is free software; the Free Software Foundation
9694
 
# gives unlimited permission to copy and/or distribute it,
9695
 
# with or without modifications, as long as this notice is preserved.
9696
 
 
9697
 
# AM_PROG_INSTALL_SH
9698
 
# ------------------
9699
 
# Define $install_sh.
9700
 
AC_DEFUN([AM_PROG_INSTALL_SH],
9701
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9702
 
if test x"${install_sh}" != xset; then
9703
 
  case $am_aux_dir in
9704
 
  *\ * | *\     *)
9705
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9706
 
  *)
9707
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
9708
 
  esac
9709
 
fi
9710
 
AC_SUBST(install_sh)])
9711
 
 
9712
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
9713
 
#
9714
 
# This file is free software; the Free Software Foundation
9715
 
# gives unlimited permission to copy and/or distribute it,
9716
 
# with or without modifications, as long as this notice is preserved.
9717
 
 
9718
 
# serial 2
9719
 
 
9720
 
# Check whether the underlying file-system supports filenames
9721
 
# with a leading dot.  For instance MS-DOS doesn't.
9722
 
AC_DEFUN([AM_SET_LEADING_DOT],
9723
 
[rm -rf .tst 2>/dev/null
9724
 
mkdir .tst 2>/dev/null
9725
 
if test -d .tst; then
9726
 
  am__leading_dot=.
9727
 
else
9728
 
  am__leading_dot=_
9729
 
fi
9730
 
rmdir .tst 2>/dev/null
9731
 
AC_SUBST([am__leading_dot])])
9732
 
 
9733
 
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
9734
 
 
9735
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
9736
 
#
9737
 
# This file is free software; the Free Software Foundation
9738
 
# gives unlimited permission to copy and/or distribute it,
9739
 
# with or without modifications, as long as this notice is preserved.
9740
 
 
9741
 
# serial 4
9742
 
 
9743
 
# AM_MAKE_INCLUDE()
9744
 
# -----------------
9745
 
# Check to see how make treats includes.
9746
 
AC_DEFUN([AM_MAKE_INCLUDE],
9747
 
[am_make=${MAKE-make}
9748
 
cat > confinc << 'END'
9749
 
am__doit:
9750
 
        @echo this is the am__doit target
9751
 
.PHONY: am__doit
9752
 
END
9753
 
# If we don't find an include directive, just comment out the code.
9754
 
AC_MSG_CHECKING([for style of include used by $am_make])
9755
 
am__include="#"
9756
 
am__quote=
9757
 
_am_result=none
9758
 
# First try GNU make style include.
9759
 
echo "include confinc" > confmf
9760
 
# Ignore all kinds of additional output from `make'.
9761
 
case `$am_make -s -f confmf 2> /dev/null` in #(
9762
 
*the\ am__doit\ target*)
9763
 
  am__include=include
9764
 
  am__quote=
9765
 
  _am_result=GNU
9766
 
  ;;
9767
 
esac
9768
 
# Now try BSD make style include.
9769
 
if test "$am__include" = "#"; then
9770
 
   echo '.include "confinc"' > confmf
9771
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
9772
 
   *the\ am__doit\ target*)
9773
 
     am__include=.include
9774
 
     am__quote="\""
9775
 
     _am_result=BSD
9776
 
     ;;
9777
 
   esac
9778
 
fi
9779
 
AC_SUBST([am__include])
9780
 
AC_SUBST([am__quote])
9781
 
AC_MSG_RESULT([$_am_result])
9782
 
rm -f confinc confmf
9783
 
])
9784
 
 
9785
 
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
9786
 
# Free Software Foundation, Inc.
9787
 
#
9788
 
# This file is free software; the Free Software Foundation
9789
 
# gives unlimited permission to copy and/or distribute it,
9790
 
# with or without modifications, as long as this notice is preserved.
9791
 
 
9792
 
# serial 6
9793
 
 
9794
 
# AM_PROG_CC_C_O
9795
 
# --------------
9796
 
# Like AC_PROG_CC_C_O, but changed for automake.
9797
 
AC_DEFUN([AM_PROG_CC_C_O],
9798
 
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
9799
 
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9800
 
AC_REQUIRE_AUX_FILE([compile])dnl
9801
 
# FIXME: we rely on the cache variable name because
9802
 
# there is no other way.
9803
 
set dummy $CC
9804
 
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
9805
 
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
9806
 
if test "$am_t" != yes; then
9807
 
   # Losing compiler, so override with the script.
9808
 
   # FIXME: It is wrong to rewrite CC.
9809
 
   # But if we don't then we get into trouble of one sort or another.
9810
 
   # A longer-term fix would be to have automake use am__CC in this case,
9811
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9812
 
   CC="$am_aux_dir/compile $CC"
9813
 
fi
9814
 
dnl Make sure AC_PROG_CC is never called again, or it will override our
9815
 
dnl setting of CC.
9816
 
m4_define([AC_PROG_CC],
9817
 
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
9818
 
])
9819
 
 
9820
 
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9821
 
 
9822
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9823
 
# Free Software Foundation, Inc.
9824
 
#
9825
 
# This file is free software; the Free Software Foundation
9826
 
# gives unlimited permission to copy and/or distribute it,
9827
 
# with or without modifications, as long as this notice is preserved.
9828
 
 
9829
 
# serial 6
9830
 
 
9831
 
# AM_MISSING_PROG(NAME, PROGRAM)
9832
 
# ------------------------------
9833
 
AC_DEFUN([AM_MISSING_PROG],
9834
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
9835
 
$1=${$1-"${am_missing_run}$2"}
9836
 
AC_SUBST($1)])
9837
 
 
9838
 
 
9839
 
# AM_MISSING_HAS_RUN
9840
 
# ------------------
9841
 
# Define MISSING if not defined so far and test if it supports --run.
9842
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
9843
 
AC_DEFUN([AM_MISSING_HAS_RUN],
9844
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9845
 
AC_REQUIRE_AUX_FILE([missing])dnl
9846
 
if test x"${MISSING+set}" != xset; then
9847
 
  case $am_aux_dir in
9848
 
  *\ * | *\     *)
9849
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9850
 
  *)
9851
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
9852
 
  esac
9853
 
fi
9854
 
# Use eval to expand $SHELL
9855
 
if eval "$MISSING --run true"; then
9856
 
  am_missing_run="$MISSING --run "
9857
 
else
9858
 
  am_missing_run=
9859
 
  AC_MSG_WARN([`missing' script is too old or missing])
9860
 
fi
9861
 
])
9862
 
 
9863
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
9864
 
#
9865
 
# This file is free software; the Free Software Foundation
9866
 
# gives unlimited permission to copy and/or distribute it,
9867
 
# with or without modifications, as long as this notice is preserved.
9868
 
 
9869
 
# AM_PROG_MKDIR_P
9870
 
# ---------------
9871
 
# Check for `mkdir -p'.
9872
 
AC_DEFUN([AM_PROG_MKDIR_P],
9873
 
[AC_PREREQ([2.60])dnl
9874
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9875
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
9876
 
dnl while keeping a definition of mkdir_p for backward compatibility.
9877
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9878
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9879
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
9880
 
dnl adjustment using top_builddir (which is defined more often than
9881
 
dnl MKDIR_P).
9882
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9883
 
case $mkdir_p in
9884
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
9885
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9886
 
esac
9887
 
])
9888
 
 
9889
 
# Helper functions for option handling.                     -*- Autoconf -*-
9890
 
 
9891
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
9892
 
#
9893
 
# This file is free software; the Free Software Foundation
9894
 
# gives unlimited permission to copy and/or distribute it,
9895
 
# with or without modifications, as long as this notice is preserved.
9896
 
 
9897
 
# serial 4
9898
 
 
9899
 
# _AM_MANGLE_OPTION(NAME)
9900
 
# -----------------------
9901
 
AC_DEFUN([_AM_MANGLE_OPTION],
9902
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9903
 
 
9904
 
# _AM_SET_OPTION(NAME)
9905
 
# ------------------------------
9906
 
# Set option NAME.  Presently that only means defining a flag for this option.
9907
 
AC_DEFUN([_AM_SET_OPTION],
9908
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9909
 
 
9910
 
# _AM_SET_OPTIONS(OPTIONS)
9911
 
# ----------------------------------
9912
 
# OPTIONS is a space-separated list of Automake options.
9913
 
AC_DEFUN([_AM_SET_OPTIONS],
9914
 
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9915
 
 
9916
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9917
 
# -------------------------------------------
9918
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9919
 
AC_DEFUN([_AM_IF_OPTION],
9920
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9921
 
 
9922
 
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
9923
 
 
9924
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9925
 
# Free Software Foundation, Inc.
9926
 
#
9927
 
# This file is free software; the Free Software Foundation
9928
 
# gives unlimited permission to copy and/or distribute it,
9929
 
# with or without modifications, as long as this notice is preserved.
9930
 
 
9931
 
# serial 5
9932
 
 
9933
 
# AM_SANITY_CHECK
9934
 
# ---------------
9935
 
AC_DEFUN([AM_SANITY_CHECK],
9936
 
[AC_MSG_CHECKING([whether build environment is sane])
9937
 
# Just in case
9938
 
sleep 1
9939
 
echo timestamp > conftest.file
9940
 
# Reject unsafe characters in $srcdir or the absolute working directory
9941
 
# name.  Accept space and tab only in the latter.
9942
 
am_lf='
9943
 
'
9944
 
case `pwd` in
9945
 
  *[[\\\"\#\$\&\'\`$am_lf]]*)
9946
 
    AC_MSG_ERROR([unsafe absolute working directory name]);;
9947
 
esac
9948
 
case $srcdir in
9949
 
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
9950
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
9951
 
esac
9952
 
 
9953
 
# Do `set' in a subshell so we don't clobber the current shell's
9954
 
# arguments.  Must try -L first in case configure is actually a
9955
 
# symlink; some systems play weird games with the mod time of symlinks
9956
 
# (eg FreeBSD returns the mod time of the symlink's containing
9957
 
# directory).
9958
 
if (
9959
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9960
 
   if test "$[*]" = "X"; then
9961
 
      # -L didn't work.
9962
 
      set X `ls -t "$srcdir/configure" conftest.file`
9963
 
   fi
9964
 
   rm -f conftest.file
9965
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
9966
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
9967
 
 
9968
 
      # If neither matched, then we have a broken ls.  This can happen
9969
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
9970
 
      # broken ls alias from the environment.  This has actually
9971
 
      # happened.  Such a system could not be considered "sane".
9972
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
9973
 
alias in your environment])
9974
 
   fi
9975
 
 
9976
 
   test "$[2]" = conftest.file
9977
 
   )
9978
 
then
9979
 
   # Ok.
9980
 
   :
9981
 
else
9982
 
   AC_MSG_ERROR([newly created file is older than distributed files!
9983
 
Check your system clock])
9984
 
fi
9985
 
AC_MSG_RESULT(yes)])
9986
 
 
9987
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9988
 
#
9989
 
# This file is free software; the Free Software Foundation
9990
 
# gives unlimited permission to copy and/or distribute it,
9991
 
# with or without modifications, as long as this notice is preserved.
9992
 
 
9993
 
# AM_PROG_INSTALL_STRIP
9994
 
# ---------------------
9995
 
# One issue with vendor `install' (even GNU) is that you can't
9996
 
# specify the program used to strip binaries.  This is especially
9997
 
# annoying in cross-compiling environments, where the build's strip
9998
 
# is unlikely to handle the host's binaries.
9999
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
10000
 
# always use install-sh in `make install-strip', and initialize
10001
 
# STRIPPROG with the value of the STRIP variable (set by the user).
10002
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
10003
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10004
 
# Installed binaries are usually stripped using `strip' when the user
10005
 
# run `make install-strip'.  However `strip' might not be the right
10006
 
# tool to use in cross-compilation environments, therefore Automake
10007
 
# will honor the `STRIP' environment variable to overrule this program.
10008
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
10009
 
if test "$cross_compiling" != no; then
10010
 
  AC_CHECK_TOOL([STRIP], [strip], :)
10011
 
fi
10012
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10013
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
10014
 
 
10015
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
10016
 
#
10017
 
# This file is free software; the Free Software Foundation
10018
 
# gives unlimited permission to copy and/or distribute it,
10019
 
# with or without modifications, as long as this notice is preserved.
10020
 
 
10021
 
# serial 2
10022
 
 
10023
 
# _AM_SUBST_NOTMAKE(VARIABLE)
10024
 
# ---------------------------
10025
 
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10026
 
# This macro is traced by Automake.
10027
 
AC_DEFUN([_AM_SUBST_NOTMAKE])
10028
 
 
10029
 
# AM_SUBST_NOTMAKE(VARIABLE)
10030
 
# ---------------------------
10031
 
# Public sister of _AM_SUBST_NOTMAKE.
10032
 
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10033
 
 
10034
 
# Check how to create a tarball.                            -*- Autoconf -*-
10035
 
 
10036
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
10037
 
#
10038
 
# This file is free software; the Free Software Foundation
10039
 
# gives unlimited permission to copy and/or distribute it,
10040
 
# with or without modifications, as long as this notice is preserved.
10041
 
 
10042
 
# serial 2
10043
 
 
10044
 
# _AM_PROG_TAR(FORMAT)
10045
 
# --------------------
10046
 
# Check how to create a tarball in format FORMAT.
10047
 
# FORMAT should be one of `v7', `ustar', or `pax'.
10048
 
#
10049
 
# Substitute a variable $(am__tar) that is a command
10050
 
# writing to stdout a FORMAT-tarball containing the directory
10051
 
# $tardir.
10052
 
#     tardir=directory && $(am__tar) > result.tar
10053
 
#
10054
 
# Substitute a variable $(am__untar) that extract such
10055
 
# a tarball read from stdin.
10056
 
#     $(am__untar) < result.tar
10057
 
AC_DEFUN([_AM_PROG_TAR],
10058
 
[# Always define AMTAR for backward compatibility.
10059
 
AM_MISSING_PROG([AMTAR], [tar])
10060
 
m4_if([$1], [v7],
10061
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
10062
 
     [m4_case([$1], [ustar],, [pax],,
10063
 
              [m4_fatal([Unknown tar format])])
10064
 
AC_MSG_CHECKING([how to create a $1 tar archive])
10065
 
# Loop over all known methods to create a tar archive until one works.
10066
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10067
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
10068
 
# Do not fold the above two line into one, because Tru64 sh and
10069
 
# Solaris sh will not grok spaces in the rhs of `-'.
10070
 
for _am_tool in $_am_tools
10071
 
do
10072
 
  case $_am_tool in
10073
 
  gnutar)
10074
 
    for _am_tar in tar gnutar gtar;
10075
 
    do
10076
 
      AM_RUN_LOG([$_am_tar --version]) && break
10077
 
    done
10078
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10079
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10080
 
    am__untar="$_am_tar -xf -"
10081
 
    ;;
10082
 
  plaintar)
10083
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
10084
 
    # ustar tarball either.
10085
 
    (tar --version) >/dev/null 2>&1 && continue
10086
 
    am__tar='tar chf - "$$tardir"'
10087
 
    am__tar_='tar chf - "$tardir"'
10088
 
    am__untar='tar xf -'
10089
 
    ;;
10090
 
  pax)
10091
 
    am__tar='pax -L -x $1 -w "$$tardir"'
10092
 
    am__tar_='pax -L -x $1 -w "$tardir"'
10093
 
    am__untar='pax -r'
10094
 
    ;;
10095
 
  cpio)
10096
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10097
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10098
 
    am__untar='cpio -i -H $1 -d'
10099
 
    ;;
10100
 
  none)
10101
 
    am__tar=false
10102
 
    am__tar_=false
10103
 
    am__untar=false
10104
 
    ;;
10105
 
  esac
10106
 
 
10107
 
  # If the value was cached, stop now.  We just wanted to have am__tar
10108
 
  # and am__untar set.
10109
 
  test -n "${am_cv_prog_tar_$1}" && break
10110
 
 
10111
 
  # tar/untar a dummy directory, and stop if the command works
10112
 
  rm -rf conftest.dir
10113
 
  mkdir conftest.dir
10114
 
  echo GrepMe > conftest.dir/file
10115
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10116
 
  rm -rf conftest.dir
10117
 
  if test -s conftest.tar; then
10118
 
    AM_RUN_LOG([$am__untar <conftest.tar])
10119
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10120
 
  fi
10121
 
done
10122
 
rm -rf conftest.dir
10123
 
 
10124
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10125
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10126
 
AC_SUBST([am__tar])
10127
 
AC_SUBST([am__untar])
10128
 
]) # _AM_PROG_TAR
10129
 
 
10130
 
m4_include([acinclude.m4])