~ubuntu-branches/ubuntu/precise/lxappearance-obconf/precise

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2011-07-25 00:39:43 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110725003943-hh7wq6v9rumzft07
Tags: 0.0.1-0ubuntu1
* New upstream release.
* debian/patches:
 - 01_gtk3_migration.patch: Remove, merged upstream.
 - 80_translations.patch: Remove, merged upstream.
 - 99_translation_fix.patch: Remove, not needed.
* debian/rules:
 - Remove --with autoreconf for stable release.
* debian/docs:
 - Don't install README.transifex, removed upstream. 

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.68],,
 
17
[m4_warning([this file was generated for autoconf 2.68.
 
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
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
 
23
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
 
24
#
 
25
# This file is free software, distributed under the terms of the GNU
 
26
# General Public License.  As a special exception to the GNU General
 
27
# Public License, this file may be distributed as part of a program
 
28
# that contains a configuration script generated by Autoconf, under
 
29
# the same distribution terms as the rest of that program.
 
30
#
 
31
# This file can be copied and used freely without restrictions.  It can
 
32
# be used in projects which are not available under the GNU Public License
 
33
# but which still want to provide support for the GNU gettext functionality.
 
34
#
 
35
# Macro to add for using GNU gettext.
 
36
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
 
37
#
 
38
# Modified to never use included libintl. 
 
39
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
 
40
#
 
41
# Major rework to remove unused code
 
42
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
 
43
#
 
44
# Added better handling of ALL_LINGUAS from GNU gettext version 
 
45
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
 
46
#
 
47
# Modified to require ngettext
 
48
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
 
49
#
 
50
# We need this here as well, since someone might use autoconf-2.5x
 
51
# to configure GLib then an older version to configure a package
 
52
# using AM_GLIB_GNU_GETTEXT
 
53
AC_PREREQ(2.53)
 
54
 
 
55
dnl
 
56
dnl We go to great lengths to make sure that aclocal won't 
 
57
dnl try to pull in the installed version of these macros
 
58
dnl when running aclocal in the glib directory.
 
59
dnl
 
60
m4_copy([AC_DEFUN],[glib_DEFUN])
 
61
m4_copy([AC_REQUIRE],[glib_REQUIRE])
 
62
dnl
 
63
dnl At the end, if we're not within glib, we'll define the public
 
64
dnl definitions in terms of our private definitions.
 
65
dnl
 
66
 
 
67
# GLIB_LC_MESSAGES
 
68
#--------------------
 
69
glib_DEFUN([GLIB_LC_MESSAGES],
 
70
  [AC_CHECK_HEADERS([locale.h])
 
71
    if test $ac_cv_header_locale_h = yes; then
 
72
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
 
73
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
 
74
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
 
75
    if test $am_cv_val_LC_MESSAGES = yes; then
 
76
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
 
77
        [Define if your <locale.h> file defines LC_MESSAGES.])
 
78
    fi
 
79
  fi])
 
80
 
 
81
# GLIB_PATH_PROG_WITH_TEST
 
82
#----------------------------
 
83
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
 
84
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
 
85
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
 
86
[# Extract the first word of "$2", so it can be a program name with args.
 
87
set dummy $2; ac_word=[$]2
 
88
AC_MSG_CHECKING([for $ac_word])
 
89
AC_CACHE_VAL(ac_cv_path_$1,
 
90
[case "[$]$1" in
 
91
  /*)
 
92
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
 
93
  ;;
 
94
  *)
 
95
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
96
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
 
97
    test -z "$ac_dir" && ac_dir=.
 
98
    if test -f $ac_dir/$ac_word; then
 
99
      if [$3]; then
 
100
        ac_cv_path_$1="$ac_dir/$ac_word"
 
101
        break
 
102
      fi
 
103
    fi
 
104
  done
 
105
  IFS="$ac_save_ifs"
 
106
dnl If no 4th arg is given, leave the cache variable unset,
 
107
dnl so AC_PATH_PROGS will keep looking.
 
108
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
 
109
])dnl
 
110
  ;;
 
111
esac])dnl
 
112
$1="$ac_cv_path_$1"
 
113
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
 
114
  AC_MSG_RESULT([$]$1)
 
115
else
 
116
  AC_MSG_RESULT(no)
 
117
fi
 
118
AC_SUBST($1)dnl
 
119
])
 
120
 
 
121
# GLIB_WITH_NLS
 
122
#-----------------
 
123
glib_DEFUN([GLIB_WITH_NLS],
 
124
  dnl NLS is obligatory
 
125
  [USE_NLS=yes
 
126
    AC_SUBST(USE_NLS)
 
127
 
 
128
    gt_cv_have_gettext=no
 
129
 
 
130
    CATOBJEXT=NONE
 
131
    XGETTEXT=:
 
132
    INTLLIBS=
 
133
 
 
134
    AC_CHECK_HEADER(libintl.h,
 
135
     [gt_cv_func_dgettext_libintl="no"
 
136
      libintl_extra_libs=""
 
137
 
 
138
      #
 
139
      # First check in libc
 
140
      #
 
141
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
 
142
        [AC_TRY_LINK([
 
143
#include <libintl.h>
 
144
],
 
145
         [return !ngettext ("","", 1)],
 
146
          gt_cv_func_ngettext_libc=yes,
 
147
          gt_cv_func_ngettext_libc=no)
 
148
        ])
 
149
  
 
150
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
151
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
 
152
                [AC_TRY_LINK([
 
153
#include <libintl.h>
 
154
],
 
155
                  [return !dgettext ("","")],
 
156
                  gt_cv_func_dgettext_libc=yes,
 
157
                  gt_cv_func_dgettext_libc=no)
 
158
                ])
 
159
      fi
 
160
  
 
161
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
162
        AC_CHECK_FUNCS(bind_textdomain_codeset)
 
163
      fi
 
164
 
 
165
      #
 
166
      # If we don't have everything we want, check in libintl
 
167
      #
 
168
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
169
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
170
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
171
        
 
172
        AC_CHECK_LIB(intl, bindtextdomain,
 
173
            [AC_CHECK_LIB(intl, ngettext,
 
174
                    [AC_CHECK_LIB(intl, dgettext,
 
175
                                  gt_cv_func_dgettext_libintl=yes)])])
 
176
 
 
177
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
178
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
 
179
          AC_MSG_RESULT([])
 
180
          AC_CHECK_LIB(intl, ngettext,
 
181
                [AC_CHECK_LIB(intl, dcgettext,
 
182
                       [gt_cv_func_dgettext_libintl=yes
 
183
                        libintl_extra_libs=-liconv],
 
184
                        :,-liconv)],
 
185
                :,-liconv)
 
186
        fi
 
187
 
 
188
        #
 
189
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
190
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
191
        # and both have dgettext and ngettext
 
192
        #
 
193
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
194
          glib_save_LIBS="$LIBS"
 
195
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
196
          unset ac_cv_func_bind_textdomain_codeset
 
197
          AC_CHECK_FUNCS(bind_textdomain_codeset)
 
198
          LIBS="$glib_save_LIBS"
 
199
 
 
200
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
201
            gt_cv_func_dgettext_libc=no
 
202
          else
 
203
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
204
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
205
              gt_cv_func_dgettext_libintl=no
 
206
            fi
 
207
          fi
 
208
        fi
 
209
      fi
 
210
 
 
211
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
212
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
213
        gt_cv_have_gettext=yes
 
214
      fi
 
215
  
 
216
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
217
        INTLLIBS="-lintl $libintl_extra_libs"
 
218
      fi
 
219
  
 
220
      if test "$gt_cv_have_gettext" = "yes"; then
 
221
        AC_DEFINE(HAVE_GETTEXT,1,
 
222
          [Define if the GNU gettext() function is already present or preinstalled.])
 
223
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
 
224
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
 
225
        if test "$MSGFMT" != "no"; then
 
226
          glib_save_LIBS="$LIBS"
 
227
          LIBS="$LIBS $INTLLIBS"
 
228
          AC_CHECK_FUNCS(dcgettext)
 
229
          MSGFMT_OPTS=
 
230
          AC_MSG_CHECKING([if msgfmt accepts -c])
 
231
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
 
232
msgid ""
 
233
msgstr ""
 
234
"Content-Type: text/plain; charset=UTF-8\n"
 
235
"Project-Id-Version: test 1.0\n"
 
236
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
237
"Last-Translator: test <foo@bar.xx>\n"
 
238
"Language-Team: C <LL@li.org>\n"
 
239
"MIME-Version: 1.0\n"
 
240
"Content-Transfer-Encoding: 8bit\n"
 
241
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
 
242
          AC_SUBST(MSGFMT_OPTS)
 
243
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
244
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
 
245
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
 
246
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
 
247
                         return _nl_msg_cat_cntr],
 
248
            [CATOBJEXT=.gmo 
 
249
             DATADIRNAME=share],
 
250
            [case $host in
 
251
            *-*-solaris*)
 
252
            dnl On Solaris, if bind_textdomain_codeset is in libc,
 
253
            dnl GNU format message catalog is always supported,
 
254
            dnl since both are added to the libc all together.
 
255
            dnl Hence, we'd like to go with DATADIRNAME=share and
 
256
            dnl and CATOBJEXT=.gmo in this case.
 
257
            AC_CHECK_FUNC(bind_textdomain_codeset,
 
258
              [CATOBJEXT=.gmo 
 
259
               DATADIRNAME=share],
 
260
              [CATOBJEXT=.mo
 
261
               DATADIRNAME=lib])
 
262
            ;;
 
263
            *)
 
264
            CATOBJEXT=.mo
 
265
            DATADIRNAME=lib
 
266
            ;;
 
267
            esac])
 
268
          LIBS="$glib_save_LIBS"
 
269
          INSTOBJEXT=.mo
 
270
        else
 
271
          gt_cv_have_gettext=no
 
272
        fi
 
273
      fi
 
274
    ])
 
275
 
 
276
    if test "$gt_cv_have_gettext" = "yes" ; then
 
277
      AC_DEFINE(ENABLE_NLS, 1,
 
278
        [always defined to indicate that i18n is enabled])
 
279
    fi
 
280
 
 
281
    dnl Test whether we really found GNU xgettext.
 
282
    if test "$XGETTEXT" != ":"; then
 
283
      dnl If it is not GNU xgettext we define it as : so that the
 
284
      dnl Makefiles still can work.
 
285
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
286
        : ;
 
287
      else
 
288
        AC_MSG_RESULT(
 
289
          [found xgettext program is not GNU xgettext; ignore it])
 
290
        XGETTEXT=":"
 
291
      fi
 
292
    fi
 
293
 
 
294
    # We need to process the po/ directory.
 
295
    POSUB=po
 
296
 
 
297
    AC_OUTPUT_COMMANDS(
 
298
      [case "$CONFIG_FILES" in *po/Makefile.in*)
 
299
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
300
      esac])
 
301
 
 
302
    dnl These rules are solely for the distribution goal.  While doing this
 
303
    dnl we only have to keep exactly one list of the available catalogs
 
304
    dnl in configure.ac.
 
305
    for lang in $ALL_LINGUAS; do
 
306
      GMOFILES="$GMOFILES $lang.gmo"
 
307
      POFILES="$POFILES $lang.po"
 
308
    done
 
309
 
 
310
    dnl Make all variables we use known to autoconf.
 
311
    AC_SUBST(CATALOGS)
 
312
    AC_SUBST(CATOBJEXT)
 
313
    AC_SUBST(DATADIRNAME)
 
314
    AC_SUBST(GMOFILES)
 
315
    AC_SUBST(INSTOBJEXT)
 
316
    AC_SUBST(INTLLIBS)
 
317
    AC_SUBST(PO_IN_DATADIR_TRUE)
 
318
    AC_SUBST(PO_IN_DATADIR_FALSE)
 
319
    AC_SUBST(POFILES)
 
320
    AC_SUBST(POSUB)
 
321
  ])
 
322
 
 
323
# AM_GLIB_GNU_GETTEXT
 
324
# -------------------
 
325
# Do checks necessary for use of gettext. If a suitable implementation 
 
326
# of gettext is found in either in libintl or in the C library,
 
327
# it will set INTLLIBS to the libraries needed for use of gettext
 
328
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
 
329
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
 
330
# on various variables needed by the Makefile.in.in installed by 
 
331
# glib-gettextize.
 
332
dnl
 
333
glib_DEFUN([GLIB_GNU_GETTEXT],
 
334
  [AC_REQUIRE([AC_PROG_CC])dnl
 
335
   AC_REQUIRE([AC_HEADER_STDC])dnl
 
336
   
 
337
   GLIB_LC_MESSAGES
 
338
   GLIB_WITH_NLS
 
339
 
 
340
   if test "$gt_cv_have_gettext" = "yes"; then
 
341
     if test "x$ALL_LINGUAS" = "x"; then
 
342
       LINGUAS=
 
343
     else
 
344
       AC_MSG_CHECKING(for catalogs to be installed)
 
345
       NEW_LINGUAS=
 
346
       for presentlang in $ALL_LINGUAS; do
 
347
         useit=no
 
348
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
349
           desiredlanguages="$LINGUAS"
 
350
         else
 
351
           desiredlanguages="$ALL_LINGUAS"
 
352
         fi
 
353
         for desiredlang in $desiredlanguages; do
 
354
           # Use the presentlang catalog if desiredlang is
 
355
           #   a. equal to presentlang, or
 
356
           #   b. a variant of presentlang (because in this case,
 
357
           #      presentlang can be used as a fallback for messages
 
358
           #      which are not translated in the desiredlang catalog).
 
359
           case "$desiredlang" in
 
360
             "$presentlang"*) useit=yes;;
 
361
           esac
 
362
         done
 
363
         if test $useit = yes; then
 
364
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
365
         fi
 
366
       done
 
367
       LINGUAS=$NEW_LINGUAS
 
368
       AC_MSG_RESULT($LINGUAS)
 
369
     fi
 
370
 
 
371
     dnl Construct list of names of catalog files to be constructed.
 
372
     if test -n "$LINGUAS"; then
 
373
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
374
     fi
 
375
   fi
 
376
 
 
377
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
 
378
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
 
379
   dnl Try to locate is.
 
380
   MKINSTALLDIRS=
 
381
   if test -n "$ac_aux_dir"; then
 
382
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
383
   fi
 
384
   if test -z "$MKINSTALLDIRS"; then
 
385
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
386
   fi
 
387
   AC_SUBST(MKINSTALLDIRS)
 
388
 
 
389
   dnl Generate list of files to be processed by xgettext which will
 
390
   dnl be included in po/Makefile.
 
391
   test -d po || mkdir po
 
392
   if test "x$srcdir" != "x."; then
 
393
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
394
       posrcprefix="$srcdir/"
 
395
     else
 
396
       posrcprefix="../$srcdir/"
 
397
     fi
 
398
   else
 
399
     posrcprefix="../"
 
400
   fi
 
401
   rm -f po/POTFILES
 
402
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
403
        < $srcdir/po/POTFILES.in > po/POTFILES
 
404
  ])
 
405
 
 
406
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
 
407
# -------------------------------
 
408
# Define VARIABLE to the location where catalog files will
 
409
# be installed by po/Makefile.
 
410
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
 
411
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
 
412
glib_save_prefix="$prefix"
 
413
glib_save_exec_prefix="$exec_prefix"
 
414
glib_save_datarootdir="$datarootdir"
 
415
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
416
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
417
datarootdir=`eval echo "${datarootdir}"`
 
418
if test "x$CATOBJEXT" = "x.mo" ; then
 
419
  localedir=`eval echo "${libdir}/locale"`
 
420
else
 
421
  localedir=`eval echo "${datadir}/locale"`
 
422
fi
 
423
prefix="$glib_save_prefix"
 
424
exec_prefix="$glib_save_exec_prefix"
 
425
datarootdir="$glib_save_datarootdir"
 
426
AC_DEFINE_UNQUOTED($1, "$localedir",
 
427
  [Define the location where the catalogs will be installed])
 
428
])
 
429
 
 
430
dnl
 
431
dnl Now the definitions that aclocal will find
 
432
dnl
 
433
ifdef(glib_configure_ac,[],[
 
434
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
 
435
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
 
436
])dnl
 
437
 
 
438
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
 
439
 
440
# Create a temporary file with TEST-FILE as its contents and pass the
 
441
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
 
442
# 0 and perform ACTION-IF-FAIL for any other exit status.
 
443
AC_DEFUN([GLIB_RUN_PROG],
 
444
[cat >conftest.foo <<_ACEOF
 
445
$2
 
446
_ACEOF
 
447
if AC_RUN_LOG([$1 conftest.foo]); then
 
448
  m4_ifval([$3], [$3], [:])
 
449
m4_ifvaln([$4], [else $4])dnl
 
450
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
 
451
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
 
452
fi])
 
453
 
 
454
 
 
455
 
 
456
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
 
457
# serial 40 IT_PROG_INTLTOOL
 
458
AC_DEFUN([IT_PROG_INTLTOOL], [
 
459
AC_PREREQ([2.50])dnl
 
460
AC_REQUIRE([AM_NLS])dnl
 
461
 
 
462
case "$am__api_version" in
 
463
    1.[01234])
 
464
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
 
465
    ;;
 
466
    *)
 
467
    ;;
 
468
esac
 
469
 
 
470
if test -n "$1"; then
 
471
    AC_MSG_CHECKING([for intltool >= $1])
 
472
 
 
473
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
474
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
475
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
476
    ]
 
477
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
 
478
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
479
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
 
480
fi
 
481
 
 
482
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
 
483
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
 
484
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
 
485
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
486
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
 
487
fi
 
488
 
 
489
  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 $< [$]@' 
 
490
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 $< [$]@' 
 
491
     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 $< [$]@' 
 
492
     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 $< [$]@' 
 
493
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
 
494
     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 $< [$]@' 
 
495
   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 $< [$]@' 
 
496
    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 $< [$]@' 
 
497
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 $< [$]@' 
 
498
       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 $< [$]@' 
 
499
      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 $< [$]@' 
 
500
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
 
501
      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 $< [$]@' 
 
502
      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 $< [$]@' 
 
503
    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 $< [$]@' 
 
504
  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 $< [$]@' 
 
505
    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 $< [$]@' 
 
506
    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 $< [$]@'
 
507
   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 $< [$]@'
 
508
 
 
509
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
 
510
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
 
511
_IT_SUBST(INTLTOOL_KEYS_RULE)
 
512
_IT_SUBST(INTLTOOL_PROP_RULE)
 
513
_IT_SUBST(INTLTOOL_OAF_RULE)
 
514
_IT_SUBST(INTLTOOL_PONG_RULE)
 
515
_IT_SUBST(INTLTOOL_SERVER_RULE)
 
516
_IT_SUBST(INTLTOOL_SHEET_RULE)
 
517
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
518
_IT_SUBST(INTLTOOL_UI_RULE)
 
519
_IT_SUBST(INTLTOOL_XAM_RULE)
 
520
_IT_SUBST(INTLTOOL_KBD_RULE)
 
521
_IT_SUBST(INTLTOOL_XML_RULE)
 
522
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
523
_IT_SUBST(INTLTOOL_CAVES_RULE)
 
524
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
 
525
_IT_SUBST(INTLTOOL_THEME_RULE)
 
526
_IT_SUBST(INTLTOOL_SERVICE_RULE)
 
527
_IT_SUBST(INTLTOOL_POLICY_RULE)
 
528
 
 
529
# Check the gettext tools to make sure they are GNU
 
530
AC_PATH_PROG(XGETTEXT, xgettext)
 
531
AC_PATH_PROG(MSGMERGE, msgmerge)
 
532
AC_PATH_PROG(MSGFMT, msgfmt)
 
533
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
534
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
535
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
536
fi
 
537
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
538
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
539
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
540
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
541
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
542
fi
 
543
 
 
544
AC_PATH_PROG(INTLTOOL_PERL, perl)
 
545
if test -z "$INTLTOOL_PERL"; then
 
546
   AC_MSG_ERROR([perl not found])
 
547
fi
 
548
AC_MSG_CHECKING([for perl >= 5.8.1])
 
549
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
550
if test $? -ne 0; then
 
551
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
 
552
else
 
553
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
554
   AC_MSG_RESULT([$IT_PERL_VERSION])
 
555
fi
 
556
if test "x$2" != "xno-xml"; then
 
557
   AC_MSG_CHECKING([for XML::Parser])
 
558
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
559
       AC_MSG_RESULT([ok])
 
560
   else
 
561
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
 
562
   fi
 
563
fi
 
564
 
 
565
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
566
AC_SUBST(ALL_LINGUAS)
 
567
 
 
568
# Set DATADIRNAME correctly if it is not set yet
 
569
# (copied from glib-gettext.m4)
 
570
if test -z "$DATADIRNAME"; then
 
571
  AC_LINK_IFELSE(
 
572
    [AC_LANG_PROGRAM([[]],
 
573
                     [[extern int _nl_msg_cat_cntr;
 
574
                       return _nl_msg_cat_cntr]])],
 
575
    [DATADIRNAME=share],
 
576
    [case $host in
 
577
    *-*-solaris*)
 
578
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
579
    dnl GNU format message catalog is always supported,
 
580
    dnl since both are added to the libc all together.
 
581
    dnl Hence, we'd like to go with DATADIRNAME=share
 
582
    dnl in this case.
 
583
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
584
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
585
    ;;
 
586
    *)
 
587
    [DATADIRNAME=lib]
 
588
    ;;
 
589
    esac])
 
590
fi
 
591
AC_SUBST(DATADIRNAME)
 
592
 
 
593
IT_PO_SUBDIR([po])
 
594
 
 
595
])
 
596
 
 
597
 
 
598
# IT_PO_SUBDIR(DIRNAME)
 
599
# ---------------------
 
600
# All po subdirs have to be declared with this macro; the subdir "po" is
 
601
# declared by IT_PROG_INTLTOOL.
 
602
#
 
603
AC_DEFUN([IT_PO_SUBDIR],
 
604
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
 
605
dnl
 
606
dnl The following CONFIG_COMMANDS should be executed at the very end
 
607
dnl of config.status.
 
608
AC_CONFIG_COMMANDS_PRE([
 
609
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
610
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
 
611
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
 
612
    fi
 
613
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
 
614
    >"$1/stamp-it.tmp"
 
615
    [sed '/^#/d
 
616
         s/^[[].*] *//
 
617
         /^[    ]*$/d
 
618
        '"s|^|  $ac_top_srcdir/|" \
 
619
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
 
620
    ]
 
621
    [sed '/^POTFILES =/,/[^\\]$/ {
 
622
                /^POTFILES =/!d
 
623
                r $1/POTFILES
 
624
          }
 
625
         ' "$1/Makefile.in" >"$1/Makefile"]
 
626
    rm -f "$1/Makefile.tmp"
 
627
    mv "$1/stamp-it.tmp" "$1/stamp-it"
 
628
  ])
 
629
])dnl
 
630
])
 
631
 
 
632
# _IT_SUBST(VARIABLE)
 
633
# -------------------
 
634
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
635
#
 
636
AC_DEFUN([_IT_SUBST],
 
637
[
 
638
AC_SUBST([$1])
 
639
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
640
]
 
641
)
 
642
 
 
643
# deprecated macros
 
644
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
 
645
# A hint is needed for aclocal from Automake <= 1.9.4:
 
646
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
 
647
 
 
648
 
 
649
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 
650
#
 
651
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
652
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
653
#                 Inc.
 
654
#   Written by Gordon Matzigkeit, 1996
 
655
#
 
656
# This file is free software; the Free Software Foundation gives
 
657
# unlimited permission to copy and/or distribute it, with or without
 
658
# modifications, as long as this notice is preserved.
 
659
 
 
660
m4_define([_LT_COPYING], [dnl
 
661
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
662
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
663
#                 Inc.
 
664
#   Written by Gordon Matzigkeit, 1996
 
665
#
 
666
#   This file is part of GNU Libtool.
 
667
#
 
668
# GNU Libtool is free software; you can redistribute it and/or
 
669
# modify it under the terms of the GNU General Public License as
 
670
# published by the Free Software Foundation; either version 2 of
 
671
# the License, or (at your option) any later version.
 
672
#
 
673
# As a special exception to the GNU General Public License,
 
674
# if you distribute this file as part of a program or library that
 
675
# is built using GNU Libtool, you may include this file under the
 
676
# same distribution terms that you use for the rest of that program.
 
677
#
 
678
# GNU Libtool is distributed in the hope that it will be useful,
 
679
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
680
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
681
# GNU General Public License for more details.
 
682
#
 
683
# You should have received a copy of the GNU General Public License
 
684
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
685
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
686
# obtained by writing to the Free Software Foundation, Inc.,
 
687
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
688
])
 
689
 
 
690
# serial 57 LT_INIT
 
691
 
 
692
 
 
693
# LT_PREREQ(VERSION)
 
694
# ------------------
 
695
# Complain and exit if this libtool version is less that VERSION.
 
696
m4_defun([LT_PREREQ],
 
697
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
 
698
       [m4_default([$3],
 
699
                   [m4_fatal([Libtool version $1 or higher is required],
 
700
                             63)])],
 
701
       [$2])])
 
702
 
 
703
 
 
704
# _LT_CHECK_BUILDDIR
 
705
# ------------------
 
706
# Complain if the absolute build directory name contains unusual characters
 
707
m4_defun([_LT_CHECK_BUILDDIR],
 
708
[case `pwd` in
 
709
  *\ * | *\     *)
 
710
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
 
711
esac
 
712
])
 
713
 
 
714
 
 
715
# LT_INIT([OPTIONS])
 
716
# ------------------
 
717
AC_DEFUN([LT_INIT],
 
718
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
719
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
 
720
AC_BEFORE([$0], [LT_LANG])dnl
 
721
AC_BEFORE([$0], [LT_OUTPUT])dnl
 
722
AC_BEFORE([$0], [LTDL_INIT])dnl
 
723
m4_require([_LT_CHECK_BUILDDIR])dnl
 
724
 
 
725
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
 
726
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
 
727
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
 
728
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
 
729
dnl unless we require an AC_DEFUNed macro:
 
730
AC_REQUIRE([LTOPTIONS_VERSION])dnl
 
731
AC_REQUIRE([LTSUGAR_VERSION])dnl
 
732
AC_REQUIRE([LTVERSION_VERSION])dnl
 
733
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
 
734
m4_require([_LT_PROG_LTMAIN])dnl
 
735
 
 
736
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
 
737
 
 
738
dnl Parse OPTIONS
 
739
_LT_SET_OPTIONS([$0], [$1])
 
740
 
 
741
# This can be used to rebuild libtool when needed
 
742
LIBTOOL_DEPS="$ltmain"
 
743
 
 
744
# Always use our own libtool.
 
745
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
746
AC_SUBST(LIBTOOL)dnl
 
747
 
 
748
_LT_SETUP
 
749
 
 
750
# Only expand once:
 
751
m4_define([LT_INIT])
 
752
])# LT_INIT
 
753
 
 
754
# Old names:
 
755
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
 
756
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
 
757
dnl aclocal-1.4 backwards compatibility:
 
758
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
 
759
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
 
760
 
 
761
 
 
762
# _LT_CC_BASENAME(CC)
 
763
# -------------------
 
764
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
765
m4_defun([_LT_CC_BASENAME],
 
766
[for cc_temp in $1""; do
 
767
  case $cc_temp in
 
768
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
769
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
770
    \-*) ;;
 
771
    *) break;;
 
772
  esac
 
773
done
 
774
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
775
])
 
776
 
 
777
 
 
778
# _LT_FILEUTILS_DEFAULTS
 
779
# ----------------------
 
780
# It is okay to use these file commands and assume they have been set
 
781
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
 
782
m4_defun([_LT_FILEUTILS_DEFAULTS],
 
783
[: ${CP="cp -f"}
 
784
: ${MV="mv -f"}
 
785
: ${RM="rm -f"}
 
786
])# _LT_FILEUTILS_DEFAULTS
 
787
 
 
788
 
 
789
# _LT_SETUP
 
790
# ---------
 
791
m4_defun([_LT_SETUP],
 
792
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
793
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
794
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
 
795
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
 
796
 
 
797
_LT_DECL([], [host_alias], [0], [The host system])dnl
 
798
_LT_DECL([], [host], [0])dnl
 
799
_LT_DECL([], [host_os], [0])dnl
 
800
dnl
 
801
_LT_DECL([], [build_alias], [0], [The build system])dnl
 
802
_LT_DECL([], [build], [0])dnl
 
803
_LT_DECL([], [build_os], [0])dnl
 
804
dnl
 
805
AC_REQUIRE([AC_PROG_CC])dnl
 
806
AC_REQUIRE([LT_PATH_LD])dnl
 
807
AC_REQUIRE([LT_PATH_NM])dnl
 
808
dnl
 
809
AC_REQUIRE([AC_PROG_LN_S])dnl
 
810
test -z "$LN_S" && LN_S="ln -s"
 
811
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
 
812
dnl
 
813
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
 
814
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
 
815
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
 
816
dnl
 
817
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
818
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
819
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
 
820
m4_require([_LT_CMD_RELOAD])dnl
 
821
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
822
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
 
823
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
 
824
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
825
m4_require([_LT_WITH_SYSROOT])dnl
 
826
 
 
827
_LT_CONFIG_LIBTOOL_INIT([
 
828
# See if we are running on zsh, and set the options which allow our
 
829
# commands through without removal of \ escapes INIT.
 
830
if test -n "\${ZSH_VERSION+set}" ; then
 
831
   setopt NO_GLOB_SUBST
 
832
fi
 
833
])
 
834
if test -n "${ZSH_VERSION+set}" ; then
 
835
   setopt NO_GLOB_SUBST
 
836
fi
 
837
 
 
838
_LT_CHECK_OBJDIR
 
839
 
 
840
m4_require([_LT_TAG_COMPILER])dnl
 
841
 
 
842
case $host_os in
 
843
aix3*)
 
844
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
845
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
846
  # vanish in a puff of smoke.
 
847
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
848
    COLLECT_NAMES=
 
849
    export COLLECT_NAMES
 
850
  fi
 
851
  ;;
 
852
esac
 
853
 
 
854
# Global variables:
 
855
ofile=libtool
 
856
can_build_shared=yes
 
857
 
 
858
# All known linkers require a `.a' archive for static linking (except MSVC,
 
859
# which needs '.lib').
 
860
libext=a
 
861
 
 
862
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
863
 
 
864
old_CC="$CC"
 
865
old_CFLAGS="$CFLAGS"
 
866
 
 
867
# Set sane defaults for various variables
 
868
test -z "$CC" && CC=cc
 
869
test -z "$LTCC" && LTCC=$CC
 
870
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
871
test -z "$LD" && LD=ld
 
872
test -z "$ac_objext" && ac_objext=o
 
873
 
 
874
_LT_CC_BASENAME([$compiler])
 
875
 
 
876
# Only perform the check for file, if the check method requires it
 
877
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
878
case $deplibs_check_method in
 
879
file_magic*)
 
880
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
881
    _LT_PATH_MAGIC
 
882
  fi
 
883
  ;;
 
884
esac
 
885
 
 
886
# Use C for the default configuration in the libtool script
 
887
LT_SUPPORTED_TAG([CC])
 
888
_LT_LANG_C_CONFIG
 
889
_LT_LANG_DEFAULT_CONFIG
 
890
_LT_CONFIG_COMMANDS
 
891
])# _LT_SETUP
 
892
 
 
893
 
 
894
# _LT_PREPARE_SED_QUOTE_VARS
 
895
# --------------------------
 
896
# Define a few sed substitution that help us do robust quoting.
 
897
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
 
898
[# Backslashify metacharacters that are still active within
 
899
# double-quoted strings.
 
900
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
901
 
 
902
# Same as above, but do not quote variable references.
 
903
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
904
 
 
905
# Sed substitution to delay expansion of an escaped shell variable in a
 
906
# double_quote_subst'ed string.
 
907
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
908
 
 
909
# Sed substitution to delay expansion of an escaped single quote.
 
910
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
911
 
 
912
# Sed substitution to avoid accidental globbing in evaled expressions
 
913
no_glob_subst='s/\*/\\\*/g'
 
914
])
 
915
 
 
916
# _LT_PROG_LTMAIN
 
917
# ---------------
 
918
# Note that this code is called both from `configure', and `config.status'
 
919
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
 
920
# `config.status' has no value for ac_aux_dir unless we are using Automake,
 
921
# so we pass a copy along to make sure it has a sensible value anyway.
 
922
m4_defun([_LT_PROG_LTMAIN],
 
923
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
 
924
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
 
925
ltmain="$ac_aux_dir/ltmain.sh"
 
926
])# _LT_PROG_LTMAIN
 
927
 
 
928
 
 
929
 
 
930
# So that we can recreate a full libtool script including additional
 
931
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
 
932
# in macros and then make a single call at the end using the `libtool'
 
933
# label.
 
934
 
 
935
 
 
936
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
 
937
# ----------------------------------------
 
938
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
939
m4_define([_LT_CONFIG_LIBTOOL_INIT],
 
940
[m4_ifval([$1],
 
941
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
 
942
                     [$1
 
943
])])])
 
944
 
 
945
# Initialize.
 
946
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
 
947
 
 
948
 
 
949
# _LT_CONFIG_LIBTOOL([COMMANDS])
 
950
# ------------------------------
 
951
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
952
m4_define([_LT_CONFIG_LIBTOOL],
 
953
[m4_ifval([$1],
 
954
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
 
955
                     [$1
 
956
])])])
 
957
 
 
958
# Initialize.
 
959
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
 
960
 
 
961
 
 
962
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
 
963
# -----------------------------------------------------
 
964
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
 
965
[_LT_CONFIG_LIBTOOL([$1])
 
966
_LT_CONFIG_LIBTOOL_INIT([$2])
 
967
])
 
968
 
 
969
 
 
970
# _LT_FORMAT_COMMENT([COMMENT])
 
971
# -----------------------------
 
972
# Add leading comment marks to the start of each line, and a trailing
 
973
# full-stop to the whole comment if one is not present already.
 
974
m4_define([_LT_FORMAT_COMMENT],
 
975
[m4_ifval([$1], [
 
976
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
 
977
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
 
978
)])
 
979
 
 
980
 
 
981
 
 
982
 
 
983
 
 
984
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
 
985
# -------------------------------------------------------------------
 
986
# CONFIGNAME is the name given to the value in the libtool script.
 
987
# VARNAME is the (base) name used in the configure script.
 
988
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
 
989
# VARNAME.  Any other value will be used directly.
 
990
m4_define([_LT_DECL],
 
991
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
 
992
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
 
993
        [m4_ifval([$1], [$1], [$2])])
 
994
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
 
995
    m4_ifval([$4],
 
996
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
 
997
    lt_dict_add_subkey([lt_decl_dict], [$2],
 
998
        [tagged?], [m4_ifval([$5], [yes], [no])])])
 
999
])
 
1000
 
 
1001
 
 
1002
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
 
1003
# --------------------------------------------------------
 
1004
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
 
1005
 
 
1006
 
 
1007
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
 
1008
# ------------------------------------------------
 
1009
m4_define([lt_decl_tag_varnames],
 
1010
[_lt_decl_filter([tagged?], [yes], $@)])
 
1011
 
 
1012
 
 
1013
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
 
1014
# ---------------------------------------------------------
 
1015
m4_define([_lt_decl_filter],
 
1016
[m4_case([$#],
 
1017
  [0], [m4_fatal([$0: too few arguments: $#])],
 
1018
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
 
1019
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
 
1020
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
 
1021
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
 
1022
])
 
1023
 
 
1024
 
 
1025
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
 
1026
# --------------------------------------------------
 
1027
m4_define([lt_decl_quote_varnames],
 
1028
[_lt_decl_filter([value], [1], $@)])
 
1029
 
 
1030
 
 
1031
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
 
1032
# ---------------------------------------------------
 
1033
m4_define([lt_decl_dquote_varnames],
 
1034
[_lt_decl_filter([value], [2], $@)])
 
1035
 
 
1036
 
 
1037
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
 
1038
# ---------------------------------------------------
 
1039
m4_define([lt_decl_varnames_tagged],
 
1040
[m4_assert([$# <= 2])dnl
 
1041
_$0(m4_quote(m4_default([$1], [[, ]])),
 
1042
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
 
1043
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
 
1044
m4_define([_lt_decl_varnames_tagged],
 
1045
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
 
1046
 
 
1047
 
 
1048
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
 
1049
# ------------------------------------------------
 
1050
m4_define([lt_decl_all_varnames],
 
1051
[_$0(m4_quote(m4_default([$1], [[, ]])),
 
1052
     m4_if([$2], [],
 
1053
           m4_quote(lt_decl_varnames),
 
1054
        m4_quote(m4_shift($@))))[]dnl
 
1055
])
 
1056
m4_define([_lt_decl_all_varnames],
 
1057
[lt_join($@, lt_decl_varnames_tagged([$1],
 
1058
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
 
1059
])
 
1060
 
 
1061
 
 
1062
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
 
1063
# ------------------------------------
 
1064
# Quote a variable value, and forward it to `config.status' so that its
 
1065
# declaration there will have the same value as in `configure'.  VARNAME
 
1066
# must have a single quote delimited value for this to work.
 
1067
m4_define([_LT_CONFIG_STATUS_DECLARE],
 
1068
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
 
1069
 
 
1070
 
 
1071
# _LT_CONFIG_STATUS_DECLARATIONS
 
1072
# ------------------------------
 
1073
# We delimit libtool config variables with single quotes, so when
 
1074
# we write them to config.status, we have to be sure to quote all
 
1075
# embedded single quotes properly.  In configure, this macro expands
 
1076
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
 
1077
#
 
1078
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
 
1079
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
 
1080
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
 
1081
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
 
1082
 
 
1083
 
 
1084
# _LT_LIBTOOL_TAGS
 
1085
# ----------------
 
1086
# Output comment and list of tags supported by the script
 
1087
m4_defun([_LT_LIBTOOL_TAGS],
 
1088
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
 
1089
available_tags="_LT_TAGS"dnl
 
1090
])
 
1091
 
 
1092
 
 
1093
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
 
1094
# -----------------------------------
 
1095
# Extract the dictionary values for VARNAME (optionally with TAG) and
 
1096
# expand to a commented shell variable setting:
 
1097
#
 
1098
#    # Some comment about what VAR is for.
 
1099
#    visible_name=$lt_internal_name
 
1100
m4_define([_LT_LIBTOOL_DECLARE],
 
1101
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
 
1102
                                           [description])))[]dnl
 
1103
m4_pushdef([_libtool_name],
 
1104
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
 
1105
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
 
1106
    [0], [_libtool_name=[$]$1],
 
1107
    [1], [_libtool_name=$lt_[]$1],
 
1108
    [2], [_libtool_name=$lt_[]$1],
 
1109
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
 
1110
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
 
1111
])
 
1112
 
 
1113
 
 
1114
# _LT_LIBTOOL_CONFIG_VARS
 
1115
# -----------------------
 
1116
# Produce commented declarations of non-tagged libtool config variables
 
1117
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
 
1118
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
 
1119
# section) are produced by _LT_LIBTOOL_TAG_VARS.
 
1120
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
 
1121
[m4_foreach([_lt_var],
 
1122
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
 
1123
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
 
1124
 
 
1125
 
 
1126
# _LT_LIBTOOL_TAG_VARS(TAG)
 
1127
# -------------------------
 
1128
m4_define([_LT_LIBTOOL_TAG_VARS],
 
1129
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
 
1130
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
 
1131
 
 
1132
 
 
1133
# _LT_TAGVAR(VARNAME, [TAGNAME])
 
1134
# ------------------------------
 
1135
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
 
1136
 
 
1137
 
 
1138
# _LT_CONFIG_COMMANDS
 
1139
# -------------------
 
1140
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
 
1141
# variables for single and double quote escaping we saved from calls
 
1142
# to _LT_DECL, we can put quote escaped variables declarations
 
1143
# into `config.status', and then the shell code to quote escape them in
 
1144
# for loops in `config.status'.  Finally, any additional code accumulated
 
1145
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
 
1146
m4_defun([_LT_CONFIG_COMMANDS],
 
1147
[AC_PROVIDE_IFELSE([LT_OUTPUT],
 
1148
        dnl If the libtool generation code has been placed in $CONFIG_LT,
 
1149
        dnl instead of duplicating it all over again into config.status,
 
1150
        dnl then we will have config.status run $CONFIG_LT later, so it
 
1151
        dnl needs to know what name is stored there:
 
1152
        [AC_CONFIG_COMMANDS([libtool],
 
1153
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
 
1154
    dnl If the libtool generation code is destined for config.status,
 
1155
    dnl expand the accumulated commands and init code now:
 
1156
    [AC_CONFIG_COMMANDS([libtool],
 
1157
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
 
1158
])#_LT_CONFIG_COMMANDS
 
1159
 
 
1160
 
 
1161
# Initialize.
 
1162
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
 
1163
[
 
1164
 
 
1165
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
1166
# if CDPATH is set.
 
1167
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
1168
 
 
1169
sed_quote_subst='$sed_quote_subst'
 
1170
double_quote_subst='$double_quote_subst'
 
1171
delay_variable_subst='$delay_variable_subst'
 
1172
_LT_CONFIG_STATUS_DECLARATIONS
 
1173
LTCC='$LTCC'
 
1174
LTCFLAGS='$LTCFLAGS'
 
1175
compiler='$compiler_DEFAULT'
 
1176
 
 
1177
# A function that is used when there is no print builtin or printf.
 
1178
func_fallback_echo ()
 
1179
{
 
1180
  eval 'cat <<_LTECHO_EOF
 
1181
\$[]1
 
1182
_LTECHO_EOF'
 
1183
}
 
1184
 
 
1185
# Quote evaled strings.
 
1186
for var in lt_decl_all_varnames([[ \
 
1187
]], lt_decl_quote_varnames); do
 
1188
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
1189
    *[[\\\\\\\`\\"\\\$]]*)
 
1190
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
1191
      ;;
 
1192
    *)
 
1193
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1194
      ;;
 
1195
    esac
 
1196
done
 
1197
 
 
1198
# Double-quote double-evaled strings.
 
1199
for var in lt_decl_all_varnames([[ \
 
1200
]], lt_decl_dquote_varnames); do
 
1201
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
1202
    *[[\\\\\\\`\\"\\\$]]*)
 
1203
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
1204
      ;;
 
1205
    *)
 
1206
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1207
      ;;
 
1208
    esac
 
1209
done
 
1210
 
 
1211
_LT_OUTPUT_LIBTOOL_INIT
 
1212
])
 
1213
 
 
1214
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
 
1215
# ------------------------------------
 
1216
# Generate a child script FILE with all initialization necessary to
 
1217
# reuse the environment learned by the parent script, and make the
 
1218
# file executable.  If COMMENT is supplied, it is inserted after the
 
1219
# `#!' sequence but before initialization text begins.  After this
 
1220
# macro, additional text can be appended to FILE to form the body of
 
1221
# the child script.  The macro ends with non-zero status if the
 
1222
# file could not be fully written (such as if the disk is full).
 
1223
m4_ifdef([AS_INIT_GENERATED],
 
1224
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
 
1225
[m4_defun([_LT_GENERATED_FILE_INIT],
 
1226
[m4_require([AS_PREPARE])]dnl
 
1227
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
 
1228
[lt_write_fail=0
 
1229
cat >$1 <<_ASEOF || lt_write_fail=1
 
1230
#! $SHELL
 
1231
# Generated by $as_me.
 
1232
$2
 
1233
SHELL=\${CONFIG_SHELL-$SHELL}
 
1234
export SHELL
 
1235
_ASEOF
 
1236
cat >>$1 <<\_ASEOF || lt_write_fail=1
 
1237
AS_SHELL_SANITIZE
 
1238
_AS_PREPARE
 
1239
exec AS_MESSAGE_FD>&1
 
1240
_ASEOF
 
1241
test $lt_write_fail = 0 && chmod +x $1[]dnl
 
1242
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
 
1243
 
 
1244
# LT_OUTPUT
 
1245
# ---------
 
1246
# This macro allows early generation of the libtool script (before
 
1247
# AC_OUTPUT is called), incase it is used in configure for compilation
 
1248
# tests.
 
1249
AC_DEFUN([LT_OUTPUT],
 
1250
[: ${CONFIG_LT=./config.lt}
 
1251
AC_MSG_NOTICE([creating $CONFIG_LT])
 
1252
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
 
1253
[# Run this file to recreate a libtool stub with the current configuration.])
 
1254
 
 
1255
cat >>"$CONFIG_LT" <<\_LTEOF
 
1256
lt_cl_silent=false
 
1257
exec AS_MESSAGE_LOG_FD>>config.log
 
1258
{
 
1259
  echo
 
1260
  AS_BOX([Running $as_me.])
 
1261
} >&AS_MESSAGE_LOG_FD
 
1262
 
 
1263
lt_cl_help="\
 
1264
\`$as_me' creates a local libtool stub from the current configuration,
 
1265
for use in further configure time tests before the real libtool is
 
1266
generated.
 
1267
 
 
1268
Usage: $[0] [[OPTIONS]]
 
1269
 
 
1270
  -h, --help      print this help, then exit
 
1271
  -V, --version   print version number, then exit
 
1272
  -q, --quiet     do not print progress messages
 
1273
  -d, --debug     don't remove temporary files
 
1274
 
 
1275
Report bugs to <bug-libtool@gnu.org>."
 
1276
 
 
1277
lt_cl_version="\
 
1278
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
 
1279
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
 
1280
configured by $[0], generated by m4_PACKAGE_STRING.
 
1281
 
 
1282
Copyright (C) 2010 Free Software Foundation, Inc.
 
1283
This config.lt script is free software; the Free Software Foundation
 
1284
gives unlimited permision to copy, distribute and modify it."
 
1285
 
 
1286
while test $[#] != 0
 
1287
do
 
1288
  case $[1] in
 
1289
    --version | --v* | -V )
 
1290
      echo "$lt_cl_version"; exit 0 ;;
 
1291
    --help | --h* | -h )
 
1292
      echo "$lt_cl_help"; exit 0 ;;
 
1293
    --debug | --d* | -d )
 
1294
      debug=: ;;
 
1295
    --quiet | --q* | --silent | --s* | -q )
 
1296
      lt_cl_silent=: ;;
 
1297
 
 
1298
    -*) AC_MSG_ERROR([unrecognized option: $[1]
 
1299
Try \`$[0] --help' for more information.]) ;;
 
1300
 
 
1301
    *) AC_MSG_ERROR([unrecognized argument: $[1]
 
1302
Try \`$[0] --help' for more information.]) ;;
 
1303
  esac
 
1304
  shift
 
1305
done
 
1306
 
 
1307
if $lt_cl_silent; then
 
1308
  exec AS_MESSAGE_FD>/dev/null
 
1309
fi
 
1310
_LTEOF
 
1311
 
 
1312
cat >>"$CONFIG_LT" <<_LTEOF
 
1313
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
 
1314
_LTEOF
 
1315
 
 
1316
cat >>"$CONFIG_LT" <<\_LTEOF
 
1317
AC_MSG_NOTICE([creating $ofile])
 
1318
_LT_OUTPUT_LIBTOOL_COMMANDS
 
1319
AS_EXIT(0)
 
1320
_LTEOF
 
1321
chmod +x "$CONFIG_LT"
 
1322
 
 
1323
# configure is writing to config.log, but config.lt does its own redirection,
 
1324
# appending to config.log, which fails on DOS, as config.log is still kept
 
1325
# open by configure.  Here we exec the FD to /dev/null, effectively closing
 
1326
# config.log, so it can be properly (re)opened and appended to by config.lt.
 
1327
lt_cl_success=:
 
1328
test "$silent" = yes &&
 
1329
  lt_config_lt_args="$lt_config_lt_args --quiet"
 
1330
exec AS_MESSAGE_LOG_FD>/dev/null
 
1331
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
1332
exec AS_MESSAGE_LOG_FD>>config.log
 
1333
$lt_cl_success || AS_EXIT(1)
 
1334
])# LT_OUTPUT
 
1335
 
 
1336
 
 
1337
# _LT_CONFIG(TAG)
 
1338
# ---------------
 
1339
# If TAG is the built-in tag, create an initial libtool script with a
 
1340
# default configuration from the untagged config vars.  Otherwise add code
 
1341
# to config.status for appending the configuration named by TAG from the
 
1342
# matching tagged config vars.
 
1343
m4_defun([_LT_CONFIG],
 
1344
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1345
_LT_CONFIG_SAVE_COMMANDS([
 
1346
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
 
1347
  m4_if(_LT_TAG, [C], [
 
1348
    # See if we are running on zsh, and set the options which allow our
 
1349
    # commands through without removal of \ escapes.
 
1350
    if test -n "${ZSH_VERSION+set}" ; then
 
1351
      setopt NO_GLOB_SUBST
 
1352
    fi
 
1353
 
 
1354
    cfgfile="${ofile}T"
 
1355
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
1356
    $RM "$cfgfile"
 
1357
 
 
1358
    cat <<_LT_EOF >> "$cfgfile"
 
1359
#! $SHELL
 
1360
 
 
1361
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
1362
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
1363
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
1364
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
1365
#
 
1366
_LT_COPYING
 
1367
_LT_LIBTOOL_TAGS
 
1368
 
 
1369
# ### BEGIN LIBTOOL CONFIG
 
1370
_LT_LIBTOOL_CONFIG_VARS
 
1371
_LT_LIBTOOL_TAG_VARS
 
1372
# ### END LIBTOOL CONFIG
 
1373
 
 
1374
_LT_EOF
 
1375
 
 
1376
  case $host_os in
 
1377
  aix3*)
 
1378
    cat <<\_LT_EOF >> "$cfgfile"
 
1379
# AIX sometimes has problems with the GCC collect2 program.  For some
 
1380
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
1381
# vanish in a puff of smoke.
 
1382
if test "X${COLLECT_NAMES+set}" != Xset; then
 
1383
  COLLECT_NAMES=
 
1384
  export COLLECT_NAMES
 
1385
fi
 
1386
_LT_EOF
 
1387
    ;;
 
1388
  esac
 
1389
 
 
1390
  _LT_PROG_LTMAIN
 
1391
 
 
1392
  # We use sed instead of cat because bash on DJGPP gets confused if
 
1393
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
1394
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
1395
  # is reportedly fixed, but why not run on old versions too?
 
1396
  sed '$q' "$ltmain" >> "$cfgfile" \
 
1397
     || (rm -f "$cfgfile"; exit 1)
 
1398
 
 
1399
  _LT_PROG_REPLACE_SHELLFNS
 
1400
 
 
1401
   mv -f "$cfgfile" "$ofile" ||
 
1402
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
1403
  chmod +x "$ofile"
 
1404
],
 
1405
[cat <<_LT_EOF >> "$ofile"
 
1406
 
 
1407
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
 
1408
dnl in a comment (ie after a #).
 
1409
# ### BEGIN LIBTOOL TAG CONFIG: $1
 
1410
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
 
1411
# ### END LIBTOOL TAG CONFIG: $1
 
1412
_LT_EOF
 
1413
])dnl /m4_if
 
1414
],
 
1415
[m4_if([$1], [], [
 
1416
    PACKAGE='$PACKAGE'
 
1417
    VERSION='$VERSION'
 
1418
    TIMESTAMP='$TIMESTAMP'
 
1419
    RM='$RM'
 
1420
    ofile='$ofile'], [])
 
1421
])dnl /_LT_CONFIG_SAVE_COMMANDS
 
1422
])# _LT_CONFIG
 
1423
 
 
1424
 
 
1425
# LT_SUPPORTED_TAG(TAG)
 
1426
# ---------------------
 
1427
# Trace this macro to discover what tags are supported by the libtool
 
1428
# --tag option, using:
 
1429
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
 
1430
AC_DEFUN([LT_SUPPORTED_TAG], [])
 
1431
 
 
1432
 
 
1433
# C support is built-in for now
 
1434
m4_define([_LT_LANG_C_enabled], [])
 
1435
m4_define([_LT_TAGS], [])
 
1436
 
 
1437
 
 
1438
# LT_LANG(LANG)
 
1439
# -------------
 
1440
# Enable libtool support for the given language if not already enabled.
 
1441
AC_DEFUN([LT_LANG],
 
1442
[AC_BEFORE([$0], [LT_OUTPUT])dnl
 
1443
m4_case([$1],
 
1444
  [C],                  [_LT_LANG(C)],
 
1445
  [C++],                [_LT_LANG(CXX)],
 
1446
  [Java],               [_LT_LANG(GCJ)],
 
1447
  [Fortran 77],         [_LT_LANG(F77)],
 
1448
  [Fortran],            [_LT_LANG(FC)],
 
1449
  [Windows Resource],   [_LT_LANG(RC)],
 
1450
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
 
1451
    [_LT_LANG($1)],
 
1452
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
 
1453
])# LT_LANG
 
1454
 
 
1455
 
 
1456
# _LT_LANG(LANGNAME)
 
1457
# ------------------
 
1458
m4_defun([_LT_LANG],
 
1459
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
 
1460
  [LT_SUPPORTED_TAG([$1])dnl
 
1461
  m4_append([_LT_TAGS], [$1 ])dnl
 
1462
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
 
1463
  _LT_LANG_$1_CONFIG($1)])dnl
 
1464
])# _LT_LANG
 
1465
 
 
1466
 
 
1467
# _LT_LANG_DEFAULT_CONFIG
 
1468
# -----------------------
 
1469
m4_defun([_LT_LANG_DEFAULT_CONFIG],
 
1470
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
1471
  [LT_LANG(CXX)],
 
1472
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
 
1473
 
 
1474
AC_PROVIDE_IFELSE([AC_PROG_F77],
 
1475
  [LT_LANG(F77)],
 
1476
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
 
1477
 
 
1478
AC_PROVIDE_IFELSE([AC_PROG_FC],
 
1479
  [LT_LANG(FC)],
 
1480
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
 
1481
 
 
1482
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
 
1483
dnl pulling things in needlessly.
 
1484
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
1485
  [LT_LANG(GCJ)],
 
1486
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
1487
    [LT_LANG(GCJ)],
 
1488
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
 
1489
      [LT_LANG(GCJ)],
 
1490
      [m4_ifdef([AC_PROG_GCJ],
 
1491
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
 
1492
       m4_ifdef([A][M_PROG_GCJ],
 
1493
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
 
1494
       m4_ifdef([LT_PROG_GCJ],
 
1495
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
 
1496
 
 
1497
AC_PROVIDE_IFELSE([LT_PROG_RC],
 
1498
  [LT_LANG(RC)],
 
1499
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
 
1500
])# _LT_LANG_DEFAULT_CONFIG
 
1501
 
 
1502
# Obsolete macros:
 
1503
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
 
1504
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
 
1505
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
 
1506
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
1507
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
 
1508
dnl aclocal-1.4 backwards compatibility:
 
1509
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
 
1510
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
 
1511
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
 
1512
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
1513
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
 
1514
 
 
1515
 
 
1516
# _LT_TAG_COMPILER
 
1517
# ----------------
 
1518
m4_defun([_LT_TAG_COMPILER],
 
1519
[AC_REQUIRE([AC_PROG_CC])dnl
 
1520
 
 
1521
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
 
1522
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
 
1523
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
 
1524
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
 
1525
 
 
1526
# If no C compiler was specified, use CC.
 
1527
LTCC=${LTCC-"$CC"}
 
1528
 
 
1529
# If no C compiler flags were specified, use CFLAGS.
 
1530
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
1531
 
 
1532
# Allow CC to be a program name with arguments.
 
1533
compiler=$CC
 
1534
])# _LT_TAG_COMPILER
 
1535
 
 
1536
 
 
1537
# _LT_COMPILER_BOILERPLATE
 
1538
# ------------------------
 
1539
# Check for compiler boilerplate output or warnings with
 
1540
# the simple compiler test code.
 
1541
m4_defun([_LT_COMPILER_BOILERPLATE],
 
1542
[m4_require([_LT_DECL_SED])dnl
 
1543
ac_outfile=conftest.$ac_objext
 
1544
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
1545
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
1546
_lt_compiler_boilerplate=`cat conftest.err`
 
1547
$RM conftest*
 
1548
])# _LT_COMPILER_BOILERPLATE
 
1549
 
 
1550
 
 
1551
# _LT_LINKER_BOILERPLATE
 
1552
# ----------------------
 
1553
# Check for linker boilerplate output or warnings with
 
1554
# the simple link test code.
 
1555
m4_defun([_LT_LINKER_BOILERPLATE],
 
1556
[m4_require([_LT_DECL_SED])dnl
 
1557
ac_outfile=conftest.$ac_objext
 
1558
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
1559
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
1560
_lt_linker_boilerplate=`cat conftest.err`
 
1561
$RM -r conftest*
 
1562
])# _LT_LINKER_BOILERPLATE
 
1563
 
 
1564
# _LT_REQUIRED_DARWIN_CHECKS
 
1565
# -------------------------
 
1566
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
 
1567
  case $host_os in
 
1568
    rhapsody* | darwin*)
 
1569
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
1570
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
1571
    AC_CHECK_TOOL([LIPO], [lipo], [:])
 
1572
    AC_CHECK_TOOL([OTOOL], [otool], [:])
 
1573
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 
1574
    _LT_DECL([], [DSYMUTIL], [1],
 
1575
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 
1576
    _LT_DECL([], [NMEDIT], [1],
 
1577
      [Tool to change global to local symbols on Mac OS X])
 
1578
    _LT_DECL([], [LIPO], [1],
 
1579
      [Tool to manipulate fat objects and archives on Mac OS X])
 
1580
    _LT_DECL([], [OTOOL], [1],
 
1581
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 
1582
    _LT_DECL([], [OTOOL64], [1],
 
1583
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
 
1584
 
 
1585
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
1586
      [lt_cv_apple_cc_single_mod=no
 
1587
      if test -z "${LT_MULTI_MODULE}"; then
 
1588
        # By default we will add the -single_module flag. You can override
 
1589
        # by either setting the environment variable LT_MULTI_MODULE
 
1590
        # non-empty at configure time, or by adding -multi_module to the
 
1591
        # link flags.
 
1592
        rm -rf libconftest.dylib*
 
1593
        echo "int foo(void){return 1;}" > conftest.c
 
1594
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1595
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 
1596
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1597
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
1598
        _lt_result=$?
 
1599
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
1600
          lt_cv_apple_cc_single_mod=yes
 
1601
        else
 
1602
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
1603
        fi
 
1604
        rm -rf libconftest.dylib*
 
1605
        rm -f conftest.*
 
1606
      fi])
 
1607
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
1608
      [lt_cv_ld_exported_symbols_list],
 
1609
      [lt_cv_ld_exported_symbols_list=no
 
1610
      save_LDFLAGS=$LDFLAGS
 
1611
      echo "_main" > conftest.sym
 
1612
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
1613
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
1614
        [lt_cv_ld_exported_symbols_list=yes],
 
1615
        [lt_cv_ld_exported_symbols_list=no])
 
1616
        LDFLAGS="$save_LDFLAGS"
 
1617
    ])
 
1618
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 
1619
      [lt_cv_ld_force_load=no
 
1620
      cat > conftest.c << _LT_EOF
 
1621
int forced_loaded() { return 2;}
 
1622
_LT_EOF
 
1623
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 
1624
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 
1625
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 
1626
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 
1627
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 
1628
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 
1629
      cat > conftest.c << _LT_EOF
 
1630
int main() { return 0;}
 
1631
_LT_EOF
 
1632
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 
1633
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
1634
      _lt_result=$?
 
1635
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
1636
        lt_cv_ld_force_load=yes
 
1637
      else
 
1638
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
1639
      fi
 
1640
        rm -f conftest.err libconftest.a conftest conftest.c
 
1641
        rm -rf conftest.dSYM
 
1642
    ])
 
1643
    case $host_os in
 
1644
    rhapsody* | darwin1.[[012]])
 
1645
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
1646
    darwin1.*)
 
1647
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1648
    darwin*) # darwin 5.x on
 
1649
      # if running on 10.5 or later, the deployment target defaults
 
1650
      # to the OS version, if on x86, and 10.4, the deployment
 
1651
      # target defaults to 10.4. Don't you love it?
 
1652
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
1653
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
1654
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1655
        10.[[012]]*)
 
1656
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1657
        10.*)
 
1658
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1659
      esac
 
1660
    ;;
 
1661
  esac
 
1662
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
1663
      _lt_dar_single_mod='$single_module'
 
1664
    fi
 
1665
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
1666
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
1667
    else
 
1668
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
1669
    fi
 
1670
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
1671
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
1672
    else
 
1673
      _lt_dsymutil=
 
1674
    fi
 
1675
    ;;
 
1676
  esac
 
1677
])
 
1678
 
 
1679
 
 
1680
# _LT_DARWIN_LINKER_FEATURES
 
1681
# --------------------------
 
1682
# Checks for linker and compiler features on darwin
 
1683
m4_defun([_LT_DARWIN_LINKER_FEATURES],
 
1684
[
 
1685
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 
1686
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
1687
  _LT_TAGVAR(hardcode_direct, $1)=no
 
1688
  _LT_TAGVAR(hardcode_automatic, $1)=yes
 
1689
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
1690
  if test "$lt_cv_ld_force_load" = "yes"; then
 
1691
    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
1692
  else
 
1693
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1694
  fi
 
1695
  _LT_TAGVAR(link_all_deplibs, $1)=yes
 
1696
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
1697
  case $cc_basename in
 
1698
     ifort*) _lt_dar_can_shared=yes ;;
 
1699
     *) _lt_dar_can_shared=$GCC ;;
 
1700
  esac
 
1701
  if test "$_lt_dar_can_shared" = "yes"; then
 
1702
    output_verbose_link_cmd=func_echo_all
 
1703
    _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}"
 
1704
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
1705
    _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}"
 
1706
    _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}"
 
1707
    m4_if([$1], [CXX],
 
1708
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
1709
      _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}"
 
1710
      _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}"
 
1711
    fi
 
1712
],[])
 
1713
  else
 
1714
  _LT_TAGVAR(ld_shlibs, $1)=no
 
1715
  fi
 
1716
])
 
1717
 
 
1718
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 
1719
# ----------------------------------
 
1720
# Links a minimal program and checks the executable
 
1721
# for the system default hardcoded library path. In most cases,
 
1722
# this is /usr/lib:/lib, but when the MPI compilers are used
 
1723
# the location of the communication and MPI libs are included too.
 
1724
# If we don't find anything, use the default library path according
 
1725
# to the aix ld manual.
 
1726
# Store the results from the different compilers for each TAGNAME.
 
1727
# Allow to override them for all tags through lt_cv_aix_libpath.
 
1728
m4_defun([_LT_SYS_MODULE_PATH_AIX],
 
1729
[m4_require([_LT_DECL_SED])dnl
 
1730
if test "${lt_cv_aix_libpath+set}" = set; then
 
1731
  aix_libpath=$lt_cv_aix_libpath
 
1732
else
 
1733
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 
1734
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 
1735
  lt_aix_libpath_sed='[
 
1736
      /Import File Strings/,/^$/ {
 
1737
          /^0/ {
 
1738
              s/^0  *\([^ ]*\) *$/\1/
 
1739
              p
 
1740
          }
 
1741
      }]'
 
1742
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1743
  # Check for a 64-bit object if we didn't find anything.
 
1744
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1745
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1746
  fi],[])
 
1747
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1748
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
 
1749
  fi
 
1750
  ])
 
1751
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 
1752
fi
 
1753
])# _LT_SYS_MODULE_PATH_AIX
 
1754
 
 
1755
 
 
1756
# _LT_SHELL_INIT(ARG)
 
1757
# -------------------
 
1758
m4_define([_LT_SHELL_INIT],
 
1759
[m4_divert_text([M4SH-INIT], [$1
 
1760
])])# _LT_SHELL_INIT
 
1761
 
 
1762
 
 
1763
 
 
1764
# _LT_PROG_ECHO_BACKSLASH
 
1765
# -----------------------
 
1766
# Find how we can fake an echo command that does not interpret backslash.
 
1767
# In particular, with Autoconf 2.60 or later we add some code to the start
 
1768
# of the generated configure script which will find a shell with a builtin
 
1769
# printf (which we can use as an echo command).
 
1770
m4_defun([_LT_PROG_ECHO_BACKSLASH],
 
1771
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1772
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1773
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1774
 
 
1775
AC_MSG_CHECKING([how to print strings])
 
1776
# Test print first, because it will be a builtin if present.
 
1777
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
1778
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1779
  ECHO='print -r --'
 
1780
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1781
  ECHO='printf %s\n'
 
1782
else
 
1783
  # Use this function as a fallback that always works.
 
1784
  func_fallback_echo ()
 
1785
  {
 
1786
    eval 'cat <<_LTECHO_EOF
 
1787
$[]1
 
1788
_LTECHO_EOF'
 
1789
  }
 
1790
  ECHO='func_fallback_echo'
 
1791
fi
 
1792
 
 
1793
# func_echo_all arg...
 
1794
# Invoke $ECHO with all args, space-separated.
 
1795
func_echo_all ()
 
1796
{
 
1797
    $ECHO "$*" 
 
1798
}
 
1799
 
 
1800
case "$ECHO" in
 
1801
  printf*) AC_MSG_RESULT([printf]) ;;
 
1802
  print*) AC_MSG_RESULT([print -r]) ;;
 
1803
  *) AC_MSG_RESULT([cat]) ;;
 
1804
esac
 
1805
 
 
1806
m4_ifdef([_AS_DETECT_SUGGESTED],
 
1807
[_AS_DETECT_SUGGESTED([
 
1808
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 
1809
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1810
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1811
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1812
    PATH=/empty FPATH=/empty; export PATH FPATH
 
1813
    test "X`printf %s $ECHO`" = "X$ECHO" \
 
1814
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 
1815
 
 
1816
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 
1817
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
 
1818
])# _LT_PROG_ECHO_BACKSLASH
 
1819
 
 
1820
 
 
1821
# _LT_WITH_SYSROOT
 
1822
# ----------------
 
1823
AC_DEFUN([_LT_WITH_SYSROOT],
 
1824
[AC_MSG_CHECKING([for sysroot])
 
1825
AC_ARG_WITH([sysroot],
 
1826
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
 
1827
                        (or the compiler's sysroot if not specified).],
 
1828
[], [with_sysroot=no])
 
1829
 
 
1830
dnl lt_sysroot will always be passed unquoted.  We quote it here
 
1831
dnl in case the user passed a directory name.
 
1832
lt_sysroot=
 
1833
case ${with_sysroot} in #(
 
1834
 yes)
 
1835
   if test "$GCC" = yes; then
 
1836
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
1837
   fi
 
1838
   ;; #(
 
1839
 /*)
 
1840
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
1841
   ;; #(
 
1842
 no|'')
 
1843
   ;; #(
 
1844
 *)
 
1845
   AC_MSG_RESULT([${with_sysroot}])
 
1846
   AC_MSG_ERROR([The sysroot must be an absolute path.])
 
1847
   ;;
 
1848
esac
 
1849
 
 
1850
 AC_MSG_RESULT([${lt_sysroot:-no}])
 
1851
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 
1852
[dependent libraries, and in which our libraries should be installed.])])
 
1853
 
 
1854
# _LT_ENABLE_LOCK
 
1855
# ---------------
 
1856
m4_defun([_LT_ENABLE_LOCK],
 
1857
[AC_ARG_ENABLE([libtool-lock],
 
1858
  [AS_HELP_STRING([--disable-libtool-lock],
 
1859
    [avoid locking (might break parallel builds)])])
 
1860
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
1861
 
 
1862
# Some flags need to be propagated to the compiler or linker for good
 
1863
# libtool support.
 
1864
case $host in
 
1865
ia64-*-hpux*)
 
1866
  # Find out which ABI we are using.
 
1867
  echo 'int i;' > conftest.$ac_ext
 
1868
  if AC_TRY_EVAL(ac_compile); then
 
1869
    case `/usr/bin/file conftest.$ac_objext` in
 
1870
      *ELF-32*)
 
1871
        HPUX_IA64_MODE="32"
 
1872
        ;;
 
1873
      *ELF-64*)
 
1874
        HPUX_IA64_MODE="64"
 
1875
        ;;
 
1876
    esac
 
1877
  fi
 
1878
  rm -rf conftest*
 
1879
  ;;
 
1880
*-*-irix6*)
 
1881
  # Find out which ABI we are using.
 
1882
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
 
1883
  if AC_TRY_EVAL(ac_compile); then
 
1884
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
1885
      case `/usr/bin/file conftest.$ac_objext` in
 
1886
        *32-bit*)
 
1887
          LD="${LD-ld} -melf32bsmip"
 
1888
          ;;
 
1889
        *N32*)
 
1890
          LD="${LD-ld} -melf32bmipn32"
 
1891
          ;;
 
1892
        *64-bit*)
 
1893
          LD="${LD-ld} -melf64bmip"
 
1894
        ;;
 
1895
      esac
 
1896
    else
 
1897
      case `/usr/bin/file conftest.$ac_objext` in
 
1898
        *32-bit*)
 
1899
          LD="${LD-ld} -32"
 
1900
          ;;
 
1901
        *N32*)
 
1902
          LD="${LD-ld} -n32"
 
1903
          ;;
 
1904
        *64-bit*)
 
1905
          LD="${LD-ld} -64"
 
1906
          ;;
 
1907
      esac
 
1908
    fi
 
1909
  fi
 
1910
  rm -rf conftest*
 
1911
  ;;
 
1912
 
 
1913
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
1914
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
1915
  # Find out which ABI we are using.
 
1916
  echo 'int i;' > conftest.$ac_ext
 
1917
  if AC_TRY_EVAL(ac_compile); then
 
1918
    case `/usr/bin/file conftest.o` in
 
1919
      *32-bit*)
 
1920
        case $host in
 
1921
          x86_64-*kfreebsd*-gnu)
 
1922
            LD="${LD-ld} -m elf_i386_fbsd"
 
1923
            ;;
 
1924
          x86_64-*linux*)
 
1925
            LD="${LD-ld} -m elf_i386"
 
1926
            ;;
 
1927
          ppc64-*linux*|powerpc64-*linux*)
 
1928
            LD="${LD-ld} -m elf32ppclinux"
 
1929
            ;;
 
1930
          s390x-*linux*)
 
1931
            LD="${LD-ld} -m elf_s390"
 
1932
            ;;
 
1933
          sparc64-*linux*)
 
1934
            LD="${LD-ld} -m elf32_sparc"
 
1935
            ;;
 
1936
        esac
 
1937
        ;;
 
1938
      *64-bit*)
 
1939
        case $host in
 
1940
          x86_64-*kfreebsd*-gnu)
 
1941
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
1942
            ;;
 
1943
          x86_64-*linux*)
 
1944
            LD="${LD-ld} -m elf_x86_64"
 
1945
            ;;
 
1946
          ppc*-*linux*|powerpc*-*linux*)
 
1947
            LD="${LD-ld} -m elf64ppc"
 
1948
            ;;
 
1949
          s390*-*linux*|s390*-*tpf*)
 
1950
            LD="${LD-ld} -m elf64_s390"
 
1951
            ;;
 
1952
          sparc*-*linux*)
 
1953
            LD="${LD-ld} -m elf64_sparc"
 
1954
            ;;
 
1955
        esac
 
1956
        ;;
 
1957
    esac
 
1958
  fi
 
1959
  rm -rf conftest*
 
1960
  ;;
 
1961
 
 
1962
*-*-sco3.2v5*)
 
1963
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
1964
  SAVE_CFLAGS="$CFLAGS"
 
1965
  CFLAGS="$CFLAGS -belf"
 
1966
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
 
1967
    [AC_LANG_PUSH(C)
 
1968
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
1969
     AC_LANG_POP])
 
1970
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
1971
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
1972
    CFLAGS="$SAVE_CFLAGS"
 
1973
  fi
 
1974
  ;;
 
1975
sparc*-*solaris*)
 
1976
  # Find out which ABI we are using.
 
1977
  echo 'int i;' > conftest.$ac_ext
 
1978
  if AC_TRY_EVAL(ac_compile); then
 
1979
    case `/usr/bin/file conftest.o` in
 
1980
    *64-bit*)
 
1981
      case $lt_cv_prog_gnu_ld in
 
1982
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
1983
      *)
 
1984
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
1985
          LD="${LD-ld} -64"
 
1986
        fi
 
1987
        ;;
 
1988
      esac
 
1989
      ;;
 
1990
    esac
 
1991
  fi
 
1992
  rm -rf conftest*
 
1993
  ;;
 
1994
esac
 
1995
 
 
1996
need_locks="$enable_libtool_lock"
 
1997
])# _LT_ENABLE_LOCK
 
1998
 
 
1999
 
 
2000
# _LT_PROG_AR
 
2001
# -----------
 
2002
m4_defun([_LT_PROG_AR],
 
2003
[AC_CHECK_TOOLS(AR, [ar], false)
 
2004
: ${AR=ar}
 
2005
: ${AR_FLAGS=cru}
 
2006
_LT_DECL([], [AR], [1], [The archiver])
 
2007
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
 
2008
 
 
2009
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 
2010
  [lt_cv_ar_at_file=no
 
2011
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 
2012
     [echo conftest.$ac_objext > conftest.lst
 
2013
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 
2014
      AC_TRY_EVAL([lt_ar_try])
 
2015
      if test "$ac_status" -eq 0; then
 
2016
        # Ensure the archiver fails upon bogus file names.
 
2017
        rm -f conftest.$ac_objext libconftest.a
 
2018
        AC_TRY_EVAL([lt_ar_try])
 
2019
        if test "$ac_status" -ne 0; then
 
2020
          lt_cv_ar_at_file=@
 
2021
        fi
 
2022
      fi
 
2023
      rm -f conftest.* libconftest.a
 
2024
     ])
 
2025
  ])
 
2026
 
 
2027
if test "x$lt_cv_ar_at_file" = xno; then
 
2028
  archiver_list_spec=
 
2029
else
 
2030
  archiver_list_spec=$lt_cv_ar_at_file
 
2031
fi
 
2032
_LT_DECL([], [archiver_list_spec], [1],
 
2033
  [How to feed a file listing to the archiver])
 
2034
])# _LT_PROG_AR
 
2035
 
 
2036
 
 
2037
# _LT_CMD_OLD_ARCHIVE
 
2038
# -------------------
 
2039
m4_defun([_LT_CMD_OLD_ARCHIVE],
 
2040
[_LT_PROG_AR
 
2041
 
 
2042
AC_CHECK_TOOL(STRIP, strip, :)
 
2043
test -z "$STRIP" && STRIP=:
 
2044
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
 
2045
 
 
2046
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
2047
test -z "$RANLIB" && RANLIB=:
 
2048
_LT_DECL([], [RANLIB], [1],
 
2049
    [Commands used to install an old-style archive])
 
2050
 
 
2051
# Determine commands to create old-style static archives.
 
2052
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
2053
old_postinstall_cmds='chmod 644 $oldlib'
 
2054
old_postuninstall_cmds=
 
2055
 
 
2056
if test -n "$RANLIB"; then
 
2057
  case $host_os in
 
2058
  openbsd*)
 
2059
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
2060
    ;;
 
2061
  *)
 
2062
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
2063
    ;;
 
2064
  esac
 
2065
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
2066
fi
 
2067
 
 
2068
case $host_os in
 
2069
  darwin*)
 
2070
    lock_old_archive_extraction=yes ;;
 
2071
  *)
 
2072
    lock_old_archive_extraction=no ;;
 
2073
esac
 
2074
_LT_DECL([], [old_postinstall_cmds], [2])
 
2075
_LT_DECL([], [old_postuninstall_cmds], [2])
 
2076
_LT_TAGDECL([], [old_archive_cmds], [2],
 
2077
    [Commands used to build an old-style archive])
 
2078
_LT_DECL([], [lock_old_archive_extraction], [0],
 
2079
    [Whether to use a lock for old archive extraction])
 
2080
])# _LT_CMD_OLD_ARCHIVE
 
2081
 
 
2082
 
 
2083
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2084
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 
2085
# ----------------------------------------------------------------
 
2086
# Check whether the given compiler option works
 
2087
AC_DEFUN([_LT_COMPILER_OPTION],
 
2088
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2089
m4_require([_LT_DECL_SED])dnl
 
2090
AC_CACHE_CHECK([$1], [$2],
 
2091
  [$2=no
 
2092
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
2093
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
2094
   lt_compiler_flag="$3"
 
2095
   # Insert the option either (1) after the last *FLAGS variable, or
 
2096
   # (2) before a word containing "conftest.", or (3) at the end.
 
2097
   # Note that $ac_compile itself does not contain backslashes and begins
 
2098
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
2099
   # The option is referenced via a variable to avoid confusing sed.
 
2100
   lt_compile=`echo "$ac_compile" | $SED \
 
2101
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
2102
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 
2103
   -e 's:$: $lt_compiler_flag:'`
 
2104
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2105
   (eval "$lt_compile" 2>conftest.err)
 
2106
   ac_status=$?
 
2107
   cat conftest.err >&AS_MESSAGE_LOG_FD
 
2108
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2109
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
2110
     # The compiler can only warn and ignore the option if not recognized
 
2111
     # So say no if there are warnings other than the usual output.
 
2112
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
2113
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
2114
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
2115
       $2=yes
 
2116
     fi
 
2117
   fi
 
2118
   $RM conftest*
 
2119
])
 
2120
 
 
2121
if test x"[$]$2" = xyes; then
 
2122
    m4_if([$5], , :, [$5])
 
2123
else
 
2124
    m4_if([$6], , :, [$6])
 
2125
fi
 
2126
])# _LT_COMPILER_OPTION
 
2127
 
 
2128
# Old name:
 
2129
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 
2130
dnl aclocal-1.4 backwards compatibility:
 
2131
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 
2132
 
 
2133
 
 
2134
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2135
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
 
2136
# ----------------------------------------------------
 
2137
# Check whether the given linker option works
 
2138
AC_DEFUN([_LT_LINKER_OPTION],
 
2139
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2140
m4_require([_LT_DECL_SED])dnl
 
2141
AC_CACHE_CHECK([$1], [$2],
 
2142
  [$2=no
 
2143
   save_LDFLAGS="$LDFLAGS"
 
2144
   LDFLAGS="$LDFLAGS $3"
 
2145
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
2146
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
2147
     # The linker can only warn and ignore the option if not recognized
 
2148
     # So say no if there are warnings
 
2149
     if test -s conftest.err; then
 
2150
       # Append any errors to the config.log.
 
2151
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
2152
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
2153
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
2154
       if diff conftest.exp conftest.er2 >/dev/null; then
 
2155
         $2=yes
 
2156
       fi
 
2157
     else
 
2158
       $2=yes
 
2159
     fi
 
2160
   fi
 
2161
   $RM -r conftest*
 
2162
   LDFLAGS="$save_LDFLAGS"
 
2163
])
 
2164
 
 
2165
if test x"[$]$2" = xyes; then
 
2166
    m4_if([$4], , :, [$4])
 
2167
else
 
2168
    m4_if([$5], , :, [$5])
 
2169
fi
 
2170
])# _LT_LINKER_OPTION
 
2171
 
 
2172
# Old name:
 
2173
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 
2174
dnl aclocal-1.4 backwards compatibility:
 
2175
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 
2176
 
 
2177
 
 
2178
# LT_CMD_MAX_LEN
 
2179
#---------------
 
2180
AC_DEFUN([LT_CMD_MAX_LEN],
 
2181
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2182
# find the maximum length of command line arguments
 
2183
AC_MSG_CHECKING([the maximum length of command line arguments])
 
2184
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 
2185
  i=0
 
2186
  teststring="ABCD"
 
2187
 
 
2188
  case $build_os in
 
2189
  msdosdjgpp*)
 
2190
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
2191
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
2192
    # during glob expansion).  Even if it were fixed, the result of this
 
2193
    # check would be larger than it should be.
 
2194
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
2195
    ;;
 
2196
 
 
2197
  gnu*)
 
2198
    # Under GNU Hurd, this test is not required because there is
 
2199
    # no limit to the length of command line arguments.
 
2200
    # Libtool will interpret -1 as no limit whatsoever
 
2201
    lt_cv_sys_max_cmd_len=-1;
 
2202
    ;;
 
2203
 
 
2204
  cygwin* | mingw* | cegcc*)
 
2205
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
2206
    # about 5 minutes as the teststring grows exponentially.
 
2207
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
2208
    # you end up with a "frozen" computer, even though with patience
 
2209
    # the test eventually succeeds (with a max line length of 256k).
 
2210
    # Instead, let's just punt: use the minimum linelength reported by
 
2211
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
2212
    lt_cv_sys_max_cmd_len=8192;
 
2213
    ;;
 
2214
 
 
2215
  mint*)
 
2216
    # On MiNT this can take a long time and run out of memory.
 
2217
    lt_cv_sys_max_cmd_len=8192;
 
2218
    ;;
 
2219
 
 
2220
  amigaos*)
 
2221
    # On AmigaOS with pdksh, this test takes hours, literally.
 
2222
    # So we just punt and use a minimum line length of 8192.
 
2223
    lt_cv_sys_max_cmd_len=8192;
 
2224
    ;;
 
2225
 
 
2226
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
2227
    # This has been around since 386BSD, at least.  Likely further.
 
2228
    if test -x /sbin/sysctl; then
 
2229
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
2230
    elif test -x /usr/sbin/sysctl; then
 
2231
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
2232
    else
 
2233
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
2234
    fi
 
2235
    # And add a safety zone
 
2236
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
2237
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
2238
    ;;
 
2239
 
 
2240
  interix*)
 
2241
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
2242
    lt_cv_sys_max_cmd_len=196608
 
2243
    ;;
 
2244
 
 
2245
  osf*)
 
2246
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
2247
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
2248
    # nice to cause kernel panics so lets avoid the loop below.
 
2249
    # First set a reasonable default.
 
2250
    lt_cv_sys_max_cmd_len=16384
 
2251
    #
 
2252
    if test -x /sbin/sysconfig; then
 
2253
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
2254
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
2255
      esac
 
2256
    fi
 
2257
    ;;
 
2258
  sco3.2v5*)
 
2259
    lt_cv_sys_max_cmd_len=102400
 
2260
    ;;
 
2261
  sysv5* | sco5v6* | sysv4.2uw2*)
 
2262
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
2263
    if test -n "$kargmax"; then
 
2264
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
 
2265
    else
 
2266
      lt_cv_sys_max_cmd_len=32768
 
2267
    fi
 
2268
    ;;
 
2269
  *)
 
2270
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
2271
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
2272
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
2273
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
2274
    else
 
2275
      # Make teststring a little bigger before we do anything with it.
 
2276
      # a 1K string should be a reasonable start.
 
2277
      for i in 1 2 3 4 5 6 7 8 ; do
 
2278
        teststring=$teststring$teststring
 
2279
      done
 
2280
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
2281
      # If test is not a shell built-in, we'll probably end up computing a
 
2282
      # maximum length that is only half of the actual maximum length, but
 
2283
      # we can't tell.
 
2284
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
2285
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
2286
              test $i != 17 # 1/2 MB should be enough
 
2287
      do
 
2288
        i=`expr $i + 1`
 
2289
        teststring=$teststring$teststring
 
2290
      done
 
2291
      # Only check the string length outside the loop.
 
2292
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
2293
      teststring=
 
2294
      # Add a significant safety factor because C++ compilers can tack on
 
2295
      # massive amounts of additional arguments before passing them to the
 
2296
      # linker.  It appears as though 1/2 is a usable value.
 
2297
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
2298
    fi
 
2299
    ;;
 
2300
  esac
 
2301
])
 
2302
if test -n $lt_cv_sys_max_cmd_len ; then
 
2303
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
 
2304
else
 
2305
  AC_MSG_RESULT(none)
 
2306
fi
 
2307
max_cmd_len=$lt_cv_sys_max_cmd_len
 
2308
_LT_DECL([], [max_cmd_len], [0],
 
2309
    [What is the maximum length of a command?])
 
2310
])# LT_CMD_MAX_LEN
 
2311
 
 
2312
# Old name:
 
2313
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 
2314
dnl aclocal-1.4 backwards compatibility:
 
2315
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 
2316
 
 
2317
 
 
2318
# _LT_HEADER_DLFCN
 
2319
# ----------------
 
2320
m4_defun([_LT_HEADER_DLFCN],
 
2321
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 
2322
])# _LT_HEADER_DLFCN
 
2323
 
 
2324
 
 
2325
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
2326
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
2327
# ----------------------------------------------------------------
 
2328
m4_defun([_LT_TRY_DLOPEN_SELF],
 
2329
[m4_require([_LT_HEADER_DLFCN])dnl
 
2330
if test "$cross_compiling" = yes; then :
 
2331
  [$4]
 
2332
else
 
2333
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
2334
  lt_status=$lt_dlunknown
 
2335
  cat > conftest.$ac_ext <<_LT_EOF
 
2336
[#line $LINENO "configure"
 
2337
#include "confdefs.h"
 
2338
 
 
2339
#if HAVE_DLFCN_H
 
2340
#include <dlfcn.h>
 
2341
#endif
 
2342
 
 
2343
#include <stdio.h>
 
2344
 
 
2345
#ifdef RTLD_GLOBAL
 
2346
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
2347
#else
 
2348
#  ifdef DL_GLOBAL
 
2349
#    define LT_DLGLOBAL         DL_GLOBAL
 
2350
#  else
 
2351
#    define LT_DLGLOBAL         0
 
2352
#  endif
 
2353
#endif
 
2354
 
 
2355
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
2356
   find out it does not work in some platform. */
 
2357
#ifndef LT_DLLAZY_OR_NOW
 
2358
#  ifdef RTLD_LAZY
 
2359
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
2360
#  else
 
2361
#    ifdef DL_LAZY
 
2362
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
2363
#    else
 
2364
#      ifdef RTLD_NOW
 
2365
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
2366
#      else
 
2367
#        ifdef DL_NOW
 
2368
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
2369
#        else
 
2370
#          define LT_DLLAZY_OR_NOW      0
 
2371
#        endif
 
2372
#      endif
 
2373
#    endif
 
2374
#  endif
 
2375
#endif
 
2376
 
 
2377
/* When -fvisbility=hidden is used, assume the code has been annotated
 
2378
   correspondingly for the symbols needed.  */
 
2379
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
2380
int fnord () __attribute__((visibility("default")));
 
2381
#endif
 
2382
 
 
2383
int fnord () { return 42; }
 
2384
int main ()
 
2385
{
 
2386
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
2387
  int status = $lt_dlunknown;
 
2388
 
 
2389
  if (self)
 
2390
    {
 
2391
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
2392
      else
 
2393
        {
 
2394
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
2395
          else puts (dlerror ());
 
2396
        }
 
2397
      /* dlclose (self); */
 
2398
    }
 
2399
  else
 
2400
    puts (dlerror ());
 
2401
 
 
2402
  return status;
 
2403
}]
 
2404
_LT_EOF
 
2405
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
 
2406
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
 
2407
    lt_status=$?
 
2408
    case x$lt_status in
 
2409
      x$lt_dlno_uscore) $1 ;;
 
2410
      x$lt_dlneed_uscore) $2 ;;
 
2411
      x$lt_dlunknown|x*) $3 ;;
 
2412
    esac
 
2413
  else :
 
2414
    # compilation failed
 
2415
    $3
 
2416
  fi
 
2417
fi
 
2418
rm -fr conftest*
 
2419
])# _LT_TRY_DLOPEN_SELF
 
2420
 
 
2421
 
 
2422
# LT_SYS_DLOPEN_SELF
 
2423
# ------------------
 
2424
AC_DEFUN([LT_SYS_DLOPEN_SELF],
 
2425
[m4_require([_LT_HEADER_DLFCN])dnl
 
2426
if test "x$enable_dlopen" != xyes; then
 
2427
  enable_dlopen=unknown
 
2428
  enable_dlopen_self=unknown
 
2429
  enable_dlopen_self_static=unknown
 
2430
else
 
2431
  lt_cv_dlopen=no
 
2432
  lt_cv_dlopen_libs=
 
2433
 
 
2434
  case $host_os in
 
2435
  beos*)
 
2436
    lt_cv_dlopen="load_add_on"
 
2437
    lt_cv_dlopen_libs=
 
2438
    lt_cv_dlopen_self=yes
 
2439
    ;;
 
2440
 
 
2441
  mingw* | pw32* | cegcc*)
 
2442
    lt_cv_dlopen="LoadLibrary"
 
2443
    lt_cv_dlopen_libs=
 
2444
    ;;
 
2445
 
 
2446
  cygwin*)
 
2447
    lt_cv_dlopen="dlopen"
 
2448
    lt_cv_dlopen_libs=
 
2449
    ;;
 
2450
 
 
2451
  darwin*)
 
2452
  # if libdl is installed we need to link against it
 
2453
    AC_CHECK_LIB([dl], [dlopen],
 
2454
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
 
2455
    lt_cv_dlopen="dyld"
 
2456
    lt_cv_dlopen_libs=
 
2457
    lt_cv_dlopen_self=yes
 
2458
    ])
 
2459
    ;;
 
2460
 
 
2461
  *)
 
2462
    AC_CHECK_FUNC([shl_load],
 
2463
          [lt_cv_dlopen="shl_load"],
 
2464
      [AC_CHECK_LIB([dld], [shl_load],
 
2465
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
 
2466
        [AC_CHECK_FUNC([dlopen],
 
2467
              [lt_cv_dlopen="dlopen"],
 
2468
          [AC_CHECK_LIB([dl], [dlopen],
 
2469
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
 
2470
            [AC_CHECK_LIB([svld], [dlopen],
 
2471
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
 
2472
              [AC_CHECK_LIB([dld], [dld_link],
 
2473
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
 
2474
              ])
 
2475
            ])
 
2476
          ])
 
2477
        ])
 
2478
      ])
 
2479
    ;;
 
2480
  esac
 
2481
 
 
2482
  if test "x$lt_cv_dlopen" != xno; then
 
2483
    enable_dlopen=yes
 
2484
  else
 
2485
    enable_dlopen=no
 
2486
  fi
 
2487
 
 
2488
  case $lt_cv_dlopen in
 
2489
  dlopen)
 
2490
    save_CPPFLAGS="$CPPFLAGS"
 
2491
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
2492
 
 
2493
    save_LDFLAGS="$LDFLAGS"
 
2494
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
2495
 
 
2496
    save_LIBS="$LIBS"
 
2497
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
2498
 
 
2499
    AC_CACHE_CHECK([whether a program can dlopen itself],
 
2500
          lt_cv_dlopen_self, [dnl
 
2501
          _LT_TRY_DLOPEN_SELF(
 
2502
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
 
2503
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
 
2504
    ])
 
2505
 
 
2506
    if test "x$lt_cv_dlopen_self" = xyes; then
 
2507
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
2508
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
 
2509
          lt_cv_dlopen_self_static, [dnl
 
2510
          _LT_TRY_DLOPEN_SELF(
 
2511
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
 
2512
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
 
2513
      ])
 
2514
    fi
 
2515
 
 
2516
    CPPFLAGS="$save_CPPFLAGS"
 
2517
    LDFLAGS="$save_LDFLAGS"
 
2518
    LIBS="$save_LIBS"
 
2519
    ;;
 
2520
  esac
 
2521
 
 
2522
  case $lt_cv_dlopen_self in
 
2523
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
2524
  *) enable_dlopen_self=unknown ;;
 
2525
  esac
 
2526
 
 
2527
  case $lt_cv_dlopen_self_static in
 
2528
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
2529
  *) enable_dlopen_self_static=unknown ;;
 
2530
  esac
 
2531
fi
 
2532
_LT_DECL([dlopen_support], [enable_dlopen], [0],
 
2533
         [Whether dlopen is supported])
 
2534
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 
2535
         [Whether dlopen of programs is supported])
 
2536
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 
2537
         [Whether dlopen of statically linked programs is supported])
 
2538
])# LT_SYS_DLOPEN_SELF
 
2539
 
 
2540
# Old name:
 
2541
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 
2542
dnl aclocal-1.4 backwards compatibility:
 
2543
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 
2544
 
 
2545
 
 
2546
# _LT_COMPILER_C_O([TAGNAME])
 
2547
# ---------------------------
 
2548
# Check to see if options -c and -o are simultaneously supported by compiler.
 
2549
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
 
2550
m4_defun([_LT_COMPILER_C_O],
 
2551
[m4_require([_LT_DECL_SED])dnl
 
2552
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2553
m4_require([_LT_TAG_COMPILER])dnl
 
2554
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
 
2555
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
2556
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
2557
   $RM -r conftest 2>/dev/null
 
2558
   mkdir conftest
 
2559
   cd conftest
 
2560
   mkdir out
 
2561
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
2562
 
 
2563
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
2564
   # Insert the option either (1) after the last *FLAGS variable, or
 
2565
   # (2) before a word containing "conftest.", or (3) at the end.
 
2566
   # Note that $ac_compile itself does not contain backslashes and begins
 
2567
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
2568
   lt_compile=`echo "$ac_compile" | $SED \
 
2569
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
2570
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 
2571
   -e 's:$: $lt_compiler_flag:'`
 
2572
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2573
   (eval "$lt_compile" 2>out/conftest.err)
 
2574
   ac_status=$?
 
2575
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
 
2576
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2577
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
2578
   then
 
2579
     # The compiler can only warn and ignore the option if not recognized
 
2580
     # So say no if there are warnings
 
2581
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
2582
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
2583
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
2584
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
2585
     fi
 
2586
   fi
 
2587
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
 
2588
   $RM conftest*
 
2589
   # SGI C++ compiler will create directory out/ii_files/ for
 
2590
   # template instantiation
 
2591
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
2592
   $RM out/* && rmdir out
 
2593
   cd ..
 
2594
   $RM -r conftest
 
2595
   $RM conftest*
 
2596
])
 
2597
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 
2598
        [Does compiler simultaneously support -c and -o options?])
 
2599
])# _LT_COMPILER_C_O
 
2600
 
 
2601
 
 
2602
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
 
2603
# ----------------------------------
 
2604
# Check to see if we can do hard links to lock some files if needed
 
2605
m4_defun([_LT_COMPILER_FILE_LOCKS],
 
2606
[m4_require([_LT_ENABLE_LOCK])dnl
 
2607
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2608
_LT_COMPILER_C_O([$1])
 
2609
 
 
2610
hard_links="nottested"
 
2611
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
2612
  # do not overwrite the value of need_locks provided by the user
 
2613
  AC_MSG_CHECKING([if we can lock with hard links])
 
2614
  hard_links=yes
 
2615
  $RM conftest*
 
2616
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
2617
  touch conftest.a
 
2618
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
2619
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
2620
  AC_MSG_RESULT([$hard_links])
 
2621
  if test "$hard_links" = no; then
 
2622
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
 
2623
    need_locks=warn
 
2624
  fi
 
2625
else
 
2626
  need_locks=no
 
2627
fi
 
2628
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 
2629
])# _LT_COMPILER_FILE_LOCKS
 
2630
 
 
2631
 
 
2632
# _LT_CHECK_OBJDIR
 
2633
# ----------------
 
2634
m4_defun([_LT_CHECK_OBJDIR],
 
2635
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
 
2636
[rm -f .libs 2>/dev/null
 
2637
mkdir .libs 2>/dev/null
 
2638
if test -d .libs; then
 
2639
  lt_cv_objdir=.libs
 
2640
else
 
2641
  # MS-DOS does not allow filenames that begin with a dot.
 
2642
  lt_cv_objdir=_libs
 
2643
fi
 
2644
rmdir .libs 2>/dev/null])
 
2645
objdir=$lt_cv_objdir
 
2646
_LT_DECL([], [objdir], [0],
 
2647
         [The name of the directory that contains temporary libtool files])dnl
 
2648
m4_pattern_allow([LT_OBJDIR])dnl
 
2649
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
 
2650
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
 
2651
])# _LT_CHECK_OBJDIR
 
2652
 
 
2653
 
 
2654
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 
2655
# --------------------------------------
 
2656
# Check hardcoding attributes.
 
2657
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
 
2658
[AC_MSG_CHECKING([how to hardcode library paths into programs])
 
2659
_LT_TAGVAR(hardcode_action, $1)=
 
2660
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 
2661
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 
2662
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
2663
 
 
2664
  # We can hardcode non-existent directories.
 
2665
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
 
2666
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
2667
     # have to relink, otherwise we might link with an installed library
 
2668
     # when we should be linking with a yet-to-be-installed one
 
2669
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
2670
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
 
2671
    # Linking always hardcodes the temporary library directory.
 
2672
    _LT_TAGVAR(hardcode_action, $1)=relink
 
2673
  else
 
2674
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
2675
    _LT_TAGVAR(hardcode_action, $1)=immediate
 
2676
  fi
 
2677
else
 
2678
  # We cannot hardcode anything, or else we can only hardcode existing
 
2679
  # directories.
 
2680
  _LT_TAGVAR(hardcode_action, $1)=unsupported
 
2681
fi
 
2682
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
 
2683
 
 
2684
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
 
2685
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
 
2686
  # Fast installation is not supported
 
2687
  enable_fast_install=no
 
2688
elif test "$shlibpath_overrides_runpath" = yes ||
 
2689
     test "$enable_shared" = no; then
 
2690
  # Fast installation is not necessary
 
2691
  enable_fast_install=needless
 
2692
fi
 
2693
_LT_TAGDECL([], [hardcode_action], [0],
 
2694
    [How to hardcode a shared library path into an executable])
 
2695
])# _LT_LINKER_HARDCODE_LIBPATH
 
2696
 
 
2697
 
 
2698
# _LT_CMD_STRIPLIB
 
2699
# ----------------
 
2700
m4_defun([_LT_CMD_STRIPLIB],
 
2701
[m4_require([_LT_DECL_EGREP])
 
2702
striplib=
 
2703
old_striplib=
 
2704
AC_MSG_CHECKING([whether stripping libraries is possible])
 
2705
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
2706
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
2707
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
2708
  AC_MSG_RESULT([yes])
 
2709
else
 
2710
# FIXME - insert some real tests, host_os isn't really good enough
 
2711
  case $host_os in
 
2712
  darwin*)
 
2713
    if test -n "$STRIP" ; then
 
2714
      striplib="$STRIP -x"
 
2715
      old_striplib="$STRIP -S"
 
2716
      AC_MSG_RESULT([yes])
 
2717
    else
 
2718
      AC_MSG_RESULT([no])
 
2719
    fi
 
2720
    ;;
 
2721
  *)
 
2722
    AC_MSG_RESULT([no])
 
2723
    ;;
 
2724
  esac
 
2725
fi
 
2726
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 
2727
_LT_DECL([], [striplib], [1])
 
2728
])# _LT_CMD_STRIPLIB
 
2729
 
 
2730
 
 
2731
# _LT_SYS_DYNAMIC_LINKER([TAG])
 
2732
# -----------------------------
 
2733
# PORTME Fill in your ld.so characteristics
 
2734
m4_defun([_LT_SYS_DYNAMIC_LINKER],
 
2735
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2736
m4_require([_LT_DECL_EGREP])dnl
 
2737
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2738
m4_require([_LT_DECL_OBJDUMP])dnl
 
2739
m4_require([_LT_DECL_SED])dnl
 
2740
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
2741
AC_MSG_CHECKING([dynamic linker characteristics])
 
2742
m4_if([$1],
 
2743
        [], [
 
2744
if test "$GCC" = yes; then
 
2745
  case $host_os in
 
2746
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
2747
    *) lt_awk_arg="/^libraries:/" ;;
 
2748
  esac
 
2749
  case $host_os in
 
2750
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
 
2751
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
2752
  esac
 
2753
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
2754
  case $lt_search_path_spec in
 
2755
  *\;*)
 
2756
    # if the path contains ";" then we assume it to be the separator
 
2757
    # otherwise default to the standard path separator (i.e. ":") - it is
 
2758
    # assumed that no part of a normal pathname contains ";" but that should
 
2759
    # okay in the real world where ";" in dirpaths is itself problematic.
 
2760
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
2761
    ;;
 
2762
  *)
 
2763
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
2764
    ;;
 
2765
  esac
 
2766
  # Ok, now we have the path, separated by spaces, we can step through it
 
2767
  # and add multilib dir if necessary.
 
2768
  lt_tmp_lt_search_path_spec=
 
2769
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
2770
  for lt_sys_path in $lt_search_path_spec; do
 
2771
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
2772
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
2773
    else
 
2774
      test -d "$lt_sys_path" && \
 
2775
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
2776
    fi
 
2777
  done
 
2778
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
2779
BEGIN {RS=" "; FS="/|\n";} {
 
2780
  lt_foo="";
 
2781
  lt_count=0;
 
2782
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
2783
    if ($lt_i != "" && $lt_i != ".") {
 
2784
      if ($lt_i == "..") {
 
2785
        lt_count++;
 
2786
      } else {
 
2787
        if (lt_count == 0) {
 
2788
          lt_foo="/" $lt_i lt_foo;
 
2789
        } else {
 
2790
          lt_count--;
 
2791
        }
 
2792
      }
 
2793
    }
 
2794
  }
 
2795
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
2796
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
2797
}'`
 
2798
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
2799
  # for these hosts.
 
2800
  case $host_os in
 
2801
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
2802
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
 
2803
  esac
 
2804
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
2805
else
 
2806
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
2807
fi])
 
2808
library_names_spec=
 
2809
libname_spec='lib$name'
 
2810
soname_spec=
 
2811
shrext_cmds=".so"
 
2812
postinstall_cmds=
 
2813
postuninstall_cmds=
 
2814
finish_cmds=
 
2815
finish_eval=
 
2816
shlibpath_var=
 
2817
shlibpath_overrides_runpath=unknown
 
2818
version_type=none
 
2819
dynamic_linker="$host_os ld.so"
 
2820
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
2821
need_lib_prefix=unknown
 
2822
hardcode_into_libs=no
 
2823
 
 
2824
# when you set need_version to no, make sure it does not cause -set_version
 
2825
# flags to be left without arguments
 
2826
need_version=unknown
 
2827
 
 
2828
case $host_os in
 
2829
aix3*)
 
2830
  version_type=linux
 
2831
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
2832
  shlibpath_var=LIBPATH
 
2833
 
 
2834
  # AIX 3 has no versioning support, so we append a major version to the name.
 
2835
  soname_spec='${libname}${release}${shared_ext}$major'
 
2836
  ;;
 
2837
 
 
2838
aix[[4-9]]*)
 
2839
  version_type=linux
 
2840
  need_lib_prefix=no
 
2841
  need_version=no
 
2842
  hardcode_into_libs=yes
 
2843
  if test "$host_cpu" = ia64; then
 
2844
    # AIX 5 supports IA64
 
2845
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
2846
    shlibpath_var=LD_LIBRARY_PATH
 
2847
  else
 
2848
    # With GCC up to 2.95.x, collect2 would create an import file
 
2849
    # for dependence libraries.  The import file would start with
 
2850
    # the line `#! .'.  This would cause the generated library to
 
2851
    # depend on `.', always an invalid library.  This was fixed in
 
2852
    # development snapshots of GCC prior to 3.0.
 
2853
    case $host_os in
 
2854
      aix4 | aix4.[[01]] | aix4.[[01]].*)
 
2855
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
2856
           echo ' yes '
 
2857
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
2858
        :
 
2859
      else
 
2860
        can_build_shared=no
 
2861
      fi
 
2862
      ;;
 
2863
    esac
 
2864
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
2865
    # soname into executable. Probably we can add versioning support to
 
2866
    # collect2, so additional links can be useful in future.
 
2867
    if test "$aix_use_runtimelinking" = yes; then
 
2868
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
2869
      # instead of lib<name>.a to let people know that these are not
 
2870
      # typical AIX shared libraries.
 
2871
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2872
    else
 
2873
      # We preserve .a as extension for shared libraries through AIX4.2
 
2874
      # and later when we are not doing run time linking.
 
2875
      library_names_spec='${libname}${release}.a $libname.a'
 
2876
      soname_spec='${libname}${release}${shared_ext}$major'
 
2877
    fi
 
2878
    shlibpath_var=LIBPATH
 
2879
  fi
 
2880
  ;;
 
2881
 
 
2882
amigaos*)
 
2883
  case $host_cpu in
 
2884
  powerpc)
 
2885
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
2886
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
2887
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2888
    ;;
 
2889
  m68k)
 
2890
    library_names_spec='$libname.ixlibrary $libname.a'
 
2891
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
2892
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
 
2893
    ;;
 
2894
  esac
 
2895
  ;;
 
2896
 
 
2897
beos*)
 
2898
  library_names_spec='${libname}${shared_ext}'
 
2899
  dynamic_linker="$host_os ld.so"
 
2900
  shlibpath_var=LIBRARY_PATH
 
2901
  ;;
 
2902
 
 
2903
bsdi[[45]]*)
 
2904
  version_type=linux
 
2905
  need_version=no
 
2906
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2907
  soname_spec='${libname}${release}${shared_ext}$major'
 
2908
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
2909
  shlibpath_var=LD_LIBRARY_PATH
 
2910
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
2911
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
2912
  # the default ld.so.conf also contains /usr/contrib/lib and
 
2913
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
2914
  # libtool to hard-code these into programs
 
2915
  ;;
 
2916
 
 
2917
cygwin* | mingw* | pw32* | cegcc*)
 
2918
  version_type=windows
 
2919
  shrext_cmds=".dll"
 
2920
  need_version=no
 
2921
  need_lib_prefix=no
 
2922
 
 
2923
  case $GCC,$cc_basename in
 
2924
  yes,*)
 
2925
    # gcc
 
2926
    library_names_spec='$libname.dll.a'
 
2927
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
2928
    postinstall_cmds='base_file=`basename \${file}`~
 
2929
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
2930
      dldir=$destdir/`dirname \$dlpath`~
 
2931
      test -d \$dldir || mkdir -p \$dldir~
 
2932
      $install_prog $dir/$dlname \$dldir/$dlname~
 
2933
      chmod a+x \$dldir/$dlname~
 
2934
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
2935
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
2936
      fi'
 
2937
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
2938
      dlpath=$dir/\$dldll~
 
2939
       $RM \$dlpath'
 
2940
    shlibpath_overrides_runpath=yes
 
2941
 
 
2942
    case $host_os in
 
2943
    cygwin*)
 
2944
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
2945
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2946
m4_if([$1], [],[
 
2947
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
 
2948
      ;;
 
2949
    mingw* | cegcc*)
 
2950
      # MinGW DLLs use traditional 'lib' prefix
 
2951
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2952
      ;;
 
2953
    pw32*)
 
2954
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
2955
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2956
      ;;
 
2957
    esac
 
2958
    dynamic_linker='Win32 ld.exe'
 
2959
    ;;
 
2960
 
 
2961
  *,cl*)
 
2962
    # Native MSVC
 
2963
    libname_spec='$name'
 
2964
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2965
    library_names_spec='${libname}.dll.lib'
 
2966
 
 
2967
    case $build_os in
 
2968
    mingw*)
 
2969
      sys_lib_search_path_spec=
 
2970
      lt_save_ifs=$IFS
 
2971
      IFS=';'
 
2972
      for lt_path in $LIB
 
2973
      do
 
2974
        IFS=$lt_save_ifs
 
2975
        # Let DOS variable expansion print the short 8.3 style file name.
 
2976
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
2977
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
2978
      done
 
2979
      IFS=$lt_save_ifs
 
2980
      # Convert to MSYS style.
 
2981
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 
2982
      ;;
 
2983
    cygwin*)
 
2984
      # Convert to unix form, then to dos form, then back to unix form
 
2985
      # but this time dos style (no spaces!) so that the unix form looks
 
2986
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
2987
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
2988
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
2989
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
2990
      ;;
 
2991
    *)
 
2992
      sys_lib_search_path_spec="$LIB"
 
2993
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
2994
        # It is most probably a Windows format PATH.
 
2995
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2996
      else
 
2997
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
2998
      fi
 
2999
      # FIXME: find the short name or the path components, as spaces are
 
3000
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
3001
      ;;
 
3002
    esac
 
3003
 
 
3004
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
3005
    postinstall_cmds='base_file=`basename \${file}`~
 
3006
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
3007
      dldir=$destdir/`dirname \$dlpath`~
 
3008
      test -d \$dldir || mkdir -p \$dldir~
 
3009
      $install_prog $dir/$dlname \$dldir/$dlname'
 
3010
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
3011
      dlpath=$dir/\$dldll~
 
3012
       $RM \$dlpath'
 
3013
    shlibpath_overrides_runpath=yes
 
3014
    dynamic_linker='Win32 link.exe'
 
3015
    ;;
 
3016
 
 
3017
  *)
 
3018
    # Assume MSVC wrapper
 
3019
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
3020
    dynamic_linker='Win32 ld.exe'
 
3021
    ;;
 
3022
  esac
 
3023
  # FIXME: first we should search . and the directory the executable is in
 
3024
  shlibpath_var=PATH
 
3025
  ;;
 
3026
 
 
3027
darwin* | rhapsody*)
 
3028
  dynamic_linker="$host_os dyld"
 
3029
  version_type=darwin
 
3030
  need_lib_prefix=no
 
3031
  need_version=no
 
3032
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
3033
  soname_spec='${libname}${release}${major}$shared_ext'
 
3034
  shlibpath_overrides_runpath=yes
 
3035
  shlibpath_var=DYLD_LIBRARY_PATH
 
3036
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
3037
m4_if([$1], [],[
 
3038
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
 
3039
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
3040
  ;;
 
3041
 
 
3042
dgux*)
 
3043
  version_type=linux
 
3044
  need_lib_prefix=no
 
3045
  need_version=no
 
3046
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
3047
  soname_spec='${libname}${release}${shared_ext}$major'
 
3048
  shlibpath_var=LD_LIBRARY_PATH
 
3049
  ;;
 
3050
 
 
3051
freebsd1*)
 
3052
  dynamic_linker=no
 
3053
  ;;
 
3054
 
 
3055
freebsd* | dragonfly*)
 
3056
  # DragonFly does not have aout.  When/if they implement a new
 
3057
  # versioning mechanism, adjust this.
 
3058
  if test -x /usr/bin/objformat; then
 
3059
    objformat=`/usr/bin/objformat`
 
3060
  else
 
3061
    case $host_os in
 
3062
    freebsd[[123]]*) objformat=aout ;;
 
3063
    *) objformat=elf ;;
 
3064
    esac
 
3065
  fi
 
3066
  version_type=freebsd-$objformat
 
3067
  case $version_type in
 
3068
    freebsd-elf*)
 
3069
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
3070
      need_version=no
 
3071
      need_lib_prefix=no
 
3072
      ;;
 
3073
    freebsd-*)
 
3074
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
3075
      need_version=yes
 
3076
      ;;
 
3077
  esac
 
3078
  shlibpath_var=LD_LIBRARY_PATH
 
3079
  case $host_os in
 
3080
  freebsd2*)
 
3081
    shlibpath_overrides_runpath=yes
 
3082
    ;;
 
3083
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
 
3084
    shlibpath_overrides_runpath=yes
 
3085
    hardcode_into_libs=yes
 
3086
    ;;
 
3087
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
3088
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
 
3089
    shlibpath_overrides_runpath=no
 
3090
    hardcode_into_libs=yes
 
3091
    ;;
 
3092
  *) # from 4.6 on, and DragonFly
 
3093
    shlibpath_overrides_runpath=yes
 
3094
    hardcode_into_libs=yes
 
3095
    ;;
 
3096
  esac
 
3097
  ;;
 
3098
 
 
3099
gnu*)
 
3100
  version_type=linux
 
3101
  need_lib_prefix=no
 
3102
  need_version=no
 
3103
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
3104
  soname_spec='${libname}${release}${shared_ext}$major'
 
3105
  shlibpath_var=LD_LIBRARY_PATH
 
3106
  shlibpath_overrides_runpath=no
 
3107
  hardcode_into_libs=yes
 
3108
  ;;
 
3109
 
 
3110
haiku*)
 
3111
  version_type=linux
 
3112
  need_lib_prefix=no
 
3113
  need_version=no
 
3114
  dynamic_linker="$host_os runtime_loader"
 
3115
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
3116
  soname_spec='${libname}${release}${shared_ext}$major'
 
3117
  shlibpath_var=LIBRARY_PATH
 
3118
  shlibpath_overrides_runpath=yes
 
3119
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
3120
  hardcode_into_libs=yes
 
3121
  ;;
 
3122
 
 
3123
hpux9* | hpux10* | hpux11*)
 
3124
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
3125
  # link against other versions.
 
3126
  version_type=sunos
 
3127
  need_lib_prefix=no
 
3128
  need_version=no
 
3129
  case $host_cpu in
 
3130
  ia64*)
 
3131
    shrext_cmds='.so'
 
3132
    hardcode_into_libs=yes
 
3133
    dynamic_linker="$host_os dld.so"
 
3134
    shlibpath_var=LD_LIBRARY_PATH
 
3135
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
3136
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3137
    soname_spec='${libname}${release}${shared_ext}$major'
 
3138
    if test "X$HPUX_IA64_MODE" = X32; then
 
3139
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
3140
    else
 
3141
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
3142
    fi
 
3143
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
3144
    ;;
 
3145
  hppa*64*)
 
3146
    shrext_cmds='.sl'
 
3147
    hardcode_into_libs=yes
 
3148
    dynamic_linker="$host_os dld.sl"
 
3149
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
3150
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
3151
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3152
    soname_spec='${libname}${release}${shared_ext}$major'
 
3153
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
3154
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
3155
    ;;
 
3156
  *)
 
3157
    shrext_cmds='.sl'
 
3158
    dynamic_linker="$host_os dld.sl"
 
3159
    shlibpath_var=SHLIB_PATH
 
3160
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
3161
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3162
    soname_spec='${libname}${release}${shared_ext}$major'
 
3163
    ;;
 
3164
  esac
 
3165
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
3166
  postinstall_cmds='chmod 555 $lib'
 
3167
  # or fails outright, so override atomically:
 
3168
  install_override_mode=555
 
3169
  ;;
 
3170
 
 
3171
interix[[3-9]]*)
 
3172
  version_type=linux
 
3173
  need_lib_prefix=no
 
3174
  need_version=no
 
3175
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3176
  soname_spec='${libname}${release}${shared_ext}$major'
 
3177
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
3178
  shlibpath_var=LD_LIBRARY_PATH
 
3179
  shlibpath_overrides_runpath=no
 
3180
  hardcode_into_libs=yes
 
3181
  ;;
 
3182
 
 
3183
irix5* | irix6* | nonstopux*)
 
3184
  case $host_os in
 
3185
    nonstopux*) version_type=nonstopux ;;
 
3186
    *)
 
3187
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
3188
                version_type=linux
 
3189
        else
 
3190
                version_type=irix
 
3191
        fi ;;
 
3192
  esac
 
3193
  need_lib_prefix=no
 
3194
  need_version=no
 
3195
  soname_spec='${libname}${release}${shared_ext}$major'
 
3196
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
3197
  case $host_os in
 
3198
  irix5* | nonstopux*)
 
3199
    libsuff= shlibsuff=
 
3200
    ;;
 
3201
  *)
 
3202
    case $LD in # libtool.m4 will add one of these switches to LD
 
3203
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
3204
      libsuff= shlibsuff= libmagic=32-bit;;
 
3205
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
3206
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
3207
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
3208
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
3209
    *) libsuff= shlibsuff= libmagic=never-match;;
 
3210
    esac
 
3211
    ;;
 
3212
  esac
 
3213
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
3214
  shlibpath_overrides_runpath=no
 
3215
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
3216
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
3217
  hardcode_into_libs=yes
 
3218
  ;;
 
3219
 
 
3220
# No shared lib support for Linux oldld, aout, or coff.
 
3221
linux*oldld* | linux*aout* | linux*coff*)
 
3222
  dynamic_linker=no
 
3223
  ;;
 
3224
 
 
3225
# This must be Linux ELF.
 
3226
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
3227
  version_type=linux
 
3228
  need_lib_prefix=no
 
3229
  need_version=no
 
3230
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3231
  soname_spec='${libname}${release}${shared_ext}$major'
 
3232
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
3233
  shlibpath_var=LD_LIBRARY_PATH
 
3234
  shlibpath_overrides_runpath=no
 
3235
 
 
3236
  # Some binutils ld are patched to set DT_RUNPATH
 
3237
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 
3238
    [lt_cv_shlibpath_overrides_runpath=no
 
3239
    save_LDFLAGS=$LDFLAGS
 
3240
    save_libdir=$libdir
 
3241
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
3242
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
3243
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
3244
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
3245
         [lt_cv_shlibpath_overrides_runpath=yes])])
 
3246
    LDFLAGS=$save_LDFLAGS
 
3247
    libdir=$save_libdir
 
3248
    ])
 
3249
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
3250
 
 
3251
  # This implies no fast_install, which is unacceptable.
 
3252
  # Some rework will be needed to allow for fast_install
 
3253
  # before this can be enabled.
 
3254
  hardcode_into_libs=yes
 
3255
 
 
3256
  # Append ld.so.conf contents to the search path
 
3257
  if test -f /etc/ld.so.conf; then
 
3258
    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;s/"//g;/^$/d' | tr '\n' ' '`
 
3259
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
3260
  fi
 
3261
 
 
3262
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
3263
  # powerpc, because MkLinux only supported shared libraries with the
 
3264
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
3265
  # most powerpc-linux boxes support dynamic linking these days and
 
3266
  # people can always --disable-shared, the test was removed, and we
 
3267
  # assume the GNU/Linux dynamic linker is in use.
 
3268
  dynamic_linker='GNU/Linux ld.so'
 
3269
  ;;
 
3270
 
 
3271
netbsdelf*-gnu)
 
3272
  version_type=linux
 
3273
  need_lib_prefix=no
 
3274
  need_version=no
 
3275
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3276
  soname_spec='${libname}${release}${shared_ext}$major'
 
3277
  shlibpath_var=LD_LIBRARY_PATH
 
3278
  shlibpath_overrides_runpath=no
 
3279
  hardcode_into_libs=yes
 
3280
  dynamic_linker='NetBSD ld.elf_so'
 
3281
  ;;
 
3282
 
 
3283
netbsd*)
 
3284
  version_type=sunos
 
3285
  need_lib_prefix=no
 
3286
  need_version=no
 
3287
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
3288
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
3289
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
3290
    dynamic_linker='NetBSD (a.out) ld.so'
 
3291
  else
 
3292
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3293
    soname_spec='${libname}${release}${shared_ext}$major'
 
3294
    dynamic_linker='NetBSD ld.elf_so'
 
3295
  fi
 
3296
  shlibpath_var=LD_LIBRARY_PATH
 
3297
  shlibpath_overrides_runpath=yes
 
3298
  hardcode_into_libs=yes
 
3299
  ;;
 
3300
 
 
3301
newsos6)
 
3302
  version_type=linux
 
3303
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3304
  shlibpath_var=LD_LIBRARY_PATH
 
3305
  shlibpath_overrides_runpath=yes
 
3306
  ;;
 
3307
 
 
3308
*nto* | *qnx*)
 
3309
  version_type=qnx
 
3310
  need_lib_prefix=no
 
3311
  need_version=no
 
3312
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3313
  soname_spec='${libname}${release}${shared_ext}$major'
 
3314
  shlibpath_var=LD_LIBRARY_PATH
 
3315
  shlibpath_overrides_runpath=no
 
3316
  hardcode_into_libs=yes
 
3317
  dynamic_linker='ldqnx.so'
 
3318
  ;;
 
3319
 
 
3320
openbsd*)
 
3321
  version_type=sunos
 
3322
  sys_lib_dlsearch_path_spec="/usr/lib"
 
3323
  need_lib_prefix=no
 
3324
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
3325
  case $host_os in
 
3326
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
3327
    *)                          need_version=no  ;;
 
3328
  esac
 
3329
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
3330
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
3331
  shlibpath_var=LD_LIBRARY_PATH
 
3332
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3333
    case $host_os in
 
3334
      openbsd2.[[89]] | openbsd2.[[89]].*)
 
3335
        shlibpath_overrides_runpath=no
 
3336
        ;;
 
3337
      *)
 
3338
        shlibpath_overrides_runpath=yes
 
3339
        ;;
 
3340
      esac
 
3341
  else
 
3342
    shlibpath_overrides_runpath=yes
 
3343
  fi
 
3344
  ;;
 
3345
 
 
3346
os2*)
 
3347
  libname_spec='$name'
 
3348
  shrext_cmds=".dll"
 
3349
  need_lib_prefix=no
 
3350
  library_names_spec='$libname${shared_ext} $libname.a'
 
3351
  dynamic_linker='OS/2 ld.exe'
 
3352
  shlibpath_var=LIBPATH
 
3353
  ;;
 
3354
 
 
3355
osf3* | osf4* | osf5*)
 
3356
  version_type=osf
 
3357
  need_lib_prefix=no
 
3358
  need_version=no
 
3359
  soname_spec='${libname}${release}${shared_ext}$major'
 
3360
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3361
  shlibpath_var=LD_LIBRARY_PATH
 
3362
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
3363
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
3364
  ;;
 
3365
 
 
3366
rdos*)
 
3367
  dynamic_linker=no
 
3368
  ;;
 
3369
 
 
3370
solaris*)
 
3371
  version_type=linux
 
3372
  need_lib_prefix=no
 
3373
  need_version=no
 
3374
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3375
  soname_spec='${libname}${release}${shared_ext}$major'
 
3376
  shlibpath_var=LD_LIBRARY_PATH
 
3377
  shlibpath_overrides_runpath=yes
 
3378
  hardcode_into_libs=yes
 
3379
  # ldd complains unless libraries are executable
 
3380
  postinstall_cmds='chmod +x $lib'
 
3381
  ;;
 
3382
 
 
3383
sunos4*)
 
3384
  version_type=sunos
 
3385
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
3386
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
3387
  shlibpath_var=LD_LIBRARY_PATH
 
3388
  shlibpath_overrides_runpath=yes
 
3389
  if test "$with_gnu_ld" = yes; then
 
3390
    need_lib_prefix=no
 
3391
  fi
 
3392
  need_version=yes
 
3393
  ;;
 
3394
 
 
3395
sysv4 | sysv4.3*)
 
3396
  version_type=linux
 
3397
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3398
  soname_spec='${libname}${release}${shared_ext}$major'
 
3399
  shlibpath_var=LD_LIBRARY_PATH
 
3400
  case $host_vendor in
 
3401
    sni)
 
3402
      shlibpath_overrides_runpath=no
 
3403
      need_lib_prefix=no
 
3404
      runpath_var=LD_RUN_PATH
 
3405
      ;;
 
3406
    siemens)
 
3407
      need_lib_prefix=no
 
3408
      ;;
 
3409
    motorola)
 
3410
      need_lib_prefix=no
 
3411
      need_version=no
 
3412
      shlibpath_overrides_runpath=no
 
3413
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
3414
      ;;
 
3415
  esac
 
3416
  ;;
 
3417
 
 
3418
sysv4*MP*)
 
3419
  if test -d /usr/nec ;then
 
3420
    version_type=linux
 
3421
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
3422
    soname_spec='$libname${shared_ext}.$major'
 
3423
    shlibpath_var=LD_LIBRARY_PATH
 
3424
  fi
 
3425
  ;;
 
3426
 
 
3427
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3428
  version_type=freebsd-elf
 
3429
  need_lib_prefix=no
 
3430
  need_version=no
 
3431
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
3432
  soname_spec='${libname}${release}${shared_ext}$major'
 
3433
  shlibpath_var=LD_LIBRARY_PATH
 
3434
  shlibpath_overrides_runpath=yes
 
3435
  hardcode_into_libs=yes
 
3436
  if test "$with_gnu_ld" = yes; then
 
3437
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
3438
  else
 
3439
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
3440
    case $host_os in
 
3441
      sco3.2v5*)
 
3442
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
3443
        ;;
 
3444
    esac
 
3445
  fi
 
3446
  sys_lib_dlsearch_path_spec='/usr/lib'
 
3447
  ;;
 
3448
 
 
3449
tpf*)
 
3450
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
3451
  version_type=linux
 
3452
  need_lib_prefix=no
 
3453
  need_version=no
 
3454
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3455
  shlibpath_var=LD_LIBRARY_PATH
 
3456
  shlibpath_overrides_runpath=no
 
3457
  hardcode_into_libs=yes
 
3458
  ;;
 
3459
 
 
3460
uts4*)
 
3461
  version_type=linux
 
3462
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3463
  soname_spec='${libname}${release}${shared_ext}$major'
 
3464
  shlibpath_var=LD_LIBRARY_PATH
 
3465
  ;;
 
3466
 
 
3467
*)
 
3468
  dynamic_linker=no
 
3469
  ;;
 
3470
esac
 
3471
AC_MSG_RESULT([$dynamic_linker])
 
3472
test "$dynamic_linker" = no && can_build_shared=no
 
3473
 
 
3474
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
3475
if test "$GCC" = yes; then
 
3476
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
3477
fi
 
3478
 
 
3479
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
3480
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
3481
fi
 
3482
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
3483
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
3484
fi
 
3485
 
 
3486
_LT_DECL([], [variables_saved_for_relink], [1],
 
3487
    [Variables whose values should be saved in libtool wrapper scripts and
 
3488
    restored at link time])
 
3489
_LT_DECL([], [need_lib_prefix], [0],
 
3490
    [Do we need the "lib" prefix for modules?])
 
3491
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 
3492
_LT_DECL([], [version_type], [0], [Library versioning type])
 
3493
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 
3494
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 
3495
_LT_DECL([], [shlibpath_overrides_runpath], [0],
 
3496
    [Is shlibpath searched before the hard-coded library search path?])
 
3497
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 
3498
_LT_DECL([], [library_names_spec], [1],
 
3499
    [[List of archive names.  First name is the real one, the rest are links.
 
3500
    The last name is the one that the linker finds with -lNAME]])
 
3501
_LT_DECL([], [soname_spec], [1],
 
3502
    [[The coded name of the library, if different from the real name]])
 
3503
_LT_DECL([], [install_override_mode], [1],
 
3504
    [Permission mode override for installation of shared libraries])
 
3505
_LT_DECL([], [postinstall_cmds], [2],
 
3506
    [Command to use after installation of a shared archive])
 
3507
_LT_DECL([], [postuninstall_cmds], [2],
 
3508
    [Command to use after uninstallation of a shared archive])
 
3509
_LT_DECL([], [finish_cmds], [2],
 
3510
    [Commands used to finish a libtool library installation in a directory])
 
3511
_LT_DECL([], [finish_eval], [1],
 
3512
    [[As "finish_cmds", except a single script fragment to be evaled but
 
3513
    not shown]])
 
3514
_LT_DECL([], [hardcode_into_libs], [0],
 
3515
    [Whether we should hardcode library paths into libraries])
 
3516
_LT_DECL([], [sys_lib_search_path_spec], [2],
 
3517
    [Compile-time system search path for libraries])
 
3518
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
 
3519
    [Run-time system search path for libraries])
 
3520
])# _LT_SYS_DYNAMIC_LINKER
 
3521
 
 
3522
 
 
3523
# _LT_PATH_TOOL_PREFIX(TOOL)
 
3524
# --------------------------
 
3525
# find a file program which can recognize shared library
 
3526
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 
3527
[m4_require([_LT_DECL_EGREP])dnl
 
3528
AC_MSG_CHECKING([for $1])
 
3529
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
 
3530
[case $MAGIC_CMD in
 
3531
[[\\/*] |  ?:[\\/]*])
 
3532
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
3533
  ;;
 
3534
*)
 
3535
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
3536
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3537
dnl $ac_dummy forces splitting on constant user-supplied paths.
 
3538
dnl POSIX.2 word splitting is done only on the output of word expansions,
 
3539
dnl not every word.  This closes a longstanding sh security hole.
 
3540
  ac_dummy="m4_if([$2], , $PATH, [$2])"
 
3541
  for ac_dir in $ac_dummy; do
 
3542
    IFS="$lt_save_ifs"
 
3543
    test -z "$ac_dir" && ac_dir=.
 
3544
    if test -f $ac_dir/$1; then
 
3545
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
 
3546
      if test -n "$file_magic_test_file"; then
 
3547
        case $deplibs_check_method in
 
3548
        "file_magic "*)
 
3549
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
3550
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
3551
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
3552
            $EGREP "$file_magic_regex" > /dev/null; then
 
3553
            :
 
3554
          else
 
3555
            cat <<_LT_EOF 1>&2
 
3556
 
 
3557
*** Warning: the command libtool uses to detect shared libraries,
 
3558
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
3559
*** The result is that libtool may fail to recognize shared libraries
 
3560
*** as such.  This will affect the creation of libtool libraries that
 
3561
*** depend on shared libraries, but programs linked with such libtool
 
3562
*** libraries will work regardless of this problem.  Nevertheless, you
 
3563
*** may want to report the problem to your system manager and/or to
 
3564
*** bug-libtool@gnu.org
 
3565
 
 
3566
_LT_EOF
 
3567
          fi ;;
 
3568
        esac
 
3569
      fi
 
3570
      break
 
3571
    fi
 
3572
  done
 
3573
  IFS="$lt_save_ifs"
 
3574
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
3575
  ;;
 
3576
esac])
 
3577
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
3578
if test -n "$MAGIC_CMD"; then
 
3579
  AC_MSG_RESULT($MAGIC_CMD)
 
3580
else
 
3581
  AC_MSG_RESULT(no)
 
3582
fi
 
3583
_LT_DECL([], [MAGIC_CMD], [0],
 
3584
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 
3585
])# _LT_PATH_TOOL_PREFIX
 
3586
 
 
3587
# Old name:
 
3588
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 
3589
dnl aclocal-1.4 backwards compatibility:
 
3590
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 
3591
 
 
3592
 
 
3593
# _LT_PATH_MAGIC
 
3594
# --------------
 
3595
# find a file program which can recognize a shared library
 
3596
m4_defun([_LT_PATH_MAGIC],
 
3597
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
3598
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
3599
  if test -n "$ac_tool_prefix"; then
 
3600
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
3601
  else
 
3602
    MAGIC_CMD=:
 
3603
  fi
 
3604
fi
 
3605
])# _LT_PATH_MAGIC
 
3606
 
 
3607
 
 
3608
# LT_PATH_LD
 
3609
# ----------
 
3610
# find the pathname to the GNU or non-GNU linker
 
3611
AC_DEFUN([LT_PATH_LD],
 
3612
[AC_REQUIRE([AC_PROG_CC])dnl
 
3613
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3614
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
3615
m4_require([_LT_DECL_SED])dnl
 
3616
m4_require([_LT_DECL_EGREP])dnl
 
3617
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
 
3618
 
 
3619
AC_ARG_WITH([gnu-ld],
 
3620
    [AS_HELP_STRING([--with-gnu-ld],
 
3621
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
 
3622
    [test "$withval" = no || with_gnu_ld=yes],
 
3623
    [with_gnu_ld=no])dnl
 
3624
 
 
3625
ac_prog=ld
 
3626
if test "$GCC" = yes; then
 
3627
  # Check if gcc -print-prog-name=ld gives a path.
 
3628
  AC_MSG_CHECKING([for ld used by $CC])
 
3629
  case $host in
 
3630
  *-*-mingw*)
 
3631
    # gcc leaves a trailing carriage return which upsets mingw
 
3632
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3633
  *)
 
3634
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3635
  esac
 
3636
  case $ac_prog in
 
3637
    # Accept absolute paths.
 
3638
    [[\\/]]* | ?:[[\\/]]*)
 
3639
      re_direlt='/[[^/]][[^/]]*/\.\./'
 
3640
      # Canonicalize the pathname of ld
 
3641
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
3642
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
3643
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
3644
      done
 
3645
      test -z "$LD" && LD="$ac_prog"
 
3646
      ;;
 
3647
  "")
 
3648
    # If it fails, then pretend we aren't using GCC.
 
3649
    ac_prog=ld
 
3650
    ;;
 
3651
  *)
 
3652
    # If it is relative, then search for the first ld in PATH.
 
3653
    with_gnu_ld=unknown
 
3654
    ;;
 
3655
  esac
 
3656
elif test "$with_gnu_ld" = yes; then
 
3657
  AC_MSG_CHECKING([for GNU ld])
 
3658
else
 
3659
  AC_MSG_CHECKING([for non-GNU ld])
 
3660
fi
 
3661
AC_CACHE_VAL(lt_cv_path_LD,
 
3662
[if test -z "$LD"; then
 
3663
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3664
  for ac_dir in $PATH; do
 
3665
    IFS="$lt_save_ifs"
 
3666
    test -z "$ac_dir" && ac_dir=.
 
3667
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3668
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3669
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3670
      # but apparently some variants of GNU ld only accept -v.
 
3671
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3672
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3673
      *GNU* | *'with BFD'*)
 
3674
        test "$with_gnu_ld" != no && break
 
3675
        ;;
 
3676
      *)
 
3677
        test "$with_gnu_ld" != yes && break
 
3678
        ;;
 
3679
      esac
 
3680
    fi
 
3681
  done
 
3682
  IFS="$lt_save_ifs"
 
3683
else
 
3684
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3685
fi])
 
3686
LD="$lt_cv_path_LD"
 
3687
if test -n "$LD"; then
 
3688
  AC_MSG_RESULT($LD)
 
3689
else
 
3690
  AC_MSG_RESULT(no)
 
3691
fi
 
3692
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 
3693
_LT_PATH_LD_GNU
 
3694
AC_SUBST([LD])
 
3695
 
 
3696
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 
3697
])# LT_PATH_LD
 
3698
 
 
3699
# Old names:
 
3700
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 
3701
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 
3702
dnl aclocal-1.4 backwards compatibility:
 
3703
dnl AC_DEFUN([AM_PROG_LD], [])
 
3704
dnl AC_DEFUN([AC_PROG_LD], [])
 
3705
 
 
3706
 
 
3707
# _LT_PATH_LD_GNU
 
3708
#- --------------
 
3709
m4_defun([_LT_PATH_LD_GNU],
 
3710
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
3711
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
 
3712
case `$LD -v 2>&1 </dev/null` in
 
3713
*GNU* | *'with BFD'*)
 
3714
  lt_cv_prog_gnu_ld=yes
 
3715
  ;;
 
3716
*)
 
3717
  lt_cv_prog_gnu_ld=no
 
3718
  ;;
 
3719
esac])
 
3720
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3721
])# _LT_PATH_LD_GNU
 
3722
 
 
3723
 
 
3724
# _LT_CMD_RELOAD
 
3725
# --------------
 
3726
# find reload flag for linker
 
3727
#   -- PORTME Some linkers may need a different reload flag.
 
3728
m4_defun([_LT_CMD_RELOAD],
 
3729
[AC_CACHE_CHECK([for $LD option to reload object files],
 
3730
  lt_cv_ld_reload_flag,
 
3731
  [lt_cv_ld_reload_flag='-r'])
 
3732
reload_flag=$lt_cv_ld_reload_flag
 
3733
case $reload_flag in
 
3734
"" | " "*) ;;
 
3735
*) reload_flag=" $reload_flag" ;;
 
3736
esac
 
3737
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3738
case $host_os in
 
3739
  cygwin* | mingw* | pw32* | cegcc*)
 
3740
    if test "$GCC" != yes; then
 
3741
      reload_cmds=false
 
3742
    fi
 
3743
    ;;
 
3744
  darwin*)
 
3745
    if test "$GCC" = yes; then
 
3746
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
3747
    else
 
3748
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3749
    fi
 
3750
    ;;
 
3751
esac
 
3752
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
3753
_LT_TAGDECL([], [reload_cmds], [2])dnl
 
3754
])# _LT_CMD_RELOAD
 
3755
 
 
3756
 
 
3757
# _LT_CHECK_MAGIC_METHOD
 
3758
# ----------------------
 
3759
# how to check for library dependencies
 
3760
#  -- PORTME fill in with the dynamic library characteristics
 
3761
m4_defun([_LT_CHECK_MAGIC_METHOD],
 
3762
[m4_require([_LT_DECL_EGREP])
 
3763
m4_require([_LT_DECL_OBJDUMP])
 
3764
AC_CACHE_CHECK([how to recognize dependent libraries],
 
3765
lt_cv_deplibs_check_method,
 
3766
[lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3767
lt_cv_file_magic_test_file=
 
3768
lt_cv_deplibs_check_method='unknown'
 
3769
# Need to set the preceding variable on all platforms that support
 
3770
# interlibrary dependencies.
 
3771
# 'none' -- dependencies not supported.
 
3772
# `unknown' -- same as none, but documents that we really don't know.
 
3773
# 'pass_all' -- all dependencies passed with no checks.
 
3774
# 'test_compile' -- check by making test program.
 
3775
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3776
# which responds to the $file_magic_cmd with a given extended regex.
 
3777
# If you have `file' or equivalent on your system and you're not sure
 
3778
# whether `pass_all' will *always* work, you probably want this one.
 
3779
 
 
3780
case $host_os in
 
3781
aix[[4-9]]*)
 
3782
  lt_cv_deplibs_check_method=pass_all
 
3783
  ;;
 
3784
 
 
3785
beos*)
 
3786
  lt_cv_deplibs_check_method=pass_all
 
3787
  ;;
 
3788
 
 
3789
bsdi[[45]]*)
 
3790
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
 
3791
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3792
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3793
  ;;
 
3794
 
 
3795
cygwin*)
 
3796
  # func_win32_libid is a shell function defined in ltmain.sh
 
3797
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3798
  lt_cv_file_magic_cmd='func_win32_libid'
 
3799
  ;;
 
3800
 
 
3801
mingw* | pw32*)
 
3802
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3803
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
3804
  # unless we find 'file', for example because we are cross-compiling.
 
3805
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
3806
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
3807
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3808
    lt_cv_file_magic_cmd='func_win32_libid'
 
3809
  else
 
3810
    # Keep this pattern in sync with the one in func_win32_libid.
 
3811
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
3812
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3813
  fi
 
3814
  ;;
 
3815
 
 
3816
cegcc*)
 
3817
  # use the weaker test based on 'objdump'. See mingw*.
 
3818
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
3819
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3820
  ;;
 
3821
 
 
3822
darwin* | rhapsody*)
 
3823
  lt_cv_deplibs_check_method=pass_all
 
3824
  ;;
 
3825
 
 
3826
freebsd* | dragonfly*)
 
3827
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
3828
    case $host_cpu in
 
3829
    i*86 )
 
3830
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3831
      # Let's accept both of them until this is cleared up.
 
3832
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
 
3833
      lt_cv_file_magic_cmd=/usr/bin/file
 
3834
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3835
      ;;
 
3836
    esac
 
3837
  else
 
3838
    lt_cv_deplibs_check_method=pass_all
 
3839
  fi
 
3840
  ;;
 
3841
 
 
3842
gnu*)
 
3843
  lt_cv_deplibs_check_method=pass_all
 
3844
  ;;
 
3845
 
 
3846
haiku*)
 
3847
  lt_cv_deplibs_check_method=pass_all
 
3848
  ;;
 
3849
 
 
3850
hpux10.20* | hpux11*)
 
3851
  lt_cv_file_magic_cmd=/usr/bin/file
 
3852
  case $host_cpu in
 
3853
  ia64*)
 
3854
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
 
3855
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3856
    ;;
 
3857
  hppa*64*)
 
3858
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
 
3859
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3860
    ;;
 
3861
  *)
 
3862
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
 
3863
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3864
    ;;
 
3865
  esac
 
3866
  ;;
 
3867
 
 
3868
interix[[3-9]]*)
 
3869
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
3870
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
3871
  ;;
 
3872
 
 
3873
irix5* | irix6* | nonstopux*)
 
3874
  case $LD in
 
3875
  *-32|*"-32 ") libmagic=32-bit;;
 
3876
  *-n32|*"-n32 ") libmagic=N32;;
 
3877
  *-64|*"-64 ") libmagic=64-bit;;
 
3878
  *) libmagic=never-match;;
 
3879
  esac
 
3880
  lt_cv_deplibs_check_method=pass_all
 
3881
  ;;
 
3882
 
 
3883
# This must be Linux ELF.
 
3884
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
3885
  lt_cv_deplibs_check_method=pass_all
 
3886
  ;;
 
3887
 
 
3888
netbsd* | netbsdelf*-gnu)
 
3889
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
3890
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 
3891
  else
 
3892
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
 
3893
  fi
 
3894
  ;;
 
3895
 
 
3896
newos6*)
 
3897
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
 
3898
  lt_cv_file_magic_cmd=/usr/bin/file
 
3899
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3900
  ;;
 
3901
 
 
3902
*nto* | *qnx*)
 
3903
  lt_cv_deplibs_check_method=pass_all
 
3904
  ;;
 
3905
 
 
3906
openbsd*)
 
3907
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3908
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
 
3909
  else
 
3910
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 
3911
  fi
 
3912
  ;;
 
3913
 
 
3914
osf3* | osf4* | osf5*)
 
3915
  lt_cv_deplibs_check_method=pass_all
 
3916
  ;;
 
3917
 
 
3918
rdos*)
 
3919
  lt_cv_deplibs_check_method=pass_all
 
3920
  ;;
 
3921
 
 
3922
solaris*)
 
3923
  lt_cv_deplibs_check_method=pass_all
 
3924
  ;;
 
3925
 
 
3926
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3927
  lt_cv_deplibs_check_method=pass_all
 
3928
  ;;
 
3929
 
 
3930
sysv4 | sysv4.3*)
 
3931
  case $host_vendor in
 
3932
  motorola)
 
3933
    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]]'
 
3934
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3935
    ;;
 
3936
  ncr)
 
3937
    lt_cv_deplibs_check_method=pass_all
 
3938
    ;;
 
3939
  sequent)
 
3940
    lt_cv_file_magic_cmd='/bin/file'
 
3941
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
 
3942
    ;;
 
3943
  sni)
 
3944
    lt_cv_file_magic_cmd='/bin/file'
 
3945
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
 
3946
    lt_cv_file_magic_test_file=/lib/libc.so
 
3947
    ;;
 
3948
  siemens)
 
3949
    lt_cv_deplibs_check_method=pass_all
 
3950
    ;;
 
3951
  pc)
 
3952
    lt_cv_deplibs_check_method=pass_all
 
3953
    ;;
 
3954
  esac
 
3955
  ;;
 
3956
 
 
3957
tpf*)
 
3958
  lt_cv_deplibs_check_method=pass_all
 
3959
  ;;
 
3960
esac
 
3961
])
 
3962
 
 
3963
file_magic_glob=
 
3964
want_nocaseglob=no
 
3965
if test "$build" = "$host"; then
 
3966
  case $host_os in
 
3967
  mingw* | pw32*)
 
3968
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
3969
      want_nocaseglob=yes
 
3970
    else
 
3971
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 
3972
    fi
 
3973
    ;;
 
3974
  esac
 
3975
fi
 
3976
 
 
3977
file_magic_cmd=$lt_cv_file_magic_cmd
 
3978
deplibs_check_method=$lt_cv_deplibs_check_method
 
3979
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3980
 
 
3981
_LT_DECL([], [deplibs_check_method], [1],
 
3982
    [Method to check whether dependent libraries are shared objects])
 
3983
_LT_DECL([], [file_magic_cmd], [1],
 
3984
    [Command to use when deplibs_check_method = "file_magic"])
 
3985
_LT_DECL([], [file_magic_glob], [1],
 
3986
    [How to find potential files when deplibs_check_method = "file_magic"])
 
3987
_LT_DECL([], [want_nocaseglob], [1],
 
3988
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
 
3989
])# _LT_CHECK_MAGIC_METHOD
 
3990
 
 
3991
 
 
3992
# LT_PATH_NM
 
3993
# ----------
 
3994
# find the pathname to a BSD- or MS-compatible name lister
 
3995
AC_DEFUN([LT_PATH_NM],
 
3996
[AC_REQUIRE([AC_PROG_CC])dnl
 
3997
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
 
3998
[if test -n "$NM"; then
 
3999
  # Let the user override the test.
 
4000
  lt_cv_path_NM="$NM"
 
4001
else
 
4002
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4003
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4004
    lt_nm_to_check="$lt_nm_to_check nm"
 
4005
  fi
 
4006
  for lt_tmp_nm in $lt_nm_to_check; do
 
4007
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4008
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4009
      IFS="$lt_save_ifs"
 
4010
      test -z "$ac_dir" && ac_dir=.
 
4011
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4012
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4013
        # Check to see if the nm accepts a BSD-compat flag.
 
4014
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4015
        #   nm: unknown option "B" ignored
 
4016
        # Tru64's nm complains that /dev/null is an invalid object file
 
4017
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4018
        */dev/null* | *'Invalid file or object type'*)
 
4019
          lt_cv_path_NM="$tmp_nm -B"
 
4020
          break
 
4021
          ;;
 
4022
        *)
 
4023
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4024
          */dev/null*)
 
4025
            lt_cv_path_NM="$tmp_nm -p"
 
4026
            break
 
4027
            ;;
 
4028
          *)
 
4029
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4030
            continue # so that we can try to find one that supports BSD flags
 
4031
            ;;
 
4032
          esac
 
4033
          ;;
 
4034
        esac
 
4035
      fi
 
4036
    done
 
4037
    IFS="$lt_save_ifs"
 
4038
  done
 
4039
  : ${lt_cv_path_NM=no}
 
4040
fi])
 
4041
if test "$lt_cv_path_NM" != "no"; then
 
4042
  NM="$lt_cv_path_NM"
 
4043
else
 
4044
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4045
  if test -n "$DUMPBIN"; then :
 
4046
    # Let the user override the test.
 
4047
  else
 
4048
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 
4049
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
4050
    *COFF*)
 
4051
      DUMPBIN="$DUMPBIN -symbols"
 
4052
      ;;
 
4053
    *)
 
4054
      DUMPBIN=:
 
4055
      ;;
 
4056
    esac
 
4057
  fi
 
4058
  AC_SUBST([DUMPBIN])
 
4059
  if test "$DUMPBIN" != ":"; then
 
4060
    NM="$DUMPBIN"
 
4061
  fi
 
4062
fi
 
4063
test -z "$NM" && NM=nm
 
4064
AC_SUBST([NM])
 
4065
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 
4066
 
 
4067
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 
4068
  [lt_cv_nm_interface="BSD nm"
 
4069
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4070
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
4071
  (eval "$ac_compile" 2>conftest.err)
 
4072
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4073
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
4074
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4075
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4076
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
 
4077
  cat conftest.out >&AS_MESSAGE_LOG_FD
 
4078
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4079
    lt_cv_nm_interface="MS dumpbin"
 
4080
  fi
 
4081
  rm -f conftest*])
 
4082
])# LT_PATH_NM
 
4083
 
 
4084
# Old names:
 
4085
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 
4086
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 
4087
dnl aclocal-1.4 backwards compatibility:
 
4088
dnl AC_DEFUN([AM_PROG_NM], [])
 
4089
dnl AC_DEFUN([AC_PROG_NM], [])
 
4090
 
 
4091
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4092
# --------------------------------
 
4093
# how to determine the name of the shared library
 
4094
# associated with a specific link library.
 
4095
#  -- PORTME fill in with the dynamic library characteristics
 
4096
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 
4097
[m4_require([_LT_DECL_EGREP])
 
4098
m4_require([_LT_DECL_OBJDUMP])
 
4099
m4_require([_LT_DECL_DLLTOOL])
 
4100
AC_CACHE_CHECK([how to associate runtime and link libraries],
 
4101
lt_cv_sharedlib_from_linklib_cmd,
 
4102
[lt_cv_sharedlib_from_linklib_cmd='unknown'
 
4103
 
 
4104
case $host_os in
 
4105
cygwin* | mingw* | pw32* | cegcc*)
 
4106
  # two different shell functions defined in ltmain.sh
 
4107
  # decide which to use based on capabilities of $DLLTOOL
 
4108
  case `$DLLTOOL --help 2>&1` in
 
4109
  *--identify-strict*)
 
4110
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
4111
    ;;
 
4112
  *)
 
4113
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
4114
    ;;
 
4115
  esac
 
4116
  ;;
 
4117
*)
 
4118
  # fallback: assume linklib IS sharedlib
 
4119
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
4120
  ;;
 
4121
esac
 
4122
])
 
4123
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
4124
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
4125
 
 
4126
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 
4127
    [Command to associate shared and link libraries])
 
4128
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4129
 
 
4130
 
 
4131
# _LT_PATH_MANIFEST_TOOL
 
4132
# ----------------------
 
4133
# locate the manifest tool
 
4134
m4_defun([_LT_PATH_MANIFEST_TOOL],
 
4135
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 
4136
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
4137
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 
4138
  [lt_cv_path_mainfest_tool=no
 
4139
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 
4140
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
4141
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4142
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
4143
    lt_cv_path_mainfest_tool=yes
 
4144
  fi
 
4145
  rm -f conftest*])
 
4146
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
4147
  MANIFEST_TOOL=:
 
4148
fi
 
4149
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 
4150
])# _LT_PATH_MANIFEST_TOOL
 
4151
 
 
4152
 
 
4153
# LT_LIB_M
 
4154
# --------
 
4155
# check for math library
 
4156
AC_DEFUN([LT_LIB_M],
 
4157
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
4158
LIBM=
 
4159
case $host in
 
4160
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
 
4161
  # These system don't have libm, or don't need it
 
4162
  ;;
 
4163
*-ncr-sysv4.3*)
 
4164
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
 
4165
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
 
4166
  ;;
 
4167
*)
 
4168
  AC_CHECK_LIB(m, cos, LIBM="-lm")
 
4169
  ;;
 
4170
esac
 
4171
AC_SUBST([LIBM])
 
4172
])# LT_LIB_M
 
4173
 
 
4174
# Old name:
 
4175
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 
4176
dnl aclocal-1.4 backwards compatibility:
 
4177
dnl AC_DEFUN([AC_CHECK_LIBM], [])
 
4178
 
 
4179
 
 
4180
# _LT_COMPILER_NO_RTTI([TAGNAME])
 
4181
# -------------------------------
 
4182
m4_defun([_LT_COMPILER_NO_RTTI],
 
4183
[m4_require([_LT_TAG_COMPILER])dnl
 
4184
 
 
4185
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
4186
 
 
4187
if test "$GCC" = yes; then
 
4188
  case $cc_basename in
 
4189
  nvcc*)
 
4190
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 
4191
  *)
 
4192
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 
4193
  esac
 
4194
 
 
4195
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
4196
    lt_cv_prog_compiler_rtti_exceptions,
 
4197
    [-fno-rtti -fno-exceptions], [],
 
4198
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
4199
fi
 
4200
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 
4201
        [Compiler flag to turn off builtin functions])
 
4202
])# _LT_COMPILER_NO_RTTI
 
4203
 
 
4204
 
 
4205
# _LT_CMD_GLOBAL_SYMBOLS
 
4206
# ----------------------
 
4207
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 
4208
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
4209
AC_REQUIRE([AC_PROG_CC])dnl
 
4210
AC_REQUIRE([AC_PROG_AWK])dnl
 
4211
AC_REQUIRE([LT_PATH_NM])dnl
 
4212
AC_REQUIRE([LT_PATH_LD])dnl
 
4213
m4_require([_LT_DECL_SED])dnl
 
4214
m4_require([_LT_DECL_EGREP])dnl
 
4215
m4_require([_LT_TAG_COMPILER])dnl
 
4216
 
 
4217
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
4218
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
 
4219
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
 
4220
[
 
4221
# These are sane defaults that work on at least a few old systems.
 
4222
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
4223
 
 
4224
# Character class describing NM global symbol codes.
 
4225
symcode='[[BCDEGRST]]'
 
4226
 
 
4227
# Regexp to match symbols that can be accessed directly from C.
 
4228
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
 
4229
 
 
4230
# Define system-specific variables.
 
4231
case $host_os in
 
4232
aix*)
 
4233
  symcode='[[BCDT]]'
 
4234
  ;;
 
4235
cygwin* | mingw* | pw32* | cegcc*)
 
4236
  symcode='[[ABCDGISTW]]'
 
4237
  ;;
 
4238
hpux*)
 
4239
  if test "$host_cpu" = ia64; then
 
4240
    symcode='[[ABCDEGRST]]'
 
4241
  fi
 
4242
  ;;
 
4243
irix* | nonstopux*)
 
4244
  symcode='[[BCDEGRST]]'
 
4245
  ;;
 
4246
osf*)
 
4247
  symcode='[[BCDEGQRST]]'
 
4248
  ;;
 
4249
solaris*)
 
4250
  symcode='[[BDRT]]'
 
4251
  ;;
 
4252
sco3.2v5*)
 
4253
  symcode='[[DT]]'
 
4254
  ;;
 
4255
sysv4.2uw2*)
 
4256
  symcode='[[DT]]'
 
4257
  ;;
 
4258
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
4259
  symcode='[[ABDT]]'
 
4260
  ;;
 
4261
sysv4)
 
4262
  symcode='[[DFNSTU]]'
 
4263
  ;;
 
4264
esac
 
4265
 
 
4266
# If we're using GNU nm, then use its standard symbol codes.
 
4267
case `$NM -V 2>&1` in
 
4268
*GNU* | *'with BFD'*)
 
4269
  symcode='[[ABCDGIRSTW]]' ;;
 
4270
esac
 
4271
 
 
4272
# Transform an extracted symbol line into a proper C declaration.
 
4273
# Some systems (esp. on ia64) link data and code symbols differently,
 
4274
# so use this general approach.
 
4275
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4276
 
 
4277
# Transform an extracted symbol line into symbol name and symbol address
 
4278
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4279
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'"
 
4280
 
 
4281
# Handle CRLF in mingw tool chain
 
4282
opt_cr=
 
4283
case $build_os in
 
4284
mingw*)
 
4285
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
4286
  ;;
 
4287
esac
 
4288
 
 
4289
# Try without a prefix underscore, then with it.
 
4290
for ac_symprfx in "" "_"; do
 
4291
 
 
4292
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
4293
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
4294
 
 
4295
  # Write the raw and C identifiers.
 
4296
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4297
    # Fake it for dumpbin and say T for any non-static function
 
4298
    # and D for any global variable.
 
4299
    # Also find C++ and __fastcall symbols from MSVC++,
 
4300
    # which start with @ or ?.
 
4301
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
 
4302
"     {last_section=section; section=\$ 3};"\
 
4303
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
4304
"     \$ 0!~/External *\|/{next};"\
 
4305
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
4306
"     {if(hide[section]) next};"\
 
4307
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
4308
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
4309
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
4310
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
4311
"     ' prfx=^$ac_symprfx]"
 
4312
  else
 
4313
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4314
  fi
 
4315
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
4316
 
 
4317
  # Check to see that the pipe works correctly.
 
4318
  pipe_works=no
 
4319
 
 
4320
  rm -f conftest*
 
4321
  cat > conftest.$ac_ext <<_LT_EOF
 
4322
#ifdef __cplusplus
 
4323
extern "C" {
 
4324
#endif
 
4325
char nm_test_var;
 
4326
void nm_test_func(void);
 
4327
void nm_test_func(void){}
 
4328
#ifdef __cplusplus
 
4329
}
 
4330
#endif
 
4331
int main(){nm_test_var='a';nm_test_func();return(0);}
 
4332
_LT_EOF
 
4333
 
 
4334
  if AC_TRY_EVAL(ac_compile); then
 
4335
    # Now try to grab the symbols.
 
4336
    nlist=conftest.nm
 
4337
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
 
4338
      # Try sorting and uniquifying the output.
 
4339
      if sort "$nlist" | uniq > "$nlist"T; then
 
4340
        mv -f "$nlist"T "$nlist"
 
4341
      else
 
4342
        rm -f "$nlist"T
 
4343
      fi
 
4344
 
 
4345
      # Make sure that we snagged all the symbols we need.
 
4346
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
4347
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
4348
          cat <<_LT_EOF > conftest.$ac_ext
 
4349
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
4350
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
4351
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
4352
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
4353
# define LT@&t@_DLSYM_CONST
 
4354
#elif defined(__osf__)
 
4355
/* This system does not cope well with relocations in const data.  */
 
4356
# define LT@&t@_DLSYM_CONST
 
4357
#else
 
4358
# define LT@&t@_DLSYM_CONST const
 
4359
#endif
 
4360
 
 
4361
#ifdef __cplusplus
 
4362
extern "C" {
 
4363
#endif
 
4364
 
 
4365
_LT_EOF
 
4366
          # Now generate the symbol file.
 
4367
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
4368
 
 
4369
          cat <<_LT_EOF >> conftest.$ac_ext
 
4370
 
 
4371
/* The mapping between symbol names and symbols.  */
 
4372
LT@&t@_DLSYM_CONST struct {
 
4373
  const char *name;
 
4374
  void       *address;
 
4375
}
 
4376
lt__PROGRAM__LTX_preloaded_symbols[[]] =
 
4377
{
 
4378
  { "@PROGRAM@", (void *) 0 },
 
4379
_LT_EOF
 
4380
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
4381
          cat <<\_LT_EOF >> conftest.$ac_ext
 
4382
  {0, (void *) 0}
 
4383
};
 
4384
 
 
4385
/* This works around a problem in FreeBSD linker */
 
4386
#ifdef FREEBSD_WORKAROUND
 
4387
static const void *lt_preloaded_setup() {
 
4388
  return lt__PROGRAM__LTX_preloaded_symbols;
 
4389
}
 
4390
#endif
 
4391
 
 
4392
#ifdef __cplusplus
 
4393
}
 
4394
#endif
 
4395
_LT_EOF
 
4396
          # Now try linking the two files.
 
4397
          mv conftest.$ac_objext conftstm.$ac_objext
 
4398
          lt_globsym_save_LIBS=$LIBS
 
4399
          lt_globsym_save_CFLAGS=$CFLAGS
 
4400
          LIBS="conftstm.$ac_objext"
 
4401
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
4402
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
 
4403
            pipe_works=yes
 
4404
          fi
 
4405
          LIBS=$lt_globsym_save_LIBS
 
4406
          CFLAGS=$lt_globsym_save_CFLAGS
 
4407
        else
 
4408
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
 
4409
        fi
 
4410
      else
 
4411
        echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
 
4412
      fi
 
4413
    else
 
4414
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
 
4415
    fi
 
4416
  else
 
4417
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
 
4418
    cat conftest.$ac_ext >&5
 
4419
  fi
 
4420
  rm -rf conftest* conftst*
 
4421
 
 
4422
  # Do not use the global_symbol_pipe unless it works.
 
4423
  if test "$pipe_works" = yes; then
 
4424
    break
 
4425
  else
 
4426
    lt_cv_sys_global_symbol_pipe=
 
4427
  fi
 
4428
done
 
4429
])
 
4430
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
4431
  lt_cv_sys_global_symbol_to_cdecl=
 
4432
fi
 
4433
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
4434
  AC_MSG_RESULT(failed)
 
4435
else
 
4436
  AC_MSG_RESULT(ok)
 
4437
fi
 
4438
 
 
4439
# Response file support.
 
4440
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4441
  nm_file_list_spec='@'
 
4442
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 
4443
  nm_file_list_spec='@'
 
4444
fi
 
4445
 
 
4446
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 
4447
    [Take the output of nm and produce a listing of raw symbols and C names])
 
4448
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 
4449
    [Transform the output of nm in a proper C declaration])
 
4450
_LT_DECL([global_symbol_to_c_name_address],
 
4451
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
 
4452
    [Transform the output of nm in a C name address pair])
 
4453
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 
4454
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 
4455
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
4456
_LT_DECL([], [nm_file_list_spec], [1],
 
4457
    [Specify filename containing input files for $NM])
 
4458
]) # _LT_CMD_GLOBAL_SYMBOLS
 
4459
 
 
4460
 
 
4461
# _LT_COMPILER_PIC([TAGNAME])
 
4462
# ---------------------------
 
4463
m4_defun([_LT_COMPILER_PIC],
 
4464
[m4_require([_LT_TAG_COMPILER])dnl
 
4465
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
 
4466
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4467
_LT_TAGVAR(lt_prog_compiler_static, $1)=
 
4468
 
 
4469
m4_if([$1], [CXX], [
 
4470
  # C++ specific cases for pic, static, wl, etc.
 
4471
  if test "$GXX" = yes; then
 
4472
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4473
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4474
 
 
4475
    case $host_os in
 
4476
    aix*)
 
4477
      # All AIX code is PIC.
 
4478
      if test "$host_cpu" = ia64; then
 
4479
        # AIX 5 now supports IA64 processor
 
4480
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4481
      fi
 
4482
      ;;
 
4483
 
 
4484
    amigaos*)
 
4485
      case $host_cpu in
 
4486
      powerpc)
 
4487
            # see comment about AmigaOS4 .so support
 
4488
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4489
        ;;
 
4490
      m68k)
 
4491
            # FIXME: we need at least 68020 code to build shared libraries, but
 
4492
            # adding the `-m68020' flag to GCC prevents building anything better,
 
4493
            # like `-m68040'.
 
4494
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4495
        ;;
 
4496
      esac
 
4497
      ;;
 
4498
 
 
4499
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4500
      # PIC is the default for these OSes.
 
4501
      ;;
 
4502
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
4503
      # This hack is so that the source file can tell whether it is being
 
4504
      # built for inclusion in a dll (and should export symbols for example).
 
4505
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
4506
      # (--disable-auto-import) libraries
 
4507
      m4_if([$1], [GCJ], [],
 
4508
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4509
      ;;
 
4510
    darwin* | rhapsody*)
 
4511
      # PIC is the default on this platform
 
4512
      # Common symbols not allowed in MH_DYLIB files
 
4513
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4514
      ;;
 
4515
    *djgpp*)
 
4516
      # DJGPP does not support shared libraries at all
 
4517
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4518
      ;;
 
4519
    haiku*)
 
4520
      # PIC is the default for Haiku.
 
4521
      # The "-static" flag exists, but is broken.
 
4522
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
4523
      ;;
 
4524
    interix[[3-9]]*)
 
4525
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
4526
      # Instead, we relocate shared libraries at runtime.
 
4527
      ;;
 
4528
    sysv4*MP*)
 
4529
      if test -d /usr/nec; then
 
4530
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
4531
      fi
 
4532
      ;;
 
4533
    hpux*)
 
4534
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
4535
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
4536
      # sets the default TLS model and affects inlining.
 
4537
      case $host_cpu in
 
4538
      hppa*64*)
 
4539
        ;;
 
4540
      *)
 
4541
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4542
        ;;
 
4543
      esac
 
4544
      ;;
 
4545
    *qnx* | *nto*)
 
4546
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4547
      # it will coredump.
 
4548
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4549
      ;;
 
4550
    *)
 
4551
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4552
      ;;
 
4553
    esac
 
4554
  else
 
4555
    case $host_os in
 
4556
      aix[[4-9]]*)
 
4557
        # All AIX code is PIC.
 
4558
        if test "$host_cpu" = ia64; then
 
4559
          # AIX 5 now supports IA64 processor
 
4560
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4561
        else
 
4562
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
4563
        fi
 
4564
        ;;
 
4565
      chorus*)
 
4566
        case $cc_basename in
 
4567
        cxch68*)
 
4568
          # Green Hills C++ Compiler
 
4569
          # _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"
 
4570
          ;;
 
4571
        esac
 
4572
        ;;
 
4573
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
4574
        # This hack is so that the source file can tell whether it is being
 
4575
        # built for inclusion in a dll (and should export symbols for example).
 
4576
        m4_if([$1], [GCJ], [],
 
4577
          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4578
        ;;
 
4579
      dgux*)
 
4580
        case $cc_basename in
 
4581
          ec++*)
 
4582
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4583
            ;;
 
4584
          ghcx*)
 
4585
            # Green Hills C++ Compiler
 
4586
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4587
            ;;
 
4588
          *)
 
4589
            ;;
 
4590
        esac
 
4591
        ;;
 
4592
      freebsd* | dragonfly*)
 
4593
        # FreeBSD uses GNU C++
 
4594
        ;;
 
4595
      hpux9* | hpux10* | hpux11*)
 
4596
        case $cc_basename in
 
4597
          CC*)
 
4598
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4599
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4600
            if test "$host_cpu" != ia64; then
 
4601
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4602
            fi
 
4603
            ;;
 
4604
          aCC*)
 
4605
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4606
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4607
            case $host_cpu in
 
4608
            hppa*64*|ia64*)
 
4609
              # +Z the default
 
4610
              ;;
 
4611
            *)
 
4612
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4613
              ;;
 
4614
            esac
 
4615
            ;;
 
4616
          *)
 
4617
            ;;
 
4618
        esac
 
4619
        ;;
 
4620
      interix*)
 
4621
        # This is c89, which is MS Visual C++ (no shared libs)
 
4622
        # Anyone wants to do a port?
 
4623
        ;;
 
4624
      irix5* | irix6* | nonstopux*)
 
4625
        case $cc_basename in
 
4626
          CC*)
 
4627
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4628
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4629
            # CC pic flag -KPIC is the default.
 
4630
            ;;
 
4631
          *)
 
4632
            ;;
 
4633
        esac
 
4634
        ;;
 
4635
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
4636
        case $cc_basename in
 
4637
          KCC*)
 
4638
            # KAI C++ Compiler
 
4639
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4640
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4641
            ;;
 
4642
          ecpc* )
 
4643
            # old Intel C++ for x86_64 which still supported -KPIC.
 
4644
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4645
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4646
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4647
            ;;
 
4648
          icpc* )
 
4649
            # Intel C++, used to be incompatible with GCC.
 
4650
            # ICC 10 doesn't accept -KPIC any more.
 
4651
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4652
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4653
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4654
            ;;
 
4655
          pgCC* | pgcpp*)
 
4656
            # Portland Group C++ compiler
 
4657
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4658
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4659
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4660
            ;;
 
4661
          cxx*)
 
4662
            # Compaq C++
 
4663
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
4664
            # Linux and Compaq Tru64 Unix objects are PIC.
 
4665
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4666
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4667
            ;;
 
4668
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 
4669
            # IBM XL 8.0, 9.0 on PPC and BlueGene
 
4670
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4671
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
4672
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
4673
            ;;
 
4674
          *)
 
4675
            case `$CC -V 2>&1 | sed 5q` in
 
4676
            *Sun\ C*)
 
4677
              # Sun C++ 5.9
 
4678
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4679
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4680
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4681
              ;;
 
4682
            esac
 
4683
            ;;
 
4684
        esac
 
4685
        ;;
 
4686
      lynxos*)
 
4687
        ;;
 
4688
      m88k*)
 
4689
        ;;
 
4690
      mvs*)
 
4691
        case $cc_basename in
 
4692
          cxx*)
 
4693
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
4694
            ;;
 
4695
          *)
 
4696
            ;;
 
4697
        esac
 
4698
        ;;
 
4699
      netbsd* | netbsdelf*-gnu)
 
4700
        ;;
 
4701
      *qnx* | *nto*)
 
4702
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4703
        # it will coredump.
 
4704
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4705
        ;;
 
4706
      osf3* | osf4* | osf5*)
 
4707
        case $cc_basename in
 
4708
          KCC*)
 
4709
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4710
            ;;
 
4711
          RCC*)
 
4712
            # Rational C++ 2.4.1
 
4713
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4714
            ;;
 
4715
          cxx*)
 
4716
            # Digital/Compaq C++
 
4717
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4718
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
4719
            # Linux and Compaq Tru64 Unix objects are PIC.
 
4720
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4721
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4722
            ;;
 
4723
          *)
 
4724
            ;;
 
4725
        esac
 
4726
        ;;
 
4727
      psos*)
 
4728
        ;;
 
4729
      solaris*)
 
4730
        case $cc_basename in
 
4731
          CC* | sunCC*)
 
4732
            # Sun C++ 4.2, 5.x and Centerline C++
 
4733
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4734
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4735
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4736
            ;;
 
4737
          gcx*)
 
4738
            # Green Hills C++ Compiler
 
4739
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4740
            ;;
 
4741
          *)
 
4742
            ;;
 
4743
        esac
 
4744
        ;;
 
4745
      sunos4*)
 
4746
        case $cc_basename in
 
4747
          CC*)
 
4748
            # Sun C++ 4.x
 
4749
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4750
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4751
            ;;
 
4752
          lcc*)
 
4753
            # Lucid
 
4754
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4755
            ;;
 
4756
          *)
 
4757
            ;;
 
4758
        esac
 
4759
        ;;
 
4760
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
4761
        case $cc_basename in
 
4762
          CC*)
 
4763
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4764
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4765
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4766
            ;;
 
4767
        esac
 
4768
        ;;
 
4769
      tandem*)
 
4770
        case $cc_basename in
 
4771
          NCC*)
 
4772
            # NonStop-UX NCC 3.20
 
4773
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4774
            ;;
 
4775
          *)
 
4776
            ;;
 
4777
        esac
 
4778
        ;;
 
4779
      vxworks*)
 
4780
        ;;
 
4781
      *)
 
4782
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4783
        ;;
 
4784
    esac
 
4785
  fi
 
4786
],
 
4787
[
 
4788
  if test "$GCC" = yes; then
 
4789
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4790
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4791
 
 
4792
    case $host_os in
 
4793
      aix*)
 
4794
      # All AIX code is PIC.
 
4795
      if test "$host_cpu" = ia64; then
 
4796
        # AIX 5 now supports IA64 processor
 
4797
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4798
      fi
 
4799
      ;;
 
4800
 
 
4801
    amigaos*)
 
4802
      case $host_cpu in
 
4803
      powerpc)
 
4804
            # see comment about AmigaOS4 .so support
 
4805
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4806
        ;;
 
4807
      m68k)
 
4808
            # FIXME: we need at least 68020 code to build shared libraries, but
 
4809
            # adding the `-m68020' flag to GCC prevents building anything better,
 
4810
            # like `-m68040'.
 
4811
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4812
        ;;
 
4813
      esac
 
4814
      ;;
 
4815
 
 
4816
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4817
      # PIC is the default for these OSes.
 
4818
      ;;
 
4819
 
 
4820
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
4821
      # This hack is so that the source file can tell whether it is being
 
4822
      # built for inclusion in a dll (and should export symbols for example).
 
4823
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
4824
      # (--disable-auto-import) libraries
 
4825
      m4_if([$1], [GCJ], [],
 
4826
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4827
      ;;
 
4828
 
 
4829
    darwin* | rhapsody*)
 
4830
      # PIC is the default on this platform
 
4831
      # Common symbols not allowed in MH_DYLIB files
 
4832
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4833
      ;;
 
4834
 
 
4835
    haiku*)
 
4836
      # PIC is the default for Haiku.
 
4837
      # The "-static" flag exists, but is broken.
 
4838
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
4839
      ;;
 
4840
 
 
4841
    hpux*)
 
4842
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
4843
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
4844
      # sets the default TLS model and affects inlining.
 
4845
      case $host_cpu in
 
4846
      hppa*64*)
 
4847
        # +Z the default
 
4848
        ;;
 
4849
      *)
 
4850
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4851
        ;;
 
4852
      esac
 
4853
      ;;
 
4854
 
 
4855
    interix[[3-9]]*)
 
4856
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
4857
      # Instead, we relocate shared libraries at runtime.
 
4858
      ;;
 
4859
 
 
4860
    msdosdjgpp*)
 
4861
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
4862
      # on systems that don't support them.
 
4863
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4864
      enable_shared=no
 
4865
      ;;
 
4866
 
 
4867
    *nto* | *qnx*)
 
4868
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4869
      # it will coredump.
 
4870
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4871
      ;;
 
4872
 
 
4873
    sysv4*MP*)
 
4874
      if test -d /usr/nec; then
 
4875
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
4876
      fi
 
4877
      ;;
 
4878
 
 
4879
    *)
 
4880
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4881
      ;;
 
4882
    esac
 
4883
 
 
4884
    case $cc_basename in
 
4885
    nvcc*) # Cuda Compiler Driver 2.2
 
4886
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 
4887
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
 
4888
      ;;
 
4889
    esac
 
4890
  else
 
4891
    # PORTME Check for flag to pass linker flags through the system compiler.
 
4892
    case $host_os in
 
4893
    aix*)
 
4894
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4895
      if test "$host_cpu" = ia64; then
 
4896
        # AIX 5 now supports IA64 processor
 
4897
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4898
      else
 
4899
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
4900
      fi
 
4901
      ;;
 
4902
 
 
4903
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
4904
      # This hack is so that the source file can tell whether it is being
 
4905
      # built for inclusion in a dll (and should export symbols for example).
 
4906
      m4_if([$1], [GCJ], [],
 
4907
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4908
      ;;
 
4909
 
 
4910
    hpux9* | hpux10* | hpux11*)
 
4911
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4912
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
4913
      # not for PA HP-UX.
 
4914
      case $host_cpu in
 
4915
      hppa*64*|ia64*)
 
4916
        # +Z the default
 
4917
        ;;
 
4918
      *)
 
4919
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4920
        ;;
 
4921
      esac
 
4922
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
4923
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4924
      ;;
 
4925
 
 
4926
    irix5* | irix6* | nonstopux*)
 
4927
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4928
      # PIC (with -KPIC) is the default.
 
4929
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4930
      ;;
 
4931
 
 
4932
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
4933
      case $cc_basename in
 
4934
      # old Intel for x86_64 which still supported -KPIC.
 
4935
      ecc*)
 
4936
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4937
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4938
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4939
        ;;
 
4940
      # icc used to be incompatible with GCC.
 
4941
      # ICC 10 doesn't accept -KPIC any more.
 
4942
      icc* | ifort*)
 
4943
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4944
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4945
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4946
        ;;
 
4947
      # Lahey Fortran 8.1.
 
4948
      lf95*)
 
4949
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4950
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 
4951
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 
4952
        ;;
 
4953
      nagfor*)
 
4954
        # NAG Fortran compiler
 
4955
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 
4956
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4957
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4958
        ;;
 
4959
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
4960
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
4961
        # which looks to be a dead project)
 
4962
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4963
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4964
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4965
        ;;
 
4966
      ccc*)
 
4967
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4968
        # All Alpha code is PIC.
 
4969
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4970
        ;;
 
4971
      xl* | bgxl* | bgf* | mpixl*)
 
4972
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
4973
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4974
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
4975
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
4976
        ;;
 
4977
      *)
 
4978
        case `$CC -V 2>&1 | sed 5q` in
 
4979
        *Sun\ F* | *Sun*Fortran*)
 
4980
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
4981
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4982
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4983
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
4984
          ;;
 
4985
        *Sun\ C*)
 
4986
          # Sun C 5.9
 
4987
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4988
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4989
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4990
          ;;
 
4991
        esac
 
4992
        ;;
 
4993
      esac
 
4994
      ;;
 
4995
 
 
4996
    newsos6)
 
4997
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4998
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4999
      ;;
 
5000
 
 
5001
    *nto* | *qnx*)
 
5002
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
5003
      # it will coredump.
 
5004
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
5005
      ;;
 
5006
 
 
5007
    osf3* | osf4* | osf5*)
 
5008
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5009
      # All OSF/1 code is PIC.
 
5010
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5011
      ;;
 
5012
 
 
5013
    rdos*)
 
5014
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5015
      ;;
 
5016
 
 
5017
    solaris*)
 
5018
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5019
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5020
      case $cc_basename in
 
5021
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
5022
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
5023
      *)
 
5024
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
5025
      esac
 
5026
      ;;
 
5027
 
 
5028
    sunos4*)
 
5029
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5030
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5031
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5032
      ;;
 
5033
 
 
5034
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
5035
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5036
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5037
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5038
      ;;
 
5039
 
 
5040
    sysv4*MP*)
 
5041
      if test -d /usr/nec ;then
 
5042
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
5043
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5044
      fi
 
5045
      ;;
 
5046
 
 
5047
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5048
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5049
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5050
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5051
      ;;
 
5052
 
 
5053
    unicos*)
 
5054
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5055
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5056
      ;;
 
5057
 
 
5058
    uts4*)
 
5059
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5060
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5061
      ;;
 
5062
 
 
5063
    *)
 
5064
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5065
      ;;
 
5066
    esac
 
5067
  fi
 
5068
])
 
5069
case $host_os in
 
5070
  # For platforms which do not support PIC, -DPIC is meaningless:
 
5071
  *djgpp*)
 
5072
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5073
    ;;
 
5074
  *)
 
5075
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 
5076
    ;;
 
5077
esac
 
5078
 
 
5079
AC_CACHE_CHECK([for $compiler option to produce PIC],
 
5080
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 
5081
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
5082
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
 
5083
 
 
5084
#
 
5085
# Check to make sure the PIC flag actually works.
 
5086
#
 
5087
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
5088
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 
5089
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 
5090
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 
5091
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
 
5092
     "" | " "*) ;;
 
5093
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
5094
     esac],
 
5095
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5096
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
5097
fi
 
5098
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 
5099
        [Additional compiler flags for building library objects])
 
5100
 
 
5101
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
5102
        [How to pass a linker flag through the compiler])
 
5103
#
 
5104
# Check to make sure the static flag actually works.
 
5105
#
 
5106
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 
5107
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5108
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
5109
  $lt_tmp_static_flag,
 
5110
  [],
 
5111
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 
5112
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 
5113
        [Compiler flag to prevent dynamic linking])
 
5114
])# _LT_COMPILER_PIC
 
5115
 
 
5116
 
 
5117
# _LT_LINKER_SHLIBS([TAGNAME])
 
5118
# ----------------------------
 
5119
# See if the linker supports building shared libraries.
 
5120
m4_defun([_LT_LINKER_SHLIBS],
 
5121
[AC_REQUIRE([LT_PATH_LD])dnl
 
5122
AC_REQUIRE([LT_PATH_NM])dnl
 
5123
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
 
5124
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5125
m4_require([_LT_DECL_EGREP])dnl
 
5126
m4_require([_LT_DECL_SED])dnl
 
5127
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
5128
m4_require([_LT_TAG_COMPILER])dnl
 
5129
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5130
m4_if([$1], [CXX], [
 
5131
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5132
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
5133
  case $host_os in
 
5134
  aix[[4-9]]*)
 
5135
    # If we're using GNU nm, then we don't want the "-C" option.
 
5136
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
5137
    # Also, AIX nm treats weak defined symbols like other global defined
 
5138
    # symbols, whereas GNU nm marks them as "W".
 
5139
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
5140
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
5141
    else
 
5142
      _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'
 
5143
    fi
 
5144
    ;;
 
5145
  pw32*)
 
5146
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
5147
    ;;
 
5148
  cygwin* | mingw* | cegcc*)
 
5149
    case $cc_basename in
 
5150
    cl*) ;;
 
5151
    *)
 
5152
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 
5153
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
5154
      ;;
 
5155
    esac
 
5156
    ;;
 
5157
  linux* | k*bsd*-gnu | gnu*)
 
5158
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
5159
    ;;
 
5160
  *)
 
5161
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5162
    ;;
 
5163
  esac
 
5164
], [
 
5165
  runpath_var=
 
5166
  _LT_TAGVAR(allow_undefined_flag, $1)=
 
5167
  _LT_TAGVAR(always_export_symbols, $1)=no
 
5168
  _LT_TAGVAR(archive_cmds, $1)=
 
5169
  _LT_TAGVAR(archive_expsym_cmds, $1)=
 
5170
  _LT_TAGVAR(compiler_needs_object, $1)=no
 
5171
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5172
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5173
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5174
  _LT_TAGVAR(hardcode_automatic, $1)=no
 
5175
  _LT_TAGVAR(hardcode_direct, $1)=no
 
5176
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
5177
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5178
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
5179
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
5180
  _LT_TAGVAR(hardcode_minus_L, $1)=no
 
5181
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5182
  _LT_TAGVAR(inherit_rpath, $1)=no
 
5183
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
 
5184
  _LT_TAGVAR(module_cmds, $1)=
 
5185
  _LT_TAGVAR(module_expsym_cmds, $1)=
 
5186
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 
5187
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
5188
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
 
5189
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5190
  # include_expsyms should be a list of space-separated symbols to be *always*
 
5191
  # included in the symbol list
 
5192
  _LT_TAGVAR(include_expsyms, $1)=
 
5193
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
5194
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
5195
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
5196
  # as well as any symbol that contains `d'.
 
5197
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
5198
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
5199
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
5200
  # the symbol is explicitly referenced.  Since portable code cannot
 
5201
  # rely on this symbol name, it's probably fine to never include it in
 
5202
  # preloaded symbol tables.
 
5203
  # Exclude shared library initialization/finalization symbols.
 
5204
dnl Note also adjust exclude_expsyms for C++ above.
 
5205
  extract_expsyms_cmds=
 
5206
 
 
5207
  case $host_os in
 
5208
  cygwin* | mingw* | pw32* | cegcc*)
 
5209
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
5210
    # When not using gcc, we currently assume that we are using
 
5211
    # Microsoft Visual C++.
 
5212
    if test "$GCC" != yes; then
 
5213
      with_gnu_ld=no
 
5214
    fi
 
5215
    ;;
 
5216
  interix*)
 
5217
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
5218
    with_gnu_ld=yes
 
5219
    ;;
 
5220
  openbsd*)
 
5221
    with_gnu_ld=no
 
5222
    ;;
 
5223
  linux* | k*bsd*-gnu | gnu*)
 
5224
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
5225
    ;;
 
5226
  esac
 
5227
 
 
5228
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
5229
 
 
5230
  # On some targets, GNU ld is compatible enough with the native linker
 
5231
  # that we're better off using the native interface for both.
 
5232
  lt_use_gnu_ld_interface=no
 
5233
  if test "$with_gnu_ld" = yes; then
 
5234
    case $host_os in
 
5235
      aix*)
 
5236
        # The AIX port of GNU ld has always aspired to compatibility
 
5237
        # with the native linker.  However, as the warning in the GNU ld
 
5238
        # block says, versions before 2.19.5* couldn't really create working
 
5239
        # shared libraries, regardless of the interface used.
 
5240
        case `$LD -v 2>&1` in
 
5241
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
5242
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 
5243
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 
5244
          *)
 
5245
            lt_use_gnu_ld_interface=yes
 
5246
            ;;
 
5247
        esac
 
5248
        ;;
 
5249
      *)
 
5250
        lt_use_gnu_ld_interface=yes
 
5251
        ;;
 
5252
    esac
 
5253
  fi
 
5254
 
 
5255
  if test "$lt_use_gnu_ld_interface" = yes; then
 
5256
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
5257
    wlarc='${wl}'
 
5258
 
 
5259
    # Set some defaults for GNU ld with shared library support. These
 
5260
    # are reset later if shared libraries are not supported. Putting them
 
5261
    # here allows them to be overridden if necessary.
 
5262
    runpath_var=LD_RUN_PATH
 
5263
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5264
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5265
    # ancient GNU ld didn't support --whole-archive et. al.
 
5266
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
5267
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5268
    else
 
5269
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5270
    fi
 
5271
    supports_anon_versioning=no
 
5272
    case `$LD -v 2>&1` in
 
5273
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
5274
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
5275
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
5276
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
5277
      *\ 2.11.*) ;; # other 2.11 versions
 
5278
      *) supports_anon_versioning=yes ;;
 
5279
    esac
 
5280
 
 
5281
    # See if GNU ld supports shared libraries.
 
5282
    case $host_os in
 
5283
    aix[[3-9]]*)
 
5284
      # On AIX/PPC, the GNU linker is very broken
 
5285
      if test "$host_cpu" != ia64; then
 
5286
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5287
        cat <<_LT_EOF 1>&2
 
5288
 
 
5289
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
5290
*** to be unable to reliably create shared libraries on AIX.
 
5291
*** Therefore, libtool is disabling shared libraries support.  If you
 
5292
*** really care for shared libraries, you may want to install binutils
 
5293
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
5294
*** You will then need to restart the configuration process.
 
5295
 
 
5296
_LT_EOF
 
5297
      fi
 
5298
      ;;
 
5299
 
 
5300
    amigaos*)
 
5301
      case $host_cpu in
 
5302
      powerpc)
 
5303
            # see comment about AmigaOS4 .so support
 
5304
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5305
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
5306
        ;;
 
5307
      m68k)
 
5308
            _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)'
 
5309
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5310
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5311
        ;;
 
5312
      esac
 
5313
      ;;
 
5314
 
 
5315
    beos*)
 
5316
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5317
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5318
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
5319
        # support --undefined.  This deserves some investigation.  FIXME
 
5320
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5321
      else
 
5322
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5323
      fi
 
5324
      ;;
 
5325
 
 
5326
    cygwin* | mingw* | pw32* | cegcc*)
 
5327
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
5328
      # as there is no search path for DLLs.
 
5329
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5330
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
5331
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5332
      _LT_TAGVAR(always_export_symbols, $1)=no
 
5333
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5334
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 
5335
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
5336
 
 
5337
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
5338
        _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'
 
5339
        # If the export-symbols file already is a .def file (1st line
 
5340
        # is EXPORTS), use it as is; otherwise, prepend...
 
5341
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5342
          cp $export_symbols $output_objdir/$soname.def;
 
5343
        else
 
5344
          echo EXPORTS > $output_objdir/$soname.def;
 
5345
          cat $export_symbols >> $output_objdir/$soname.def;
 
5346
        fi~
 
5347
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
5348
      else
 
5349
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5350
      fi
 
5351
      ;;
 
5352
 
 
5353
    haiku*)
 
5354
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5355
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5356
      ;;
 
5357
 
 
5358
    interix[[3-9]]*)
 
5359
      _LT_TAGVAR(hardcode_direct, $1)=no
 
5360
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5361
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5362
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5363
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5364
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5365
      # default) and relocated if they conflict, which is a slow very memory
 
5366
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
5367
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5368
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5369
      _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'
 
5370
      _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'
 
5371
      ;;
 
5372
 
 
5373
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
5374
      tmp_diet=no
 
5375
      if test "$host_os" = linux-dietlibc; then
 
5376
        case $cc_basename in
 
5377
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
5378
        esac
 
5379
      fi
 
5380
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
5381
         && test "$tmp_diet" = no
 
5382
      then
 
5383
        tmp_addflag=' $pic_flag'
 
5384
        tmp_sharedflag='-shared'
 
5385
        case $cc_basename,$host_cpu in
 
5386
        pgcc*)                          # Portland Group C compiler
 
5387
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
5388
          tmp_addflag=' $pic_flag'
 
5389
          ;;
 
5390
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
5391
                                        # Portland Group f77 and f90 compilers
 
5392
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
5393
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
5394
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
5395
          tmp_addflag=' -i_dynamic' ;;
 
5396
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
5397
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
5398
        ifc* | ifort*)                  # Intel Fortran compiler
 
5399
          tmp_addflag=' -nofor_main' ;;
 
5400
        lf95*)                          # Lahey Fortran 8.1
 
5401
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5402
          tmp_sharedflag='--shared' ;;
 
5403
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
5404
          tmp_sharedflag='-qmkshrobj'
 
5405
          tmp_addflag= ;;
 
5406
        nvcc*)  # Cuda Compiler Driver 2.2
 
5407
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
5408
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
5409
          ;;
 
5410
        esac
 
5411
        case `$CC -V 2>&1 | sed 5q` in
 
5412
        *Sun\ C*)                       # Sun C 5.9
 
5413
          _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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
5414
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
5415
          tmp_sharedflag='-G' ;;
 
5416
        *Sun\ F*)                       # Sun Fortran 8.3
 
5417
          tmp_sharedflag='-G' ;;
 
5418
        esac
 
5419
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5420
 
 
5421
        if test "x$supports_anon_versioning" = xyes; then
 
5422
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5423
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5424
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
5425
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5426
        fi
 
5427
 
 
5428
        case $cc_basename in
 
5429
        xlf* | bgf* | bgxlf* | mpixlf*)
 
5430
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
5431
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 
5432
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5433
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5434
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
5435
          if test "x$supports_anon_versioning" = xyes; then
 
5436
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5437
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5438
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
5439
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
5440
          fi
 
5441
          ;;
 
5442
        esac
 
5443
      else
 
5444
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5445
      fi
 
5446
      ;;
 
5447
 
 
5448
    netbsd* | netbsdelf*-gnu)
 
5449
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5450
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
5451
        wlarc=
 
5452
      else
 
5453
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5454
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5455
      fi
 
5456
      ;;
 
5457
 
 
5458
    solaris*)
 
5459
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
5460
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5461
        cat <<_LT_EOF 1>&2
 
5462
 
 
5463
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
5464
*** create shared libraries on Solaris systems.  Therefore, libtool
 
5465
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5466
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
5467
*** your PATH or compiler configuration so that the native linker is
 
5468
*** used, and then restart.
 
5469
 
 
5470
_LT_EOF
 
5471
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5472
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5473
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5474
      else
 
5475
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5476
      fi
 
5477
      ;;
 
5478
 
 
5479
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
5480
      case `$LD -v 2>&1` in
 
5481
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 
5482
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5483
        cat <<_LT_EOF 1>&2
 
5484
 
 
5485
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
5486
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
5487
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5488
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
5489
*** your PATH or compiler configuration so that the native linker is
 
5490
*** used, and then restart.
 
5491
 
 
5492
_LT_EOF
 
5493
        ;;
 
5494
        *)
 
5495
          # For security reasons, it is highly recommended that you always
 
5496
          # use absolute paths for naming shared libraries, and exclude the
 
5497
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
5498
          # requires that you compile everything twice, which is a pain.
 
5499
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5500
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5501
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5502
            _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'
 
5503
          else
 
5504
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5505
          fi
 
5506
        ;;
 
5507
      esac
 
5508
      ;;
 
5509
 
 
5510
    sunos4*)
 
5511
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5512
      wlarc=
 
5513
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5514
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5515
      ;;
 
5516
 
 
5517
    *)
 
5518
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5519
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5520
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5521
      else
 
5522
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5523
      fi
 
5524
      ;;
 
5525
    esac
 
5526
 
 
5527
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
 
5528
      runpath_var=
 
5529
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5530
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5531
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5532
    fi
 
5533
  else
 
5534
    # PORTME fill in a description of your system's linker (not GNU ld)
 
5535
    case $host_os in
 
5536
    aix3*)
 
5537
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5538
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
5539
      _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'
 
5540
      # Note: this linker hardcodes the directories in LIBPATH if there
 
5541
      # are no directories specified by -L.
 
5542
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5543
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
5544
        # Neither direct hardcoding nor static linking is supported with a
 
5545
        # broken collect2.
 
5546
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
5547
      fi
 
5548
      ;;
 
5549
 
 
5550
    aix[[4-9]]*)
 
5551
      if test "$host_cpu" = ia64; then
 
5552
        # On IA64, the linker does run time linking by default, so we don't
 
5553
        # have to do anything special.
 
5554
        aix_use_runtimelinking=no
 
5555
        exp_sym_flag='-Bexport'
 
5556
        no_entry_flag=""
 
5557
      else
 
5558
        # If we're using GNU nm, then we don't want the "-C" option.
 
5559
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
5560
        # Also, AIX nm treats weak defined symbols like other global
 
5561
        # defined symbols, whereas GNU nm marks them as "W".
 
5562
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
5563
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
5564
        else
 
5565
          _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'
 
5566
        fi
 
5567
        aix_use_runtimelinking=no
 
5568
 
 
5569
        # Test if we are trying to use run time linking or normal
 
5570
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
5571
        # need to do runtime linking.
 
5572
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
5573
          for ld_flag in $LDFLAGS; do
 
5574
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
5575
            aix_use_runtimelinking=yes
 
5576
            break
 
5577
          fi
 
5578
          done
 
5579
          ;;
 
5580
        esac
 
5581
 
 
5582
        exp_sym_flag='-bexport'
 
5583
        no_entry_flag='-bnoentry'
 
5584
      fi
 
5585
 
 
5586
      # When large executables or shared objects are built, AIX ld can
 
5587
      # have problems creating the table of contents.  If linking a library
 
5588
      # or program results in "error TOC overflow" add -mminimal-toc to
 
5589
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
5590
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
5591
 
 
5592
      _LT_TAGVAR(archive_cmds, $1)=''
 
5593
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5594
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5595
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5596
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5597
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
5598
 
 
5599
      if test "$GCC" = yes; then
 
5600
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
5601
        # We only want to do this on AIX 4.2 and lower, the check
 
5602
        # below for broken collect2 doesn't work under 4.3+
 
5603
          collect2name=`${CC} -print-prog-name=collect2`
 
5604
          if test -f "$collect2name" &&
 
5605
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
5606
          then
 
5607
          # We have reworked collect2
 
5608
          :
 
5609
          else
 
5610
          # We have old collect2
 
5611
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
5612
          # It fails to find uninstalled libraries when the uninstalled
 
5613
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
5614
          # to unsupported forces relinking
 
5615
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5616
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5617
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
5618
          fi
 
5619
          ;;
 
5620
        esac
 
5621
        shared_flag='-shared'
 
5622
        if test "$aix_use_runtimelinking" = yes; then
 
5623
          shared_flag="$shared_flag "'${wl}-G'
 
5624
        fi
 
5625
        _LT_TAGVAR(link_all_deplibs, $1)=no
 
5626
      else
 
5627
        # not using gcc
 
5628
        if test "$host_cpu" = ia64; then
 
5629
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
5630
        # chokes on -Wl,-G. The following line is correct:
 
5631
          shared_flag='-G'
 
5632
        else
 
5633
          if test "$aix_use_runtimelinking" = yes; then
 
5634
            shared_flag='${wl}-G'
 
5635
          else
 
5636
            shared_flag='${wl}-bM:SRE'
 
5637
          fi
 
5638
        fi
 
5639
      fi
 
5640
 
 
5641
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 
5642
      # It seems that -bexpall does not export symbols beginning with
 
5643
      # underscore (_), so it is better to generate a list of symbols to export.
 
5644
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
5645
      if test "$aix_use_runtimelinking" = yes; then
 
5646
        # Warning - without using the other runtime loading flags (-brtl),
 
5647
        # -berok will link without error, but may produce a broken library.
 
5648
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
5649
        # Determine the default libpath from the value encoded in an
 
5650
        # empty executable.
 
5651
        _LT_SYS_MODULE_PATH_AIX([$1])
 
5652
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5653
        _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
5654
      else
 
5655
        if test "$host_cpu" = ia64; then
 
5656
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
5657
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
5658
          _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"
 
5659
        else
 
5660
         # Determine the default libpath from the value encoded in an
 
5661
         # empty executable.
 
5662
         _LT_SYS_MODULE_PATH_AIX([$1])
 
5663
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5664
          # Warning - without using the other run time loading flags,
 
5665
          # -berok will link without error, but may produce a broken library.
 
5666
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
5667
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
5668
          if test "$with_gnu_ld" = yes; then
 
5669
            # We only use this code for GNU lds that support --whole-archive.
 
5670
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
5671
          else
 
5672
            # Exported symbols can be pulled into shared objects from archives
 
5673
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5674
          fi
 
5675
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5676
          # This is similar to how AIX traditionally builds its shared libraries.
 
5677
          _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'
 
5678
        fi
 
5679
      fi
 
5680
      ;;
 
5681
 
 
5682
    amigaos*)
 
5683
      case $host_cpu in
 
5684
      powerpc)
 
5685
            # see comment about AmigaOS4 .so support
 
5686
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5687
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
5688
        ;;
 
5689
      m68k)
 
5690
            _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)'
 
5691
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5692
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5693
        ;;
 
5694
      esac
 
5695
      ;;
 
5696
 
 
5697
    bsdi[[45]]*)
 
5698
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
5699
      ;;
 
5700
 
 
5701
    cygwin* | mingw* | pw32* | cegcc*)
 
5702
      # When not using gcc, we currently assume that we are using
 
5703
      # Microsoft Visual C++.
 
5704
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
5705
      # no search path for DLLs.
 
5706
      case $cc_basename in
 
5707
      cl*)
 
5708
        # Native MSVC
 
5709
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5710
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5711
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
5712
        _LT_TAGVAR(file_list_spec, $1)='@'
 
5713
        # Tell ltmain to make .lib files, not .a files.
 
5714
        libext=lib
 
5715
        # Tell ltmain to make .dll files, not .so files.
 
5716
        shrext_cmds=".dll"
 
5717
        # FIXME: Setting linknames here is a bad hack.
 
5718
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
5719
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5720
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
5721
          else
 
5722
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
5723
          fi~
 
5724
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
5725
          linknames='
 
5726
        # The linker will not automatically build a static lib if we build a DLL.
 
5727
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5728
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5729
        _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'
 
5730
        # Don't use ranlib
 
5731
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
5732
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
5733
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
5734
          case $lt_outputfile in
 
5735
            *.exe|*.EXE) ;;
 
5736
            *)
 
5737
              lt_outputfile="$lt_outputfile.exe"
 
5738
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
5739
              ;;
 
5740
          esac~
 
5741
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
5742
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
5743
            $RM "$lt_outputfile.manifest";
 
5744
          fi'
 
5745
        ;;
 
5746
      *)
 
5747
        # Assume MSVC wrapper
 
5748
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5749
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5750
        # Tell ltmain to make .lib files, not .a files.
 
5751
        libext=lib
 
5752
        # Tell ltmain to make .dll files, not .so files.
 
5753
        shrext_cmds=".dll"
 
5754
        # FIXME: Setting linknames here is a bad hack.
 
5755
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
5756
        # The linker will automatically build a .lib file if we build a DLL.
 
5757
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5758
        # FIXME: Should let the user specify the lib program.
 
5759
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5760
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5761
        ;;
 
5762
      esac
 
5763
      ;;
 
5764
 
 
5765
    darwin* | rhapsody*)
 
5766
      _LT_DARWIN_LINKER_FEATURES($1)
 
5767
      ;;
 
5768
 
 
5769
    dgux*)
 
5770
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5771
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5772
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5773
      ;;
 
5774
 
 
5775
    freebsd1*)
 
5776
      _LT_TAGVAR(ld_shlibs, $1)=no
 
5777
      ;;
 
5778
 
 
5779
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
5780
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
5781
    # does not break anything, and helps significantly (at the cost of a little
 
5782
    # extra space).
 
5783
    freebsd2.2*)
 
5784
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
5785
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5786
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5787
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5788
      ;;
 
5789
 
 
5790
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
5791
    freebsd2*)
 
5792
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5793
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5794
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5795
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5796
      ;;
 
5797
 
 
5798
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
5799
    freebsd* | dragonfly*)
 
5800
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5801
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5802
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5803
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5804
      ;;
 
5805
 
 
5806
    hpux9*)
 
5807
      if test "$GCC" = yes; then
 
5808
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
5809
      else
 
5810
        _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'
 
5811
      fi
 
5812
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5813
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5814
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5815
 
 
5816
      # hardcode_minus_L: Not really in the search PATH,
 
5817
      # but as the default location of the library.
 
5818
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5819
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5820
      ;;
 
5821
 
 
5822
    hpux10*)
 
5823
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
5824
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5825
      else
 
5826
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5827
      fi
 
5828
      if test "$with_gnu_ld" = no; then
 
5829
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5830
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
5831
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5832
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5833
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5834
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5835
        # hardcode_minus_L: Not really in the search PATH,
 
5836
        # but as the default location of the library.
 
5837
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5838
      fi
 
5839
      ;;
 
5840
 
 
5841
    hpux11*)
 
5842
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
5843
        case $host_cpu in
 
5844
        hppa*64*)
 
5845
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5846
          ;;
 
5847
        ia64*)
 
5848
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5849
          ;;
 
5850
        *)
 
5851
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5852
          ;;
 
5853
        esac
 
5854
      else
 
5855
        case $host_cpu in
 
5856
        hppa*64*)
 
5857
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5858
          ;;
 
5859
        ia64*)
 
5860
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5861
          ;;
 
5862
        *)
 
5863
        m4_if($1, [], [
 
5864
          # Older versions of the 11.00 compiler do not understand -b yet
 
5865
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
5866
          _LT_LINKER_OPTION([if $CC understands -b],
 
5867
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 
5868
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 
5869
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 
5870
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
 
5871
          ;;
 
5872
        esac
 
5873
      fi
 
5874
      if test "$with_gnu_ld" = no; then
 
5875
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5876
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5877
 
 
5878
        case $host_cpu in
 
5879
        hppa*64*|ia64*)
 
5880
          _LT_TAGVAR(hardcode_direct, $1)=no
 
5881
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5882
          ;;
 
5883
        *)
 
5884
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
5885
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5886
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5887
 
 
5888
          # hardcode_minus_L: Not really in the search PATH,
 
5889
          # but as the default location of the library.
 
5890
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5891
          ;;
 
5892
        esac
 
5893
      fi
 
5894
      ;;
 
5895
 
 
5896
    irix5* | irix6* | nonstopux*)
 
5897
      if test "$GCC" = yes; then
 
5898
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5899
        # Try to use the -exported_symbol ld option, if it does not
 
5900
        # work, assume that -exports_file does not work either and
 
5901
        # implicitly export all symbols.
 
5902
        # This should be the same for all languages, so no per-tag cache variable.
 
5903
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 
5904
          [lt_cv_irix_exported_symbol],
 
5905
          [save_LDFLAGS="$LDFLAGS"
 
5906
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5907
           AC_LINK_IFELSE(
 
5908
             [AC_LANG_SOURCE(
 
5909
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 
5910
                              [C++], [[int foo (void) { return 0; }]],
 
5911
                              [Fortran 77], [[
 
5912
      subroutine foo
 
5913
      end]],
 
5914
                              [Fortran], [[
 
5915
      subroutine foo
 
5916
      end]])])],
 
5917
              [lt_cv_irix_exported_symbol=yes],
 
5918
              [lt_cv_irix_exported_symbol=no])
 
5919
           LDFLAGS="$save_LDFLAGS"])
 
5920
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
5921
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
5922
        fi
 
5923
      else
 
5924
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
5925
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
5926
      fi
 
5927
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5928
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5929
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5930
      _LT_TAGVAR(inherit_rpath, $1)=yes
 
5931
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5932
      ;;
 
5933
 
 
5934
    netbsd* | netbsdelf*-gnu)
 
5935
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5936
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
5937
      else
 
5938
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
5939
      fi
 
5940
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5941
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5942
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5943
      ;;
 
5944
 
 
5945
    newsos6)
 
5946
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5947
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5948
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5949
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5950
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5951
      ;;
 
5952
 
 
5953
    *nto* | *qnx*)
 
5954
      ;;
 
5955
 
 
5956
    openbsd*)
 
5957
      if test -f /usr/libexec/ld.so; then
 
5958
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5959
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5960
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5961
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5962
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5963
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
5964
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5965
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5966
        else
 
5967
          case $host_os in
 
5968
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
5969
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5970
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5971
             ;;
 
5972
           *)
 
5973
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5974
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5975
             ;;
 
5976
          esac
 
5977
        fi
 
5978
      else
 
5979
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5980
      fi
 
5981
      ;;
 
5982
 
 
5983
    os2*)
 
5984
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5985
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5986
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5987
      _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'
 
5988
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
5989
      ;;
 
5990
 
 
5991
    osf3*)
 
5992
      if test "$GCC" = yes; then
 
5993
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5994
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5995
      else
 
5996
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5997
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
5998
      fi
 
5999
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
6000
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6001
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6002
      ;;
 
6003
 
 
6004
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
6005
      if test "$GCC" = yes; then
 
6006
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6007
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6008
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6009
      else
 
6010
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6011
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
6012
        _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~
 
6013
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
6014
 
 
6015
        # Both c and cxx compiler support -rpath directly
 
6016
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6017
      fi
 
6018
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
6019
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6020
      ;;
 
6021
 
 
6022
    solaris*)
 
6023
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
 
6024
      if test "$GCC" = yes; then
 
6025
        wlarc='${wl}'
 
6026
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6027
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6028
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
6029
      else
 
6030
        case `$CC -V 2>&1` in
 
6031
        *"Compilers 5.0"*)
 
6032
          wlarc=''
 
6033
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6034
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6035
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
6036
          ;;
 
6037
        *)
 
6038
          wlarc='${wl}'
 
6039
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6040
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6041
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
6042
          ;;
 
6043
        esac
 
6044
      fi
 
6045
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6046
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6047
      case $host_os in
 
6048
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
6049
      *)
 
6050
        # The compiler driver will combine and reorder linker options,
 
6051
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6052
        # but is careful enough not to reorder.
 
6053
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6054
        if test "$GCC" = yes; then
 
6055
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6056
        else
 
6057
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6058
        fi
 
6059
        ;;
 
6060
      esac
 
6061
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6062
      ;;
 
6063
 
 
6064
    sunos4*)
 
6065
      if test "x$host_vendor" = xsequent; then
 
6066
        # Use $CC to link under sequent, because it throws in some extra .o
 
6067
        # files that make .init and .fini sections work.
 
6068
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6069
      else
 
6070
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
6071
      fi
 
6072
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6073
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6074
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6075
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6076
      ;;
 
6077
 
 
6078
    sysv4)
 
6079
      case $host_vendor in
 
6080
        sni)
 
6081
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6082
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
6083
        ;;
 
6084
        siemens)
 
6085
          ## LD is ld it makes a PLAMLIB
 
6086
          ## CC just makes a GrossModule.
 
6087
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6088
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
6089
          _LT_TAGVAR(hardcode_direct, $1)=no
 
6090
        ;;
 
6091
        motorola)
 
6092
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6093
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
6094
        ;;
 
6095
      esac
 
6096
      runpath_var='LD_RUN_PATH'
 
6097
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6098
      ;;
 
6099
 
 
6100
    sysv4.3*)
 
6101
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6102
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6103
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
6104
      ;;
 
6105
 
 
6106
    sysv4*MP*)
 
6107
      if test -d /usr/nec; then
 
6108
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6109
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6110
        runpath_var=LD_RUN_PATH
 
6111
        hardcode_runpath_var=yes
 
6112
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6113
      fi
 
6114
      ;;
 
6115
 
 
6116
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
6117
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6118
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6119
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6120
      runpath_var='LD_RUN_PATH'
 
6121
 
 
6122
      if test "$GCC" = yes; then
 
6123
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6124
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6125
      else
 
6126
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6127
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6128
      fi
 
6129
      ;;
 
6130
 
 
6131
    sysv5* | sco3.2v5* | sco5v6*)
 
6132
      # Note: We can NOT use -z defs as we might desire, because we do not
 
6133
      # link with -lc, and that would cause any symbols used from libc to
 
6134
      # always be unresolved, which means just about no library would
 
6135
      # ever link correctly.  If we're not using GNU ld we use -z text
 
6136
      # though, which does catch some bad symbols but isn't as heavy-handed
 
6137
      # as -z defs.
 
6138
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6139
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6140
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6141
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6142
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
6143
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6144
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6145
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6146
      runpath_var='LD_RUN_PATH'
 
6147
 
 
6148
      if test "$GCC" = yes; then
 
6149
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6150
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6151
      else
 
6152
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6153
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6154
      fi
 
6155
      ;;
 
6156
 
 
6157
    uts4*)
 
6158
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6159
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6160
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6161
      ;;
 
6162
 
 
6163
    *)
 
6164
      _LT_TAGVAR(ld_shlibs, $1)=no
 
6165
      ;;
 
6166
    esac
 
6167
 
 
6168
    if test x$host_vendor = xsni; then
 
6169
      case $host in
 
6170
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6171
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
 
6172
        ;;
 
6173
      esac
 
6174
    fi
 
6175
  fi
 
6176
])
 
6177
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
6178
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6179
 
 
6180
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 
6181
 
 
6182
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 
6183
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 
6184
_LT_DECL([], [extract_expsyms_cmds], [2],
 
6185
    [The commands to extract the exported symbol list from a shared archive])
 
6186
 
 
6187
#
 
6188
# Do we need to explicitly link libc?
 
6189
#
 
6190
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
 
6191
x|xyes)
 
6192
  # Assume -lc should be added
 
6193
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6194
 
 
6195
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
6196
    case $_LT_TAGVAR(archive_cmds, $1) in
 
6197
    *'~'*)
 
6198
      # FIXME: we may have to deal with multi-command sequences.
 
6199
      ;;
 
6200
    '$CC '*)
 
6201
      # Test whether the compiler implicitly links with -lc since on some
 
6202
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
6203
      # to ld, don't add -lc before -lgcc.
 
6204
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 
6205
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 
6206
        [$RM conftest*
 
6207
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6208
 
 
6209
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
6210
          soname=conftest
 
6211
          lib=conftest
 
6212
          libobjs=conftest.$ac_objext
 
6213
          deplibs=
 
6214
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
6215
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
6216
          compiler_flags=-v
 
6217
          linker_flags=-v
 
6218
          verstring=
 
6219
          output_objdir=.
 
6220
          libname=conftest
 
6221
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
6222
          _LT_TAGVAR(allow_undefined_flag, $1)=
 
6223
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
6224
          then
 
6225
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6226
          else
 
6227
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6228
          fi
 
6229
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
6230
        else
 
6231
          cat conftest.err 1>&5
 
6232
        fi
 
6233
        $RM conftest*
 
6234
        ])
 
6235
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
 
6236
      ;;
 
6237
    esac
 
6238
  fi
 
6239
  ;;
 
6240
esac
 
6241
 
 
6242
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 
6243
    [Whether or not to add -lc for building shared libraries])
 
6244
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 
6245
    [enable_shared_with_static_runtimes], [0],
 
6246
    [Whether or not to disallow shared libs when runtime libs are static])
 
6247
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 
6248
    [Compiler flag to allow reflexive dlopens])
 
6249
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
 
6250
    [Compiler flag to generate shared objects directly from archives])
 
6251
_LT_TAGDECL([], [compiler_needs_object], [1],
 
6252
    [Whether the compiler copes with passing no objects directly])
 
6253
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 
6254
    [Create an old-style archive from a shared archive])
 
6255
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 
6256
    [Create a temporary old-style archive to link instead of a shared archive])
 
6257
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 
6258
_LT_TAGDECL([], [archive_expsym_cmds], [2])
 
6259
_LT_TAGDECL([], [module_cmds], [2],
 
6260
    [Commands used to build a loadable module if different from building
 
6261
    a shared archive.])
 
6262
_LT_TAGDECL([], [module_expsym_cmds], [2])
 
6263
_LT_TAGDECL([], [with_gnu_ld], [1],
 
6264
    [Whether we are building with GNU ld or not])
 
6265
_LT_TAGDECL([], [allow_undefined_flag], [1],
 
6266
    [Flag that allows shared libraries with undefined symbols to be built])
 
6267
_LT_TAGDECL([], [no_undefined_flag], [1],
 
6268
    [Flag that enforces no undefined symbols])
 
6269
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 
6270
    [Flag to hardcode $libdir into a binary during linking.
 
6271
    This must work even if $libdir does not exist])
 
6272
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
 
6273
    [[If ld is used when linking, flag to hardcode $libdir into a binary
 
6274
    during linking.  This must work even if $libdir does not exist]])
 
6275
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
 
6276
    [Whether we need a single "-rpath" flag with a separated argument])
 
6277
_LT_TAGDECL([], [hardcode_direct], [0],
 
6278
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6279
    DIR into the resulting binary])
 
6280
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
 
6281
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6282
    DIR into the resulting binary and the resulting library dependency is
 
6283
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
 
6284
    library is relocated])
 
6285
_LT_TAGDECL([], [hardcode_minus_L], [0],
 
6286
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
6287
    into the resulting binary])
 
6288
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 
6289
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
6290
    into the resulting binary])
 
6291
_LT_TAGDECL([], [hardcode_automatic], [0],
 
6292
    [Set to "yes" if building a shared library automatically hardcodes DIR
 
6293
    into the library and all subsequent libraries and executables linked
 
6294
    against it])
 
6295
_LT_TAGDECL([], [inherit_rpath], [0],
 
6296
    [Set to yes if linker adds runtime paths of dependent libraries
 
6297
    to runtime path list])
 
6298
_LT_TAGDECL([], [link_all_deplibs], [0],
 
6299
    [Whether libtool must link a program against all its dependency libraries])
 
6300
_LT_TAGDECL([], [always_export_symbols], [0],
 
6301
    [Set to "yes" if exported symbols are required])
 
6302
_LT_TAGDECL([], [export_symbols_cmds], [2],
 
6303
    [The commands to list exported symbols])
 
6304
_LT_TAGDECL([], [exclude_expsyms], [1],
 
6305
    [Symbols that should not be listed in the preloaded symbols])
 
6306
_LT_TAGDECL([], [include_expsyms], [1],
 
6307
    [Symbols that must always be exported])
 
6308
_LT_TAGDECL([], [prelink_cmds], [2],
 
6309
    [Commands necessary for linking programs (against libraries) with templates])
 
6310
_LT_TAGDECL([], [postlink_cmds], [2],
 
6311
    [Commands necessary for finishing linking programs])
 
6312
_LT_TAGDECL([], [file_list_spec], [1],
 
6313
    [Specify filename containing input files])
 
6314
dnl FIXME: Not yet implemented
 
6315
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 
6316
dnl    [Compiler flag to generate thread safe objects])
 
6317
])# _LT_LINKER_SHLIBS
 
6318
 
 
6319
 
 
6320
# _LT_LANG_C_CONFIG([TAG])
 
6321
# ------------------------
 
6322
# Ensure that the configuration variables for a C compiler are suitably
 
6323
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6324
# the compiler configuration to `libtool'.
 
6325
m4_defun([_LT_LANG_C_CONFIG],
 
6326
[m4_require([_LT_DECL_EGREP])dnl
 
6327
lt_save_CC="$CC"
 
6328
AC_LANG_PUSH(C)
 
6329
 
 
6330
# Source file extension for C test sources.
 
6331
ac_ext=c
 
6332
 
 
6333
# Object file extension for compiled C test sources.
 
6334
objext=o
 
6335
_LT_TAGVAR(objext, $1)=$objext
 
6336
 
 
6337
# Code to be used in simple compile tests
 
6338
lt_simple_compile_test_code="int some_variable = 0;"
 
6339
 
 
6340
# Code to be used in simple link tests
 
6341
lt_simple_link_test_code='int main(){return(0);}'
 
6342
 
 
6343
_LT_TAG_COMPILER
 
6344
# Save the default compiler, since it gets overwritten when the other
 
6345
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
6346
compiler_DEFAULT=$CC
 
6347
 
 
6348
# save warnings/boilerplate of simple test code
 
6349
_LT_COMPILER_BOILERPLATE
 
6350
_LT_LINKER_BOILERPLATE
 
6351
 
 
6352
if test -n "$compiler"; then
 
6353
  _LT_COMPILER_NO_RTTI($1)
 
6354
  _LT_COMPILER_PIC($1)
 
6355
  _LT_COMPILER_C_O($1)
 
6356
  _LT_COMPILER_FILE_LOCKS($1)
 
6357
  _LT_LINKER_SHLIBS($1)
 
6358
  _LT_SYS_DYNAMIC_LINKER($1)
 
6359
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
6360
  LT_SYS_DLOPEN_SELF
 
6361
  _LT_CMD_STRIPLIB
 
6362
 
 
6363
  # Report which library types will actually be built
 
6364
  AC_MSG_CHECKING([if libtool supports shared libraries])
 
6365
  AC_MSG_RESULT([$can_build_shared])
 
6366
 
 
6367
  AC_MSG_CHECKING([whether to build shared libraries])
 
6368
  test "$can_build_shared" = "no" && enable_shared=no
 
6369
 
 
6370
  # On AIX, shared libraries and static libraries use the same namespace, and
 
6371
  # are all built from PIC.
 
6372
  case $host_os in
 
6373
  aix3*)
 
6374
    test "$enable_shared" = yes && enable_static=no
 
6375
    if test -n "$RANLIB"; then
 
6376
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6377
      postinstall_cmds='$RANLIB $lib'
 
6378
    fi
 
6379
    ;;
 
6380
 
 
6381
  aix[[4-9]]*)
 
6382
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6383
      test "$enable_shared" = yes && enable_static=no
 
6384
    fi
 
6385
    ;;
 
6386
  esac
 
6387
  AC_MSG_RESULT([$enable_shared])
 
6388
 
 
6389
  AC_MSG_CHECKING([whether to build static libraries])
 
6390
  # Make sure either enable_shared or enable_static is yes.
 
6391
  test "$enable_shared" = yes || enable_static=yes
 
6392
  AC_MSG_RESULT([$enable_static])
 
6393
 
 
6394
  _LT_CONFIG($1)
 
6395
fi
 
6396
AC_LANG_POP
 
6397
CC="$lt_save_CC"
 
6398
])# _LT_LANG_C_CONFIG
 
6399
 
 
6400
 
 
6401
# _LT_LANG_CXX_CONFIG([TAG])
 
6402
# --------------------------
 
6403
# Ensure that the configuration variables for a C++ compiler are suitably
 
6404
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6405
# the compiler configuration to `libtool'.
 
6406
m4_defun([_LT_LANG_CXX_CONFIG],
 
6407
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6408
m4_require([_LT_DECL_EGREP])dnl
 
6409
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
 
6410
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6411
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6412
    (test "X$CXX" != "Xg++"))) ; then
 
6413
  AC_PROG_CXXCPP
 
6414
else
 
6415
  _lt_caught_CXX_error=yes
 
6416
fi
 
6417
 
 
6418
AC_LANG_PUSH(C++)
 
6419
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6420
_LT_TAGVAR(allow_undefined_flag, $1)=
 
6421
_LT_TAGVAR(always_export_symbols, $1)=no
 
6422
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
6423
_LT_TAGVAR(compiler_needs_object, $1)=no
 
6424
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6425
_LT_TAGVAR(hardcode_direct, $1)=no
 
6426
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6427
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6428
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6429
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6430
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
6431
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6432
_LT_TAGVAR(hardcode_automatic, $1)=no
 
6433
_LT_TAGVAR(inherit_rpath, $1)=no
 
6434
_LT_TAGVAR(module_cmds, $1)=
 
6435
_LT_TAGVAR(module_expsym_cmds, $1)=
 
6436
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
6437
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6438
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
6439
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
6440
_LT_TAGVAR(no_undefined_flag, $1)=
 
6441
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6442
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6443
 
 
6444
# Source file extension for C++ test sources.
 
6445
ac_ext=cpp
 
6446
 
 
6447
# Object file extension for compiled C++ test sources.
 
6448
objext=o
 
6449
_LT_TAGVAR(objext, $1)=$objext
 
6450
 
 
6451
# No sense in running all these tests if we already determined that
 
6452
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
6453
# are currently assumed to apply to all compilers on this platform,
 
6454
# and will be corrupted by setting them based on a non-working compiler.
 
6455
if test "$_lt_caught_CXX_error" != yes; then
 
6456
  # Code to be used in simple compile tests
 
6457
  lt_simple_compile_test_code="int some_variable = 0;"
 
6458
 
 
6459
  # Code to be used in simple link tests
 
6460
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
6461
 
 
6462
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6463
  _LT_TAG_COMPILER
 
6464
 
 
6465
  # save warnings/boilerplate of simple test code
 
6466
  _LT_COMPILER_BOILERPLATE
 
6467
  _LT_LINKER_BOILERPLATE
 
6468
 
 
6469
  # Allow CC to be a program name with arguments.
 
6470
  lt_save_CC=$CC
 
6471
  lt_save_CFLAGS=$CFLAGS
 
6472
  lt_save_LD=$LD
 
6473
  lt_save_GCC=$GCC
 
6474
  GCC=$GXX
 
6475
  lt_save_with_gnu_ld=$with_gnu_ld
 
6476
  lt_save_path_LD=$lt_cv_path_LD
 
6477
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
6478
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
6479
  else
 
6480
    $as_unset lt_cv_prog_gnu_ld
 
6481
  fi
 
6482
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
6483
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
6484
  else
 
6485
    $as_unset lt_cv_path_LD
 
6486
  fi
 
6487
  test -z "${LDCXX+set}" || LD=$LDCXX
 
6488
  CC=${CXX-"c++"}
 
6489
  CFLAGS=$CXXFLAGS
 
6490
  compiler=$CC
 
6491
  _LT_TAGVAR(compiler, $1)=$CC
 
6492
  _LT_CC_BASENAME([$compiler])
 
6493
 
 
6494
  if test -n "$compiler"; then
 
6495
    # We don't want -fno-exception when compiling C++ code, so set the
 
6496
    # no_builtin_flag separately
 
6497
    if test "$GXX" = yes; then
 
6498
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
6499
    else
 
6500
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
6501
    fi
 
6502
 
 
6503
    if test "$GXX" = yes; then
 
6504
      # Set up default GNU C++ configuration
 
6505
 
 
6506
      LT_PATH_LD
 
6507
 
 
6508
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
6509
      # archiving commands below assume that GNU ld is being used.
 
6510
      if test "$with_gnu_ld" = yes; then
 
6511
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6512
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6513
 
 
6514
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6515
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6516
 
 
6517
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
6518
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
6519
        #     investigate it a little bit more. (MM)
 
6520
        wlarc='${wl}'
 
6521
 
 
6522
        # ancient GNU ld didn't support --whole-archive et. al.
 
6523
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
6524
          $GREP 'no-whole-archive' > /dev/null; then
 
6525
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6526
        else
 
6527
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6528
        fi
 
6529
      else
 
6530
        with_gnu_ld=no
 
6531
        wlarc=
 
6532
 
 
6533
        # A generic and very simple default shared library creation
 
6534
        # command for GNU C++ for the case where it uses the native
 
6535
        # linker, instead of GNU ld.  If possible, this setting should
 
6536
        # overridden to take advantage of the native linker features on
 
6537
        # the platform it is being used on.
 
6538
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
6539
      fi
 
6540
 
 
6541
      # Commands to make compiler produce verbose output that lists
 
6542
      # what "hidden" libraries, object files and flags are used when
 
6543
      # linking a shared library.
 
6544
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
6545
 
 
6546
    else
 
6547
      GXX=no
 
6548
      with_gnu_ld=no
 
6549
      wlarc=
 
6550
    fi
 
6551
 
 
6552
    # PORTME: fill in a description of your system's C++ link characteristics
 
6553
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
6554
    _LT_TAGVAR(ld_shlibs, $1)=yes
 
6555
    case $host_os in
 
6556
      aix3*)
 
6557
        # FIXME: insert proper C++ library support
 
6558
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6559
        ;;
 
6560
      aix[[4-9]]*)
 
6561
        if test "$host_cpu" = ia64; then
 
6562
          # On IA64, the linker does run time linking by default, so we don't
 
6563
          # have to do anything special.
 
6564
          aix_use_runtimelinking=no
 
6565
          exp_sym_flag='-Bexport'
 
6566
          no_entry_flag=""
 
6567
        else
 
6568
          aix_use_runtimelinking=no
 
6569
 
 
6570
          # Test if we are trying to use run time linking or normal
 
6571
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6572
          # need to do runtime linking.
 
6573
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
6574
            for ld_flag in $LDFLAGS; do
 
6575
              case $ld_flag in
 
6576
              *-brtl*)
 
6577
                aix_use_runtimelinking=yes
 
6578
                break
 
6579
                ;;
 
6580
              esac
 
6581
            done
 
6582
            ;;
 
6583
          esac
 
6584
 
 
6585
          exp_sym_flag='-bexport'
 
6586
          no_entry_flag='-bnoentry'
 
6587
        fi
 
6588
 
 
6589
        # When large executables or shared objects are built, AIX ld can
 
6590
        # have problems creating the table of contents.  If linking a library
 
6591
        # or program results in "error TOC overflow" add -mminimal-toc to
 
6592
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6593
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6594
 
 
6595
        _LT_TAGVAR(archive_cmds, $1)=''
 
6596
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6597
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6598
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6599
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6600
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
6601
 
 
6602
        if test "$GXX" = yes; then
 
6603
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
6604
          # We only want to do this on AIX 4.2 and lower, the check
 
6605
          # below for broken collect2 doesn't work under 4.3+
 
6606
          collect2name=`${CC} -print-prog-name=collect2`
 
6607
          if test -f "$collect2name" &&
 
6608
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
6609
          then
 
6610
            # We have reworked collect2
 
6611
            :
 
6612
          else
 
6613
            # We have old collect2
 
6614
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
6615
            # It fails to find uninstalled libraries when the uninstalled
 
6616
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
6617
            # to unsupported forces relinking
 
6618
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6619
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6620
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6621
          fi
 
6622
          esac
 
6623
          shared_flag='-shared'
 
6624
          if test "$aix_use_runtimelinking" = yes; then
 
6625
            shared_flag="$shared_flag "'${wl}-G'
 
6626
          fi
 
6627
        else
 
6628
          # not using gcc
 
6629
          if test "$host_cpu" = ia64; then
 
6630
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6631
          # chokes on -Wl,-G. The following line is correct:
 
6632
          shared_flag='-G'
 
6633
          else
 
6634
            if test "$aix_use_runtimelinking" = yes; then
 
6635
              shared_flag='${wl}-G'
 
6636
            else
 
6637
              shared_flag='${wl}-bM:SRE'
 
6638
            fi
 
6639
          fi
 
6640
        fi
 
6641
 
 
6642
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 
6643
        # It seems that -bexpall does not export symbols beginning with
 
6644
        # underscore (_), so it is better to generate a list of symbols to
 
6645
        # export.
 
6646
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
6647
        if test "$aix_use_runtimelinking" = yes; then
 
6648
          # Warning - without using the other runtime loading flags (-brtl),
 
6649
          # -berok will link without error, but may produce a broken library.
 
6650
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
6651
          # Determine the default libpath from the value encoded in an empty
 
6652
          # executable.
 
6653
          _LT_SYS_MODULE_PATH_AIX([$1])
 
6654
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6655
 
 
6656
          _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6657
        else
 
6658
          if test "$host_cpu" = ia64; then
 
6659
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
6660
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
6661
            _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"
 
6662
          else
 
6663
            # Determine the default libpath from the value encoded in an
 
6664
            # empty executable.
 
6665
            _LT_SYS_MODULE_PATH_AIX([$1])
 
6666
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6667
            # Warning - without using the other run time loading flags,
 
6668
            # -berok will link without error, but may produce a broken library.
 
6669
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
6670
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
6671
            if test "$with_gnu_ld" = yes; then
 
6672
              # We only use this code for GNU lds that support --whole-archive.
 
6673
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6674
            else
 
6675
              # Exported symbols can be pulled into shared objects from archives
 
6676
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6677
            fi
 
6678
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6679
            # This is similar to how AIX traditionally builds its shared
 
6680
            # libraries.
 
6681
            _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'
 
6682
          fi
 
6683
        fi
 
6684
        ;;
 
6685
 
 
6686
      beos*)
 
6687
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
6688
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6689
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6690
          # support --undefined.  This deserves some investigation.  FIXME
 
6691
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6692
        else
 
6693
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6694
        fi
 
6695
        ;;
 
6696
 
 
6697
      chorus*)
 
6698
        case $cc_basename in
 
6699
          *)
 
6700
          # FIXME: insert proper C++ library support
 
6701
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6702
          ;;
 
6703
        esac
 
6704
        ;;
 
6705
 
 
6706
      cygwin* | mingw* | pw32* | cegcc*)
 
6707
        case $GXX,$cc_basename in
 
6708
        ,cl* | no,cl*)
 
6709
          # Native MSVC
 
6710
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6711
          # no search path for DLLs.
 
6712
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6713
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6714
          _LT_TAGVAR(always_export_symbols, $1)=yes
 
6715
          _LT_TAGVAR(file_list_spec, $1)='@'
 
6716
          # Tell ltmain to make .lib files, not .a files.
 
6717
          libext=lib
 
6718
          # Tell ltmain to make .dll files, not .so files.
 
6719
          shrext_cmds=".dll"
 
6720
          # FIXME: Setting linknames here is a bad hack.
 
6721
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
6722
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6723
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
6724
            else
 
6725
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
6726
            fi~
 
6727
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
6728
            linknames='
 
6729
          # The linker will not automatically build a static lib if we build a DLL.
 
6730
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6731
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6732
          # Don't use ranlib
 
6733
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
6734
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
6735
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
6736
            case $lt_outputfile in
 
6737
              *.exe|*.EXE) ;;
 
6738
              *)
 
6739
                lt_outputfile="$lt_outputfile.exe"
 
6740
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
6741
                ;;
 
6742
            esac~
 
6743
            func_to_tool_file "$lt_outputfile"~
 
6744
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
6745
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
6746
              $RM "$lt_outputfile.manifest";
 
6747
            fi'
 
6748
          ;;
 
6749
        *)
 
6750
          # g++
 
6751
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6752
          # as there is no search path for DLLs.
 
6753
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6754
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
6755
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6756
          _LT_TAGVAR(always_export_symbols, $1)=no
 
6757
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6758
 
 
6759
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6760
            _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'
 
6761
            # If the export-symbols file already is a .def file (1st line
 
6762
            # is EXPORTS), use it as is; otherwise, prepend...
 
6763
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6764
              cp $export_symbols $output_objdir/$soname.def;
 
6765
            else
 
6766
              echo EXPORTS > $output_objdir/$soname.def;
 
6767
              cat $export_symbols >> $output_objdir/$soname.def;
 
6768
            fi~
 
6769
            $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'
 
6770
          else
 
6771
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6772
          fi
 
6773
          ;;
 
6774
        esac
 
6775
        ;;
 
6776
      darwin* | rhapsody*)
 
6777
        _LT_DARWIN_LINKER_FEATURES($1)
 
6778
        ;;
 
6779
 
 
6780
      dgux*)
 
6781
        case $cc_basename in
 
6782
          ec++*)
 
6783
            # FIXME: insert proper C++ library support
 
6784
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6785
            ;;
 
6786
          ghcx*)
 
6787
            # Green Hills C++ Compiler
 
6788
            # FIXME: insert proper C++ library support
 
6789
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6790
            ;;
 
6791
          *)
 
6792
            # FIXME: insert proper C++ library support
 
6793
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6794
            ;;
 
6795
        esac
 
6796
        ;;
 
6797
 
 
6798
      freebsd[[12]]*)
 
6799
        # C++ shared libraries reported to be fairly broken before
 
6800
        # switch to ELF
 
6801
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6802
        ;;
 
6803
 
 
6804
      freebsd-elf*)
 
6805
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6806
        ;;
 
6807
 
 
6808
      freebsd* | dragonfly*)
 
6809
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
6810
        # conventions
 
6811
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6812
        ;;
 
6813
 
 
6814
      gnu*)
 
6815
        ;;
 
6816
 
 
6817
      haiku*)
 
6818
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6819
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6820
        ;;
 
6821
 
 
6822
      hpux9*)
 
6823
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6824
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6825
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6826
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6827
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
6828
                                             # but as the default
 
6829
                                             # location of the library.
 
6830
 
 
6831
        case $cc_basename in
 
6832
          CC*)
 
6833
            # FIXME: insert proper C++ library support
 
6834
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6835
            ;;
 
6836
          aCC*)
 
6837
            _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'
 
6838
            # Commands to make compiler produce verbose output that lists
 
6839
            # what "hidden" libraries, object files and flags are used when
 
6840
            # linking a shared library.
 
6841
            #
 
6842
            # There doesn't appear to be a way to prevent this compiler from
 
6843
            # explicitly linking system object files so we need to strip them
 
6844
            # from the output so that they don't get included in the library
 
6845
            # dependencies.
 
6846
            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; func_echo_all "$list"'
 
6847
            ;;
 
6848
          *)
 
6849
            if test "$GXX" = yes; then
 
6850
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
 
6851
            else
 
6852
              # FIXME: insert proper C++ library support
 
6853
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6854
            fi
 
6855
            ;;
 
6856
        esac
 
6857
        ;;
 
6858
 
 
6859
      hpux10*|hpux11*)
 
6860
        if test $with_gnu_ld = no; then
 
6861
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6862
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6863
 
 
6864
          case $host_cpu in
 
6865
            hppa*64*|ia64*)
 
6866
              ;;
 
6867
            *)
 
6868
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6869
              ;;
 
6870
          esac
 
6871
        fi
 
6872
        case $host_cpu in
 
6873
          hppa*64*|ia64*)
 
6874
            _LT_TAGVAR(hardcode_direct, $1)=no
 
6875
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6876
            ;;
 
6877
          *)
 
6878
            _LT_TAGVAR(hardcode_direct, $1)=yes
 
6879
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6880
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
6881
                                                 # but as the default
 
6882
                                                 # location of the library.
 
6883
            ;;
 
6884
        esac
 
6885
 
 
6886
        case $cc_basename in
 
6887
          CC*)
 
6888
            # FIXME: insert proper C++ library support
 
6889
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6890
            ;;
 
6891
          aCC*)
 
6892
            case $host_cpu in
 
6893
              hppa*64*)
 
6894
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6895
                ;;
 
6896
              ia64*)
 
6897
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6898
                ;;
 
6899
              *)
 
6900
                _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'
 
6901
                ;;
 
6902
            esac
 
6903
            # Commands to make compiler produce verbose output that lists
 
6904
            # what "hidden" libraries, object files and flags are used when
 
6905
            # linking a shared library.
 
6906
            #
 
6907
            # There doesn't appear to be a way to prevent this compiler from
 
6908
            # explicitly linking system object files so we need to strip them
 
6909
            # from the output so that they don't get included in the library
 
6910
            # dependencies.
 
6911
            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; func_echo_all "$list"'
 
6912
            ;;
 
6913
          *)
 
6914
            if test "$GXX" = yes; then
 
6915
              if test $with_gnu_ld = no; then
 
6916
                case $host_cpu in
 
6917
                  hppa*64*)
 
6918
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6919
                    ;;
 
6920
                  ia64*)
 
6921
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6922
                    ;;
 
6923
                  *)
 
6924
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6925
                    ;;
 
6926
                esac
 
6927
              fi
 
6928
            else
 
6929
              # FIXME: insert proper C++ library support
 
6930
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6931
            fi
 
6932
            ;;
 
6933
        esac
 
6934
        ;;
 
6935
 
 
6936
      interix[[3-9]]*)
 
6937
        _LT_TAGVAR(hardcode_direct, $1)=no
 
6938
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6939
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6940
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6941
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6942
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6943
        # default) and relocated if they conflict, which is a slow very memory
 
6944
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
6945
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6946
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6947
        _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'
 
6948
        _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'
 
6949
        ;;
 
6950
      irix5* | irix6*)
 
6951
        case $cc_basename in
 
6952
          CC*)
 
6953
            # SGI C++
 
6954
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
6955
 
 
6956
            # Archives containing C++ object files must be created using
 
6957
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
6958
            # necessary to make sure instantiated templates are included
 
6959
            # in the archive.
 
6960
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
6961
            ;;
 
6962
          *)
 
6963
            if test "$GXX" = yes; then
 
6964
              if test "$with_gnu_ld" = no; then
 
6965
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6966
              else
 
6967
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
 
6968
              fi
 
6969
            fi
 
6970
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6971
            ;;
 
6972
        esac
 
6973
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6974
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6975
        _LT_TAGVAR(inherit_rpath, $1)=yes
 
6976
        ;;
 
6977
 
 
6978
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
6979
        case $cc_basename in
 
6980
          KCC*)
 
6981
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
6982
 
 
6983
            # KCC will only create a shared library if the output file
 
6984
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
6985
            # to its proper name (with version) after linking.
 
6986
            _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'
 
6987
            _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'
 
6988
            # Commands to make compiler produce verbose output that lists
 
6989
            # what "hidden" libraries, object files and flags are used when
 
6990
            # linking a shared library.
 
6991
            #
 
6992
            # There doesn't appear to be a way to prevent this compiler from
 
6993
            # explicitly linking system object files so we need to strip them
 
6994
            # from the output so that they don't get included in the library
 
6995
            # dependencies.
 
6996
            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; func_echo_all "$list"'
 
6997
 
 
6998
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6999
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7000
 
 
7001
            # Archives containing C++ object files must be created using
 
7002
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
7003
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
7004
            ;;
 
7005
          icpc* | ecpc* )
 
7006
            # Intel C++
 
7007
            with_gnu_ld=yes
 
7008
            # version 8.0 and above of icpc choke on multiply defined symbols
 
7009
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
7010
            # earlier do not add the objects themselves.
 
7011
            case `$CC -V 2>&1` in
 
7012
              *"Version 7."*)
 
7013
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7014
                _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'
 
7015
                ;;
 
7016
              *)  # Version 8.0 or newer
 
7017
                tmp_idyn=
 
7018
                case $host_cpu in
 
7019
                  ia64*) tmp_idyn=' -i_dynamic';;
 
7020
                esac
 
7021
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7022
                _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'
 
7023
                ;;
 
7024
            esac
 
7025
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7026
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7027
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7028
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
7029
            ;;
 
7030
          pgCC* | pgcpp*)
 
7031
            # Portland Group C++ compiler
 
7032
            case `$CC -V` in
 
7033
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
 
7034
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 
7035
                rm -rf $tpldir~
 
7036
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
7037
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
7038
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 
7039
                rm -rf $tpldir~
 
7040
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
7041
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
7042
                $RANLIB $oldlib'
 
7043
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 
7044
                rm -rf $tpldir~
 
7045
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
7046
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
7047
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 
7048
                rm -rf $tpldir~
 
7049
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
7050
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
7051
              ;;
 
7052
            *) # Version 6 and above use weak symbols
 
7053
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
7054
              _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'
 
7055
              ;;
 
7056
            esac
 
7057
 
 
7058
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
7059
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7060
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
7061
            ;;
 
7062
          cxx*)
 
7063
            # Compaq C++
 
7064
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7065
            _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'
 
7066
 
 
7067
            runpath_var=LD_RUN_PATH
 
7068
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
7069
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7070
 
 
7071
            # Commands to make compiler produce verbose output that lists
 
7072
            # what "hidden" libraries, object files and flags are used when
 
7073
            # linking a shared library.
 
7074
            #
 
7075
            # There doesn't appear to be a way to prevent this compiler from
 
7076
            # explicitly linking system object files so we need to strip them
 
7077
            # from the output so that they don't get included in the library
 
7078
            # dependencies.
 
7079
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
 
7080
            ;;
 
7081
          xl* | mpixl* | bgxl*)
 
7082
            # IBM XL 8.0 on PPC, with GNU ld
 
7083
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7084
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7085
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7086
            if test "x$supports_anon_versioning" = xyes; then
 
7087
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
7088
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7089
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
7090
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7091
            fi
 
7092
            ;;
 
7093
          *)
 
7094
            case `$CC -V 2>&1 | sed 5q` in
 
7095
            *Sun\ C*)
 
7096
              # Sun C++ 5.9
 
7097
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
7098
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7099
              _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'
 
7100
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7101
              _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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
7102
              _LT_TAGVAR(compiler_needs_object, $1)=yes
 
7103
 
 
7104
              # Not sure whether something based on
 
7105
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
7106
              # would be better.
 
7107
              output_verbose_link_cmd='func_echo_all'
 
7108
 
 
7109
              # Archives containing C++ object files must be created using
 
7110
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
7111
              # necessary to make sure instantiated templates are included
 
7112
              # in the archive.
 
7113
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
7114
              ;;
 
7115
            esac
 
7116
            ;;
 
7117
        esac
 
7118
        ;;
 
7119
 
 
7120
      lynxos*)
 
7121
        # FIXME: insert proper C++ library support
 
7122
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7123
        ;;
 
7124
 
 
7125
      m88k*)
 
7126
        # FIXME: insert proper C++ library support
 
7127
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7128
        ;;
 
7129
 
 
7130
      mvs*)
 
7131
        case $cc_basename in
 
7132
          cxx*)
 
7133
            # FIXME: insert proper C++ library support
 
7134
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7135
            ;;
 
7136
          *)
 
7137
            # FIXME: insert proper C++ library support
 
7138
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7139
            ;;
 
7140
        esac
 
7141
        ;;
 
7142
 
 
7143
      netbsd*)
 
7144
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
7145
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
7146
          wlarc=
 
7147
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7148
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
7149
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7150
        fi
 
7151
        # Workaround some broken pre-1.5 toolchains
 
7152
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
7153
        ;;
 
7154
 
 
7155
      *nto* | *qnx*)
 
7156
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
7157
        ;;
 
7158
 
 
7159
      openbsd2*)
 
7160
        # C++ shared libraries are fairly broken
 
7161
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7162
        ;;
 
7163
 
 
7164
      openbsd*)
 
7165
        if test -f /usr/libexec/ld.so; then
 
7166
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
7167
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7168
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
7169
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
7170
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7171
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7172
            _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'
 
7173
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7174
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7175
          fi
 
7176
          output_verbose_link_cmd=func_echo_all
 
7177
        else
 
7178
          _LT_TAGVAR(ld_shlibs, $1)=no
 
7179
        fi
 
7180
        ;;
 
7181
 
 
7182
      osf3* | osf4* | osf5*)
 
7183
        case $cc_basename in
 
7184
          KCC*)
 
7185
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
7186
 
 
7187
            # KCC will only create a shared library if the output file
 
7188
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
7189
            # to its proper name (with version) after linking.
 
7190
            _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'
 
7191
 
 
7192
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7193
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7194
 
 
7195
            # Archives containing C++ object files must be created using
 
7196
            # the KAI C++ compiler.
 
7197
            case $host in
 
7198
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
7199
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 
7200
            esac
 
7201
            ;;
 
7202
          RCC*)
 
7203
            # Rational C++ 2.4.1
 
7204
            # FIXME: insert proper C++ library support
 
7205
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7206
            ;;
 
7207
          cxx*)
 
7208
            case $host in
 
7209
              osf3*)
 
7210
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7211
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
7212
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7213
                ;;
 
7214
              *)
 
7215
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
7216
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
7217
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
7218
                  echo "-hidden">> $lib.exp~
 
7219
                  $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
 
7220
                  $RM $lib.exp'
 
7221
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
7222
                ;;
 
7223
            esac
 
7224
 
 
7225
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7226
 
 
7227
            # Commands to make compiler produce verbose output that lists
 
7228
            # what "hidden" libraries, object files and flags are used when
 
7229
            # linking a shared library.
 
7230
            #
 
7231
            # There doesn't appear to be a way to prevent this compiler from
 
7232
            # explicitly linking system object files so we need to strip them
 
7233
            # from the output so that they don't get included in the library
 
7234
            # dependencies.
 
7235
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
7236
            ;;
 
7237
          *)
 
7238
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
7239
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7240
              case $host in
 
7241
                osf3*)
 
7242
                  _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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7243
                  ;;
 
7244
                *)
 
7245
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7246
                  ;;
 
7247
              esac
 
7248
 
 
7249
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7250
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7251
 
 
7252
              # Commands to make compiler produce verbose output that lists
 
7253
              # what "hidden" libraries, object files and flags are used when
 
7254
              # linking a shared library.
 
7255
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
7256
 
 
7257
            else
 
7258
              # FIXME: insert proper C++ library support
 
7259
              _LT_TAGVAR(ld_shlibs, $1)=no
 
7260
            fi
 
7261
            ;;
 
7262
        esac
 
7263
        ;;
 
7264
 
 
7265
      psos*)
 
7266
        # FIXME: insert proper C++ library support
 
7267
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7268
        ;;
 
7269
 
 
7270
      sunos4*)
 
7271
        case $cc_basename in
 
7272
          CC*)
 
7273
            # Sun C++ 4.x
 
7274
            # FIXME: insert proper C++ library support
 
7275
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7276
            ;;
 
7277
          lcc*)
 
7278
            # Lucid
 
7279
            # FIXME: insert proper C++ library support
 
7280
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7281
            ;;
 
7282
          *)
 
7283
            # FIXME: insert proper C++ library support
 
7284
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7285
            ;;
 
7286
        esac
 
7287
        ;;
 
7288
 
 
7289
      solaris*)
 
7290
        case $cc_basename in
 
7291
          CC* | sunCC*)
 
7292
            # Sun C++ 4.2, 5.x and Centerline C++
 
7293
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 
7294
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
7295
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7296
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7297
              $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'
 
7298
 
 
7299
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7300
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7301
            case $host_os in
 
7302
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7303
              *)
 
7304
                # The compiler driver will combine and reorder linker options,
 
7305
                # but understands `-z linker_flag'.
 
7306
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7307
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
7308
                ;;
 
7309
            esac
 
7310
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7311
 
 
7312
            output_verbose_link_cmd='func_echo_all'
 
7313
 
 
7314
            # Archives containing C++ object files must be created using
 
7315
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
7316
            # necessary to make sure instantiated templates are included
 
7317
            # in the archive.
 
7318
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
7319
            ;;
 
7320
          gcx*)
 
7321
            # Green Hills C++ Compiler
 
7322
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7323
 
 
7324
            # The C++ compiler must be used to create the archive.
 
7325
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
7326
            ;;
 
7327
          *)
 
7328
            # GNU C++ compiler with Solaris linker
 
7329
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
7330
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
7331
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
7332
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7333
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7334
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7335
 
 
7336
                # Commands to make compiler produce verbose output that lists
 
7337
                # what "hidden" libraries, object files and flags are used when
 
7338
                # linking a shared library.
 
7339
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
7340
              else
 
7341
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
7342
                # platform.
 
7343
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7344
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7345
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7346
 
 
7347
                # Commands to make compiler produce verbose output that lists
 
7348
                # what "hidden" libraries, object files and flags are used when
 
7349
                # linking a shared library.
 
7350
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
7351
              fi
 
7352
 
 
7353
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
7354
              case $host_os in
 
7355
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7356
                *)
 
7357
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
7358
                  ;;
 
7359
              esac
 
7360
            fi
 
7361
            ;;
 
7362
        esac
 
7363
        ;;
 
7364
 
 
7365
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
7366
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7367
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7368
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7369
      runpath_var='LD_RUN_PATH'
 
7370
 
 
7371
      case $cc_basename in
 
7372
        CC*)
 
7373
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7374
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7375
          ;;
 
7376
        *)
 
7377
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7378
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7379
          ;;
 
7380
      esac
 
7381
      ;;
 
7382
 
 
7383
      sysv5* | sco3.2v5* | sco5v6*)
 
7384
        # Note: We can NOT use -z defs as we might desire, because we do not
 
7385
        # link with -lc, and that would cause any symbols used from libc to
 
7386
        # always be unresolved, which means just about no library would
 
7387
        # ever link correctly.  If we're not using GNU ld we use -z text
 
7388
        # though, which does catch some bad symbols but isn't as heavy-handed
 
7389
        # as -z defs.
 
7390
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7391
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
7392
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7393
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7394
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
7395
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7396
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7397
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
7398
        runpath_var='LD_RUN_PATH'
 
7399
 
 
7400
        case $cc_basename in
 
7401
          CC*)
 
7402
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7403
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7404
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 
7405
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
 
7406
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 
7407
              '"$_LT_TAGVAR(reload_cmds, $1)"
 
7408
            ;;
 
7409
          *)
 
7410
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7411
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7412
            ;;
 
7413
        esac
 
7414
      ;;
 
7415
 
 
7416
      tandem*)
 
7417
        case $cc_basename in
 
7418
          NCC*)
 
7419
            # NonStop-UX NCC 3.20
 
7420
            # FIXME: insert proper C++ library support
 
7421
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7422
            ;;
 
7423
          *)
 
7424
            # FIXME: insert proper C++ library support
 
7425
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7426
            ;;
 
7427
        esac
 
7428
        ;;
 
7429
 
 
7430
      vxworks*)
 
7431
        # FIXME: insert proper C++ library support
 
7432
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7433
        ;;
 
7434
 
 
7435
      *)
 
7436
        # FIXME: insert proper C++ library support
 
7437
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7438
        ;;
 
7439
    esac
 
7440
 
 
7441
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
7442
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
7443
 
 
7444
    _LT_TAGVAR(GCC, $1)="$GXX"
 
7445
    _LT_TAGVAR(LD, $1)="$LD"
 
7446
 
 
7447
    ## CAVEAT EMPTOR:
 
7448
    ## There is no encapsulation within the following macros, do not change
 
7449
    ## the running order or otherwise move them around unless you know exactly
 
7450
    ## what you are doing...
 
7451
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
7452
    _LT_COMPILER_PIC($1)
 
7453
    _LT_COMPILER_C_O($1)
 
7454
    _LT_COMPILER_FILE_LOCKS($1)
 
7455
    _LT_LINKER_SHLIBS($1)
 
7456
    _LT_SYS_DYNAMIC_LINKER($1)
 
7457
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7458
 
 
7459
    _LT_CONFIG($1)
 
7460
  fi # test -n "$compiler"
 
7461
 
 
7462
  CC=$lt_save_CC
 
7463
  CFLAGS=$lt_save_CFLAGS
 
7464
  LDCXX=$LD
 
7465
  LD=$lt_save_LD
 
7466
  GCC=$lt_save_GCC
 
7467
  with_gnu_ld=$lt_save_with_gnu_ld
 
7468
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
7469
  lt_cv_path_LD=$lt_save_path_LD
 
7470
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
7471
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
7472
fi # test "$_lt_caught_CXX_error" != yes
 
7473
 
 
7474
AC_LANG_POP
 
7475
])# _LT_LANG_CXX_CONFIG
 
7476
 
 
7477
 
 
7478
# _LT_FUNC_STRIPNAME_CNF
 
7479
# ----------------------
 
7480
# func_stripname_cnf prefix suffix name
 
7481
# strip PREFIX and SUFFIX off of NAME.
 
7482
# PREFIX and SUFFIX must not contain globbing or regex special
 
7483
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
7484
# dot (in which case that matches only a dot).
 
7485
#
 
7486
# This function is identical to the (non-XSI) version of func_stripname,
 
7487
# except this one can be used by m4 code that may be executed by configure,
 
7488
# rather than the libtool script.
 
7489
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 
7490
AC_REQUIRE([_LT_DECL_SED])
 
7491
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 
7492
func_stripname_cnf ()
 
7493
{
 
7494
  case ${2} in
 
7495
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
7496
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
7497
  esac
 
7498
} # func_stripname_cnf
 
7499
])# _LT_FUNC_STRIPNAME_CNF
 
7500
 
 
7501
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
 
7502
# ---------------------------------
 
7503
# Figure out "hidden" library dependencies from verbose
 
7504
# compiler output when linking a shared library.
 
7505
# Parse the compiler output and extract the necessary
 
7506
# objects, libraries and library flags.
 
7507
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 
7508
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7509
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
 
7510
# Dependencies to place before and after the object being linked:
 
7511
_LT_TAGVAR(predep_objects, $1)=
 
7512
_LT_TAGVAR(postdep_objects, $1)=
 
7513
_LT_TAGVAR(predeps, $1)=
 
7514
_LT_TAGVAR(postdeps, $1)=
 
7515
_LT_TAGVAR(compiler_lib_search_path, $1)=
 
7516
 
 
7517
dnl we can't use the lt_simple_compile_test_code here,
 
7518
dnl because it contains code intended for an executable,
 
7519
dnl not a library.  It's possible we should let each
 
7520
dnl tag define a new lt_????_link_test_code variable,
 
7521
dnl but it's only used here...
 
7522
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 
7523
int a;
 
7524
void foo (void) { a = 0; }
 
7525
_LT_EOF
 
7526
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 
7527
class Foo
 
7528
{
 
7529
public:
 
7530
  Foo (void) { a = 0; }
 
7531
private:
 
7532
  int a;
 
7533
};
 
7534
_LT_EOF
 
7535
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 
7536
      subroutine foo
 
7537
      implicit none
 
7538
      integer*4 a
 
7539
      a=0
 
7540
      return
 
7541
      end
 
7542
_LT_EOF
 
7543
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 
7544
      subroutine foo
 
7545
      implicit none
 
7546
      integer a
 
7547
      a=0
 
7548
      return
 
7549
      end
 
7550
_LT_EOF
 
7551
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 
7552
public class foo {
 
7553
  private int a;
 
7554
  public void bar (void) {
 
7555
    a = 0;
 
7556
  }
 
7557
};
 
7558
_LT_EOF
 
7559
])
 
7560
 
 
7561
_lt_libdeps_save_CFLAGS=$CFLAGS
 
7562
case "$CC $CFLAGS " in #(
 
7563
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
7564
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
7565
esac
 
7566
 
 
7567
dnl Parse the compiler output and extract the necessary
 
7568
dnl objects, libraries and library flags.
 
7569
if AC_TRY_EVAL(ac_compile); then
 
7570
  # Parse the compiler output and extract the necessary
 
7571
  # objects, libraries and library flags.
 
7572
 
 
7573
  # Sentinel used to keep track of whether or not we are before
 
7574
  # the conftest object file.
 
7575
  pre_test_object_deps_done=no
 
7576
 
 
7577
  for p in `eval "$output_verbose_link_cmd"`; do
 
7578
    case ${prev}${p} in
 
7579
 
 
7580
    -L* | -R* | -l*)
 
7581
       # Some compilers place space between "-{L,R}" and the path.
 
7582
       # Remove the space.
 
7583
       if test $p = "-L" ||
 
7584
          test $p = "-R"; then
 
7585
         prev=$p
 
7586
         continue
 
7587
       fi
 
7588
 
 
7589
       # Expand the sysroot to ease extracting the directories later.
 
7590
       if test -z "$prev"; then
 
7591
         case $p in
 
7592
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
7593
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
7594
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
7595
         esac
 
7596
       fi
 
7597
       case $p in
 
7598
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
7599
       esac
 
7600
       if test "$pre_test_object_deps_done" = no; then
 
7601
         case ${prev} in
 
7602
         -L | -R)
 
7603
           # Internal compiler library paths should come after those
 
7604
           # provided the user.  The postdeps already come after the
 
7605
           # user supplied libs so there is no need to process them.
 
7606
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 
7607
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
7608
           else
 
7609
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
7610
           fi
 
7611
           ;;
 
7612
         # The "-l" case would never come before the object being
 
7613
         # linked, so don't bother handling this case.
 
7614
         esac
 
7615
       else
 
7616
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 
7617
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
 
7618
         else
 
7619
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
 
7620
         fi
 
7621
       fi
 
7622
       prev=
 
7623
       ;;
 
7624
 
 
7625
    *.lto.$objext) ;; # Ignore GCC LTO objects
 
7626
    *.$objext)
 
7627
       # This assumes that the test object file only shows up
 
7628
       # once in the compiler output.
 
7629
       if test "$p" = "conftest.$objext"; then
 
7630
         pre_test_object_deps_done=yes
 
7631
         continue
 
7632
       fi
 
7633
 
 
7634
       if test "$pre_test_object_deps_done" = no; then
 
7635
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 
7636
           _LT_TAGVAR(predep_objects, $1)="$p"
 
7637
         else
 
7638
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 
7639
         fi
 
7640
       else
 
7641
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 
7642
           _LT_TAGVAR(postdep_objects, $1)="$p"
 
7643
         else
 
7644
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 
7645
         fi
 
7646
       fi
 
7647
       ;;
 
7648
 
 
7649
    *) ;; # Ignore the rest.
 
7650
 
 
7651
    esac
 
7652
  done
 
7653
 
 
7654
  # Clean up.
 
7655
  rm -f a.out a.exe
 
7656
else
 
7657
  echo "libtool.m4: error: problem compiling $1 test program"
 
7658
fi
 
7659
 
 
7660
$RM -f confest.$objext
 
7661
CFLAGS=$_lt_libdeps_save_CFLAGS
 
7662
 
 
7663
# PORTME: override above test on systems where it is broken
 
7664
m4_if([$1], [CXX],
 
7665
[case $host_os in
 
7666
interix[[3-9]]*)
 
7667
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
7668
  # hack all around it, let's just trust "g++" to DTRT.
 
7669
  _LT_TAGVAR(predep_objects,$1)=
 
7670
  _LT_TAGVAR(postdep_objects,$1)=
 
7671
  _LT_TAGVAR(postdeps,$1)=
 
7672
  ;;
 
7673
 
 
7674
linux*)
 
7675
  case `$CC -V 2>&1 | sed 5q` in
 
7676
  *Sun\ C*)
 
7677
    # Sun C++ 5.9
 
7678
 
 
7679
    # The more standards-conforming stlport4 library is
 
7680
    # incompatible with the Cstd library. Avoid specifying
 
7681
    # it if it's in CXXFLAGS. Ignore libCrun as
 
7682
    # -library=stlport4 depends on it.
 
7683
    case " $CXX $CXXFLAGS " in
 
7684
    *" -library=stlport4 "*)
 
7685
      solaris_use_stlport4=yes
 
7686
      ;;
 
7687
    esac
 
7688
 
 
7689
    if test "$solaris_use_stlport4" != yes; then
 
7690
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
7691
    fi
 
7692
    ;;
 
7693
  esac
 
7694
  ;;
 
7695
 
 
7696
solaris*)
 
7697
  case $cc_basename in
 
7698
  CC* | sunCC*)
 
7699
    # The more standards-conforming stlport4 library is
 
7700
    # incompatible with the Cstd library. Avoid specifying
 
7701
    # it if it's in CXXFLAGS. Ignore libCrun as
 
7702
    # -library=stlport4 depends on it.
 
7703
    case " $CXX $CXXFLAGS " in
 
7704
    *" -library=stlport4 "*)
 
7705
      solaris_use_stlport4=yes
 
7706
      ;;
 
7707
    esac
 
7708
 
 
7709
    # Adding this requires a known-good setup of shared libraries for
 
7710
    # Sun compiler versions before 5.6, else PIC objects from an old
 
7711
    # archive will be linked into the output, leading to subtle bugs.
 
7712
    if test "$solaris_use_stlport4" != yes; then
 
7713
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
7714
    fi
 
7715
    ;;
 
7716
  esac
 
7717
  ;;
 
7718
esac
 
7719
])
 
7720
 
 
7721
case " $_LT_TAGVAR(postdeps, $1) " in
 
7722
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
7723
esac
 
7724
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 
7725
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 
7726
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
7727
fi
 
7728
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 
7729
    [The directories searched by this compiler when creating a shared library])
 
7730
_LT_TAGDECL([], [predep_objects], [1],
 
7731
    [Dependencies to place before and after the objects being linked to
 
7732
    create a shared library])
 
7733
_LT_TAGDECL([], [postdep_objects], [1])
 
7734
_LT_TAGDECL([], [predeps], [1])
 
7735
_LT_TAGDECL([], [postdeps], [1])
 
7736
_LT_TAGDECL([], [compiler_lib_search_path], [1],
 
7737
    [The library search path used internally by the compiler when linking
 
7738
    a shared library])
 
7739
])# _LT_SYS_HIDDEN_LIBDEPS
 
7740
 
 
7741
 
 
7742
# _LT_LANG_F77_CONFIG([TAG])
 
7743
# --------------------------
 
7744
# Ensure that the configuration variables for a Fortran 77 compiler are
 
7745
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7746
# to write the compiler configuration to `libtool'.
 
7747
m4_defun([_LT_LANG_F77_CONFIG],
 
7748
[AC_LANG_PUSH(Fortran 77)
 
7749
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7750
  _lt_disable_F77=yes
 
7751
fi
 
7752
 
 
7753
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7754
_LT_TAGVAR(allow_undefined_flag, $1)=
 
7755
_LT_TAGVAR(always_export_symbols, $1)=no
 
7756
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
7757
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7758
_LT_TAGVAR(hardcode_direct, $1)=no
 
7759
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7760
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7761
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7762
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7763
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
7764
_LT_TAGVAR(hardcode_automatic, $1)=no
 
7765
_LT_TAGVAR(inherit_rpath, $1)=no
 
7766
_LT_TAGVAR(module_cmds, $1)=
 
7767
_LT_TAGVAR(module_expsym_cmds, $1)=
 
7768
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
7769
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7770
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7771
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
7772
_LT_TAGVAR(no_undefined_flag, $1)=
 
7773
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7774
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7775
 
 
7776
# Source file extension for f77 test sources.
 
7777
ac_ext=f
 
7778
 
 
7779
# Object file extension for compiled f77 test sources.
 
7780
objext=o
 
7781
_LT_TAGVAR(objext, $1)=$objext
 
7782
 
 
7783
# No sense in running all these tests if we already determined that
 
7784
# the F77 compiler isn't working.  Some variables (like enable_shared)
 
7785
# are currently assumed to apply to all compilers on this platform,
 
7786
# and will be corrupted by setting them based on a non-working compiler.
 
7787
if test "$_lt_disable_F77" != yes; then
 
7788
  # Code to be used in simple compile tests
 
7789
  lt_simple_compile_test_code="\
 
7790
      subroutine t
 
7791
      return
 
7792
      end
 
7793
"
 
7794
 
 
7795
  # Code to be used in simple link tests
 
7796
  lt_simple_link_test_code="\
 
7797
      program t
 
7798
      end
 
7799
"
 
7800
 
 
7801
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7802
  _LT_TAG_COMPILER
 
7803
 
 
7804
  # save warnings/boilerplate of simple test code
 
7805
  _LT_COMPILER_BOILERPLATE
 
7806
  _LT_LINKER_BOILERPLATE
 
7807
 
 
7808
  # Allow CC to be a program name with arguments.
 
7809
  lt_save_CC="$CC"
 
7810
  lt_save_GCC=$GCC
 
7811
  lt_save_CFLAGS=$CFLAGS
 
7812
  CC=${F77-"f77"}
 
7813
  CFLAGS=$FFLAGS
 
7814
  compiler=$CC
 
7815
  _LT_TAGVAR(compiler, $1)=$CC
 
7816
  _LT_CC_BASENAME([$compiler])
 
7817
  GCC=$G77
 
7818
  if test -n "$compiler"; then
 
7819
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
7820
    AC_MSG_RESULT([$can_build_shared])
 
7821
 
 
7822
    AC_MSG_CHECKING([whether to build shared libraries])
 
7823
    test "$can_build_shared" = "no" && enable_shared=no
 
7824
 
 
7825
    # On AIX, shared libraries and static libraries use the same namespace, and
 
7826
    # are all built from PIC.
 
7827
    case $host_os in
 
7828
      aix3*)
 
7829
        test "$enable_shared" = yes && enable_static=no
 
7830
        if test -n "$RANLIB"; then
 
7831
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7832
          postinstall_cmds='$RANLIB $lib'
 
7833
        fi
 
7834
        ;;
 
7835
      aix[[4-9]]*)
 
7836
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7837
          test "$enable_shared" = yes && enable_static=no
 
7838
        fi
 
7839
        ;;
 
7840
    esac
 
7841
    AC_MSG_RESULT([$enable_shared])
 
7842
 
 
7843
    AC_MSG_CHECKING([whether to build static libraries])
 
7844
    # Make sure either enable_shared or enable_static is yes.
 
7845
    test "$enable_shared" = yes || enable_static=yes
 
7846
    AC_MSG_RESULT([$enable_static])
 
7847
 
 
7848
    _LT_TAGVAR(GCC, $1)="$G77"
 
7849
    _LT_TAGVAR(LD, $1)="$LD"
 
7850
 
 
7851
    ## CAVEAT EMPTOR:
 
7852
    ## There is no encapsulation within the following macros, do not change
 
7853
    ## the running order or otherwise move them around unless you know exactly
 
7854
    ## what you are doing...
 
7855
    _LT_COMPILER_PIC($1)
 
7856
    _LT_COMPILER_C_O($1)
 
7857
    _LT_COMPILER_FILE_LOCKS($1)
 
7858
    _LT_LINKER_SHLIBS($1)
 
7859
    _LT_SYS_DYNAMIC_LINKER($1)
 
7860
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7861
 
 
7862
    _LT_CONFIG($1)
 
7863
  fi # test -n "$compiler"
 
7864
 
 
7865
  GCC=$lt_save_GCC
 
7866
  CC="$lt_save_CC"
 
7867
  CFLAGS="$lt_save_CFLAGS"
 
7868
fi # test "$_lt_disable_F77" != yes
 
7869
 
 
7870
AC_LANG_POP
 
7871
])# _LT_LANG_F77_CONFIG
 
7872
 
 
7873
 
 
7874
# _LT_LANG_FC_CONFIG([TAG])
 
7875
# -------------------------
 
7876
# Ensure that the configuration variables for a Fortran compiler are
 
7877
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7878
# to write the compiler configuration to `libtool'.
 
7879
m4_defun([_LT_LANG_FC_CONFIG],
 
7880
[AC_LANG_PUSH(Fortran)
 
7881
 
 
7882
if test -z "$FC" || test "X$FC" = "Xno"; then
 
7883
  _lt_disable_FC=yes
 
7884
fi
 
7885
 
 
7886
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7887
_LT_TAGVAR(allow_undefined_flag, $1)=
 
7888
_LT_TAGVAR(always_export_symbols, $1)=no
 
7889
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
7890
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7891
_LT_TAGVAR(hardcode_direct, $1)=no
 
7892
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7893
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7894
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7895
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7896
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
7897
_LT_TAGVAR(hardcode_automatic, $1)=no
 
7898
_LT_TAGVAR(inherit_rpath, $1)=no
 
7899
_LT_TAGVAR(module_cmds, $1)=
 
7900
_LT_TAGVAR(module_expsym_cmds, $1)=
 
7901
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
7902
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7903
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7904
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
7905
_LT_TAGVAR(no_undefined_flag, $1)=
 
7906
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7907
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7908
 
 
7909
# Source file extension for fc test sources.
 
7910
ac_ext=${ac_fc_srcext-f}
 
7911
 
 
7912
# Object file extension for compiled fc test sources.
 
7913
objext=o
 
7914
_LT_TAGVAR(objext, $1)=$objext
 
7915
 
 
7916
# No sense in running all these tests if we already determined that
 
7917
# the FC compiler isn't working.  Some variables (like enable_shared)
 
7918
# are currently assumed to apply to all compilers on this platform,
 
7919
# and will be corrupted by setting them based on a non-working compiler.
 
7920
if test "$_lt_disable_FC" != yes; then
 
7921
  # Code to be used in simple compile tests
 
7922
  lt_simple_compile_test_code="\
 
7923
      subroutine t
 
7924
      return
 
7925
      end
 
7926
"
 
7927
 
 
7928
  # Code to be used in simple link tests
 
7929
  lt_simple_link_test_code="\
 
7930
      program t
 
7931
      end
 
7932
"
 
7933
 
 
7934
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7935
  _LT_TAG_COMPILER
 
7936
 
 
7937
  # save warnings/boilerplate of simple test code
 
7938
  _LT_COMPILER_BOILERPLATE
 
7939
  _LT_LINKER_BOILERPLATE
 
7940
 
 
7941
  # Allow CC to be a program name with arguments.
 
7942
  lt_save_CC="$CC"
 
7943
  lt_save_GCC=$GCC
 
7944
  lt_save_CFLAGS=$CFLAGS
 
7945
  CC=${FC-"f95"}
 
7946
  CFLAGS=$FCFLAGS
 
7947
  compiler=$CC
 
7948
  GCC=$ac_cv_fc_compiler_gnu
 
7949
 
 
7950
  _LT_TAGVAR(compiler, $1)=$CC
 
7951
  _LT_CC_BASENAME([$compiler])
 
7952
 
 
7953
  if test -n "$compiler"; then
 
7954
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
7955
    AC_MSG_RESULT([$can_build_shared])
 
7956
 
 
7957
    AC_MSG_CHECKING([whether to build shared libraries])
 
7958
    test "$can_build_shared" = "no" && enable_shared=no
 
7959
 
 
7960
    # On AIX, shared libraries and static libraries use the same namespace, and
 
7961
    # are all built from PIC.
 
7962
    case $host_os in
 
7963
      aix3*)
 
7964
        test "$enable_shared" = yes && enable_static=no
 
7965
        if test -n "$RANLIB"; then
 
7966
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7967
          postinstall_cmds='$RANLIB $lib'
 
7968
        fi
 
7969
        ;;
 
7970
      aix[[4-9]]*)
 
7971
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7972
          test "$enable_shared" = yes && enable_static=no
 
7973
        fi
 
7974
        ;;
 
7975
    esac
 
7976
    AC_MSG_RESULT([$enable_shared])
 
7977
 
 
7978
    AC_MSG_CHECKING([whether to build static libraries])
 
7979
    # Make sure either enable_shared or enable_static is yes.
 
7980
    test "$enable_shared" = yes || enable_static=yes
 
7981
    AC_MSG_RESULT([$enable_static])
 
7982
 
 
7983
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
 
7984
    _LT_TAGVAR(LD, $1)="$LD"
 
7985
 
 
7986
    ## CAVEAT EMPTOR:
 
7987
    ## There is no encapsulation within the following macros, do not change
 
7988
    ## the running order or otherwise move them around unless you know exactly
 
7989
    ## what you are doing...
 
7990
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
7991
    _LT_COMPILER_PIC($1)
 
7992
    _LT_COMPILER_C_O($1)
 
7993
    _LT_COMPILER_FILE_LOCKS($1)
 
7994
    _LT_LINKER_SHLIBS($1)
 
7995
    _LT_SYS_DYNAMIC_LINKER($1)
 
7996
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7997
 
 
7998
    _LT_CONFIG($1)
 
7999
  fi # test -n "$compiler"
 
8000
 
 
8001
  GCC=$lt_save_GCC
 
8002
  CC=$lt_save_CC
 
8003
  CFLAGS=$lt_save_CFLAGS
 
8004
fi # test "$_lt_disable_FC" != yes
 
8005
 
 
8006
AC_LANG_POP
 
8007
])# _LT_LANG_FC_CONFIG
 
8008
 
 
8009
 
 
8010
# _LT_LANG_GCJ_CONFIG([TAG])
 
8011
# --------------------------
 
8012
# Ensure that the configuration variables for the GNU Java Compiler compiler
 
8013
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
8014
# to write the compiler configuration to `libtool'.
 
8015
m4_defun([_LT_LANG_GCJ_CONFIG],
 
8016
[AC_REQUIRE([LT_PROG_GCJ])dnl
 
8017
AC_LANG_SAVE
 
8018
 
 
8019
# Source file extension for Java test sources.
 
8020
ac_ext=java
 
8021
 
 
8022
# Object file extension for compiled Java test sources.
 
8023
objext=o
 
8024
_LT_TAGVAR(objext, $1)=$objext
 
8025
 
 
8026
# Code to be used in simple compile tests
 
8027
lt_simple_compile_test_code="class foo {}"
 
8028
 
 
8029
# Code to be used in simple link tests
 
8030
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
8031
 
 
8032
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
8033
_LT_TAG_COMPILER
 
8034
 
 
8035
# save warnings/boilerplate of simple test code
 
8036
_LT_COMPILER_BOILERPLATE
 
8037
_LT_LINKER_BOILERPLATE
 
8038
 
 
8039
# Allow CC to be a program name with arguments.
 
8040
lt_save_CC=$CC
 
8041
lt_save_CFLAGS=$CFLAGS
 
8042
lt_save_GCC=$GCC
 
8043
GCC=yes
 
8044
CC=${GCJ-"gcj"}
 
8045
CFLAGS=$GCJFLAGS
 
8046
compiler=$CC
 
8047
_LT_TAGVAR(compiler, $1)=$CC
 
8048
_LT_TAGVAR(LD, $1)="$LD"
 
8049
_LT_CC_BASENAME([$compiler])
 
8050
 
 
8051
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
8052
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
8053
 
 
8054
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8055
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8056
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
8057
 
 
8058
if test -n "$compiler"; then
 
8059
  _LT_COMPILER_NO_RTTI($1)
 
8060
  _LT_COMPILER_PIC($1)
 
8061
  _LT_COMPILER_C_O($1)
 
8062
  _LT_COMPILER_FILE_LOCKS($1)
 
8063
  _LT_LINKER_SHLIBS($1)
 
8064
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
8065
 
 
8066
  _LT_CONFIG($1)
 
8067
fi
 
8068
 
 
8069
AC_LANG_RESTORE
 
8070
 
 
8071
GCC=$lt_save_GCC
 
8072
CC=$lt_save_CC
 
8073
CFLAGS=$lt_save_CFLAGS
 
8074
])# _LT_LANG_GCJ_CONFIG
 
8075
 
 
8076
 
 
8077
# _LT_LANG_RC_CONFIG([TAG])
 
8078
# -------------------------
 
8079
# Ensure that the configuration variables for the Windows resource compiler
 
8080
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
8081
# to write the compiler configuration to `libtool'.
 
8082
m4_defun([_LT_LANG_RC_CONFIG],
 
8083
[AC_REQUIRE([LT_PROG_RC])dnl
 
8084
AC_LANG_SAVE
 
8085
 
 
8086
# Source file extension for RC test sources.
 
8087
ac_ext=rc
 
8088
 
 
8089
# Object file extension for compiled RC test sources.
 
8090
objext=o
 
8091
_LT_TAGVAR(objext, $1)=$objext
 
8092
 
 
8093
# Code to be used in simple compile tests
 
8094
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
8095
 
 
8096
# Code to be used in simple link tests
 
8097
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
8098
 
 
8099
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
8100
_LT_TAG_COMPILER
 
8101
 
 
8102
# save warnings/boilerplate of simple test code
 
8103
_LT_COMPILER_BOILERPLATE
 
8104
_LT_LINKER_BOILERPLATE
 
8105
 
 
8106
# Allow CC to be a program name with arguments.
 
8107
lt_save_CC="$CC"
 
8108
lt_save_CFLAGS=$CFLAGS
 
8109
lt_save_GCC=$GCC
 
8110
GCC=
 
8111
CC=${RC-"windres"}
 
8112
CFLAGS=
 
8113
compiler=$CC
 
8114
_LT_TAGVAR(compiler, $1)=$CC
 
8115
_LT_CC_BASENAME([$compiler])
 
8116
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
8117
 
 
8118
if test -n "$compiler"; then
 
8119
  :
 
8120
  _LT_CONFIG($1)
 
8121
fi
 
8122
 
 
8123
GCC=$lt_save_GCC
 
8124
AC_LANG_RESTORE
 
8125
CC=$lt_save_CC
 
8126
CFLAGS=$lt_save_CFLAGS
 
8127
])# _LT_LANG_RC_CONFIG
 
8128
 
 
8129
 
 
8130
# LT_PROG_GCJ
 
8131
# -----------
 
8132
AC_DEFUN([LT_PROG_GCJ],
 
8133
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
 
8134
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
 
8135
    [AC_CHECK_TOOL(GCJ, gcj,)
 
8136
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
8137
      AC_SUBST(GCJFLAGS)])])[]dnl
 
8138
])
 
8139
 
 
8140
# Old name:
 
8141
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
 
8142
dnl aclocal-1.4 backwards compatibility:
 
8143
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 
8144
 
 
8145
 
 
8146
# LT_PROG_RC
 
8147
# ----------
 
8148
AC_DEFUN([LT_PROG_RC],
 
8149
[AC_CHECK_TOOL(RC, windres,)
 
8150
])
 
8151
 
 
8152
# Old name:
 
8153
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
 
8154
dnl aclocal-1.4 backwards compatibility:
 
8155
dnl AC_DEFUN([LT_AC_PROG_RC], [])
 
8156
 
 
8157
 
 
8158
# _LT_DECL_EGREP
 
8159
# --------------
 
8160
# If we don't have a new enough Autoconf to choose the best grep
 
8161
# available, choose the one first in the user's PATH.
 
8162
m4_defun([_LT_DECL_EGREP],
 
8163
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
8164
AC_REQUIRE([AC_PROG_FGREP])dnl
 
8165
test -z "$GREP" && GREP=grep
 
8166
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
 
8167
_LT_DECL([], [EGREP], [1], [An ERE matcher])
 
8168
_LT_DECL([], [FGREP], [1], [A literal string matcher])
 
8169
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
 
8170
AC_SUBST([GREP])
 
8171
])
 
8172
 
 
8173
 
 
8174
# _LT_DECL_OBJDUMP
 
8175
# --------------
 
8176
# If we don't have a new enough Autoconf to choose the best objdump
 
8177
# available, choose the one first in the user's PATH.
 
8178
m4_defun([_LT_DECL_OBJDUMP],
 
8179
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
8180
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8181
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 
8182
AC_SUBST([OBJDUMP])
 
8183
])
 
8184
 
 
8185
# _LT_DECL_DLLTOOL
 
8186
# ----------------
 
8187
# Ensure DLLTOOL variable is set.
 
8188
m4_defun([_LT_DECL_DLLTOOL],
 
8189
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
8190
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8191
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 
8192
AC_SUBST([DLLTOOL])
 
8193
])
 
8194
 
 
8195
# _LT_DECL_SED
 
8196
# ------------
 
8197
# Check for a fully-functional sed program, that truncates
 
8198
# as few characters as possible.  Prefer GNU sed if found.
 
8199
m4_defun([_LT_DECL_SED],
 
8200
[AC_PROG_SED
 
8201
test -z "$SED" && SED=sed
 
8202
Xsed="$SED -e 1s/^X//"
 
8203
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
 
8204
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 
8205
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
 
8206
])# _LT_DECL_SED
 
8207
 
 
8208
m4_ifndef([AC_PROG_SED], [
 
8209
# NOTE: This macro has been submitted for inclusion into   #
 
8210
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
 
8211
#  a released version of Autoconf we should remove this    #
 
8212
#  macro and use it instead.                               #
 
8213
 
 
8214
m4_defun([AC_PROG_SED],
 
8215
[AC_MSG_CHECKING([for a sed that does not truncate output])
 
8216
AC_CACHE_VAL(lt_cv_path_SED,
 
8217
[# Loop through the user's path and test for sed and gsed.
 
8218
# Then use that list of sed's as ones to test for truncation.
 
8219
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8220
for as_dir in $PATH
 
8221
do
 
8222
  IFS=$as_save_IFS
 
8223
  test -z "$as_dir" && as_dir=.
 
8224
  for lt_ac_prog in sed gsed; do
 
8225
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8226
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
8227
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
8228
      fi
 
8229
    done
 
8230
  done
 
8231
done
 
8232
IFS=$as_save_IFS
 
8233
lt_ac_max=0
 
8234
lt_ac_count=0
 
8235
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
8236
# along with /bin/sed that truncates output.
 
8237
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
8238
  test ! -f $lt_ac_sed && continue
 
8239
  cat /dev/null > conftest.in
 
8240
  lt_ac_count=0
 
8241
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
8242
  # Check for GNU sed and select it if it is found.
 
8243
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
8244
    lt_cv_path_SED=$lt_ac_sed
 
8245
    break
 
8246
  fi
 
8247
  while true; do
 
8248
    cat conftest.in conftest.in >conftest.tmp
 
8249
    mv conftest.tmp conftest.in
 
8250
    cp conftest.in conftest.nl
 
8251
    echo >>conftest.nl
 
8252
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
8253
    cmp -s conftest.out conftest.nl || break
 
8254
    # 10000 chars as input seems more than enough
 
8255
    test $lt_ac_count -gt 10 && break
 
8256
    lt_ac_count=`expr $lt_ac_count + 1`
 
8257
    if test $lt_ac_count -gt $lt_ac_max; then
 
8258
      lt_ac_max=$lt_ac_count
 
8259
      lt_cv_path_SED=$lt_ac_sed
 
8260
    fi
 
8261
  done
 
8262
done
 
8263
])
 
8264
SED=$lt_cv_path_SED
 
8265
AC_SUBST([SED])
 
8266
AC_MSG_RESULT([$SED])
 
8267
])#AC_PROG_SED
 
8268
])#m4_ifndef
 
8269
 
 
8270
# Old name:
 
8271
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
 
8272
dnl aclocal-1.4 backwards compatibility:
 
8273
dnl AC_DEFUN([LT_AC_PROG_SED], [])
 
8274
 
 
8275
 
 
8276
# _LT_CHECK_SHELL_FEATURES
 
8277
# ------------------------
 
8278
# Find out whether the shell is Bourne or XSI compatible,
 
8279
# or has some other useful features.
 
8280
m4_defun([_LT_CHECK_SHELL_FEATURES],
 
8281
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
 
8282
# Try some XSI features
 
8283
xsi_shell=no
 
8284
( _lt_dummy="a/b/c"
 
8285
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
8286
      = c,a/b,b/c, \
 
8287
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
8288
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
8289
  && xsi_shell=yes
 
8290
AC_MSG_RESULT([$xsi_shell])
 
8291
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
 
8292
 
 
8293
AC_MSG_CHECKING([whether the shell understands "+="])
 
8294
lt_shell_append=no
 
8295
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
 
8296
    >/dev/null 2>&1 \
 
8297
  && lt_shell_append=yes
 
8298
AC_MSG_RESULT([$lt_shell_append])
 
8299
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
 
8300
 
 
8301
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
8302
  lt_unset=unset
 
8303
else
 
8304
  lt_unset=false
 
8305
fi
 
8306
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
 
8307
 
 
8308
# test EBCDIC or ASCII
 
8309
case `echo X|tr X '\101'` in
 
8310
 A) # ASCII based system
 
8311
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
8312
  lt_SP2NL='tr \040 \012'
 
8313
  lt_NL2SP='tr \015\012 \040\040'
 
8314
  ;;
 
8315
 *) # EBCDIC based system
 
8316
  lt_SP2NL='tr \100 \n'
 
8317
  lt_NL2SP='tr \r\n \100\100'
 
8318
  ;;
 
8319
esac
 
8320
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
 
8321
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
 
8322
])# _LT_CHECK_SHELL_FEATURES
 
8323
 
 
8324
 
 
8325
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
 
8326
# ------------------------------------------------------
 
8327
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
 
8328
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
 
8329
m4_defun([_LT_PROG_FUNCTION_REPLACE],
 
8330
[dnl {
 
8331
sed -e '/^$1 ()$/,/^} # $1 /c\
 
8332
$1 ()\
 
8333
{\
 
8334
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
 
8335
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
 
8336
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8337
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8338
test 0 -eq $? || _lt_function_replace_fail=:
 
8339
])
 
8340
 
 
8341
 
 
8342
# _LT_PROG_REPLACE_SHELLFNS
 
8343
# -------------------------
 
8344
# Replace existing portable implementations of several shell functions with
 
8345
# equivalent extended shell implementations where those features are available..
 
8346
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
 
8347
[if test x"$xsi_shell" = xyes; then
 
8348
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
 
8349
    case ${1} in
 
8350
      */*) func_dirname_result="${1%/*}${2}" ;;
 
8351
      *  ) func_dirname_result="${3}" ;;
 
8352
    esac])
 
8353
 
 
8354
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
 
8355
    func_basename_result="${1##*/}"])
 
8356
 
 
8357
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
 
8358
    case ${1} in
 
8359
      */*) func_dirname_result="${1%/*}${2}" ;;
 
8360
      *  ) func_dirname_result="${3}" ;;
 
8361
    esac
 
8362
    func_basename_result="${1##*/}"])
 
8363
 
 
8364
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
 
8365
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
8366
    # positional parameters, so assign one to ordinary parameter first.
 
8367
    func_stripname_result=${3}
 
8368
    func_stripname_result=${func_stripname_result#"${1}"}
 
8369
    func_stripname_result=${func_stripname_result%"${2}"}])
 
8370
 
 
8371
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
 
8372
    func_split_long_opt_name=${1%%=*}
 
8373
    func_split_long_opt_arg=${1#*=}])
 
8374
 
 
8375
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
 
8376
    func_split_short_opt_arg=${1#??}
 
8377
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
 
8378
 
 
8379
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
 
8380
    case ${1} in
 
8381
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
8382
      *)    func_lo2o_result=${1} ;;
 
8383
    esac])
 
8384
 
 
8385
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
 
8386
 
 
8387
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
 
8388
 
 
8389
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
 
8390
fi
 
8391
 
 
8392
if test x"$lt_shell_append" = xyes; then
 
8393
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
 
8394
 
 
8395
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
 
8396
    func_quote_for_eval "${2}"
 
8397
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
 
8398
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
 
8399
 
 
8400
  # Save a `func_append' function call where possible by direct use of '+='
 
8401
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
8402
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8403
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8404
  test 0 -eq $? || _lt_function_replace_fail=:
 
8405
else
 
8406
  # Save a `func_append' function call even when '+=' is not available
 
8407
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
8408
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8409
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8410
  test 0 -eq $? || _lt_function_replace_fail=:
 
8411
fi
 
8412
 
 
8413
if test x"$_lt_function_replace_fail" = x":"; then
 
8414
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
 
8415
fi
 
8416
])
 
8417
 
 
8418
# _LT_PATH_CONVERSION_FUNCTIONS
 
8419
# -----------------------------
 
8420
# Determine which file name conversion functions should be used by
 
8421
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 
8422
# for certain cross-compile configurations and native mingw.
 
8423
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 
8424
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
8425
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
8426
AC_MSG_CHECKING([how to convert $build file names to $host format])
 
8427
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 
8428
[case $host in
 
8429
  *-*-mingw* )
 
8430
    case $build in
 
8431
      *-*-mingw* ) # actually msys
 
8432
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
8433
        ;;
 
8434
      *-*-cygwin* )
 
8435
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
8436
        ;;
 
8437
      * ) # otherwise, assume *nix
 
8438
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
8439
        ;;
 
8440
    esac
 
8441
    ;;
 
8442
  *-*-cygwin* )
 
8443
    case $build in
 
8444
      *-*-mingw* ) # actually msys
 
8445
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
8446
        ;;
 
8447
      *-*-cygwin* )
 
8448
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
8449
        ;;
 
8450
      * ) # otherwise, assume *nix
 
8451
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
8452
        ;;
 
8453
    esac
 
8454
    ;;
 
8455
  * ) # unhandled hosts (and "normal" native builds)
 
8456
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
8457
    ;;
 
8458
esac
 
8459
])
 
8460
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
8461
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 
8462
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 
8463
         [0], [convert $build file names to $host format])dnl
 
8464
 
 
8465
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 
8466
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 
8467
[#assume ordinary cross tools, or native build.
 
8468
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
8469
case $host in
 
8470
  *-*-mingw* )
 
8471
    case $build in
 
8472
      *-*-mingw* ) # actually msys
 
8473
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
8474
        ;;
 
8475
    esac
 
8476
    ;;
 
8477
esac
 
8478
])
 
8479
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
8480
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 
8481
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 
8482
         [0], [convert $build files to toolchain format])dnl
 
8483
])# _LT_PATH_CONVERSION_FUNCTIONS
 
8484
 
 
8485
# Helper functions for option handling.                    -*- Autoconf -*-
 
8486
#
 
8487
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
 
8488
#   Inc.
 
8489
#   Written by Gary V. Vaughan, 2004
 
8490
#
 
8491
# This file is free software; the Free Software Foundation gives
 
8492
# unlimited permission to copy and/or distribute it, with or without
 
8493
# modifications, as long as this notice is preserved.
 
8494
 
 
8495
# serial 7 ltoptions.m4
 
8496
 
 
8497
# This is to help aclocal find these macros, as it can't see m4_define.
 
8498
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
 
8499
 
 
8500
 
 
8501
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
 
8502
# ------------------------------------------
 
8503
m4_define([_LT_MANGLE_OPTION],
 
8504
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
 
8505
 
 
8506
 
 
8507
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
 
8508
# ---------------------------------------
 
8509
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
 
8510
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
 
8511
# saved as a flag.
 
8512
m4_define([_LT_SET_OPTION],
 
8513
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
 
8514
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
 
8515
        _LT_MANGLE_DEFUN([$1], [$2]),
 
8516
    [m4_warning([Unknown $1 option `$2'])])[]dnl
 
8517
])
 
8518
 
 
8519
 
 
8520
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
 
8521
# ------------------------------------------------------------
 
8522
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
8523
m4_define([_LT_IF_OPTION],
 
8524
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
 
8525
 
 
8526
 
 
8527
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
 
8528
# -------------------------------------------------------
 
8529
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
 
8530
# are set.
 
8531
m4_define([_LT_UNLESS_OPTIONS],
 
8532
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8533
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
 
8534
                      [m4_define([$0_found])])])[]dnl
 
8535
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
 
8536
])[]dnl
 
8537
])
 
8538
 
 
8539
 
 
8540
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
 
8541
# ----------------------------------------
 
8542
# OPTION-LIST is a space-separated list of Libtool options associated
 
8543
# with MACRO-NAME.  If any OPTION has a matching handler declared with
 
8544
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
 
8545
# the unknown option and exit.
 
8546
m4_defun([_LT_SET_OPTIONS],
 
8547
[# Set options
 
8548
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8549
    [_LT_SET_OPTION([$1], _LT_Option)])
 
8550
 
 
8551
m4_if([$1],[LT_INIT],[
 
8552
  dnl
 
8553
  dnl Simply set some default values (i.e off) if boolean options were not
 
8554
  dnl specified:
 
8555
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
 
8556
  ])
 
8557
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
 
8558
  ])
 
8559
  dnl
 
8560
  dnl If no reference was made to various pairs of opposing options, then
 
8561
  dnl we run the default mode handler for the pair.  For example, if neither
 
8562
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
 
8563
  dnl archives by default:
 
8564
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
 
8565
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
 
8566
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
 
8567
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
 
8568
                   [_LT_ENABLE_FAST_INSTALL])
 
8569
  ])
 
8570
])# _LT_SET_OPTIONS
 
8571
 
 
8572
 
 
8573
 
 
8574
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
 
8575
# -----------------------------------------
 
8576
m4_define([_LT_MANGLE_DEFUN],
 
8577
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
 
8578
 
 
8579
 
 
8580
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
 
8581
# -----------------------------------------------
 
8582
m4_define([LT_OPTION_DEFINE],
 
8583
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
 
8584
])# LT_OPTION_DEFINE
 
8585
 
 
8586
 
 
8587
# dlopen
 
8588
# ------
 
8589
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
 
8590
])
 
8591
 
 
8592
AU_DEFUN([AC_LIBTOOL_DLOPEN],
 
8593
[_LT_SET_OPTION([LT_INIT], [dlopen])
 
8594
AC_DIAGNOSE([obsolete],
 
8595
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8596
put the `dlopen' option into LT_INIT's first parameter.])
 
8597
])
 
8598
 
 
8599
dnl aclocal-1.4 backwards compatibility:
 
8600
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
 
8601
 
 
8602
 
 
8603
# win32-dll
 
8604
# ---------
 
8605
# Declare package support for building win32 dll's.
 
8606
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
 
8607
[enable_win32_dll=yes
 
8608
 
 
8609
case $host in
 
8610
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
 
8611
  AC_CHECK_TOOL(AS, as, false)
 
8612
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
8613
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
8614
  ;;
 
8615
esac
 
8616
 
 
8617
test -z "$AS" && AS=as
 
8618
_LT_DECL([], [AS],      [1], [Assembler program])dnl
 
8619
 
 
8620
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8621
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
 
8622
 
 
8623
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8624
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
 
8625
])# win32-dll
 
8626
 
 
8627
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
8628
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
8629
_LT_SET_OPTION([LT_INIT], [win32-dll])
 
8630
AC_DIAGNOSE([obsolete],
 
8631
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8632
put the `win32-dll' option into LT_INIT's first parameter.])
 
8633
])
 
8634
 
 
8635
dnl aclocal-1.4 backwards compatibility:
 
8636
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
 
8637
 
 
8638
 
 
8639
# _LT_ENABLE_SHARED([DEFAULT])
 
8640
# ----------------------------
 
8641
# implement the --enable-shared flag, and supports the `shared' and
 
8642
# `disable-shared' LT_INIT options.
 
8643
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8644
m4_define([_LT_ENABLE_SHARED],
 
8645
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8646
AC_ARG_ENABLE([shared],
 
8647
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
8648
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
 
8649
    [p=${PACKAGE-default}
 
8650
    case $enableval in
 
8651
    yes) enable_shared=yes ;;
 
8652
    no) enable_shared=no ;;
 
8653
    *)
 
8654
      enable_shared=no
 
8655
      # Look at the argument we got.  We use all the common list separators.
 
8656
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8657
      for pkg in $enableval; do
 
8658
        IFS="$lt_save_ifs"
 
8659
        if test "X$pkg" = "X$p"; then
 
8660
          enable_shared=yes
 
8661
        fi
 
8662
      done
 
8663
      IFS="$lt_save_ifs"
 
8664
      ;;
 
8665
    esac],
 
8666
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
 
8667
 
 
8668
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
 
8669
        [Whether or not to build shared libraries])
 
8670
])# _LT_ENABLE_SHARED
 
8671
 
 
8672
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
 
8673
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
 
8674
 
 
8675
# Old names:
 
8676
AC_DEFUN([AC_ENABLE_SHARED],
 
8677
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
 
8678
])
 
8679
 
 
8680
AC_DEFUN([AC_DISABLE_SHARED],
 
8681
[_LT_SET_OPTION([LT_INIT], [disable-shared])
 
8682
])
 
8683
 
 
8684
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
 
8685
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
8686
 
 
8687
dnl aclocal-1.4 backwards compatibility:
 
8688
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
 
8689
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
 
8690
 
 
8691
 
 
8692
 
 
8693
# _LT_ENABLE_STATIC([DEFAULT])
 
8694
# ----------------------------
 
8695
# implement the --enable-static flag, and support the `static' and
 
8696
# `disable-static' LT_INIT options.
 
8697
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8698
m4_define([_LT_ENABLE_STATIC],
 
8699
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8700
AC_ARG_ENABLE([static],
 
8701
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
8702
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
 
8703
    [p=${PACKAGE-default}
 
8704
    case $enableval in
 
8705
    yes) enable_static=yes ;;
 
8706
    no) enable_static=no ;;
 
8707
    *)
 
8708
     enable_static=no
 
8709
      # Look at the argument we got.  We use all the common list separators.
 
8710
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8711
      for pkg in $enableval; do
 
8712
        IFS="$lt_save_ifs"
 
8713
        if test "X$pkg" = "X$p"; then
 
8714
          enable_static=yes
 
8715
        fi
 
8716
      done
 
8717
      IFS="$lt_save_ifs"
 
8718
      ;;
 
8719
    esac],
 
8720
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
 
8721
 
 
8722
    _LT_DECL([build_old_libs], [enable_static], [0],
 
8723
        [Whether or not to build static libraries])
 
8724
])# _LT_ENABLE_STATIC
 
8725
 
 
8726
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
 
8727
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
 
8728
 
 
8729
# Old names:
 
8730
AC_DEFUN([AC_ENABLE_STATIC],
 
8731
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
 
8732
])
 
8733
 
 
8734
AC_DEFUN([AC_DISABLE_STATIC],
 
8735
[_LT_SET_OPTION([LT_INIT], [disable-static])
 
8736
])
 
8737
 
 
8738
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
 
8739
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
8740
 
 
8741
dnl aclocal-1.4 backwards compatibility:
 
8742
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
 
8743
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
 
8744
 
 
8745
 
 
8746
 
 
8747
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
 
8748
# ----------------------------------
 
8749
# implement the --enable-fast-install flag, and support the `fast-install'
 
8750
# and `disable-fast-install' LT_INIT options.
 
8751
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8752
m4_define([_LT_ENABLE_FAST_INSTALL],
 
8753
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8754
AC_ARG_ENABLE([fast-install],
 
8755
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
8756
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
8757
    [p=${PACKAGE-default}
 
8758
    case $enableval in
 
8759
    yes) enable_fast_install=yes ;;
 
8760
    no) enable_fast_install=no ;;
 
8761
    *)
 
8762
      enable_fast_install=no
 
8763
      # Look at the argument we got.  We use all the common list separators.
 
8764
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8765
      for pkg in $enableval; do
 
8766
        IFS="$lt_save_ifs"
 
8767
        if test "X$pkg" = "X$p"; then
 
8768
          enable_fast_install=yes
 
8769
        fi
 
8770
      done
 
8771
      IFS="$lt_save_ifs"
 
8772
      ;;
 
8773
    esac],
 
8774
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
 
8775
 
 
8776
_LT_DECL([fast_install], [enable_fast_install], [0],
 
8777
         [Whether or not to optimize for fast installation])dnl
 
8778
])# _LT_ENABLE_FAST_INSTALL
 
8779
 
 
8780
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
 
8781
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
 
8782
 
 
8783
# Old names:
 
8784
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
 
8785
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
 
8786
AC_DIAGNOSE([obsolete],
 
8787
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
8788
the `fast-install' option into LT_INIT's first parameter.])
 
8789
])
 
8790
 
 
8791
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
 
8792
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
 
8793
AC_DIAGNOSE([obsolete],
 
8794
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
8795
the `disable-fast-install' option into LT_INIT's first parameter.])
 
8796
])
 
8797
 
 
8798
dnl aclocal-1.4 backwards compatibility:
 
8799
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
 
8800
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
 
8801
 
 
8802
 
 
8803
# _LT_WITH_PIC([MODE])
 
8804
# --------------------
 
8805
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
 
8806
# LT_INIT options.
 
8807
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
8808
m4_define([_LT_WITH_PIC],
 
8809
[AC_ARG_WITH([pic],
 
8810
    [AS_HELP_STRING([--with-pic],
 
8811
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
8812
    [pic_mode="$withval"],
 
8813
    [pic_mode=default])
 
8814
 
 
8815
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
 
8816
 
 
8817
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
 
8818
])# _LT_WITH_PIC
 
8819
 
 
8820
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
 
8821
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
 
8822
 
 
8823
# Old name:
 
8824
AU_DEFUN([AC_LIBTOOL_PICMODE],
 
8825
[_LT_SET_OPTION([LT_INIT], [pic-only])
 
8826
AC_DIAGNOSE([obsolete],
 
8827
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8828
put the `pic-only' option into LT_INIT's first parameter.])
 
8829
])
 
8830
 
 
8831
dnl aclocal-1.4 backwards compatibility:
 
8832
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
 
8833
 
 
8834
 
 
8835
m4_define([_LTDL_MODE], [])
 
8836
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
 
8837
                 [m4_define([_LTDL_MODE], [nonrecursive])])
 
8838
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
 
8839
                 [m4_define([_LTDL_MODE], [recursive])])
 
8840
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
 
8841
                 [m4_define([_LTDL_MODE], [subproject])])
 
8842
 
 
8843
m4_define([_LTDL_TYPE], [])
 
8844
LT_OPTION_DEFINE([LTDL_INIT], [installable],
 
8845
                 [m4_define([_LTDL_TYPE], [installable])])
 
8846
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
 
8847
                 [m4_define([_LTDL_TYPE], [convenience])])
 
8848
 
 
8849
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
 
8850
#
 
8851
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8852
# Written by Gary V. Vaughan, 2004
 
8853
#
 
8854
# This file is free software; the Free Software Foundation gives
 
8855
# unlimited permission to copy and/or distribute it, with or without
 
8856
# modifications, as long as this notice is preserved.
 
8857
 
 
8858
# serial 6 ltsugar.m4
 
8859
 
 
8860
# This is to help aclocal find these macros, as it can't see m4_define.
 
8861
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
 
8862
 
 
8863
 
 
8864
# lt_join(SEP, ARG1, [ARG2...])
 
8865
# -----------------------------
 
8866
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
 
8867
# associated separator.
 
8868
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
 
8869
# versions in m4sugar had bugs.
 
8870
m4_define([lt_join],
 
8871
[m4_if([$#], [1], [],
 
8872
       [$#], [2], [[$2]],
 
8873
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
 
8874
m4_define([_lt_join],
 
8875
[m4_if([$#$2], [2], [],
 
8876
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
 
8877
 
 
8878
 
 
8879
# lt_car(LIST)
 
8880
# lt_cdr(LIST)
 
8881
# ------------
 
8882
# Manipulate m4 lists.
 
8883
# These macros are necessary as long as will still need to support
 
8884
# Autoconf-2.59 which quotes differently.
 
8885
m4_define([lt_car], [[$1]])
 
8886
m4_define([lt_cdr],
 
8887
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
 
8888
       [$#], 1, [],
 
8889
       [m4_dquote(m4_shift($@))])])
 
8890
m4_define([lt_unquote], $1)
 
8891
 
 
8892
 
 
8893
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
 
8894
# ------------------------------------------
 
8895
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
 
8896
# Note that neither SEPARATOR nor STRING are expanded; they are appended
 
8897
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
 
8898
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
 
8899
# than defined and empty).
 
8900
#
 
8901
# This macro is needed until we can rely on Autoconf 2.62, since earlier
 
8902
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
 
8903
m4_define([lt_append],
 
8904
[m4_define([$1],
 
8905
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
 
8906
 
 
8907
 
 
8908
 
 
8909
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
 
8910
# ----------------------------------------------------------
 
8911
# Produce a SEP delimited list of all paired combinations of elements of
 
8912
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
 
8913
# has the form PREFIXmINFIXSUFFIXn.
 
8914
# Needed until we can rely on m4_combine added in Autoconf 2.62.
 
8915
m4_define([lt_combine],
 
8916
[m4_if(m4_eval([$# > 3]), [1],
 
8917
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
 
8918
[[m4_foreach([_Lt_prefix], [$2],
 
8919
             [m4_foreach([_Lt_suffix],
 
8920
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
 
8921
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
 
8922
 
 
8923
 
 
8924
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
 
8925
# -----------------------------------------------------------------------
 
8926
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
 
8927
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
 
8928
m4_define([lt_if_append_uniq],
 
8929
[m4_ifdef([$1],
 
8930
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
 
8931
                 [lt_append([$1], [$2], [$3])$4],
 
8932
                 [$5])],
 
8933
          [lt_append([$1], [$2], [$3])$4])])
 
8934
 
 
8935
 
 
8936
# lt_dict_add(DICT, KEY, VALUE)
 
8937
# -----------------------------
 
8938
m4_define([lt_dict_add],
 
8939
[m4_define([$1($2)], [$3])])
 
8940
 
 
8941
 
 
8942
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
 
8943
# --------------------------------------------
 
8944
m4_define([lt_dict_add_subkey],
 
8945
[m4_define([$1($2:$3)], [$4])])
 
8946
 
 
8947
 
 
8948
# lt_dict_fetch(DICT, KEY, [SUBKEY])
 
8949
# ----------------------------------
 
8950
m4_define([lt_dict_fetch],
 
8951
[m4_ifval([$3],
 
8952
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
 
8953
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
 
8954
 
 
8955
 
 
8956
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
 
8957
# -----------------------------------------------------------------
 
8958
m4_define([lt_if_dict_fetch],
 
8959
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
 
8960
        [$5],
 
8961
    [$6])])
 
8962
 
 
8963
 
 
8964
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
 
8965
# --------------------------------------------------------------
 
8966
m4_define([lt_dict_filter],
 
8967
[m4_if([$5], [], [],
 
8968
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
 
8969
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
 
8970
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
 
8971
])
 
8972
 
 
8973
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
 
8974
#
 
8975
#   Copyright (C) 2004 Free Software Foundation, Inc.
 
8976
#   Written by Scott James Remnant, 2004
 
8977
#
 
8978
# This file is free software; the Free Software Foundation gives
 
8979
# unlimited permission to copy and/or distribute it, with or without
 
8980
# modifications, as long as this notice is preserved.
 
8981
 
 
8982
# @configure_input@
 
8983
 
 
8984
# serial 3293 ltversion.m4
 
8985
# This file is part of GNU Libtool
 
8986
 
 
8987
m4_define([LT_PACKAGE_VERSION], [2.4])
 
8988
m4_define([LT_PACKAGE_REVISION], [1.3293])
 
8989
 
 
8990
AC_DEFUN([LTVERSION_VERSION],
 
8991
[macro_version='2.4'
 
8992
macro_revision='1.3293'
 
8993
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
 
8994
_LT_DECL(, macro_revision, 0)
 
8995
])
 
8996
 
 
8997
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
 
8998
#
 
8999
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
 
9000
#   Written by Scott James Remnant, 2004.
 
9001
#
 
9002
# This file is free software; the Free Software Foundation gives
 
9003
# unlimited permission to copy and/or distribute it, with or without
 
9004
# modifications, as long as this notice is preserved.
 
9005
 
 
9006
# serial 5 lt~obsolete.m4
 
9007
 
 
9008
# These exist entirely to fool aclocal when bootstrapping libtool.
 
9009
#
 
9010
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
 
9011
# which have later been changed to m4_define as they aren't part of the
 
9012
# exported API, or moved to Autoconf or Automake where they belong.
 
9013
#
 
9014
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
 
9015
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
 
9016
# using a macro with the same name in our local m4/libtool.m4 it'll
 
9017
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
 
9018
# and doesn't know about Autoconf macros at all.)
 
9019
#
 
9020
# So we provide this file, which has a silly filename so it's always
 
9021
# included after everything else.  This provides aclocal with the
 
9022
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
 
9023
# because those macros already exist, or will be overwritten later.
 
9024
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
 
9025
#
 
9026
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
 
9027
# Yes, that means every name once taken will need to remain here until
 
9028
# we give up compatibility with versions before 1.7, at which point
 
9029
# we need to keep only those names which we still refer to.
 
9030
 
 
9031
# This is to help aclocal find these macros, as it can't see m4_define.
 
9032
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
 
9033
 
 
9034
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
 
9035
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
 
9036
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
 
9037
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
 
9038
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
 
9039
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
 
9040
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
 
9041
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
 
9042
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
 
9043
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
 
9044
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
 
9045
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
 
9046
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
 
9047
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
 
9048
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
 
9049
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
 
9050
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
 
9051
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
 
9052
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
 
9053
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
 
9054
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
 
9055
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
 
9056
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
 
9057
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
 
9058
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
 
9059
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
 
9060
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
 
9061
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
 
9062
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
 
9063
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
 
9064
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
 
9065
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
 
9066
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
 
9067
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
 
9068
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
 
9069
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
 
9070
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
 
9071
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
 
9072
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
 
9073
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
 
9074
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
 
9075
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
 
9076
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
 
9077
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
 
9078
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
 
9079
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
 
9080
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
 
9081
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
 
9082
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
 
9083
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
 
9084
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
 
9085
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
 
9086
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
 
9087
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
9088
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
 
9089
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
 
9090
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
 
9091
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
 
9092
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
 
9093
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
 
9094
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
 
9095
 
 
9096
# nls.m4 serial 5 (gettext-0.18)
 
9097
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
 
9098
dnl Inc.
 
9099
dnl This file is free software; the Free Software Foundation
 
9100
dnl gives unlimited permission to copy and/or distribute it,
 
9101
dnl with or without modifications, as long as this notice is preserved.
 
9102
dnl
 
9103
dnl This file can can be used in projects which are not available under
 
9104
dnl the GNU General Public License or the GNU Library General Public
 
9105
dnl License but which still want to provide support for the GNU gettext
 
9106
dnl functionality.
 
9107
dnl Please note that the actual code of the GNU gettext library is covered
 
9108
dnl by the GNU Library General Public License, and the rest of the GNU
 
9109
dnl gettext package package is covered by the GNU General Public License.
 
9110
dnl They are *not* in the public domain.
 
9111
 
 
9112
dnl Authors:
 
9113
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
9114
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
9115
 
 
9116
AC_PREREQ([2.50])
 
9117
 
 
9118
AC_DEFUN([AM_NLS],
 
9119
[
 
9120
  AC_MSG_CHECKING([whether NLS is requested])
 
9121
  dnl Default is enabled NLS
 
9122
  AC_ARG_ENABLE([nls],
 
9123
    [  --disable-nls           do not use Native Language Support],
 
9124
    USE_NLS=$enableval, USE_NLS=yes)
 
9125
  AC_MSG_RESULT([$USE_NLS])
 
9126
  AC_SUBST([USE_NLS])
 
9127
])
 
9128
 
 
9129
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
9130
# serial 1 (pkg-config-0.24)
 
9131
 
9132
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
9133
#
 
9134
# This program is free software; you can redistribute it and/or modify
 
9135
# it under the terms of the GNU General Public License as published by
 
9136
# the Free Software Foundation; either version 2 of the License, or
 
9137
# (at your option) any later version.
 
9138
#
 
9139
# This program is distributed in the hope that it will be useful, but
 
9140
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9141
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9142
# General Public License for more details.
 
9143
#
 
9144
# You should have received a copy of the GNU General Public License
 
9145
# along with this program; if not, write to the Free Software
 
9146
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
9147
#
 
9148
# As a special exception to the GNU General Public License, if you
 
9149
# distribute this file as part of a program that contains a
 
9150
# configuration script generated by Autoconf, you may include it under
 
9151
# the same distribution terms that you use for the rest of that program.
 
9152
 
 
9153
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
9154
# ----------------------------------
 
9155
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
9156
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
9157
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
9158
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
9159
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
9160
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
9161
 
 
9162
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
9163
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
9164
fi
 
9165
if test -n "$PKG_CONFIG"; then
 
9166
        _pkg_min_version=m4_default([$1], [0.9.0])
 
9167
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
9168
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
9169
                AC_MSG_RESULT([yes])
 
9170
        else
 
9171
                AC_MSG_RESULT([no])
 
9172
                PKG_CONFIG=""
 
9173
        fi
 
9174
fi[]dnl
 
9175
])# PKG_PROG_PKG_CONFIG
 
9176
 
 
9177
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
9178
#
 
9179
# Check to see whether a particular set of modules exists.  Similar
 
9180
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
9181
#
 
9182
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
9183
# only at the first occurence in configure.ac, so if the first place
 
9184
# it's called might be skipped (such as if it is within an "if", you
 
9185
# have to call PKG_CHECK_EXISTS manually
 
9186
# --------------------------------------------------------------
 
9187
AC_DEFUN([PKG_CHECK_EXISTS],
 
9188
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
9189
if test -n "$PKG_CONFIG" && \
 
9190
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
9191
  m4_default([$2], [:])
 
9192
m4_ifvaln([$3], [else
 
9193
  $3])dnl
 
9194
fi])
 
9195
 
 
9196
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
9197
# ---------------------------------------------
 
9198
m4_define([_PKG_CONFIG],
 
9199
[if test -n "$$1"; then
 
9200
    pkg_cv_[]$1="$$1"
 
9201
 elif test -n "$PKG_CONFIG"; then
 
9202
    PKG_CHECK_EXISTS([$3],
 
9203
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
9204
                     [pkg_failed=yes])
 
9205
 else
 
9206
    pkg_failed=untried
 
9207
fi[]dnl
 
9208
])# _PKG_CONFIG
 
9209
 
 
9210
# _PKG_SHORT_ERRORS_SUPPORTED
 
9211
# -----------------------------
 
9212
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
9213
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
9214
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
9215
        _pkg_short_errors_supported=yes
 
9216
else
 
9217
        _pkg_short_errors_supported=no
 
9218
fi[]dnl
 
9219
])# _PKG_SHORT_ERRORS_SUPPORTED
 
9220
 
 
9221
 
 
9222
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
9223
# [ACTION-IF-NOT-FOUND])
 
9224
#
 
9225
#
 
9226
# Note that if there is a possibility the first call to
 
9227
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
9228
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
9229
#
 
9230
#
 
9231
# --------------------------------------------------------------
 
9232
AC_DEFUN([PKG_CHECK_MODULES],
 
9233
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
9234
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
9235
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
9236
 
 
9237
pkg_failed=no
 
9238
AC_MSG_CHECKING([for $1])
 
9239
 
 
9240
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
9241
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
9242
 
 
9243
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
9244
and $1[]_LIBS to avoid the need to call pkg-config.
 
9245
See the pkg-config man page for more details.])
 
9246
 
 
9247
if test $pkg_failed = yes; then
 
9248
        AC_MSG_RESULT([no])
 
9249
        _PKG_SHORT_ERRORS_SUPPORTED
 
9250
        if test $_pkg_short_errors_supported = yes; then
 
9251
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
9252
        else 
 
9253
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
9254
        fi
 
9255
        # Put the nasty error message in config.log where it belongs
 
9256
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
9257
 
 
9258
        m4_default([$4], [AC_MSG_ERROR(
 
9259
[Package requirements ($2) were not met:
 
9260
 
 
9261
$$1_PKG_ERRORS
 
9262
 
 
9263
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
9264
installed software in a non-standard prefix.
 
9265
 
 
9266
_PKG_TEXT])[]dnl
 
9267
        ])
 
9268
elif test $pkg_failed = untried; then
 
9269
        AC_MSG_RESULT([no])
 
9270
        m4_default([$4], [AC_MSG_FAILURE(
 
9271
[The pkg-config script could not be found or is too old.  Make sure it
 
9272
is in your PATH or set the PKG_CONFIG environment variable to the full
 
9273
path to pkg-config.
 
9274
 
 
9275
_PKG_TEXT
 
9276
 
 
9277
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
 
9278
        ])
 
9279
else
 
9280
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
9281
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
9282
        AC_MSG_RESULT([yes])
 
9283
        $3
 
9284
fi[]dnl
 
9285
])# PKG_CHECK_MODULES
 
9286
 
 
9287
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
9288
#
 
9289
# This file is free software; the Free Software Foundation
 
9290
# gives unlimited permission to copy and/or distribute it,
 
9291
# with or without modifications, as long as this notice is preserved.
 
9292
 
 
9293
# AM_AUTOMAKE_VERSION(VERSION)
 
9294
# ----------------------------
 
9295
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
9296
# generated from the m4 files accompanying Automake X.Y.
 
9297
# (This private macro should not be called outside this file.)
 
9298
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
9299
[am__api_version='1.11'
 
9300
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
9301
dnl require some minimum version.  Point them to the right macro.
 
9302
m4_if([$1], [1.11.1], [],
 
9303
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
9304
])
 
9305
 
 
9306
# _AM_AUTOCONF_VERSION(VERSION)
 
9307
# -----------------------------
 
9308
# aclocal traces this macro to find the Autoconf version.
 
9309
# This is a private macro too.  Using m4_define simplifies
 
9310
# the logic in aclocal, which can simply ignore this definition.
 
9311
m4_define([_AM_AUTOCONF_VERSION], [])
 
9312
 
 
9313
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
9314
# -------------------------------
 
9315
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
9316
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 
9317
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
9318
[AM_AUTOMAKE_VERSION([1.11.1])dnl
 
9319
m4_ifndef([AC_AUTOCONF_VERSION],
 
9320
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
9321
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
9322
 
 
9323
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
9324
 
 
9325
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
9326
#
 
9327
# This file is free software; the Free Software Foundation
 
9328
# gives unlimited permission to copy and/or distribute it,
 
9329
# with or without modifications, as long as this notice is preserved.
 
9330
 
 
9331
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
9332
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
9333
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
9334
#
 
9335
# Of course, Automake must honor this variable whenever it calls a
 
9336
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
9337
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
9338
# depending on how configure is run.  This is pretty annoying, since
 
9339
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
9340
# source directory, any form will work fine, but in subdirectories a
 
9341
# relative path needs to be adjusted first.
 
9342
#
 
9343
# $ac_aux_dir/missing
 
9344
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
9345
# $top_srcdir/$ac_aux_dir/missing
 
9346
#    fails if $ac_aux_dir is absolute,
 
9347
#    fails when called from a subdirectory in a VPATH build with
 
9348
#          a relative $ac_aux_dir
 
9349
#
 
9350
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
9351
# are both prefixed by $srcdir.  In an in-source build this is usually
 
9352
# harmless because $srcdir is `.', but things will broke when you
 
9353
# start a VPATH build or use an absolute $srcdir.
 
9354
#
 
9355
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
9356
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
9357
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
9358
# and then we would define $MISSING as
 
9359
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
9360
# This will work as long as MISSING is not called from configure, because
 
9361
# unfortunately $(top_srcdir) has no meaning in configure.
 
9362
# However there are other variables, like CC, which are often used in
 
9363
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
9364
#
 
9365
# Another solution, used here, is to always expand $ac_aux_dir to an
 
9366
# absolute PATH.  The drawback is that using absolute paths prevent a
 
9367
# configured tree to be moved without reconfiguration.
 
9368
 
 
9369
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
9370
[dnl Rely on autoconf to set up CDPATH properly.
 
9371
AC_PREREQ([2.50])dnl
 
9372
# expand $ac_aux_dir to an absolute path
 
9373
am_aux_dir=`cd $ac_aux_dir && pwd`
 
9374
])
 
9375
 
 
9376
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
9377
 
 
9378
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
 
9379
# Free Software Foundation, Inc.
 
9380
#
 
9381
# This file is free software; the Free Software Foundation
 
9382
# gives unlimited permission to copy and/or distribute it,
 
9383
# with or without modifications, as long as this notice is preserved.
 
9384
 
 
9385
# serial 9
 
9386
 
 
9387
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
9388
# -------------------------------------
 
9389
# Define a conditional.
 
9390
AC_DEFUN([AM_CONDITIONAL],
 
9391
[AC_PREREQ(2.52)dnl
 
9392
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
9393
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
9394
AC_SUBST([$1_TRUE])dnl
 
9395
AC_SUBST([$1_FALSE])dnl
 
9396
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
9397
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
9398
m4_define([_AM_COND_VALUE_$1], [$2])dnl
 
9399
if $2; then
 
9400
  $1_TRUE=
 
9401
  $1_FALSE='#'
 
9402
else
 
9403
  $1_TRUE='#'
 
9404
  $1_FALSE=
 
9405
fi
 
9406
AC_CONFIG_COMMANDS_PRE(
 
9407
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
9408
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
9409
Usually this means the macro was only invoked conditionally.]])
 
9410
fi])])
 
9411
 
 
9412
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
 
9413
# Free Software Foundation, Inc.
 
9414
#
 
9415
# This file is free software; the Free Software Foundation
 
9416
# gives unlimited permission to copy and/or distribute it,
 
9417
# with or without modifications, as long as this notice is preserved.
 
9418
 
 
9419
# serial 10
 
9420
 
 
9421
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
9422
# written in clear, in which case automake, when reading aclocal.m4,
 
9423
# will think it sees a *use*, and therefore will trigger all it's
 
9424
# C support machinery.  Also note that it means that autoscan, seeing
 
9425
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
9426
 
 
9427
 
 
9428
# _AM_DEPENDENCIES(NAME)
 
9429
# ----------------------
 
9430
# See how the compiler implements dependency checking.
 
9431
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
9432
# We try a few techniques and use that to set a single cache variable.
 
9433
#
 
9434
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
9435
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
9436
# dependency, and given that the user is not expected to run this macro,
 
9437
# just rely on AC_PROG_CC.
 
9438
AC_DEFUN([_AM_DEPENDENCIES],
 
9439
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
9440
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
9441
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
9442
AC_REQUIRE([AM_DEP_TRACK])dnl
 
9443
 
 
9444
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
9445
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
9446
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
9447
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
9448
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
9449
                   [depcc="$$1"   am_compiler_list=])
 
9450
 
 
9451
AC_CACHE_CHECK([dependency style of $depcc],
 
9452
               [am_cv_$1_dependencies_compiler_type],
 
9453
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
9454
  # We make a subdir and do the tests there.  Otherwise we can end up
 
9455
  # making bogus files that we don't know about and never remove.  For
 
9456
  # instance it was reported that on HP-UX the gcc test will end up
 
9457
  # making a dummy file named `D' -- because `-MD' means `put the output
 
9458
  # in D'.
 
9459
  mkdir conftest.dir
 
9460
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
9461
  # using a relative directory.
 
9462
  cp "$am_depcomp" conftest.dir
 
9463
  cd conftest.dir
 
9464
  # We will build objects and dependencies in a subdirectory because
 
9465
  # it helps to detect inapplicable dependency modes.  For instance
 
9466
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
9467
  # side effect of compilation, but ICC will put the dependencies in
 
9468
  # the current directory while Tru64 will put them in the object
 
9469
  # directory.
 
9470
  mkdir sub
 
9471
 
 
9472
  am_cv_$1_dependencies_compiler_type=none
 
9473
  if test "$am_compiler_list" = ""; then
 
9474
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
9475
  fi
 
9476
  am__universal=false
 
9477
  m4_case([$1], [CC],
 
9478
    [case " $depcc " in #(
 
9479
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
9480
     esac],
 
9481
    [CXX],
 
9482
    [case " $depcc " in #(
 
9483
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
9484
     esac])
 
9485
 
 
9486
  for depmode in $am_compiler_list; do
 
9487
    # Setup a source with many dependencies, because some compilers
 
9488
    # like to wrap large dependency lists on column 80 (with \), and
 
9489
    # we should not choose a depcomp mode which is confused by this.
 
9490
    #
 
9491
    # We need to recreate these files for each test, as the compiler may
 
9492
    # overwrite some of them when testing with obscure command lines.
 
9493
    # This happens at least with the AIX C compiler.
 
9494
    : > sub/conftest.c
 
9495
    for i in 1 2 3 4 5 6; do
 
9496
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
9497
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
9498
      # Solaris 8's {/usr,}/bin/sh.
 
9499
      touch sub/conftst$i.h
 
9500
    done
 
9501
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
9502
 
 
9503
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
9504
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
9505
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
9506
    # versions had trouble with output in subdirs
 
9507
    am__obj=sub/conftest.${OBJEXT-o}
 
9508
    am__minus_obj="-o $am__obj"
 
9509
    case $depmode in
 
9510
    gcc)
 
9511
      # This depmode causes a compiler race in universal mode.
 
9512
      test "$am__universal" = false || continue
 
9513
      ;;
 
9514
    nosideeffect)
 
9515
      # after this tag, mechanisms are not by side-effect, so they'll
 
9516
      # only be used when explicitly requested
 
9517
      if test "x$enable_dependency_tracking" = xyes; then
 
9518
        continue
 
9519
      else
 
9520
        break
 
9521
      fi
 
9522
      ;;
 
9523
    msvisualcpp | msvcmsys)
 
9524
      # This compiler won't grok `-c -o', but also, the minuso test has
 
9525
      # not run yet.  These depmodes are late enough in the game, and
 
9526
      # so weak that their functioning should not be impacted.
 
9527
      am__obj=conftest.${OBJEXT-o}
 
9528
      am__minus_obj=
 
9529
      ;;
 
9530
    none) break ;;
 
9531
    esac
 
9532
    if depmode=$depmode \
 
9533
       source=sub/conftest.c object=$am__obj \
 
9534
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
9535
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
9536
         >/dev/null 2>conftest.err &&
 
9537
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
9538
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
9539
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
9540
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
9541
      # icc doesn't choke on unknown options, it will just issue warnings
 
9542
      # or remarks (even with -Werror).  So we grep stderr for any message
 
9543
      # that says an option was ignored or not supported.
 
9544
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
9545
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
9546
      # The diagnosis changed in icc 8.0:
 
9547
      #   icc: Command line remark: option '-MP' not supported
 
9548
      if (grep 'ignoring option' conftest.err ||
 
9549
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
9550
        am_cv_$1_dependencies_compiler_type=$depmode
 
9551
        break
 
9552
      fi
 
9553
    fi
 
9554
  done
 
9555
 
 
9556
  cd ..
 
9557
  rm -rf conftest.dir
 
9558
else
 
9559
  am_cv_$1_dependencies_compiler_type=none
 
9560
fi
 
9561
])
 
9562
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
9563
AM_CONDITIONAL([am__fastdep$1], [
 
9564
  test "x$enable_dependency_tracking" != xno \
 
9565
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
9566
])
 
9567
 
 
9568
 
 
9569
# AM_SET_DEPDIR
 
9570
# -------------
 
9571
# Choose a directory name for dependency files.
 
9572
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
9573
AC_DEFUN([AM_SET_DEPDIR],
 
9574
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
9575
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
9576
])
 
9577
 
 
9578
 
 
9579
# AM_DEP_TRACK
 
9580
# ------------
 
9581
AC_DEFUN([AM_DEP_TRACK],
 
9582
[AC_ARG_ENABLE(dependency-tracking,
 
9583
[  --disable-dependency-tracking  speeds up one-time build
 
9584
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
9585
if test "x$enable_dependency_tracking" != xno; then
 
9586
  am_depcomp="$ac_aux_dir/depcomp"
 
9587
  AMDEPBACKSLASH='\'
 
9588
fi
 
9589
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
9590
AC_SUBST([AMDEPBACKSLASH])dnl
 
9591
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
9592
])
 
9593
 
 
9594
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
9595
 
 
9596
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
9597
# Free Software Foundation, Inc.
 
9598
#
 
9599
# This file is free software; the Free Software Foundation
 
9600
# gives unlimited permission to copy and/or distribute it,
 
9601
# with or without modifications, as long as this notice is preserved.
 
9602
 
 
9603
#serial 5
 
9604
 
 
9605
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
9606
# ------------------------------
 
9607
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
9608
[{
 
9609
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
9610
  # are listed without --file.  Let's play safe and only enable the eval
 
9611
  # if we detect the quoting.
 
9612
  case $CONFIG_FILES in
 
9613
  *\'*) eval set x "$CONFIG_FILES" ;;
 
9614
  *)   set x $CONFIG_FILES ;;
 
9615
  esac
 
9616
  shift
 
9617
  for mf
 
9618
  do
 
9619
    # Strip MF so we end up with the name of the file.
 
9620
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
9621
    # Check whether this is an Automake generated Makefile or not.
 
9622
    # We used to match only the files named `Makefile.in', but
 
9623
    # some people rename them; so instead we look at the file content.
 
9624
    # Grep'ing the first line is not enough: some people post-process
 
9625
    # each Makefile.in and add a new line on top of each file to say so.
 
9626
    # Grep'ing the whole file is not good either: AIX grep has a line
 
9627
    # limit of 2048, but all sed's we know have understand at least 4000.
 
9628
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
9629
      dirpart=`AS_DIRNAME("$mf")`
 
9630
    else
 
9631
      continue
 
9632
    fi
 
9633
    # Extract the definition of DEPDIR, am__include, and am__quote
 
9634
    # from the Makefile without running `make'.
 
9635
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
9636
    test -z "$DEPDIR" && continue
 
9637
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
9638
    test -z "am__include" && continue
 
9639
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
9640
    # When using ansi2knr, U may be empty or an underscore; expand it
 
9641
    U=`sed -n 's/^U = //p' < "$mf"`
 
9642
    # Find all dependency output files, they are included files with
 
9643
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
9644
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
9645
    # expansion.
 
9646
    for file in `sed -n "
 
9647
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
9648
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
9649
      # Make sure the directory exists.
 
9650
      test -f "$dirpart/$file" && continue
 
9651
      fdir=`AS_DIRNAME(["$file"])`
 
9652
      AS_MKDIR_P([$dirpart/$fdir])
 
9653
      # echo "creating $dirpart/$file"
 
9654
      echo '# dummy' > "$dirpart/$file"
 
9655
    done
 
9656
  done
 
9657
}
 
9658
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
9659
 
 
9660
 
 
9661
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
9662
# -----------------------------
 
9663
# This macro should only be invoked once -- use via AC_REQUIRE.
 
9664
#
 
9665
# This code is only required when automatic dependency tracking
 
9666
# is enabled.  FIXME.  This creates each `.P' file that we will
 
9667
# need in order to bootstrap the dependency handling code.
 
9668
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
9669
[AC_CONFIG_COMMANDS([depfiles],
 
9670
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
9671
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
9672
])
 
9673
 
 
9674
# Do all the work for Automake.                             -*- Autoconf -*-
 
9675
 
 
9676
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
9677
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
9678
#
 
9679
# This file is free software; the Free Software Foundation
 
9680
# gives unlimited permission to copy and/or distribute it,
 
9681
# with or without modifications, as long as this notice is preserved.
 
9682
 
 
9683
# serial 16
 
9684
 
 
9685
# This macro actually does too much.  Some checks are only needed if
 
9686
# your package does certain things.  But this isn't really a big deal.
 
9687
 
 
9688
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
9689
# AM_INIT_AUTOMAKE([OPTIONS])
 
9690
# -----------------------------------------------
 
9691
# The call with PACKAGE and VERSION arguments is the old style
 
9692
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
9693
# and VERSION should now be passed to AC_INIT and removed from
 
9694
# the call to AM_INIT_AUTOMAKE.
 
9695
# We support both call styles for the transition.  After
 
9696
# the next Automake release, Autoconf can make the AC_INIT
 
9697
# arguments mandatory, and then we can depend on a new Autoconf
 
9698
# release and drop the old call support.
 
9699
AC_DEFUN([AM_INIT_AUTOMAKE],
 
9700
[AC_PREREQ([2.62])dnl
 
9701
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
9702
dnl the ones we care about.
 
9703
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
9704
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
9705
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
9706
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
9707
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
9708
  # is not polluted with repeated "-I."
 
9709
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
9710
  # test to see if srcdir already configured
 
9711
  if test -f $srcdir/config.status; then
 
9712
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
9713
  fi
 
9714
fi
 
9715
 
 
9716
# test whether we have cygpath
 
9717
if test -z "$CYGPATH_W"; then
 
9718
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
9719
    CYGPATH_W='cygpath -w'
 
9720
  else
 
9721
    CYGPATH_W=echo
 
9722
  fi
 
9723
fi
 
9724
AC_SUBST([CYGPATH_W])
 
9725
 
 
9726
# Define the identity of the package.
 
9727
dnl Distinguish between old-style and new-style calls.
 
9728
m4_ifval([$2],
 
9729
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
9730
 AC_SUBST([PACKAGE], [$1])dnl
 
9731
 AC_SUBST([VERSION], [$2])],
 
9732
[_AM_SET_OPTIONS([$1])dnl
 
9733
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
9734
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
9735
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
9736
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
9737
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
9738
 
 
9739
_AM_IF_OPTION([no-define],,
 
9740
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
9741
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
9742
 
 
9743
# Some tools Automake needs.
 
9744
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
9745
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
9746
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
9747
AM_MISSING_PROG(AUTOCONF, autoconf)
 
9748
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
9749
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
9750
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
9751
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
9752
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 
9753
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
9754
# We need awk for the "check" target.  The system "awk" is bad on
 
9755
# some platforms.
 
9756
AC_REQUIRE([AC_PROG_AWK])dnl
 
9757
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
9758
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
9759
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
9760
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
9761
                             [_AM_PROG_TAR([v7])])])
 
9762
_AM_IF_OPTION([no-dependencies],,
 
9763
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
9764
                  [_AM_DEPENDENCIES(CC)],
 
9765
                  [define([AC_PROG_CC],
 
9766
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
9767
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
9768
                  [_AM_DEPENDENCIES(CXX)],
 
9769
                  [define([AC_PROG_CXX],
 
9770
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
9771
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
9772
                  [_AM_DEPENDENCIES(OBJC)],
 
9773
                  [define([AC_PROG_OBJC],
 
9774
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
9775
])
 
9776
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
9777
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
9778
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
9779
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
9780
AC_CONFIG_COMMANDS_PRE(dnl
 
9781
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
9782
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
9783
])
 
9784
 
 
9785
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
9786
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
9787
dnl mangled by Autoconf and run in a shell conditional statement.
 
9788
m4_define([_AC_COMPILER_EXEEXT],
 
9789
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 
9790
 
 
9791
 
 
9792
# When config.status generates a header, we must update the stamp-h file.
 
9793
# This file resides in the same directory as the config header
 
9794
# that is generated.  The stamp files are numbered to have different names.
 
9795
 
 
9796
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
9797
# loop where config.status creates the headers, so we can generate
 
9798
# our stamp files there.
 
9799
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
9800
[# Compute $1's index in $config_headers.
 
9801
_am_arg=$1
 
9802
_am_stamp_count=1
 
9803
for _am_header in $config_headers :; do
 
9804
  case $_am_header in
 
9805
    $_am_arg | $_am_arg:* )
 
9806
      break ;;
 
9807
    * )
 
9808
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
9809
  esac
 
9810
done
 
9811
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
9812
 
 
9813
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
9814
#
 
9815
# This file is free software; the Free Software Foundation
 
9816
# gives unlimited permission to copy and/or distribute it,
 
9817
# with or without modifications, as long as this notice is preserved.
 
9818
 
 
9819
# AM_PROG_INSTALL_SH
 
9820
# ------------------
 
9821
# Define $install_sh.
 
9822
AC_DEFUN([AM_PROG_INSTALL_SH],
 
9823
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
9824
if test x"${install_sh}" != xset; then
 
9825
  case $am_aux_dir in
 
9826
  *\ * | *\     *)
 
9827
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
9828
  *)
 
9829
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
9830
  esac
 
9831
fi
 
9832
AC_SUBST(install_sh)])
 
9833
 
 
9834
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
9835
#
 
9836
# This file is free software; the Free Software Foundation
 
9837
# gives unlimited permission to copy and/or distribute it,
 
9838
# with or without modifications, as long as this notice is preserved.
 
9839
 
 
9840
# serial 2
 
9841
 
 
9842
# Check whether the underlying file-system supports filenames
 
9843
# with a leading dot.  For instance MS-DOS doesn't.
 
9844
AC_DEFUN([AM_SET_LEADING_DOT],
 
9845
[rm -rf .tst 2>/dev/null
 
9846
mkdir .tst 2>/dev/null
 
9847
if test -d .tst; then
 
9848
  am__leading_dot=.
 
9849
else
 
9850
  am__leading_dot=_
 
9851
fi
 
9852
rmdir .tst 2>/dev/null
 
9853
AC_SUBST([am__leading_dot])])
 
9854
 
 
9855
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
9856
# From Jim Meyering
 
9857
 
 
9858
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
9859
# Free Software Foundation, Inc.
 
9860
#
 
9861
# This file is free software; the Free Software Foundation
 
9862
# gives unlimited permission to copy and/or distribute it,
 
9863
# with or without modifications, as long as this notice is preserved.
 
9864
 
 
9865
# serial 5
 
9866
 
 
9867
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
9868
# ----------------------------------
 
9869
# Control maintainer-specific portions of Makefiles.
 
9870
# Default is to disable them, unless `enable' is passed literally.
 
9871
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
9872
# can override the default with the --enable/--disable switch.
 
9873
AC_DEFUN([AM_MAINTAINER_MODE],
 
9874
[m4_case(m4_default([$1], [disable]),
 
9875
       [enable], [m4_define([am_maintainer_other], [disable])],
 
9876
       [disable], [m4_define([am_maintainer_other], [enable])],
 
9877
       [m4_define([am_maintainer_other], [enable])
 
9878
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
9879
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
9880
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
9881
  AC_ARG_ENABLE([maintainer-mode],
 
9882
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
 
9883
                          (and sometimes confusing) to the casual installer],
 
9884
      [USE_MAINTAINER_MODE=$enableval],
 
9885
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
9886
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
9887
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
 
9888
  MAINT=$MAINTAINER_MODE_TRUE
 
9889
  AC_SUBST([MAINT])dnl
 
9890
]
 
9891
)
 
9892
 
 
9893
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
9894
 
 
9895
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
9896
 
 
9897
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
9898
#
 
9899
# This file is free software; the Free Software Foundation
 
9900
# gives unlimited permission to copy and/or distribute it,
 
9901
# with or without modifications, as long as this notice is preserved.
 
9902
 
 
9903
# serial 4
 
9904
 
 
9905
# AM_MAKE_INCLUDE()
 
9906
# -----------------
 
9907
# Check to see how make treats includes.
 
9908
AC_DEFUN([AM_MAKE_INCLUDE],
 
9909
[am_make=${MAKE-make}
 
9910
cat > confinc << 'END'
 
9911
am__doit:
 
9912
        @echo this is the am__doit target
 
9913
.PHONY: am__doit
 
9914
END
 
9915
# If we don't find an include directive, just comment out the code.
 
9916
AC_MSG_CHECKING([for style of include used by $am_make])
 
9917
am__include="#"
 
9918
am__quote=
 
9919
_am_result=none
 
9920
# First try GNU make style include.
 
9921
echo "include confinc" > confmf
 
9922
# Ignore all kinds of additional output from `make'.
 
9923
case `$am_make -s -f confmf 2> /dev/null` in #(
 
9924
*the\ am__doit\ target*)
 
9925
  am__include=include
 
9926
  am__quote=
 
9927
  _am_result=GNU
 
9928
  ;;
 
9929
esac
 
9930
# Now try BSD make style include.
 
9931
if test "$am__include" = "#"; then
 
9932
   echo '.include "confinc"' > confmf
 
9933
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
9934
   *the\ am__doit\ target*)
 
9935
     am__include=.include
 
9936
     am__quote="\""
 
9937
     _am_result=BSD
 
9938
     ;;
 
9939
   esac
 
9940
fi
 
9941
AC_SUBST([am__include])
 
9942
AC_SUBST([am__quote])
 
9943
AC_MSG_RESULT([$_am_result])
 
9944
rm -f confinc confmf
 
9945
])
 
9946
 
 
9947
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
9948
# Free Software Foundation, Inc.
 
9949
#
 
9950
# This file is free software; the Free Software Foundation
 
9951
# gives unlimited permission to copy and/or distribute it,
 
9952
# with or without modifications, as long as this notice is preserved.
 
9953
 
 
9954
# serial 6
 
9955
 
 
9956
# AM_PROG_CC_C_O
 
9957
# --------------
 
9958
# Like AC_PROG_CC_C_O, but changed for automake.
 
9959
AC_DEFUN([AM_PROG_CC_C_O],
 
9960
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
 
9961
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
9962
AC_REQUIRE_AUX_FILE([compile])dnl
 
9963
# FIXME: we rely on the cache variable name because
 
9964
# there is no other way.
 
9965
set dummy $CC
 
9966
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
9967
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
9968
if test "$am_t" != yes; then
 
9969
   # Losing compiler, so override with the script.
 
9970
   # FIXME: It is wrong to rewrite CC.
 
9971
   # But if we don't then we get into trouble of one sort or another.
 
9972
   # A longer-term fix would be to have automake use am__CC in this case,
 
9973
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
9974
   CC="$am_aux_dir/compile $CC"
 
9975
fi
 
9976
dnl Make sure AC_PROG_CC is never called again, or it will override our
 
9977
dnl setting of CC.
 
9978
m4_define([AC_PROG_CC],
 
9979
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
 
9980
])
 
9981
 
 
9982
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
9983
 
 
9984
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
9985
# Free Software Foundation, Inc.
 
9986
#
 
9987
# This file is free software; the Free Software Foundation
 
9988
# gives unlimited permission to copy and/or distribute it,
 
9989
# with or without modifications, as long as this notice is preserved.
 
9990
 
 
9991
# serial 6
 
9992
 
 
9993
# AM_MISSING_PROG(NAME, PROGRAM)
 
9994
# ------------------------------
 
9995
AC_DEFUN([AM_MISSING_PROG],
 
9996
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
9997
$1=${$1-"${am_missing_run}$2"}
 
9998
AC_SUBST($1)])
 
9999
 
 
10000
 
 
10001
# AM_MISSING_HAS_RUN
 
10002
# ------------------
 
10003
# Define MISSING if not defined so far and test if it supports --run.
 
10004
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
10005
AC_DEFUN([AM_MISSING_HAS_RUN],
 
10006
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
10007
AC_REQUIRE_AUX_FILE([missing])dnl
 
10008
if test x"${MISSING+set}" != xset; then
 
10009
  case $am_aux_dir in
 
10010
  *\ * | *\     *)
 
10011
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
10012
  *)
 
10013
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
10014
  esac
 
10015
fi
 
10016
# Use eval to expand $SHELL
 
10017
if eval "$MISSING --run true"; then
 
10018
  am_missing_run="$MISSING --run "
 
10019
else
 
10020
  am_missing_run=
 
10021
  AC_MSG_WARN([`missing' script is too old or missing])
 
10022
fi
 
10023
])
 
10024
 
 
10025
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
10026
#
 
10027
# This file is free software; the Free Software Foundation
 
10028
# gives unlimited permission to copy and/or distribute it,
 
10029
# with or without modifications, as long as this notice is preserved.
 
10030
 
 
10031
# AM_PROG_MKDIR_P
 
10032
# ---------------
 
10033
# Check for `mkdir -p'.
 
10034
AC_DEFUN([AM_PROG_MKDIR_P],
 
10035
[AC_PREREQ([2.60])dnl
 
10036
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
10037
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
10038
dnl while keeping a definition of mkdir_p for backward compatibility.
 
10039
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
10040
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
10041
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
10042
dnl adjustment using top_builddir (which is defined more often than
 
10043
dnl MKDIR_P).
 
10044
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
10045
case $mkdir_p in
 
10046
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
10047
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
10048
esac
 
10049
])
 
10050
 
 
10051
# Helper functions for option handling.                     -*- Autoconf -*-
 
10052
 
 
10053
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
10054
#
 
10055
# This file is free software; the Free Software Foundation
 
10056
# gives unlimited permission to copy and/or distribute it,
 
10057
# with or without modifications, as long as this notice is preserved.
 
10058
 
 
10059
# serial 4
 
10060
 
 
10061
# _AM_MANGLE_OPTION(NAME)
 
10062
# -----------------------
 
10063
AC_DEFUN([_AM_MANGLE_OPTION],
 
10064
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
10065
 
 
10066
# _AM_SET_OPTION(NAME)
 
10067
# ------------------------------
 
10068
# Set option NAME.  Presently that only means defining a flag for this option.
 
10069
AC_DEFUN([_AM_SET_OPTION],
 
10070
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
10071
 
 
10072
# _AM_SET_OPTIONS(OPTIONS)
 
10073
# ----------------------------------
 
10074
# OPTIONS is a space-separated list of Automake options.
 
10075
AC_DEFUN([_AM_SET_OPTIONS],
 
10076
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
10077
 
 
10078
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
10079
# -------------------------------------------
 
10080
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
10081
AC_DEFUN([_AM_IF_OPTION],
 
10082
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
10083
 
 
10084
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
10085
 
 
10086
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
 
10087
# Free Software Foundation, Inc.
 
10088
#
 
10089
# This file is free software; the Free Software Foundation
 
10090
# gives unlimited permission to copy and/or distribute it,
 
10091
# with or without modifications, as long as this notice is preserved.
 
10092
 
 
10093
# serial 5
 
10094
 
 
10095
# AM_SANITY_CHECK
 
10096
# ---------------
 
10097
AC_DEFUN([AM_SANITY_CHECK],
 
10098
[AC_MSG_CHECKING([whether build environment is sane])
 
10099
# Just in case
 
10100
sleep 1
 
10101
echo timestamp > conftest.file
 
10102
# Reject unsafe characters in $srcdir or the absolute working directory
 
10103
# name.  Accept space and tab only in the latter.
 
10104
am_lf='
 
10105
'
 
10106
case `pwd` in
 
10107
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
10108
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
10109
esac
 
10110
case $srcdir in
 
10111
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
10112
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
10113
esac
 
10114
 
 
10115
# Do `set' in a subshell so we don't clobber the current shell's
 
10116
# arguments.  Must try -L first in case configure is actually a
 
10117
# symlink; some systems play weird games with the mod time of symlinks
 
10118
# (eg FreeBSD returns the mod time of the symlink's containing
 
10119
# directory).
 
10120
if (
 
10121
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
10122
   if test "$[*]" = "X"; then
 
10123
      # -L didn't work.
 
10124
      set X `ls -t "$srcdir/configure" conftest.file`
 
10125
   fi
 
10126
   rm -f conftest.file
 
10127
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
10128
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
10129
 
 
10130
      # If neither matched, then we have a broken ls.  This can happen
 
10131
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
10132
      # broken ls alias from the environment.  This has actually
 
10133
      # happened.  Such a system could not be considered "sane".
 
10134
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
10135
alias in your environment])
 
10136
   fi
 
10137
 
 
10138
   test "$[2]" = conftest.file
 
10139
   )
 
10140
then
 
10141
   # Ok.
 
10142
   :
 
10143
else
 
10144
   AC_MSG_ERROR([newly created file is older than distributed files!
 
10145
Check your system clock])
 
10146
fi
 
10147
AC_MSG_RESULT(yes)])
 
10148
 
 
10149
# Copyright (C) 2009  Free Software Foundation, Inc.
 
10150
#
 
10151
# This file is free software; the Free Software Foundation
 
10152
# gives unlimited permission to copy and/or distribute it,
 
10153
# with or without modifications, as long as this notice is preserved.
 
10154
 
 
10155
# serial 1
 
10156
 
 
10157
# AM_SILENT_RULES([DEFAULT])
 
10158
# --------------------------
 
10159
# Enable less verbose build rules; with the default set to DEFAULT
 
10160
# (`yes' being less verbose, `no' or empty being verbose).
 
10161
AC_DEFUN([AM_SILENT_RULES],
 
10162
[AC_ARG_ENABLE([silent-rules],
 
10163
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
10164
  --disable-silent-rules         verbose build output (undo: `make V=0')])
 
10165
case $enable_silent_rules in
 
10166
yes) AM_DEFAULT_VERBOSITY=0;;
 
10167
no)  AM_DEFAULT_VERBOSITY=1;;
 
10168
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
10169
esac
 
10170
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
10171
AM_BACKSLASH='\'
 
10172
AC_SUBST([AM_BACKSLASH])dnl
 
10173
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
10174
])
 
10175
 
 
10176
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
10177
#
 
10178
# This file is free software; the Free Software Foundation
 
10179
# gives unlimited permission to copy and/or distribute it,
 
10180
# with or without modifications, as long as this notice is preserved.
 
10181
 
 
10182
# AM_PROG_INSTALL_STRIP
 
10183
# ---------------------
 
10184
# One issue with vendor `install' (even GNU) is that you can't
 
10185
# specify the program used to strip binaries.  This is especially
 
10186
# annoying in cross-compiling environments, where the build's strip
 
10187
# is unlikely to handle the host's binaries.
 
10188
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
10189
# always use install-sh in `make install-strip', and initialize
 
10190
# STRIPPROG with the value of the STRIP variable (set by the user).
 
10191
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
10192
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
10193
# Installed binaries are usually stripped using `strip' when the user
 
10194
# run `make install-strip'.  However `strip' might not be the right
 
10195
# tool to use in cross-compilation environments, therefore Automake
 
10196
# will honor the `STRIP' environment variable to overrule this program.
 
10197
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
10198
if test "$cross_compiling" != no; then
 
10199
  AC_CHECK_TOOL([STRIP], [strip], :)
 
10200
fi
 
10201
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
10202
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
10203
 
 
10204
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
10205
#
 
10206
# This file is free software; the Free Software Foundation
 
10207
# gives unlimited permission to copy and/or distribute it,
 
10208
# with or without modifications, as long as this notice is preserved.
 
10209
 
 
10210
# serial 2
 
10211
 
 
10212
# _AM_SUBST_NOTMAKE(VARIABLE)
 
10213
# ---------------------------
 
10214
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
10215
# This macro is traced by Automake.
 
10216
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
10217
 
 
10218
# AM_SUBST_NOTMAKE(VARIABLE)
 
10219
# ---------------------------
 
10220
# Public sister of _AM_SUBST_NOTMAKE.
 
10221
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
10222
 
 
10223
# Check how to create a tarball.                            -*- Autoconf -*-
 
10224
 
 
10225
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
10226
#
 
10227
# This file is free software; the Free Software Foundation
 
10228
# gives unlimited permission to copy and/or distribute it,
 
10229
# with or without modifications, as long as this notice is preserved.
 
10230
 
 
10231
# serial 2
 
10232
 
 
10233
# _AM_PROG_TAR(FORMAT)
 
10234
# --------------------
 
10235
# Check how to create a tarball in format FORMAT.
 
10236
# FORMAT should be one of `v7', `ustar', or `pax'.
 
10237
#
 
10238
# Substitute a variable $(am__tar) that is a command
 
10239
# writing to stdout a FORMAT-tarball containing the directory
 
10240
# $tardir.
 
10241
#     tardir=directory && $(am__tar) > result.tar
 
10242
#
 
10243
# Substitute a variable $(am__untar) that extract such
 
10244
# a tarball read from stdin.
 
10245
#     $(am__untar) < result.tar
 
10246
AC_DEFUN([_AM_PROG_TAR],
 
10247
[# Always define AMTAR for backward compatibility.
 
10248
AM_MISSING_PROG([AMTAR], [tar])
 
10249
m4_if([$1], [v7],
 
10250
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
10251
     [m4_case([$1], [ustar],, [pax],,
 
10252
              [m4_fatal([Unknown tar format])])
 
10253
AC_MSG_CHECKING([how to create a $1 tar archive])
 
10254
# Loop over all known methods to create a tar archive until one works.
 
10255
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
10256
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
10257
# Do not fold the above two line into one, because Tru64 sh and
 
10258
# Solaris sh will not grok spaces in the rhs of `-'.
 
10259
for _am_tool in $_am_tools
 
10260
do
 
10261
  case $_am_tool in
 
10262
  gnutar)
 
10263
    for _am_tar in tar gnutar gtar;
 
10264
    do
 
10265
      AM_RUN_LOG([$_am_tar --version]) && break
 
10266
    done
 
10267
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
10268
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
10269
    am__untar="$_am_tar -xf -"
 
10270
    ;;
 
10271
  plaintar)
 
10272
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
10273
    # ustar tarball either.
 
10274
    (tar --version) >/dev/null 2>&1 && continue
 
10275
    am__tar='tar chf - "$$tardir"'
 
10276
    am__tar_='tar chf - "$tardir"'
 
10277
    am__untar='tar xf -'
 
10278
    ;;
 
10279
  pax)
 
10280
    am__tar='pax -L -x $1 -w "$$tardir"'
 
10281
    am__tar_='pax -L -x $1 -w "$tardir"'
 
10282
    am__untar='pax -r'
 
10283
    ;;
 
10284
  cpio)
 
10285
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
10286
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
10287
    am__untar='cpio -i -H $1 -d'
 
10288
    ;;
 
10289
  none)
 
10290
    am__tar=false
 
10291
    am__tar_=false
 
10292
    am__untar=false
 
10293
    ;;
 
10294
  esac
 
10295
 
 
10296
  # If the value was cached, stop now.  We just wanted to have am__tar
 
10297
  # and am__untar set.
 
10298
  test -n "${am_cv_prog_tar_$1}" && break
 
10299
 
 
10300
  # tar/untar a dummy directory, and stop if the command works
 
10301
  rm -rf conftest.dir
 
10302
  mkdir conftest.dir
 
10303
  echo GrepMe > conftest.dir/file
 
10304
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
10305
  rm -rf conftest.dir
 
10306
  if test -s conftest.tar; then
 
10307
    AM_RUN_LOG([$am__untar <conftest.tar])
 
10308
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
10309
  fi
 
10310
done
 
10311
rm -rf conftest.dir
 
10312
 
 
10313
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
10314
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
10315
AC_SUBST([am__tar])
 
10316
AC_SUBST([am__untar])
 
10317
]) # _AM_PROG_TAR
 
10318