~ubuntu-branches/ubuntu/quantal/libbonobo/quantal-201207170711

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2009-03-06 18:53:16 UTC
  • mfrom: (1.1.25 upstream) (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090306185316-uf09r30g7cvf67xi
Tags: 2.24.1-1
* New upstream bugfix release.
* debian/control.in:
  + Build depend on GLib >= 2.14.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
4
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(AC_AUTOCONF_VERSION, [2.62],,
17
 
[m4_warning([this file was generated for autoconf 2.62.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
 
17
[m4_warning([this file was generated for autoconf 2.63.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
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.in.
 
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_in,[],[
 
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
# gnome-common.m4
 
456
 
457
 
 
458
dnl GNOME_COMMON_INIT
 
459
 
 
460
AC_DEFUN([GNOME_COMMON_INIT],
 
461
[
 
462
  dnl this macro should come after AC_CONFIG_MACRO_DIR
 
463
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
 
464
 
 
465
  dnl ensure that when the Automake generated makefile calls aclocal,
 
466
  dnl it honours the $ACLOCAL_FLAGS environment variable
 
467
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
 
468
  if test -n "$ac_macro_dir"; then
 
469
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
 
470
  fi
 
471
 
 
472
  AC_SUBST([ACLOCAL_AMFLAGS])
 
473
])
 
474
 
 
475
AC_DEFUN([GNOME_DEBUG_CHECK],
 
476
[
 
477
        AC_ARG_ENABLE([debug],
 
478
                      AC_HELP_STRING([--enable-debug],
 
479
                                     [turn on debugging]),,
 
480
                      [enable_debug=no])
 
481
 
 
482
        if test x$enable_debug = xyes ; then
 
483
            AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
 
484
                [Enable additional debugging at the expense of performance and size])
 
485
        fi
 
486
])
 
487
 
 
488
dnl GNOME_MAINTAINER_MODE_DEFINES ()
 
489
dnl define DISABLE_DEPRECATED
 
490
dnl
 
491
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
 
492
[
 
493
        AC_REQUIRE([AM_MAINTAINER_MODE])
 
494
 
 
495
        if test $USE_MAINTAINER_MODE = yes; then
 
496
                DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGCONF_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -DGNOME_VFS_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED"
 
497
        else
 
498
                DISABLE_DEPRECATED=""
 
499
        fi
 
500
        AC_SUBST(DISABLE_DEPRECATED)
 
501
])
 
502
 
 
503
dnl GNOME_COMPILE_WARNINGS
 
504
dnl Turn on many useful compiler warnings
 
505
dnl For now, only works on GCC
 
506
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
 
507
    dnl ******************************
 
508
    dnl More compiler warnings
 
509
    dnl ******************************
 
510
 
 
511
    AC_ARG_ENABLE(compile-warnings, 
 
512
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
 
513
                                 [Turn on compiler warnings]),,
 
514
                  [enable_compile_warnings="m4_default([$1],[yes])"])
 
515
 
 
516
    warnCFLAGS=
 
517
    if test "x$GCC" != xyes; then
 
518
        enable_compile_warnings=no
 
519
    fi
 
520
 
 
521
    warning_flags=
 
522
    realsave_CFLAGS="$CFLAGS"
 
523
 
 
524
    case "$enable_compile_warnings" in
 
525
    no)
 
526
        warning_flags=
 
527
        ;;
 
528
    minimum)
 
529
        warning_flags="-Wall"
 
530
        ;;
 
531
    yes)
 
532
        warning_flags="-Wall -Wmissing-prototypes"
 
533
        ;;
 
534
    maximum|error)
 
535
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
 
536
        CFLAGS="$warning_flags $CFLAGS"
 
537
        for option in -Wno-sign-compare; do
 
538
                SAVE_CFLAGS="$CFLAGS"
 
539
                CFLAGS="$CFLAGS $option"
 
540
                AC_MSG_CHECKING([whether gcc understands $option])
 
541
                AC_TRY_COMPILE([], [],
 
542
                        has_option=yes,
 
543
                        has_option=no,)
 
544
                CFLAGS="$SAVE_CFLAGS"
 
545
                AC_MSG_RESULT($has_option)
 
546
                if test $has_option = yes; then
 
547
                  warning_flags="$warning_flags $option"
 
548
                fi
 
549
                unset has_option
 
550
                unset SAVE_CFLAGS
 
551
        done
 
552
        unset option
 
553
        if test "$enable_compile_warnings" = "error" ; then
 
554
            warning_flags="$warning_flags -Werror"
 
555
        fi
 
556
        ;;
 
557
    *)
 
558
        AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
 
559
        ;;
 
560
    esac
 
561
    CFLAGS="$realsave_CFLAGS"
 
562
    AC_MSG_CHECKING(what warning flags to pass to the C compiler)
 
563
    AC_MSG_RESULT($warning_flags)
 
564
 
 
565
    AC_ARG_ENABLE(iso-c,
 
566
                  AC_HELP_STRING([--enable-iso-c],
 
567
                                 [Try to warn if code is not ISO C ]),,
 
568
                  [enable_iso_c=no])
 
569
 
 
570
    AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
 
571
    complCFLAGS=
 
572
    if test "x$enable_iso_c" != "xno"; then
 
573
        if test "x$GCC" = "xyes"; then
 
574
        case " $CFLAGS " in
 
575
            *[\ \       ]-ansi[\ \      ]*) ;;
 
576
            *) complCFLAGS="$complCFLAGS -ansi" ;;
 
577
        esac
 
578
        case " $CFLAGS " in
 
579
            *[\ \       ]-pedantic[\ \  ]*) ;;
 
580
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
 
581
        esac
 
582
        fi
 
583
    fi
 
584
    AC_MSG_RESULT($complCFLAGS)
 
585
 
 
586
    WARN_CFLAGS="$warning_flags $complCFLAGS"
 
587
    AC_SUBST(WARN_CFLAGS)
 
588
])
 
589
 
 
590
dnl For C++, do basically the same thing.
 
591
 
 
592
AC_DEFUN([GNOME_CXX_WARNINGS],[
 
593
  AC_ARG_ENABLE(cxx-warnings,
 
594
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
 
595
                               [Turn on compiler warnings.]),,
 
596
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
 
597
 
 
598
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
 
599
  warnCXXFLAGS=
 
600
  if test "x$GXX" != xyes; then
 
601
    enable_cxx_warnings=no
 
602
  fi
 
603
  if test "x$enable_cxx_warnings" != "xno"; then
 
604
    if test "x$GXX" = "xyes"; then
 
605
      case " $CXXFLAGS " in
 
606
      *[\ \     ]-Wall[\ \      ]*) ;;
 
607
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
 
608
      esac
 
609
 
 
610
      ## -W is not all that useful.  And it cannot be controlled
 
611
      ## with individual -Wno-xxx flags, unlike -Wall
 
612
      if test "x$enable_cxx_warnings" = "xyes"; then
 
613
        warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
 
614
      fi
 
615
    fi
 
616
  fi
 
617
  AC_MSG_RESULT($warnCXXFLAGS)
 
618
 
 
619
   AC_ARG_ENABLE(iso-cxx,
 
620
                 AC_HELP_STRING([--enable-iso-cxx],
 
621
                                [Try to warn if code is not ISO C++ ]),,
 
622
                 [enable_iso_cxx=no])
 
623
 
 
624
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
 
625
   complCXXFLAGS=
 
626
   if test "x$enable_iso_cxx" != "xno"; then
 
627
     if test "x$GXX" = "xyes"; then
 
628
      case " $CXXFLAGS " in
 
629
      *[\ \     ]-ansi[\ \      ]*) ;;
 
630
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
 
631
      esac
 
632
 
 
633
      case " $CXXFLAGS " in
 
634
      *[\ \     ]-pedantic[\ \  ]*) ;;
 
635
      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
 
636
      esac
 
637
     fi
 
638
   fi
 
639
  AC_MSG_RESULT($complCXXFLAGS)
 
640
 
 
641
  WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
 
642
  AC_SUBST(WARN_CXXFLAGS)
 
643
])
 
644
 
 
645
dnl -*- mode: autoconf -*-
 
646
 
 
647
# serial 1
 
648
 
 
649
dnl Usage:
 
650
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
 
651
AC_DEFUN([GTK_DOC_CHECK],
 
652
[
 
653
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
 
654
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
 
655
  dnl for overriding the documentation installation directory
 
656
  AC_ARG_WITH([html-dir],
 
657
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
 
658
    [with_html_dir='${datadir}/gtk-doc/html'])
 
659
  HTML_DIR="$with_html_dir"
 
660
  AC_SUBST([HTML_DIR])
 
661
 
 
662
  dnl enable/disable documentation building
 
663
  AC_ARG_ENABLE([gtk-doc],
 
664
    AS_HELP_STRING([--enable-gtk-doc],
 
665
                   [use gtk-doc to build documentation [[default=no]]]),,
 
666
    [enable_gtk_doc=no])
 
667
 
 
668
  if test x$enable_gtk_doc = xyes; then
 
669
    ifelse([$1],[],
 
670
      [PKG_CHECK_EXISTS([gtk-doc],,
 
671
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
 
672
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
 
673
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
 
674
  fi
 
675
 
 
676
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
 
677
  AC_MSG_RESULT($enable_gtk_doc)
 
678
 
 
679
  AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
 
680
 
 
681
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
 
682
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
 
683
])
 
684
 
22
685
 
23
686
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
24
687
# serial 40 IT_PROG_INTLTOOL
25
 
AC_DEFUN([IT_PROG_INTLTOOL],
26
 
[AC_PREREQ([2.50])dnl
 
688
AC_DEFUN([IT_PROG_INTLTOOL], [
 
689
AC_PREREQ([2.50])dnl
 
690
AC_REQUIRE([AM_NLS])dnl
27
691
 
28
692
case "$am__api_version" in
29
693
    1.[01234])
96
760
AC_PATH_PROG(XGETTEXT, xgettext)
97
761
AC_PATH_PROG(MSGMERGE, msgmerge)
98
762
AC_PATH_PROG(MSGFMT, msgfmt)
 
763
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
99
764
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
100
765
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
101
766
fi
167
832
dnl of config.status.
168
833
AC_CONFIG_COMMANDS_PRE([
169
834
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
835
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" ]; then
 
836
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
 
837
    fi
170
838
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
171
839
    >"$1/stamp-it.tmp"
172
840
    [sed '/^#/d
175
843
        '"s|^|  $ac_top_srcdir/|" \
176
844
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
177
845
    ]
178
 
    if test ! -f "$1/Makefile"; then
179
 
      AC_MSG_ERROR([$1/Makefile is not ready.])
180
 
    fi
181
 
    mv "$1/Makefile" "$1/Makefile.tmp"
182
846
    [sed '/^POTFILES =/,/[^\\]$/ {
183
847
                /^POTFILES =/!d
184
848
                r $1/POTFILES
185
849
          }
186
 
         ' "$1/Makefile.tmp" >"$1/Makefile"]
 
850
         ' "$1/Makefile.in" >"$1/Makefile"]
187
851
    rm -f "$1/Makefile.tmp"
188
852
    mv "$1/stamp-it.tmp" "$1/stamp-it"
189
853
  ])
190
854
])dnl
191
855
])
192
856
 
193
 
 
194
857
# deprecated macros
195
858
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
196
859
# A hint is needed for aclocal from Automake <= 1.9.4:
198
861
 
199
862
 
200
863
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
201
 
 
202
 
# serial 52 AC_PROG_LIBTOOL
203
 
 
204
 
 
205
 
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
206
 
# -----------------------------------------------------------
207
 
# If this macro is not defined by Autoconf, define it here.
208
 
m4_ifdef([AC_PROVIDE_IFELSE],
209
 
         [],
210
 
         [m4_define([AC_PROVIDE_IFELSE],
211
 
                 [m4_ifdef([AC_PROVIDE_$1],
212
 
                           [$2], [$3])])])
213
 
 
214
 
 
215
 
# AC_PROG_LIBTOOL
216
 
# ---------------
217
 
AC_DEFUN([AC_PROG_LIBTOOL],
218
 
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
219
 
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
220
 
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
221
 
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
222
 
    [AC_LIBTOOL_CXX],
223
 
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
224
 
  ])])
225
 
dnl And a similar setup for Fortran 77 support
226
 
  AC_PROVIDE_IFELSE([AC_PROG_F77],
227
 
    [AC_LIBTOOL_F77],
228
 
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
229
 
])])
230
 
 
231
 
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
232
 
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
233
 
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
234
 
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
235
 
    [AC_LIBTOOL_GCJ],
236
 
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
237
 
      [AC_LIBTOOL_GCJ],
238
 
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
239
 
        [AC_LIBTOOL_GCJ],
240
 
      [ifdef([AC_PROG_GCJ],
241
 
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
242
 
       ifdef([A][M_PROG_GCJ],
243
 
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
244
 
       ifdef([LT_AC_PROG_GCJ],
245
 
             [define([LT_AC_PROG_GCJ],
246
 
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
247
 
])])# AC_PROG_LIBTOOL
248
 
 
249
 
 
250
 
# _AC_PROG_LIBTOOL
251
 
# ----------------
252
 
AC_DEFUN([_AC_PROG_LIBTOOL],
253
 
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
254
 
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
255
 
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
256
 
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
 
864
#
 
865
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
866
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
867
#   Written by Gordon Matzigkeit, 1996
 
868
#
 
869
# This file is free software; the Free Software Foundation gives
 
870
# unlimited permission to copy and/or distribute it, with or without
 
871
# modifications, as long as this notice is preserved.
 
872
 
 
873
m4_define([_LT_COPYING], [dnl
 
874
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
875
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
876
#   Written by Gordon Matzigkeit, 1996
 
877
#
 
878
#   This file is part of GNU Libtool.
 
879
#
 
880
# GNU Libtool is free software; you can redistribute it and/or
 
881
# modify it under the terms of the GNU General Public License as
 
882
# published by the Free Software Foundation; either version 2 of
 
883
# the License, or (at your option) any later version.
 
884
#
 
885
# As a special exception to the GNU General Public License,
 
886
# if you distribute this file as part of a program or library that
 
887
# is built using GNU Libtool, you may include this file under the
 
888
# same distribution terms that you use for the rest of that program.
 
889
#
 
890
# GNU Libtool is distributed in the hope that it will be useful,
 
891
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
892
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
893
# GNU General Public License for more details.
 
894
#
 
895
# You should have received a copy of the GNU General Public License
 
896
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
897
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
898
# obtained by writing to the Free Software Foundation, Inc.,
 
899
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
900
])
 
901
 
 
902
# serial 56 LT_INIT
 
903
 
 
904
 
 
905
# LT_PREREQ(VERSION)
 
906
# ------------------
 
907
# Complain and exit if this libtool version is less that VERSION.
 
908
m4_defun([LT_PREREQ],
 
909
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
 
910
       [m4_default([$3],
 
911
                   [m4_fatal([Libtool version $1 or higher is required],
 
912
                             63)])],
 
913
       [$2])])
 
914
 
 
915
 
 
916
# _LT_CHECK_BUILDDIR
 
917
# ------------------
 
918
# Complain if the absolute build directory name contains unusual characters
 
919
m4_defun([_LT_CHECK_BUILDDIR],
 
920
[case `pwd` in
 
921
  *\ * | *\     *)
 
922
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
 
923
esac
 
924
])
 
925
 
 
926
 
 
927
# LT_INIT([OPTIONS])
 
928
# ------------------
 
929
AC_DEFUN([LT_INIT],
 
930
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
931
AC_BEFORE([$0], [LT_LANG])dnl
 
932
AC_BEFORE([$0], [LT_OUTPUT])dnl
 
933
AC_BEFORE([$0], [LTDL_INIT])dnl
 
934
m4_require([_LT_CHECK_BUILDDIR])dnl
 
935
 
 
936
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
 
937
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
 
938
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
 
939
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
 
940
dnl unless we require an AC_DEFUNed macro:
 
941
AC_REQUIRE([LTOPTIONS_VERSION])dnl
 
942
AC_REQUIRE([LTSUGAR_VERSION])dnl
 
943
AC_REQUIRE([LTVERSION_VERSION])dnl
 
944
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
 
945
m4_require([_LT_PROG_LTMAIN])dnl
 
946
 
 
947
dnl Parse OPTIONS
 
948
_LT_SET_OPTIONS([$0], [$1])
257
949
 
258
950
# This can be used to rebuild libtool when needed
259
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
951
LIBTOOL_DEPS="$ltmain"
260
952
 
261
953
# Always use our own libtool.
262
954
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
263
955
AC_SUBST(LIBTOOL)dnl
264
956
 
265
 
# Prevent multiple expansion
266
 
define([AC_PROG_LIBTOOL], [])
267
 
])# _AC_PROG_LIBTOOL
268
 
 
269
 
 
270
 
# AC_LIBTOOL_SETUP
271
 
# ----------------
272
 
AC_DEFUN([AC_LIBTOOL_SETUP],
273
 
[AC_PREREQ(2.50)dnl
274
 
AC_REQUIRE([AC_ENABLE_SHARED])dnl
275
 
AC_REQUIRE([AC_ENABLE_STATIC])dnl
276
 
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
277
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
957
_LT_SETUP
 
958
 
 
959
# Only expand once:
 
960
m4_define([LT_INIT])
 
961
])# LT_INIT
 
962
 
 
963
# Old names:
 
964
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
 
965
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
 
966
dnl aclocal-1.4 backwards compatibility:
 
967
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
 
968
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
 
969
 
 
970
 
 
971
# _LT_CC_BASENAME(CC)
 
972
# -------------------
 
973
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
974
m4_defun([_LT_CC_BASENAME],
 
975
[for cc_temp in $1""; do
 
976
  case $cc_temp in
 
977
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
978
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
979
    \-*) ;;
 
980
    *) break;;
 
981
  esac
 
982
done
 
983
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
984
])
 
985
 
 
986
 
 
987
# _LT_FILEUTILS_DEFAULTS
 
988
# ----------------------
 
989
# It is okay to use these file commands and assume they have been set
 
990
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
 
991
m4_defun([_LT_FILEUTILS_DEFAULTS],
 
992
[: ${CP="cp -f"}
 
993
: ${MV="mv -f"}
 
994
: ${RM="rm -f"}
 
995
])# _LT_FILEUTILS_DEFAULTS
 
996
 
 
997
 
 
998
# _LT_SETUP
 
999
# ---------
 
1000
m4_defun([_LT_SETUP],
 
1001
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
278
1002
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
1003
_LT_DECL([], [host_alias], [0], [The host system])dnl
 
1004
_LT_DECL([], [host], [0])dnl
 
1005
_LT_DECL([], [host_os], [0])dnl
 
1006
dnl
 
1007
_LT_DECL([], [build_alias], [0], [The build system])dnl
 
1008
_LT_DECL([], [build], [0])dnl
 
1009
_LT_DECL([], [build_os], [0])dnl
 
1010
dnl
279
1011
AC_REQUIRE([AC_PROG_CC])dnl
280
 
AC_REQUIRE([AC_PROG_LD])dnl
281
 
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
282
 
AC_REQUIRE([AC_PROG_NM])dnl
283
 
 
 
1012
AC_REQUIRE([LT_PATH_LD])dnl
 
1013
AC_REQUIRE([LT_PATH_NM])dnl
 
1014
dnl
284
1015
AC_REQUIRE([AC_PROG_LN_S])dnl
285
 
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
286
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
287
 
AC_REQUIRE([AC_OBJEXT])dnl
288
 
AC_REQUIRE([AC_EXEEXT])dnl
289
 
dnl
290
 
AC_LIBTOOL_SYS_MAX_CMD_LEN
291
 
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
292
 
AC_LIBTOOL_OBJDIR
293
 
 
294
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
295
 
_LT_AC_PROG_ECHO_BACKSLASH
 
1016
test -z "$LN_S" && LN_S="ln -s"
 
1017
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
 
1018
dnl
 
1019
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
 
1020
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
 
1021
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
 
1022
dnl
 
1023
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1024
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
1025
m4_require([_LT_CMD_RELOAD])dnl
 
1026
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
1027
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
 
1028
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
1029
 
 
1030
_LT_CONFIG_LIBTOOL_INIT([
 
1031
# See if we are running on zsh, and set the options which allow our
 
1032
# commands through without removal of \ escapes INIT.
 
1033
if test -n "\${ZSH_VERSION+set}" ; then
 
1034
   setopt NO_GLOB_SUBST
 
1035
fi
 
1036
])
 
1037
if test -n "${ZSH_VERSION+set}" ; then
 
1038
   setopt NO_GLOB_SUBST
 
1039
fi
 
1040
 
 
1041
_LT_CHECK_OBJDIR
 
1042
 
 
1043
m4_require([_LT_TAG_COMPILER])dnl
 
1044
_LT_PROG_ECHO_BACKSLASH
296
1045
 
297
1046
case $host_os in
298
1047
aix3*)
308
1057
 
309
1058
# Sed substitution that helps us do robust quoting.  It backslashifies
310
1059
# metacharacters that are still active within double-quoted strings.
311
 
Xsed='sed -e 1s/^X//'
312
 
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
1060
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
313
1061
 
314
1062
# Same as above, but do not quote variable references.
315
 
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
1063
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
316
1064
 
317
1065
# Sed substitution to delay expansion of an escaped shell variable in a
318
1066
# double_quote_subst'ed string.
319
1067
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
320
1068
 
 
1069
# Sed substitution to delay expansion of an escaped single quote.
 
1070
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
1071
 
321
1072
# Sed substitution to avoid accidental globbing in evaled expressions
322
1073
no_glob_subst='s/\*/\\\*/g'
323
1074
 
324
 
# Constants:
325
 
rm="rm -f"
326
 
 
327
1075
# Global variables:
328
 
default_ofile=libtool
 
1076
ofile=libtool
329
1077
can_build_shared=yes
330
1078
 
331
1079
# All known linkers require a `.a' archive for static linking (except MSVC,
332
1080
# which needs '.lib').
333
1081
libext=a
334
 
ltmain="$ac_aux_dir/ltmain.sh"
335
 
ofile="$default_ofile"
 
1082
 
336
1083
with_gnu_ld="$lt_cv_prog_gnu_ld"
337
1084
 
338
 
AC_CHECK_TOOL(AR, ar, false)
339
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
340
 
AC_CHECK_TOOL(STRIP, strip, :)
341
 
 
342
1085
old_CC="$CC"
343
1086
old_CFLAGS="$CFLAGS"
344
1087
 
345
1088
# Set sane defaults for various variables
346
 
test -z "$AR" && AR=ar
347
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
348
 
test -z "$AS" && AS=as
349
1089
test -z "$CC" && CC=cc
350
1090
test -z "$LTCC" && LTCC=$CC
351
1091
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
352
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
353
1092
test -z "$LD" && LD=ld
354
 
test -z "$LN_S" && LN_S="ln -s"
355
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
356
 
test -z "$NM" && NM=nm
357
 
test -z "$SED" && SED=sed
358
 
test -z "$OBJDUMP" && OBJDUMP=objdump
359
 
test -z "$RANLIB" && RANLIB=:
360
 
test -z "$STRIP" && STRIP=:
361
1093
test -z "$ac_objext" && ac_objext=o
362
1094
 
363
 
# Determine commands to create old-style static archives.
364
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
365
 
old_postinstall_cmds='chmod 644 $oldlib'
366
 
old_postuninstall_cmds=
367
 
 
368
 
if test -n "$RANLIB"; then
369
 
  case $host_os in
370
 
  openbsd*)
371
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
372
 
    ;;
373
 
  *)
374
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
375
 
    ;;
376
 
  esac
377
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
378
 
fi
379
 
 
380
1095
_LT_CC_BASENAME([$compiler])
381
1096
 
382
1097
# Only perform the check for file, if the check method requires it
 
1098
test -z "$MAGIC_CMD" && MAGIC_CMD=file
383
1099
case $deplibs_check_method in
384
1100
file_magic*)
385
1101
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
386
 
    AC_PATH_MAGIC
 
1102
    _LT_PATH_MAGIC
387
1103
  fi
388
1104
  ;;
389
1105
esac
390
1106
 
391
 
_LT_REQUIRED_DARWIN_CHECKS
392
 
 
393
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
394
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
395
 
enable_win32_dll=yes, enable_win32_dll=no)
396
 
 
397
 
AC_ARG_ENABLE([libtool-lock],
398
 
    [AC_HELP_STRING([--disable-libtool-lock],
399
 
        [avoid locking (might break parallel builds)])])
400
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
401
 
 
402
 
AC_ARG_WITH([pic],
403
 
    [AC_HELP_STRING([--with-pic],
404
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
405
 
    [pic_mode="$withval"],
406
 
    [pic_mode=default])
407
 
test -z "$pic_mode" && pic_mode=default
408
 
 
409
1107
# Use C for the default configuration in the libtool script
410
 
tagname=
411
 
AC_LIBTOOL_LANG_C_CONFIG
412
 
_LT_AC_TAGCONFIG
413
 
])# AC_LIBTOOL_SETUP
414
 
 
415
 
 
416
 
# _LT_AC_SYS_COMPILER
 
1108
LT_SUPPORTED_TAG([CC])
 
1109
_LT_LANG_C_CONFIG
 
1110
_LT_LANG_DEFAULT_CONFIG
 
1111
_LT_CONFIG_COMMANDS
 
1112
])# _LT_SETUP
 
1113
 
 
1114
 
 
1115
# _LT_PROG_LTMAIN
 
1116
# ---------------
 
1117
# Note that this code is called both from `configure', and `config.status'
 
1118
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
 
1119
# `config.status' has no value for ac_aux_dir unless we are using Automake,
 
1120
# so we pass a copy along to make sure it has a sensible value anyway.
 
1121
m4_defun([_LT_PROG_LTMAIN],
 
1122
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
 
1123
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
 
1124
ltmain="$ac_aux_dir/ltmain.sh"
 
1125
])# _LT_PROG_LTMAIN
 
1126
 
 
1127
 
 
1128
 
 
1129
# So that we can recreate a full libtool script including additional
 
1130
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
 
1131
# in macros and then make a single call at the end using the `libtool'
 
1132
# label.
 
1133
 
 
1134
 
 
1135
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
 
1136
# ----------------------------------------
 
1137
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
1138
m4_define([_LT_CONFIG_LIBTOOL_INIT],
 
1139
[m4_ifval([$1],
 
1140
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
 
1141
                     [$1
 
1142
])])])
 
1143
 
 
1144
# Initialize.
 
1145
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
 
1146
 
 
1147
 
 
1148
# _LT_CONFIG_LIBTOOL([COMMANDS])
 
1149
# ------------------------------
 
1150
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
1151
m4_define([_LT_CONFIG_LIBTOOL],
 
1152
[m4_ifval([$1],
 
1153
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
 
1154
                     [$1
 
1155
])])])
 
1156
 
 
1157
# Initialize.
 
1158
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
 
1159
 
 
1160
 
 
1161
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
 
1162
# -----------------------------------------------------
 
1163
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
 
1164
[_LT_CONFIG_LIBTOOL([$1])
 
1165
_LT_CONFIG_LIBTOOL_INIT([$2])
 
1166
])
 
1167
 
 
1168
 
 
1169
# _LT_FORMAT_COMMENT([COMMENT])
 
1170
# -----------------------------
 
1171
# Add leading comment marks to the start of each line, and a trailing
 
1172
# full-stop to the whole comment if one is not present already.
 
1173
m4_define([_LT_FORMAT_COMMENT],
 
1174
[m4_ifval([$1], [
 
1175
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
 
1176
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
 
1177
)])
 
1178
 
 
1179
 
 
1180
 
 
1181
 
 
1182
 
 
1183
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
 
1184
# -------------------------------------------------------------------
 
1185
# CONFIGNAME is the name given to the value in the libtool script.
 
1186
# VARNAME is the (base) name used in the configure script.
 
1187
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
 
1188
# VARNAME.  Any other value will be used directly.
 
1189
m4_define([_LT_DECL],
 
1190
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
 
1191
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
 
1192
        [m4_ifval([$1], [$1], [$2])])
 
1193
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
 
1194
    m4_ifval([$4],
 
1195
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
 
1196
    lt_dict_add_subkey([lt_decl_dict], [$2],
 
1197
        [tagged?], [m4_ifval([$5], [yes], [no])])])
 
1198
])
 
1199
 
 
1200
 
 
1201
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
 
1202
# --------------------------------------------------------
 
1203
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
 
1204
 
 
1205
 
 
1206
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
 
1207
# ------------------------------------------------
 
1208
m4_define([lt_decl_tag_varnames],
 
1209
[_lt_decl_filter([tagged?], [yes], $@)])
 
1210
 
 
1211
 
 
1212
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
 
1213
# ---------------------------------------------------------
 
1214
m4_define([_lt_decl_filter],
 
1215
[m4_case([$#],
 
1216
  [0], [m4_fatal([$0: too few arguments: $#])],
 
1217
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
 
1218
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
 
1219
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
 
1220
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
 
1221
])
 
1222
 
 
1223
 
 
1224
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
 
1225
# --------------------------------------------------
 
1226
m4_define([lt_decl_quote_varnames],
 
1227
[_lt_decl_filter([value], [1], $@)])
 
1228
 
 
1229
 
 
1230
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
 
1231
# ---------------------------------------------------
 
1232
m4_define([lt_decl_dquote_varnames],
 
1233
[_lt_decl_filter([value], [2], $@)])
 
1234
 
 
1235
 
 
1236
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
 
1237
# ---------------------------------------------------
 
1238
m4_define([lt_decl_varnames_tagged],
 
1239
[m4_assert([$# <= 2])dnl
 
1240
_$0(m4_quote(m4_default([$1], [[, ]])),
 
1241
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
 
1242
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
 
1243
m4_define([_lt_decl_varnames_tagged],
 
1244
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
 
1245
 
 
1246
 
 
1247
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
 
1248
# ------------------------------------------------
 
1249
m4_define([lt_decl_all_varnames],
 
1250
[_$0(m4_quote(m4_default([$1], [[, ]])),
 
1251
     m4_if([$2], [],
 
1252
           m4_quote(lt_decl_varnames),
 
1253
        m4_quote(m4_shift($@))))[]dnl
 
1254
])
 
1255
m4_define([_lt_decl_all_varnames],
 
1256
[lt_join($@, lt_decl_varnames_tagged([$1],
 
1257
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
 
1258
])
 
1259
 
 
1260
 
 
1261
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
 
1262
# ------------------------------------
 
1263
# Quote a variable value, and forward it to `config.status' so that its
 
1264
# declaration there will have the same value as in `configure'.  VARNAME
 
1265
# must have a single quote delimited value for this to work.
 
1266
m4_define([_LT_CONFIG_STATUS_DECLARE],
 
1267
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
1268
 
 
1269
 
 
1270
# _LT_CONFIG_STATUS_DECLARATIONS
 
1271
# ------------------------------
 
1272
# We delimit libtool config variables with single quotes, so when
 
1273
# we write them to config.status, we have to be sure to quote all
 
1274
# embedded single quotes properly.  In configure, this macro expands
 
1275
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
 
1276
#
 
1277
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
1278
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
 
1279
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
 
1280
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
 
1281
 
 
1282
 
 
1283
# _LT_LIBTOOL_TAGS
 
1284
# ----------------
 
1285
# Output comment and list of tags supported by the script
 
1286
m4_defun([_LT_LIBTOOL_TAGS],
 
1287
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
 
1288
available_tags="_LT_TAGS"dnl
 
1289
])
 
1290
 
 
1291
 
 
1292
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
 
1293
# -----------------------------------
 
1294
# Extract the dictionary values for VARNAME (optionally with TAG) and
 
1295
# expand to a commented shell variable setting:
 
1296
#
 
1297
#    # Some comment about what VAR is for.
 
1298
#    visible_name=$lt_internal_name
 
1299
m4_define([_LT_LIBTOOL_DECLARE],
 
1300
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
 
1301
                                           [description])))[]dnl
 
1302
m4_pushdef([_libtool_name],
 
1303
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
 
1304
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
 
1305
    [0], [_libtool_name=[$]$1],
 
1306
    [1], [_libtool_name=$lt_[]$1],
 
1307
    [2], [_libtool_name=$lt_[]$1],
 
1308
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
 
1309
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
 
1310
])
 
1311
 
 
1312
 
 
1313
# _LT_LIBTOOL_CONFIG_VARS
 
1314
# -----------------------
 
1315
# Produce commented declarations of non-tagged libtool config variables
 
1316
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
 
1317
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
 
1318
# section) are produced by _LT_LIBTOOL_TAG_VARS.
 
1319
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
 
1320
[m4_foreach([_lt_var],
 
1321
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
 
1322
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
 
1323
 
 
1324
 
 
1325
# _LT_LIBTOOL_TAG_VARS(TAG)
 
1326
# -------------------------
 
1327
m4_define([_LT_LIBTOOL_TAG_VARS],
 
1328
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
 
1329
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
 
1330
 
 
1331
 
 
1332
# _LT_TAGVAR(VARNAME, [TAGNAME])
 
1333
# ------------------------------
 
1334
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
 
1335
 
 
1336
 
 
1337
# _LT_CONFIG_COMMANDS
417
1338
# -------------------
418
 
AC_DEFUN([_LT_AC_SYS_COMPILER],
 
1339
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
 
1340
# variables for single and double quote escaping we saved from calls
 
1341
# to _LT_DECL, we can put quote escaped variables declarations
 
1342
# into `config.status', and then the shell code to quote escape them in
 
1343
# for loops in `config.status'.  Finally, any additional code accumulated
 
1344
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
 
1345
m4_defun([_LT_CONFIG_COMMANDS],
 
1346
[AC_PROVIDE_IFELSE([LT_OUTPUT],
 
1347
        dnl If the libtool generation code has been placed in $CONFIG_LT,
 
1348
        dnl instead of duplicating it all over again into config.status,
 
1349
        dnl then we will have config.status run $CONFIG_LT later, so it
 
1350
        dnl needs to know what name is stored there:
 
1351
        [AC_CONFIG_COMMANDS([libtool],
 
1352
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
 
1353
    dnl If the libtool generation code is destined for config.status,
 
1354
    dnl expand the accumulated commands and init code now:
 
1355
    [AC_CONFIG_COMMANDS([libtool],
 
1356
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
 
1357
])#_LT_CONFIG_COMMANDS
 
1358
 
 
1359
 
 
1360
# Initialize.
 
1361
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
 
1362
[
 
1363
 
 
1364
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
1365
# if CDPATH is set.
 
1366
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
1367
 
 
1368
sed_quote_subst='$sed_quote_subst'
 
1369
double_quote_subst='$double_quote_subst'
 
1370
delay_variable_subst='$delay_variable_subst'
 
1371
_LT_CONFIG_STATUS_DECLARATIONS
 
1372
LTCC='$LTCC'
 
1373
LTCFLAGS='$LTCFLAGS'
 
1374
compiler='$compiler_DEFAULT'
 
1375
 
 
1376
# Quote evaled strings.
 
1377
for var in lt_decl_all_varnames([[ \
 
1378
]], lt_decl_quote_varnames); do
 
1379
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1380
    *[[\\\\\\\`\\"\\\$]]*)
 
1381
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
1382
      ;;
 
1383
    *)
 
1384
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1385
      ;;
 
1386
    esac
 
1387
done
 
1388
 
 
1389
# Double-quote double-evaled strings.
 
1390
for var in lt_decl_all_varnames([[ \
 
1391
]], lt_decl_dquote_varnames); do
 
1392
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1393
    *[[\\\\\\\`\\"\\\$]]*)
 
1394
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
1395
      ;;
 
1396
    *)
 
1397
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1398
      ;;
 
1399
    esac
 
1400
done
 
1401
 
 
1402
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
1403
case \$lt_ECHO in
 
1404
*'\\\[$]0 --fallback-echo"')dnl "
 
1405
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
 
1406
  ;;
 
1407
esac
 
1408
 
 
1409
_LT_OUTPUT_LIBTOOL_INIT
 
1410
])
 
1411
 
 
1412
 
 
1413
# LT_OUTPUT
 
1414
# ---------
 
1415
# This macro allows early generation of the libtool script (before
 
1416
# AC_OUTPUT is called), incase it is used in configure for compilation
 
1417
# tests.
 
1418
AC_DEFUN([LT_OUTPUT],
 
1419
[: ${CONFIG_LT=./config.lt}
 
1420
AC_MSG_NOTICE([creating $CONFIG_LT])
 
1421
cat >"$CONFIG_LT" <<_LTEOF
 
1422
#! $SHELL
 
1423
# Generated by $as_me.
 
1424
# Run this file to recreate a libtool stub with the current configuration.
 
1425
 
 
1426
lt_cl_silent=false
 
1427
SHELL=\${CONFIG_SHELL-$SHELL}
 
1428
_LTEOF
 
1429
 
 
1430
cat >>"$CONFIG_LT" <<\_LTEOF
 
1431
AS_SHELL_SANITIZE
 
1432
_AS_PREPARE
 
1433
 
 
1434
exec AS_MESSAGE_FD>&1
 
1435
exec AS_MESSAGE_LOG_FD>>config.log
 
1436
{
 
1437
  echo
 
1438
  AS_BOX([Running $as_me.])
 
1439
} >&AS_MESSAGE_LOG_FD
 
1440
 
 
1441
lt_cl_help="\
 
1442
\`$as_me' creates a local libtool stub from the current configuration,
 
1443
for use in further configure time tests before the real libtool is
 
1444
generated.
 
1445
 
 
1446
Usage: $[0] [[OPTIONS]]
 
1447
 
 
1448
  -h, --help      print this help, then exit
 
1449
  -V, --version   print version number, then exit
 
1450
  -q, --quiet     do not print progress messages
 
1451
  -d, --debug     don't remove temporary files
 
1452
 
 
1453
Report bugs to <bug-libtool@gnu.org>."
 
1454
 
 
1455
lt_cl_version="\
 
1456
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
 
1457
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
 
1458
configured by $[0], generated by m4_PACKAGE_STRING.
 
1459
 
 
1460
Copyright (C) 2008 Free Software Foundation, Inc.
 
1461
This config.lt script is free software; the Free Software Foundation
 
1462
gives unlimited permision to copy, distribute and modify it."
 
1463
 
 
1464
while test $[#] != 0
 
1465
do
 
1466
  case $[1] in
 
1467
    --version | --v* | -V )
 
1468
      echo "$lt_cl_version"; exit 0 ;;
 
1469
    --help | --h* | -h )
 
1470
      echo "$lt_cl_help"; exit 0 ;;
 
1471
    --debug | --d* | -d )
 
1472
      debug=: ;;
 
1473
    --quiet | --q* | --silent | --s* | -q )
 
1474
      lt_cl_silent=: ;;
 
1475
 
 
1476
    -*) AC_MSG_ERROR([unrecognized option: $[1]
 
1477
Try \`$[0] --help' for more information.]) ;;
 
1478
 
 
1479
    *) AC_MSG_ERROR([unrecognized argument: $[1]
 
1480
Try \`$[0] --help' for more information.]) ;;
 
1481
  esac
 
1482
  shift
 
1483
done
 
1484
 
 
1485
if $lt_cl_silent; then
 
1486
  exec AS_MESSAGE_FD>/dev/null
 
1487
fi
 
1488
_LTEOF
 
1489
 
 
1490
cat >>"$CONFIG_LT" <<_LTEOF
 
1491
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
 
1492
_LTEOF
 
1493
 
 
1494
cat >>"$CONFIG_LT" <<\_LTEOF
 
1495
AC_MSG_NOTICE([creating $ofile])
 
1496
_LT_OUTPUT_LIBTOOL_COMMANDS
 
1497
AS_EXIT(0)
 
1498
_LTEOF
 
1499
chmod +x "$CONFIG_LT"
 
1500
 
 
1501
# configure is writing to config.log, but config.lt does its own redirection,
 
1502
# appending to config.log, which fails on DOS, as config.log is still kept
 
1503
# open by configure.  Here we exec the FD to /dev/null, effectively closing
 
1504
# config.log, so it can be properly (re)opened and appended to by config.lt.
 
1505
if test "$no_create" != yes; then
 
1506
  lt_cl_success=:
 
1507
  test "$silent" = yes &&
 
1508
    lt_config_lt_args="$lt_config_lt_args --quiet"
 
1509
  exec AS_MESSAGE_LOG_FD>/dev/null
 
1510
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
1511
  exec AS_MESSAGE_LOG_FD>>config.log
 
1512
  $lt_cl_success || AS_EXIT(1)
 
1513
fi
 
1514
])# LT_OUTPUT
 
1515
 
 
1516
 
 
1517
# _LT_CONFIG(TAG)
 
1518
# ---------------
 
1519
# If TAG is the built-in tag, create an initial libtool script with a
 
1520
# default configuration from the untagged config vars.  Otherwise add code
 
1521
# to config.status for appending the configuration named by TAG from the
 
1522
# matching tagged config vars.
 
1523
m4_defun([_LT_CONFIG],
 
1524
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1525
_LT_CONFIG_SAVE_COMMANDS([
 
1526
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
 
1527
  m4_if(_LT_TAG, [C], [
 
1528
    # See if we are running on zsh, and set the options which allow our
 
1529
    # commands through without removal of \ escapes.
 
1530
    if test -n "${ZSH_VERSION+set}" ; then
 
1531
      setopt NO_GLOB_SUBST
 
1532
    fi
 
1533
 
 
1534
    cfgfile="${ofile}T"
 
1535
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
1536
    $RM "$cfgfile"
 
1537
 
 
1538
    cat <<_LT_EOF >> "$cfgfile"
 
1539
#! $SHELL
 
1540
 
 
1541
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
1542
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
1543
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
1544
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
1545
#
 
1546
_LT_COPYING
 
1547
_LT_LIBTOOL_TAGS
 
1548
 
 
1549
# ### BEGIN LIBTOOL CONFIG
 
1550
_LT_LIBTOOL_CONFIG_VARS
 
1551
_LT_LIBTOOL_TAG_VARS
 
1552
# ### END LIBTOOL CONFIG
 
1553
 
 
1554
_LT_EOF
 
1555
 
 
1556
  case $host_os in
 
1557
  aix3*)
 
1558
    cat <<\_LT_EOF >> "$cfgfile"
 
1559
# AIX sometimes has problems with the GCC collect2 program.  For some
 
1560
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
1561
# vanish in a puff of smoke.
 
1562
if test "X${COLLECT_NAMES+set}" != Xset; then
 
1563
  COLLECT_NAMES=
 
1564
  export COLLECT_NAMES
 
1565
fi
 
1566
_LT_EOF
 
1567
    ;;
 
1568
  esac
 
1569
 
 
1570
  _LT_PROG_LTMAIN
 
1571
 
 
1572
  # We use sed instead of cat because bash on DJGPP gets confused if
 
1573
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
1574
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
1575
  # is reportedly fixed, but why not run on old versions too?
 
1576
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
1577
    || (rm -f "$cfgfile"; exit 1)
 
1578
 
 
1579
  _LT_PROG_XSI_SHELLFNS
 
1580
 
 
1581
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
1582
    || (rm -f "$cfgfile"; exit 1)
 
1583
 
 
1584
  mv -f "$cfgfile" "$ofile" ||
 
1585
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
1586
  chmod +x "$ofile"
 
1587
],
 
1588
[cat <<_LT_EOF >> "$ofile"
 
1589
 
 
1590
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
 
1591
dnl in a comment (ie after a #).
 
1592
# ### BEGIN LIBTOOL TAG CONFIG: $1
 
1593
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
 
1594
# ### END LIBTOOL TAG CONFIG: $1
 
1595
_LT_EOF
 
1596
])dnl /m4_if
 
1597
],
 
1598
[m4_if([$1], [], [
 
1599
    PACKAGE='$PACKAGE'
 
1600
    VERSION='$VERSION'
 
1601
    TIMESTAMP='$TIMESTAMP'
 
1602
    RM='$RM'
 
1603
    ofile='$ofile'], [])
 
1604
])dnl /_LT_CONFIG_SAVE_COMMANDS
 
1605
])# _LT_CONFIG
 
1606
 
 
1607
 
 
1608
# LT_SUPPORTED_TAG(TAG)
 
1609
# ---------------------
 
1610
# Trace this macro to discover what tags are supported by the libtool
 
1611
# --tag option, using:
 
1612
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
 
1613
AC_DEFUN([LT_SUPPORTED_TAG], [])
 
1614
 
 
1615
 
 
1616
# C support is built-in for now
 
1617
m4_define([_LT_LANG_C_enabled], [])
 
1618
m4_define([_LT_TAGS], [])
 
1619
 
 
1620
 
 
1621
# LT_LANG(LANG)
 
1622
# -------------
 
1623
# Enable libtool support for the given language if not already enabled.
 
1624
AC_DEFUN([LT_LANG],
 
1625
[AC_BEFORE([$0], [LT_OUTPUT])dnl
 
1626
m4_case([$1],
 
1627
  [C],                  [_LT_LANG(C)],
 
1628
  [C++],                [_LT_LANG(CXX)],
 
1629
  [Java],               [_LT_LANG(GCJ)],
 
1630
  [Fortran 77],         [_LT_LANG(F77)],
 
1631
  [Fortran],            [_LT_LANG(FC)],
 
1632
  [Windows Resource],   [_LT_LANG(RC)],
 
1633
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
 
1634
    [_LT_LANG($1)],
 
1635
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
 
1636
])# LT_LANG
 
1637
 
 
1638
 
 
1639
# _LT_LANG(LANGNAME)
 
1640
# ------------------
 
1641
m4_defun([_LT_LANG],
 
1642
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
 
1643
  [LT_SUPPORTED_TAG([$1])dnl
 
1644
  m4_append([_LT_TAGS], [$1 ])dnl
 
1645
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
 
1646
  _LT_LANG_$1_CONFIG($1)])dnl
 
1647
])# _LT_LANG
 
1648
 
 
1649
 
 
1650
# _LT_LANG_DEFAULT_CONFIG
 
1651
# -----------------------
 
1652
m4_defun([_LT_LANG_DEFAULT_CONFIG],
 
1653
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
1654
  [LT_LANG(CXX)],
 
1655
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
 
1656
 
 
1657
AC_PROVIDE_IFELSE([AC_PROG_F77],
 
1658
  [LT_LANG(F77)],
 
1659
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
 
1660
 
 
1661
AC_PROVIDE_IFELSE([AC_PROG_FC],
 
1662
  [LT_LANG(FC)],
 
1663
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
 
1664
 
 
1665
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
 
1666
dnl pulling things in needlessly.
 
1667
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
1668
  [LT_LANG(GCJ)],
 
1669
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
1670
    [LT_LANG(GCJ)],
 
1671
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
 
1672
      [LT_LANG(GCJ)],
 
1673
      [m4_ifdef([AC_PROG_GCJ],
 
1674
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
 
1675
       m4_ifdef([A][M_PROG_GCJ],
 
1676
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
 
1677
       m4_ifdef([LT_PROG_GCJ],
 
1678
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
 
1679
 
 
1680
AC_PROVIDE_IFELSE([LT_PROG_RC],
 
1681
  [LT_LANG(RC)],
 
1682
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
 
1683
])# _LT_LANG_DEFAULT_CONFIG
 
1684
 
 
1685
# Obsolete macros:
 
1686
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
 
1687
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
 
1688
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
 
1689
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
1690
dnl aclocal-1.4 backwards compatibility:
 
1691
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
 
1692
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
 
1693
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
 
1694
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
1695
 
 
1696
 
 
1697
# _LT_TAG_COMPILER
 
1698
# ----------------
 
1699
m4_defun([_LT_TAG_COMPILER],
419
1700
[AC_REQUIRE([AC_PROG_CC])dnl
420
1701
 
 
1702
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
 
1703
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
 
1704
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
 
1705
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
 
1706
 
421
1707
# If no C compiler was specified, use CC.
422
1708
LTCC=${LTCC-"$CC"}
423
1709
 
426
1712
 
427
1713
# Allow CC to be a program name with arguments.
428
1714
compiler=$CC
429
 
])# _LT_AC_SYS_COMPILER
430
 
 
431
 
 
432
 
# _LT_CC_BASENAME(CC)
433
 
# -------------------
434
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
435
 
AC_DEFUN([_LT_CC_BASENAME],
436
 
[for cc_temp in $1""; do
437
 
  case $cc_temp in
438
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
439
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
440
 
    \-*) ;;
441
 
    *) break;;
442
 
  esac
443
 
done
444
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
445
 
])
 
1715
])# _LT_TAG_COMPILER
446
1716
 
447
1717
 
448
1718
# _LT_COMPILER_BOILERPLATE
449
1719
# ------------------------
450
1720
# Check for compiler boilerplate output or warnings with
451
1721
# the simple compiler test code.
452
 
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
453
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1722
m4_defun([_LT_COMPILER_BOILERPLATE],
 
1723
[m4_require([_LT_DECL_SED])dnl
454
1724
ac_outfile=conftest.$ac_objext
455
1725
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
456
1726
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
457
1727
_lt_compiler_boilerplate=`cat conftest.err`
458
 
$rm conftest*
 
1728
$RM conftest*
459
1729
])# _LT_COMPILER_BOILERPLATE
460
1730
 
461
1731
 
463
1733
# ----------------------
464
1734
# Check for linker boilerplate output or warnings with
465
1735
# the simple link test code.
466
 
AC_DEFUN([_LT_LINKER_BOILERPLATE],
467
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1736
m4_defun([_LT_LINKER_BOILERPLATE],
 
1737
[m4_require([_LT_DECL_SED])dnl
468
1738
ac_outfile=conftest.$ac_objext
469
1739
echo "$lt_simple_link_test_code" >conftest.$ac_ext
470
1740
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
471
1741
_lt_linker_boilerplate=`cat conftest.err`
472
 
$rm -r conftest*
 
1742
$RM -r conftest*
473
1743
])# _LT_LINKER_BOILERPLATE
474
1744
 
475
1745
# _LT_REQUIRED_DARWIN_CHECKS
476
 
# --------------------------
477
 
# Check for some things on darwin
478
 
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
1746
# -------------------------
 
1747
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
479
1748
  case $host_os in
480
1749
    rhapsody* | darwin*)
481
1750
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
482
1751
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
1752
    AC_CHECK_TOOL([LIPO], [lipo], [:])
 
1753
    AC_CHECK_TOOL([OTOOL], [otool], [:])
 
1754
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 
1755
    _LT_DECL([], [DSYMUTIL], [1],
 
1756
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 
1757
    _LT_DECL([], [NMEDIT], [1],
 
1758
      [Tool to change global to local symbols on Mac OS X])
 
1759
    _LT_DECL([], [LIPO], [1],
 
1760
      [Tool to manipulate fat objects and archives on Mac OS X])
 
1761
    _LT_DECL([], [OTOOL], [1],
 
1762
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 
1763
    _LT_DECL([], [OTOOL64], [1],
 
1764
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
483
1765
 
484
1766
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
485
1767
      [lt_cv_apple_cc_single_mod=no
486
1768
      if test -z "${LT_MULTI_MODULE}"; then
487
 
   # By default we will add the -single_module flag. You can override
488
 
   # by either setting the environment variable LT_MULTI_MODULE
489
 
   # non-empty at configure time, or by adding -multi_module to the
490
 
   # link flags.
491
 
   echo "int foo(void){return 1;}" > conftest.c
492
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
493
 
     -dynamiclib ${wl}-single_module conftest.c
494
 
   if test -f libconftest.dylib; then
495
 
     lt_cv_apple_cc_single_mod=yes
496
 
     rm -rf libconftest.dylib*
497
 
   fi
498
 
   rm conftest.c
 
1769
        # By default we will add the -single_module flag. You can override
 
1770
        # by either setting the environment variable LT_MULTI_MODULE
 
1771
        # non-empty at configure time, or by adding -multi_module to the
 
1772
        # link flags.
 
1773
        rm -rf libconftest.dylib*
 
1774
        echo "int foo(void){return 1;}" > conftest.c
 
1775
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1776
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 
1777
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1778
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
1779
        _lt_result=$?
 
1780
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
1781
          lt_cv_apple_cc_single_mod=yes
 
1782
        else
 
1783
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
1784
        fi
 
1785
        rm -rf libconftest.dylib*
 
1786
        rm -f conftest.*
499
1787
      fi])
500
1788
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
501
1789
      [lt_cv_ld_exported_symbols_list],
504
1792
      echo "_main" > conftest.sym
505
1793
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
506
1794
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
507
 
   [lt_cv_ld_exported_symbols_list=yes],
508
 
   [lt_cv_ld_exported_symbols_list=no])
509
 
   LDFLAGS="$save_LDFLAGS"
 
1795
        [lt_cv_ld_exported_symbols_list=yes],
 
1796
        [lt_cv_ld_exported_symbols_list=no])
 
1797
        LDFLAGS="$save_LDFLAGS"
510
1798
    ])
511
1799
    case $host_os in
512
 
    rhapsody* | darwin1.[[0123]])
 
1800
    rhapsody* | darwin1.[[012]])
513
1801
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
514
1802
    darwin1.*)
515
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
516
 
    darwin*)
 
1803
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1804
    darwin*) # darwin 5.x on
517
1805
      # if running on 10.5 or later, the deployment target defaults
518
1806
      # to the OS version, if on x86, and 10.4, the deployment
519
1807
      # target defaults to 10.4. Don't you love it?
520
1808
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
521
 
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
522
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
523
 
   10.[[012]]*)
524
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
525
 
   10.*)
526
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1809
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
1810
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1811
        10.[[012]]*)
 
1812
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1813
        10.*)
 
1814
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
527
1815
      esac
528
1816
    ;;
529
1817
  esac
533
1821
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
534
1822
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
535
1823
    else
536
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
1824
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
537
1825
    fi
538
1826
    if test "$DSYMUTIL" != ":"; then
539
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
1827
      _lt_dsymutil='~$DSYMUTIL $lib || :'
540
1828
    else
541
1829
      _lt_dsymutil=
542
1830
    fi
544
1832
  esac
545
1833
])
546
1834
 
547
 
# _LT_AC_SYS_LIBPATH_AIX
548
 
# ----------------------
 
1835
 
 
1836
# _LT_DARWIN_LINKER_FEATURES
 
1837
# --------------------------
 
1838
# Checks for linker and compiler features on darwin
 
1839
m4_defun([_LT_DARWIN_LINKER_FEATURES],
 
1840
[
 
1841
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 
1842
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
1843
  _LT_TAGVAR(hardcode_direct, $1)=no
 
1844
  _LT_TAGVAR(hardcode_automatic, $1)=yes
 
1845
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
1846
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1847
  _LT_TAGVAR(link_all_deplibs, $1)=yes
 
1848
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
1849
  case $cc_basename in
 
1850
     ifort*) _lt_dar_can_shared=yes ;;
 
1851
     *) _lt_dar_can_shared=$GCC ;;
 
1852
  esac
 
1853
  if test "$_lt_dar_can_shared" = "yes"; then
 
1854
    output_verbose_link_cmd=echo
 
1855
    _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}"
 
1856
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
1857
    _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}"
 
1858
    _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}"
 
1859
    m4_if([$1], [CXX],
 
1860
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
1861
      _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}"
 
1862
      _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}"
 
1863
    fi
 
1864
],[])
 
1865
  else
 
1866
  _LT_TAGVAR(ld_shlibs, $1)=no
 
1867
  fi
 
1868
])
 
1869
 
 
1870
# _LT_SYS_MODULE_PATH_AIX
 
1871
# -----------------------
549
1872
# Links a minimal program and checks the executable
550
1873
# for the system default hardcoded library path. In most cases,
551
1874
# this is /usr/lib:/lib, but when the MPI compilers are used
552
1875
# the location of the communication and MPI libs are included too.
553
1876
# If we don't find anything, use the default library path according
554
1877
# to the aix ld manual.
555
 
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
556
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1878
m4_defun([_LT_SYS_MODULE_PATH_AIX],
 
1879
[m4_require([_LT_DECL_SED])dnl
557
1880
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
558
1881
lt_aix_libpath_sed='
559
1882
    /Import File Strings/,/^$/ {
568
1891
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
569
1892
fi],[])
570
1893
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
571
 
])# _LT_AC_SYS_LIBPATH_AIX
572
 
 
573
 
 
574
 
# _LT_AC_SHELL_INIT(ARG)
575
 
# ----------------------
576
 
AC_DEFUN([_LT_AC_SHELL_INIT],
 
1894
])# _LT_SYS_MODULE_PATH_AIX
 
1895
 
 
1896
 
 
1897
# _LT_SHELL_INIT(ARG)
 
1898
# -------------------
 
1899
m4_define([_LT_SHELL_INIT],
577
1900
[ifdef([AC_DIVERSION_NOTICE],
578
1901
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
579
1902
         [AC_DIVERT_PUSH(NOTICE)])
580
1903
$1
581
1904
AC_DIVERT_POP
582
 
])# _LT_AC_SHELL_INIT
583
 
 
584
 
 
585
 
# _LT_AC_PROG_ECHO_BACKSLASH
586
 
# --------------------------
 
1905
])# _LT_SHELL_INIT
 
1906
 
 
1907
 
 
1908
# _LT_PROG_ECHO_BACKSLASH
 
1909
# -----------------------
587
1910
# Add some code to the start of the generated configure script which
588
1911
# will find an echo command which doesn't interpret backslashes.
589
 
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
590
 
[_LT_AC_SHELL_INIT([
 
1912
m4_defun([_LT_PROG_ECHO_BACKSLASH],
 
1913
[_LT_SHELL_INIT([
591
1914
# Check that we are running under the correct shell.
592
1915
SHELL=${CONFIG_SHELL-/bin/sh}
593
1916
 
594
 
case X$ECHO in
 
1917
case X$lt_ECHO in
595
1918
X*--fallback-echo)
596
1919
  # Remove one level of quotation (which was required for Make).
597
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
1920
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
598
1921
  ;;
599
1922
esac
600
1923
 
601
 
echo=${ECHO-echo}
 
1924
ECHO=${lt_ECHO-echo}
602
1925
if test "X[$]1" = X--no-reexec; then
603
1926
  # Discard the --no-reexec flag, and continue.
604
1927
  shift
605
1928
elif test "X[$]1" = X--fallback-echo; then
606
1929
  # Avoid inline document here, it may be left over
607
1930
  :
608
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
609
 
  # Yippee, $echo works!
 
1931
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
1932
  # Yippee, $ECHO works!
610
1933
  :
611
1934
else
612
1935
  # Restart under the correct shell.
616
1939
if test "X[$]1" = X--fallback-echo; then
617
1940
  # used as fallback echo
618
1941
  shift
619
 
  cat <<EOF
 
1942
  cat <<_LT_EOF
620
1943
[$]*
621
 
EOF
 
1944
_LT_EOF
622
1945
  exit 0
623
1946
fi
624
1947
 
626
1949
# if CDPATH is set.
627
1950
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
628
1951
 
629
 
if test -z "$ECHO"; then
630
 
if test "X${echo_test_string+set}" != Xset; then
631
 
# find a string as large as possible, as long as the shell can cope with it
632
 
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
633
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
634
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
635
 
       echo_test_string=`eval $cmd` &&
636
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
637
 
    then
638
 
      break
639
 
    fi
640
 
  done
641
 
fi
642
 
 
643
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
644
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
645
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
646
 
  :
647
 
else
648
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
649
 
  # backslashes.  This makes it impossible to quote backslashes using
650
 
  #   echo "$something" | sed 's/\\/\\\\/g'
651
 
  #
652
 
  # So, first we look for a working echo in the user's PATH.
653
 
 
654
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
655
 
  for dir in $PATH /usr/ucb; do
 
1952
if test -z "$lt_ECHO"; then
 
1953
  if test "X${echo_test_string+set}" != Xset; then
 
1954
    # find a string as large as possible, as long as the shell can cope with it
 
1955
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
1956
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
1957
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
1958
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
1959
      then
 
1960
        break
 
1961
      fi
 
1962
    done
 
1963
  fi
 
1964
 
 
1965
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
1966
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
1967
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
1968
    :
 
1969
  else
 
1970
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
1971
    # backslashes.  This makes it impossible to quote backslashes using
 
1972
    #   echo "$something" | sed 's/\\/\\\\/g'
 
1973
    #
 
1974
    # So, first we look for a working echo in the user's PATH.
 
1975
 
 
1976
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
1977
    for dir in $PATH /usr/ucb; do
 
1978
      IFS="$lt_save_ifs"
 
1979
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
1980
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
1981
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
1982
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
1983
        ECHO="$dir/echo"
 
1984
        break
 
1985
      fi
 
1986
    done
656
1987
    IFS="$lt_save_ifs"
657
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
658
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
659
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
660
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
661
 
      echo="$dir/echo"
662
 
      break
663
 
    fi
664
 
  done
665
 
  IFS="$lt_save_ifs"
666
1988
 
667
 
  if test "X$echo" = Xecho; then
668
 
    # We didn't find a better echo, so look for alternatives.
669
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
670
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
671
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
672
 
      # This shell has a builtin print -r that does the trick.
673
 
      echo='print -r'
674
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
675
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
676
 
      # If we have ksh, try running configure again with it.
677
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
678
 
      export ORIGINAL_CONFIG_SHELL
679
 
      CONFIG_SHELL=/bin/ksh
680
 
      export CONFIG_SHELL
681
 
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
682
 
    else
683
 
      # Try using printf.
684
 
      echo='printf %s\n'
685
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
686
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
687
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
688
 
        # Cool, printf works
689
 
        :
690
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
691
 
           test "X$echo_testing_string" = 'X\t' &&
692
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
693
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
694
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
695
 
        export CONFIG_SHELL
696
 
        SHELL="$CONFIG_SHELL"
697
 
        export SHELL
698
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
699
 
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
700
 
           test "X$echo_testing_string" = 'X\t' &&
701
 
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
702
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
703
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
1989
    if test "X$ECHO" = Xecho; then
 
1990
      # We didn't find a better echo, so look for alternatives.
 
1991
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
1992
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
1993
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
1994
        # This shell has a builtin print -r that does the trick.
 
1995
        ECHO='print -r'
 
1996
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
1997
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
1998
        # If we have ksh, try running configure again with it.
 
1999
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
2000
        export ORIGINAL_CONFIG_SHELL
 
2001
        CONFIG_SHELL=/bin/ksh
 
2002
        export CONFIG_SHELL
 
2003
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
704
2004
      else
705
 
        # maybe with a smaller string...
706
 
        prev=:
707
 
 
708
 
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
709
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
710
 
          then
711
 
            break
 
2005
        # Try using printf.
 
2006
        ECHO='printf %s\n'
 
2007
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
2008
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
2009
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
2010
          # Cool, printf works
 
2011
          :
 
2012
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2013
             test "X$echo_testing_string" = 'X\t' &&
 
2014
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2015
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2016
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
2017
          export CONFIG_SHELL
 
2018
          SHELL="$CONFIG_SHELL"
 
2019
          export SHELL
 
2020
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2021
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2022
             test "X$echo_testing_string" = 'X\t' &&
 
2023
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2024
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2025
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2026
        else
 
2027
          # maybe with a smaller string...
 
2028
          prev=:
 
2029
 
 
2030
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
2031
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
2032
            then
 
2033
              break
 
2034
            fi
 
2035
            prev="$cmd"
 
2036
          done
 
2037
 
 
2038
          if test "$prev" != 'sed 50q "[$]0"'; then
 
2039
            echo_test_string=`eval $prev`
 
2040
            export echo_test_string
 
2041
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
2042
          else
 
2043
            # Oops.  We lost completely, so just stick with echo.
 
2044
            ECHO=echo
712
2045
          fi
713
 
          prev="$cmd"
714
 
        done
715
 
 
716
 
        if test "$prev" != 'sed 50q "[$]0"'; then
717
 
          echo_test_string=`eval $prev`
718
 
          export echo_test_string
719
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
720
 
        else
721
 
          # Oops.  We lost completely, so just stick with echo.
722
 
          echo=echo
723
 
        fi
 
2046
        fi
724
2047
      fi
725
2048
    fi
726
2049
  fi
727
2050
fi
728
 
fi
729
2051
 
730
2052
# Copy echo and quote the copy suitably for passing to libtool from
731
2053
# the Makefile, instead of quoting the original, which is used later.
732
 
ECHO=$echo
733
 
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
734
 
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
2054
lt_ECHO=$ECHO
 
2055
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
2056
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
735
2057
fi
736
2058
 
737
 
AC_SUBST(ECHO)
738
 
])])# _LT_AC_PROG_ECHO_BACKSLASH
739
 
 
740
 
 
741
 
# _LT_AC_LOCK
742
 
# -----------
743
 
AC_DEFUN([_LT_AC_LOCK],
 
2059
AC_SUBST(lt_ECHO)
 
2060
])
 
2061
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 
2062
_LT_DECL([], [ECHO], [1],
 
2063
    [An echo program that does not interpret backslashes])
 
2064
])# _LT_PROG_ECHO_BACKSLASH
 
2065
 
 
2066
 
 
2067
# _LT_ENABLE_LOCK
 
2068
# ---------------
 
2069
m4_defun([_LT_ENABLE_LOCK],
744
2070
[AC_ARG_ENABLE([libtool-lock],
745
 
    [AC_HELP_STRING([--disable-libtool-lock],
746
 
        [avoid locking (might break parallel builds)])])
 
2071
  [AS_HELP_STRING([--disable-libtool-lock],
 
2072
    [avoid locking (might break parallel builds)])])
747
2073
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
748
2074
 
749
2075
# Some flags need to be propagated to the compiler or linker for good
754
2080
  echo 'int i;' > conftest.$ac_ext
755
2081
  if AC_TRY_EVAL(ac_compile); then
756
2082
    case `/usr/bin/file conftest.$ac_objext` in
757
 
    *ELF-32*)
758
 
      HPUX_IA64_MODE="32"
759
 
      ;;
760
 
    *ELF-64*)
761
 
      HPUX_IA64_MODE="64"
762
 
      ;;
 
2083
      *ELF-32*)
 
2084
        HPUX_IA64_MODE="32"
 
2085
        ;;
 
2086
      *ELF-64*)
 
2087
        HPUX_IA64_MODE="64"
 
2088
        ;;
763
2089
    esac
764
2090
  fi
765
2091
  rm -rf conftest*
768
2094
  # Find out which ABI we are using.
769
2095
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
770
2096
  if AC_TRY_EVAL(ac_compile); then
771
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
772
 
    case `/usr/bin/file conftest.$ac_objext` in
773
 
    *32-bit*)
774
 
      LD="${LD-ld} -melf32bsmip"
775
 
      ;;
776
 
    *N32*)
777
 
      LD="${LD-ld} -melf32bmipn32"
778
 
      ;;
779
 
    *64-bit*)
780
 
      LD="${LD-ld} -melf64bmip"
781
 
      ;;
782
 
    esac
783
 
   else
784
 
    case `/usr/bin/file conftest.$ac_objext` in
785
 
    *32-bit*)
786
 
      LD="${LD-ld} -32"
787
 
      ;;
788
 
    *N32*)
789
 
      LD="${LD-ld} -n32"
790
 
      ;;
791
 
    *64-bit*)
792
 
      LD="${LD-ld} -64"
793
 
      ;;
794
 
    esac
795
 
   fi
 
2097
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
2098
      case `/usr/bin/file conftest.$ac_objext` in
 
2099
        *32-bit*)
 
2100
          LD="${LD-ld} -melf32bsmip"
 
2101
          ;;
 
2102
        *N32*)
 
2103
          LD="${LD-ld} -melf32bmipn32"
 
2104
          ;;
 
2105
        *64-bit*)
 
2106
          LD="${LD-ld} -melf64bmip"
 
2107
        ;;
 
2108
      esac
 
2109
    else
 
2110
      case `/usr/bin/file conftest.$ac_objext` in
 
2111
        *32-bit*)
 
2112
          LD="${LD-ld} -32"
 
2113
          ;;
 
2114
        *N32*)
 
2115
          LD="${LD-ld} -n32"
 
2116
          ;;
 
2117
        *64-bit*)
 
2118
          LD="${LD-ld} -64"
 
2119
          ;;
 
2120
      esac
 
2121
    fi
796
2122
  fi
797
2123
  rm -rf conftest*
798
2124
  ;;
799
2125
 
800
2126
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
801
 
s390*-*linux*|sparc*-*linux*)
 
2127
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
802
2128
  # Find out which ABI we are using.
803
2129
  echo 'int i;' > conftest.$ac_ext
804
2130
  if AC_TRY_EVAL(ac_compile); then
805
2131
    case `/usr/bin/file conftest.o` in
806
 
    *32-bit*)
807
 
      case $host in
808
 
        x86_64-*kfreebsd*-gnu)
809
 
          LD="${LD-ld} -m elf_i386_fbsd"
810
 
          ;;
811
 
        x86_64-*linux*)
812
 
          LD="${LD-ld} -m elf_i386"
813
 
          ;;
814
 
        ppc64-*linux*|powerpc64-*linux*)
815
 
          LD="${LD-ld} -m elf32ppclinux"
816
 
          ;;
817
 
        s390x-*linux*)
818
 
          LD="${LD-ld} -m elf_s390"
819
 
          ;;
820
 
        sparc64-*linux*)
821
 
          LD="${LD-ld} -m elf32_sparc"
822
 
          ;;
823
 
      esac
824
 
      ;;
825
 
    *64-bit*)
826
 
      libsuff=64
827
 
      case $host in
828
 
        x86_64-*kfreebsd*-gnu)
829
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
830
 
          ;;
831
 
        x86_64-*linux*)
832
 
          LD="${LD-ld} -m elf_x86_64"
833
 
          ;;
834
 
        ppc*-*linux*|powerpc*-*linux*)
835
 
          LD="${LD-ld} -m elf64ppc"
836
 
          ;;
837
 
        s390*-*linux*)
838
 
          LD="${LD-ld} -m elf64_s390"
839
 
          ;;
840
 
        sparc*-*linux*)
841
 
          LD="${LD-ld} -m elf64_sparc"
842
 
          ;;
843
 
      esac
844
 
      ;;
 
2132
      *32-bit*)
 
2133
        case $host in
 
2134
          x86_64-*kfreebsd*-gnu)
 
2135
            LD="${LD-ld} -m elf_i386_fbsd"
 
2136
            ;;
 
2137
          x86_64-*linux*)
 
2138
            LD="${LD-ld} -m elf_i386"
 
2139
            ;;
 
2140
          ppc64-*linux*|powerpc64-*linux*)
 
2141
            LD="${LD-ld} -m elf32ppclinux"
 
2142
            ;;
 
2143
          s390x-*linux*)
 
2144
            LD="${LD-ld} -m elf_s390"
 
2145
            ;;
 
2146
          sparc64-*linux*)
 
2147
            LD="${LD-ld} -m elf32_sparc"
 
2148
            ;;
 
2149
        esac
 
2150
        ;;
 
2151
      *64-bit*)
 
2152
        case $host in
 
2153
          x86_64-*kfreebsd*-gnu)
 
2154
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
2155
            ;;
 
2156
          x86_64-*linux*)
 
2157
            LD="${LD-ld} -m elf_x86_64"
 
2158
            ;;
 
2159
          ppc*-*linux*|powerpc*-*linux*)
 
2160
            LD="${LD-ld} -m elf64ppc"
 
2161
            ;;
 
2162
          s390*-*linux*|s390*-*tpf*)
 
2163
            LD="${LD-ld} -m elf64_s390"
 
2164
            ;;
 
2165
          sparc*-*linux*)
 
2166
            LD="${LD-ld} -m elf64_sparc"
 
2167
            ;;
 
2168
        esac
 
2169
        ;;
845
2170
    esac
846
2171
  fi
847
2172
  rm -rf conftest*
853
2178
  CFLAGS="$CFLAGS -belf"
854
2179
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
855
2180
    [AC_LANG_PUSH(C)
856
 
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
2181
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
857
2182
     AC_LANG_POP])
858
2183
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
859
2184
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
869
2194
      case $lt_cv_prog_gnu_ld in
870
2195
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
871
2196
      *)
872
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
2197
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
873
2198
          LD="${LD-ld} -64"
874
2199
        fi
875
2200
        ;;
879
2204
  fi
880
2205
  rm -rf conftest*
881
2206
  ;;
882
 
 
883
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
884
 
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
885
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
886
 
  AC_CHECK_TOOL(AS, as, false)
887
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
888
 
  ;;
889
 
  ])
890
2207
esac
891
2208
 
892
2209
need_locks="$enable_libtool_lock"
893
 
 
894
 
])# _LT_AC_LOCK
895
 
 
896
 
 
897
 
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2210
])# _LT_ENABLE_LOCK
 
2211
 
 
2212
 
 
2213
# _LT_CMD_OLD_ARCHIVE
 
2214
# -------------------
 
2215
m4_defun([_LT_CMD_OLD_ARCHIVE],
 
2216
[AC_CHECK_TOOL(AR, ar, false)
 
2217
test -z "$AR" && AR=ar
 
2218
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
2219
_LT_DECL([], [AR], [1], [The archiver])
 
2220
_LT_DECL([], [AR_FLAGS], [1])
 
2221
 
 
2222
AC_CHECK_TOOL(STRIP, strip, :)
 
2223
test -z "$STRIP" && STRIP=:
 
2224
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
 
2225
 
 
2226
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
2227
test -z "$RANLIB" && RANLIB=:
 
2228
_LT_DECL([], [RANLIB], [1],
 
2229
    [Commands used to install an old-style archive])
 
2230
 
 
2231
# Determine commands to create old-style static archives.
 
2232
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
2233
old_postinstall_cmds='chmod 644 $oldlib'
 
2234
old_postuninstall_cmds=
 
2235
 
 
2236
if test -n "$RANLIB"; then
 
2237
  case $host_os in
 
2238
  openbsd*)
 
2239
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
2240
    ;;
 
2241
  *)
 
2242
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
2243
    ;;
 
2244
  esac
 
2245
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
2246
fi
 
2247
_LT_DECL([], [old_postinstall_cmds], [2])
 
2248
_LT_DECL([], [old_postuninstall_cmds], [2])
 
2249
_LT_TAGDECL([], [old_archive_cmds], [2],
 
2250
    [Commands used to build an old-style archive])
 
2251
])# _LT_CMD_OLD_ARCHIVE
 
2252
 
 
2253
 
 
2254
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
898
2255
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
899
2256
# ----------------------------------------------------------------
900
2257
# Check whether the given compiler option works
901
 
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
902
 
[AC_REQUIRE([LT_AC_PROG_SED])
 
2258
AC_DEFUN([_LT_COMPILER_OPTION],
 
2259
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2260
m4_require([_LT_DECL_SED])dnl
903
2261
AC_CACHE_CHECK([$1], [$2],
904
2262
  [$2=no
905
 
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
2263
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
906
2264
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
907
2265
   lt_compiler_flag="$3"
908
2266
   # Insert the option either (1) after the last *FLAGS variable, or
922
2280
   if (exit $ac_status) && test -s "$ac_outfile"; then
923
2281
     # The compiler can only warn and ignore the option if not recognized
924
2282
     # So say no if there are warnings other than the usual output.
925
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
2283
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
926
2284
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
927
2285
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
928
2286
       $2=yes
929
2287
     fi
930
2288
   fi
931
 
   $rm conftest*
 
2289
   $RM conftest*
932
2290
])
933
2291
 
934
2292
if test x"[$]$2" = xyes; then
935
 
    ifelse([$5], , :, [$5])
 
2293
    m4_if([$5], , :, [$5])
936
2294
else
937
 
    ifelse([$6], , :, [$6])
 
2295
    m4_if([$6], , :, [$6])
938
2296
fi
939
 
])# AC_LIBTOOL_COMPILER_OPTION
940
 
 
941
 
 
942
 
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
943
 
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
944
 
# ------------------------------------------------------------
945
 
# Check whether the given compiler option works
946
 
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
947
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2297
])# _LT_COMPILER_OPTION
 
2298
 
 
2299
# Old name:
 
2300
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 
2301
dnl aclocal-1.4 backwards compatibility:
 
2302
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 
2303
 
 
2304
 
 
2305
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2306
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
 
2307
# ----------------------------------------------------
 
2308
# Check whether the given linker option works
 
2309
AC_DEFUN([_LT_LINKER_OPTION],
 
2310
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2311
m4_require([_LT_DECL_SED])dnl
948
2312
AC_CACHE_CHECK([$1], [$2],
949
2313
  [$2=no
950
2314
   save_LDFLAGS="$LDFLAGS"
956
2320
     if test -s conftest.err; then
957
2321
       # Append any errors to the config.log.
958
2322
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
959
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
2323
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
960
2324
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
961
2325
       if diff conftest.exp conftest.er2 >/dev/null; then
962
2326
         $2=yes
965
2329
       $2=yes
966
2330
     fi
967
2331
   fi
968
 
   $rm -r conftest*
 
2332
   $RM -r conftest*
969
2333
   LDFLAGS="$save_LDFLAGS"
970
2334
])
971
2335
 
972
2336
if test x"[$]$2" = xyes; then
973
 
    ifelse([$4], , :, [$4])
 
2337
    m4_if([$4], , :, [$4])
974
2338
else
975
 
    ifelse([$5], , :, [$5])
 
2339
    m4_if([$5], , :, [$5])
976
2340
fi
977
 
])# AC_LIBTOOL_LINKER_OPTION
978
 
 
979
 
 
980
 
# AC_LIBTOOL_SYS_MAX_CMD_LEN
981
 
# --------------------------
982
 
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
983
 
[# find the maximum length of command line arguments
 
2341
])# _LT_LINKER_OPTION
 
2342
 
 
2343
# Old name:
 
2344
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 
2345
dnl aclocal-1.4 backwards compatibility:
 
2346
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 
2347
 
 
2348
 
 
2349
# LT_CMD_MAX_LEN
 
2350
#---------------
 
2351
AC_DEFUN([LT_CMD_MAX_LEN],
 
2352
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2353
# find the maximum length of command line arguments
984
2354
AC_MSG_CHECKING([the maximum length of command line arguments])
985
2355
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
986
2356
  i=0
1002
2372
    lt_cv_sys_max_cmd_len=-1;
1003
2373
    ;;
1004
2374
 
1005
 
  cygwin* | mingw*)
 
2375
  cygwin* | mingw* | cegcc*)
1006
2376
    # On Win9x/ME, this test blows up -- it succeeds, but takes
1007
2377
    # about 5 minutes as the teststring grows exponentially.
1008
2378
    # Worse, since 9x/ME are not pre-emptively multitasking,
1057
2427
  sysv5* | sco5v6* | sysv4.2uw2*)
1058
2428
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1059
2429
    if test -n "$kargmax"; then
1060
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
2430
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
1061
2431
    else
1062
2432
      lt_cv_sys_max_cmd_len=32768
1063
2433
    fi
1068
2438
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1069
2439
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1070
2440
    else
 
2441
      # Make teststring a little bigger before we do anything with it.
 
2442
      # a 1K string should be a reasonable start.
 
2443
      for i in 1 2 3 4 5 6 7 8 ; do
 
2444
        teststring=$teststring$teststring
 
2445
      done
1071
2446
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1072
 
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1073
 
               = "XX$teststring") >/dev/null 2>&1 &&
1074
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
1075
 
              lt_cv_sys_max_cmd_len=$new_result &&
 
2447
      # If test is not a shell built-in, we'll probably end up computing a
 
2448
      # maximum length that is only half of the actual maximum length, but
 
2449
      # we can't tell.
 
2450
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
2451
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1076
2452
              test $i != 17 # 1/2 MB should be enough
1077
2453
      do
1078
2454
        i=`expr $i + 1`
1079
2455
        teststring=$teststring$teststring
1080
2456
      done
 
2457
      # Only check the string length outside the loop.
 
2458
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1081
2459
      teststring=
1082
 
      # Add a significant safety factor because C++ compilers can tack on massive
1083
 
      # amounts of additional arguments before passing them to the linker.
1084
 
      # It appears as though 1/2 is a usable value.
 
2460
      # Add a significant safety factor because C++ compilers can tack on
 
2461
      # massive amounts of additional arguments before passing them to the
 
2462
      # linker.  It appears as though 1/2 is a usable value.
1085
2463
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1086
2464
    fi
1087
2465
    ;;
1092
2470
else
1093
2471
  AC_MSG_RESULT(none)
1094
2472
fi
1095
 
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1096
 
 
1097
 
 
1098
 
# _LT_AC_CHECK_DLFCN
1099
 
# ------------------
1100
 
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1101
 
[AC_CHECK_HEADERS(dlfcn.h)dnl
1102
 
])# _LT_AC_CHECK_DLFCN
1103
 
 
1104
 
 
1105
 
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1106
 
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1107
 
# ---------------------------------------------------------------------
1108
 
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1109
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
2473
max_cmd_len=$lt_cv_sys_max_cmd_len
 
2474
_LT_DECL([], [max_cmd_len], [0],
 
2475
    [What is the maximum length of a command?])
 
2476
])# LT_CMD_MAX_LEN
 
2477
 
 
2478
# Old name:
 
2479
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 
2480
dnl aclocal-1.4 backwards compatibility:
 
2481
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 
2482
 
 
2483
 
 
2484
# _LT_HEADER_DLFCN
 
2485
# ----------------
 
2486
m4_defun([_LT_HEADER_DLFCN],
 
2487
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 
2488
])# _LT_HEADER_DLFCN
 
2489
 
 
2490
 
 
2491
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
2492
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
2493
# ----------------------------------------------------------------
 
2494
m4_defun([_LT_TRY_DLOPEN_SELF],
 
2495
[m4_require([_LT_HEADER_DLFCN])dnl
1110
2496
if test "$cross_compiling" = yes; then :
1111
2497
  [$4]
1112
2498
else
1113
2499
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1114
2500
  lt_status=$lt_dlunknown
1115
 
  cat > conftest.$ac_ext <<EOF
 
2501
  cat > conftest.$ac_ext <<_LT_EOF
1116
2502
[#line __oline__ "configure"
1117
2503
#include "confdefs.h"
1118
2504
 
1154
2540
#  endif
1155
2541
#endif
1156
2542
 
1157
 
#ifdef __cplusplus
1158
 
extern "C" void exit (int);
1159
 
#endif
1160
 
 
1161
2543
void fnord() { int i=42;}
1162
2544
int main ()
1163
2545
{
1173
2555
  else
1174
2556
    puts (dlerror ());
1175
2557
 
1176
 
    exit (status);
 
2558
  return status;
1177
2559
}]
1178
 
EOF
 
2560
_LT_EOF
1179
2561
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1180
2562
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1181
2563
    lt_status=$?
1190
2572
  fi
1191
2573
fi
1192
2574
rm -fr conftest*
1193
 
])# _LT_AC_TRY_DLOPEN_SELF
1194
 
 
1195
 
 
1196
 
# AC_LIBTOOL_DLOPEN_SELF
1197
 
# ----------------------
1198
 
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1199
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
2575
])# _LT_TRY_DLOPEN_SELF
 
2576
 
 
2577
 
 
2578
# LT_SYS_DLOPEN_SELF
 
2579
# ------------------
 
2580
AC_DEFUN([LT_SYS_DLOPEN_SELF],
 
2581
[m4_require([_LT_HEADER_DLFCN])dnl
1200
2582
if test "x$enable_dlopen" != xyes; then
1201
2583
  enable_dlopen=unknown
1202
2584
  enable_dlopen_self=unknown
1212
2594
    lt_cv_dlopen_self=yes
1213
2595
    ;;
1214
2596
 
1215
 
  mingw* | pw32*)
 
2597
  mingw* | pw32* | cegcc*)
1216
2598
    lt_cv_dlopen="LoadLibrary"
1217
2599
    lt_cv_dlopen_libs=
1218
 
   ;;
 
2600
    ;;
1219
2601
 
1220
2602
  cygwin*)
1221
2603
    lt_cv_dlopen="dlopen"
1222
2604
    lt_cv_dlopen_libs=
1223
 
   ;;
 
2605
    ;;
1224
2606
 
1225
2607
  darwin*)
1226
2608
  # if libdl is installed we need to link against it
1230
2612
    lt_cv_dlopen_libs=
1231
2613
    lt_cv_dlopen_self=yes
1232
2614
    ])
1233
 
   ;;
 
2615
    ;;
1234
2616
 
1235
2617
  *)
1236
2618
    AC_CHECK_FUNC([shl_load],
1272
2654
 
1273
2655
    AC_CACHE_CHECK([whether a program can dlopen itself],
1274
2656
          lt_cv_dlopen_self, [dnl
1275
 
          _LT_AC_TRY_DLOPEN_SELF(
 
2657
          _LT_TRY_DLOPEN_SELF(
1276
2658
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1277
2659
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1278
2660
    ])
1280
2662
    if test "x$lt_cv_dlopen_self" = xyes; then
1281
2663
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1282
2664
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1283
 
          lt_cv_dlopen_self_static, [dnl
1284
 
          _LT_AC_TRY_DLOPEN_SELF(
 
2665
          lt_cv_dlopen_self_static, [dnl
 
2666
          _LT_TRY_DLOPEN_SELF(
1285
2667
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1286
2668
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
1287
2669
      ])
1303
2685
  *) enable_dlopen_self_static=unknown ;;
1304
2686
  esac
1305
2687
fi
1306
 
])# AC_LIBTOOL_DLOPEN_SELF
1307
 
 
1308
 
 
1309
 
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1310
 
# ---------------------------------
1311
 
# Check to see if options -c and -o are simultaneously supported by compiler
1312
 
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1313
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1314
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
2688
_LT_DECL([dlopen_support], [enable_dlopen], [0],
 
2689
         [Whether dlopen is supported])
 
2690
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 
2691
         [Whether dlopen of programs is supported])
 
2692
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 
2693
         [Whether dlopen of statically linked programs is supported])
 
2694
])# LT_SYS_DLOPEN_SELF
 
2695
 
 
2696
# Old name:
 
2697
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 
2698
dnl aclocal-1.4 backwards compatibility:
 
2699
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 
2700
 
 
2701
 
 
2702
# _LT_COMPILER_C_O([TAGNAME])
 
2703
# ---------------------------
 
2704
# Check to see if options -c and -o are simultaneously supported by compiler.
 
2705
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
 
2706
m4_defun([_LT_COMPILER_C_O],
 
2707
[m4_require([_LT_DECL_SED])dnl
 
2708
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2709
m4_require([_LT_TAG_COMPILER])dnl
1315
2710
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1316
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1317
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1318
 
   $rm -r conftest 2>/dev/null
 
2711
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
2712
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
2713
   $RM -r conftest 2>/dev/null
1319
2714
   mkdir conftest
1320
2715
   cd conftest
1321
2716
   mkdir out
1339
2734
   then
1340
2735
     # The compiler can only warn and ignore the option if not recognized
1341
2736
     # So say no if there are warnings
1342
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2737
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1343
2738
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1344
2739
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1345
 
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
2740
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1346
2741
     fi
1347
2742
   fi
1348
2743
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1349
 
   $rm conftest*
 
2744
   $RM conftest*
1350
2745
   # SGI C++ compiler will create directory out/ii_files/ for
1351
2746
   # template instantiation
1352
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1353
 
   $rm out/* && rmdir out
 
2747
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
2748
   $RM out/* && rmdir out
1354
2749
   cd ..
1355
 
   rmdir conftest
1356
 
   $rm conftest*
 
2750
   $RM -r conftest
 
2751
   $RM conftest*
1357
2752
])
1358
 
])# AC_LIBTOOL_PROG_CC_C_O
1359
 
 
1360
 
 
1361
 
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1362
 
# -----------------------------------------
 
2753
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 
2754
        [Does compiler simultaneously support -c and -o options?])
 
2755
])# _LT_COMPILER_C_O
 
2756
 
 
2757
 
 
2758
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
 
2759
# ----------------------------------
1363
2760
# Check to see if we can do hard links to lock some files if needed
1364
 
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1365
 
[AC_REQUIRE([_LT_AC_LOCK])dnl
 
2761
m4_defun([_LT_COMPILER_FILE_LOCKS],
 
2762
[m4_require([_LT_ENABLE_LOCK])dnl
 
2763
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2764
_LT_COMPILER_C_O([$1])
1366
2765
 
1367
2766
hard_links="nottested"
1368
 
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
2767
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1369
2768
  # do not overwrite the value of need_locks provided by the user
1370
2769
  AC_MSG_CHECKING([if we can lock with hard links])
1371
2770
  hard_links=yes
1372
 
  $rm conftest*
 
2771
  $RM conftest*
1373
2772
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1374
2773
  touch conftest.a
1375
2774
  ln conftest.a conftest.b 2>&5 || hard_links=no
1382
2781
else
1383
2782
  need_locks=no
1384
2783
fi
1385
 
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1386
 
 
1387
 
 
1388
 
# AC_LIBTOOL_OBJDIR
1389
 
# -----------------
1390
 
AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
2784
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 
2785
])# _LT_COMPILER_FILE_LOCKS
 
2786
 
 
2787
 
 
2788
# _LT_CHECK_OBJDIR
 
2789
# ----------------
 
2790
m4_defun([_LT_CHECK_OBJDIR],
1391
2791
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1392
2792
[rm -f .libs 2>/dev/null
1393
2793
mkdir .libs 2>/dev/null
1399
2799
fi
1400
2800
rmdir .libs 2>/dev/null])
1401
2801
objdir=$lt_cv_objdir
1402
 
])# AC_LIBTOOL_OBJDIR
1403
 
 
1404
 
 
1405
 
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1406
 
# ----------------------------------------------
 
2802
_LT_DECL([], [objdir], [0],
 
2803
         [The name of the directory that contains temporary libtool files])dnl
 
2804
m4_pattern_allow([LT_OBJDIR])dnl
 
2805
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
 
2806
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
 
2807
])# _LT_CHECK_OBJDIR
 
2808
 
 
2809
 
 
2810
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 
2811
# --------------------------------------
1407
2812
# Check hardcoding attributes.
1408
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
2813
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
1409
2814
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1410
 
_LT_AC_TAGVAR(hardcode_action, $1)=
1411
 
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1412
 
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1413
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
2815
_LT_TAGVAR(hardcode_action, $1)=
 
2816
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 
2817
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 
2818
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1414
2819
 
1415
 
  # We can hardcode non-existant directories.
1416
 
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 
2820
  # We can hardcode non-existent directories.
 
2821
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
1417
2822
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
1418
2823
     # have to relink, otherwise we might link with an installed library
1419
2824
     # when we should be linking with a yet-to-be-installed one
1420
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1421
 
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 
2825
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
2826
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
1422
2827
    # Linking always hardcodes the temporary library directory.
1423
 
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
 
2828
    _LT_TAGVAR(hardcode_action, $1)=relink
1424
2829
  else
1425
2830
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1426
 
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 
2831
    _LT_TAGVAR(hardcode_action, $1)=immediate
1427
2832
  fi
1428
2833
else
1429
2834
  # We cannot hardcode anything, or else we can only hardcode existing
1430
2835
  # directories.
1431
 
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
2836
  _LT_TAGVAR(hardcode_action, $1)=unsupported
1432
2837
fi
1433
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
2838
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1434
2839
 
1435
 
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
2840
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
 
2841
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
1436
2842
  # Fast installation is not supported
1437
2843
  enable_fast_install=no
1438
2844
elif test "$shlibpath_overrides_runpath" = yes ||
1440
2846
  # Fast installation is not necessary
1441
2847
  enable_fast_install=needless
1442
2848
fi
1443
 
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1444
 
 
1445
 
 
1446
 
# AC_LIBTOOL_SYS_LIB_STRIP
1447
 
# ------------------------
1448
 
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1449
 
[striplib=
 
2849
_LT_TAGDECL([], [hardcode_action], [0],
 
2850
    [How to hardcode a shared library path into an executable])
 
2851
])# _LT_LINKER_HARDCODE_LIBPATH
 
2852
 
 
2853
 
 
2854
# _LT_CMD_STRIPLIB
 
2855
# ----------------
 
2856
m4_defun([_LT_CMD_STRIPLIB],
 
2857
[m4_require([_LT_DECL_EGREP])
 
2858
striplib=
1450
2859
old_striplib=
1451
2860
AC_MSG_CHECKING([whether stripping libraries is possible])
1452
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
2861
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
1453
2862
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1454
2863
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1455
2864
  AC_MSG_RESULT([yes])
1456
2865
else
1457
2866
# FIXME - insert some real tests, host_os isn't really good enough
1458
2867
  case $host_os in
1459
 
   darwin*)
1460
 
       if test -n "$STRIP" ; then
1461
 
         striplib="$STRIP -x"
1462
 
         old_striplib="$STRIP -S"
1463
 
         AC_MSG_RESULT([yes])
1464
 
       else
1465
 
  AC_MSG_RESULT([no])
1466
 
fi
1467
 
       ;;
1468
 
   *)
1469
 
  AC_MSG_RESULT([no])
 
2868
  darwin*)
 
2869
    if test -n "$STRIP" ; then
 
2870
      striplib="$STRIP -x"
 
2871
      old_striplib="$STRIP -S"
 
2872
      AC_MSG_RESULT([yes])
 
2873
    else
 
2874
      AC_MSG_RESULT([no])
 
2875
    fi
 
2876
    ;;
 
2877
  *)
 
2878
    AC_MSG_RESULT([no])
1470
2879
    ;;
1471
2880
  esac
1472
2881
fi
1473
 
])# AC_LIBTOOL_SYS_LIB_STRIP
1474
 
 
1475
 
 
1476
 
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
2882
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 
2883
_LT_DECL([], [striplib], [1])
 
2884
])# _LT_CMD_STRIPLIB
 
2885
 
 
2886
 
 
2887
# _LT_SYS_DYNAMIC_LINKER([TAG])
1477
2888
# -----------------------------
1478
2889
# PORTME Fill in your ld.so characteristics
1479
 
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1480
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2890
m4_defun([_LT_SYS_DYNAMIC_LINKER],
 
2891
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2892
m4_require([_LT_DECL_EGREP])dnl
 
2893
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2894
m4_require([_LT_DECL_OBJDUMP])dnl
 
2895
m4_require([_LT_DECL_SED])dnl
1481
2896
AC_MSG_CHECKING([dynamic linker characteristics])
1482
 
library_names_spec=
1483
 
libname_spec='lib$name'
1484
 
soname_spec=
1485
 
shrext_cmds=".so"
1486
 
postinstall_cmds=
1487
 
postuninstall_cmds=
1488
 
finish_cmds=
1489
 
finish_eval=
1490
 
shlibpath_var=
1491
 
shlibpath_overrides_runpath=unknown
1492
 
version_type=none
1493
 
dynamic_linker="$host_os ld.so"
1494
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1495
 
m4_if($1,[],[
 
2897
m4_if([$1],
 
2898
        [], [
1496
2899
if test "$GCC" = yes; then
1497
2900
  case $host_os in
1498
2901
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1499
2902
    *) lt_awk_arg="/^libraries:/" ;;
1500
2903
  esac
1501
2904
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1502
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
2905
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
1503
2906
    # if the path contains ";" then we assume it to be the separator
1504
2907
    # otherwise default to the standard path separator (i.e. ":") - it is
1505
2908
    # assumed that no part of a normal pathname contains ";" but that should
1506
2909
    # okay in the real world where ";" in dirpaths is itself problematic.
1507
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
2910
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1508
2911
  else
1509
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2912
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1510
2913
  fi
1511
2914
  # Ok, now we have the path, separated by spaces, we can step through it
1512
2915
  # and add multilib dir if necessary.
1520
2923
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1521
2924
    fi
1522
2925
  done
1523
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
2926
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
1524
2927
BEGIN {RS=" "; FS="/|\n";} {
1525
2928
  lt_foo="";
1526
2929
  lt_count=0;
1540
2943
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1541
2944
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1542
2945
}'`
1543
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
2946
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
1544
2947
else
1545
2948
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1546
2949
fi])
 
2950
library_names_spec=
 
2951
libname_spec='lib$name'
 
2952
soname_spec=
 
2953
shrext_cmds=".so"
 
2954
postinstall_cmds=
 
2955
postuninstall_cmds=
 
2956
finish_cmds=
 
2957
finish_eval=
 
2958
shlibpath_var=
 
2959
shlibpath_overrides_runpath=unknown
 
2960
version_type=none
 
2961
dynamic_linker="$host_os ld.so"
 
2962
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1547
2963
need_lib_prefix=unknown
1548
2964
hardcode_into_libs=no
1549
2965
 
1580
2996
      aix4 | aix4.[[01]] | aix4.[[01]].*)
1581
2997
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1582
2998
           echo ' yes '
1583
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
2999
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
1584
3000
        :
1585
3001
      else
1586
3002
        can_build_shared=no
1606
3022
  ;;
1607
3023
 
1608
3024
amigaos*)
1609
 
  library_names_spec='$libname.ixlibrary $libname.a'
1610
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
1611
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
3025
  case $host_cpu in
 
3026
  powerpc)
 
3027
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
3028
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
3029
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3030
    ;;
 
3031
  m68k)
 
3032
    library_names_spec='$libname.ixlibrary $libname.a'
 
3033
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
3034
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
3035
    ;;
 
3036
  esac
1612
3037
  ;;
1613
3038
 
1614
3039
beos*)
1631
3056
  # libtool to hard-code these into programs
1632
3057
  ;;
1633
3058
 
1634
 
cygwin* | mingw* | pw32*)
 
3059
cygwin* | mingw* | pw32* | cegcc*)
1635
3060
  version_type=windows
1636
3061
  shrext_cmds=".dll"
1637
3062
  need_version=no
1638
3063
  need_lib_prefix=no
1639
3064
 
1640
3065
  case $GCC,$host_os in
1641
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
3066
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1642
3067
    library_names_spec='$libname.dll.a'
1643
3068
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
1644
3069
    postinstall_cmds='base_file=`basename \${file}`~
1645
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
3070
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1646
3071
      dldir=$destdir/`dirname \$dlpath`~
1647
3072
      test -d \$dldir || mkdir -p \$dldir~
1648
3073
      $install_prog $dir/$dlname \$dldir/$dlname~
1649
 
      chmod a+x \$dldir/$dlname'
 
3074
      chmod a+x \$dldir/$dlname~
 
3075
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
3076
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
3077
      fi'
1650
3078
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1651
3079
      dlpath=$dir/\$dldll~
1652
 
       $rm \$dlpath'
 
3080
       $RM \$dlpath'
1653
3081
    shlibpath_overrides_runpath=yes
1654
3082
 
1655
3083
    case $host_os in
1658
3086
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1659
3087
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1660
3088
      ;;
1661
 
    mingw*)
 
3089
    mingw* | cegcc*)
1662
3090
      # MinGW DLLs use traditional 'lib' prefix
1663
3091
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1664
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1665
 
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
3092
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
3093
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
1666
3094
        # It is most probably a Windows format PATH printed by
1667
3095
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
1668
3096
        # path with ; separators, and with drive letters. We can handle the
1669
3097
        # drive letters (cygwin fileutils understands them), so leave them,
1670
3098
        # especially as we might pass files found there to a mingw objdump,
1671
3099
        # which wouldn't understand a cygwinified path. Ahh.
1672
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
3100
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1673
3101
      else
1674
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3102
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1675
3103
      fi
1676
3104
      ;;
1677
3105
    pw32*)
1695
3123
  version_type=darwin
1696
3124
  need_lib_prefix=no
1697
3125
  need_version=no
1698
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
3126
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1699
3127
  soname_spec='${libname}${release}${major}$shared_ext'
1700
3128
  shlibpath_overrides_runpath=yes
1701
3129
  shlibpath_var=DYLD_LIBRARY_PATH
1702
3130
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1703
 
  m4_if([$1], [],[
1704
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
 
3131
m4_if([$1], [],[
 
3132
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1705
3133
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1706
3134
  ;;
1707
3135
 
1794
3222
    fi
1795
3223
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1796
3224
    ;;
1797
 
   hppa*64*)
1798
 
     shrext_cmds='.sl'
1799
 
     hardcode_into_libs=yes
1800
 
     dynamic_linker="$host_os dld.sl"
1801
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1802
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1803
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1804
 
     soname_spec='${libname}${release}${shared_ext}$major'
1805
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1806
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1807
 
     ;;
1808
 
   *)
 
3225
  hppa*64*)
 
3226
    shrext_cmds='.sl'
 
3227
    hardcode_into_libs=yes
 
3228
    dynamic_linker="$host_os dld.sl"
 
3229
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
3230
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
3231
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3232
    soname_spec='${libname}${release}${shared_ext}$major'
 
3233
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
3234
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
3235
    ;;
 
3236
  *)
1809
3237
    shrext_cmds='.sl'
1810
3238
    dynamic_linker="$host_os dld.sl"
1811
3239
    shlibpath_var=SHLIB_PATH
1882
3310
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1883
3311
  shlibpath_var=LD_LIBRARY_PATH
1884
3312
  shlibpath_overrides_runpath=no
 
3313
  # Some binutils ld are patched to set DT_RUNPATH
 
3314
  save_LDFLAGS=$LDFLAGS
 
3315
  save_libdir=$libdir
 
3316
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
3317
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
3318
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
3319
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
3320
       [shlibpath_overrides_runpath=yes])])
 
3321
  LDFLAGS=$save_LDFLAGS
 
3322
  libdir=$save_libdir
 
3323
 
1885
3324
  # This implies no fast_install, which is unacceptable.
1886
3325
  # Some rework will be needed to allow for fast_install
1887
3326
  # before this can be enabled.
1888
3327
  hardcode_into_libs=yes
1889
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1890
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
3328
 
 
3329
  # Add ABI-specific directories to the system library path.
 
3330
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
1891
3331
 
1892
3332
  # Append ld.so.conf contents to the search path
1893
3333
  if test -f /etc/ld.so.conf; then
1894
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
3334
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1895
3335
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1896
3336
  fi
1897
3337
 
1908
3348
  version_type=sunos
1909
3349
  need_lib_prefix=no
1910
3350
  need_version=no
1911
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
3351
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1912
3352
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1913
3353
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1914
3354
    dynamic_linker='NetBSD (a.out) ld.so'
1929
3369
  shlibpath_overrides_runpath=yes
1930
3370
  ;;
1931
3371
 
1932
 
nto-qnx*)
1933
 
  version_type=linux
 
3372
*nto* | *qnx*)
 
3373
  version_type=qnx
1934
3374
  need_lib_prefix=no
1935
3375
  need_version=no
1936
3376
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1937
3377
  soname_spec='${libname}${release}${shared_ext}$major'
1938
3378
  shlibpath_var=LD_LIBRARY_PATH
1939
 
  shlibpath_overrides_runpath=yes
 
3379
  shlibpath_overrides_runpath=no
 
3380
  hardcode_into_libs=yes
 
3381
  dynamic_linker='ldqnx.so'
1940
3382
  ;;
1941
3383
 
1942
3384
openbsd*)
1945
3387
  need_lib_prefix=no
1946
3388
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1947
3389
  case $host_os in
1948
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1949
 
    *)                         need_version=no  ;;
 
3390
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
3391
    *)                          need_version=no  ;;
1950
3392
  esac
1951
3393
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1952
3394
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1953
3395
  shlibpath_var=LD_LIBRARY_PATH
1954
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3396
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1955
3397
    case $host_os in
1956
3398
      openbsd2.[[89]] | openbsd2.[[89]].*)
1957
3399
        shlibpath_overrides_runpath=no
2023
3465
    sni)
2024
3466
      shlibpath_overrides_runpath=no
2025
3467
      need_lib_prefix=no
2026
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
2027
3468
      runpath_var=LD_RUN_PATH
2028
3469
      ;;
2029
3470
    siemens)
2054
3495
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2055
3496
  soname_spec='${libname}${release}${shared_ext}$major'
2056
3497
  shlibpath_var=LD_LIBRARY_PATH
 
3498
  shlibpath_overrides_runpath=yes
2057
3499
  hardcode_into_libs=yes
2058
3500
  if test "$with_gnu_ld" = yes; then
2059
3501
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2060
 
    shlibpath_overrides_runpath=no
2061
3502
  else
2062
3503
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2063
 
    shlibpath_overrides_runpath=yes
2064
3504
    case $host_os in
2065
3505
      sco3.2v5*)
2066
3506
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2070
3510
  sys_lib_dlsearch_path_spec='/usr/lib'
2071
3511
  ;;
2072
3512
 
 
3513
tpf*)
 
3514
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
3515
  version_type=linux
 
3516
  need_lib_prefix=no
 
3517
  need_version=no
 
3518
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3519
  shlibpath_var=LD_LIBRARY_PATH
 
3520
  shlibpath_overrides_runpath=no
 
3521
  hardcode_into_libs=yes
 
3522
  ;;
 
3523
 
2073
3524
uts4*)
2074
3525
  version_type=linux
2075
3526
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2084
3535
AC_MSG_RESULT([$dynamic_linker])
2085
3536
test "$dynamic_linker" = no && can_build_shared=no
2086
3537
 
2087
 
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
2088
 
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
2089
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2090
 
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
2091
 
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
2092
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2093
 
 
2094
3538
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2095
3539
if test "$GCC" = yes; then
2096
3540
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2097
3541
fi
2098
 
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2099
 
 
2100
 
 
2101
 
# _LT_AC_TAGCONFIG
2102
 
# ----------------
2103
 
AC_DEFUN([_LT_AC_TAGCONFIG],
2104
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2105
 
AC_ARG_WITH([tags],
2106
 
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2107
 
        [include additional configurations @<:@automatic@:>@])],
2108
 
    [tagnames="$withval"])
2109
 
 
2110
 
if test -f "$ltmain" && test -n "$tagnames"; then
2111
 
  if test ! -f "${ofile}"; then
2112
 
    AC_MSG_WARN([output file `$ofile' does not exist])
2113
 
  fi
2114
 
 
2115
 
  if test -z "$LTCC"; then
2116
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2117
 
    if test -z "$LTCC"; then
2118
 
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2119
 
    else
2120
 
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2121
 
    fi
2122
 
  fi
2123
 
  if test -z "$LTCFLAGS"; then
2124
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2125
 
  fi
2126
 
 
2127
 
  # Extract list of available tagged configurations in $ofile.
2128
 
  # Note that this assumes the entire list is on one line.
2129
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2130
 
 
2131
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2132
 
  for tagname in $tagnames; do
2133
 
    IFS="$lt_save_ifs"
2134
 
    # Check whether tagname contains only valid characters
2135
 
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2136
 
    "") ;;
2137
 
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
2138
 
        ;;
2139
 
    esac
2140
 
 
2141
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2142
 
    then
2143
 
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
2144
 
    fi
2145
 
 
2146
 
    # Update the list of available tags.
2147
 
    if test -n "$tagname"; then
2148
 
      echo appending configuration tag \"$tagname\" to $ofile
2149
 
 
2150
 
      case $tagname in
2151
 
      CXX)
2152
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2153
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2154
 
            (test "X$CXX" != "Xg++"))) ; then
2155
 
          AC_LIBTOOL_LANG_CXX_CONFIG
2156
 
        else
2157
 
          tagname=""
2158
 
        fi
2159
 
        ;;
2160
 
 
2161
 
      F77)
2162
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
2163
 
          AC_LIBTOOL_LANG_F77_CONFIG
2164
 
        else
2165
 
          tagname=""
2166
 
        fi
2167
 
        ;;
2168
 
 
2169
 
      GCJ)
2170
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2171
 
          AC_LIBTOOL_LANG_GCJ_CONFIG
2172
 
        else
2173
 
          tagname=""
2174
 
        fi
2175
 
        ;;
2176
 
 
2177
 
      RC)
2178
 
        AC_LIBTOOL_LANG_RC_CONFIG
2179
 
        ;;
2180
 
 
2181
 
      *)
2182
 
        AC_MSG_ERROR([Unsupported tag name: $tagname])
2183
 
        ;;
2184
 
      esac
2185
 
 
2186
 
      # Append the new tag name to the list of available tags.
2187
 
      if test -n "$tagname" ; then
2188
 
      available_tags="$available_tags $tagname"
2189
 
    fi
2190
 
    fi
2191
 
  done
2192
 
  IFS="$lt_save_ifs"
2193
 
 
2194
 
  # Now substitute the updated list of available tags.
2195
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2196
 
    mv "${ofile}T" "$ofile"
2197
 
    chmod +x "$ofile"
2198
 
  else
2199
 
    rm -f "${ofile}T"
2200
 
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
2201
 
  fi
2202
 
fi
2203
 
])# _LT_AC_TAGCONFIG
2204
 
 
2205
 
 
2206
 
# AC_LIBTOOL_DLOPEN
2207
 
# -----------------
2208
 
# enable checks for dlopen support
2209
 
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2210
 
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2211
 
])# AC_LIBTOOL_DLOPEN
2212
 
 
2213
 
 
2214
 
# AC_LIBTOOL_WIN32_DLL
2215
 
# --------------------
2216
 
# declare package support for building win32 DLLs
2217
 
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2218
 
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2219
 
])# AC_LIBTOOL_WIN32_DLL
2220
 
 
2221
 
 
2222
 
# AC_ENABLE_SHARED([DEFAULT])
2223
 
# ---------------------------
2224
 
# implement the --enable-shared flag
2225
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2226
 
AC_DEFUN([AC_ENABLE_SHARED],
2227
 
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2228
 
AC_ARG_ENABLE([shared],
2229
 
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2230
 
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2231
 
    [p=${PACKAGE-default}
2232
 
    case $enableval in
2233
 
    yes) enable_shared=yes ;;
2234
 
    no) enable_shared=no ;;
2235
 
    *)
2236
 
      enable_shared=no
2237
 
      # Look at the argument we got.  We use all the common list separators.
2238
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2239
 
      for pkg in $enableval; do
2240
 
        IFS="$lt_save_ifs"
2241
 
        if test "X$pkg" = "X$p"; then
2242
 
          enable_shared=yes
2243
 
        fi
2244
 
      done
2245
 
      IFS="$lt_save_ifs"
2246
 
      ;;
2247
 
    esac],
2248
 
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2249
 
])# AC_ENABLE_SHARED
2250
 
 
2251
 
 
2252
 
# AC_DISABLE_SHARED
2253
 
# -----------------
2254
 
# set the default shared flag to --disable-shared
2255
 
AC_DEFUN([AC_DISABLE_SHARED],
2256
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2257
 
AC_ENABLE_SHARED(no)
2258
 
])# AC_DISABLE_SHARED
2259
 
 
2260
 
 
2261
 
# AC_ENABLE_STATIC([DEFAULT])
2262
 
# ---------------------------
2263
 
# implement the --enable-static flag
2264
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2265
 
AC_DEFUN([AC_ENABLE_STATIC],
2266
 
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2267
 
AC_ARG_ENABLE([static],
2268
 
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2269
 
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2270
 
    [p=${PACKAGE-default}
2271
 
    case $enableval in
2272
 
    yes) enable_static=yes ;;
2273
 
    no) enable_static=no ;;
2274
 
    *)
2275
 
     enable_static=no
2276
 
      # Look at the argument we got.  We use all the common list separators.
2277
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2278
 
      for pkg in $enableval; do
2279
 
        IFS="$lt_save_ifs"
2280
 
        if test "X$pkg" = "X$p"; then
2281
 
          enable_static=yes
2282
 
        fi
2283
 
      done
2284
 
      IFS="$lt_save_ifs"
2285
 
      ;;
2286
 
    esac],
2287
 
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2288
 
])# AC_ENABLE_STATIC
2289
 
 
2290
 
 
2291
 
# AC_DISABLE_STATIC
2292
 
# -----------------
2293
 
# set the default static flag to --disable-static
2294
 
AC_DEFUN([AC_DISABLE_STATIC],
2295
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2296
 
AC_ENABLE_STATIC(no)
2297
 
])# AC_DISABLE_STATIC
2298
 
 
2299
 
 
2300
 
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2301
 
# ---------------------------------
2302
 
# implement the --enable-fast-install flag
2303
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2304
 
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2305
 
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2306
 
AC_ARG_ENABLE([fast-install],
2307
 
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2308
 
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2309
 
    [p=${PACKAGE-default}
2310
 
    case $enableval in
2311
 
    yes) enable_fast_install=yes ;;
2312
 
    no) enable_fast_install=no ;;
2313
 
    *)
2314
 
      enable_fast_install=no
2315
 
      # Look at the argument we got.  We use all the common list separators.
2316
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2317
 
      for pkg in $enableval; do
2318
 
        IFS="$lt_save_ifs"
2319
 
        if test "X$pkg" = "X$p"; then
2320
 
          enable_fast_install=yes
2321
 
        fi
2322
 
      done
2323
 
      IFS="$lt_save_ifs"
2324
 
      ;;
2325
 
    esac],
2326
 
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2327
 
])# AC_ENABLE_FAST_INSTALL
2328
 
 
2329
 
 
2330
 
# AC_DISABLE_FAST_INSTALL
2331
 
# -----------------------
2332
 
# set the default to --disable-fast-install
2333
 
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2334
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2335
 
AC_ENABLE_FAST_INSTALL(no)
2336
 
])# AC_DISABLE_FAST_INSTALL
2337
 
 
2338
 
 
2339
 
# AC_LIBTOOL_PICMODE([MODE])
 
3542
 
 
3543
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
3544
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
3545
fi
 
3546
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
3547
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
3548
fi
 
3549
 
 
3550
_LT_DECL([], [variables_saved_for_relink], [1],
 
3551
    [Variables whose values should be saved in libtool wrapper scripts and
 
3552
    restored at link time])
 
3553
_LT_DECL([], [need_lib_prefix], [0],
 
3554
    [Do we need the "lib" prefix for modules?])
 
3555
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 
3556
_LT_DECL([], [version_type], [0], [Library versioning type])
 
3557
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 
3558
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 
3559
_LT_DECL([], [shlibpath_overrides_runpath], [0],
 
3560
    [Is shlibpath searched before the hard-coded library search path?])
 
3561
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 
3562
_LT_DECL([], [library_names_spec], [1],
 
3563
    [[List of archive names.  First name is the real one, the rest are links.
 
3564
    The last name is the one that the linker finds with -lNAME]])
 
3565
_LT_DECL([], [soname_spec], [1],
 
3566
    [[The coded name of the library, if different from the real name]])
 
3567
_LT_DECL([], [postinstall_cmds], [2],
 
3568
    [Command to use after installation of a shared archive])
 
3569
_LT_DECL([], [postuninstall_cmds], [2],
 
3570
    [Command to use after uninstallation of a shared archive])
 
3571
_LT_DECL([], [finish_cmds], [2],
 
3572
    [Commands used to finish a libtool library installation in a directory])
 
3573
_LT_DECL([], [finish_eval], [1],
 
3574
    [[As "finish_cmds", except a single script fragment to be evaled but
 
3575
    not shown]])
 
3576
_LT_DECL([], [hardcode_into_libs], [0],
 
3577
    [Whether we should hardcode library paths into libraries])
 
3578
_LT_DECL([], [sys_lib_search_path_spec], [2],
 
3579
    [Compile-time system search path for libraries])
 
3580
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
 
3581
    [Run-time system search path for libraries])
 
3582
])# _LT_SYS_DYNAMIC_LINKER
 
3583
 
 
3584
 
 
3585
# _LT_PATH_TOOL_PREFIX(TOOL)
2340
3586
# --------------------------
2341
 
# implement the --with-pic flag
2342
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
2343
 
AC_DEFUN([AC_LIBTOOL_PICMODE],
2344
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2345
 
pic_mode=ifelse($#,1,$1,default)
2346
 
])# AC_LIBTOOL_PICMODE
2347
 
 
2348
 
 
2349
 
# AC_PROG_EGREP
2350
 
# -------------
2351
 
# This is predefined starting with Autoconf 2.54, so this conditional
2352
 
# definition can be removed once we require Autoconf 2.54 or later.
2353
 
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2354
 
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2355
 
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2356
 
    then ac_cv_prog_egrep='grep -E'
2357
 
    else ac_cv_prog_egrep='egrep'
2358
 
    fi])
2359
 
 EGREP=$ac_cv_prog_egrep
2360
 
 AC_SUBST([EGREP])
2361
 
])])
2362
 
 
2363
 
 
2364
 
# AC_PATH_TOOL_PREFIX
2365
 
# -------------------
2366
3587
# find a file program which can recognize shared library
2367
 
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2368
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
3588
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 
3589
[m4_require([_LT_DECL_EGREP])dnl
2369
3590
AC_MSG_CHECKING([for $1])
2370
3591
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2371
3592
[case $MAGIC_CMD in
2378
3599
dnl $ac_dummy forces splitting on constant user-supplied paths.
2379
3600
dnl POSIX.2 word splitting is done only on the output of word expansions,
2380
3601
dnl not every word.  This closes a longstanding sh security hole.
2381
 
  ac_dummy="ifelse([$2], , $PATH, [$2])"
 
3602
  ac_dummy="m4_if([$2], , $PATH, [$2])"
2382
3603
  for ac_dir in $ac_dummy; do
2383
3604
    IFS="$lt_save_ifs"
2384
3605
    test -z "$ac_dir" && ac_dir=.
2393
3614
            $EGREP "$file_magic_regex" > /dev/null; then
2394
3615
            :
2395
3616
          else
2396
 
            cat <<EOF 1>&2
 
3617
            cat <<_LT_EOF 1>&2
2397
3618
 
2398
3619
*** Warning: the command libtool uses to detect shared libraries,
2399
3620
*** $file_magic_cmd, produces output that libtool cannot recognize.
2404
3625
*** may want to report the problem to your system manager and/or to
2405
3626
*** bug-libtool@gnu.org
2406
3627
 
2407
 
EOF
 
3628
_LT_EOF
2408
3629
          fi ;;
2409
3630
        esac
2410
3631
      fi
2421
3642
else
2422
3643
  AC_MSG_RESULT(no)
2423
3644
fi
2424
 
])# AC_PATH_TOOL_PREFIX
2425
 
 
2426
 
 
2427
 
# AC_PATH_MAGIC
2428
 
# -------------
 
3645
_LT_DECL([], [MAGIC_CMD], [0],
 
3646
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 
3647
])# _LT_PATH_TOOL_PREFIX
 
3648
 
 
3649
# Old name:
 
3650
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 
3651
dnl aclocal-1.4 backwards compatibility:
 
3652
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 
3653
 
 
3654
 
 
3655
# _LT_PATH_MAGIC
 
3656
# --------------
2429
3657
# find a file program which can recognize a shared library
2430
 
AC_DEFUN([AC_PATH_MAGIC],
2431
 
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
3658
m4_defun([_LT_PATH_MAGIC],
 
3659
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2432
3660
if test -z "$lt_cv_path_MAGIC_CMD"; then
2433
3661
  if test -n "$ac_tool_prefix"; then
2434
 
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
3662
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2435
3663
  else
2436
3664
    MAGIC_CMD=:
2437
3665
  fi
2438
3666
fi
2439
 
])# AC_PATH_MAGIC
2440
 
 
2441
 
 
2442
 
# AC_PROG_LD
 
3667
])# _LT_PATH_MAGIC
 
3668
 
 
3669
 
 
3670
# LT_PATH_LD
2443
3671
# ----------
2444
3672
# find the pathname to the GNU or non-GNU linker
2445
 
AC_DEFUN([AC_PROG_LD],
2446
 
[AC_ARG_WITH([gnu-ld],
2447
 
    [AC_HELP_STRING([--with-gnu-ld],
 
3673
AC_DEFUN([LT_PATH_LD],
 
3674
[AC_REQUIRE([AC_PROG_CC])dnl
 
3675
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3676
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
3677
m4_require([_LT_DECL_SED])dnl
 
3678
m4_require([_LT_DECL_EGREP])dnl
 
3679
 
 
3680
AC_ARG_WITH([gnu-ld],
 
3681
    [AS_HELP_STRING([--with-gnu-ld],
2448
3682
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2449
3683
    [test "$withval" = no || with_gnu_ld=yes],
2450
 
    [with_gnu_ld=no])
2451
 
AC_REQUIRE([LT_AC_PROG_SED])dnl
2452
 
AC_REQUIRE([AC_PROG_CC])dnl
2453
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2454
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
3684
    [with_gnu_ld=no])dnl
 
3685
 
2455
3686
ac_prog=ld
2456
3687
if test "$GCC" = yes; then
2457
3688
  # Check if gcc -print-prog-name=ld gives a path.
2468
3699
    [[\\/]]* | ?:[[\\/]]*)
2469
3700
      re_direlt='/[[^/]][[^/]]*/\.\./'
2470
3701
      # Canonicalize the pathname of ld
2471
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2472
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2473
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3702
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
3703
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
3704
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
2474
3705
      done
2475
3706
      test -z "$LD" && LD="$ac_prog"
2476
3707
      ;;
2520
3751
  AC_MSG_RESULT(no)
2521
3752
fi
2522
3753
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2523
 
AC_PROG_LD_GNU
2524
 
])# AC_PROG_LD
2525
 
 
2526
 
 
2527
 
# AC_PROG_LD_GNU
2528
 
# --------------
2529
 
AC_DEFUN([AC_PROG_LD_GNU],
2530
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
2531
 
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
3754
_LT_PATH_LD_GNU
 
3755
AC_SUBST([LD])
 
3756
 
 
3757
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 
3758
])# LT_PATH_LD
 
3759
 
 
3760
# Old names:
 
3761
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 
3762
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 
3763
dnl aclocal-1.4 backwards compatibility:
 
3764
dnl AC_DEFUN([AM_PROG_LD], [])
 
3765
dnl AC_DEFUN([AC_PROG_LD], [])
 
3766
 
 
3767
 
 
3768
# _LT_PATH_LD_GNU
 
3769
#- --------------
 
3770
m4_defun([_LT_PATH_LD_GNU],
 
3771
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2532
3772
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2533
3773
case `$LD -v 2>&1 </dev/null` in
2534
3774
*GNU* | *'with BFD'*)
2539
3779
  ;;
2540
3780
esac])
2541
3781
with_gnu_ld=$lt_cv_prog_gnu_ld
2542
 
])# AC_PROG_LD_GNU
2543
 
 
2544
 
 
2545
 
# AC_PROG_LD_RELOAD_FLAG
2546
 
# ----------------------
 
3782
])# _LT_PATH_LD_GNU
 
3783
 
 
3784
 
 
3785
# _LT_CMD_RELOAD
 
3786
# --------------
2547
3787
# find reload flag for linker
2548
3788
#   -- PORTME Some linkers may need a different reload flag.
2549
 
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 
3789
m4_defun([_LT_CMD_RELOAD],
2550
3790
[AC_CACHE_CHECK([for $LD option to reload object files],
2551
3791
  lt_cv_ld_reload_flag,
2552
3792
  [lt_cv_ld_reload_flag='-r'])
2565
3805
    fi
2566
3806
    ;;
2567
3807
esac
2568
 
])# AC_PROG_LD_RELOAD_FLAG
2569
 
 
2570
 
 
2571
 
# AC_DEPLIBS_CHECK_METHOD
2572
 
# -----------------------
 
3808
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
3809
_LT_DECL([], [reload_cmds], [2])dnl
 
3810
])# _LT_CMD_RELOAD
 
3811
 
 
3812
 
 
3813
# _LT_CHECK_MAGIC_METHOD
 
3814
# ----------------------
2573
3815
# how to check for library dependencies
2574
3816
#  -- PORTME fill in with the dynamic library characteristics
2575
 
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2576
 
[AC_CACHE_CHECK([how to recognize dependent libraries],
 
3817
m4_defun([_LT_CHECK_MAGIC_METHOD],
 
3818
[m4_require([_LT_DECL_EGREP])
 
3819
m4_require([_LT_DECL_OBJDUMP])
 
3820
AC_CACHE_CHECK([how to recognize dependent libraries],
2577
3821
lt_cv_deplibs_check_method,
2578
3822
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2579
3823
lt_cv_file_magic_test_file=
2623
3867
  fi
2624
3868
  ;;
2625
3869
 
 
3870
cegcc)
 
3871
  # use the weaker test based on 'objdump'. See mingw*.
 
3872
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
3873
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3874
  ;;
 
3875
 
2626
3876
darwin* | rhapsody*)
2627
3877
  lt_cv_deplibs_check_method=pass_all
2628
3878
  ;;
2629
3879
 
2630
3880
freebsd* | dragonfly*)
2631
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3881
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
2632
3882
    case $host_cpu in
2633
3883
    i*86 )
2634
3884
      # Not sure whether the presence of OpenBSD here was a mistake.
2686
3936
  ;;
2687
3937
 
2688
3938
netbsd*)
2689
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3939
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
2690
3940
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2691
3941
  else
2692
3942
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2699
3949
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
2700
3950
  ;;
2701
3951
 
2702
 
nto-qnx*)
2703
 
  lt_cv_deplibs_check_method=unknown
 
3952
*nto* | *qnx*)
 
3953
  lt_cv_deplibs_check_method=pass_all
2704
3954
  ;;
2705
3955
 
2706
3956
openbsd*)
2707
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3957
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2708
3958
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2709
3959
  else
2710
3960
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2723
3973
  lt_cv_deplibs_check_method=pass_all
2724
3974
  ;;
2725
3975
 
 
3976
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3977
  lt_cv_deplibs_check_method=pass_all
 
3978
  ;;
 
3979
 
2726
3980
sysv4 | sysv4.3*)
2727
3981
  case $host_vendor in
2728
3982
  motorola)
2750
4004
  esac
2751
4005
  ;;
2752
4006
 
2753
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4007
tpf*)
2754
4008
  lt_cv_deplibs_check_method=pass_all
2755
4009
  ;;
2756
4010
esac
2758
4012
file_magic_cmd=$lt_cv_file_magic_cmd
2759
4013
deplibs_check_method=$lt_cv_deplibs_check_method
2760
4014
test -z "$deplibs_check_method" && deplibs_check_method=unknown
2761
 
])# AC_DEPLIBS_CHECK_METHOD
2762
 
 
2763
 
 
2764
 
# AC_PROG_NM
 
4015
 
 
4016
_LT_DECL([], [deplibs_check_method], [1],
 
4017
    [Method to check whether dependent libraries are shared objects])
 
4018
_LT_DECL([], [file_magic_cmd], [1],
 
4019
    [Command to use when deplibs_check_method == "file_magic"])
 
4020
])# _LT_CHECK_MAGIC_METHOD
 
4021
 
 
4022
 
 
4023
# LT_PATH_NM
2765
4024
# ----------
2766
 
# find the pathname to a BSD-compatible name lister
2767
 
AC_DEFUN([AC_PROG_NM],
2768
 
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 
4025
# find the pathname to a BSD- or MS-compatible name lister
 
4026
AC_DEFUN([LT_PATH_NM],
 
4027
[AC_REQUIRE([AC_PROG_CC])dnl
 
4028
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
2769
4029
[if test -n "$NM"; then
2770
4030
  # Let the user override the test.
2771
4031
  lt_cv_path_NM="$NM"
2807
4067
    done
2808
4068
    IFS="$lt_save_ifs"
2809
4069
  done
2810
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4070
  : ${lt_cv_path_NM=no}
2811
4071
fi])
2812
 
NM="$lt_cv_path_NM"
2813
 
])# AC_PROG_NM
2814
 
 
2815
 
 
2816
 
# AC_CHECK_LIBM
2817
 
# -------------
 
4072
if test "$lt_cv_path_NM" != "no"; then
 
4073
  NM="$lt_cv_path_NM"
 
4074
else
 
4075
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4076
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
4077
  AC_SUBST([DUMPBIN])
 
4078
  if test "$DUMPBIN" != ":"; then
 
4079
    NM="$DUMPBIN"
 
4080
  fi
 
4081
fi
 
4082
test -z "$NM" && NM=nm
 
4083
AC_SUBST([NM])
 
4084
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 
4085
 
 
4086
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 
4087
  [lt_cv_nm_interface="BSD nm"
 
4088
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4089
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
4090
  (eval "$ac_compile" 2>conftest.err)
 
4091
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4092
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
4093
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4094
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4095
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
4096
  cat conftest.out >&AS_MESSAGE_LOG_FD
 
4097
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4098
    lt_cv_nm_interface="MS dumpbin"
 
4099
  fi
 
4100
  rm -f conftest*])
 
4101
])# LT_PATH_NM
 
4102
 
 
4103
# Old names:
 
4104
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 
4105
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 
4106
dnl aclocal-1.4 backwards compatibility:
 
4107
dnl AC_DEFUN([AM_PROG_NM], [])
 
4108
dnl AC_DEFUN([AC_PROG_NM], [])
 
4109
 
 
4110
 
 
4111
# LT_LIB_M
 
4112
# --------
2818
4113
# check for math library
2819
 
AC_DEFUN([AC_CHECK_LIBM],
 
4114
AC_DEFUN([LT_LIB_M],
2820
4115
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2821
4116
LIBM=
2822
4117
case $host in
2831
4126
  AC_CHECK_LIB(m, cos, LIBM="-lm")
2832
4127
  ;;
2833
4128
esac
2834
 
])# AC_CHECK_LIBM
2835
 
 
2836
 
 
2837
 
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2838
 
# -----------------------------------
2839
 
# sets LIBLTDL to the link flags for the libltdl convenience library and
2840
 
# LTDLINCL to the include flags for the libltdl header and adds
2841
 
# --enable-ltdl-convenience to the configure arguments.  Note that
2842
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2843
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
2844
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2845
 
# (note the single quotes!).  If your package is not flat and you're not
2846
 
# using automake, define top_builddir and top_srcdir appropriately in
2847
 
# the Makefiles.
2848
 
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2849
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2850
 
  case $enable_ltdl_convenience in
2851
 
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2852
 
  "") enable_ltdl_convenience=yes
2853
 
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2854
 
  esac
2855
 
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2856
 
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2857
 
  # For backwards non-gettext consistent compatibility...
2858
 
  INCLTDL="$LTDLINCL"
2859
 
])# AC_LIBLTDL_CONVENIENCE
2860
 
 
2861
 
 
2862
 
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2863
 
# -----------------------------------
2864
 
# sets LIBLTDL to the link flags for the libltdl installable library and
2865
 
# LTDLINCL to the include flags for the libltdl header and adds
2866
 
# --enable-ltdl-install to the configure arguments.  Note that
2867
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2868
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2869
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2870
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
2871
 
# flat and you're not using automake, define top_builddir and top_srcdir
2872
 
# appropriately in the Makefiles.
2873
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2874
 
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2875
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2876
 
  AC_CHECK_LIB(ltdl, lt_dlinit,
2877
 
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2878
 
  [if test x"$enable_ltdl_install" = xno; then
2879
 
     AC_MSG_WARN([libltdl not installed, but installation disabled])
2880
 
   else
2881
 
     enable_ltdl_install=yes
2882
 
   fi
2883
 
  ])
2884
 
  if test x"$enable_ltdl_install" = x"yes"; then
2885
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
2886
 
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2887
 
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2888
 
  else
2889
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2890
 
    LIBLTDL="-lltdl"
2891
 
    LTDLINCL=
2892
 
  fi
2893
 
  # For backwards non-gettext consistent compatibility...
2894
 
  INCLTDL="$LTDLINCL"
2895
 
])# AC_LIBLTDL_INSTALLABLE
2896
 
 
2897
 
 
2898
 
# AC_LIBTOOL_CXX
2899
 
# --------------
2900
 
# enable support for C++ libraries
2901
 
AC_DEFUN([AC_LIBTOOL_CXX],
2902
 
[AC_REQUIRE([_LT_AC_LANG_CXX])
2903
 
])# AC_LIBTOOL_CXX
2904
 
 
2905
 
 
2906
 
# _LT_AC_LANG_CXX
2907
 
# ---------------
2908
 
AC_DEFUN([_LT_AC_LANG_CXX],
2909
 
[AC_REQUIRE([AC_PROG_CXX])
2910
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2911
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2912
 
])# _LT_AC_LANG_CXX
2913
 
 
2914
 
# _LT_AC_PROG_CXXCPP
2915
 
# ------------------
2916
 
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2917
 
[
2918
 
AC_REQUIRE([AC_PROG_CXX])
2919
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2920
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2921
 
    (test "X$CXX" != "Xg++"))) ; then
2922
 
  AC_PROG_CXXCPP
2923
 
fi
2924
 
])# _LT_AC_PROG_CXXCPP
2925
 
 
2926
 
# AC_LIBTOOL_F77
2927
 
# --------------
2928
 
# enable support for Fortran 77 libraries
2929
 
AC_DEFUN([AC_LIBTOOL_F77],
2930
 
[AC_REQUIRE([_LT_AC_LANG_F77])
2931
 
])# AC_LIBTOOL_F77
2932
 
 
2933
 
 
2934
 
# _LT_AC_LANG_F77
2935
 
# ---------------
2936
 
AC_DEFUN([_LT_AC_LANG_F77],
2937
 
[AC_REQUIRE([AC_PROG_F77])
2938
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2939
 
])# _LT_AC_LANG_F77
2940
 
 
2941
 
 
2942
 
# AC_LIBTOOL_GCJ
2943
 
# --------------
2944
 
# enable support for GCJ libraries
2945
 
AC_DEFUN([AC_LIBTOOL_GCJ],
2946
 
[AC_REQUIRE([_LT_AC_LANG_GCJ])
2947
 
])# AC_LIBTOOL_GCJ
2948
 
 
2949
 
 
2950
 
# _LT_AC_LANG_GCJ
2951
 
# ---------------
2952
 
AC_DEFUN([_LT_AC_LANG_GCJ],
2953
 
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2954
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2955
 
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2956
 
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2957
 
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2958
 
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2959
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2960
 
])# _LT_AC_LANG_GCJ
2961
 
 
2962
 
 
2963
 
# AC_LIBTOOL_RC
2964
 
# -------------
2965
 
# enable support for Windows resource files
2966
 
AC_DEFUN([AC_LIBTOOL_RC],
2967
 
[AC_REQUIRE([LT_AC_PROG_RC])
2968
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2969
 
])# AC_LIBTOOL_RC
2970
 
 
2971
 
 
2972
 
# AC_LIBTOOL_LANG_C_CONFIG
2973
 
# ------------------------
2974
 
# Ensure that the configuration vars for the C compiler are
2975
 
# suitably defined.  Those variables are subsequently used by
2976
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2977
 
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2978
 
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2979
 
[lt_save_CC="$CC"
2980
 
AC_LANG_PUSH(C)
2981
 
 
2982
 
# Source file extension for C test sources.
2983
 
ac_ext=c
2984
 
 
2985
 
# Object file extension for compiled C test sources.
2986
 
objext=o
2987
 
_LT_AC_TAGVAR(objext, $1)=$objext
2988
 
 
2989
 
# Code to be used in simple compile tests
2990
 
lt_simple_compile_test_code="int some_variable = 0;"
2991
 
 
2992
 
# Code to be used in simple link tests
2993
 
lt_simple_link_test_code='int main(){return(0);}'
2994
 
 
2995
 
_LT_AC_SYS_COMPILER
2996
 
 
2997
 
# save warnings/boilerplate of simple test code
2998
 
_LT_COMPILER_BOILERPLATE
2999
 
_LT_LINKER_BOILERPLATE
3000
 
 
3001
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3002
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3003
 
AC_LIBTOOL_PROG_CC_C_O($1)
3004
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3005
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3006
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3007
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3008
 
AC_LIBTOOL_SYS_LIB_STRIP
3009
 
AC_LIBTOOL_DLOPEN_SELF
3010
 
 
3011
 
# Report which library types will actually be built
3012
 
AC_MSG_CHECKING([if libtool supports shared libraries])
3013
 
AC_MSG_RESULT([$can_build_shared])
3014
 
 
3015
 
AC_MSG_CHECKING([whether to build shared libraries])
3016
 
test "$can_build_shared" = "no" && enable_shared=no
3017
 
 
3018
 
# On AIX, shared libraries and static libraries use the same namespace, and
3019
 
# are all built from PIC.
3020
 
case $host_os in
3021
 
aix3*)
3022
 
  test "$enable_shared" = yes && enable_static=no
3023
 
  if test -n "$RANLIB"; then
3024
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
3025
 
    postinstall_cmds='$RANLIB $lib'
3026
 
  fi
3027
 
  ;;
3028
 
 
3029
 
aix[[4-9]]*)
3030
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3031
 
    test "$enable_shared" = yes && enable_static=no
3032
 
  fi
3033
 
    ;;
3034
 
esac
3035
 
AC_MSG_RESULT([$enable_shared])
3036
 
 
3037
 
AC_MSG_CHECKING([whether to build static libraries])
3038
 
# Make sure either enable_shared or enable_static is yes.
3039
 
test "$enable_shared" = yes || enable_static=yes
3040
 
AC_MSG_RESULT([$enable_static])
3041
 
 
3042
 
AC_LIBTOOL_CONFIG($1)
3043
 
 
3044
 
AC_LANG_POP
3045
 
CC="$lt_save_CC"
3046
 
])# AC_LIBTOOL_LANG_C_CONFIG
3047
 
 
3048
 
 
3049
 
# AC_LIBTOOL_LANG_CXX_CONFIG
3050
 
# --------------------------
3051
 
# Ensure that the configuration vars for the C compiler are
3052
 
# suitably defined.  Those variables are subsequently used by
3053
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3054
 
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3055
 
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3056
 
[AC_LANG_PUSH(C++)
3057
 
AC_REQUIRE([AC_PROG_CXX])
3058
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3059
 
 
3060
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3061
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3062
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3063
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3064
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3065
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3066
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3067
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3068
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3069
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3070
 
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3071
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3072
 
_LT_AC_TAGVAR(module_cmds, $1)=
3073
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3074
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3075
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3076
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3077
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3078
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3079
 
 
3080
 
# Dependencies to place before and after the object being linked:
3081
 
_LT_AC_TAGVAR(predep_objects, $1)=
3082
 
_LT_AC_TAGVAR(postdep_objects, $1)=
3083
 
_LT_AC_TAGVAR(predeps, $1)=
3084
 
_LT_AC_TAGVAR(postdeps, $1)=
3085
 
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3086
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3087
 
 
3088
 
# Source file extension for C++ test sources.
3089
 
ac_ext=cpp
3090
 
 
3091
 
# Object file extension for compiled C++ test sources.
3092
 
objext=o
3093
 
_LT_AC_TAGVAR(objext, $1)=$objext
3094
 
 
3095
 
# Code to be used in simple compile tests
3096
 
lt_simple_compile_test_code="int some_variable = 0;"
3097
 
 
3098
 
# Code to be used in simple link tests
3099
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3100
 
 
3101
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3102
 
_LT_AC_SYS_COMPILER
3103
 
 
3104
 
# save warnings/boilerplate of simple test code
3105
 
_LT_COMPILER_BOILERPLATE
3106
 
_LT_LINKER_BOILERPLATE
3107
 
 
3108
 
# Allow CC to be a program name with arguments.
3109
 
lt_save_CC=$CC
3110
 
lt_save_LD=$LD
3111
 
lt_save_GCC=$GCC
3112
 
GCC=$GXX
3113
 
lt_save_with_gnu_ld=$with_gnu_ld
3114
 
lt_save_path_LD=$lt_cv_path_LD
3115
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3116
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3117
 
else
3118
 
  $as_unset lt_cv_prog_gnu_ld
3119
 
fi
3120
 
if test -n "${lt_cv_path_LDCXX+set}"; then
3121
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
3122
 
else
3123
 
  $as_unset lt_cv_path_LD
3124
 
fi
3125
 
test -z "${LDCXX+set}" || LD=$LDCXX
3126
 
CC=${CXX-"c++"}
3127
 
compiler=$CC
3128
 
_LT_AC_TAGVAR(compiler, $1)=$CC
3129
 
_LT_CC_BASENAME([$compiler])
3130
 
 
3131
 
# We don't want -fno-exception wen compiling C++ code, so set the
3132
 
# no_builtin_flag separately
3133
 
if test "$GXX" = yes; then
3134
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3135
 
else
3136
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3137
 
fi
3138
 
 
3139
 
if test "$GXX" = yes; then
3140
 
  # Set up default GNU C++ configuration
3141
 
 
3142
 
  AC_PROG_LD
3143
 
 
3144
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
3145
 
  # archiving commands below assume that GNU ld is being used.
3146
 
  if test "$with_gnu_ld" = yes; then
3147
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3148
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3149
 
 
3150
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3151
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3152
 
 
3153
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
3154
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3155
 
    #     investigate it a little bit more. (MM)
3156
 
    wlarc='${wl}'
3157
 
 
3158
 
    # ancient GNU ld didn't support --whole-archive et. al.
3159
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3160
 
        grep 'no-whole-archive' > /dev/null; then
3161
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3162
 
    else
3163
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3164
 
    fi
3165
 
  else
3166
 
    with_gnu_ld=no
3167
 
    wlarc=
3168
 
 
3169
 
    # A generic and very simple default shared library creation
3170
 
    # command for GNU C++ for the case where it uses the native
3171
 
    # linker, instead of GNU ld.  If possible, this setting should
3172
 
    # overridden to take advantage of the native linker features on
3173
 
    # the platform it is being used on.
3174
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3175
 
  fi
3176
 
 
3177
 
  # Commands to make compiler produce verbose output that lists
3178
 
  # what "hidden" libraries, object files and flags are used when
3179
 
  # linking a shared library.
3180
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3181
 
 
3182
 
else
3183
 
  GXX=no
3184
 
  with_gnu_ld=no
3185
 
  wlarc=
3186
 
fi
3187
 
 
3188
 
# PORTME: fill in a description of your system's C++ link characteristics
3189
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3190
 
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3191
 
case $host_os in
3192
 
  aix3*)
3193
 
    # FIXME: insert proper C++ library support
3194
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3195
 
    ;;
3196
 
  aix[[4-9]]*)
3197
 
    if test "$host_cpu" = ia64; then
3198
 
      # On IA64, the linker does run time linking by default, so we don't
3199
 
      # have to do anything special.
3200
 
      aix_use_runtimelinking=no
3201
 
      exp_sym_flag='-Bexport'
3202
 
      no_entry_flag=""
3203
 
    else
3204
 
      aix_use_runtimelinking=no
3205
 
 
3206
 
      # Test if we are trying to use run time linking or normal
3207
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3208
 
      # need to do runtime linking.
3209
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3210
 
        for ld_flag in $LDFLAGS; do
3211
 
          case $ld_flag in
3212
 
          *-brtl*)
3213
 
            aix_use_runtimelinking=yes
3214
 
            break
3215
 
            ;;
3216
 
          esac
3217
 
        done
3218
 
        ;;
3219
 
      esac
3220
 
 
3221
 
      exp_sym_flag='-bexport'
3222
 
      no_entry_flag='-bnoentry'
3223
 
    fi
3224
 
 
3225
 
    # When large executables or shared objects are built, AIX ld can
3226
 
    # have problems creating the table of contents.  If linking a library
3227
 
    # or program results in "error TOC overflow" add -mminimal-toc to
3228
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3229
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3230
 
 
3231
 
    _LT_AC_TAGVAR(archive_cmds, $1)=''
3232
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3233
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3234
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3235
 
 
3236
 
    if test "$GXX" = yes; then
3237
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
3238
 
      # We only want to do this on AIX 4.2 and lower, the check
3239
 
      # below for broken collect2 doesn't work under 4.3+
3240
 
        collect2name=`${CC} -print-prog-name=collect2`
3241
 
        if test -f "$collect2name" && \
3242
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3243
 
        then
3244
 
          # We have reworked collect2
3245
 
          :
3246
 
        else
3247
 
          # We have old collect2
3248
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3249
 
          # It fails to find uninstalled libraries when the uninstalled
3250
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
3251
 
          # to unsupported forces relinking
3252
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3253
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3254
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3255
 
        fi
3256
 
        ;;
3257
 
      esac
3258
 
      shared_flag='-shared'
3259
 
      if test "$aix_use_runtimelinking" = yes; then
3260
 
        shared_flag="$shared_flag "'${wl}-G'
3261
 
      fi
3262
 
    else
3263
 
      # not using gcc
3264
 
      if test "$host_cpu" = ia64; then
3265
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3266
 
        # chokes on -Wl,-G. The following line is correct:
3267
 
        shared_flag='-G'
3268
 
      else
3269
 
        if test "$aix_use_runtimelinking" = yes; then
3270
 
          shared_flag='${wl}-G'
3271
 
        else
3272
 
          shared_flag='${wl}-bM:SRE'
3273
 
        fi
3274
 
      fi
3275
 
    fi
3276
 
 
3277
 
    # It seems that -bexpall does not export symbols beginning with
3278
 
    # underscore (_), so it is better to generate a list of symbols to export.
3279
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3280
 
    if test "$aix_use_runtimelinking" = yes; then
3281
 
      # Warning - without using the other runtime loading flags (-brtl),
3282
 
      # -berok will link without error, but may produce a broken library.
3283
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3284
 
      # Determine the default libpath from the value encoded in an empty executable.
3285
 
      _LT_AC_SYS_LIBPATH_AIX
3286
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3287
 
 
3288
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3289
 
     else
3290
 
      if test "$host_cpu" = ia64; then
3291
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3292
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3293
 
        _LT_AC_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"
3294
 
      else
3295
 
        # Determine the default libpath from the value encoded in an empty executable.
3296
 
        _LT_AC_SYS_LIBPATH_AIX
3297
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3298
 
        # Warning - without using the other run time loading flags,
3299
 
        # -berok will link without error, but may produce a broken library.
3300
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3301
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3302
 
        # Exported symbols can be pulled into shared objects from archives
3303
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3304
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3305
 
        # This is similar to how AIX traditionally builds its shared libraries.
3306
 
        _LT_AC_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'
3307
 
      fi
3308
 
    fi
3309
 
    ;;
3310
 
 
3311
 
  beos*)
3312
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3313
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3314
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3315
 
      # support --undefined.  This deserves some investigation.  FIXME
3316
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3317
 
    else
3318
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3319
 
    fi
3320
 
    ;;
3321
 
 
3322
 
  chorus*)
3323
 
    case $cc_basename in
3324
 
      *)
3325
 
        # FIXME: insert proper C++ library support
3326
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3327
 
        ;;
3328
 
    esac
3329
 
    ;;
3330
 
 
3331
 
  cygwin* | mingw* | pw32*)
3332
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3333
 
    # as there is no search path for DLLs.
3334
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3335
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3336
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
3337
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3338
 
 
3339
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3340
 
      _LT_AC_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'
3341
 
      # If the export-symbols file already is a .def file (1st line
3342
 
      # is EXPORTS), use it as is; otherwise, prepend...
3343
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3344
 
        cp $export_symbols $output_objdir/$soname.def;
3345
 
      else
3346
 
        echo EXPORTS > $output_objdir/$soname.def;
3347
 
        cat $export_symbols >> $output_objdir/$soname.def;
3348
 
      fi~
3349
 
      $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'
3350
 
    else
3351
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3352
 
    fi
3353
 
  ;;
3354
 
      darwin* | rhapsody*)
3355
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3356
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3357
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3358
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3359
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3360
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3361
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3362
 
      if test "$GXX" = yes ; then
3363
 
      output_verbose_link_cmd='echo'
3364
 
      _LT_AC_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}"
3365
 
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3366
 
      _LT_AC_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}"
3367
 
      _LT_AC_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}"
3368
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3369
 
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3370
 
        _LT_AC_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}"
3371
 
      fi
3372
 
      else
3373
 
      case $cc_basename in
3374
 
        xlc*)
3375
 
         output_verbose_link_cmd='echo'
3376
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3377
 
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3378
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3379
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3380
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3381
 
          ;;
3382
 
       *)
3383
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3384
 
          ;;
3385
 
      esac
3386
 
      fi
3387
 
        ;;
3388
 
 
3389
 
  dgux*)
3390
 
    case $cc_basename in
3391
 
      ec++*)
3392
 
        # FIXME: insert proper C++ library support
3393
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3394
 
        ;;
3395
 
      ghcx*)
3396
 
        # Green Hills C++ Compiler
3397
 
        # FIXME: insert proper C++ library support
3398
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3399
 
        ;;
3400
 
      *)
3401
 
        # FIXME: insert proper C++ library support
3402
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3403
 
        ;;
3404
 
    esac
3405
 
    ;;
3406
 
  freebsd[[12]]*)
3407
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
3408
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3409
 
    ;;
3410
 
  freebsd-elf*)
3411
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3412
 
    ;;
3413
 
  freebsd* | dragonfly*)
3414
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3415
 
    # conventions
3416
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3417
 
    ;;
3418
 
  gnu*)
3419
 
    ;;
3420
 
  hpux9*)
3421
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3422
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3423
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3424
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3425
 
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3426
 
                                # but as the default
3427
 
                                # location of the library.
3428
 
 
3429
 
    case $cc_basename in
3430
 
    CC*)
3431
 
      # FIXME: insert proper C++ library support
3432
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3433
 
      ;;
3434
 
    aCC*)
3435
 
      _LT_AC_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'
3436
 
      # Commands to make compiler produce verbose output that lists
3437
 
      # what "hidden" libraries, object files and flags are used when
3438
 
      # linking a shared library.
3439
 
      #
3440
 
      # There doesn't appear to be a way to prevent this compiler from
3441
 
      # explicitly linking system object files so we need to strip them
3442
 
      # from the output so that they don't get included in the library
3443
 
      # dependencies.
3444
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3445
 
      ;;
3446
 
    *)
3447
 
      if test "$GXX" = yes; then
3448
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3449
 
      else
3450
 
        # FIXME: insert proper C++ library support
3451
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3452
 
      fi
3453
 
      ;;
3454
 
    esac
3455
 
    ;;
3456
 
  hpux10*|hpux11*)
3457
 
    if test $with_gnu_ld = no; then
3458
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3459
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3460
 
 
3461
 
      case $host_cpu in
3462
 
      hppa*64*|ia64*) ;;
3463
 
      *)
3464
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3465
 
        ;;
3466
 
      esac
3467
 
    fi
3468
 
    case $host_cpu in
3469
 
    hppa*64*|ia64*)
3470
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3471
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3472
 
      ;;
3473
 
    *)
3474
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3475
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3476
 
                                              # but as the default
3477
 
                                              # location of the library.
3478
 
      ;;
3479
 
    esac
3480
 
 
3481
 
    case $cc_basename in
3482
 
      CC*)
3483
 
        # FIXME: insert proper C++ library support
3484
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3485
 
        ;;
3486
 
      aCC*)
3487
 
        case $host_cpu in
3488
 
        hppa*64*)
3489
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3490
 
          ;;
3491
 
        ia64*)
3492
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3493
 
          ;;
3494
 
        *)
3495
 
          _LT_AC_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'
3496
 
          ;;
3497
 
        esac
3498
 
        # Commands to make compiler produce verbose output that lists
3499
 
        # what "hidden" libraries, object files and flags are used when
3500
 
        # linking a shared library.
3501
 
        #
3502
 
        # There doesn't appear to be a way to prevent this compiler from
3503
 
        # explicitly linking system object files so we need to strip them
3504
 
        # from the output so that they don't get included in the library
3505
 
        # dependencies.
3506
 
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3507
 
        ;;
3508
 
      *)
3509
 
        if test "$GXX" = yes; then
3510
 
          if test $with_gnu_ld = no; then
3511
 
            case $host_cpu in
3512
 
            hppa*64*)
3513
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3514
 
              ;;
3515
 
            ia64*)
3516
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3517
 
              ;;
3518
 
            *)
3519
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3520
 
              ;;
3521
 
            esac
3522
 
          fi
3523
 
        else
3524
 
          # FIXME: insert proper C++ library support
3525
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3526
 
        fi
3527
 
        ;;
3528
 
    esac
3529
 
    ;;
3530
 
  interix[[3-9]]*)
3531
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3532
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3533
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3534
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3535
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3536
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
3537
 
    # default) and relocated if they conflict, which is a slow very memory
3538
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
3539
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3540
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
3541
 
    _LT_AC_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'
3542
 
    _LT_AC_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'
3543
 
    ;;
3544
 
  irix5* | irix6*)
3545
 
    case $cc_basename in
3546
 
      CC*)
3547
 
        # SGI C++
3548
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3549
 
 
3550
 
        # Archives containing C++ object files must be created using
3551
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
3552
 
        # necessary to make sure instantiated templates are included
3553
 
        # in the archive.
3554
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3555
 
        ;;
3556
 
      *)
3557
 
        if test "$GXX" = yes; then
3558
 
          if test "$with_gnu_ld" = no; then
3559
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3560
 
          else
3561
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3562
 
          fi
3563
 
        fi
3564
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3565
 
        ;;
3566
 
    esac
3567
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3568
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3569
 
    ;;
3570
 
  linux* | k*bsd*-gnu)
3571
 
    case $cc_basename in
3572
 
      KCC*)
3573
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3574
 
 
3575
 
        # KCC will only create a shared library if the output file
3576
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3577
 
        # to its proper name (with version) after linking.
3578
 
        _LT_AC_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'
3579
 
        _LT_AC_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'
3580
 
        # Commands to make compiler produce verbose output that lists
3581
 
        # what "hidden" libraries, object files and flags are used when
3582
 
        # linking a shared library.
3583
 
        #
3584
 
        # There doesn't appear to be a way to prevent this compiler from
3585
 
        # explicitly linking system object files so we need to strip them
3586
 
        # from the output so that they don't get included in the library
3587
 
        # dependencies.
3588
 
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3589
 
 
3590
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3591
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3592
 
 
3593
 
        # Archives containing C++ object files must be created using
3594
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3595
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3596
 
        ;;
3597
 
      icpc*)
3598
 
        # Intel C++
3599
 
        with_gnu_ld=yes
3600
 
        # version 8.0 and above of icpc choke on multiply defined symbols
3601
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
3602
 
        # earlier do not add the objects themselves.
3603
 
        case `$CC -V 2>&1` in
3604
 
        *"Version 7."*)
3605
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3606
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3607
 
          ;;
3608
 
        *)  # Version 8.0 or newer
3609
 
          tmp_idyn=
3610
 
          case $host_cpu in
3611
 
            ia64*) tmp_idyn=' -i_dynamic';;
3612
 
          esac
3613
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3614
 
          _LT_AC_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'
3615
 
          ;;
3616
 
        esac
3617
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3618
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3619
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3620
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3621
 
        ;;
3622
 
      pgCC* | pgcpp*)
3623
 
        # Portland Group C++ compiler
3624
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3625
 
        _LT_AC_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'
3626
 
 
3627
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3628
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3629
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3630
 
        ;;
3631
 
      cxx*)
3632
 
        # Compaq C++
3633
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3634
 
        _LT_AC_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'
3635
 
 
3636
 
        runpath_var=LD_RUN_PATH
3637
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3638
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3639
 
 
3640
 
        # Commands to make compiler produce verbose output that lists
3641
 
        # what "hidden" libraries, object files and flags are used when
3642
 
        # linking a shared library.
3643
 
        #
3644
 
        # There doesn't appear to be a way to prevent this compiler from
3645
 
        # explicitly linking system object files so we need to strip them
3646
 
        # from the output so that they don't get included in the library
3647
 
        # dependencies.
3648
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
3649
 
        ;;
3650
 
      *)
3651
 
        case `$CC -V 2>&1 | sed 5q` in
3652
 
        *Sun\ C*)
3653
 
          # Sun C++ 5.9
3654
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3655
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3656
 
          _LT_AC_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'
3657
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3658
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3659
 
 
3660
 
          # Not sure whether something based on
3661
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3662
 
          # would be better.
3663
 
          output_verbose_link_cmd='echo'
3664
 
 
3665
 
          # Archives containing C++ object files must be created using
3666
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3667
 
          # necessary to make sure instantiated templates are included
3668
 
          # in the archive.
3669
 
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3670
 
          ;;
3671
 
        esac
3672
 
        ;;
3673
 
    esac
3674
 
    ;;
3675
 
  lynxos*)
3676
 
    # FIXME: insert proper C++ library support
3677
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3678
 
    ;;
3679
 
  m88k*)
3680
 
    # FIXME: insert proper C++ library support
3681
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3682
 
    ;;
3683
 
  mvs*)
3684
 
    case $cc_basename in
3685
 
      cxx*)
3686
 
        # FIXME: insert proper C++ library support
3687
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3688
 
        ;;
3689
 
      *)
3690
 
        # FIXME: insert proper C++ library support
3691
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3692
 
        ;;
3693
 
    esac
3694
 
    ;;
3695
 
  netbsd*)
3696
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3697
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3698
 
      wlarc=
3699
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3700
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3701
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3702
 
    fi
3703
 
    # Workaround some broken pre-1.5 toolchains
3704
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3705
 
    ;;
3706
 
  openbsd2*)
3707
 
    # C++ shared libraries are fairly broken
3708
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3709
 
    ;;
3710
 
  openbsd*)
3711
 
    if test -f /usr/libexec/ld.so; then
3712
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3713
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3714
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3715
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3716
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3717
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3718
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3719
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3720
 
      fi
3721
 
      output_verbose_link_cmd='echo'
3722
 
    else
3723
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3724
 
    fi
3725
 
    ;;
3726
 
  osf3*)
3727
 
    case $cc_basename in
3728
 
      KCC*)
3729
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3730
 
 
3731
 
        # KCC will only create a shared library if the output file
3732
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3733
 
        # to its proper name (with version) after linking.
3734
 
        _LT_AC_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'
3735
 
 
3736
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3737
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3738
 
 
3739
 
        # Archives containing C++ object files must be created using
3740
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3741
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3742
 
 
3743
 
        ;;
3744
 
      RCC*)
3745
 
        # Rational C++ 2.4.1
3746
 
        # FIXME: insert proper C++ library support
3747
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3748
 
        ;;
3749
 
      cxx*)
3750
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3751
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3752
 
 
3753
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3754
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3755
 
 
3756
 
        # Commands to make compiler produce verbose output that lists
3757
 
        # what "hidden" libraries, object files and flags are used when
3758
 
        # linking a shared library.
3759
 
        #
3760
 
        # There doesn't appear to be a way to prevent this compiler from
3761
 
        # explicitly linking system object files so we need to strip them
3762
 
        # from the output so that they don't get included in the library
3763
 
        # dependencies.
3764
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
3765
 
        ;;
3766
 
      *)
3767
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3768
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3769
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3770
 
 
3771
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3772
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3773
 
 
3774
 
          # Commands to make compiler produce verbose output that lists
3775
 
          # what "hidden" libraries, object files and flags are used when
3776
 
          # linking a shared library.
3777
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3778
 
 
3779
 
        else
3780
 
          # FIXME: insert proper C++ library support
3781
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3782
 
        fi
3783
 
        ;;
3784
 
    esac
3785
 
    ;;
3786
 
  osf4* | osf5*)
3787
 
    case $cc_basename in
3788
 
      KCC*)
3789
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3790
 
 
3791
 
        # KCC will only create a shared library if the output file
3792
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3793
 
        # to its proper name (with version) after linking.
3794
 
        _LT_AC_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'
3795
 
 
3796
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3797
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3798
 
 
3799
 
        # Archives containing C++ object files must be created using
3800
 
        # the KAI C++ compiler.
3801
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3802
 
        ;;
3803
 
      RCC*)
3804
 
        # Rational C++ 2.4.1
3805
 
        # FIXME: insert proper C++ library support
3806
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3807
 
        ;;
3808
 
      cxx*)
3809
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3810
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3811
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3812
 
          echo "-hidden">> $lib.exp~
3813
 
          $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~
3814
 
          $rm $lib.exp'
3815
 
 
3816
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3817
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3818
 
 
3819
 
        # Commands to make compiler produce verbose output that lists
3820
 
        # what "hidden" libraries, object files and flags are used when
3821
 
        # linking a shared library.
3822
 
        #
3823
 
        # There doesn't appear to be a way to prevent this compiler from
3824
 
        # explicitly linking system object files so we need to strip them
3825
 
        # from the output so that they don't get included in the library
3826
 
        # dependencies.
3827
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
3828
 
        ;;
3829
 
      *)
3830
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3831
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3832
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3833
 
 
3834
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3835
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3836
 
 
3837
 
          # Commands to make compiler produce verbose output that lists
3838
 
          # what "hidden" libraries, object files and flags are used when
3839
 
          # linking a shared library.
3840
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3841
 
 
3842
 
        else
3843
 
          # FIXME: insert proper C++ library support
3844
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3845
 
        fi
3846
 
        ;;
3847
 
    esac
3848
 
    ;;
3849
 
  psos*)
3850
 
    # FIXME: insert proper C++ library support
3851
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3852
 
    ;;
3853
 
  sunos4*)
3854
 
    case $cc_basename in
3855
 
      CC*)
3856
 
        # Sun C++ 4.x
3857
 
        # FIXME: insert proper C++ library support
3858
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3859
 
        ;;
3860
 
      lcc*)
3861
 
        # Lucid
3862
 
        # FIXME: insert proper C++ library support
3863
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3864
 
        ;;
3865
 
      *)
3866
 
        # FIXME: insert proper C++ library support
3867
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3868
 
        ;;
3869
 
    esac
3870
 
    ;;
3871
 
  solaris*)
3872
 
    case $cc_basename in
3873
 
      CC*)
3874
 
        # Sun C++ 4.2, 5.x and Centerline C++
3875
 
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3876
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3877
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3878
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3879
 
        $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'
3880
 
 
3881
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3882
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3883
 
        case $host_os in
3884
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3885
 
          *)
3886
 
            # The compiler driver will combine and reorder linker options,
3887
 
            # but understands `-z linker_flag'.
3888
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3889
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3890
 
            ;;
3891
 
        esac
3892
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3893
 
 
3894
 
        output_verbose_link_cmd='echo'
3895
 
 
3896
 
        # Archives containing C++ object files must be created using
3897
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3898
 
        # necessary to make sure instantiated templates are included
3899
 
        # in the archive.
3900
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3901
 
        ;;
3902
 
      gcx*)
3903
 
        # Green Hills C++ Compiler
3904
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3905
 
 
3906
 
        # The C++ compiler must be used to create the archive.
3907
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3908
 
        ;;
3909
 
      *)
3910
 
        # GNU C++ compiler with Solaris linker
3911
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3912
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3913
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
3914
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3915
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3916
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3917
 
 
3918
 
            # Commands to make compiler produce verbose output that lists
3919
 
            # what "hidden" libraries, object files and flags are used when
3920
 
            # linking a shared library.
3921
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3922
 
          else
3923
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
3924
 
            # platform.
3925
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3926
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3927
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3928
 
 
3929
 
            # Commands to make compiler produce verbose output that lists
3930
 
            # what "hidden" libraries, object files and flags are used when
3931
 
            # linking a shared library.
3932
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3933
 
          fi
3934
 
 
3935
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3936
 
          case $host_os in
3937
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3938
 
          *)
3939
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3940
 
            ;;
3941
 
          esac
3942
 
        fi
3943
 
        ;;
3944
 
    esac
3945
 
    ;;
3946
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3947
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3948
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3949
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3950
 
    runpath_var='LD_RUN_PATH'
3951
 
 
3952
 
    case $cc_basename in
3953
 
      CC*)
3954
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3955
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3956
 
        ;;
3957
 
      *)
3958
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3959
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3960
 
        ;;
3961
 
    esac
3962
 
    ;;
3963
 
  sysv5* | sco3.2v5* | sco5v6*)
3964
 
    # Note: We can NOT use -z defs as we might desire, because we do not
3965
 
    # link with -lc, and that would cause any symbols used from libc to
3966
 
    # always be unresolved, which means just about no library would
3967
 
    # ever link correctly.  If we're not using GNU ld we use -z text
3968
 
    # though, which does catch some bad symbols but isn't as heavy-handed
3969
 
    # as -z defs.
3970
 
    # For security reasons, it is highly recommended that you always
3971
 
    # use absolute paths for naming shared libraries, and exclude the
3972
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
3973
 
    # requires that you compile everything twice, which is a pain.
3974
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
3975
 
    # non-empty value in the environment.  Most likely only useful for
3976
 
    # creating official distributions of packages.
3977
 
    # This is a hack until libtool officially supports absolute path
3978
 
    # names for shared libraries.
3979
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3980
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3981
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3982
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3983
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3984
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3985
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3986
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3987
 
    runpath_var='LD_RUN_PATH'
3988
 
 
3989
 
    case $cc_basename in
3990
 
      CC*)
3991
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3992
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3993
 
        ;;
3994
 
      *)
3995
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3996
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3997
 
        ;;
3998
 
    esac
3999
 
    ;;
4000
 
  tandem*)
4001
 
    case $cc_basename in
4002
 
      NCC*)
4003
 
        # NonStop-UX NCC 3.20
4004
 
        # FIXME: insert proper C++ library support
4005
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4006
 
        ;;
4007
 
      *)
4008
 
        # FIXME: insert proper C++ library support
4009
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4010
 
        ;;
4011
 
    esac
4012
 
    ;;
4013
 
  vxworks*)
4014
 
    # FIXME: insert proper C++ library support
4015
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4016
 
    ;;
4017
 
  *)
4018
 
    # FIXME: insert proper C++ library support
4019
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4020
 
    ;;
4021
 
esac
4022
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4023
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4024
 
 
4025
 
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4026
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4027
 
 
4028
 
AC_LIBTOOL_POSTDEP_PREDEP($1)
4029
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4030
 
AC_LIBTOOL_PROG_CC_C_O($1)
4031
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4032
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4033
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4034
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4035
 
 
4036
 
AC_LIBTOOL_CONFIG($1)
4037
 
 
4038
 
AC_LANG_POP
4039
 
CC=$lt_save_CC
4040
 
LDCXX=$LD
4041
 
LD=$lt_save_LD
4042
 
GCC=$lt_save_GCC
4043
 
with_gnu_ldcxx=$with_gnu_ld
4044
 
with_gnu_ld=$lt_save_with_gnu_ld
4045
 
lt_cv_path_LDCXX=$lt_cv_path_LD
4046
 
lt_cv_path_LD=$lt_save_path_LD
4047
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4048
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4049
 
])# AC_LIBTOOL_LANG_CXX_CONFIG
4050
 
 
4051
 
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4052
 
# ------------------------------------
4053
 
# Figure out "hidden" library dependencies from verbose
4054
 
# compiler output when linking a shared library.
4055
 
# Parse the compiler output and extract the necessary
4056
 
# objects, libraries and library flags.
4057
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4058
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4059
 
dnl we can't use the lt_simple_compile_test_code here,
4060
 
dnl because it contains code intended for an executable,
4061
 
dnl not a library.  It's possible we should let each
4062
 
dnl tag define a new lt_????_link_test_code variable,
4063
 
dnl but it's only used here...
4064
 
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4065
 
int a;
4066
 
void foo (void) { a = 0; }
4067
 
EOF
4068
 
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4069
 
class Foo
4070
 
{
4071
 
public:
4072
 
  Foo (void) { a = 0; }
4073
 
private:
4074
 
  int a;
4075
 
};
4076
 
EOF
4077
 
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4078
 
      subroutine foo
4079
 
      implicit none
4080
 
      integer*4 a
4081
 
      a=0
4082
 
      return
4083
 
      end
4084
 
EOF
4085
 
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4086
 
public class foo {
4087
 
  private int a;
4088
 
  public void bar (void) {
4089
 
    a = 0;
4090
 
  }
4091
 
};
4092
 
EOF
4093
 
])
4094
 
dnl Parse the compiler output and extract the necessary
4095
 
dnl objects, libraries and library flags.
4096
 
if AC_TRY_EVAL(ac_compile); then
4097
 
  # Parse the compiler output and extract the necessary
4098
 
  # objects, libraries and library flags.
4099
 
 
4100
 
  # Sentinel used to keep track of whether or not we are before
4101
 
  # the conftest object file.
4102
 
  pre_test_object_deps_done=no
4103
 
 
4104
 
  # The `*' in the case matches for architectures that use `case' in
4105
 
  # $output_verbose_cmd can trigger glob expansion during the loop
4106
 
  # eval without this substitution.
4107
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4108
 
 
4109
 
  for p in `eval $output_verbose_link_cmd`; do
4110
 
    case $p in
4111
 
 
4112
 
    -L* | -R* | -l*)
4113
 
       # Some compilers place space between "-{L,R}" and the path.
4114
 
       # Remove the space.
4115
 
       if test $p = "-L" \
4116
 
          || test $p = "-R"; then
4117
 
         prev=$p
4118
 
         continue
4119
 
       else
4120
 
         prev=
4121
 
       fi
4122
 
 
4123
 
       if test "$pre_test_object_deps_done" = no; then
4124
 
         case $p in
4125
 
         -L* | -R*)
4126
 
           # Internal compiler library paths should come after those
4127
 
           # provided the user.  The postdeps already come after the
4128
 
           # user supplied libs so there is no need to process them.
4129
 
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4130
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4131
 
           else
4132
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4133
 
           fi
4134
 
           ;;
4135
 
         # The "-l" case would never come before the object being
4136
 
         # linked, so don't bother handling this case.
4137
 
         esac
4138
 
       else
4139
 
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4140
 
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4141
 
         else
4142
 
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4143
 
         fi
4144
 
       fi
4145
 
       ;;
4146
 
 
4147
 
    *.$objext)
4148
 
       # This assumes that the test object file only shows up
4149
 
       # once in the compiler output.
4150
 
       if test "$p" = "conftest.$objext"; then
4151
 
         pre_test_object_deps_done=yes
4152
 
         continue
4153
 
       fi
4154
 
 
4155
 
       if test "$pre_test_object_deps_done" = no; then
4156
 
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4157
 
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
4158
 
         else
4159
 
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4160
 
         fi
4161
 
       else
4162
 
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4163
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4164
 
         else
4165
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4166
 
         fi
4167
 
       fi
4168
 
       ;;
4169
 
 
4170
 
    *) ;; # Ignore the rest.
4171
 
 
4172
 
    esac
4173
 
  done
4174
 
 
4175
 
  # Clean up.
4176
 
  rm -f a.out a.exe
4177
 
else
4178
 
  echo "libtool.m4: error: problem compiling $1 test program"
4179
 
fi
4180
 
 
4181
 
$rm -f confest.$objext
4182
 
 
4183
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4184
 
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4185
 
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4186
 
fi
4187
 
 
4188
 
# PORTME: override above test on systems where it is broken
4189
 
ifelse([$1],[CXX],
4190
 
[case $host_os in
4191
 
interix[[3-9]]*)
4192
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4193
 
  # hack all around it, let's just trust "g++" to DTRT.
4194
 
  _LT_AC_TAGVAR(predep_objects,$1)=
4195
 
  _LT_AC_TAGVAR(postdep_objects,$1)=
4196
 
  _LT_AC_TAGVAR(postdeps,$1)=
4197
 
  ;;
4198
 
 
4199
 
linux*)
4200
 
  case `$CC -V 2>&1 | sed 5q` in
4201
 
  *Sun\ C*)
4202
 
    # Sun C++ 5.9
4203
 
    #
4204
 
    # The more standards-conforming stlport4 library is
4205
 
    # incompatible with the Cstd library. Avoid specifying
4206
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4207
 
    # -library=stlport4 depends on it.
4208
 
    case " $CXX $CXXFLAGS " in
4209
 
    *" -library=stlport4 "*)
4210
 
      solaris_use_stlport4=yes
4211
 
      ;;
4212
 
    esac
4213
 
    if test "$solaris_use_stlport4" != yes; then
4214
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4215
 
    fi
4216
 
    ;;
4217
 
  esac
4218
 
  ;;
4219
 
 
4220
 
solaris*)
4221
 
  case $cc_basename in
4222
 
  CC*)
4223
 
    # The more standards-conforming stlport4 library is
4224
 
    # incompatible with the Cstd library. Avoid specifying
4225
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4226
 
    # -library=stlport4 depends on it.
4227
 
    case " $CXX $CXXFLAGS " in
4228
 
    *" -library=stlport4 "*)
4229
 
      solaris_use_stlport4=yes
4230
 
      ;;
4231
 
    esac
4232
 
 
4233
 
    # Adding this requires a known-good setup of shared libraries for
4234
 
    # Sun compiler versions before 5.6, else PIC objects from an old
4235
 
    # archive will be linked into the output, leading to subtle bugs.
4236
 
    if test "$solaris_use_stlport4" != yes; then
4237
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4238
 
    fi
4239
 
    ;;
4240
 
  esac
4241
 
  ;;
4242
 
esac
4243
 
])
4244
 
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4245
 
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4246
 
esac
4247
 
])# AC_LIBTOOL_POSTDEP_PREDEP
4248
 
 
4249
 
# AC_LIBTOOL_LANG_F77_CONFIG
4250
 
# --------------------------
4251
 
# Ensure that the configuration vars for the C compiler are
4252
 
# suitably defined.  Those variables are subsequently used by
4253
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4254
 
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4255
 
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4256
 
[AC_REQUIRE([AC_PROG_F77])
4257
 
AC_LANG_PUSH(Fortran 77)
4258
 
 
4259
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4260
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4261
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4262
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4263
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4264
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4265
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4266
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4267
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4268
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4269
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4270
 
_LT_AC_TAGVAR(module_cmds, $1)=
4271
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4272
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4273
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4274
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4275
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4276
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4277
 
 
4278
 
# Source file extension for f77 test sources.
4279
 
ac_ext=f
4280
 
 
4281
 
# Object file extension for compiled f77 test sources.
4282
 
objext=o
4283
 
_LT_AC_TAGVAR(objext, $1)=$objext
4284
 
 
4285
 
# Code to be used in simple compile tests
4286
 
lt_simple_compile_test_code="\
4287
 
      subroutine t
4288
 
      return
4289
 
      end
4290
 
"
4291
 
 
4292
 
# Code to be used in simple link tests
4293
 
lt_simple_link_test_code="\
4294
 
      program t
4295
 
      end
4296
 
"
4297
 
 
4298
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4299
 
_LT_AC_SYS_COMPILER
4300
 
 
4301
 
# save warnings/boilerplate of simple test code
4302
 
_LT_COMPILER_BOILERPLATE
4303
 
_LT_LINKER_BOILERPLATE
4304
 
 
4305
 
# Allow CC to be a program name with arguments.
4306
 
lt_save_CC="$CC"
4307
 
CC=${F77-"f77"}
4308
 
compiler=$CC
4309
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4310
 
_LT_CC_BASENAME([$compiler])
4311
 
 
4312
 
AC_MSG_CHECKING([if libtool supports shared libraries])
4313
 
AC_MSG_RESULT([$can_build_shared])
4314
 
 
4315
 
AC_MSG_CHECKING([whether to build shared libraries])
4316
 
test "$can_build_shared" = "no" && enable_shared=no
4317
 
 
4318
 
# On AIX, shared libraries and static libraries use the same namespace, and
4319
 
# are all built from PIC.
4320
 
case $host_os in
4321
 
aix3*)
4322
 
  test "$enable_shared" = yes && enable_static=no
4323
 
  if test -n "$RANLIB"; then
4324
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
4325
 
    postinstall_cmds='$RANLIB $lib'
4326
 
  fi
4327
 
  ;;
4328
 
aix[[4-9]]*)
4329
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4330
 
    test "$enable_shared" = yes && enable_static=no
4331
 
  fi
4332
 
  ;;
4333
 
esac
4334
 
AC_MSG_RESULT([$enable_shared])
4335
 
 
4336
 
AC_MSG_CHECKING([whether to build static libraries])
4337
 
# Make sure either enable_shared or enable_static is yes.
4338
 
test "$enable_shared" = yes || enable_static=yes
4339
 
AC_MSG_RESULT([$enable_static])
4340
 
 
4341
 
_LT_AC_TAGVAR(GCC, $1)="$G77"
4342
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4343
 
 
4344
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4345
 
AC_LIBTOOL_PROG_CC_C_O($1)
4346
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4347
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4348
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4349
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4350
 
 
4351
 
AC_LIBTOOL_CONFIG($1)
4352
 
 
4353
 
AC_LANG_POP
4354
 
CC="$lt_save_CC"
4355
 
])# AC_LIBTOOL_LANG_F77_CONFIG
4356
 
 
4357
 
 
4358
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
4359
 
# --------------------------
4360
 
# Ensure that the configuration vars for the C compiler are
4361
 
# suitably defined.  Those variables are subsequently used by
4362
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4363
 
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4364
 
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4365
 
[AC_LANG_SAVE
4366
 
 
4367
 
# Source file extension for Java test sources.
4368
 
ac_ext=java
4369
 
 
4370
 
# Object file extension for compiled Java test sources.
4371
 
objext=o
4372
 
_LT_AC_TAGVAR(objext, $1)=$objext
4373
 
 
4374
 
# Code to be used in simple compile tests
4375
 
lt_simple_compile_test_code="class foo {}"
4376
 
 
4377
 
# Code to be used in simple link tests
4378
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4379
 
 
4380
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4381
 
_LT_AC_SYS_COMPILER
4382
 
 
4383
 
# save warnings/boilerplate of simple test code
4384
 
_LT_COMPILER_BOILERPLATE
4385
 
_LT_LINKER_BOILERPLATE
4386
 
 
4387
 
# Allow CC to be a program name with arguments.
4388
 
lt_save_CC="$CC"
4389
 
CC=${GCJ-"gcj"}
4390
 
compiler=$CC
4391
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4392
 
_LT_CC_BASENAME([$compiler])
4393
 
 
4394
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4395
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4396
 
 
4397
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4398
 
 
4399
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4400
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4401
 
AC_LIBTOOL_PROG_CC_C_O($1)
4402
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4403
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4404
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4405
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4406
 
 
4407
 
AC_LIBTOOL_CONFIG($1)
4408
 
 
4409
 
AC_LANG_RESTORE
4410
 
CC="$lt_save_CC"
4411
 
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4412
 
 
4413
 
 
4414
 
# AC_LIBTOOL_LANG_RC_CONFIG
4415
 
# -------------------------
4416
 
# Ensure that the configuration vars for the Windows resource compiler are
4417
 
# suitably defined.  Those variables are subsequently used by
4418
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4419
 
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4420
 
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4421
 
[AC_LANG_SAVE
4422
 
 
4423
 
# Source file extension for RC test sources.
4424
 
ac_ext=rc
4425
 
 
4426
 
# Object file extension for compiled RC test sources.
4427
 
objext=o
4428
 
_LT_AC_TAGVAR(objext, $1)=$objext
4429
 
 
4430
 
# Code to be used in simple compile tests
4431
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4432
 
 
4433
 
# Code to be used in simple link tests
4434
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
4435
 
 
4436
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4437
 
_LT_AC_SYS_COMPILER
4438
 
 
4439
 
# save warnings/boilerplate of simple test code
4440
 
_LT_COMPILER_BOILERPLATE
4441
 
_LT_LINKER_BOILERPLATE
4442
 
 
4443
 
# Allow CC to be a program name with arguments.
4444
 
lt_save_CC="$CC"
4445
 
CC=${RC-"windres"}
4446
 
compiler=$CC
4447
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4448
 
_LT_CC_BASENAME([$compiler])
4449
 
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4450
 
 
4451
 
AC_LIBTOOL_CONFIG($1)
4452
 
 
4453
 
AC_LANG_RESTORE
4454
 
CC="$lt_save_CC"
4455
 
])# AC_LIBTOOL_LANG_RC_CONFIG
4456
 
 
4457
 
 
4458
 
# AC_LIBTOOL_CONFIG([TAGNAME])
4459
 
# ----------------------------
4460
 
# If TAGNAME is not passed, then create an initial libtool script
4461
 
# with a default configuration from the untagged config vars.  Otherwise
4462
 
# add code to config.status for appending the configuration named by
4463
 
# TAGNAME from the matching tagged config vars.
4464
 
AC_DEFUN([AC_LIBTOOL_CONFIG],
4465
 
[# The else clause should only fire when bootstrapping the
4466
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
4467
 
# with your package, and you will get complaints that there are
4468
 
# no rules to generate ltmain.sh.
4469
 
if test -f "$ltmain"; then
4470
 
  # See if we are running on zsh, and set the options which allow our commands through
4471
 
  # without removal of \ escapes.
4472
 
  if test -n "${ZSH_VERSION+set}" ; then
4473
 
    setopt NO_GLOB_SUBST
4474
 
  fi
4475
 
  # Now quote all the things that may contain metacharacters while being
4476
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4477
 
  # variables and quote the copies for generation of the libtool script.
4478
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4479
 
    SED SHELL STRIP \
4480
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4481
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4482
 
    deplibs_check_method reload_flag reload_cmds need_locks \
4483
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4484
 
    lt_cv_sys_global_symbol_to_c_name_address \
4485
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4486
 
    old_postinstall_cmds old_postuninstall_cmds \
4487
 
    _LT_AC_TAGVAR(compiler, $1) \
4488
 
    _LT_AC_TAGVAR(CC, $1) \
4489
 
    _LT_AC_TAGVAR(LD, $1) \
4490
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4491
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4492
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4493
 
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4494
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4495
 
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4496
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4497
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4498
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
4499
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4500
 
    _LT_AC_TAGVAR(predep_objects, $1) \
4501
 
    _LT_AC_TAGVAR(postdep_objects, $1) \
4502
 
    _LT_AC_TAGVAR(predeps, $1) \
4503
 
    _LT_AC_TAGVAR(postdeps, $1) \
4504
 
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4505
 
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4506
 
    _LT_AC_TAGVAR(archive_cmds, $1) \
4507
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4508
 
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4509
 
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4510
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4511
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4512
 
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
4513
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4514
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4515
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4516
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4517
 
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
4518
 
    _LT_AC_TAGVAR(module_cmds, $1) \
4519
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4520
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4521
 
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4522
 
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4523
 
    _LT_AC_TAGVAR(include_expsyms, $1); do
4524
 
 
4525
 
    case $var in
4526
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4527
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4528
 
    _LT_AC_TAGVAR(archive_cmds, $1) | \
4529
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4530
 
    _LT_AC_TAGVAR(module_cmds, $1) | \
4531
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4532
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4533
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4534
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
4535
 
    postinstall_cmds | postuninstall_cmds | \
4536
 
    old_postinstall_cmds | old_postuninstall_cmds | \
4537
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4538
 
      # Double-quote double-evaled strings.
4539
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4540
 
      ;;
4541
 
    *)
4542
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4543
 
      ;;
4544
 
    esac
4545
 
  done
4546
 
 
4547
 
  case $lt_echo in
4548
 
  *'\[$]0 --fallback-echo"')
4549
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4550
 
    ;;
4551
 
  esac
4552
 
 
4553
 
ifelse([$1], [],
4554
 
  [cfgfile="${ofile}T"
4555
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4556
 
  $rm -f "$cfgfile"
4557
 
  AC_MSG_NOTICE([creating $ofile])],
4558
 
  [cfgfile="$ofile"])
4559
 
 
4560
 
  cat <<__EOF__ >> "$cfgfile"
4561
 
ifelse([$1], [],
4562
 
[#! $SHELL
4563
 
 
4564
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4565
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4566
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4567
 
#
4568
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4569
 
# Free Software Foundation, Inc.
4570
 
#
4571
 
# This file is part of GNU Libtool:
4572
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4573
 
#
4574
 
# This program is free software; you can redistribute it and/or modify
4575
 
# it under the terms of the GNU General Public License as published by
4576
 
# the Free Software Foundation; either version 2 of the License, or
4577
 
# (at your option) any later version.
4578
 
#
4579
 
# This program is distributed in the hope that it will be useful, but
4580
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
4581
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4582
 
# General Public License for more details.
4583
 
#
4584
 
# You should have received a copy of the GNU General Public License
4585
 
# along with this program; if not, write to the Free Software
4586
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4587
 
#
4588
 
# As a special exception to the GNU General Public License, if you
4589
 
# distribute this file as part of a program that contains a
4590
 
# configuration script generated by Autoconf, you may include it under
4591
 
# the same distribution terms that you use for the rest of that program.
4592
 
 
4593
 
# A sed program that does not truncate output.
4594
 
SED=$lt_SED
4595
 
 
4596
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4597
 
Xsed="$SED -e 1s/^X//"
4598
 
 
4599
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
4600
 
# if CDPATH is set.
4601
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4602
 
 
4603
 
# The names of the tagged configurations supported by this script.
4604
 
available_tags=
4605
 
 
4606
 
# ### BEGIN LIBTOOL CONFIG],
4607
 
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4608
 
 
4609
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4610
 
 
4611
 
# Shell to use when invoking shell scripts.
4612
 
SHELL=$lt_SHELL
4613
 
 
4614
 
# Whether or not to build shared libraries.
4615
 
build_libtool_libs=$enable_shared
4616
 
 
4617
 
# Whether or not to build static libraries.
4618
 
build_old_libs=$enable_static
4619
 
 
4620
 
# Whether or not to add -lc for building shared libraries.
4621
 
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4622
 
 
4623
 
# Whether or not to disallow shared libs when runtime libs are static
4624
 
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4625
 
 
4626
 
# Whether or not to optimize for fast installation.
4627
 
fast_install=$enable_fast_install
4628
 
 
4629
 
# The host system.
4630
 
host_alias=$host_alias
4631
 
host=$host
4632
 
host_os=$host_os
4633
 
 
4634
 
# The build system.
4635
 
build_alias=$build_alias
4636
 
build=$build
4637
 
build_os=$build_os
4638
 
 
4639
 
# An echo program that does not interpret backslashes.
4640
 
echo=$lt_echo
4641
 
 
4642
 
# The archiver.
4643
 
AR=$lt_AR
4644
 
AR_FLAGS=$lt_AR_FLAGS
4645
 
 
4646
 
# A C compiler.
4647
 
LTCC=$lt_LTCC
4648
 
 
4649
 
# LTCC compiler flags.
4650
 
LTCFLAGS=$lt_LTCFLAGS
4651
 
 
4652
 
# A language-specific compiler.
4653
 
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4654
 
 
4655
 
# Is the compiler the GNU C compiler?
4656
 
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4657
 
 
4658
 
# An ERE matcher.
4659
 
EGREP=$lt_EGREP
4660
 
 
4661
 
# The linker used to build libraries.
4662
 
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4663
 
 
4664
 
# Whether we need hard or soft links.
4665
 
LN_S=$lt_LN_S
4666
 
 
4667
 
# A BSD-compatible nm program.
4668
 
NM=$lt_NM
4669
 
 
4670
 
# A symbol stripping program
4671
 
STRIP=$lt_STRIP
4672
 
 
4673
 
# Used to examine libraries when file_magic_cmd begins "file"
4674
 
MAGIC_CMD=$MAGIC_CMD
4675
 
 
4676
 
# Used on cygwin: DLL creation program.
4677
 
DLLTOOL="$DLLTOOL"
4678
 
 
4679
 
# Used on cygwin: object dumper.
4680
 
OBJDUMP="$OBJDUMP"
4681
 
 
4682
 
# Used on cygwin: assembler.
4683
 
AS="$AS"
4684
 
 
4685
 
# The name of the directory that contains temporary libtool files.
4686
 
objdir=$objdir
4687
 
 
4688
 
# How to create reloadable object files.
4689
 
reload_flag=$lt_reload_flag
4690
 
reload_cmds=$lt_reload_cmds
4691
 
 
4692
 
# How to pass a linker flag through the compiler.
4693
 
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4694
 
 
4695
 
# Object file suffix (normally "o").
4696
 
objext="$ac_objext"
4697
 
 
4698
 
# Old archive suffix (normally "a").
4699
 
libext="$libext"
4700
 
 
4701
 
# Shared library suffix (normally ".so").
4702
 
shrext_cmds='$shrext_cmds'
4703
 
 
4704
 
# Executable file suffix (normally "").
4705
 
exeext="$exeext"
4706
 
 
4707
 
# Additional compiler flags for building library objects.
4708
 
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4709
 
pic_mode=$pic_mode
4710
 
 
4711
 
# What is the maximum length of a command?
4712
 
max_cmd_len=$lt_cv_sys_max_cmd_len
4713
 
 
4714
 
# Does compiler simultaneously support -c and -o options?
4715
 
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4716
 
 
4717
 
# Must we lock files when doing compilation?
4718
 
need_locks=$lt_need_locks
4719
 
 
4720
 
# Do we need the lib prefix for modules?
4721
 
need_lib_prefix=$need_lib_prefix
4722
 
 
4723
 
# Do we need a version for libraries?
4724
 
need_version=$need_version
4725
 
 
4726
 
# Whether dlopen is supported.
4727
 
dlopen_support=$enable_dlopen
4728
 
 
4729
 
# Whether dlopen of programs is supported.
4730
 
dlopen_self=$enable_dlopen_self
4731
 
 
4732
 
# Whether dlopen of statically linked programs is supported.
4733
 
dlopen_self_static=$enable_dlopen_self_static
4734
 
 
4735
 
# Compiler flag to prevent dynamic linking.
4736
 
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4737
 
 
4738
 
# Compiler flag to turn off builtin functions.
4739
 
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4740
 
 
4741
 
# Compiler flag to allow reflexive dlopens.
4742
 
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4743
 
 
4744
 
# Compiler flag to generate shared objects directly from archives.
4745
 
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4746
 
 
4747
 
# Compiler flag to generate thread-safe objects.
4748
 
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4749
 
 
4750
 
# Library versioning type.
4751
 
version_type=$version_type
4752
 
 
4753
 
# Format of library name prefix.
4754
 
libname_spec=$lt_libname_spec
4755
 
 
4756
 
# List of archive names.  First name is the real one, the rest are links.
4757
 
# The last name is the one that the linker finds with -lNAME.
4758
 
library_names_spec=$lt_library_names_spec
4759
 
 
4760
 
# The coded name of the library, if different from the real name.
4761
 
soname_spec=$lt_soname_spec
4762
 
 
4763
 
# Commands used to build and install an old-style archive.
4764
 
RANLIB=$lt_RANLIB
4765
 
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4766
 
old_postinstall_cmds=$lt_old_postinstall_cmds
4767
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
4768
 
 
4769
 
# Create an old-style archive from a shared archive.
4770
 
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4771
 
 
4772
 
# Create a temporary old-style archive to link instead of a shared archive.
4773
 
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4774
 
 
4775
 
# Commands used to build and install a shared archive.
4776
 
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4777
 
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4778
 
postinstall_cmds=$lt_postinstall_cmds
4779
 
postuninstall_cmds=$lt_postuninstall_cmds
4780
 
 
4781
 
# Commands used to build a loadable module (assumed same as above if empty)
4782
 
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4783
 
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4784
 
 
4785
 
# Commands to strip libraries.
4786
 
old_striplib=$lt_old_striplib
4787
 
striplib=$lt_striplib
4788
 
 
4789
 
# Dependencies to place before the objects being linked to create a
4790
 
# shared library.
4791
 
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4792
 
 
4793
 
# Dependencies to place after the objects being linked to create a
4794
 
# shared library.
4795
 
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4796
 
 
4797
 
# Dependencies to place before the objects being linked to create a
4798
 
# shared library.
4799
 
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4800
 
 
4801
 
# Dependencies to place after the objects being linked to create a
4802
 
# shared library.
4803
 
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4804
 
 
4805
 
# The directories searched by this compiler when creating a shared
4806
 
# library
4807
 
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4808
 
 
4809
 
# The library search path used internally by the compiler when linking
4810
 
# a shared library.
4811
 
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4812
 
 
4813
 
# Method to check whether dependent libraries are shared objects.
4814
 
deplibs_check_method=$lt_deplibs_check_method
4815
 
 
4816
 
# Command to use when deplibs_check_method == file_magic.
4817
 
file_magic_cmd=$lt_file_magic_cmd
4818
 
 
4819
 
# Flag that allows shared libraries with undefined symbols to be built.
4820
 
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4821
 
 
4822
 
# Flag that forces no undefined symbols.
4823
 
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4824
 
 
4825
 
# Commands used to finish a libtool library installation in a directory.
4826
 
finish_cmds=$lt_finish_cmds
4827
 
 
4828
 
# Same as above, but a single script fragment to be evaled but not shown.
4829
 
finish_eval=$lt_finish_eval
4830
 
 
4831
 
# Take the output of nm and produce a listing of raw symbols and C names.
4832
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4833
 
 
4834
 
# Transform the output of nm in a proper C declaration
4835
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4836
 
 
4837
 
# Transform the output of nm in a C name address pair
4838
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4839
 
 
4840
 
# This is the shared library runtime path variable.
4841
 
runpath_var=$runpath_var
4842
 
 
4843
 
# This is the shared library path variable.
4844
 
shlibpath_var=$shlibpath_var
4845
 
 
4846
 
# Is shlibpath searched before the hard-coded library search path?
4847
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4848
 
 
4849
 
# How to hardcode a shared library path into an executable.
4850
 
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4851
 
 
4852
 
# Whether we should hardcode library paths into libraries.
4853
 
hardcode_into_libs=$hardcode_into_libs
4854
 
 
4855
 
# Flag to hardcode \$libdir into a binary during linking.
4856
 
# This must work even if \$libdir does not exist.
4857
 
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4858
 
 
4859
 
# If ld is used when linking, flag to hardcode \$libdir into
4860
 
# a binary during linking. This must work even if \$libdir does
4861
 
# not exist.
4862
 
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4863
 
 
4864
 
# Whether we need a single -rpath flag with a separated argument.
4865
 
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4866
 
 
4867
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4868
 
# resulting binary.
4869
 
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4870
 
 
4871
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4872
 
# resulting binary.
4873
 
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4874
 
 
4875
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4876
 
# the resulting binary.
4877
 
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4878
 
 
4879
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
4880
 
# and all subsequent libraries and executables linked against it.
4881
 
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4882
 
 
4883
 
# Variables whose values should be saved in libtool wrapper scripts and
4884
 
# restored at relink time.
4885
 
variables_saved_for_relink="$variables_saved_for_relink"
4886
 
 
4887
 
# Whether libtool must link a program against all its dependency libraries.
4888
 
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4889
 
 
4890
 
# Compile-time system search path for libraries
4891
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4892
 
 
4893
 
# Run-time system search path for libraries
4894
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4895
 
 
4896
 
# Fix the shell variable \$srcfile for the compiler.
4897
 
fix_srcfile_path=$lt_fix_srcfile_path
4898
 
 
4899
 
# Set to yes if exported symbols are required.
4900
 
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4901
 
 
4902
 
# The commands to list exported symbols.
4903
 
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4904
 
 
4905
 
# The commands to extract the exported symbol list from a shared archive.
4906
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
4907
 
 
4908
 
# Symbols that should not be listed in the preloaded symbols.
4909
 
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4910
 
 
4911
 
# Symbols that must always be exported.
4912
 
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4913
 
 
4914
 
ifelse([$1],[],
4915
 
[# ### END LIBTOOL CONFIG],
4916
 
[# ### END LIBTOOL TAG CONFIG: $tagname])
4917
 
 
4918
 
__EOF__
4919
 
 
4920
 
ifelse([$1],[], [
4921
 
  case $host_os in
4922
 
  aix3*)
4923
 
    cat <<\EOF >> "$cfgfile"
4924
 
 
4925
 
# AIX sometimes has problems with the GCC collect2 program.  For some
4926
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
4927
 
# vanish in a puff of smoke.
4928
 
if test "X${COLLECT_NAMES+set}" != Xset; then
4929
 
  COLLECT_NAMES=
4930
 
  export COLLECT_NAMES
4931
 
fi
4932
 
EOF
4933
 
    ;;
4934
 
  esac
4935
 
 
4936
 
  # We use sed instead of cat because bash on DJGPP gets confused if
4937
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
4938
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
4939
 
  # is reportedly fixed, but why not run on old versions too?
4940
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4941
 
 
4942
 
  mv -f "$cfgfile" "$ofile" || \
4943
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4944
 
  chmod +x "$ofile"
4945
 
])
4946
 
else
4947
 
  # If there is no Makefile yet, we rely on a make rule to execute
4948
 
  # `config.status --recheck' to rerun these tests and create the
4949
 
  # libtool script then.
4950
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4951
 
  if test -f "$ltmain_in"; then
4952
 
    test -f Makefile && make "$ltmain"
4953
 
  fi
4954
 
fi
4955
 
])# AC_LIBTOOL_CONFIG
4956
 
 
4957
 
 
4958
 
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4959
 
# -------------------------------------------
4960
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4961
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4962
 
 
4963
 
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
4129
AC_SUBST([LIBM])
 
4130
])# LT_LIB_M
 
4131
 
 
4132
# Old name:
 
4133
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 
4134
dnl aclocal-1.4 backwards compatibility:
 
4135
dnl AC_DEFUN([AC_CHECK_LIBM], [])
 
4136
 
 
4137
 
 
4138
# _LT_COMPILER_NO_RTTI([TAGNAME])
 
4139
# -------------------------------
 
4140
m4_defun([_LT_COMPILER_NO_RTTI],
 
4141
[m4_require([_LT_TAG_COMPILER])dnl
 
4142
 
 
4143
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4964
4144
 
4965
4145
if test "$GCC" = yes; then
4966
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
4146
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4967
4147
 
4968
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
4148
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4969
4149
    lt_cv_prog_compiler_rtti_exceptions,
4970
4150
    [-fno-rtti -fno-exceptions], [],
4971
 
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
4151
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4972
4152
fi
4973
 
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4974
 
 
4975
 
 
4976
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4977
 
# ---------------------------------
4978
 
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4979
 
[AC_REQUIRE([AC_CANONICAL_HOST])
4980
 
AC_REQUIRE([LT_AC_PROG_SED])
4981
 
AC_REQUIRE([AC_PROG_NM])
4982
 
AC_REQUIRE([AC_OBJEXT])
 
4153
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 
4154
        [Compiler flag to turn off builtin functions])
 
4155
])# _LT_COMPILER_NO_RTTI
 
4156
 
 
4157
 
 
4158
# _LT_CMD_GLOBAL_SYMBOLS
 
4159
# ----------------------
 
4160
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 
4161
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
4162
AC_REQUIRE([AC_PROG_CC])dnl
 
4163
AC_REQUIRE([LT_PATH_NM])dnl
 
4164
AC_REQUIRE([LT_PATH_LD])dnl
 
4165
m4_require([_LT_DECL_SED])dnl
 
4166
m4_require([_LT_DECL_EGREP])dnl
 
4167
m4_require([_LT_TAG_COMPILER])dnl
 
4168
 
4983
4169
# Check for command to grab the raw symbol name followed by C symbol from nm.
4984
4170
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4985
4171
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4993
4179
# Regexp to match symbols that can be accessed directly from C.
4994
4180
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4995
4181
 
4996
 
# Transform an extracted symbol line into a proper C declaration
4997
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4998
 
 
4999
 
# Transform an extracted symbol line into symbol name and symbol address
5000
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5001
 
 
5002
4182
# Define system-specific variables.
5003
4183
case $host_os in
5004
4184
aix*)
5005
4185
  symcode='[[BCDT]]'
5006
4186
  ;;
5007
 
cygwin* | mingw* | pw32*)
 
4187
cygwin* | mingw* | pw32* | cegcc*)
5008
4188
  symcode='[[ABCDGISTW]]'
5009
4189
  ;;
5010
 
hpux*) # Its linker distinguishes data from code symbols
 
4190
hpux*)
5011
4191
  if test "$host_cpu" = ia64; then
5012
4192
    symcode='[[ABCDEGRST]]'
5013
4193
  fi
5014
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5015
 
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5016
 
  ;;
5017
 
linux* | k*bsd*-gnu)
5018
 
  if test "$host_cpu" = ia64; then
5019
 
    symcode='[[ABCDGIRSTW]]'
5020
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5021
 
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5022
 
  fi
5023
4194
  ;;
5024
4195
irix* | nonstopux*)
5025
4196
  symcode='[[BCDEGRST]]'
5044
4215
  ;;
5045
4216
esac
5046
4217
 
 
4218
# If we're using GNU nm, then use its standard symbol codes.
 
4219
case `$NM -V 2>&1` in
 
4220
*GNU* | *'with BFD'*)
 
4221
  symcode='[[ABCDGIRSTW]]' ;;
 
4222
esac
 
4223
 
 
4224
# Transform an extracted symbol line into a proper C declaration.
 
4225
# Some systems (esp. on ia64) link data and code symbols differently,
 
4226
# so use this general approach.
 
4227
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4228
 
 
4229
# Transform an extracted symbol line into symbol name and symbol address
 
4230
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4231
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'"
 
4232
 
5047
4233
# Handle CRLF in mingw tool chain
5048
4234
opt_cr=
5049
4235
case $build_os in
5050
4236
mingw*)
5051
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
4237
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5052
4238
  ;;
5053
4239
esac
5054
4240
 
5055
 
# If we're using GNU nm, then use its standard symbol codes.
5056
 
case `$NM -V 2>&1` in
5057
 
*GNU* | *'with BFD'*)
5058
 
  symcode='[[ABCDGIRSTW]]' ;;
5059
 
esac
5060
 
 
5061
 
# Try without a prefix undercore, then with it.
 
4241
# Try without a prefix underscore, then with it.
5062
4242
for ac_symprfx in "" "_"; do
5063
4243
 
5064
4244
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5065
4245
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5066
4246
 
5067
4247
  # Write the raw and C identifiers.
5068
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4248
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4249
    # Fake it for dumpbin and say T for any non-static function
 
4250
    # and D for any global variable.
 
4251
    # Also find C++ and __fastcall symbols from MSVC++,
 
4252
    # which start with @ or ?.
 
4253
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
 
4254
"     {last_section=section; section=\$ 3};"\
 
4255
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
4256
"     \$ 0!~/External *\|/{next};"\
 
4257
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
4258
"     {if(hide[section]) next};"\
 
4259
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
4260
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
4261
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
4262
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
4263
"     ' prfx=^$ac_symprfx]"
 
4264
  else
 
4265
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4266
  fi
5069
4267
 
5070
4268
  # Check to see that the pipe works correctly.
5071
4269
  pipe_works=no
5072
4270
 
5073
4271
  rm -f conftest*
5074
 
  cat > conftest.$ac_ext <<EOF
 
4272
  cat > conftest.$ac_ext <<_LT_EOF
5075
4273
#ifdef __cplusplus
5076
4274
extern "C" {
5077
4275
#endif
5078
4276
char nm_test_var;
5079
 
void nm_test_func(){}
 
4277
void nm_test_func(void);
 
4278
void nm_test_func(void){}
5080
4279
#ifdef __cplusplus
5081
4280
}
5082
4281
#endif
5083
4282
int main(){nm_test_var='a';nm_test_func();return(0);}
5084
 
EOF
 
4283
_LT_EOF
5085
4284
 
5086
4285
  if AC_TRY_EVAL(ac_compile); then
5087
4286
    # Now try to grab the symbols.
5095
4294
      fi
5096
4295
 
5097
4296
      # Make sure that we snagged all the symbols we need.
5098
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5099
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5100
 
          cat <<EOF > conftest.$ac_ext
 
4297
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
4298
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
4299
          cat <<_LT_EOF > conftest.$ac_ext
5101
4300
#ifdef __cplusplus
5102
4301
extern "C" {
5103
4302
#endif
5104
4303
 
5105
 
EOF
 
4304
_LT_EOF
5106
4305
          # Now generate the symbol file.
5107
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5108
 
 
5109
 
          cat <<EOF >> conftest.$ac_ext
5110
 
#if defined (__STDC__) && __STDC__
5111
 
# define lt_ptr_t void *
5112
 
#else
5113
 
# define lt_ptr_t char *
5114
 
# define const
5115
 
#endif
5116
 
 
5117
 
/* The mapping between symbol names and symbols. */
 
4306
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
4307
 
 
4308
          cat <<_LT_EOF >> conftest.$ac_ext
 
4309
 
 
4310
/* The mapping between symbol names and symbols.  */
5118
4311
const struct {
5119
4312
  const char *name;
5120
 
  lt_ptr_t address;
 
4313
  void       *address;
5121
4314
}
5122
 
lt_preloaded_symbols[[]] =
 
4315
lt__PROGRAM__LTX_preloaded_symbols[[]] =
5123
4316
{
5124
 
EOF
5125
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5126
 
          cat <<\EOF >> conftest.$ac_ext
5127
 
  {0, (lt_ptr_t) 0}
 
4317
  { "@PROGRAM@", (void *) 0 },
 
4318
_LT_EOF
 
4319
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
4320
          cat <<\_LT_EOF >> conftest.$ac_ext
 
4321
  {0, (void *) 0}
5128
4322
};
5129
4323
 
 
4324
/* This works around a problem in FreeBSD linker */
 
4325
#ifdef FREEBSD_WORKAROUND
 
4326
static const void *lt_preloaded_setup() {
 
4327
  return lt__PROGRAM__LTX_preloaded_symbols;
 
4328
}
 
4329
#endif
 
4330
 
5130
4331
#ifdef __cplusplus
5131
4332
}
5132
4333
#endif
5133
 
EOF
 
4334
_LT_EOF
5134
4335
          # Now try linking the two files.
5135
4336
          mv conftest.$ac_objext conftstm.$ac_objext
5136
4337
          lt_save_LIBS="$LIBS"
5137
4338
          lt_save_CFLAGS="$CFLAGS"
5138
4339
          LIBS="conftstm.$ac_objext"
5139
 
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
4340
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5140
4341
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5141
4342
            pipe_works=yes
5142
4343
          fi
5173
4374
else
5174
4375
  AC_MSG_RESULT(ok)
5175
4376
fi
5176
 
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5177
 
 
5178
 
 
5179
 
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5180
 
# ---------------------------------------
5181
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5182
 
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5183
 
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5184
 
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 
4377
 
 
4378
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 
4379
    [Take the output of nm and produce a listing of raw symbols and C names])
 
4380
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 
4381
    [Transform the output of nm in a proper C declaration])
 
4382
_LT_DECL([global_symbol_to_c_name_address],
 
4383
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
 
4384
    [Transform the output of nm in a C name address pair])
 
4385
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 
4386
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 
4387
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
4388
]) # _LT_CMD_GLOBAL_SYMBOLS
 
4389
 
 
4390
 
 
4391
# _LT_COMPILER_PIC([TAGNAME])
 
4392
# ---------------------------
 
4393
m4_defun([_LT_COMPILER_PIC],
 
4394
[m4_require([_LT_TAG_COMPILER])dnl
 
4395
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
 
4396
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4397
_LT_TAGVAR(lt_prog_compiler_static, $1)=
5185
4398
 
5186
4399
AC_MSG_CHECKING([for $compiler option to produce PIC])
5187
 
 ifelse([$1],[CXX],[
 
4400
m4_if([$1], [CXX], [
5188
4401
  # C++ specific cases for pic, static, wl, etc.
5189
4402
  if test "$GXX" = yes; then
5190
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5191
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4403
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4404
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5192
4405
 
5193
4406
    case $host_os in
5194
4407
    aix*)
5195
4408
      # All AIX code is PIC.
5196
4409
      if test "$host_cpu" = ia64; then
5197
4410
        # AIX 5 now supports IA64 processor
5198
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4411
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5199
4412
      fi
5200
4413
      ;;
 
4414
 
5201
4415
    amigaos*)
5202
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5203
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5204
 
      # like `-m68040'.
5205
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4416
      case $host_cpu in
 
4417
      powerpc)
 
4418
            # see comment about AmigaOS4 .so support
 
4419
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4420
        ;;
 
4421
      m68k)
 
4422
            # FIXME: we need at least 68020 code to build shared libraries, but
 
4423
            # adding the `-m68020' flag to GCC prevents building anything better,
 
4424
            # like `-m68040'.
 
4425
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4426
        ;;
 
4427
      esac
5206
4428
      ;;
 
4429
 
5207
4430
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5208
4431
      # PIC is the default for these OSes.
5209
4432
      ;;
5210
 
    mingw* | cygwin* | os2* | pw32*)
 
4433
    mingw* | cygwin* | os2* | pw32* | cegcc*)
5211
4434
      # This hack is so that the source file can tell whether it is being
5212
4435
      # built for inclusion in a dll (and should export symbols for example).
5213
4436
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5214
4437
      # (--disable-auto-import) libraries
5215
4438
      m4_if([$1], [GCJ], [],
5216
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4439
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5217
4440
      ;;
5218
4441
    darwin* | rhapsody*)
5219
4442
      # PIC is the default on this platform
5220
4443
      # Common symbols not allowed in MH_DYLIB files
5221
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4444
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5222
4445
      ;;
5223
4446
    *djgpp*)
5224
4447
      # DJGPP does not support shared libraries at all
5225
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
4448
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5226
4449
      ;;
5227
4450
    interix[[3-9]]*)
5228
4451
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5230
4453
      ;;
5231
4454
    sysv4*MP*)
5232
4455
      if test -d /usr/nec; then
5233
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
4456
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5234
4457
      fi
5235
4458
      ;;
5236
4459
    hpux*)
5237
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5238
 
      # not for PA HP-UX.
 
4460
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
4461
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
4462
      # sets the default TLS model and affects inlining.
5239
4463
      case $host_cpu in
5240
 
      hppa*64*|ia64*)
 
4464
      hppa*64*)
5241
4465
        ;;
5242
4466
      *)
5243
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4467
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5244
4468
        ;;
5245
4469
      esac
5246
4470
      ;;
 
4471
    *qnx* | *nto*)
 
4472
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4473
      # it will coredump.
 
4474
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4475
      ;;
5247
4476
    *)
5248
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4477
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5249
4478
      ;;
5250
4479
    esac
5251
4480
  else
5254
4483
        # All AIX code is PIC.
5255
4484
        if test "$host_cpu" = ia64; then
5256
4485
          # AIX 5 now supports IA64 processor
5257
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4486
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5258
4487
        else
5259
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
4488
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5260
4489
        fi
5261
4490
        ;;
5262
4491
      chorus*)
5263
4492
        case $cc_basename in
5264
4493
        cxch68*)
5265
4494
          # Green Hills C++ Compiler
5266
 
          # _LT_AC_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"
 
4495
          # _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"
5267
4496
          ;;
5268
4497
        esac
5269
4498
        ;;
5270
 
       darwin*)
5271
 
         # PIC is the default on this platform
5272
 
         # Common symbols not allowed in MH_DYLIB files
5273
 
         case $cc_basename in
5274
 
           xlc*)
5275
 
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5276
 
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5277
 
           ;;
5278
 
         esac
5279
 
       ;;
5280
4499
      dgux*)
5281
4500
        case $cc_basename in
5282
4501
          ec++*)
5283
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4502
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5284
4503
            ;;
5285
4504
          ghcx*)
5286
4505
            # Green Hills C++ Compiler
5287
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4506
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5288
4507
            ;;
5289
4508
          *)
5290
4509
            ;;
5296
4515
      hpux9* | hpux10* | hpux11*)
5297
4516
        case $cc_basename in
5298
4517
          CC*)
5299
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5300
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4518
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4519
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5301
4520
            if test "$host_cpu" != ia64; then
5302
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4521
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5303
4522
            fi
5304
4523
            ;;
5305
4524
          aCC*)
5306
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5307
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4525
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4526
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5308
4527
            case $host_cpu in
5309
4528
            hppa*64*|ia64*)
5310
4529
              # +Z the default
5311
4530
              ;;
5312
4531
            *)
5313
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4532
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5314
4533
              ;;
5315
4534
            esac
5316
4535
            ;;
5325
4544
      irix5* | irix6* | nonstopux*)
5326
4545
        case $cc_basename in
5327
4546
          CC*)
5328
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5329
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4547
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4548
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5330
4549
            # CC pic flag -KPIC is the default.
5331
4550
            ;;
5332
4551
          *)
5337
4556
        case $cc_basename in
5338
4557
          KCC*)
5339
4558
            # KAI C++ Compiler
5340
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5341
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5342
 
            ;;
5343
 
          icpc* | ecpc*)
5344
 
            # Intel C++
5345
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5346
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5347
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4559
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4560
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4561
            ;;
 
4562
          ecpc* )
 
4563
            # old Intel C++ for x86_64 which still supported -KPIC.
 
4564
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4565
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4566
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4567
            ;;
 
4568
          icpc* )
 
4569
            # Intel C++, used to be incompatible with GCC.
 
4570
            # ICC 10 doesn't accept -KPIC any more.
 
4571
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4572
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4573
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5348
4574
            ;;
5349
4575
          pgCC* | pgcpp*)
5350
 
            # Portland Group C++ compiler.
5351
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5352
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5353
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4576
            # Portland Group C++ compiler
 
4577
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4578
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4579
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5354
4580
            ;;
5355
4581
          cxx*)
5356
4582
            # Compaq C++
5357
4583
            # Make sure the PIC flag is empty.  It appears that all Alpha
5358
4584
            # Linux and Compaq Tru64 Unix objects are PIC.
5359
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5360
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4585
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4586
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4587
            ;;
 
4588
          xlc* | xlC*)
 
4589
            # IBM XL 8.0 on PPC
 
4590
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4591
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
4592
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5361
4593
            ;;
5362
4594
          *)
5363
4595
            case `$CC -V 2>&1 | sed 5q` in
5364
4596
            *Sun\ C*)
5365
4597
              # Sun C++ 5.9
5366
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5367
 
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5368
 
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4598
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4599
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4600
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5369
4601
              ;;
5370
4602
            esac
5371
4603
            ;;
5378
4610
      mvs*)
5379
4611
        case $cc_basename in
5380
4612
          cxx*)
5381
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
4613
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5382
4614
            ;;
5383
4615
          *)
5384
4616
            ;;
5386
4618
        ;;
5387
4619
      netbsd*)
5388
4620
        ;;
 
4621
      *qnx* | *nto*)
 
4622
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4623
        # it will coredump.
 
4624
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4625
        ;;
5389
4626
      osf3* | osf4* | osf5*)
5390
4627
        case $cc_basename in
5391
4628
          KCC*)
5392
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4629
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5393
4630
            ;;
5394
4631
          RCC*)
5395
4632
            # Rational C++ 2.4.1
5396
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4633
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5397
4634
            ;;
5398
4635
          cxx*)
5399
4636
            # Digital/Compaq C++
5400
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4637
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5401
4638
            # Make sure the PIC flag is empty.  It appears that all Alpha
5402
4639
            # Linux and Compaq Tru64 Unix objects are PIC.
5403
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5404
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4640
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4641
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5405
4642
            ;;
5406
4643
          *)
5407
4644
            ;;
5413
4650
        case $cc_basename in
5414
4651
          CC*)
5415
4652
            # Sun C++ 4.2, 5.x and Centerline C++
5416
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5417
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5418
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4653
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4654
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4655
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5419
4656
            ;;
5420
4657
          gcx*)
5421
4658
            # Green Hills C++ Compiler
5422
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4659
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5423
4660
            ;;
5424
4661
          *)
5425
4662
            ;;
5429
4666
        case $cc_basename in
5430
4667
          CC*)
5431
4668
            # Sun C++ 4.x
5432
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5433
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4669
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4670
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5434
4671
            ;;
5435
4672
          lcc*)
5436
4673
            # Lucid
5437
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4674
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5438
4675
            ;;
5439
4676
          *)
5440
4677
            ;;
5441
4678
        esac
5442
4679
        ;;
 
4680
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
4681
        case $cc_basename in
 
4682
          CC*)
 
4683
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4684
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4685
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4686
            ;;
 
4687
        esac
 
4688
        ;;
5443
4689
      tandem*)
5444
4690
        case $cc_basename in
5445
4691
          NCC*)
5446
4692
            # NonStop-UX NCC 3.20
5447
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4693
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5448
4694
            ;;
5449
4695
          *)
5450
4696
            ;;
5451
4697
        esac
5452
4698
        ;;
5453
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5454
 
        case $cc_basename in
5455
 
          CC*)
5456
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5457
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5458
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5459
 
            ;;
5460
 
        esac
5461
 
        ;;
5462
4699
      vxworks*)
5463
4700
        ;;
5464
4701
      *)
5465
 
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4702
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5466
4703
        ;;
5467
4704
    esac
5468
4705
  fi
5469
4706
],
5470
4707
[
5471
4708
  if test "$GCC" = yes; then
5472
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5473
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4709
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4710
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5474
4711
 
5475
4712
    case $host_os in
5476
4713
      aix*)
5477
4714
      # All AIX code is PIC.
5478
4715
      if test "$host_cpu" = ia64; then
5479
4716
        # AIX 5 now supports IA64 processor
5480
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4717
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5481
4718
      fi
5482
4719
      ;;
5483
4720
 
5484
4721
    amigaos*)
5485
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5486
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5487
 
      # like `-m68040'.
5488
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4722
      case $host_cpu in
 
4723
      powerpc)
 
4724
            # see comment about AmigaOS4 .so support
 
4725
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4726
        ;;
 
4727
      m68k)
 
4728
            # FIXME: we need at least 68020 code to build shared libraries, but
 
4729
            # adding the `-m68020' flag to GCC prevents building anything better,
 
4730
            # like `-m68040'.
 
4731
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4732
        ;;
 
4733
      esac
5489
4734
      ;;
5490
4735
 
5491
4736
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5492
4737
      # PIC is the default for these OSes.
5493
4738
      ;;
5494
4739
 
5495
 
    mingw* | cygwin* | pw32* | os2*)
 
4740
    mingw* | cygwin* | pw32* | os2* | cegcc*)
5496
4741
      # This hack is so that the source file can tell whether it is being
5497
4742
      # built for inclusion in a dll (and should export symbols for example).
5498
4743
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5499
4744
      # (--disable-auto-import) libraries
5500
4745
      m4_if([$1], [GCJ], [],
5501
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4746
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5502
4747
      ;;
5503
4748
 
5504
4749
    darwin* | rhapsody*)
5505
4750
      # PIC is the default on this platform
5506
4751
      # Common symbols not allowed in MH_DYLIB files
5507
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4752
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4753
      ;;
 
4754
 
 
4755
    hpux*)
 
4756
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
4757
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
4758
      # sets the default TLS model and affects inlining.
 
4759
      case $host_cpu in
 
4760
      hppa*64*)
 
4761
        # +Z the default
 
4762
        ;;
 
4763
      *)
 
4764
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4765
        ;;
 
4766
      esac
5508
4767
      ;;
5509
4768
 
5510
4769
    interix[[3-9]]*)
5515
4774
    msdosdjgpp*)
5516
4775
      # Just because we use GCC doesn't mean we suddenly get shared libraries
5517
4776
      # on systems that don't support them.
5518
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4777
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5519
4778
      enable_shared=no
5520
4779
      ;;
5521
4780
 
 
4781
    *nto* | *qnx*)
 
4782
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4783
      # it will coredump.
 
4784
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4785
      ;;
 
4786
 
5522
4787
    sysv4*MP*)
5523
4788
      if test -d /usr/nec; then
5524
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
4789
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5525
4790
      fi
5526
4791
      ;;
5527
4792
 
5528
 
    hpux*)
5529
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5530
 
      # not for PA HP-UX.
5531
 
      case $host_cpu in
5532
 
      hppa*64*|ia64*)
5533
 
        # +Z the default
5534
 
        ;;
5535
 
      *)
5536
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5537
 
        ;;
5538
 
      esac
5539
 
      ;;
5540
 
 
5541
4793
    *)
5542
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4794
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5543
4795
      ;;
5544
4796
    esac
5545
4797
  else
5546
4798
    # PORTME Check for flag to pass linker flags through the system compiler.
5547
4799
    case $host_os in
5548
4800
    aix*)
5549
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4801
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5550
4802
      if test "$host_cpu" = ia64; then
5551
4803
        # AIX 5 now supports IA64 processor
5552
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4804
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5553
4805
      else
5554
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
4806
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5555
4807
      fi
5556
4808
      ;;
5557
 
      darwin*)
5558
 
        # PIC is the default on this platform
5559
 
        # Common symbols not allowed in MH_DYLIB files
5560
 
       case $cc_basename in
5561
 
         xlc*)
5562
 
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5563
 
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5564
 
         ;;
5565
 
       esac
5566
 
       ;;
5567
4809
 
5568
 
    mingw* | cygwin* | pw32* | os2*)
 
4810
    mingw* | cygwin* | pw32* | os2* | cegcc*)
5569
4811
      # This hack is so that the source file can tell whether it is being
5570
4812
      # built for inclusion in a dll (and should export symbols for example).
5571
4813
      m4_if([$1], [GCJ], [],
5572
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4814
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5573
4815
      ;;
5574
4816
 
5575
4817
    hpux9* | hpux10* | hpux11*)
5576
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4818
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5577
4819
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5578
4820
      # not for PA HP-UX.
5579
4821
      case $host_cpu in
5581
4823
        # +Z the default
5582
4824
        ;;
5583
4825
      *)
5584
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4826
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5585
4827
        ;;
5586
4828
      esac
5587
4829
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
5588
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4830
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5589
4831
      ;;
5590
4832
 
5591
4833
    irix5* | irix6* | nonstopux*)
5592
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4834
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5593
4835
      # PIC (with -KPIC) is the default.
5594
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5595
 
      ;;
5596
 
 
5597
 
    newsos6)
5598
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5599
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4836
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5600
4837
      ;;
5601
4838
 
5602
4839
    linux* | k*bsd*-gnu)
5603
4840
      case $cc_basename in
5604
 
      icc* | ecc*)
5605
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5606
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5607
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5608
 
        ;;
 
4841
      # old Intel for x86_64 which still supported -KPIC.
 
4842
      ecc*)
 
4843
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4844
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4845
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4846
        ;;
 
4847
      # icc used to be incompatible with GCC.
 
4848
      # ICC 10 doesn't accept -KPIC any more.
 
4849
      icc* | ifort*)
 
4850
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4851
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4852
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4853
        ;;
 
4854
      # Lahey Fortran 8.1.
 
4855
      lf95*)
 
4856
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4857
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 
4858
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 
4859
        ;;
5609
4860
      pgcc* | pgf77* | pgf90* | pgf95*)
5610
4861
        # Portland Group compilers (*not* the Pentium gcc compiler,
5611
4862
        # which looks to be a dead project)
5612
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5613
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5614
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4863
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4864
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4865
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5615
4866
        ;;
5616
4867
      ccc*)
5617
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4868
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5618
4869
        # All Alpha code is PIC.
5619
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4870
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5620
4871
        ;;
 
4872
      xl*)
 
4873
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
4874
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4875
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
4876
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
4877
        ;;
5621
4878
      *)
5622
 
        case `$CC -V 2>&1 | sed 5q` in
 
4879
        case `$CC -V 2>&1 | sed 5q` in
5623
4880
        *Sun\ C*)
5624
4881
          # Sun C 5.9
5625
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5626
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5627
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4882
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4883
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4884
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5628
4885
          ;;
5629
4886
        *Sun\ F*)
5630
4887
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5631
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5632
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5633
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
4888
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4889
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4890
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5634
4891
          ;;
5635
4892
        esac
5636
4893
        ;;
5637
4894
      esac
5638
4895
      ;;
5639
4896
 
 
4897
    newsos6)
 
4898
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4899
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4900
      ;;
 
4901
 
 
4902
    *nto* | *qnx*)
 
4903
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4904
      # it will coredump.
 
4905
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4906
      ;;
 
4907
 
5640
4908
    osf3* | osf4* | osf5*)
5641
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4909
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5642
4910
      # All OSF/1 code is PIC.
5643
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4911
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5644
4912
      ;;
5645
4913
 
5646
4914
    rdos*)
5647
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4915
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5648
4916
      ;;
5649
4917
 
5650
4918
    solaris*)
5651
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5652
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4919
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4920
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5653
4921
      case $cc_basename in
5654
4922
      f77* | f90* | f95*)
5655
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
4923
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5656
4924
      *)
5657
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
4925
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5658
4926
      esac
5659
4927
      ;;
5660
4928
 
5661
4929
    sunos4*)
5662
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5663
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5664
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4930
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4931
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4932
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5665
4933
      ;;
5666
4934
 
5667
4935
    sysv4 | sysv4.2uw2* | sysv4.3*)
5668
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5669
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5670
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
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)='-Bstatic'
5671
4939
      ;;
5672
4940
 
5673
4941
    sysv4*MP*)
5674
4942
      if test -d /usr/nec ;then
5675
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5676
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4943
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
4944
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5677
4945
      fi
5678
4946
      ;;
5679
4947
 
5680
4948
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5681
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5682
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5683
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4949
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4950
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4951
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5684
4952
      ;;
5685
4953
 
5686
4954
    unicos*)
5687
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5688
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4955
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4956
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5689
4957
      ;;
5690
4958
 
5691
4959
    uts4*)
5692
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5693
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4960
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4961
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5694
4962
      ;;
5695
4963
 
5696
4964
    *)
5697
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4965
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5698
4966
      ;;
5699
4967
    esac
5700
4968
  fi
5701
4969
])
5702
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
4970
case $host_os in
 
4971
  # For platforms which do not support PIC, -DPIC is meaningless:
 
4972
  *djgpp*)
 
4973
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4974
    ;;
 
4975
  *)
 
4976
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 
4977
    ;;
 
4978
esac
 
4979
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
4980
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
4981
        [How to pass a linker flag through the compiler])
5703
4982
 
5704
4983
#
5705
4984
# Check to make sure the PIC flag actually works.
5706
4985
#
5707
 
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5708
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5709
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5710
 
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5711
 
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
4986
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
4987
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 
4988
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 
4989
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 
4990
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5712
4991
     "" | " "*) ;;
5713
 
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
4992
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5714
4993
     esac],
5715
 
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5716
 
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
4994
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4995
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5717
4996
fi
5718
 
case $host_os in
5719
 
  # For platforms which do not support PIC, -DPIC is meaningless:
5720
 
  *djgpp*)
5721
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5722
 
    ;;
5723
 
  *)
5724
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5725
 
    ;;
5726
 
esac
 
4997
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 
4998
        [Additional compiler flags for building library objects])
5727
4999
 
5728
5000
#
5729
5001
# Check to make sure the static flag actually works.
5730
5002
#
5731
 
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5732
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5733
 
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
5003
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 
5004
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5005
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5734
5006
  $lt_tmp_static_flag,
5735
5007
  [],
5736
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5737
 
])
5738
 
 
5739
 
 
5740
 
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5741
 
# ------------------------------------
 
5008
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 
5009
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 
5010
        [Compiler flag to prevent dynamic linking])
 
5011
])# _LT_COMPILER_PIC
 
5012
 
 
5013
 
 
5014
# _LT_LINKER_SHLIBS([TAGNAME])
 
5015
# ----------------------------
5742
5016
# See if the linker supports building shared libraries.
5743
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5744
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5017
m4_defun([_LT_LINKER_SHLIBS],
 
5018
[AC_REQUIRE([LT_PATH_LD])dnl
 
5019
AC_REQUIRE([LT_PATH_NM])dnl
 
5020
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5021
m4_require([_LT_DECL_EGREP])dnl
 
5022
m4_require([_LT_DECL_SED])dnl
 
5023
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
5024
m4_require([_LT_TAG_COMPILER])dnl
5745
5025
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5746
 
ifelse([$1],[CXX],[
5747
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5026
m4_if([$1], [CXX], [
 
5027
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5748
5028
  case $host_os in
5749
5029
  aix[[4-9]]*)
5750
5030
    # If we're using GNU nm, then we don't want the "-C" option.
5751
5031
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5752
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5753
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5032
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
5033
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5754
5034
    else
5755
 
      _LT_AC_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'
 
5035
      _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'
5756
5036
    fi
5757
5037
    ;;
5758
5038
  pw32*)
5759
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
5039
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5760
5040
  ;;
5761
 
  cygwin* | mingw*)
5762
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
5041
  cygwin* | mingw* | cegcc*)
 
5042
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5763
5043
  ;;
5764
5044
  *)
5765
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5045
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5766
5046
  ;;
5767
5047
  esac
5768
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5769
 
],[
 
5048
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
5049
], [
5770
5050
  runpath_var=
5771
 
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5772
 
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5773
 
  _LT_AC_TAGVAR(archive_cmds, $1)=
5774
 
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5775
 
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5776
 
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5777
 
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5778
 
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5779
 
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5780
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5781
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5782
 
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5783
 
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
5784
 
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5785
 
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5786
 
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5787
 
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5788
 
  _LT_AC_TAGVAR(module_cmds, $1)=
5789
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5790
 
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
5791
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5051
  _LT_TAGVAR(allow_undefined_flag, $1)=
 
5052
  _LT_TAGVAR(always_export_symbols, $1)=no
 
5053
  _LT_TAGVAR(archive_cmds, $1)=
 
5054
  _LT_TAGVAR(archive_expsym_cmds, $1)=
 
5055
  _LT_TAGVAR(compiler_needs_object, $1)=no
 
5056
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5057
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5058
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5059
  _LT_TAGVAR(hardcode_automatic, $1)=no
 
5060
  _LT_TAGVAR(hardcode_direct, $1)=no
 
5061
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
5062
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5063
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
5064
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
5065
  _LT_TAGVAR(hardcode_minus_L, $1)=no
 
5066
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5067
  _LT_TAGVAR(inherit_rpath, $1)=no
 
5068
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
 
5069
  _LT_TAGVAR(module_cmds, $1)=
 
5070
  _LT_TAGVAR(module_expsym_cmds, $1)=
 
5071
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 
5072
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
5073
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
 
5074
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
5792
5075
  # include_expsyms should be a list of space-separated symbols to be *always*
5793
5076
  # included in the symbol list
5794
 
  _LT_AC_TAGVAR(include_expsyms, $1)=
 
5077
  _LT_TAGVAR(include_expsyms, $1)=
5795
5078
  # exclude_expsyms can be an extended regexp of symbols to exclude
5796
5079
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5797
5080
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5798
5081
  # as well as any symbol that contains `d'.
5799
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
5082
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5800
5083
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5801
5084
  # platforms (ab)use it in PIC code, but their linkers get confused if
5802
5085
  # the symbol is explicitly referenced.  Since portable code cannot
5805
5088
  # Exclude shared library initialization/finalization symbols.
5806
5089
dnl Note also adjust exclude_expsyms for C++ above.
5807
5090
  extract_expsyms_cmds=
5808
 
  # Just being paranoid about ensuring that cc_basename is set.
5809
 
  _LT_CC_BASENAME([$compiler])
 
5091
 
5810
5092
  case $host_os in
5811
 
  cygwin* | mingw* | pw32*)
 
5093
  cygwin* | mingw* | pw32* | cegcc*)
5812
5094
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5813
5095
    # When not using gcc, we currently assume that we are using
5814
5096
    # Microsoft Visual C++.
5825
5107
    ;;
5826
5108
  esac
5827
5109
 
5828
 
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5110
  _LT_TAGVAR(ld_shlibs, $1)=yes
5829
5111
  if test "$with_gnu_ld" = yes; then
5830
5112
    # If archive_cmds runs LD, not CC, wlarc should be empty
5831
5113
    wlarc='${wl}'
5834
5116
    # are reset later if shared libraries are not supported. Putting them
5835
5117
    # here allows them to be overridden if necessary.
5836
5118
    runpath_var=LD_RUN_PATH
5837
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5838
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5119
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5120
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5839
5121
    # ancient GNU ld didn't support --whole-archive et. al.
5840
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5841
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5842
 
      else
5843
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5122
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
5123
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5124
    else
 
5125
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
5844
5126
    fi
5845
5127
    supports_anon_versioning=no
5846
 
    case `$LD -v 2>/dev/null` in
 
5128
    case `$LD -v 2>&1` in
5847
5129
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5848
5130
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5849
5131
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5856
5138
    aix[[3-9]]*)
5857
5139
      # On AIX/PPC, the GNU linker is very broken
5858
5140
      if test "$host_cpu" != ia64; then
5859
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5860
 
        cat <<EOF 1>&2
 
5141
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5142
        cat <<_LT_EOF 1>&2
5861
5143
 
5862
5144
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5863
5145
*** to be unable to reliably create shared libraries on AIX.
5865
5147
*** really care for shared libraries, you may want to modify your PATH
5866
5148
*** so that a non-GNU linker is found, and then restart.
5867
5149
 
5868
 
EOF
 
5150
_LT_EOF
5869
5151
      fi
5870
5152
      ;;
5871
5153
 
5872
5154
    amigaos*)
5873
 
      _LT_AC_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)'
5874
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5875
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5876
 
 
5877
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5878
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
5879
 
      # to version 4, is to share data among multiple programs linked
5880
 
      # with the same dynamic library.  Since this doesn't match the
5881
 
      # behavior of shared libraries on other platforms, we can't use
5882
 
      # them.
5883
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5155
      case $host_cpu in
 
5156
      powerpc)
 
5157
            # see comment about AmigaOS4 .so support
 
5158
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5159
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
5160
        ;;
 
5161
      m68k)
 
5162
            _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)'
 
5163
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5164
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5165
        ;;
 
5166
      esac
5884
5167
      ;;
5885
5168
 
5886
5169
    beos*)
5887
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5888
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5170
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5171
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5889
5172
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5890
5173
        # support --undefined.  This deserves some investigation.  FIXME
5891
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5174
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5892
5175
      else
5893
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5176
        _LT_TAGVAR(ld_shlibs, $1)=no
5894
5177
      fi
5895
5178
      ;;
5896
5179
 
5897
 
    cygwin* | mingw* | pw32*)
5898
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
5180
    cygwin* | mingw* | pw32* | cegcc*)
 
5181
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5899
5182
      # as there is no search path for DLLs.
5900
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5901
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5902
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5903
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5904
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
5183
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5184
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5185
      _LT_TAGVAR(always_export_symbols, $1)=no
 
5186
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5187
      _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'
5905
5188
 
5906
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5907
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
5189
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
5190
        _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'
5908
5191
        # If the export-symbols file already is a .def file (1st line
5909
5192
        # is EXPORTS), use it as is; otherwise, prepend...
5910
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5193
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5911
5194
          cp $export_symbols $output_objdir/$soname.def;
5912
5195
        else
5913
5196
          echo EXPORTS > $output_objdir/$soname.def;
5915
5198
        fi~
5916
5199
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5917
5200
      else
5918
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5201
        _LT_TAGVAR(ld_shlibs, $1)=no
5919
5202
      fi
5920
5203
      ;;
5921
5204
 
5922
5205
    interix[[3-9]]*)
5923
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5924
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5925
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5926
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5206
      _LT_TAGVAR(hardcode_direct, $1)=no
 
5207
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5208
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5209
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5927
5210
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5928
5211
      # Instead, shared libraries are loaded at an image base (0x10000000 by
5929
5212
      # default) and relocated if they conflict, which is a slow very memory
5930
5213
      # consuming and fragmenting process.  To avoid this, we pick a random,
5931
5214
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5932
5215
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5933
 
      _LT_AC_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'
5934
 
      _LT_AC_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'
 
5216
      _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'
 
5217
      _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'
5935
5218
      ;;
5936
5219
 
5937
 
    gnu* | linux* | k*bsd*-gnu)
5938
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5220
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
5221
      tmp_diet=no
 
5222
      if test "$host_os" = linux-dietlibc; then
 
5223
        case $cc_basename in
 
5224
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
5225
        esac
 
5226
      fi
 
5227
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
5228
         && test "$tmp_diet" = no
 
5229
      then
5939
5230
        tmp_addflag=
 
5231
        tmp_sharedflag='-shared'
5940
5232
        case $cc_basename,$host_cpu in
5941
 
        pgcc*)                          # Portland Group C compiler
5942
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5233
        pgcc*)                          # Portland Group C compiler
 
5234
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5943
5235
          tmp_addflag=' $pic_flag'
5944
5236
          ;;
5945
5237
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
5946
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5238
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5947
5239
          tmp_addflag=' $pic_flag -Mnomain' ;;
5948
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
5240
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
5949
5241
          tmp_addflag=' -i_dynamic' ;;
5950
5242
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
5951
5243
          tmp_addflag=' -i_dynamic -nofor_main' ;;
5952
5244
        ifc* | ifort*)                  # Intel Fortran compiler
5953
5245
          tmp_addflag=' -nofor_main' ;;
 
5246
        lf95*)                          # Lahey Fortran 8.1
 
5247
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5248
          tmp_sharedflag='--shared' ;;
 
5249
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
5250
          tmp_sharedflag='-qmkshrobj'
 
5251
          tmp_addflag= ;;
5954
5252
        esac
5955
5253
        case `$CC -V 2>&1 | sed 5q` in
5956
5254
        *Sun\ C*)                       # Sun C 5.9
5957
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5255
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
5256
          _LT_TAGVAR(compiler_needs_object, $1)=yes
5958
5257
          tmp_sharedflag='-G' ;;
5959
5258
        *Sun\ F*)                       # Sun Fortran 8.3
5960
5259
          tmp_sharedflag='-G' ;;
5961
 
        *)
5962
 
          tmp_sharedflag='-shared' ;;
5963
 
        esac
5964
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5965
 
 
5966
 
        if test $supports_anon_versioning = yes; then
5967
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5968
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5969
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5970
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5971
 
        fi
 
5260
        esac
 
5261
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5262
 
 
5263
        if test "x$supports_anon_versioning" = xyes; then
 
5264
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5265
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5266
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
5267
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5268
        fi
 
5269
 
 
5270
        case $cc_basename in
 
5271
        xlf*)
 
5272
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
5273
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 
5274
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5275
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5276
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
5277
          if test "x$supports_anon_versioning" = xyes; then
 
5278
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5279
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5280
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
5281
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
5282
          fi
 
5283
          ;;
 
5284
        esac
5972
5285
      else
5973
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5286
        _LT_TAGVAR(ld_shlibs, $1)=no
5974
5287
      fi
5975
5288
      ;;
5976
5289
 
5977
5290
    netbsd*)
5978
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5979
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
5291
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5292
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5980
5293
        wlarc=
5981
5294
      else
5982
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5983
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5295
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5296
        _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'
5984
5297
      fi
5985
5298
      ;;
5986
5299
 
5987
5300
    solaris*)
5988
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5989
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5990
 
        cat <<EOF 1>&2
 
5301
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
5302
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5303
        cat <<_LT_EOF 1>&2
5991
5304
 
5992
5305
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5993
5306
*** create shared libraries on Solaris systems.  Therefore, libtool
5996
5309
*** your PATH or compiler configuration so that the native linker is
5997
5310
*** used, and then restart.
5998
5311
 
5999
 
EOF
6000
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6001
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6002
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5312
_LT_EOF
 
5313
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5314
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5315
        _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'
6003
5316
      else
6004
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5317
        _LT_TAGVAR(ld_shlibs, $1)=no
6005
5318
      fi
6006
5319
      ;;
6007
5320
 
6008
5321
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6009
5322
      case `$LD -v 2>&1` in
6010
5323
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6011
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5324
        _LT_TAGVAR(ld_shlibs, $1)=no
6012
5325
        cat <<_LT_EOF 1>&2
6013
5326
 
6014
5327
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6021
5334
_LT_EOF
6022
5335
        ;;
6023
5336
        *)
6024
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6025
 
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6026
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6027
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
5337
          # For security reasons, it is highly recommended that you always
 
5338
          # use absolute paths for naming shared libraries, and exclude the
 
5339
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
5340
          # requires that you compile everything twice, which is a pain.
 
5341
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5342
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5343
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5344
            _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'
6028
5345
          else
6029
 
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5346
            _LT_TAGVAR(ld_shlibs, $1)=no
6030
5347
          fi
6031
5348
        ;;
6032
5349
      esac
6033
5350
      ;;
6034
5351
 
6035
5352
    sunos4*)
6036
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5353
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6037
5354
      wlarc=
6038
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6039
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5355
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5356
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6040
5357
      ;;
6041
5358
 
6042
5359
    *)
6043
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6044
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6045
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5360
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5361
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5362
        _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'
6046
5363
      else
6047
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5364
        _LT_TAGVAR(ld_shlibs, $1)=no
6048
5365
      fi
6049
5366
      ;;
6050
5367
    esac
6051
5368
 
6052
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
5369
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
6053
5370
      runpath_var=
6054
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6055
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6056
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5371
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5372
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5373
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
6057
5374
    fi
6058
5375
  else
6059
5376
    # PORTME fill in a description of your system's linker (not GNU ld)
6060
5377
    case $host_os in
6061
5378
    aix3*)
6062
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6063
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6064
 
      _LT_AC_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'
 
5379
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5380
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
5381
      _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'
6065
5382
      # Note: this linker hardcodes the directories in LIBPATH if there
6066
5383
      # are no directories specified by -L.
6067
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5384
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6068
5385
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6069
5386
        # Neither direct hardcoding nor static linking is supported with a
6070
5387
        # broken collect2.
6071
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
5388
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
6072
5389
      fi
6073
5390
      ;;
6074
5391
 
6082
5399
      else
6083
5400
        # If we're using GNU nm, then we don't want the "-C" option.
6084
5401
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
6085
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6086
 
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5402
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
5403
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6087
5404
        else
6088
 
          _LT_AC_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'
 
5405
          _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'
6089
5406
        fi
6090
5407
        aix_use_runtimelinking=no
6091
5408
 
6094
5411
        # need to do runtime linking.
6095
5412
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6096
5413
          for ld_flag in $LDFLAGS; do
6097
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6098
 
            aix_use_runtimelinking=yes
6099
 
            break
6100
 
          fi
 
5414
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
5415
            aix_use_runtimelinking=yes
 
5416
            break
 
5417
          fi
6101
5418
          done
6102
5419
          ;;
6103
5420
        esac
6112
5429
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6113
5430
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6114
5431
 
6115
 
      _LT_AC_TAGVAR(archive_cmds, $1)=''
6116
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6117
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6118
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5432
      _LT_TAGVAR(archive_cmds, $1)=''
 
5433
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5434
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5435
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5436
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5437
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6119
5438
 
6120
5439
      if test "$GCC" = yes; then
6121
5440
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
6122
5441
        # We only want to do this on AIX 4.2 and lower, the check
6123
5442
        # below for broken collect2 doesn't work under 4.3+
6124
5443
          collect2name=`${CC} -print-prog-name=collect2`
6125
 
          if test -f "$collect2name" && \
6126
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
5444
          if test -f "$collect2name" &&
 
5445
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6127
5446
          then
6128
 
          # We have reworked collect2
6129
 
          :
 
5447
          # We have reworked collect2
 
5448
          :
6130
5449
          else
6131
 
          # We have old collect2
6132
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6133
 
          # It fails to find uninstalled libraries when the uninstalled
6134
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
6135
 
          # to unsupported forces relinking
6136
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6137
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6138
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
5450
          # We have old collect2
 
5451
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
5452
          # It fails to find uninstalled libraries when the uninstalled
 
5453
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
5454
          # to unsupported forces relinking
 
5455
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5456
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5457
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
6139
5458
          fi
6140
5459
          ;;
6141
5460
        esac
6146
5465
      else
6147
5466
        # not using gcc
6148
5467
        if test "$host_cpu" = ia64; then
6149
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6150
 
        # chokes on -Wl,-G. The following line is correct:
 
5468
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
5469
        # chokes on -Wl,-G. The following line is correct:
6151
5470
          shared_flag='-G'
6152
5471
        else
6153
5472
          if test "$aix_use_runtimelinking" = yes; then
6158
5477
        fi
6159
5478
      fi
6160
5479
 
 
5480
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6161
5481
      # It seems that -bexpall does not export symbols beginning with
6162
5482
      # underscore (_), so it is better to generate a list of symbols to export.
6163
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
5483
      _LT_TAGVAR(always_export_symbols, $1)=yes
6164
5484
      if test "$aix_use_runtimelinking" = yes; then
6165
5485
        # Warning - without using the other runtime loading flags (-brtl),
6166
5486
        # -berok will link without error, but may produce a broken library.
6167
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6168
 
       # Determine the default libpath from the value encoded in an empty executable.
6169
 
       _LT_AC_SYS_LIBPATH_AIX
6170
 
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6171
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6172
 
       else
 
5487
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
5488
        # Determine the default libpath from the value encoded in an
 
5489
        # empty executable.
 
5490
        _LT_SYS_MODULE_PATH_AIX
 
5491
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5492
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
5493
      else
6173
5494
        if test "$host_cpu" = ia64; then
6174
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6175
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6176
 
          _LT_AC_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"
 
5495
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
5496
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
5497
          _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"
6177
5498
        else
6178
 
         # Determine the default libpath from the value encoded in an empty executable.
6179
 
         _LT_AC_SYS_LIBPATH_AIX
6180
 
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5499
         # Determine the default libpath from the value encoded in an
 
5500
         # empty executable.
 
5501
         _LT_SYS_MODULE_PATH_AIX
 
5502
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6181
5503
          # Warning - without using the other run time loading flags,
6182
5504
          # -berok will link without error, but may produce a broken library.
6183
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6184
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
5505
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
5506
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6185
5507
          # Exported symbols can be pulled into shared objects from archives
6186
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6187
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5508
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5509
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6188
5510
          # This is similar to how AIX traditionally builds its shared libraries.
6189
 
          _LT_AC_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'
 
5511
          _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'
6190
5512
        fi
6191
5513
      fi
6192
5514
      ;;
6193
5515
 
6194
5516
    amigaos*)
6195
 
      _LT_AC_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)'
6196
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6197
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6198
 
      # see comment about different semantics on the GNU ld section
6199
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5517
      case $host_cpu in
 
5518
      powerpc)
 
5519
            # see comment about AmigaOS4 .so support
 
5520
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5521
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
5522
        ;;
 
5523
      m68k)
 
5524
            _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)'
 
5525
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5526
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5527
        ;;
 
5528
      esac
6200
5529
      ;;
6201
5530
 
6202
5531
    bsdi[[45]]*)
6203
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
5532
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6204
5533
      ;;
6205
5534
 
6206
 
    cygwin* | mingw* | pw32*)
 
5535
    cygwin* | mingw* | pw32* | cegcc*)
6207
5536
      # When not using gcc, we currently assume that we are using
6208
5537
      # Microsoft Visual C++.
6209
5538
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6210
5539
      # no search path for DLLs.
6211
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6212
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5540
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5541
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6213
5542
      # Tell ltmain to make .lib files, not .a files.
6214
5543
      libext=lib
6215
5544
      # Tell ltmain to make .dll files, not .so files.
6216
5545
      shrext_cmds=".dll"
6217
5546
      # FIXME: Setting linknames here is a bad hack.
6218
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
5547
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6219
5548
      # The linker will automatically build a .lib file if we build a DLL.
6220
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 
5549
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6221
5550
      # FIXME: Should let the user specify the lib program.
6222
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6223
 
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6224
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5551
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5552
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
5553
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6225
5554
      ;;
6226
5555
 
6227
5556
    darwin* | rhapsody*)
6228
 
      case $host_os in
6229
 
        rhapsody* | darwin1.[[012]])
6230
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6231
 
         ;;
6232
 
       *) # Darwin 1.3 on
6233
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6234
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6235
 
         else
6236
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
6237
 
             10.[[012]])
6238
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6239
 
               ;;
6240
 
             10.*)
6241
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6242
 
               ;;
6243
 
           esac
6244
 
         fi
6245
 
         ;;
6246
 
      esac
6247
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6248
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6249
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6250
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6251
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6252
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6253
 
    if test "$GCC" = yes ; then
6254
 
        output_verbose_link_cmd='echo'
6255
 
        _LT_AC_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}"
6256
 
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6257
 
        _LT_AC_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}"
6258
 
        _LT_AC_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}"
6259
 
    else
6260
 
      case $cc_basename in
6261
 
        xlc*)
6262
 
         output_verbose_link_cmd='echo'
6263
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6264
 
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6265
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6266
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6267
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6268
 
          ;;
6269
 
       *)
6270
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6271
 
          ;;
6272
 
      esac
6273
 
    fi
 
5557
      _LT_DARWIN_LINKER_FEATURES($1)
6274
5558
      ;;
6275
5559
 
6276
5560
    dgux*)
6277
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6278
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6279
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5561
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5562
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5563
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6280
5564
      ;;
6281
5565
 
6282
5566
    freebsd1*)
6283
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5567
      _LT_TAGVAR(ld_shlibs, $1)=no
6284
5568
      ;;
6285
5569
 
6286
5570
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6288
5572
    # does not break anything, and helps significantly (at the cost of a little
6289
5573
    # extra space).
6290
5574
    freebsd2.2*)
6291
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6292
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6293
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6294
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5575
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
5576
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5577
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5578
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6295
5579
      ;;
6296
5580
 
6297
5581
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6298
5582
    freebsd2*)
6299
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6300
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6301
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6302
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5583
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5584
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5585
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5586
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6303
5587
      ;;
6304
5588
 
6305
5589
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6306
5590
    freebsd* | dragonfly*)
6307
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6308
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6309
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6310
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5591
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5592
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5593
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5594
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6311
5595
      ;;
6312
5596
 
6313
5597
    hpux9*)
6314
5598
      if test "$GCC" = yes; then
6315
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
5599
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6316
5600
      else
6317
 
        _LT_AC_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'
 
5601
        _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'
6318
5602
      fi
6319
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6320
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6321
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5603
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5604
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5605
      _LT_TAGVAR(hardcode_direct, $1)=yes
6322
5606
 
6323
5607
      # hardcode_minus_L: Not really in the search PATH,
6324
5608
      # but as the default location of the library.
6325
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6326
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5609
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5610
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6327
5611
      ;;
6328
5612
 
6329
5613
    hpux10*)
6330
5614
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6331
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5615
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6332
5616
      else
6333
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5617
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6334
5618
      fi
6335
5619
      if test "$with_gnu_ld" = no; then
6336
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6337
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6338
 
 
6339
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6340
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6341
 
 
 
5620
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5621
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
5622
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5623
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5624
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5625
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6342
5626
        # hardcode_minus_L: Not really in the search PATH,
6343
5627
        # but as the default location of the library.
6344
 
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5628
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
6345
5629
      fi
6346
5630
      ;;
6347
5631
 
6349
5633
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6350
5634
        case $host_cpu in
6351
5635
        hppa*64*)
6352
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5636
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6353
5637
          ;;
6354
5638
        ia64*)
6355
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5639
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6356
5640
          ;;
6357
5641
        *)
6358
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5642
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6359
5643
          ;;
6360
5644
        esac
6361
5645
      else
6362
5646
        case $host_cpu in
6363
5647
        hppa*64*)
6364
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5648
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6365
5649
          ;;
6366
5650
        ia64*)
6367
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5651
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6368
5652
          ;;
6369
5653
        *)
6370
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5654
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6371
5655
          ;;
6372
5656
        esac
6373
5657
      fi
6374
5658
      if test "$with_gnu_ld" = no; then
6375
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6376
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5659
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5660
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6377
5661
 
6378
5662
        case $host_cpu in
6379
5663
        hppa*64*|ia64*)
6380
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6381
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6382
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5664
          _LT_TAGVAR(hardcode_direct, $1)=no
 
5665
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6383
5666
          ;;
6384
5667
        *)
6385
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6386
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5668
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
5669
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5670
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6387
5671
 
6388
5672
          # hardcode_minus_L: Not really in the search PATH,
6389
5673
          # but as the default location of the library.
6390
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5674
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
6391
5675
          ;;
6392
5676
        esac
6393
5677
      fi
6395
5679
 
6396
5680
    irix5* | irix6* | nonstopux*)
6397
5681
      if test "$GCC" = yes; then
6398
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5682
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5683
        # Try to use the -exported_symbol ld option, if it does not
 
5684
        # work, assume that -exports_file does not work either and
 
5685
        # implicitly export all symbols.
 
5686
        save_LDFLAGS="$LDFLAGS"
 
5687
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5688
        AC_LINK_IFELSE(int foo(void) {},
 
5689
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
5690
        )
 
5691
        LDFLAGS="$save_LDFLAGS"
6399
5692
      else
6400
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6401
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5693
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
5694
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
6402
5695
      fi
6403
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6404
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6405
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5696
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5697
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5698
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5699
      _LT_TAGVAR(inherit_rpath, $1)=yes
 
5700
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6406
5701
      ;;
6407
5702
 
6408
5703
    netbsd*)
6409
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6410
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
5704
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5705
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6411
5706
      else
6412
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
5707
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6413
5708
      fi
6414
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6415
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6416
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5709
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5710
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5711
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6417
5712
      ;;
6418
5713
 
6419
5714
    newsos6)
6420
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6421
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6422
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6423
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6424
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5715
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5716
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5717
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5718
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5719
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5720
      ;;
 
5721
 
 
5722
    *nto* | *qnx*)
6425
5723
      ;;
6426
5724
 
6427
5725
    openbsd*)
6428
5726
      if test -f /usr/libexec/ld.so; then
6429
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6430
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6431
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6432
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6433
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6434
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6435
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5727
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5728
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5729
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5730
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5731
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5732
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
5733
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5734
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6436
5735
        else
6437
5736
          case $host_os in
6438
5737
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6439
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6440
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5738
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5739
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6441
5740
             ;;
6442
5741
           *)
6443
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6444
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5742
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5743
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6445
5744
             ;;
6446
5745
          esac
6447
 
        fi
 
5746
        fi
6448
5747
      else
6449
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5748
        _LT_TAGVAR(ld_shlibs, $1)=no
6450
5749
      fi
6451
5750
      ;;
6452
5751
 
6453
5752
    os2*)
6454
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6455
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6456
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6457
 
      _LT_AC_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'
6458
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
5753
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5754
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5755
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5756
      _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'
 
5757
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6459
5758
      ;;
6460
5759
 
6461
5760
    osf3*)
6462
5761
      if test "$GCC" = yes; then
6463
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6464
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5762
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5763
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6465
5764
      else
6466
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6467
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
5765
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5766
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6468
5767
      fi
6469
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6470
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5768
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5769
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5770
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6471
5771
      ;;
6472
5772
 
6473
5773
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
6474
5774
      if test "$GCC" = yes; then
6475
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6476
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6477
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5775
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5776
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5777
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6478
5778
      else
6479
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6480
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6481
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6482
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
5779
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5780
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
5781
        _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~
 
5782
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
6483
5783
 
6484
5784
        # Both c and cxx compiler support -rpath directly
6485
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
5785
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6486
5786
      fi
6487
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5787
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5788
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6488
5789
      ;;
6489
5790
 
6490
5791
    solaris*)
6491
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
5792
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6492
5793
      if test "$GCC" = yes; then
6493
5794
        wlarc='${wl}'
6494
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6495
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6496
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
5795
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5796
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5797
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6497
5798
      else
6498
 
        wlarc=''
6499
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6500
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6501
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
5799
        case `$CC -V 2>&1` in
 
5800
        *"Compilers 5.0"*)
 
5801
          wlarc=''
 
5802
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5803
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5804
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
5805
          ;;
 
5806
        *)
 
5807
          wlarc='${wl}'
 
5808
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5809
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5810
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
5811
          ;;
 
5812
        esac
6502
5813
      fi
6503
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6504
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5814
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5815
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6505
5816
      case $host_os in
6506
5817
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6507
5818
      *)
6508
5819
        # The compiler driver will combine and reorder linker options,
6509
5820
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
6510
5821
        # but is careful enough not to reorder.
6511
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5822
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6512
5823
        if test "$GCC" = yes; then
6513
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
5824
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6514
5825
        else
6515
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
5826
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6516
5827
        fi
6517
5828
        ;;
6518
5829
      esac
6519
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5830
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6520
5831
      ;;
6521
5832
 
6522
5833
    sunos4*)
6523
5834
      if test "x$host_vendor" = xsequent; then
6524
5835
        # Use $CC to link under sequent, because it throws in some extra .o
6525
5836
        # files that make .init and .fini sections work.
6526
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5837
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6527
5838
      else
6528
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
5839
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6529
5840
      fi
6530
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6531
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6532
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6533
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5841
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5842
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5843
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5844
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6534
5845
      ;;
6535
5846
 
6536
5847
    sysv4)
6537
5848
      case $host_vendor in
6538
5849
        sni)
6539
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6540
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
5850
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5851
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6541
5852
        ;;
6542
5853
        siemens)
6543
5854
          ## LD is ld it makes a PLAMLIB
6544
5855
          ## CC just makes a GrossModule.
6545
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6546
 
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6547
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5856
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
5857
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
5858
          _LT_TAGVAR(hardcode_direct, $1)=no
6548
5859
        ;;
6549
5860
        motorola)
6550
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6551
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
5861
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5862
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6552
5863
        ;;
6553
5864
      esac
6554
5865
      runpath_var='LD_RUN_PATH'
6555
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5866
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6556
5867
      ;;
6557
5868
 
6558
5869
    sysv4.3*)
6559
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6560
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6561
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
5870
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5871
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5872
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6562
5873
      ;;
6563
5874
 
6564
5875
    sysv4*MP*)
6565
5876
      if test -d /usr/nec; then
6566
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6567
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5877
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5878
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6568
5879
        runpath_var=LD_RUN_PATH
6569
5880
        hardcode_runpath_var=yes
6570
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5881
        _LT_TAGVAR(ld_shlibs, $1)=yes
6571
5882
      fi
6572
5883
      ;;
6573
5884
 
6574
5885
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6575
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6576
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6577
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5886
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5887
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5888
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6578
5889
      runpath_var='LD_RUN_PATH'
6579
5890
 
6580
5891
      if test "$GCC" = yes; then
6581
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6582
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5892
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5893
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6583
5894
      else
6584
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6585
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5895
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5896
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6586
5897
      fi
6587
5898
      ;;
6588
5899
 
6593
5904
      # ever link correctly.  If we're not using GNU ld we use -z text
6594
5905
      # though, which does catch some bad symbols but isn't as heavy-handed
6595
5906
      # as -z defs.
6596
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6597
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6598
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6599
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6600
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6601
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6602
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6603
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
5907
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5908
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
5909
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5910
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5911
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
5912
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5913
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5914
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6604
5915
      runpath_var='LD_RUN_PATH'
6605
5916
 
6606
5917
      if test "$GCC" = yes; then
6607
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6608
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5918
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5919
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6609
5920
      else
6610
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6611
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5921
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5922
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6612
5923
      fi
6613
5924
      ;;
6614
5925
 
6615
5926
    uts4*)
6616
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6617
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6618
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5927
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5928
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5929
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6619
5930
      ;;
6620
5931
 
6621
5932
    *)
6622
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5933
      _LT_TAGVAR(ld_shlibs, $1)=no
6623
5934
      ;;
6624
5935
    esac
 
5936
 
 
5937
    if test x$host_vendor = xsni; then
 
5938
      case $host in
 
5939
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5940
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
 
5941
        ;;
 
5942
      esac
 
5943
    fi
6625
5944
  fi
6626
5945
])
6627
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6628
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
5946
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
5947
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
5948
 
 
5949
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 
5950
 
 
5951
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 
5952
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 
5953
_LT_DECL([], [extract_expsyms_cmds], [2],
 
5954
    [The commands to extract the exported symbol list from a shared archive])
6629
5955
 
6630
5956
#
6631
5957
# Do we need to explicitly link libc?
6632
5958
#
6633
 
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 
5959
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6634
5960
x|xyes)
6635
5961
  # Assume -lc should be added
6636
 
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5962
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6637
5963
 
6638
5964
  if test "$enable_shared" = yes && test "$GCC" = yes; then
6639
 
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
 
5965
    case $_LT_TAGVAR(archive_cmds, $1) in
6640
5966
    *'~'*)
6641
5967
      # FIXME: we may have to deal with multi-command sequences.
6642
5968
      ;;
6645
5971
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
6646
5972
      # to ld, don't add -lc before -lgcc.
6647
5973
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6648
 
      $rm conftest*
 
5974
      $RM conftest*
6649
5975
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6650
5976
 
6651
5977
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6653
5979
        lib=conftest
6654
5980
        libobjs=conftest.$ac_objext
6655
5981
        deplibs=
6656
 
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6657
 
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
5982
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
5983
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6658
5984
        compiler_flags=-v
6659
5985
        linker_flags=-v
6660
5986
        verstring=
6661
5987
        output_objdir=.
6662
5988
        libname=conftest
6663
 
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6664
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6665
 
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 
5989
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
5990
        _LT_TAGVAR(allow_undefined_flag, $1)=
 
5991
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6666
5992
        then
6667
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5993
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6668
5994
        else
6669
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5995
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6670
5996
        fi
6671
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
5997
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6672
5998
      else
6673
5999
        cat conftest.err 1>&5
6674
6000
      fi
6675
 
      $rm conftest*
6676
 
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 
6001
      $RM conftest*
 
6002
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6677
6003
      ;;
6678
6004
    esac
6679
6005
  fi
6680
6006
  ;;
6681
6007
esac
6682
 
])# AC_LIBTOOL_PROG_LD_SHLIBS
6683
 
 
6684
 
 
6685
 
# _LT_AC_FILE_LTDLL_C
6686
 
# -------------------
6687
 
# Be careful that the start marker always follows a newline.
6688
 
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6689
 
# /* ltdll.c starts here */
6690
 
# #define WIN32_LEAN_AND_MEAN
6691
 
# #include <windows.h>
6692
 
# #undef WIN32_LEAN_AND_MEAN
6693
 
# #include <stdio.h>
6694
 
#
6695
 
# #ifndef __CYGWIN__
6696
 
# #  ifdef __CYGWIN32__
6697
 
# #    define __CYGWIN__ __CYGWIN32__
6698
 
# #  endif
6699
 
# #endif
6700
 
#
6701
 
# #ifdef __cplusplus
6702
 
# extern "C" {
6703
 
# #endif
6704
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6705
 
# #ifdef __cplusplus
6706
 
# }
6707
 
# #endif
6708
 
#
6709
 
# #ifdef __CYGWIN__
6710
 
# #include <cygwin/cygwin_dll.h>
6711
 
# DECLARE_CYGWIN_DLL( DllMain );
6712
 
# #endif
6713
 
# HINSTANCE __hDllInstance_base;
6714
 
#
6715
 
# BOOL APIENTRY
6716
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6717
 
# {
6718
 
#   __hDllInstance_base = hInst;
6719
 
#   return TRUE;
6720
 
# }
6721
 
# /* ltdll.c ends here */
6722
 
])# _LT_AC_FILE_LTDLL_C
6723
 
 
6724
 
 
6725
 
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
6008
 
 
6009
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 
6010
    [Whether or not to add -lc for building shared libraries])
 
6011
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 
6012
    [enable_shared_with_static_runtimes], [0],
 
6013
    [Whether or not to disallow shared libs when runtime libs are static])
 
6014
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 
6015
    [Compiler flag to allow reflexive dlopens])
 
6016
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
 
6017
    [Compiler flag to generate shared objects directly from archives])
 
6018
_LT_TAGDECL([], [compiler_needs_object], [1],
 
6019
    [Whether the compiler copes with passing no objects directly])
 
6020
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 
6021
    [Create an old-style archive from a shared archive])
 
6022
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 
6023
    [Create a temporary old-style archive to link instead of a shared archive])
 
6024
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 
6025
_LT_TAGDECL([], [archive_expsym_cmds], [2])
 
6026
_LT_TAGDECL([], [module_cmds], [2],
 
6027
    [Commands used to build a loadable module if different from building
 
6028
    a shared archive.])
 
6029
_LT_TAGDECL([], [module_expsym_cmds], [2])
 
6030
_LT_TAGDECL([], [with_gnu_ld], [1],
 
6031
    [Whether we are building with GNU ld or not])
 
6032
_LT_TAGDECL([], [allow_undefined_flag], [1],
 
6033
    [Flag that allows shared libraries with undefined symbols to be built])
 
6034
_LT_TAGDECL([], [no_undefined_flag], [1],
 
6035
    [Flag that enforces no undefined symbols])
 
6036
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 
6037
    [Flag to hardcode $libdir into a binary during linking.
 
6038
    This must work even if $libdir does not exist])
 
6039
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
 
6040
    [[If ld is used when linking, flag to hardcode $libdir into a binary
 
6041
    during linking.  This must work even if $libdir does not exist]])
 
6042
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
 
6043
    [Whether we need a single "-rpath" flag with a separated argument])
 
6044
_LT_TAGDECL([], [hardcode_direct], [0],
 
6045
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6046
    DIR into the resulting binary])
 
6047
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
 
6048
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6049
    DIR into the resulting binary and the resulting library dependency is
 
6050
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
 
6051
    library is relocated])
 
6052
_LT_TAGDECL([], [hardcode_minus_L], [0],
 
6053
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
6054
    into the resulting binary])
 
6055
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 
6056
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
6057
    into the resulting binary])
 
6058
_LT_TAGDECL([], [hardcode_automatic], [0],
 
6059
    [Set to "yes" if building a shared library automatically hardcodes DIR
 
6060
    into the library and all subsequent libraries and executables linked
 
6061
    against it])
 
6062
_LT_TAGDECL([], [inherit_rpath], [0],
 
6063
    [Set to yes if linker adds runtime paths of dependent libraries
 
6064
    to runtime path list])
 
6065
_LT_TAGDECL([], [link_all_deplibs], [0],
 
6066
    [Whether libtool must link a program against all its dependency libraries])
 
6067
_LT_TAGDECL([], [fix_srcfile_path], [1],
 
6068
    [Fix the shell variable $srcfile for the compiler])
 
6069
_LT_TAGDECL([], [always_export_symbols], [0],
 
6070
    [Set to "yes" if exported symbols are required])
 
6071
_LT_TAGDECL([], [export_symbols_cmds], [2],
 
6072
    [The commands to list exported symbols])
 
6073
_LT_TAGDECL([], [exclude_expsyms], [1],
 
6074
    [Symbols that should not be listed in the preloaded symbols])
 
6075
_LT_TAGDECL([], [include_expsyms], [1],
 
6076
    [Symbols that must always be exported])
 
6077
_LT_TAGDECL([], [prelink_cmds], [2],
 
6078
    [Commands necessary for linking programs (against libraries) with templates])
 
6079
_LT_TAGDECL([], [file_list_spec], [1],
 
6080
    [Specify filename containing input files])
 
6081
dnl FIXME: Not yet implemented
 
6082
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 
6083
dnl    [Compiler flag to generate thread safe objects])
 
6084
])# _LT_LINKER_SHLIBS
 
6085
 
 
6086
 
 
6087
# _LT_LANG_C_CONFIG([TAG])
 
6088
# ------------------------
 
6089
# Ensure that the configuration variables for a C compiler are suitably
 
6090
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6091
# the compiler configuration to `libtool'.
 
6092
m4_defun([_LT_LANG_C_CONFIG],
 
6093
[m4_require([_LT_DECL_EGREP])dnl
 
6094
lt_save_CC="$CC"
 
6095
AC_LANG_PUSH(C)
 
6096
 
 
6097
# Source file extension for C test sources.
 
6098
ac_ext=c
 
6099
 
 
6100
# Object file extension for compiled C test sources.
 
6101
objext=o
 
6102
_LT_TAGVAR(objext, $1)=$objext
 
6103
 
 
6104
# Code to be used in simple compile tests
 
6105
lt_simple_compile_test_code="int some_variable = 0;"
 
6106
 
 
6107
# Code to be used in simple link tests
 
6108
lt_simple_link_test_code='int main(){return(0);}'
 
6109
 
 
6110
_LT_TAG_COMPILER
 
6111
# Save the default compiler, since it gets overwritten when the other
 
6112
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
6113
compiler_DEFAULT=$CC
 
6114
 
 
6115
# save warnings/boilerplate of simple test code
 
6116
_LT_COMPILER_BOILERPLATE
 
6117
_LT_LINKER_BOILERPLATE
 
6118
 
 
6119
if test -n "$compiler"; then
 
6120
  _LT_COMPILER_NO_RTTI($1)
 
6121
  _LT_COMPILER_PIC($1)
 
6122
  _LT_COMPILER_C_O($1)
 
6123
  _LT_COMPILER_FILE_LOCKS($1)
 
6124
  _LT_LINKER_SHLIBS($1)
 
6125
  _LT_SYS_DYNAMIC_LINKER($1)
 
6126
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
6127
  LT_SYS_DLOPEN_SELF
 
6128
  _LT_CMD_STRIPLIB
 
6129
 
 
6130
  # Report which library types will actually be built
 
6131
  AC_MSG_CHECKING([if libtool supports shared libraries])
 
6132
  AC_MSG_RESULT([$can_build_shared])
 
6133
 
 
6134
  AC_MSG_CHECKING([whether to build shared libraries])
 
6135
  test "$can_build_shared" = "no" && enable_shared=no
 
6136
 
 
6137
  # On AIX, shared libraries and static libraries use the same namespace, and
 
6138
  # are all built from PIC.
 
6139
  case $host_os in
 
6140
  aix3*)
 
6141
    test "$enable_shared" = yes && enable_static=no
 
6142
    if test -n "$RANLIB"; then
 
6143
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6144
      postinstall_cmds='$RANLIB $lib'
 
6145
    fi
 
6146
    ;;
 
6147
 
 
6148
  aix[[4-9]]*)
 
6149
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6150
      test "$enable_shared" = yes && enable_static=no
 
6151
    fi
 
6152
    ;;
 
6153
  esac
 
6154
  AC_MSG_RESULT([$enable_shared])
 
6155
 
 
6156
  AC_MSG_CHECKING([whether to build static libraries])
 
6157
  # Make sure either enable_shared or enable_static is yes.
 
6158
  test "$enable_shared" = yes || enable_static=yes
 
6159
  AC_MSG_RESULT([$enable_static])
 
6160
 
 
6161
  _LT_CONFIG($1)
 
6162
fi
 
6163
AC_LANG_POP
 
6164
CC="$lt_save_CC"
 
6165
])# _LT_LANG_C_CONFIG
 
6166
 
 
6167
 
 
6168
# _LT_PROG_CXX
 
6169
# ------------
 
6170
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
 
6171
# compiler, we have our own version here.
 
6172
m4_defun([_LT_PROG_CXX],
 
6173
[
 
6174
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
 
6175
AC_PROG_CXX
 
6176
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6177
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6178
    (test "X$CXX" != "Xg++"))) ; then
 
6179
  AC_PROG_CXXCPP
 
6180
else
 
6181
  _lt_caught_CXX_error=yes
 
6182
fi
 
6183
popdef([AC_MSG_ERROR])
 
6184
])# _LT_PROG_CXX
 
6185
 
 
6186
dnl aclocal-1.4 backwards compatibility:
 
6187
dnl AC_DEFUN([_LT_PROG_CXX], [])
 
6188
 
 
6189
 
 
6190
# _LT_LANG_CXX_CONFIG([TAG])
 
6191
# --------------------------
 
6192
# Ensure that the configuration variables for a C++ compiler are suitably
 
6193
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6194
# the compiler configuration to `libtool'.
 
6195
m4_defun([_LT_LANG_CXX_CONFIG],
 
6196
[AC_REQUIRE([_LT_PROG_CXX])dnl
 
6197
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6198
m4_require([_LT_DECL_EGREP])dnl
 
6199
 
 
6200
AC_LANG_PUSH(C++)
 
6201
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6202
_LT_TAGVAR(allow_undefined_flag, $1)=
 
6203
_LT_TAGVAR(always_export_symbols, $1)=no
 
6204
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
6205
_LT_TAGVAR(compiler_needs_object, $1)=no
 
6206
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6207
_LT_TAGVAR(hardcode_direct, $1)=no
 
6208
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6209
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6210
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6211
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6212
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
6213
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6214
_LT_TAGVAR(hardcode_automatic, $1)=no
 
6215
_LT_TAGVAR(inherit_rpath, $1)=no
 
6216
_LT_TAGVAR(module_cmds, $1)=
 
6217
_LT_TAGVAR(module_expsym_cmds, $1)=
 
6218
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
6219
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6220
_LT_TAGVAR(no_undefined_flag, $1)=
 
6221
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6222
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6223
 
 
6224
# Source file extension for C++ test sources.
 
6225
ac_ext=cpp
 
6226
 
 
6227
# Object file extension for compiled C++ test sources.
 
6228
objext=o
 
6229
_LT_TAGVAR(objext, $1)=$objext
 
6230
 
 
6231
# No sense in running all these tests if we already determined that
 
6232
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
6233
# are currently assumed to apply to all compilers on this platform,
 
6234
# and will be corrupted by setting them based on a non-working compiler.
 
6235
if test "$_lt_caught_CXX_error" != yes; then
 
6236
  # Code to be used in simple compile tests
 
6237
  lt_simple_compile_test_code="int some_variable = 0;"
 
6238
 
 
6239
  # Code to be used in simple link tests
 
6240
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
6241
 
 
6242
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6243
  _LT_TAG_COMPILER
 
6244
 
 
6245
  # save warnings/boilerplate of simple test code
 
6246
  _LT_COMPILER_BOILERPLATE
 
6247
  _LT_LINKER_BOILERPLATE
 
6248
 
 
6249
  # Allow CC to be a program name with arguments.
 
6250
  lt_save_CC=$CC
 
6251
  lt_save_LD=$LD
 
6252
  lt_save_GCC=$GCC
 
6253
  GCC=$GXX
 
6254
  lt_save_with_gnu_ld=$with_gnu_ld
 
6255
  lt_save_path_LD=$lt_cv_path_LD
 
6256
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
6257
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
6258
  else
 
6259
    $as_unset lt_cv_prog_gnu_ld
 
6260
  fi
 
6261
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
6262
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
6263
  else
 
6264
    $as_unset lt_cv_path_LD
 
6265
  fi
 
6266
  test -z "${LDCXX+set}" || LD=$LDCXX
 
6267
  CC=${CXX-"c++"}
 
6268
  compiler=$CC
 
6269
  _LT_TAGVAR(compiler, $1)=$CC
 
6270
  _LT_CC_BASENAME([$compiler])
 
6271
 
 
6272
  if test -n "$compiler"; then
 
6273
    # We don't want -fno-exception when compiling C++ code, so set the
 
6274
    # no_builtin_flag separately
 
6275
    if test "$GXX" = yes; then
 
6276
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
6277
    else
 
6278
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
6279
    fi
 
6280
 
 
6281
    if test "$GXX" = yes; then
 
6282
      # Set up default GNU C++ configuration
 
6283
 
 
6284
      LT_PATH_LD
 
6285
 
 
6286
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
6287
      # archiving commands below assume that GNU ld is being used.
 
6288
      if test "$with_gnu_ld" = yes; then
 
6289
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6290
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6291
 
 
6292
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6293
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6294
 
 
6295
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
6296
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
6297
        #     investigate it a little bit more. (MM)
 
6298
        wlarc='${wl}'
 
6299
 
 
6300
        # ancient GNU ld didn't support --whole-archive et. al.
 
6301
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
6302
          $GREP 'no-whole-archive' > /dev/null; then
 
6303
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6304
        else
 
6305
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6306
        fi
 
6307
      else
 
6308
        with_gnu_ld=no
 
6309
        wlarc=
 
6310
 
 
6311
        # A generic and very simple default shared library creation
 
6312
        # command for GNU C++ for the case where it uses the native
 
6313
        # linker, instead of GNU ld.  If possible, this setting should
 
6314
        # overridden to take advantage of the native linker features on
 
6315
        # the platform it is being used on.
 
6316
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
6317
      fi
 
6318
 
 
6319
      # Commands to make compiler produce verbose output that lists
 
6320
      # what "hidden" libraries, object files and flags are used when
 
6321
      # linking a shared library.
 
6322
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6323
 
 
6324
    else
 
6325
      GXX=no
 
6326
      with_gnu_ld=no
 
6327
      wlarc=
 
6328
    fi
 
6329
 
 
6330
    # PORTME: fill in a description of your system's C++ link characteristics
 
6331
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
6332
    _LT_TAGVAR(ld_shlibs, $1)=yes
 
6333
    case $host_os in
 
6334
      aix3*)
 
6335
        # FIXME: insert proper C++ library support
 
6336
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6337
        ;;
 
6338
      aix[[4-9]]*)
 
6339
        if test "$host_cpu" = ia64; then
 
6340
          # On IA64, the linker does run time linking by default, so we don't
 
6341
          # have to do anything special.
 
6342
          aix_use_runtimelinking=no
 
6343
          exp_sym_flag='-Bexport'
 
6344
          no_entry_flag=""
 
6345
        else
 
6346
          aix_use_runtimelinking=no
 
6347
 
 
6348
          # Test if we are trying to use run time linking or normal
 
6349
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6350
          # need to do runtime linking.
 
6351
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
6352
            for ld_flag in $LDFLAGS; do
 
6353
              case $ld_flag in
 
6354
              *-brtl*)
 
6355
                aix_use_runtimelinking=yes
 
6356
                break
 
6357
                ;;
 
6358
              esac
 
6359
            done
 
6360
            ;;
 
6361
          esac
 
6362
 
 
6363
          exp_sym_flag='-bexport'
 
6364
          no_entry_flag='-bnoentry'
 
6365
        fi
 
6366
 
 
6367
        # When large executables or shared objects are built, AIX ld can
 
6368
        # have problems creating the table of contents.  If linking a library
 
6369
        # or program results in "error TOC overflow" add -mminimal-toc to
 
6370
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6371
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6372
 
 
6373
        _LT_TAGVAR(archive_cmds, $1)=''
 
6374
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6375
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6376
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6377
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6378
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
6379
 
 
6380
        if test "$GXX" = yes; then
 
6381
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
6382
          # We only want to do this on AIX 4.2 and lower, the check
 
6383
          # below for broken collect2 doesn't work under 4.3+
 
6384
          collect2name=`${CC} -print-prog-name=collect2`
 
6385
          if test -f "$collect2name" &&
 
6386
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
6387
          then
 
6388
            # We have reworked collect2
 
6389
            :
 
6390
          else
 
6391
            # We have old collect2
 
6392
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
6393
            # It fails to find uninstalled libraries when the uninstalled
 
6394
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
6395
            # to unsupported forces relinking
 
6396
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6397
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6398
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6399
          fi
 
6400
          esac
 
6401
          shared_flag='-shared'
 
6402
          if test "$aix_use_runtimelinking" = yes; then
 
6403
            shared_flag="$shared_flag "'${wl}-G'
 
6404
          fi
 
6405
        else
 
6406
          # not using gcc
 
6407
          if test "$host_cpu" = ia64; then
 
6408
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6409
          # chokes on -Wl,-G. The following line is correct:
 
6410
          shared_flag='-G'
 
6411
          else
 
6412
            if test "$aix_use_runtimelinking" = yes; then
 
6413
              shared_flag='${wl}-G'
 
6414
            else
 
6415
              shared_flag='${wl}-bM:SRE'
 
6416
            fi
 
6417
          fi
 
6418
        fi
 
6419
 
 
6420
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 
6421
        # It seems that -bexpall does not export symbols beginning with
 
6422
        # underscore (_), so it is better to generate a list of symbols to
 
6423
        # export.
 
6424
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
6425
        if test "$aix_use_runtimelinking" = yes; then
 
6426
          # Warning - without using the other runtime loading flags (-brtl),
 
6427
          # -berok will link without error, but may produce a broken library.
 
6428
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
6429
          # Determine the default libpath from the value encoded in an empty
 
6430
          # executable.
 
6431
          _LT_SYS_MODULE_PATH_AIX
 
6432
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6433
 
 
6434
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6435
        else
 
6436
          if test "$host_cpu" = ia64; then
 
6437
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
6438
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
6439
            _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"
 
6440
          else
 
6441
            # Determine the default libpath from the value encoded in an
 
6442
            # empty executable.
 
6443
            _LT_SYS_MODULE_PATH_AIX
 
6444
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6445
            # Warning - without using the other run time loading flags,
 
6446
            # -berok will link without error, but may produce a broken library.
 
6447
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
6448
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
6449
            # Exported symbols can be pulled into shared objects from archives
 
6450
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6451
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6452
            # This is similar to how AIX traditionally builds its shared
 
6453
            # libraries.
 
6454
            _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'
 
6455
          fi
 
6456
        fi
 
6457
        ;;
 
6458
 
 
6459
      beos*)
 
6460
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
6461
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6462
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6463
          # support --undefined.  This deserves some investigation.  FIXME
 
6464
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6465
        else
 
6466
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6467
        fi
 
6468
        ;;
 
6469
 
 
6470
      chorus*)
 
6471
        case $cc_basename in
 
6472
          *)
 
6473
          # FIXME: insert proper C++ library support
 
6474
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6475
          ;;
 
6476
        esac
 
6477
        ;;
 
6478
 
 
6479
      cygwin* | mingw* | pw32* | cegcc*)
 
6480
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6481
        # as there is no search path for DLLs.
 
6482
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6483
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6484
        _LT_TAGVAR(always_export_symbols, $1)=no
 
6485
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6486
 
 
6487
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6488
          _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'
 
6489
          # If the export-symbols file already is a .def file (1st line
 
6490
          # is EXPORTS), use it as is; otherwise, prepend...
 
6491
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6492
            cp $export_symbols $output_objdir/$soname.def;
 
6493
          else
 
6494
            echo EXPORTS > $output_objdir/$soname.def;
 
6495
            cat $export_symbols >> $output_objdir/$soname.def;
 
6496
          fi~
 
6497
          $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'
 
6498
        else
 
6499
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6500
        fi
 
6501
        ;;
 
6502
      darwin* | rhapsody*)
 
6503
        _LT_DARWIN_LINKER_FEATURES($1)
 
6504
        ;;
 
6505
 
 
6506
      dgux*)
 
6507
        case $cc_basename in
 
6508
          ec++*)
 
6509
            # FIXME: insert proper C++ library support
 
6510
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6511
            ;;
 
6512
          ghcx*)
 
6513
            # Green Hills C++ Compiler
 
6514
            # FIXME: insert proper C++ library support
 
6515
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6516
            ;;
 
6517
          *)
 
6518
            # FIXME: insert proper C++ library support
 
6519
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6520
            ;;
 
6521
        esac
 
6522
        ;;
 
6523
 
 
6524
      freebsd[[12]]*)
 
6525
        # C++ shared libraries reported to be fairly broken before
 
6526
        # switch to ELF
 
6527
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6528
        ;;
 
6529
 
 
6530
      freebsd-elf*)
 
6531
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6532
        ;;
 
6533
 
 
6534
      freebsd* | dragonfly*)
 
6535
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
6536
        # conventions
 
6537
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6538
        ;;
 
6539
 
 
6540
      gnu*)
 
6541
        ;;
 
6542
 
 
6543
      hpux9*)
 
6544
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6545
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6546
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6547
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6548
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
6549
                                             # but as the default
 
6550
                                             # location of the library.
 
6551
 
 
6552
        case $cc_basename in
 
6553
          CC*)
 
6554
            # FIXME: insert proper C++ library support
 
6555
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6556
            ;;
 
6557
          aCC*)
 
6558
            _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'
 
6559
            # Commands to make compiler produce verbose output that lists
 
6560
            # what "hidden" libraries, object files and flags are used when
 
6561
            # linking a shared library.
 
6562
            #
 
6563
            # There doesn't appear to be a way to prevent this compiler from
 
6564
            # explicitly linking system object files so we need to strip them
 
6565
            # from the output so that they don't get included in the library
 
6566
            # dependencies.
 
6567
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6568
            ;;
 
6569
          *)
 
6570
            if test "$GXX" = yes; then
 
6571
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
6572
            else
 
6573
              # FIXME: insert proper C++ library support
 
6574
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6575
            fi
 
6576
            ;;
 
6577
        esac
 
6578
        ;;
 
6579
 
 
6580
      hpux10*|hpux11*)
 
6581
        if test $with_gnu_ld = no; then
 
6582
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6583
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6584
 
 
6585
          case $host_cpu in
 
6586
            hppa*64*|ia64*)
 
6587
              ;;
 
6588
            *)
 
6589
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6590
              ;;
 
6591
          esac
 
6592
        fi
 
6593
        case $host_cpu in
 
6594
          hppa*64*|ia64*)
 
6595
            _LT_TAGVAR(hardcode_direct, $1)=no
 
6596
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6597
            ;;
 
6598
          *)
 
6599
            _LT_TAGVAR(hardcode_direct, $1)=yes
 
6600
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6601
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
6602
                                                 # but as the default
 
6603
                                                 # location of the library.
 
6604
            ;;
 
6605
        esac
 
6606
 
 
6607
        case $cc_basename in
 
6608
          CC*)
 
6609
            # FIXME: insert proper C++ library support
 
6610
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6611
            ;;
 
6612
          aCC*)
 
6613
            case $host_cpu in
 
6614
              hppa*64*)
 
6615
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6616
                ;;
 
6617
              ia64*)
 
6618
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6619
                ;;
 
6620
              *)
 
6621
                _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'
 
6622
                ;;
 
6623
            esac
 
6624
            # Commands to make compiler produce verbose output that lists
 
6625
            # what "hidden" libraries, object files and flags are used when
 
6626
            # linking a shared library.
 
6627
            #
 
6628
            # There doesn't appear to be a way to prevent this compiler from
 
6629
            # explicitly linking system object files so we need to strip them
 
6630
            # from the output so that they don't get included in the library
 
6631
            # dependencies.
 
6632
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6633
            ;;
 
6634
          *)
 
6635
            if test "$GXX" = yes; then
 
6636
              if test $with_gnu_ld = no; then
 
6637
                case $host_cpu in
 
6638
                  hppa*64*)
 
6639
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6640
                    ;;
 
6641
                  ia64*)
 
6642
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6643
                    ;;
 
6644
                  *)
 
6645
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6646
                    ;;
 
6647
                esac
 
6648
              fi
 
6649
            else
 
6650
              # FIXME: insert proper C++ library support
 
6651
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6652
            fi
 
6653
            ;;
 
6654
        esac
 
6655
        ;;
 
6656
 
 
6657
      interix[[3-9]]*)
 
6658
        _LT_TAGVAR(hardcode_direct, $1)=no
 
6659
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6660
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6661
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6662
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6663
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6664
        # default) and relocated if they conflict, which is a slow very memory
 
6665
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
6666
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6667
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6668
        _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'
 
6669
        _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'
 
6670
        ;;
 
6671
      irix5* | irix6*)
 
6672
        case $cc_basename in
 
6673
          CC*)
 
6674
            # SGI C++
 
6675
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
6676
 
 
6677
            # Archives containing C++ object files must be created using
 
6678
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
6679
            # necessary to make sure instantiated templates are included
 
6680
            # in the archive.
 
6681
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
6682
            ;;
 
6683
          *)
 
6684
            if test "$GXX" = yes; then
 
6685
              if test "$with_gnu_ld" = no; then
 
6686
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6687
              else
 
6688
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
6689
              fi
 
6690
            fi
 
6691
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6692
            ;;
 
6693
        esac
 
6694
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6695
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6696
        _LT_TAGVAR(inherit_rpath, $1)=yes
 
6697
        ;;
 
6698
 
 
6699
      linux* | k*bsd*-gnu)
 
6700
        case $cc_basename in
 
6701
          KCC*)
 
6702
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
6703
 
 
6704
            # KCC will only create a shared library if the output file
 
6705
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
6706
            # to its proper name (with version) after linking.
 
6707
            _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'
 
6708
            _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'
 
6709
            # Commands to make compiler produce verbose output that lists
 
6710
            # what "hidden" libraries, object files and flags are used when
 
6711
            # linking a shared library.
 
6712
            #
 
6713
            # There doesn't appear to be a way to prevent this compiler from
 
6714
            # explicitly linking system object files so we need to strip them
 
6715
            # from the output so that they don't get included in the library
 
6716
            # dependencies.
 
6717
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6718
 
 
6719
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6720
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6721
 
 
6722
            # Archives containing C++ object files must be created using
 
6723
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
6724
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
6725
            ;;
 
6726
          icpc* | ecpc* )
 
6727
            # Intel C++
 
6728
            with_gnu_ld=yes
 
6729
            # version 8.0 and above of icpc choke on multiply defined symbols
 
6730
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
6731
            # earlier do not add the objects themselves.
 
6732
            case `$CC -V 2>&1` in
 
6733
              *"Version 7."*)
 
6734
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6735
                _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'
 
6736
                ;;
 
6737
              *)  # Version 8.0 or newer
 
6738
                tmp_idyn=
 
6739
                case $host_cpu in
 
6740
                  ia64*) tmp_idyn=' -i_dynamic';;
 
6741
                esac
 
6742
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6743
                _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'
 
6744
                ;;
 
6745
            esac
 
6746
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6747
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6748
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6749
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6750
            ;;
 
6751
          pgCC* | pgcpp*)
 
6752
            # Portland Group C++ compiler
 
6753
            case `$CC -V` in
 
6754
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
6755
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 
6756
                rm -rf $tpldir~
 
6757
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
6758
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
6759
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 
6760
                rm -rf $tpldir~
 
6761
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
6762
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
6763
                $RANLIB $oldlib'
 
6764
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 
6765
                rm -rf $tpldir~
 
6766
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
6767
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6768
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 
6769
                rm -rf $tpldir~
 
6770
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
6771
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
6772
              ;;
 
6773
            *) # Version 6 will use weak symbols
 
6774
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6775
              _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'
 
6776
              ;;
 
6777
            esac
 
6778
 
 
6779
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
6780
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6781
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
6782
            ;;
 
6783
          cxx*)
 
6784
            # Compaq C++
 
6785
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6786
            _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'
 
6787
 
 
6788
            runpath_var=LD_RUN_PATH
 
6789
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6790
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6791
 
 
6792
            # Commands to make compiler produce verbose output that lists
 
6793
            # what "hidden" libraries, object files and flags are used when
 
6794
            # linking a shared library.
 
6795
            #
 
6796
            # There doesn't appear to be a way to prevent this compiler from
 
6797
            # explicitly linking system object files so we need to strip them
 
6798
            # from the output so that they don't get included in the library
 
6799
            # dependencies.
 
6800
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6801
            ;;
 
6802
          xl*)
 
6803
            # IBM XL 8.0 on PPC, with GNU ld
 
6804
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6805
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6806
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6807
            if test "x$supports_anon_versioning" = xyes; then
 
6808
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
6809
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6810
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
6811
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6812
            fi
 
6813
            ;;
 
6814
          *)
 
6815
            case `$CC -V 2>&1 | sed 5q` in
 
6816
            *Sun\ C*)
 
6817
              # Sun C++ 5.9
 
6818
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
6819
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6820
              _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'
 
6821
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6822
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
6823
              _LT_TAGVAR(compiler_needs_object, $1)=yes
 
6824
 
 
6825
              # Not sure whether something based on
 
6826
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
6827
              # would be better.
 
6828
              output_verbose_link_cmd='echo'
 
6829
 
 
6830
              # Archives containing C++ object files must be created using
 
6831
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
6832
              # necessary to make sure instantiated templates are included
 
6833
              # in the archive.
 
6834
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
6835
              ;;
 
6836
            esac
 
6837
            ;;
 
6838
        esac
 
6839
        ;;
 
6840
 
 
6841
      lynxos*)
 
6842
        # FIXME: insert proper C++ library support
 
6843
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6844
        ;;
 
6845
 
 
6846
      m88k*)
 
6847
        # FIXME: insert proper C++ library support
 
6848
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6849
        ;;
 
6850
 
 
6851
      mvs*)
 
6852
        case $cc_basename in
 
6853
          cxx*)
 
6854
            # FIXME: insert proper C++ library support
 
6855
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6856
            ;;
 
6857
          *)
 
6858
            # FIXME: insert proper C++ library support
 
6859
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6860
            ;;
 
6861
        esac
 
6862
        ;;
 
6863
 
 
6864
      netbsd*)
 
6865
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
6866
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
6867
          wlarc=
 
6868
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6869
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
6870
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6871
        fi
 
6872
        # Workaround some broken pre-1.5 toolchains
 
6873
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
6874
        ;;
 
6875
 
 
6876
      *nto* | *qnx*)
 
6877
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6878
        ;;
 
6879
 
 
6880
      openbsd2*)
 
6881
        # C++ shared libraries are fairly broken
 
6882
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6883
        ;;
 
6884
 
 
6885
      openbsd*)
 
6886
        if test -f /usr/libexec/ld.so; then
 
6887
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
6888
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6889
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6890
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
6891
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6892
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6893
            _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'
 
6894
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6895
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6896
          fi
 
6897
          output_verbose_link_cmd=echo
 
6898
        else
 
6899
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6900
        fi
 
6901
        ;;
 
6902
 
 
6903
      osf3* | osf4* | osf5*)
 
6904
        case $cc_basename in
 
6905
          KCC*)
 
6906
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
6907
 
 
6908
            # KCC will only create a shared library if the output file
 
6909
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
6910
            # to its proper name (with version) after linking.
 
6911
            _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'
 
6912
 
 
6913
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6914
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6915
 
 
6916
            # Archives containing C++ object files must be created using
 
6917
            # the KAI C++ compiler.
 
6918
            case $host in
 
6919
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
6920
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 
6921
            esac
 
6922
            ;;
 
6923
          RCC*)
 
6924
            # Rational C++ 2.4.1
 
6925
            # FIXME: insert proper C++ library support
 
6926
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6927
            ;;
 
6928
          cxx*)
 
6929
            case $host in
 
6930
              osf3*)
 
6931
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6932
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
6933
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6934
                ;;
 
6935
              *)
 
6936
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6937
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
6938
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
6939
                  echo "-hidden">> $lib.exp~
 
6940
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
6941
                  $RM $lib.exp'
 
6942
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6943
                ;;
 
6944
            esac
 
6945
 
 
6946
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6947
 
 
6948
            # Commands to make compiler produce verbose output that lists
 
6949
            # what "hidden" libraries, object files and flags are used when
 
6950
            # linking a shared library.
 
6951
            #
 
6952
            # There doesn't appear to be a way to prevent this compiler from
 
6953
            # explicitly linking system object files so we need to strip them
 
6954
            # from the output so that they don't get included in the library
 
6955
            # dependencies.
 
6956
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6957
            ;;
 
6958
          *)
 
6959
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
6960
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6961
              case $host in
 
6962
                osf3*)
 
6963
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6964
                  ;;
 
6965
                *)
 
6966
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6967
                  ;;
 
6968
              esac
 
6969
 
 
6970
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6971
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6972
 
 
6973
              # Commands to make compiler produce verbose output that lists
 
6974
              # what "hidden" libraries, object files and flags are used when
 
6975
              # linking a shared library.
 
6976
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6977
 
 
6978
            else
 
6979
              # FIXME: insert proper C++ library support
 
6980
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6981
            fi
 
6982
            ;;
 
6983
        esac
 
6984
        ;;
 
6985
 
 
6986
      psos*)
 
6987
        # FIXME: insert proper C++ library support
 
6988
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6989
        ;;
 
6990
 
 
6991
      sunos4*)
 
6992
        case $cc_basename in
 
6993
          CC*)
 
6994
            # Sun C++ 4.x
 
6995
            # FIXME: insert proper C++ library support
 
6996
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6997
            ;;
 
6998
          lcc*)
 
6999
            # Lucid
 
7000
            # FIXME: insert proper C++ library support
 
7001
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7002
            ;;
 
7003
          *)
 
7004
            # FIXME: insert proper C++ library support
 
7005
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7006
            ;;
 
7007
        esac
 
7008
        ;;
 
7009
 
 
7010
      solaris*)
 
7011
        case $cc_basename in
 
7012
          CC*)
 
7013
            # Sun C++ 4.2, 5.x and Centerline C++
 
7014
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 
7015
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
7016
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7017
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7018
              $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'
 
7019
 
 
7020
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7021
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7022
            case $host_os in
 
7023
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7024
              *)
 
7025
                # The compiler driver will combine and reorder linker options,
 
7026
                # but understands `-z linker_flag'.
 
7027
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7028
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
7029
                ;;
 
7030
            esac
 
7031
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7032
 
 
7033
            output_verbose_link_cmd='echo'
 
7034
 
 
7035
            # Archives containing C++ object files must be created using
 
7036
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
7037
            # necessary to make sure instantiated templates are included
 
7038
            # in the archive.
 
7039
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
7040
            ;;
 
7041
          gcx*)
 
7042
            # Green Hills C++ Compiler
 
7043
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7044
 
 
7045
            # The C++ compiler must be used to create the archive.
 
7046
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
7047
            ;;
 
7048
          *)
 
7049
            # GNU C++ compiler with Solaris linker
 
7050
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
7051
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
7052
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
7053
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7054
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7055
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7056
 
 
7057
                # Commands to make compiler produce verbose output that lists
 
7058
                # what "hidden" libraries, object files and flags are used when
 
7059
                # linking a shared library.
 
7060
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7061
              else
 
7062
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
7063
                # platform.
 
7064
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7065
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7066
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7067
 
 
7068
                # Commands to make compiler produce verbose output that lists
 
7069
                # what "hidden" libraries, object files and flags are used when
 
7070
                # linking a shared library.
 
7071
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7072
              fi
 
7073
 
 
7074
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
7075
              case $host_os in
 
7076
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7077
                *)
 
7078
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
7079
                  ;;
 
7080
              esac
 
7081
            fi
 
7082
            ;;
 
7083
        esac
 
7084
        ;;
 
7085
 
 
7086
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
7087
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7088
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7089
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7090
      runpath_var='LD_RUN_PATH'
 
7091
 
 
7092
      case $cc_basename in
 
7093
        CC*)
 
7094
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7095
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7096
          ;;
 
7097
        *)
 
7098
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7099
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7100
          ;;
 
7101
      esac
 
7102
      ;;
 
7103
 
 
7104
      sysv5* | sco3.2v5* | sco5v6*)
 
7105
        # Note: We can NOT use -z defs as we might desire, because we do not
 
7106
        # link with -lc, and that would cause any symbols used from libc to
 
7107
        # always be unresolved, which means just about no library would
 
7108
        # ever link correctly.  If we're not using GNU ld we use -z text
 
7109
        # though, which does catch some bad symbols but isn't as heavy-handed
 
7110
        # as -z defs.
 
7111
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7112
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
7113
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7114
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7115
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
7116
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7117
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7118
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
7119
        runpath_var='LD_RUN_PATH'
 
7120
 
 
7121
        case $cc_basename in
 
7122
          CC*)
 
7123
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7124
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7125
            ;;
 
7126
          *)
 
7127
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7128
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7129
            ;;
 
7130
        esac
 
7131
      ;;
 
7132
 
 
7133
      tandem*)
 
7134
        case $cc_basename in
 
7135
          NCC*)
 
7136
            # NonStop-UX NCC 3.20
 
7137
            # FIXME: insert proper C++ library support
 
7138
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7139
            ;;
 
7140
          *)
 
7141
            # FIXME: insert proper C++ library support
 
7142
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7143
            ;;
 
7144
        esac
 
7145
        ;;
 
7146
 
 
7147
      vxworks*)
 
7148
        # FIXME: insert proper C++ library support
 
7149
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7150
        ;;
 
7151
 
 
7152
      *)
 
7153
        # FIXME: insert proper C++ library support
 
7154
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7155
        ;;
 
7156
    esac
 
7157
 
 
7158
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
7159
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
7160
 
 
7161
    _LT_TAGVAR(GCC, $1)="$GXX"
 
7162
    _LT_TAGVAR(LD, $1)="$LD"
 
7163
 
 
7164
    ## CAVEAT EMPTOR:
 
7165
    ## There is no encapsulation within the following macros, do not change
 
7166
    ## the running order or otherwise move them around unless you know exactly
 
7167
    ## what you are doing...
 
7168
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
7169
    _LT_COMPILER_PIC($1)
 
7170
    _LT_COMPILER_C_O($1)
 
7171
    _LT_COMPILER_FILE_LOCKS($1)
 
7172
    _LT_LINKER_SHLIBS($1)
 
7173
    _LT_SYS_DYNAMIC_LINKER($1)
 
7174
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7175
 
 
7176
    _LT_CONFIG($1)
 
7177
  fi # test -n "$compiler"
 
7178
 
 
7179
  CC=$lt_save_CC
 
7180
  LDCXX=$LD
 
7181
  LD=$lt_save_LD
 
7182
  GCC=$lt_save_GCC
 
7183
  with_gnu_ld=$lt_save_with_gnu_ld
 
7184
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
7185
  lt_cv_path_LD=$lt_save_path_LD
 
7186
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
7187
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
7188
fi # test "$_lt_caught_CXX_error" != yes
 
7189
 
 
7190
AC_LANG_POP
 
7191
])# _LT_LANG_CXX_CONFIG
 
7192
 
 
7193
 
 
7194
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6726
7195
# ---------------------------------
6727
 
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6728
 
 
6729
 
 
6730
 
# old names
6731
 
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
6732
 
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
6733
 
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
6734
 
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6735
 
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6736
 
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
6737
 
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
6738
 
 
6739
 
# This is just to silence aclocal about the macro not being used
6740
 
ifelse([AC_DISABLE_FAST_INSTALL])
6741
 
 
6742
 
AC_DEFUN([LT_AC_PROG_GCJ],
6743
 
[AC_CHECK_TOOL(GCJ, gcj, no)
6744
 
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6745
 
  AC_SUBST(GCJFLAGS)
6746
 
])
6747
 
 
6748
 
AC_DEFUN([LT_AC_PROG_RC],
6749
 
[AC_CHECK_TOOL(RC, windres, no)
6750
 
])
6751
 
 
6752
 
 
6753
 
# Cheap backport of AS_EXECUTABLE_P and required macros
6754
 
# from Autoconf 2.59; we should not use $as_executable_p directly.
6755
 
 
6756
 
# _AS_TEST_PREPARE
6757
 
# ----------------
6758
 
m4_ifndef([_AS_TEST_PREPARE],
6759
 
[m4_defun([_AS_TEST_PREPARE],
6760
 
[if test -x / >/dev/null 2>&1; then
6761
 
  as_executable_p='test -x'
 
7196
# Figure out "hidden" library dependencies from verbose
 
7197
# compiler output when linking a shared library.
 
7198
# Parse the compiler output and extract the necessary
 
7199
# objects, libraries and library flags.
 
7200
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 
7201
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7202
# Dependencies to place before and after the object being linked:
 
7203
_LT_TAGVAR(predep_objects, $1)=
 
7204
_LT_TAGVAR(postdep_objects, $1)=
 
7205
_LT_TAGVAR(predeps, $1)=
 
7206
_LT_TAGVAR(postdeps, $1)=
 
7207
_LT_TAGVAR(compiler_lib_search_path, $1)=
 
7208
 
 
7209
dnl we can't use the lt_simple_compile_test_code here,
 
7210
dnl because it contains code intended for an executable,
 
7211
dnl not a library.  It's possible we should let each
 
7212
dnl tag define a new lt_????_link_test_code variable,
 
7213
dnl but it's only used here...
 
7214
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 
7215
int a;
 
7216
void foo (void) { a = 0; }
 
7217
_LT_EOF
 
7218
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 
7219
class Foo
 
7220
{
 
7221
public:
 
7222
  Foo (void) { a = 0; }
 
7223
private:
 
7224
  int a;
 
7225
};
 
7226
_LT_EOF
 
7227
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 
7228
      subroutine foo
 
7229
      implicit none
 
7230
      integer*4 a
 
7231
      a=0
 
7232
      return
 
7233
      end
 
7234
_LT_EOF
 
7235
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 
7236
      subroutine foo
 
7237
      implicit none
 
7238
      integer a
 
7239
      a=0
 
7240
      return
 
7241
      end
 
7242
_LT_EOF
 
7243
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 
7244
public class foo {
 
7245
  private int a;
 
7246
  public void bar (void) {
 
7247
    a = 0;
 
7248
  }
 
7249
};
 
7250
_LT_EOF
 
7251
])
 
7252
dnl Parse the compiler output and extract the necessary
 
7253
dnl objects, libraries and library flags.
 
7254
if AC_TRY_EVAL(ac_compile); then
 
7255
  # Parse the compiler output and extract the necessary
 
7256
  # objects, libraries and library flags.
 
7257
 
 
7258
  # Sentinel used to keep track of whether or not we are before
 
7259
  # the conftest object file.
 
7260
  pre_test_object_deps_done=no
 
7261
 
 
7262
  for p in `eval "$output_verbose_link_cmd"`; do
 
7263
    case $p in
 
7264
 
 
7265
    -L* | -R* | -l*)
 
7266
       # Some compilers place space between "-{L,R}" and the path.
 
7267
       # Remove the space.
 
7268
       if test $p = "-L" ||
 
7269
          test $p = "-R"; then
 
7270
         prev=$p
 
7271
         continue
 
7272
       else
 
7273
         prev=
 
7274
       fi
 
7275
 
 
7276
       if test "$pre_test_object_deps_done" = no; then
 
7277
         case $p in
 
7278
         -L* | -R*)
 
7279
           # Internal compiler library paths should come after those
 
7280
           # provided the user.  The postdeps already come after the
 
7281
           # user supplied libs so there is no need to process them.
 
7282
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 
7283
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
7284
           else
 
7285
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
7286
           fi
 
7287
           ;;
 
7288
         # The "-l" case would never come before the object being
 
7289
         # linked, so don't bother handling this case.
 
7290
         esac
 
7291
       else
 
7292
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 
7293
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
 
7294
         else
 
7295
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
 
7296
         fi
 
7297
       fi
 
7298
       ;;
 
7299
 
 
7300
    *.$objext)
 
7301
       # This assumes that the test object file only shows up
 
7302
       # once in the compiler output.
 
7303
       if test "$p" = "conftest.$objext"; then
 
7304
         pre_test_object_deps_done=yes
 
7305
         continue
 
7306
       fi
 
7307
 
 
7308
       if test "$pre_test_object_deps_done" = no; then
 
7309
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 
7310
           _LT_TAGVAR(predep_objects, $1)="$p"
 
7311
         else
 
7312
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 
7313
         fi
 
7314
       else
 
7315
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 
7316
           _LT_TAGVAR(postdep_objects, $1)="$p"
 
7317
         else
 
7318
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 
7319
         fi
 
7320
       fi
 
7321
       ;;
 
7322
 
 
7323
    *) ;; # Ignore the rest.
 
7324
 
 
7325
    esac
 
7326
  done
 
7327
 
 
7328
  # Clean up.
 
7329
  rm -f a.out a.exe
6762
7330
else
6763
 
  as_executable_p='test -f'
6764
 
fi
6765
 
])])# _AS_TEST_PREPARE
6766
 
 
6767
 
# AS_EXECUTABLE_P
6768
 
# ---------------
6769
 
# Check whether a file is executable.
6770
 
m4_ifndef([AS_EXECUTABLE_P],
6771
 
[m4_defun([AS_EXECUTABLE_P],
6772
 
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6773
 
$as_executable_p $1[]dnl
6774
 
])])# AS_EXECUTABLE_P
6775
 
 
 
7331
  echo "libtool.m4: error: problem compiling $1 test program"
 
7332
fi
 
7333
 
 
7334
$RM -f confest.$objext
 
7335
 
 
7336
# PORTME: override above test on systems where it is broken
 
7337
m4_if([$1], [CXX],
 
7338
[case $host_os in
 
7339
interix[[3-9]]*)
 
7340
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
7341
  # hack all around it, let's just trust "g++" to DTRT.
 
7342
  _LT_TAGVAR(predep_objects,$1)=
 
7343
  _LT_TAGVAR(postdep_objects,$1)=
 
7344
  _LT_TAGVAR(postdeps,$1)=
 
7345
  ;;
 
7346
 
 
7347
linux*)
 
7348
  case `$CC -V 2>&1 | sed 5q` in
 
7349
  *Sun\ C*)
 
7350
    # Sun C++ 5.9
 
7351
 
 
7352
    # The more standards-conforming stlport4 library is
 
7353
    # incompatible with the Cstd library. Avoid specifying
 
7354
    # it if it's in CXXFLAGS. Ignore libCrun as
 
7355
    # -library=stlport4 depends on it.
 
7356
    case " $CXX $CXXFLAGS " in
 
7357
    *" -library=stlport4 "*)
 
7358
      solaris_use_stlport4=yes
 
7359
      ;;
 
7360
    esac
 
7361
 
 
7362
    if test "$solaris_use_stlport4" != yes; then
 
7363
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
7364
    fi
 
7365
    ;;
 
7366
  esac
 
7367
  ;;
 
7368
 
 
7369
solaris*)
 
7370
  case $cc_basename in
 
7371
  CC*)
 
7372
    # The more standards-conforming stlport4 library is
 
7373
    # incompatible with the Cstd library. Avoid specifying
 
7374
    # it if it's in CXXFLAGS. Ignore libCrun as
 
7375
    # -library=stlport4 depends on it.
 
7376
    case " $CXX $CXXFLAGS " in
 
7377
    *" -library=stlport4 "*)
 
7378
      solaris_use_stlport4=yes
 
7379
      ;;
 
7380
    esac
 
7381
 
 
7382
    # Adding this requires a known-good setup of shared libraries for
 
7383
    # Sun compiler versions before 5.6, else PIC objects from an old
 
7384
    # archive will be linked into the output, leading to subtle bugs.
 
7385
    if test "$solaris_use_stlport4" != yes; then
 
7386
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
7387
    fi
 
7388
    ;;
 
7389
  esac
 
7390
  ;;
 
7391
esac
 
7392
])
 
7393
 
 
7394
case " $_LT_TAGVAR(postdeps, $1) " in
 
7395
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
7396
esac
 
7397
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 
7398
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 
7399
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
7400
fi
 
7401
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 
7402
    [The directories searched by this compiler when creating a shared library])
 
7403
_LT_TAGDECL([], [predep_objects], [1],
 
7404
    [Dependencies to place before and after the objects being linked to
 
7405
    create a shared library])
 
7406
_LT_TAGDECL([], [postdep_objects], [1])
 
7407
_LT_TAGDECL([], [predeps], [1])
 
7408
_LT_TAGDECL([], [postdeps], [1])
 
7409
_LT_TAGDECL([], [compiler_lib_search_path], [1],
 
7410
    [The library search path used internally by the compiler when linking
 
7411
    a shared library])
 
7412
])# _LT_SYS_HIDDEN_LIBDEPS
 
7413
 
 
7414
 
 
7415
# _LT_PROG_F77
 
7416
# ------------
 
7417
# Since AC_PROG_F77 is broken, in that it returns the empty string
 
7418
# if there is no fortran compiler, we have our own version here.
 
7419
m4_defun([_LT_PROG_F77],
 
7420
[
 
7421
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
 
7422
AC_PROG_F77
 
7423
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7424
  _lt_disable_F77=yes
 
7425
fi
 
7426
popdef([AC_MSG_ERROR])
 
7427
])# _LT_PROG_F77
 
7428
 
 
7429
dnl aclocal-1.4 backwards compatibility:
 
7430
dnl AC_DEFUN([_LT_PROG_F77], [])
 
7431
 
 
7432
 
 
7433
# _LT_LANG_F77_CONFIG([TAG])
 
7434
# --------------------------
 
7435
# Ensure that the configuration variables for a Fortran 77 compiler are
 
7436
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7437
# to write the compiler configuration to `libtool'.
 
7438
m4_defun([_LT_LANG_F77_CONFIG],
 
7439
[AC_REQUIRE([_LT_PROG_F77])dnl
 
7440
AC_LANG_PUSH(Fortran 77)
 
7441
 
 
7442
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7443
_LT_TAGVAR(allow_undefined_flag, $1)=
 
7444
_LT_TAGVAR(always_export_symbols, $1)=no
 
7445
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
7446
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7447
_LT_TAGVAR(hardcode_direct, $1)=no
 
7448
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7449
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7450
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7451
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7452
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
7453
_LT_TAGVAR(hardcode_automatic, $1)=no
 
7454
_LT_TAGVAR(inherit_rpath, $1)=no
 
7455
_LT_TAGVAR(module_cmds, $1)=
 
7456
_LT_TAGVAR(module_expsym_cmds, $1)=
 
7457
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
7458
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7459
_LT_TAGVAR(no_undefined_flag, $1)=
 
7460
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7461
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7462
 
 
7463
# Source file extension for f77 test sources.
 
7464
ac_ext=f
 
7465
 
 
7466
# Object file extension for compiled f77 test sources.
 
7467
objext=o
 
7468
_LT_TAGVAR(objext, $1)=$objext
 
7469
 
 
7470
# No sense in running all these tests if we already determined that
 
7471
# the F77 compiler isn't working.  Some variables (like enable_shared)
 
7472
# are currently assumed to apply to all compilers on this platform,
 
7473
# and will be corrupted by setting them based on a non-working compiler.
 
7474
if test "$_lt_disable_F77" != yes; then
 
7475
  # Code to be used in simple compile tests
 
7476
  lt_simple_compile_test_code="\
 
7477
      subroutine t
 
7478
      return
 
7479
      end
 
7480
"
 
7481
 
 
7482
  # Code to be used in simple link tests
 
7483
  lt_simple_link_test_code="\
 
7484
      program t
 
7485
      end
 
7486
"
 
7487
 
 
7488
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7489
  _LT_TAG_COMPILER
 
7490
 
 
7491
  # save warnings/boilerplate of simple test code
 
7492
  _LT_COMPILER_BOILERPLATE
 
7493
  _LT_LINKER_BOILERPLATE
 
7494
 
 
7495
  # Allow CC to be a program name with arguments.
 
7496
  lt_save_CC="$CC"
 
7497
  lt_save_GCC=$GCC
 
7498
  CC=${F77-"f77"}
 
7499
  compiler=$CC
 
7500
  _LT_TAGVAR(compiler, $1)=$CC
 
7501
  _LT_CC_BASENAME([$compiler])
 
7502
  GCC=$G77
 
7503
  if test -n "$compiler"; then
 
7504
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
7505
    AC_MSG_RESULT([$can_build_shared])
 
7506
 
 
7507
    AC_MSG_CHECKING([whether to build shared libraries])
 
7508
    test "$can_build_shared" = "no" && enable_shared=no
 
7509
 
 
7510
    # On AIX, shared libraries and static libraries use the same namespace, and
 
7511
    # are all built from PIC.
 
7512
    case $host_os in
 
7513
      aix3*)
 
7514
        test "$enable_shared" = yes && enable_static=no
 
7515
        if test -n "$RANLIB"; then
 
7516
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7517
          postinstall_cmds='$RANLIB $lib'
 
7518
        fi
 
7519
        ;;
 
7520
      aix[[4-9]]*)
 
7521
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7522
          test "$enable_shared" = yes && enable_static=no
 
7523
        fi
 
7524
        ;;
 
7525
    esac
 
7526
    AC_MSG_RESULT([$enable_shared])
 
7527
 
 
7528
    AC_MSG_CHECKING([whether to build static libraries])
 
7529
    # Make sure either enable_shared or enable_static is yes.
 
7530
    test "$enable_shared" = yes || enable_static=yes
 
7531
    AC_MSG_RESULT([$enable_static])
 
7532
 
 
7533
    _LT_TAGVAR(GCC, $1)="$G77"
 
7534
    _LT_TAGVAR(LD, $1)="$LD"
 
7535
 
 
7536
    ## CAVEAT EMPTOR:
 
7537
    ## There is no encapsulation within the following macros, do not change
 
7538
    ## the running order or otherwise move them around unless you know exactly
 
7539
    ## what you are doing...
 
7540
    _LT_COMPILER_PIC($1)
 
7541
    _LT_COMPILER_C_O($1)
 
7542
    _LT_COMPILER_FILE_LOCKS($1)
 
7543
    _LT_LINKER_SHLIBS($1)
 
7544
    _LT_SYS_DYNAMIC_LINKER($1)
 
7545
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7546
 
 
7547
    _LT_CONFIG($1)
 
7548
  fi # test -n "$compiler"
 
7549
 
 
7550
  GCC=$lt_save_GCC
 
7551
  CC="$lt_save_CC"
 
7552
fi # test "$_lt_disable_F77" != yes
 
7553
 
 
7554
AC_LANG_POP
 
7555
])# _LT_LANG_F77_CONFIG
 
7556
 
 
7557
 
 
7558
# _LT_PROG_FC
 
7559
# -----------
 
7560
# Since AC_PROG_FC is broken, in that it returns the empty string
 
7561
# if there is no fortran compiler, we have our own version here.
 
7562
m4_defun([_LT_PROG_FC],
 
7563
[
 
7564
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
 
7565
AC_PROG_FC
 
7566
if test -z "$FC" || test "X$FC" = "Xno"; then
 
7567
  _lt_disable_FC=yes
 
7568
fi
 
7569
popdef([AC_MSG_ERROR])
 
7570
])# _LT_PROG_FC
 
7571
 
 
7572
dnl aclocal-1.4 backwards compatibility:
 
7573
dnl AC_DEFUN([_LT_PROG_FC], [])
 
7574
 
 
7575
 
 
7576
# _LT_LANG_FC_CONFIG([TAG])
 
7577
# -------------------------
 
7578
# Ensure that the configuration variables for a Fortran compiler are
 
7579
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7580
# to write the compiler configuration to `libtool'.
 
7581
m4_defun([_LT_LANG_FC_CONFIG],
 
7582
[AC_REQUIRE([_LT_PROG_FC])dnl
 
7583
AC_LANG_PUSH(Fortran)
 
7584
 
 
7585
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7586
_LT_TAGVAR(allow_undefined_flag, $1)=
 
7587
_LT_TAGVAR(always_export_symbols, $1)=no
 
7588
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
7589
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7590
_LT_TAGVAR(hardcode_direct, $1)=no
 
7591
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7592
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7593
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7594
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7595
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
7596
_LT_TAGVAR(hardcode_automatic, $1)=no
 
7597
_LT_TAGVAR(inherit_rpath, $1)=no
 
7598
_LT_TAGVAR(module_cmds, $1)=
 
7599
_LT_TAGVAR(module_expsym_cmds, $1)=
 
7600
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
7601
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7602
_LT_TAGVAR(no_undefined_flag, $1)=
 
7603
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7604
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7605
 
 
7606
# Source file extension for fc test sources.
 
7607
ac_ext=${ac_fc_srcext-f}
 
7608
 
 
7609
# Object file extension for compiled fc test sources.
 
7610
objext=o
 
7611
_LT_TAGVAR(objext, $1)=$objext
 
7612
 
 
7613
# No sense in running all these tests if we already determined that
 
7614
# the FC compiler isn't working.  Some variables (like enable_shared)
 
7615
# are currently assumed to apply to all compilers on this platform,
 
7616
# and will be corrupted by setting them based on a non-working compiler.
 
7617
if test "$_lt_disable_FC" != yes; then
 
7618
  # Code to be used in simple compile tests
 
7619
  lt_simple_compile_test_code="\
 
7620
      subroutine t
 
7621
      return
 
7622
      end
 
7623
"
 
7624
 
 
7625
  # Code to be used in simple link tests
 
7626
  lt_simple_link_test_code="\
 
7627
      program t
 
7628
      end
 
7629
"
 
7630
 
 
7631
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7632
  _LT_TAG_COMPILER
 
7633
 
 
7634
  # save warnings/boilerplate of simple test code
 
7635
  _LT_COMPILER_BOILERPLATE
 
7636
  _LT_LINKER_BOILERPLATE
 
7637
 
 
7638
  # Allow CC to be a program name with arguments.
 
7639
  lt_save_CC="$CC"
 
7640
  lt_save_GCC=$GCC
 
7641
  CC=${FC-"f95"}
 
7642
  compiler=$CC
 
7643
  GCC=$ac_cv_fc_compiler_gnu
 
7644
 
 
7645
  _LT_TAGVAR(compiler, $1)=$CC
 
7646
  _LT_CC_BASENAME([$compiler])
 
7647
 
 
7648
  if test -n "$compiler"; then
 
7649
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
7650
    AC_MSG_RESULT([$can_build_shared])
 
7651
 
 
7652
    AC_MSG_CHECKING([whether to build shared libraries])
 
7653
    test "$can_build_shared" = "no" && enable_shared=no
 
7654
 
 
7655
    # On AIX, shared libraries and static libraries use the same namespace, and
 
7656
    # are all built from PIC.
 
7657
    case $host_os in
 
7658
      aix3*)
 
7659
        test "$enable_shared" = yes && enable_static=no
 
7660
        if test -n "$RANLIB"; then
 
7661
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7662
          postinstall_cmds='$RANLIB $lib'
 
7663
        fi
 
7664
        ;;
 
7665
      aix[[4-9]]*)
 
7666
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7667
          test "$enable_shared" = yes && enable_static=no
 
7668
        fi
 
7669
        ;;
 
7670
    esac
 
7671
    AC_MSG_RESULT([$enable_shared])
 
7672
 
 
7673
    AC_MSG_CHECKING([whether to build static libraries])
 
7674
    # Make sure either enable_shared or enable_static is yes.
 
7675
    test "$enable_shared" = yes || enable_static=yes
 
7676
    AC_MSG_RESULT([$enable_static])
 
7677
 
 
7678
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
 
7679
    _LT_TAGVAR(LD, $1)="$LD"
 
7680
 
 
7681
    ## CAVEAT EMPTOR:
 
7682
    ## There is no encapsulation within the following macros, do not change
 
7683
    ## the running order or otherwise move them around unless you know exactly
 
7684
    ## what you are doing...
 
7685
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
7686
    _LT_COMPILER_PIC($1)
 
7687
    _LT_COMPILER_C_O($1)
 
7688
    _LT_COMPILER_FILE_LOCKS($1)
 
7689
    _LT_LINKER_SHLIBS($1)
 
7690
    _LT_SYS_DYNAMIC_LINKER($1)
 
7691
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7692
 
 
7693
    _LT_CONFIG($1)
 
7694
  fi # test -n "$compiler"
 
7695
 
 
7696
  GCC=$lt_save_GCC
 
7697
  CC="$lt_save_CC"
 
7698
fi # test "$_lt_disable_FC" != yes
 
7699
 
 
7700
AC_LANG_POP
 
7701
])# _LT_LANG_FC_CONFIG
 
7702
 
 
7703
 
 
7704
# _LT_LANG_GCJ_CONFIG([TAG])
 
7705
# --------------------------
 
7706
# Ensure that the configuration variables for the GNU Java Compiler compiler
 
7707
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7708
# to write the compiler configuration to `libtool'.
 
7709
m4_defun([_LT_LANG_GCJ_CONFIG],
 
7710
[AC_REQUIRE([LT_PROG_GCJ])dnl
 
7711
AC_LANG_SAVE
 
7712
 
 
7713
# Source file extension for Java test sources.
 
7714
ac_ext=java
 
7715
 
 
7716
# Object file extension for compiled Java test sources.
 
7717
objext=o
 
7718
_LT_TAGVAR(objext, $1)=$objext
 
7719
 
 
7720
# Code to be used in simple compile tests
 
7721
lt_simple_compile_test_code="class foo {}"
 
7722
 
 
7723
# Code to be used in simple link tests
 
7724
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
7725
 
 
7726
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7727
_LT_TAG_COMPILER
 
7728
 
 
7729
# save warnings/boilerplate of simple test code
 
7730
_LT_COMPILER_BOILERPLATE
 
7731
_LT_LINKER_BOILERPLATE
 
7732
 
 
7733
# Allow CC to be a program name with arguments.
 
7734
lt_save_CC="$CC"
 
7735
lt_save_GCC=$GCC
 
7736
GCC=yes
 
7737
CC=${GCJ-"gcj"}
 
7738
compiler=$CC
 
7739
_LT_TAGVAR(compiler, $1)=$CC
 
7740
_LT_TAGVAR(LD, $1)="$LD"
 
7741
_LT_CC_BASENAME([$compiler])
 
7742
 
 
7743
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
7744
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7745
 
 
7746
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7747
 
 
7748
if test -n "$compiler"; then
 
7749
  _LT_COMPILER_NO_RTTI($1)
 
7750
  _LT_COMPILER_PIC($1)
 
7751
  _LT_COMPILER_C_O($1)
 
7752
  _LT_COMPILER_FILE_LOCKS($1)
 
7753
  _LT_LINKER_SHLIBS($1)
 
7754
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
7755
 
 
7756
  _LT_CONFIG($1)
 
7757
fi
 
7758
 
 
7759
AC_LANG_RESTORE
 
7760
 
 
7761
GCC=$lt_save_GCC
 
7762
CC="$lt_save_CC"
 
7763
])# _LT_LANG_GCJ_CONFIG
 
7764
 
 
7765
 
 
7766
# _LT_LANG_RC_CONFIG([TAG])
 
7767
# -------------------------
 
7768
# Ensure that the configuration variables for the Windows resource compiler
 
7769
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7770
# to write the compiler configuration to `libtool'.
 
7771
m4_defun([_LT_LANG_RC_CONFIG],
 
7772
[AC_REQUIRE([LT_PROG_RC])dnl
 
7773
AC_LANG_SAVE
 
7774
 
 
7775
# Source file extension for RC test sources.
 
7776
ac_ext=rc
 
7777
 
 
7778
# Object file extension for compiled RC test sources.
 
7779
objext=o
 
7780
_LT_TAGVAR(objext, $1)=$objext
 
7781
 
 
7782
# Code to be used in simple compile tests
 
7783
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
7784
 
 
7785
# Code to be used in simple link tests
 
7786
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
7787
 
 
7788
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7789
_LT_TAG_COMPILER
 
7790
 
 
7791
# save warnings/boilerplate of simple test code
 
7792
_LT_COMPILER_BOILERPLATE
 
7793
_LT_LINKER_BOILERPLATE
 
7794
 
 
7795
# Allow CC to be a program name with arguments.
 
7796
lt_save_CC="$CC"
 
7797
lt_save_GCC=$GCC
 
7798
GCC=
 
7799
CC=${RC-"windres"}
 
7800
compiler=$CC
 
7801
_LT_TAGVAR(compiler, $1)=$CC
 
7802
_LT_CC_BASENAME([$compiler])
 
7803
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
7804
 
 
7805
if test -n "$compiler"; then
 
7806
  :
 
7807
  _LT_CONFIG($1)
 
7808
fi
 
7809
 
 
7810
GCC=$lt_save_GCC
 
7811
AC_LANG_RESTORE
 
7812
CC="$lt_save_CC"
 
7813
])# _LT_LANG_RC_CONFIG
 
7814
 
 
7815
 
 
7816
# LT_PROG_GCJ
 
7817
# -----------
 
7818
AC_DEFUN([LT_PROG_GCJ],
 
7819
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
 
7820
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
 
7821
    [AC_CHECK_TOOL(GCJ, gcj,)
 
7822
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
7823
      AC_SUBST(GCJFLAGS)])])[]dnl
 
7824
])
 
7825
 
 
7826
# Old name:
 
7827
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
 
7828
dnl aclocal-1.4 backwards compatibility:
 
7829
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 
7830
 
 
7831
 
 
7832
# LT_PROG_RC
 
7833
# ----------
 
7834
AC_DEFUN([LT_PROG_RC],
 
7835
[AC_CHECK_TOOL(RC, windres,)
 
7836
])
 
7837
 
 
7838
# Old name:
 
7839
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
 
7840
dnl aclocal-1.4 backwards compatibility:
 
7841
dnl AC_DEFUN([LT_AC_PROG_RC], [])
 
7842
 
 
7843
 
 
7844
# _LT_DECL_EGREP
 
7845
# --------------
 
7846
# If we don't have a new enough Autoconf to choose the best grep
 
7847
# available, choose the one first in the user's PATH.
 
7848
m4_defun([_LT_DECL_EGREP],
 
7849
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
7850
AC_REQUIRE([AC_PROG_FGREP])dnl
 
7851
test -z "$GREP" && GREP=grep
 
7852
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
 
7853
_LT_DECL([], [EGREP], [1], [An ERE matcher])
 
7854
_LT_DECL([], [FGREP], [1], [A literal string matcher])
 
7855
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
 
7856
AC_SUBST([GREP])
 
7857
])
 
7858
 
 
7859
 
 
7860
# _LT_DECL_OBJDUMP
 
7861
# --------------
 
7862
# If we don't have a new enough Autoconf to choose the best objdump
 
7863
# available, choose the one first in the user's PATH.
 
7864
m4_defun([_LT_DECL_OBJDUMP],
 
7865
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
7866
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7867
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 
7868
AC_SUBST([OBJDUMP])
 
7869
])
 
7870
 
 
7871
 
 
7872
# _LT_DECL_SED
 
7873
# ------------
 
7874
# Check for a fully-functional sed program, that truncates
 
7875
# as few characters as possible.  Prefer GNU sed if found.
 
7876
m4_defun([_LT_DECL_SED],
 
7877
[AC_PROG_SED
 
7878
test -z "$SED" && SED=sed
 
7879
Xsed="$SED -e 1s/^X//"
 
7880
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
 
7881
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 
7882
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
 
7883
])# _LT_DECL_SED
 
7884
 
 
7885
m4_ifndef([AC_PROG_SED], [
6776
7886
# NOTE: This macro has been submitted for inclusion into   #
6777
7887
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6778
7888
#  a released version of Autoconf we should remove this    #
6779
7889
#  macro and use it instead.                               #
6780
 
# LT_AC_PROG_SED
6781
 
# --------------
6782
 
# Check for a fully-functional sed program, that truncates
6783
 
# as few characters as possible.  Prefer GNU sed if found.
6784
 
AC_DEFUN([LT_AC_PROG_SED],
 
7890
 
 
7891
m4_defun([AC_PROG_SED],
6785
7892
[AC_MSG_CHECKING([for a sed that does not truncate output])
6786
7893
AC_CACHE_VAL(lt_cv_path_SED,
6787
7894
[# Loop through the user's path and test for sed and gsed.
6793
7900
  test -z "$as_dir" && as_dir=.
6794
7901
  for lt_ac_prog in sed gsed; do
6795
7902
    for ac_exec_ext in '' $ac_executable_extensions; do
6796
 
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
 
7903
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6797
7904
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6798
7905
      fi
6799
7906
    done
6834
7941
SED=$lt_cv_path_SED
6835
7942
AC_SUBST([SED])
6836
7943
AC_MSG_RESULT([$SED])
 
7944
])#AC_PROG_SED
 
7945
])#m4_ifndef
 
7946
 
 
7947
# Old name:
 
7948
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
 
7949
dnl aclocal-1.4 backwards compatibility:
 
7950
dnl AC_DEFUN([LT_AC_PROG_SED], [])
 
7951
 
 
7952
 
 
7953
# _LT_CHECK_SHELL_FEATURES
 
7954
# ------------------------
 
7955
# Find out whether the shell is Bourne or XSI compatible,
 
7956
# or has some other useful features.
 
7957
m4_defun([_LT_CHECK_SHELL_FEATURES],
 
7958
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
 
7959
# Try some XSI features
 
7960
xsi_shell=no
 
7961
( _lt_dummy="a/b/c"
 
7962
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
7963
      = c,a/b,, \
 
7964
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
7965
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
7966
  && xsi_shell=yes
 
7967
AC_MSG_RESULT([$xsi_shell])
 
7968
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
 
7969
 
 
7970
AC_MSG_CHECKING([whether the shell understands "+="])
 
7971
lt_shell_append=no
 
7972
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
 
7973
    >/dev/null 2>&1 \
 
7974
  && lt_shell_append=yes
 
7975
AC_MSG_RESULT([$lt_shell_append])
 
7976
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
 
7977
 
 
7978
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
7979
  lt_unset=unset
 
7980
else
 
7981
  lt_unset=false
 
7982
fi
 
7983
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
 
7984
 
 
7985
# test EBCDIC or ASCII
 
7986
case `echo X|tr X '\101'` in
 
7987
 A) # ASCII based system
 
7988
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
7989
  lt_SP2NL='tr \040 \012'
 
7990
  lt_NL2SP='tr \015\012 \040\040'
 
7991
  ;;
 
7992
 *) # EBCDIC based system
 
7993
  lt_SP2NL='tr \100 \n'
 
7994
  lt_NL2SP='tr \r\n \100\100'
 
7995
  ;;
 
7996
esac
 
7997
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
 
7998
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
 
7999
])# _LT_CHECK_SHELL_FEATURES
 
8000
 
 
8001
 
 
8002
# _LT_PROG_XSI_SHELLFNS
 
8003
# ---------------------
 
8004
# Bourne and XSI compatible variants of some useful shell functions.
 
8005
m4_defun([_LT_PROG_XSI_SHELLFNS],
 
8006
[case $xsi_shell in
 
8007
  yes)
 
8008
    cat << \_LT_EOF >> "$cfgfile"
 
8009
 
 
8010
# func_dirname file append nondir_replacement
 
8011
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
8012
# otherwise set result to NONDIR_REPLACEMENT.
 
8013
func_dirname ()
 
8014
{
 
8015
  case ${1} in
 
8016
    */*) func_dirname_result="${1%/*}${2}" ;;
 
8017
    *  ) func_dirname_result="${3}" ;;
 
8018
  esac
 
8019
}
 
8020
 
 
8021
# func_basename file
 
8022
func_basename ()
 
8023
{
 
8024
  func_basename_result="${1##*/}"
 
8025
}
 
8026
 
 
8027
# func_dirname_and_basename file append nondir_replacement
 
8028
# perform func_basename and func_dirname in a single function
 
8029
# call:
 
8030
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
8031
#             add APPEND to the result, otherwise set result
 
8032
#             to NONDIR_REPLACEMENT.
 
8033
#             value returned in "$func_dirname_result"
 
8034
#   basename: Compute filename of FILE.
 
8035
#             value retuned in "$func_basename_result"
 
8036
# Implementation must be kept synchronized with func_dirname
 
8037
# and func_basename. For efficiency, we do not delegate to
 
8038
# those functions but instead duplicate the functionality here.
 
8039
func_dirname_and_basename ()
 
8040
{
 
8041
  case ${1} in
 
8042
    */*) func_dirname_result="${1%/*}${2}" ;;
 
8043
    *  ) func_dirname_result="${3}" ;;
 
8044
  esac
 
8045
  func_basename_result="${1##*/}"
 
8046
}
 
8047
 
 
8048
# func_stripname prefix suffix name
 
8049
# strip PREFIX and SUFFIX off of NAME.
 
8050
# PREFIX and SUFFIX must not contain globbing or regex special
 
8051
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
8052
# dot (in which case that matches only a dot).
 
8053
func_stripname ()
 
8054
{
 
8055
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
8056
  # positional parameters, so assign one to ordinary parameter first.
 
8057
  func_stripname_result=${3}
 
8058
  func_stripname_result=${func_stripname_result#"${1}"}
 
8059
  func_stripname_result=${func_stripname_result%"${2}"}
 
8060
}
 
8061
 
 
8062
# func_opt_split
 
8063
func_opt_split ()
 
8064
{
 
8065
  func_opt_split_opt=${1%%=*}
 
8066
  func_opt_split_arg=${1#*=}
 
8067
}
 
8068
 
 
8069
# func_lo2o object
 
8070
func_lo2o ()
 
8071
{
 
8072
  case ${1} in
 
8073
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
8074
    *)    func_lo2o_result=${1} ;;
 
8075
  esac
 
8076
}
 
8077
 
 
8078
# func_xform libobj-or-source
 
8079
func_xform ()
 
8080
{
 
8081
  func_xform_result=${1%.*}.lo
 
8082
}
 
8083
 
 
8084
# func_arith arithmetic-term...
 
8085
func_arith ()
 
8086
{
 
8087
  func_arith_result=$(( $[*] ))
 
8088
}
 
8089
 
 
8090
# func_len string
 
8091
# STRING may not start with a hyphen.
 
8092
func_len ()
 
8093
{
 
8094
  func_len_result=${#1}
 
8095
}
 
8096
 
 
8097
_LT_EOF
 
8098
    ;;
 
8099
  *) # Bourne compatible functions.
 
8100
    cat << \_LT_EOF >> "$cfgfile"
 
8101
 
 
8102
# func_dirname file append nondir_replacement
 
8103
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
8104
# otherwise set result to NONDIR_REPLACEMENT.
 
8105
func_dirname ()
 
8106
{
 
8107
  # Extract subdirectory from the argument.
 
8108
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
8109
  if test "X$func_dirname_result" = "X${1}"; then
 
8110
    func_dirname_result="${3}"
 
8111
  else
 
8112
    func_dirname_result="$func_dirname_result${2}"
 
8113
  fi
 
8114
}
 
8115
 
 
8116
# func_basename file
 
8117
func_basename ()
 
8118
{
 
8119
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
8120
}
 
8121
 
 
8122
dnl func_dirname_and_basename
 
8123
dnl A portable version of this function is already defined in general.m4sh
 
8124
dnl so there is no need for it here.
 
8125
 
 
8126
# func_stripname prefix suffix name
 
8127
# strip PREFIX and SUFFIX off of NAME.
 
8128
# PREFIX and SUFFIX must not contain globbing or regex special
 
8129
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
8130
# dot (in which case that matches only a dot).
 
8131
# func_strip_suffix prefix name
 
8132
func_stripname ()
 
8133
{
 
8134
  case ${2} in
 
8135
    .*) func_stripname_result=`$ECHO "X${3}" \
 
8136
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
8137
    *)  func_stripname_result=`$ECHO "X${3}" \
 
8138
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
8139
  esac
 
8140
}
 
8141
 
 
8142
# sed scripts:
 
8143
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
 
8144
my_sed_long_arg='1s/^-[[^=]]*=//'
 
8145
 
 
8146
# func_opt_split
 
8147
func_opt_split ()
 
8148
{
 
8149
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
8150
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
8151
}
 
8152
 
 
8153
# func_lo2o object
 
8154
func_lo2o ()
 
8155
{
 
8156
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
8157
}
 
8158
 
 
8159
# func_xform libobj-or-source
 
8160
func_xform ()
 
8161
{
 
8162
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
8163
}
 
8164
 
 
8165
# func_arith arithmetic-term...
 
8166
func_arith ()
 
8167
{
 
8168
  func_arith_result=`expr "$[@]"`
 
8169
}
 
8170
 
 
8171
# func_len string
 
8172
# STRING may not start with a hyphen.
 
8173
func_len ()
 
8174
{
 
8175
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
 
8176
}
 
8177
 
 
8178
_LT_EOF
 
8179
esac
 
8180
 
 
8181
case $lt_shell_append in
 
8182
  yes)
 
8183
    cat << \_LT_EOF >> "$cfgfile"
 
8184
 
 
8185
# func_append var value
 
8186
# Append VALUE to the end of shell variable VAR.
 
8187
func_append ()
 
8188
{
 
8189
  eval "$[1]+=\$[2]"
 
8190
}
 
8191
_LT_EOF
 
8192
    ;;
 
8193
  *)
 
8194
    cat << \_LT_EOF >> "$cfgfile"
 
8195
 
 
8196
# func_append var value
 
8197
# Append VALUE to the end of shell variable VAR.
 
8198
func_append ()
 
8199
{
 
8200
  eval "$[1]=\$$[1]\$[2]"
 
8201
}
 
8202
 
 
8203
_LT_EOF
 
8204
    ;;
 
8205
  esac
 
8206
])
 
8207
 
 
8208
# Helper functions for option handling.                    -*- Autoconf -*-
 
8209
#
 
8210
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8211
#   Written by Gary V. Vaughan, 2004
 
8212
#
 
8213
# This file is free software; the Free Software Foundation gives
 
8214
# unlimited permission to copy and/or distribute it, with or without
 
8215
# modifications, as long as this notice is preserved.
 
8216
 
 
8217
# serial 6 ltoptions.m4
 
8218
 
 
8219
# This is to help aclocal find these macros, as it can't see m4_define.
 
8220
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
 
8221
 
 
8222
 
 
8223
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
 
8224
# ------------------------------------------
 
8225
m4_define([_LT_MANGLE_OPTION],
 
8226
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
 
8227
 
 
8228
 
 
8229
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
 
8230
# ---------------------------------------
 
8231
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
 
8232
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
 
8233
# saved as a flag.
 
8234
m4_define([_LT_SET_OPTION],
 
8235
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
 
8236
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
 
8237
        _LT_MANGLE_DEFUN([$1], [$2]),
 
8238
    [m4_warning([Unknown $1 option `$2'])])[]dnl
 
8239
])
 
8240
 
 
8241
 
 
8242
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
 
8243
# ------------------------------------------------------------
 
8244
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
8245
m4_define([_LT_IF_OPTION],
 
8246
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
 
8247
 
 
8248
 
 
8249
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
 
8250
# -------------------------------------------------------
 
8251
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
 
8252
# are set.
 
8253
m4_define([_LT_UNLESS_OPTIONS],
 
8254
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8255
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
 
8256
                      [m4_define([$0_found])])])[]dnl
 
8257
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
 
8258
])[]dnl
 
8259
])
 
8260
 
 
8261
 
 
8262
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
 
8263
# ----------------------------------------
 
8264
# OPTION-LIST is a space-separated list of Libtool options associated
 
8265
# with MACRO-NAME.  If any OPTION has a matching handler declared with
 
8266
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
 
8267
# the unknown option and exit.
 
8268
m4_defun([_LT_SET_OPTIONS],
 
8269
[# Set options
 
8270
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8271
    [_LT_SET_OPTION([$1], _LT_Option)])
 
8272
 
 
8273
m4_if([$1],[LT_INIT],[
 
8274
  dnl
 
8275
  dnl Simply set some default values (i.e off) if boolean options were not
 
8276
  dnl specified:
 
8277
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
 
8278
  ])
 
8279
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
 
8280
  ])
 
8281
  dnl
 
8282
  dnl If no reference was made to various pairs of opposing options, then
 
8283
  dnl we run the default mode handler for the pair.  For example, if neither
 
8284
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
 
8285
  dnl archives by default:
 
8286
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
 
8287
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
 
8288
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
 
8289
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
 
8290
                   [_LT_ENABLE_FAST_INSTALL])
 
8291
  ])
 
8292
])# _LT_SET_OPTIONS
 
8293
 
 
8294
 
 
8295
 
 
8296
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
 
8297
# -----------------------------------------
 
8298
m4_define([_LT_MANGLE_DEFUN],
 
8299
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
 
8300
 
 
8301
 
 
8302
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
 
8303
# -----------------------------------------------
 
8304
m4_define([LT_OPTION_DEFINE],
 
8305
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
 
8306
])# LT_OPTION_DEFINE
 
8307
 
 
8308
 
 
8309
# dlopen
 
8310
# ------
 
8311
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
 
8312
])
 
8313
 
 
8314
AU_DEFUN([AC_LIBTOOL_DLOPEN],
 
8315
[_LT_SET_OPTION([LT_INIT], [dlopen])
 
8316
AC_DIAGNOSE([obsolete],
 
8317
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8318
put the `dlopen' option into LT_INIT's first parameter.])
 
8319
])
 
8320
 
 
8321
dnl aclocal-1.4 backwards compatibility:
 
8322
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
 
8323
 
 
8324
 
 
8325
# win32-dll
 
8326
# ---------
 
8327
# Declare package support for building win32 dll's.
 
8328
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
 
8329
[enable_win32_dll=yes
 
8330
 
 
8331
case $host in
 
8332
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
8333
  AC_CHECK_TOOL(AS, as, false)
 
8334
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
8335
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
8336
  ;;
 
8337
esac
 
8338
 
 
8339
test -z "$AS" && AS=as
 
8340
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
8341
 
 
8342
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8343
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
8344
 
 
8345
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8346
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
8347
])# win32-dll
 
8348
 
 
8349
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
8350
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
8351
_LT_SET_OPTION([LT_INIT], [win32-dll])
 
8352
AC_DIAGNOSE([obsolete],
 
8353
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8354
put the `win32-dll' option into LT_INIT's first parameter.])
 
8355
])
 
8356
 
 
8357
dnl aclocal-1.4 backwards compatibility:
 
8358
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
 
8359
 
 
8360
 
 
8361
# _LT_ENABLE_SHARED([DEFAULT])
 
8362
# ----------------------------
 
8363
# implement the --enable-shared flag, and supports the `shared' and
 
8364
# `disable-shared' LT_INIT options.
 
8365
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8366
m4_define([_LT_ENABLE_SHARED],
 
8367
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8368
AC_ARG_ENABLE([shared],
 
8369
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
8370
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
 
8371
    [p=${PACKAGE-default}
 
8372
    case $enableval in
 
8373
    yes) enable_shared=yes ;;
 
8374
    no) enable_shared=no ;;
 
8375
    *)
 
8376
      enable_shared=no
 
8377
      # Look at the argument we got.  We use all the common list separators.
 
8378
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8379
      for pkg in $enableval; do
 
8380
        IFS="$lt_save_ifs"
 
8381
        if test "X$pkg" = "X$p"; then
 
8382
          enable_shared=yes
 
8383
        fi
 
8384
      done
 
8385
      IFS="$lt_save_ifs"
 
8386
      ;;
 
8387
    esac],
 
8388
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
 
8389
 
 
8390
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
 
8391
        [Whether or not to build shared libraries])
 
8392
])# _LT_ENABLE_SHARED
 
8393
 
 
8394
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
 
8395
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
 
8396
 
 
8397
# Old names:
 
8398
AC_DEFUN([AC_ENABLE_SHARED],
 
8399
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
 
8400
])
 
8401
 
 
8402
AC_DEFUN([AC_DISABLE_SHARED],
 
8403
[_LT_SET_OPTION([LT_INIT], [disable-shared])
 
8404
])
 
8405
 
 
8406
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
 
8407
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
8408
 
 
8409
dnl aclocal-1.4 backwards compatibility:
 
8410
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
 
8411
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
 
8412
 
 
8413
 
 
8414
 
 
8415
# _LT_ENABLE_STATIC([DEFAULT])
 
8416
# ----------------------------
 
8417
# implement the --enable-static flag, and support the `static' and
 
8418
# `disable-static' LT_INIT options.
 
8419
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8420
m4_define([_LT_ENABLE_STATIC],
 
8421
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8422
AC_ARG_ENABLE([static],
 
8423
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
8424
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
 
8425
    [p=${PACKAGE-default}
 
8426
    case $enableval in
 
8427
    yes) enable_static=yes ;;
 
8428
    no) enable_static=no ;;
 
8429
    *)
 
8430
     enable_static=no
 
8431
      # Look at the argument we got.  We use all the common list separators.
 
8432
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8433
      for pkg in $enableval; do
 
8434
        IFS="$lt_save_ifs"
 
8435
        if test "X$pkg" = "X$p"; then
 
8436
          enable_static=yes
 
8437
        fi
 
8438
      done
 
8439
      IFS="$lt_save_ifs"
 
8440
      ;;
 
8441
    esac],
 
8442
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
 
8443
 
 
8444
    _LT_DECL([build_old_libs], [enable_static], [0],
 
8445
        [Whether or not to build static libraries])
 
8446
])# _LT_ENABLE_STATIC
 
8447
 
 
8448
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
 
8449
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
 
8450
 
 
8451
# Old names:
 
8452
AC_DEFUN([AC_ENABLE_STATIC],
 
8453
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
 
8454
])
 
8455
 
 
8456
AC_DEFUN([AC_DISABLE_STATIC],
 
8457
[_LT_SET_OPTION([LT_INIT], [disable-static])
 
8458
])
 
8459
 
 
8460
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
 
8461
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
8462
 
 
8463
dnl aclocal-1.4 backwards compatibility:
 
8464
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
 
8465
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
 
8466
 
 
8467
 
 
8468
 
 
8469
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
 
8470
# ----------------------------------
 
8471
# implement the --enable-fast-install flag, and support the `fast-install'
 
8472
# and `disable-fast-install' LT_INIT options.
 
8473
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8474
m4_define([_LT_ENABLE_FAST_INSTALL],
 
8475
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8476
AC_ARG_ENABLE([fast-install],
 
8477
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
8478
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
8479
    [p=${PACKAGE-default}
 
8480
    case $enableval in
 
8481
    yes) enable_fast_install=yes ;;
 
8482
    no) enable_fast_install=no ;;
 
8483
    *)
 
8484
      enable_fast_install=no
 
8485
      # Look at the argument we got.  We use all the common list separators.
 
8486
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8487
      for pkg in $enableval; do
 
8488
        IFS="$lt_save_ifs"
 
8489
        if test "X$pkg" = "X$p"; then
 
8490
          enable_fast_install=yes
 
8491
        fi
 
8492
      done
 
8493
      IFS="$lt_save_ifs"
 
8494
      ;;
 
8495
    esac],
 
8496
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
 
8497
 
 
8498
_LT_DECL([fast_install], [enable_fast_install], [0],
 
8499
         [Whether or not to optimize for fast installation])dnl
 
8500
])# _LT_ENABLE_FAST_INSTALL
 
8501
 
 
8502
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
 
8503
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
 
8504
 
 
8505
# Old names:
 
8506
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
 
8507
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
 
8508
AC_DIAGNOSE([obsolete],
 
8509
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
8510
the `fast-install' option into LT_INIT's first parameter.])
 
8511
])
 
8512
 
 
8513
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
 
8514
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
 
8515
AC_DIAGNOSE([obsolete],
 
8516
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
8517
the `disable-fast-install' option into LT_INIT's first parameter.])
 
8518
])
 
8519
 
 
8520
dnl aclocal-1.4 backwards compatibility:
 
8521
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
 
8522
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
 
8523
 
 
8524
 
 
8525
# _LT_WITH_PIC([MODE])
 
8526
# --------------------
 
8527
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
 
8528
# LT_INIT options.
 
8529
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
8530
m4_define([_LT_WITH_PIC],
 
8531
[AC_ARG_WITH([pic],
 
8532
    [AS_HELP_STRING([--with-pic],
 
8533
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
8534
    [pic_mode="$withval"],
 
8535
    [pic_mode=default])
 
8536
 
 
8537
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
 
8538
 
 
8539
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
 
8540
])# _LT_WITH_PIC
 
8541
 
 
8542
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
 
8543
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
 
8544
 
 
8545
# Old name:
 
8546
AU_DEFUN([AC_LIBTOOL_PICMODE],
 
8547
[_LT_SET_OPTION([LT_INIT], [pic-only])
 
8548
AC_DIAGNOSE([obsolete],
 
8549
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8550
put the `pic-only' option into LT_INIT's first parameter.])
 
8551
])
 
8552
 
 
8553
dnl aclocal-1.4 backwards compatibility:
 
8554
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
 
8555
 
 
8556
 
 
8557
m4_define([_LTDL_MODE], [])
 
8558
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
 
8559
                 [m4_define([_LTDL_MODE], [nonrecursive])])
 
8560
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
 
8561
                 [m4_define([_LTDL_MODE], [recursive])])
 
8562
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
 
8563
                 [m4_define([_LTDL_MODE], [subproject])])
 
8564
 
 
8565
m4_define([_LTDL_TYPE], [])
 
8566
LT_OPTION_DEFINE([LTDL_INIT], [installable],
 
8567
                 [m4_define([_LTDL_TYPE], [installable])])
 
8568
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
 
8569
                 [m4_define([_LTDL_TYPE], [convenience])])
 
8570
 
 
8571
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
 
8572
#
 
8573
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8574
# Written by Gary V. Vaughan, 2004
 
8575
#
 
8576
# This file is free software; the Free Software Foundation gives
 
8577
# unlimited permission to copy and/or distribute it, with or without
 
8578
# modifications, as long as this notice is preserved.
 
8579
 
 
8580
# serial 6 ltsugar.m4
 
8581
 
 
8582
# This is to help aclocal find these macros, as it can't see m4_define.
 
8583
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
 
8584
 
 
8585
 
 
8586
# lt_join(SEP, ARG1, [ARG2...])
 
8587
# -----------------------------
 
8588
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
 
8589
# associated separator.
 
8590
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
 
8591
# versions in m4sugar had bugs.
 
8592
m4_define([lt_join],
 
8593
[m4_if([$#], [1], [],
 
8594
       [$#], [2], [[$2]],
 
8595
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
 
8596
m4_define([_lt_join],
 
8597
[m4_if([$#$2], [2], [],
 
8598
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
 
8599
 
 
8600
 
 
8601
# lt_car(LIST)
 
8602
# lt_cdr(LIST)
 
8603
# ------------
 
8604
# Manipulate m4 lists.
 
8605
# These macros are necessary as long as will still need to support
 
8606
# Autoconf-2.59 which quotes differently.
 
8607
m4_define([lt_car], [[$1]])
 
8608
m4_define([lt_cdr],
 
8609
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
 
8610
       [$#], 1, [],
 
8611
       [m4_dquote(m4_shift($@))])])
 
8612
m4_define([lt_unquote], $1)
 
8613
 
 
8614
 
 
8615
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
 
8616
# ------------------------------------------
 
8617
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
 
8618
# Note that neither SEPARATOR nor STRING are expanded; they are appended
 
8619
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
 
8620
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
 
8621
# than defined and empty).
 
8622
#
 
8623
# This macro is needed until we can rely on Autoconf 2.62, since earlier
 
8624
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
 
8625
m4_define([lt_append],
 
8626
[m4_define([$1],
 
8627
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
 
8628
 
 
8629
 
 
8630
 
 
8631
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
 
8632
# ----------------------------------------------------------
 
8633
# Produce a SEP delimited list of all paired combinations of elements of
 
8634
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
 
8635
# has the form PREFIXmINFIXSUFFIXn.
 
8636
# Needed until we can rely on m4_combine added in Autoconf 2.62.
 
8637
m4_define([lt_combine],
 
8638
[m4_if(m4_eval([$# > 3]), [1],
 
8639
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
 
8640
[[m4_foreach([_Lt_prefix], [$2],
 
8641
             [m4_foreach([_Lt_suffix],
 
8642
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
 
8643
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
 
8644
 
 
8645
 
 
8646
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
 
8647
# -----------------------------------------------------------------------
 
8648
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
 
8649
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
 
8650
m4_define([lt_if_append_uniq],
 
8651
[m4_ifdef([$1],
 
8652
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
 
8653
                 [lt_append([$1], [$2], [$3])$4],
 
8654
                 [$5])],
 
8655
          [lt_append([$1], [$2], [$3])$4])])
 
8656
 
 
8657
 
 
8658
# lt_dict_add(DICT, KEY, VALUE)
 
8659
# -----------------------------
 
8660
m4_define([lt_dict_add],
 
8661
[m4_define([$1($2)], [$3])])
 
8662
 
 
8663
 
 
8664
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
 
8665
# --------------------------------------------
 
8666
m4_define([lt_dict_add_subkey],
 
8667
[m4_define([$1($2:$3)], [$4])])
 
8668
 
 
8669
 
 
8670
# lt_dict_fetch(DICT, KEY, [SUBKEY])
 
8671
# ----------------------------------
 
8672
m4_define([lt_dict_fetch],
 
8673
[m4_ifval([$3],
 
8674
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
 
8675
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
 
8676
 
 
8677
 
 
8678
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
 
8679
# -----------------------------------------------------------------
 
8680
m4_define([lt_if_dict_fetch],
 
8681
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
 
8682
        [$5],
 
8683
    [$6])])
 
8684
 
 
8685
 
 
8686
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
 
8687
# --------------------------------------------------------------
 
8688
m4_define([lt_dict_filter],
 
8689
[m4_if([$5], [], [],
 
8690
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
 
8691
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
 
8692
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
 
8693
])
 
8694
 
 
8695
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
 
8696
#
 
8697
#   Copyright (C) 2004 Free Software Foundation, Inc.
 
8698
#   Written by Scott James Remnant, 2004
 
8699
#
 
8700
# This file is free software; the Free Software Foundation gives
 
8701
# unlimited permission to copy and/or distribute it, with or without
 
8702
# modifications, as long as this notice is preserved.
 
8703
 
 
8704
# Generated from ltversion.in.
 
8705
 
 
8706
# serial 3012 ltversion.m4
 
8707
# This file is part of GNU Libtool
 
8708
 
 
8709
m4_define([LT_PACKAGE_VERSION], [2.2.6])
 
8710
m4_define([LT_PACKAGE_REVISION], [1.3012])
 
8711
 
 
8712
AC_DEFUN([LTVERSION_VERSION],
 
8713
[macro_version='2.2.6'
 
8714
macro_revision='1.3012'
 
8715
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
 
8716
_LT_DECL(, macro_revision, 0)
 
8717
])
 
8718
 
 
8719
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
 
8720
#
 
8721
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
8722
#   Written by Scott James Remnant, 2004.
 
8723
#
 
8724
# This file is free software; the Free Software Foundation gives
 
8725
# unlimited permission to copy and/or distribute it, with or without
 
8726
# modifications, as long as this notice is preserved.
 
8727
 
 
8728
# serial 4 lt~obsolete.m4
 
8729
 
 
8730
# These exist entirely to fool aclocal when bootstrapping libtool.
 
8731
#
 
8732
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
 
8733
# which have later been changed to m4_define as they aren't part of the
 
8734
# exported API, or moved to Autoconf or Automake where they belong.
 
8735
#
 
8736
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
 
8737
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
 
8738
# using a macro with the same name in our local m4/libtool.m4 it'll
 
8739
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
 
8740
# and doesn't know about Autoconf macros at all.)
 
8741
#
 
8742
# So we provide this file, which has a silly filename so it's always
 
8743
# included after everything else.  This provides aclocal with the
 
8744
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
 
8745
# because those macros already exist, or will be overwritten later.
 
8746
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
 
8747
#
 
8748
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
 
8749
# Yes, that means every name once taken will need to remain here until
 
8750
# we give up compatibility with versions before 1.7, at which point
 
8751
# we need to keep only those names which we still refer to.
 
8752
 
 
8753
# This is to help aclocal find these macros, as it can't see m4_define.
 
8754
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
 
8755
 
 
8756
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
 
8757
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
 
8758
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
 
8759
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
 
8760
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
 
8761
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
 
8762
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
 
8763
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
 
8764
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
 
8765
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
 
8766
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
 
8767
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
 
8768
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
 
8769
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
 
8770
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
 
8771
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
 
8772
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
 
8773
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
 
8774
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
 
8775
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
 
8776
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
 
8777
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
 
8778
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
 
8779
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
 
8780
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
 
8781
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
 
8782
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
 
8783
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
 
8784
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
 
8785
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
 
8786
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
 
8787
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
 
8788
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
 
8789
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
 
8790
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
 
8791
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
 
8792
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
 
8793
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
 
8794
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
 
8795
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
 
8796
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
 
8797
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
 
8798
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
 
8799
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
 
8800
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
 
8801
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
 
8802
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
 
8803
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
 
8804
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
 
8805
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
 
8806
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
 
8807
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
 
8808
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
 
8809
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
 
8810
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
8811
 
 
8812
# nls.m4 serial 3 (gettext-0.15)
 
8813
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
 
8814
dnl This file is free software; the Free Software Foundation
 
8815
dnl gives unlimited permission to copy and/or distribute it,
 
8816
dnl with or without modifications, as long as this notice is preserved.
 
8817
dnl
 
8818
dnl This file can can be used in projects which are not available under
 
8819
dnl the GNU General Public License or the GNU Library General Public
 
8820
dnl License but which still want to provide support for the GNU gettext
 
8821
dnl functionality.
 
8822
dnl Please note that the actual code of the GNU gettext library is covered
 
8823
dnl by the GNU Library General Public License, and the rest of the GNU
 
8824
dnl gettext package package is covered by the GNU General Public License.
 
8825
dnl They are *not* in the public domain.
 
8826
 
 
8827
dnl Authors:
 
8828
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
8829
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
8830
 
 
8831
AC_PREREQ(2.50)
 
8832
 
 
8833
AC_DEFUN([AM_NLS],
 
8834
[
 
8835
  AC_MSG_CHECKING([whether NLS is requested])
 
8836
  dnl Default is enabled NLS
 
8837
  AC_ARG_ENABLE(nls,
 
8838
    [  --disable-nls           do not use Native Language Support],
 
8839
    USE_NLS=$enableval, USE_NLS=yes)
 
8840
  AC_MSG_RESULT($USE_NLS)
 
8841
  AC_SUBST(USE_NLS)
6837
8842
])
6838
8843
 
6839
8844
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
6992
8997
fi[]dnl
6993
8998
])# PKG_CHECK_MODULES
6994
8999
 
6995
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
 
9000
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6996
9001
#
6997
9002
# This file is free software; the Free Software Foundation
6998
9003
# gives unlimited permission to copy and/or distribute it,
7007
9012
[am__api_version='1.10'
7008
9013
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
7009
9014
dnl require some minimum version.  Point them to the right macro.
7010
 
m4_if([$1], [1.10.1], [],
 
9015
m4_if([$1], [1.10.2], [],
7011
9016
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
7012
9017
])
7013
9018
 
7021
9026
# AM_SET_CURRENT_AUTOMAKE_VERSION
7022
9027
# -------------------------------
7023
9028
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
7024
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
9029
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
7025
9030
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
7026
 
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
9031
[AM_AUTOMAKE_VERSION([1.10.2])dnl
7027
9032
m4_ifndef([AC_AUTOCONF_VERSION],
7028
9033
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
7029
 
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
 
9034
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
7030
9035
 
7031
9036
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
7032
9037
 
7276
9281
 
7277
9282
# Generate code to set up dependency tracking.              -*- Autoconf -*-
7278
9283
 
7279
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
9284
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
7280
9285
# Free Software Foundation, Inc.
7281
9286
#
7282
9287
# This file is free software; the Free Software Foundation
7283
9288
# gives unlimited permission to copy and/or distribute it,
7284
9289
# with or without modifications, as long as this notice is preserved.
7285
9290
 
7286
 
#serial 3
 
9291
#serial 4
7287
9292
 
7288
9293
# _AM_OUTPUT_DEPENDENCY_COMMANDS
7289
9294
# ------------------------------
7290
9295
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
7291
 
[for mf in $CONFIG_FILES; do
 
9296
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
 
9297
# are listed without --file.  Let's play safe and only enable the eval
 
9298
# if we detect the quoting.
 
9299
case $CONFIG_FILES in
 
9300
*\'*) eval set x "$CONFIG_FILES" ;;
 
9301
*)   set x $CONFIG_FILES ;;
 
9302
esac
 
9303
shift
 
9304
for mf
 
9305
do
7292
9306
  # Strip MF so we end up with the name of the file.
7293
9307
  mf=`echo "$mf" | sed -e 's/:.*$//'`
7294
9308
  # Check whether this is an Automake generated Makefile or not.
7670
9684
 
7671
9685
# Helper functions for option handling.                     -*- Autoconf -*-
7672
9686
 
7673
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
9687
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
7674
9688
#
7675
9689
# This file is free software; the Free Software Foundation
7676
9690
# gives unlimited permission to copy and/or distribute it,
7677
9691
# with or without modifications, as long as this notice is preserved.
7678
9692
 
7679
 
# serial 3
 
9693
# serial 4
7680
9694
 
7681
9695
# _AM_MANGLE_OPTION(NAME)
7682
9696
# -----------------------
7693
9707
# ----------------------------------
7694
9708
# OPTIONS is a space-separated list of Automake options.
7695
9709
AC_DEFUN([_AM_SET_OPTIONS],
7696
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
9710
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7697
9711
 
7698
9712
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7699
9713
# -------------------------------------------
7889
9903
AC_SUBST([am__untar])
7890
9904
]) # _AM_PROG_TAR
7891
9905
 
7892
 
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
7893
 
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
7894
 
#
7895
 
# This file is free software, distributed under the terms of the GNU
7896
 
# General Public License.  As a special exception to the GNU General
7897
 
# Public License, this file may be distributed as part of a program
7898
 
# that contains a configuration script generated by Autoconf, under
7899
 
# the same distribution terms as the rest of that program.
7900
 
#
7901
 
# This file can be copied and used freely without restrictions.  It can
7902
 
# be used in projects which are not available under the GNU Public License
7903
 
# but which still want to provide support for the GNU gettext functionality.
7904
 
#
7905
 
# Macro to add for using GNU gettext.
7906
 
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
7907
 
#
7908
 
# Modified to never use included libintl. 
7909
 
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
7910
 
#
7911
 
# Major rework to remove unused code
7912
 
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
7913
 
#
7914
 
# Added better handling of ALL_LINGUAS from GNU gettext version 
7915
 
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
7916
 
#
7917
 
# Modified to require ngettext
7918
 
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
7919
 
#
7920
 
# We need this here as well, since someone might use autoconf-2.5x
7921
 
# to configure GLib then an older version to configure a package
7922
 
# using AM_GLIB_GNU_GETTEXT
7923
 
AC_PREREQ(2.53)
7924
 
 
7925
 
dnl
7926
 
dnl We go to great lengths to make sure that aclocal won't 
7927
 
dnl try to pull in the installed version of these macros
7928
 
dnl when running aclocal in the glib directory.
7929
 
dnl
7930
 
m4_copy([AC_DEFUN],[glib_DEFUN])
7931
 
m4_copy([AC_REQUIRE],[glib_REQUIRE])
7932
 
dnl
7933
 
dnl At the end, if we're not within glib, we'll define the public
7934
 
dnl definitions in terms of our private definitions.
7935
 
dnl
7936
 
 
7937
 
# GLIB_LC_MESSAGES
7938
 
#--------------------
7939
 
glib_DEFUN([GLIB_LC_MESSAGES],
7940
 
  [AC_CHECK_HEADERS([locale.h])
7941
 
    if test $ac_cv_header_locale_h = yes; then
7942
 
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
7943
 
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
7944
 
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
7945
 
    if test $am_cv_val_LC_MESSAGES = yes; then
7946
 
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
7947
 
        [Define if your <locale.h> file defines LC_MESSAGES.])
7948
 
    fi
7949
 
  fi])
7950
 
 
7951
 
# GLIB_PATH_PROG_WITH_TEST
7952
 
#----------------------------
7953
 
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
7954
 
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
7955
 
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
7956
 
[# Extract the first word of "$2", so it can be a program name with args.
7957
 
set dummy $2; ac_word=[$]2
7958
 
AC_MSG_CHECKING([for $ac_word])
7959
 
AC_CACHE_VAL(ac_cv_path_$1,
7960
 
[case "[$]$1" in
7961
 
  /*)
7962
 
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
7963
 
  ;;
7964
 
  *)
7965
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7966
 
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
7967
 
    test -z "$ac_dir" && ac_dir=.
7968
 
    if test -f $ac_dir/$ac_word; then
7969
 
      if [$3]; then
7970
 
        ac_cv_path_$1="$ac_dir/$ac_word"
7971
 
        break
7972
 
      fi
7973
 
    fi
7974
 
  done
7975
 
  IFS="$ac_save_ifs"
7976
 
dnl If no 4th arg is given, leave the cache variable unset,
7977
 
dnl so AC_PATH_PROGS will keep looking.
7978
 
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
7979
 
])dnl
7980
 
  ;;
7981
 
esac])dnl
7982
 
$1="$ac_cv_path_$1"
7983
 
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
7984
 
  AC_MSG_RESULT([$]$1)
7985
 
else
7986
 
  AC_MSG_RESULT(no)
7987
 
fi
7988
 
AC_SUBST($1)dnl
7989
 
])
7990
 
 
7991
 
# GLIB_WITH_NLS
7992
 
#-----------------
7993
 
glib_DEFUN([GLIB_WITH_NLS],
7994
 
  dnl NLS is obligatory
7995
 
  [USE_NLS=yes
7996
 
    AC_SUBST(USE_NLS)
7997
 
 
7998
 
    gt_cv_have_gettext=no
7999
 
 
8000
 
    CATOBJEXT=NONE
8001
 
    XGETTEXT=:
8002
 
    INTLLIBS=
8003
 
 
8004
 
    AC_CHECK_HEADER(libintl.h,
8005
 
     [gt_cv_func_dgettext_libintl="no"
8006
 
      libintl_extra_libs=""
8007
 
 
8008
 
      #
8009
 
      # First check in libc
8010
 
      #
8011
 
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
8012
 
        [AC_TRY_LINK([
8013
 
#include <libintl.h>
8014
 
],
8015
 
         [return !ngettext ("","", 1)],
8016
 
          gt_cv_func_ngettext_libc=yes,
8017
 
          gt_cv_func_ngettext_libc=no)
8018
 
        ])
8019
 
  
8020
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8021
 
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
8022
 
                [AC_TRY_LINK([
8023
 
#include <libintl.h>
8024
 
],
8025
 
                  [return !dgettext ("","")],
8026
 
                  gt_cv_func_dgettext_libc=yes,
8027
 
                  gt_cv_func_dgettext_libc=no)
8028
 
                ])
8029
 
      fi
8030
 
  
8031
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8032
 
        AC_CHECK_FUNCS(bind_textdomain_codeset)
8033
 
      fi
8034
 
 
8035
 
      #
8036
 
      # If we don't have everything we want, check in libintl
8037
 
      #
8038
 
      if test "$gt_cv_func_dgettext_libc" != "yes" \
8039
 
         || test "$gt_cv_func_ngettext_libc" != "yes" \
8040
 
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
8041
 
        
8042
 
        AC_CHECK_LIB(intl, bindtextdomain,
8043
 
            [AC_CHECK_LIB(intl, ngettext,
8044
 
                    [AC_CHECK_LIB(intl, dgettext,
8045
 
                                  gt_cv_func_dgettext_libintl=yes)])])
8046
 
 
8047
 
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
8048
 
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
8049
 
          AC_MSG_RESULT([])
8050
 
          AC_CHECK_LIB(intl, ngettext,
8051
 
                [AC_CHECK_LIB(intl, dcgettext,
8052
 
                       [gt_cv_func_dgettext_libintl=yes
8053
 
                        libintl_extra_libs=-liconv],
8054
 
                        :,-liconv)],
8055
 
                :,-liconv)
8056
 
        fi
8057
 
 
8058
 
        #
8059
 
        # If we found libintl, then check in it for bind_textdomain_codeset();
8060
 
        # we'll prefer libc if neither have bind_textdomain_codeset(),
8061
 
        # and both have dgettext and ngettext
8062
 
        #
8063
 
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
8064
 
          glib_save_LIBS="$LIBS"
8065
 
          LIBS="$LIBS -lintl $libintl_extra_libs"
8066
 
          unset ac_cv_func_bind_textdomain_codeset
8067
 
          AC_CHECK_FUNCS(bind_textdomain_codeset)
8068
 
          LIBS="$glib_save_LIBS"
8069
 
 
8070
 
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
8071
 
            gt_cv_func_dgettext_libc=no
8072
 
          else
8073
 
            if test "$gt_cv_func_dgettext_libc" = "yes" \
8074
 
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
8075
 
              gt_cv_func_dgettext_libintl=no
8076
 
            fi
8077
 
          fi
8078
 
        fi
8079
 
      fi
8080
 
 
8081
 
      if test "$gt_cv_func_dgettext_libc" = "yes" \
8082
 
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8083
 
        gt_cv_have_gettext=yes
8084
 
      fi
8085
 
  
8086
 
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8087
 
        INTLLIBS="-lintl $libintl_extra_libs"
8088
 
      fi
8089
 
  
8090
 
      if test "$gt_cv_have_gettext" = "yes"; then
8091
 
        AC_DEFINE(HAVE_GETTEXT,1,
8092
 
          [Define if the GNU gettext() function is already present or preinstalled.])
8093
 
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
8094
 
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
8095
 
        if test "$MSGFMT" != "no"; then
8096
 
          glib_save_LIBS="$LIBS"
8097
 
          LIBS="$LIBS $INTLLIBS"
8098
 
          AC_CHECK_FUNCS(dcgettext)
8099
 
          MSGFMT_OPTS=
8100
 
          AC_MSG_CHECKING([if msgfmt accepts -c])
8101
 
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
8102
 
msgid ""
8103
 
msgstr ""
8104
 
"Content-Type: text/plain; charset=UTF-8\n"
8105
 
"Project-Id-Version: test 1.0\n"
8106
 
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
8107
 
"Last-Translator: test <foo@bar.xx>\n"
8108
 
"Language-Team: C <LL@li.org>\n"
8109
 
"MIME-Version: 1.0\n"
8110
 
"Content-Transfer-Encoding: 8bit\n"
8111
 
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
8112
 
          AC_SUBST(MSGFMT_OPTS)
8113
 
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
8114
 
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
8115
 
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
8116
 
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
8117
 
                         return _nl_msg_cat_cntr],
8118
 
            [CATOBJEXT=.gmo 
8119
 
             DATADIRNAME=share],
8120
 
            [case $host in
8121
 
            *-*-solaris*)
8122
 
            dnl On Solaris, if bind_textdomain_codeset is in libc,
8123
 
            dnl GNU format message catalog is always supported,
8124
 
            dnl since both are added to the libc all together.
8125
 
            dnl Hence, we'd like to go with DATADIRNAME=share and
8126
 
            dnl and CATOBJEXT=.gmo in this case.
8127
 
            AC_CHECK_FUNC(bind_textdomain_codeset,
8128
 
              [CATOBJEXT=.gmo 
8129
 
               DATADIRNAME=share],
8130
 
              [CATOBJEXT=.mo
8131
 
               DATADIRNAME=lib])
8132
 
            ;;
8133
 
            *)
8134
 
            CATOBJEXT=.mo
8135
 
            DATADIRNAME=lib
8136
 
            ;;
8137
 
            esac])
8138
 
          LIBS="$glib_save_LIBS"
8139
 
          INSTOBJEXT=.mo
8140
 
        else
8141
 
          gt_cv_have_gettext=no
8142
 
        fi
8143
 
      fi
8144
 
    ])
8145
 
 
8146
 
    if test "$gt_cv_have_gettext" = "yes" ; then
8147
 
      AC_DEFINE(ENABLE_NLS, 1,
8148
 
        [always defined to indicate that i18n is enabled])
8149
 
    fi
8150
 
 
8151
 
    dnl Test whether we really found GNU xgettext.
8152
 
    if test "$XGETTEXT" != ":"; then
8153
 
      dnl If it is not GNU xgettext we define it as : so that the
8154
 
      dnl Makefiles still can work.
8155
 
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8156
 
        : ;
8157
 
      else
8158
 
        AC_MSG_RESULT(
8159
 
          [found xgettext program is not GNU xgettext; ignore it])
8160
 
        XGETTEXT=":"
8161
 
      fi
8162
 
    fi
8163
 
 
8164
 
    # We need to process the po/ directory.
8165
 
    POSUB=po
8166
 
 
8167
 
    AC_OUTPUT_COMMANDS(
8168
 
      [case "$CONFIG_FILES" in *po/Makefile.in*)
8169
 
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
8170
 
      esac])
8171
 
 
8172
 
    dnl These rules are solely for the distribution goal.  While doing this
8173
 
    dnl we only have to keep exactly one list of the available catalogs
8174
 
    dnl in configure.in.
8175
 
    for lang in $ALL_LINGUAS; do
8176
 
      GMOFILES="$GMOFILES $lang.gmo"
8177
 
      POFILES="$POFILES $lang.po"
8178
 
    done
8179
 
 
8180
 
    dnl Make all variables we use known to autoconf.
8181
 
    AC_SUBST(CATALOGS)
8182
 
    AC_SUBST(CATOBJEXT)
8183
 
    AC_SUBST(DATADIRNAME)
8184
 
    AC_SUBST(GMOFILES)
8185
 
    AC_SUBST(INSTOBJEXT)
8186
 
    AC_SUBST(INTLLIBS)
8187
 
    AC_SUBST(PO_IN_DATADIR_TRUE)
8188
 
    AC_SUBST(PO_IN_DATADIR_FALSE)
8189
 
    AC_SUBST(POFILES)
8190
 
    AC_SUBST(POSUB)
8191
 
  ])
8192
 
 
8193
 
# AM_GLIB_GNU_GETTEXT
8194
 
# -------------------
8195
 
# Do checks necessary for use of gettext. If a suitable implementation 
8196
 
# of gettext is found in either in libintl or in the C library,
8197
 
# it will set INTLLIBS to the libraries needed for use of gettext
8198
 
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
8199
 
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
8200
 
# on various variables needed by the Makefile.in.in installed by 
8201
 
# glib-gettextize.
8202
 
dnl
8203
 
glib_DEFUN([GLIB_GNU_GETTEXT],
8204
 
  [AC_REQUIRE([AC_PROG_CC])dnl
8205
 
   AC_REQUIRE([AC_HEADER_STDC])dnl
8206
 
   
8207
 
   GLIB_LC_MESSAGES
8208
 
   GLIB_WITH_NLS
8209
 
 
8210
 
   if test "$gt_cv_have_gettext" = "yes"; then
8211
 
     if test "x$ALL_LINGUAS" = "x"; then
8212
 
       LINGUAS=
8213
 
     else
8214
 
       AC_MSG_CHECKING(for catalogs to be installed)
8215
 
       NEW_LINGUAS=
8216
 
       for presentlang in $ALL_LINGUAS; do
8217
 
         useit=no
8218
 
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
8219
 
           desiredlanguages="$LINGUAS"
8220
 
         else
8221
 
           desiredlanguages="$ALL_LINGUAS"
8222
 
         fi
8223
 
         for desiredlang in $desiredlanguages; do
8224
 
           # Use the presentlang catalog if desiredlang is
8225
 
           #   a. equal to presentlang, or
8226
 
           #   b. a variant of presentlang (because in this case,
8227
 
           #      presentlang can be used as a fallback for messages
8228
 
           #      which are not translated in the desiredlang catalog).
8229
 
           case "$desiredlang" in
8230
 
             "$presentlang"*) useit=yes;;
8231
 
           esac
8232
 
         done
8233
 
         if test $useit = yes; then
8234
 
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8235
 
         fi
8236
 
       done
8237
 
       LINGUAS=$NEW_LINGUAS
8238
 
       AC_MSG_RESULT($LINGUAS)
8239
 
     fi
8240
 
 
8241
 
     dnl Construct list of names of catalog files to be constructed.
8242
 
     if test -n "$LINGUAS"; then
8243
 
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8244
 
     fi
8245
 
   fi
8246
 
 
8247
 
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
8248
 
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
8249
 
   dnl Try to locate is.
8250
 
   MKINSTALLDIRS=
8251
 
   if test -n "$ac_aux_dir"; then
8252
 
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8253
 
   fi
8254
 
   if test -z "$MKINSTALLDIRS"; then
8255
 
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8256
 
   fi
8257
 
   AC_SUBST(MKINSTALLDIRS)
8258
 
 
8259
 
   dnl Generate list of files to be processed by xgettext which will
8260
 
   dnl be included in po/Makefile.
8261
 
   test -d po || mkdir po
8262
 
   if test "x$srcdir" != "x."; then
8263
 
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8264
 
       posrcprefix="$srcdir/"
8265
 
     else
8266
 
       posrcprefix="../$srcdir/"
8267
 
     fi
8268
 
   else
8269
 
     posrcprefix="../"
8270
 
   fi
8271
 
   rm -f po/POTFILES
8272
 
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8273
 
        < $srcdir/po/POTFILES.in > po/POTFILES
8274
 
  ])
8275
 
 
8276
 
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
8277
 
# -------------------------------
8278
 
# Define VARIABLE to the location where catalog files will
8279
 
# be installed by po/Makefile.
8280
 
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
8281
 
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
8282
 
glib_save_prefix="$prefix"
8283
 
glib_save_exec_prefix="$exec_prefix"
8284
 
glib_save_datarootdir="$datarootdir"
8285
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
8286
 
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
8287
 
datarootdir=`eval echo "${datarootdir}"`
8288
 
if test "x$CATOBJEXT" = "x.mo" ; then
8289
 
  localedir=`eval echo "${libdir}/locale"`
8290
 
else
8291
 
  localedir=`eval echo "${datadir}/locale"`
8292
 
fi
8293
 
prefix="$glib_save_prefix"
8294
 
exec_prefix="$glib_save_exec_prefix"
8295
 
datarootdir="$glib_save_datarootdir"
8296
 
AC_DEFINE_UNQUOTED($1, "$localedir",
8297
 
  [Define the location where the catalogs will be installed])
8298
 
])
8299
 
 
8300
 
dnl
8301
 
dnl Now the definitions that aclocal will find
8302
 
dnl
8303
 
ifdef(glib_configure_in,[],[
8304
 
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
8305
 
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
8306
 
])dnl
8307
 
 
8308
 
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
8309
 
8310
 
# Create a temporary file with TEST-FILE as its contents and pass the
8311
 
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
8312
 
# 0 and perform ACTION-IF-FAIL for any other exit status.
8313
 
AC_DEFUN([GLIB_RUN_PROG],
8314
 
[cat >conftest.foo <<_ACEOF
8315
 
$2
8316
 
_ACEOF
8317
 
if AC_RUN_LOG([$1 conftest.foo]); then
8318
 
  m4_ifval([$3], [$3], [:])
8319
 
m4_ifvaln([$4], [else $4])dnl
8320
 
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
8321
 
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
8322
 
fi])
8323
 
 
8324
 
 
8325
 
# gnome-common.m4
8326
 
8327
 
 
8328
 
dnl GNOME_COMMON_INIT
8329
 
 
8330
 
AC_DEFUN([GNOME_COMMON_INIT],
8331
 
[
8332
 
  dnl this macro should come after AC_CONFIG_MACRO_DIR
8333
 
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
8334
 
 
8335
 
  dnl ensure that when the Automake generated makefile calls aclocal,
8336
 
  dnl it honours the $ACLOCAL_FLAGS environment variable
8337
 
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
8338
 
  if test -n "$ac_macro_dir"; then
8339
 
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
8340
 
  fi
8341
 
 
8342
 
  AC_SUBST([ACLOCAL_AMFLAGS])
8343
 
])
8344
 
 
8345
 
AC_DEFUN([GNOME_DEBUG_CHECK],
8346
 
[
8347
 
        AC_ARG_ENABLE([debug],
8348
 
                      AC_HELP_STRING([--enable-debug],
8349
 
                                     [turn on debugging]),,
8350
 
                      [enable_debug=no])
8351
 
 
8352
 
        if test x$enable_debug = xyes ; then
8353
 
            AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
8354
 
                [Enable additional debugging at the expense of performance and size])
8355
 
        fi
8356
 
])
8357
 
 
8358
 
dnl GNOME_MAINTAINER_MODE_DEFINES ()
8359
 
dnl define DISABLE_DEPRECATED
8360
 
dnl
8361
 
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
8362
 
[
8363
 
        AC_REQUIRE([AM_MAINTAINER_MODE])
8364
 
 
8365
 
        if test $USE_MAINTAINER_MODE = yes; then
8366
 
                DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGCONF_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -DGNOME_VFS_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED"
8367
 
        else
8368
 
                DISABLE_DEPRECATED=""
8369
 
        fi
8370
 
        AC_SUBST(DISABLE_DEPRECATED)
8371
 
])
8372
 
 
8373
 
dnl GNOME_COMPILE_WARNINGS
8374
 
dnl Turn on many useful compiler warnings
8375
 
dnl For now, only works on GCC
8376
 
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
8377
 
    dnl ******************************
8378
 
    dnl More compiler warnings
8379
 
    dnl ******************************
8380
 
 
8381
 
    AC_ARG_ENABLE(compile-warnings, 
8382
 
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
8383
 
                                 [Turn on compiler warnings]),,
8384
 
                  [enable_compile_warnings="m4_default([$1],[yes])"])
8385
 
 
8386
 
    warnCFLAGS=
8387
 
    if test "x$GCC" != xyes; then
8388
 
        enable_compile_warnings=no
8389
 
    fi
8390
 
 
8391
 
    warning_flags=
8392
 
    realsave_CFLAGS="$CFLAGS"
8393
 
 
8394
 
    case "$enable_compile_warnings" in
8395
 
    no)
8396
 
        warning_flags=
8397
 
        ;;
8398
 
    minimum)
8399
 
        warning_flags="-Wall"
8400
 
        ;;
8401
 
    yes)
8402
 
        warning_flags="-Wall -Wmissing-prototypes"
8403
 
        ;;
8404
 
    maximum|error)
8405
 
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
8406
 
        CFLAGS="$warning_flags $CFLAGS"
8407
 
        for option in -Wno-sign-compare; do
8408
 
                SAVE_CFLAGS="$CFLAGS"
8409
 
                CFLAGS="$CFLAGS $option"
8410
 
                AC_MSG_CHECKING([whether gcc understands $option])
8411
 
                AC_TRY_COMPILE([], [],
8412
 
                        has_option=yes,
8413
 
                        has_option=no,)
8414
 
                CFLAGS="$SAVE_CFLAGS"
8415
 
                AC_MSG_RESULT($has_option)
8416
 
                if test $has_option = yes; then
8417
 
                  warning_flags="$warning_flags $option"
8418
 
                fi
8419
 
                unset has_option
8420
 
                unset SAVE_CFLAGS
8421
 
        done
8422
 
        unset option
8423
 
        if test "$enable_compile_warnings" = "error" ; then
8424
 
            warning_flags="$warning_flags -Werror"
8425
 
        fi
8426
 
        ;;
8427
 
    *)
8428
 
        AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
8429
 
        ;;
8430
 
    esac
8431
 
    CFLAGS="$realsave_CFLAGS"
8432
 
    AC_MSG_CHECKING(what warning flags to pass to the C compiler)
8433
 
    AC_MSG_RESULT($warning_flags)
8434
 
 
8435
 
    AC_ARG_ENABLE(iso-c,
8436
 
                  AC_HELP_STRING([--enable-iso-c],
8437
 
                                 [Try to warn if code is not ISO C ]),,
8438
 
                  [enable_iso_c=no])
8439
 
 
8440
 
    AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
8441
 
    complCFLAGS=
8442
 
    if test "x$enable_iso_c" != "xno"; then
8443
 
        if test "x$GCC" = "xyes"; then
8444
 
        case " $CFLAGS " in
8445
 
            *[\ \       ]-ansi[\ \      ]*) ;;
8446
 
            *) complCFLAGS="$complCFLAGS -ansi" ;;
8447
 
        esac
8448
 
        case " $CFLAGS " in
8449
 
            *[\ \       ]-pedantic[\ \  ]*) ;;
8450
 
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
8451
 
        esac
8452
 
        fi
8453
 
    fi
8454
 
    AC_MSG_RESULT($complCFLAGS)
8455
 
 
8456
 
    WARN_CFLAGS="$warning_flags $complCFLAGS"
8457
 
    AC_SUBST(WARN_CFLAGS)
8458
 
])
8459
 
 
8460
 
dnl For C++, do basically the same thing.
8461
 
 
8462
 
AC_DEFUN([GNOME_CXX_WARNINGS],[
8463
 
  AC_ARG_ENABLE(cxx-warnings,
8464
 
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
8465
 
                               [Turn on compiler warnings.]),,
8466
 
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
8467
 
 
8468
 
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
8469
 
  warnCXXFLAGS=
8470
 
  if test "x$GXX" != xyes; then
8471
 
    enable_cxx_warnings=no
8472
 
  fi
8473
 
  if test "x$enable_cxx_warnings" != "xno"; then
8474
 
    if test "x$GXX" = "xyes"; then
8475
 
      case " $CXXFLAGS " in
8476
 
      *[\ \     ]-Wall[\ \      ]*) ;;
8477
 
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
8478
 
      esac
8479
 
 
8480
 
      ## -W is not all that useful.  And it cannot be controlled
8481
 
      ## with individual -Wno-xxx flags, unlike -Wall
8482
 
      if test "x$enable_cxx_warnings" = "xyes"; then
8483
 
        warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
8484
 
      fi
8485
 
    fi
8486
 
  fi
8487
 
  AC_MSG_RESULT($warnCXXFLAGS)
8488
 
 
8489
 
   AC_ARG_ENABLE(iso-cxx,
8490
 
                 AC_HELP_STRING([--enable-iso-cxx],
8491
 
                                [Try to warn if code is not ISO C++ ]),,
8492
 
                 [enable_iso_cxx=no])
8493
 
 
8494
 
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
8495
 
   complCXXFLAGS=
8496
 
   if test "x$enable_iso_cxx" != "xno"; then
8497
 
     if test "x$GXX" = "xyes"; then
8498
 
      case " $CXXFLAGS " in
8499
 
      *[\ \     ]-ansi[\ \      ]*) ;;
8500
 
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
8501
 
      esac
8502
 
 
8503
 
      case " $CXXFLAGS " in
8504
 
      *[\ \     ]-pedantic[\ \  ]*) ;;
8505
 
      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
8506
 
      esac
8507
 
     fi
8508
 
   fi
8509
 
  AC_MSG_RESULT($complCXXFLAGS)
8510
 
 
8511
 
  WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
8512
 
  AC_SUBST(WARN_CXXFLAGS)
8513
 
])
8514
 
 
8515
 
dnl -*- mode: autoconf -*-
8516
 
 
8517
 
# serial 1
8518
 
 
8519
 
dnl Usage:
8520
 
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
8521
 
AC_DEFUN([GTK_DOC_CHECK],
8522
 
[
8523
 
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
8524
 
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
8525
 
  dnl for overriding the documentation installation directory
8526
 
  AC_ARG_WITH([html-dir],
8527
 
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
8528
 
    [with_html_dir='${datadir}/gtk-doc/html'])
8529
 
  HTML_DIR="$with_html_dir"
8530
 
  AC_SUBST([HTML_DIR])
8531
 
 
8532
 
  dnl enable/disable documentation building
8533
 
  AC_ARG_ENABLE([gtk-doc],
8534
 
    AS_HELP_STRING([--enable-gtk-doc],
8535
 
                   [use gtk-doc to build documentation [[default=no]]]),,
8536
 
    [enable_gtk_doc=no])
8537
 
 
8538
 
  if test x$enable_gtk_doc = xyes; then
8539
 
    ifelse([$1],[],
8540
 
      [PKG_CHECK_EXISTS([gtk-doc],,
8541
 
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
8542
 
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
8543
 
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
8544
 
  fi
8545
 
 
8546
 
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
8547
 
  AC_MSG_RESULT($enable_gtk_doc)
8548
 
 
8549
 
  AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
8550
 
 
8551
 
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
8552
 
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
8553
 
])
8554