~ubuntu-branches/ubuntu/karmic/me-tv/karmic

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Michael Lamothe
  • Date: 2007-12-19 23:30:16 UTC
  • Revision ID: james.westby@ubuntu.com-20071219233016-2ng2clfh00xtlevc
Tags: upstream-0.4.19
ImportĀ upstreamĀ versionĀ 0.4.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
 
2
 
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
4
# 2005, 2006  Free Software Foundation, Inc.
 
5
# This file is free software; the Free Software Foundation
 
6
# gives unlimited permission to copy and/or distribute it,
 
7
# with or without modifications, as long as this notice is preserved.
 
8
 
 
9
# This program is distributed in the hope that it will be useful,
 
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
 
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 
12
# PARTICULAR PURPOSE.
 
13
 
 
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
 
15
[m4_fatal([this file was generated for autoconf 2.61.
 
16
You have another version of autoconf.  If you want to use that,
 
17
you should regenerate the build system entirely.], [63])])
 
18
 
 
19
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
 
20
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
 
21
#
 
22
# This file is free software, distributed under the terms of the GNU
 
23
# General Public License.  As a special exception to the GNU General
 
24
# Public License, this file may be distributed as part of a program
 
25
# that contains a configuration script generated by Autoconf, under
 
26
# the same distribution terms as the rest of that program.
 
27
#
 
28
# This file can be copied and used freely without restrictions.  It can
 
29
# be used in projects which are not available under the GNU Public License
 
30
# but which still want to provide support for the GNU gettext functionality.
 
31
#
 
32
# Macro to add for using GNU gettext.
 
33
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
 
34
#
 
35
# Modified to never use included libintl. 
 
36
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
 
37
#
 
38
# Major rework to remove unused code
 
39
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
 
40
#
 
41
# Added better handling of ALL_LINGUAS from GNU gettext version 
 
42
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
 
43
#
 
44
# Modified to require ngettext
 
45
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
 
46
#
 
47
# We need this here as well, since someone might use autoconf-2.5x
 
48
# to configure GLib then an older version to configure a package
 
49
# using AM_GLIB_GNU_GETTEXT
 
50
AC_PREREQ(2.53)
 
51
 
 
52
dnl
 
53
dnl We go to great lengths to make sure that aclocal won't 
 
54
dnl try to pull in the installed version of these macros
 
55
dnl when running aclocal in the glib directory.
 
56
dnl
 
57
m4_copy([AC_DEFUN],[glib_DEFUN])
 
58
m4_copy([AC_REQUIRE],[glib_REQUIRE])
 
59
dnl
 
60
dnl At the end, if we're not within glib, we'll define the public
 
61
dnl definitions in terms of our private definitions.
 
62
dnl
 
63
 
 
64
# GLIB_LC_MESSAGES
 
65
#--------------------
 
66
glib_DEFUN([GLIB_LC_MESSAGES],
 
67
  [AC_CHECK_HEADERS([locale.h])
 
68
    if test $ac_cv_header_locale_h = yes; then
 
69
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
 
70
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
 
71
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
 
72
    if test $am_cv_val_LC_MESSAGES = yes; then
 
73
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
 
74
        [Define if your <locale.h> file defines LC_MESSAGES.])
 
75
    fi
 
76
  fi])
 
77
 
 
78
# GLIB_PATH_PROG_WITH_TEST
 
79
#----------------------------
 
80
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
 
81
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
 
82
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
 
83
[# Extract the first word of "$2", so it can be a program name with args.
 
84
set dummy $2; ac_word=[$]2
 
85
AC_MSG_CHECKING([for $ac_word])
 
86
AC_CACHE_VAL(ac_cv_path_$1,
 
87
[case "[$]$1" in
 
88
  /*)
 
89
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
 
90
  ;;
 
91
  *)
 
92
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
93
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
 
94
    test -z "$ac_dir" && ac_dir=.
 
95
    if test -f $ac_dir/$ac_word; then
 
96
      if [$3]; then
 
97
        ac_cv_path_$1="$ac_dir/$ac_word"
 
98
        break
 
99
      fi
 
100
    fi
 
101
  done
 
102
  IFS="$ac_save_ifs"
 
103
dnl If no 4th arg is given, leave the cache variable unset,
 
104
dnl so AC_PATH_PROGS will keep looking.
 
105
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
 
106
])dnl
 
107
  ;;
 
108
esac])dnl
 
109
$1="$ac_cv_path_$1"
 
110
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
 
111
  AC_MSG_RESULT([$]$1)
 
112
else
 
113
  AC_MSG_RESULT(no)
 
114
fi
 
115
AC_SUBST($1)dnl
 
116
])
 
117
 
 
118
# GLIB_WITH_NLS
 
119
#-----------------
 
120
glib_DEFUN([GLIB_WITH_NLS],
 
121
  dnl NLS is obligatory
 
122
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
123
    USE_NLS=yes
 
124
    AC_SUBST(USE_NLS)
 
125
 
 
126
    gt_cv_have_gettext=no
 
127
 
 
128
    CATOBJEXT=NONE
 
129
    XGETTEXT=:
 
130
    INTLLIBS=
 
131
 
 
132
    AC_CHECK_HEADER(libintl.h,
 
133
     [gt_cv_func_dgettext_libintl="no"
 
134
      libintl_extra_libs=""
 
135
 
 
136
      #
 
137
      # First check in libc
 
138
      #
 
139
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
 
140
        [AC_TRY_LINK([
 
141
#include <libintl.h>
 
142
],
 
143
         [return !ngettext ("","", 1)],
 
144
          gt_cv_func_ngettext_libc=yes,
 
145
          gt_cv_func_ngettext_libc=no)
 
146
        ])
 
147
  
 
148
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
149
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
 
150
                [AC_TRY_LINK([
 
151
#include <libintl.h>
 
152
],
 
153
                  [return !dgettext ("","")],
 
154
                  gt_cv_func_dgettext_libc=yes,
 
155
                  gt_cv_func_dgettext_libc=no)
 
156
                ])
 
157
      fi
 
158
  
 
159
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
160
        AC_CHECK_FUNCS(bind_textdomain_codeset)
 
161
      fi
 
162
 
 
163
      #
 
164
      # If we don't have everything we want, check in libintl
 
165
      #
 
166
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
167
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
168
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
169
        
 
170
        AC_CHECK_LIB(intl, bindtextdomain,
 
171
            [AC_CHECK_LIB(intl, ngettext,
 
172
                    [AC_CHECK_LIB(intl, dgettext,
 
173
                                  gt_cv_func_dgettext_libintl=yes)])])
 
174
 
 
175
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
176
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
 
177
          AC_MSG_RESULT([])
 
178
          AC_CHECK_LIB(intl, ngettext,
 
179
                [AC_CHECK_LIB(intl, dcgettext,
 
180
                       [gt_cv_func_dgettext_libintl=yes
 
181
                        libintl_extra_libs=-liconv],
 
182
                        :,-liconv)],
 
183
                :,-liconv)
 
184
        fi
 
185
 
 
186
        #
 
187
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
188
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
189
        # and both have dgettext and ngettext
 
190
        #
 
191
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
192
          glib_save_LIBS="$LIBS"
 
193
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
194
          unset ac_cv_func_bind_textdomain_codeset
 
195
          AC_CHECK_FUNCS(bind_textdomain_codeset)
 
196
          LIBS="$glib_save_LIBS"
 
197
 
 
198
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
199
            gt_cv_func_dgettext_libc=no
 
200
          else
 
201
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
202
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
203
              gt_cv_func_dgettext_libintl=no
 
204
            fi
 
205
          fi
 
206
        fi
 
207
      fi
 
208
 
 
209
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
210
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
211
        gt_cv_have_gettext=yes
 
212
      fi
 
213
  
 
214
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
215
        INTLLIBS="-lintl $libintl_extra_libs"
 
216
      fi
 
217
  
 
218
      if test "$gt_cv_have_gettext" = "yes"; then
 
219
        AC_DEFINE(HAVE_GETTEXT,1,
 
220
          [Define if the GNU gettext() function is already present or preinstalled.])
 
221
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
 
222
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
 
223
        if test "$MSGFMT" != "no"; then
 
224
          glib_save_LIBS="$LIBS"
 
225
          LIBS="$LIBS $INTLLIBS"
 
226
          AC_CHECK_FUNCS(dcgettext)
 
227
          MSGFMT_OPTS=
 
228
          AC_MSG_CHECKING([if msgfmt accepts -c])
 
229
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
 
230
msgid ""
 
231
msgstr ""
 
232
"Content-Type: text/plain; charset=UTF-8\n"
 
233
"Project-Id-Version: test 1.0\n"
 
234
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
235
"Last-Translator: test <foo@bar.xx>\n"
 
236
"Language-Team: C <LL@li.org>\n"
 
237
"MIME-Version: 1.0\n"
 
238
"Content-Transfer-Encoding: 8bit\n"
 
239
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
 
240
          AC_SUBST(MSGFMT_OPTS)
 
241
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
242
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
 
243
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
 
244
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
 
245
                         return _nl_msg_cat_cntr],
 
246
            [CATOBJEXT=.gmo 
 
247
             DATADIRNAME=share],
 
248
            [case $host in
 
249
            *-*-solaris*)
 
250
            dnl On Solaris, if bind_textdomain_codeset is in libc,
 
251
            dnl GNU format message catalog is always supported,
 
252
            dnl since both are added to the libc all together.
 
253
            dnl Hence, we'd like to go with DATADIRNAME=share and
 
254
            dnl and CATOBJEXT=.gmo in this case.
 
255
            AC_CHECK_FUNC(bind_textdomain_codeset,
 
256
              [CATOBJEXT=.gmo 
 
257
               DATADIRNAME=share],
 
258
              [CATOBJEXT=.mo
 
259
               DATADIRNAME=lib])
 
260
            ;;
 
261
            *)
 
262
            CATOBJEXT=.mo
 
263
            DATADIRNAME=lib
 
264
            ;;
 
265
            esac])
 
266
          LIBS="$glib_save_LIBS"
 
267
          INSTOBJEXT=.mo
 
268
        else
 
269
          gt_cv_have_gettext=no
 
270
        fi
 
271
      fi
 
272
    ])
 
273
 
 
274
    if test "$gt_cv_have_gettext" = "yes" ; then
 
275
      AC_DEFINE(ENABLE_NLS, 1,
 
276
        [always defined to indicate that i18n is enabled])
 
277
    fi
 
278
 
 
279
    dnl Test whether we really found GNU xgettext.
 
280
    if test "$XGETTEXT" != ":"; then
 
281
      dnl If it is not GNU xgettext we define it as : so that the
 
282
      dnl Makefiles still can work.
 
283
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
284
        : ;
 
285
      else
 
286
        AC_MSG_RESULT(
 
287
          [found xgettext program is not GNU xgettext; ignore it])
 
288
        XGETTEXT=":"
 
289
      fi
 
290
    fi
 
291
 
 
292
    # We need to process the po/ directory.
 
293
    POSUB=po
 
294
 
 
295
    AC_OUTPUT_COMMANDS(
 
296
      [case "$CONFIG_FILES" in *po/Makefile.in*)
 
297
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
298
      esac])
 
299
 
 
300
    dnl These rules are solely for the distribution goal.  While doing this
 
301
    dnl we only have to keep exactly one list of the available catalogs
 
302
    dnl in configure.in.
 
303
    for lang in $ALL_LINGUAS; do
 
304
      GMOFILES="$GMOFILES $lang.gmo"
 
305
      POFILES="$POFILES $lang.po"
 
306
    done
 
307
 
 
308
    dnl Make all variables we use known to autoconf.
 
309
    AC_SUBST(CATALOGS)
 
310
    AC_SUBST(CATOBJEXT)
 
311
    AC_SUBST(DATADIRNAME)
 
312
    AC_SUBST(GMOFILES)
 
313
    AC_SUBST(INSTOBJEXT)
 
314
    AC_SUBST(INTLLIBS)
 
315
    AC_SUBST(PO_IN_DATADIR_TRUE)
 
316
    AC_SUBST(PO_IN_DATADIR_FALSE)
 
317
    AC_SUBST(POFILES)
 
318
    AC_SUBST(POSUB)
 
319
  ])
 
320
 
 
321
# AM_GLIB_GNU_GETTEXT
 
322
# -------------------
 
323
# Do checks necessary for use of gettext. If a suitable implementation 
 
324
# of gettext is found in either in libintl or in the C library,
 
325
# it will set INTLLIBS to the libraries needed for use of gettext
 
326
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
 
327
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
 
328
# on various variables needed by the Makefile.in.in installed by 
 
329
# glib-gettextize.
 
330
dnl
 
331
glib_DEFUN([GLIB_GNU_GETTEXT],
 
332
  [AC_REQUIRE([AC_PROG_CC])dnl
 
333
   AC_REQUIRE([AC_HEADER_STDC])dnl
 
334
   
 
335
   GLIB_LC_MESSAGES
 
336
   GLIB_WITH_NLS
 
337
 
 
338
   if test "$gt_cv_have_gettext" = "yes"; then
 
339
     if test "x$ALL_LINGUAS" = "x"; then
 
340
       LINGUAS=
 
341
     else
 
342
       AC_MSG_CHECKING(for catalogs to be installed)
 
343
       NEW_LINGUAS=
 
344
       for presentlang in $ALL_LINGUAS; do
 
345
         useit=no
 
346
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
347
           desiredlanguages="$LINGUAS"
 
348
         else
 
349
           desiredlanguages="$ALL_LINGUAS"
 
350
         fi
 
351
         for desiredlang in $desiredlanguages; do
 
352
           # Use the presentlang catalog if desiredlang is
 
353
           #   a. equal to presentlang, or
 
354
           #   b. a variant of presentlang (because in this case,
 
355
           #      presentlang can be used as a fallback for messages
 
356
           #      which are not translated in the desiredlang catalog).
 
357
           case "$desiredlang" in
 
358
             "$presentlang"*) useit=yes;;
 
359
           esac
 
360
         done
 
361
         if test $useit = yes; then
 
362
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
363
         fi
 
364
       done
 
365
       LINGUAS=$NEW_LINGUAS
 
366
       AC_MSG_RESULT($LINGUAS)
 
367
     fi
 
368
 
 
369
     dnl Construct list of names of catalog files to be constructed.
 
370
     if test -n "$LINGUAS"; then
 
371
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
372
     fi
 
373
   fi
 
374
 
 
375
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
 
376
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
 
377
   dnl Try to locate is.
 
378
   MKINSTALLDIRS=
 
379
   if test -n "$ac_aux_dir"; then
 
380
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
381
   fi
 
382
   if test -z "$MKINSTALLDIRS"; then
 
383
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
384
   fi
 
385
   AC_SUBST(MKINSTALLDIRS)
 
386
 
 
387
   dnl Generate list of files to be processed by xgettext which will
 
388
   dnl be included in po/Makefile.
 
389
   test -d po || mkdir po
 
390
   if test "x$srcdir" != "x."; then
 
391
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
392
       posrcprefix="$srcdir/"
 
393
     else
 
394
       posrcprefix="../$srcdir/"
 
395
     fi
 
396
   else
 
397
     posrcprefix="../"
 
398
   fi
 
399
   rm -f po/POTFILES
 
400
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
401
        < $srcdir/po/POTFILES.in > po/POTFILES
 
402
  ])
 
403
 
 
404
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
 
405
# -------------------------------
 
406
# Define VARIABLE to the location where catalog files will
 
407
# be installed by po/Makefile.
 
408
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
 
409
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
 
410
glib_save_prefix="$prefix"
 
411
glib_save_exec_prefix="$exec_prefix"
 
412
glib_save_datarootdir="$datarootdir"
 
413
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
414
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
415
datarootdir=`eval echo "${datarootdir}"`
 
416
if test "x$CATOBJEXT" = "x.mo" ; then
 
417
  localedir=`eval echo "${libdir}/locale"`
 
418
else
 
419
  localedir=`eval echo "${datadir}/locale"`
 
420
fi
 
421
prefix="$glib_save_prefix"
 
422
exec_prefix="$glib_save_exec_prefix"
 
423
datarootdir="$glib_save_datarootdir"
 
424
AC_DEFINE_UNQUOTED($1, "$localedir",
 
425
  [Define the location where the catalogs will be installed])
 
426
])
 
427
 
 
428
dnl
 
429
dnl Now the definitions that aclocal will find
 
430
dnl
 
431
ifdef(glib_configure_in,[],[
 
432
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
 
433
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
 
434
])dnl
 
435
 
 
436
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
 
437
 
438
# Create a temporary file with TEST-FILE as its contents and pass the
 
439
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
 
440
# 0 and perform ACTION-IF-FAIL for any other exit status.
 
441
AC_DEFUN([GLIB_RUN_PROG],
 
442
[cat >conftest.foo <<_ACEOF
 
443
$2
 
444
_ACEOF
 
445
if AC_RUN_LOG([$1 conftest.foo]); then
 
446
  m4_ifval([$3], [$3], [:])
 
447
m4_ifvaln([$4], [else $4])dnl
 
448
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
 
449
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
 
450
fi])
 
451
 
 
452
 
 
453
 
 
454
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
 
455
# serial 36 IT_PROG_INTLTOOL
 
456
AC_DEFUN([IT_PROG_INTLTOOL],
 
457
[AC_PREREQ([2.50])dnl
 
458
 
 
459
case "$am__api_version" in
 
460
    1.[01234])
 
461
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
 
462
    ;;
 
463
    *)
 
464
    ;;
 
465
esac
 
466
 
 
467
if test -n "$1"; then
 
468
    AC_MSG_CHECKING([for intltool >= $1])
 
469
 
 
470
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
471
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
 
472
    [INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
 
473
    ]
 
474
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
 
475
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
476
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
 
477
fi
 
478
 
 
479
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
480
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
481
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
482
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
483
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
 
484
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
485
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
486
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
487
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
488
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
489
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
490
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
 
491
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
492
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
493
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
494
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
495
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
496
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
497
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
498
 
 
499
AC_SUBST(INTLTOOL_DESKTOP_RULE)
 
500
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
 
501
AC_SUBST(INTLTOOL_KEYS_RULE)
 
502
AC_SUBST(INTLTOOL_PROP_RULE)
 
503
AC_SUBST(INTLTOOL_OAF_RULE)
 
504
AC_SUBST(INTLTOOL_PONG_RULE)
 
505
AC_SUBST(INTLTOOL_SERVER_RULE)
 
506
AC_SUBST(INTLTOOL_SHEET_RULE)
 
507
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
508
AC_SUBST(INTLTOOL_UI_RULE)
 
509
AC_SUBST(INTLTOOL_XAM_RULE)
 
510
AC_SUBST(INTLTOOL_KBD_RULE)
 
511
AC_SUBST(INTLTOOL_XML_RULE)
 
512
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
513
AC_SUBST(INTLTOOL_CAVES_RULE)
 
514
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
 
515
AC_SUBST(INTLTOOL_THEME_RULE)
 
516
AC_SUBST(INTLTOOL_SERVICE_RULE)
 
517
AC_SUBST(INTLTOOL_POLICY_RULE)
 
518
 
 
519
# Use the tools built into the package, not the ones that are installed.
 
520
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
 
521
AC_SUBST(INTLTOOL_MERGE, '$(top_builddir)/intltool-merge')
 
522
AC_SUBST(INTLTOOL_UPDATE, '$(top_builddir)/intltool-update')
 
523
 
 
524
AC_PATH_PROG(INTLTOOL_PERL, perl)
 
525
if test -z "$INTLTOOL_PERL"; then
 
526
   AC_MSG_ERROR([perl not found; required for intltool])
 
527
fi
 
528
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
 
529
   AC_MSG_ERROR([perl 5.x required for intltool])
 
530
fi
 
531
if test "x$2" != "xno-xml"; then
 
532
   AC_MSG_CHECKING([for XML::Parser])
 
533
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
534
       AC_MSG_RESULT([ok])
 
535
   else
 
536
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
 
537
   fi
 
538
fi
 
539
 
 
540
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
541
AC_SUBST(ALL_LINGUAS)
 
542
 
 
543
# Set DATADIRNAME correctly if it is not set yet
 
544
# (copied from glib-gettext.m4)
 
545
if test -z "$DATADIRNAME"; then
 
546
  AC_LINK_IFELSE(
 
547
    [AC_LANG_PROGRAM([[]],
 
548
                     [[extern int _nl_msg_cat_cntr;
 
549
                       return _nl_msg_cat_cntr]])],
 
550
    [DATADIRNAME=share],
 
551
    [case $host in
 
552
    *-*-solaris*)
 
553
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
554
    dnl GNU format message catalog is always supported,
 
555
    dnl since both are added to the libc all together.
 
556
    dnl Hence, we'd like to go with DATADIRNAME=share
 
557
    dnl in this case.
 
558
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
559
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
560
    ;;
 
561
    *)
 
562
    [DATADIRNAME=lib]
 
563
    ;;
 
564
    esac])
 
565
fi
 
566
AC_SUBST(DATADIRNAME)
 
567
 
 
568
IT_PO_SUBDIR([po])
 
569
 
 
570
dnl The following is very similar to
 
571
dnl
 
572
dnl     AC_CONFIG_FILES([intltool-extract intltool-merge intltool-update])
 
573
dnl
 
574
dnl with the following slight differences:
 
575
dnl  - the *.in files are in ac_aux_dir,
 
576
dnl  - if the file haven't changed upon reconfigure, it's not touched,
 
577
dnl  - the evaluation of the third parameter enables a hack which computes
 
578
dnl    the actual value of $libdir,
 
579
dnl  - the user sees "executing intltool commands", instead of
 
580
dnl    "creating intltool-extract" and such.
 
581
dnl
 
582
dnl Nothing crucial here, and we could use AC_CONFIG_FILES, if there were
 
583
dnl a reason for it.
 
584
 
 
585
AC_CONFIG_COMMANDS([intltool], [
 
586
 
 
587
for file in intltool-extract intltool-merge intltool-update; do
 
588
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
 
589
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
 
590
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
 
591
        < ${ac_aux_dir}/${file}.in > ${file}.out
 
592
  if cmp -s ${file} ${file}.out 2>/dev/null; then
 
593
    rm -f ${file}.out
 
594
  else
 
595
    mv -f ${file}.out ${file}
 
596
  fi
 
597
  chmod ugo+x ${file}
 
598
  chmod u+w ${file}
 
599
done
 
600
 
 
601
],
 
602
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
 
603
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
 
604
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])
 
605
 
 
606
])
 
607
 
 
608
 
 
609
# IT_PO_SUBDIR(DIRNAME)
 
610
# ---------------------
 
611
# All po subdirs have to be declared with this macro; the subdir "po" is
 
612
# declared by IT_PROG_INTLTOOL.
 
613
#
 
614
AC_DEFUN([IT_PO_SUBDIR],
 
615
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
 
616
dnl
 
617
dnl The following CONFIG_COMMANDS should be exetuted at the very end
 
618
dnl of config.status.
 
619
AC_CONFIG_COMMANDS_PRE([
 
620
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
621
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
 
622
    >"$1/stamp-it.tmp"
 
623
    [sed '/^#/d
 
624
         s/^[[].*] *//
 
625
         /^[    ]*$/d
 
626
        '"s|^|  $ac_top_srcdir/|" \
 
627
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
 
628
    ]
 
629
    if test ! -f "$1/Makefile"; then
 
630
      AC_MSG_ERROR([$1/Makefile is not ready.])
 
631
    fi
 
632
    mv "$1/Makefile" "$1/Makefile.tmp"
 
633
    [sed '/^POTFILES =/,/[^\\]$/ {
 
634
                /^POTFILES =/!d
 
635
                r $1/POTFILES
 
636
          }
 
637
         ' "$1/Makefile.tmp" >"$1/Makefile"]
 
638
    rm -f "$1/Makefile.tmp"
 
639
    mv "$1/stamp-it.tmp" "$1/stamp-it"
 
640
  ])
 
641
])dnl
 
642
])
 
643
 
 
644
 
 
645
# deprecated macros
 
646
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
 
647
# A hint is needed for aclocal from Automake <= 1.9.4:
 
648
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
 
649
 
 
650
 
 
651
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 
652
 
 
653
# serial 51 Debian 1.5.24-1ubuntu1 AC_PROG_LIBTOOL
 
654
 
 
655
 
 
656
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
 
657
# -----------------------------------------------------------
 
658
# If this macro is not defined by Autoconf, define it here.
 
659
m4_ifdef([AC_PROVIDE_IFELSE],
 
660
         [],
 
661
         [m4_define([AC_PROVIDE_IFELSE],
 
662
                 [m4_ifdef([AC_PROVIDE_$1],
 
663
                           [$2], [$3])])])
 
664
 
 
665
 
 
666
# AC_PROG_LIBTOOL
 
667
# ---------------
 
668
AC_DEFUN([AC_PROG_LIBTOOL],
 
669
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
 
670
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
 
671
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
 
672
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
673
    [AC_LIBTOOL_CXX],
 
674
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
 
675
  ])])
 
676
dnl And a similar setup for Fortran 77 support
 
677
  AC_PROVIDE_IFELSE([AC_PROG_F77],
 
678
    [AC_LIBTOOL_F77],
 
679
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
 
680
])])
 
681
 
 
682
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
 
683
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
 
684
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
 
685
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
686
    [AC_LIBTOOL_GCJ],
 
687
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
688
      [AC_LIBTOOL_GCJ],
 
689
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
 
690
        [AC_LIBTOOL_GCJ],
 
691
      [ifdef([AC_PROG_GCJ],
 
692
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
693
       ifdef([A][M_PROG_GCJ],
 
694
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
695
       ifdef([LT_AC_PROG_GCJ],
 
696
             [define([LT_AC_PROG_GCJ],
 
697
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
 
698
])])# AC_PROG_LIBTOOL
 
699
 
 
700
 
 
701
# _AC_PROG_LIBTOOL
 
702
# ----------------
 
703
AC_DEFUN([_AC_PROG_LIBTOOL],
 
704
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
 
705
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
 
706
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
 
707
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
 
708
 
 
709
# This can be used to rebuild libtool when needed
 
710
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
711
 
 
712
# Always use our own libtool.
 
713
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
714
AC_SUBST(LIBTOOL)dnl
 
715
 
 
716
# Prevent multiple expansion
 
717
define([AC_PROG_LIBTOOL], [])
 
718
])# _AC_PROG_LIBTOOL
 
719
 
 
720
 
 
721
# AC_LIBTOOL_SETUP
 
722
# ----------------
 
723
AC_DEFUN([AC_LIBTOOL_SETUP],
 
724
[AC_PREREQ(2.50)dnl
 
725
AC_REQUIRE([AC_ENABLE_SHARED])dnl
 
726
AC_REQUIRE([AC_ENABLE_STATIC])dnl
 
727
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
 
728
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
729
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
730
AC_REQUIRE([AC_PROG_CC])dnl
 
731
AC_REQUIRE([AC_PROG_LD])dnl
 
732
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
 
733
AC_REQUIRE([AC_PROG_NM])dnl
 
734
 
 
735
AC_REQUIRE([AC_PROG_LN_S])dnl
 
736
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
 
737
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
738
AC_REQUIRE([AC_OBJEXT])dnl
 
739
AC_REQUIRE([AC_EXEEXT])dnl
 
740
dnl
 
741
 
 
742
AC_LIBTOOL_SYS_MAX_CMD_LEN
 
743
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
744
AC_LIBTOOL_OBJDIR
 
745
 
 
746
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
747
_LT_AC_PROG_ECHO_BACKSLASH
 
748
 
 
749
case $host_os in
 
750
aix3*)
 
751
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
752
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
753
  # vanish in a puff of smoke.
 
754
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
755
    COLLECT_NAMES=
 
756
    export COLLECT_NAMES
 
757
  fi
 
758
  ;;
 
759
esac
 
760
 
 
761
# Sed substitution that helps us do robust quoting.  It backslashifies
 
762
# metacharacters that are still active within double-quoted strings.
 
763
Xsed='sed -e 1s/^X//'
 
764
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
765
 
 
766
# Same as above, but do not quote variable references.
 
767
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
768
 
 
769
# Sed substitution to delay expansion of an escaped shell variable in a
 
770
# double_quote_subst'ed string.
 
771
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
772
 
 
773
# Sed substitution to avoid accidental globbing in evaled expressions
 
774
no_glob_subst='s/\*/\\\*/g'
 
775
 
 
776
# Constants:
 
777
rm="rm -f"
 
778
 
 
779
# Global variables:
 
780
default_ofile=libtool
 
781
can_build_shared=yes
 
782
 
 
783
# All known linkers require a `.a' archive for static linking (except MSVC,
 
784
# which needs '.lib').
 
785
libext=a
 
786
ltmain="$ac_aux_dir/ltmain.sh"
 
787
ofile="$default_ofile"
 
788
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
789
 
 
790
AC_CHECK_TOOL(AR, ar, false)
 
791
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
792
AC_CHECK_TOOL(STRIP, strip, :)
 
793
 
 
794
old_CC="$CC"
 
795
old_CFLAGS="$CFLAGS"
 
796
 
 
797
# Set sane defaults for various variables
 
798
test -z "$AR" && AR=ar
 
799
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
800
test -z "$AS" && AS=as
 
801
test -z "$CC" && CC=cc
 
802
test -z "$LTCC" && LTCC=$CC
 
803
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
804
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
805
test -z "$LD" && LD=ld
 
806
test -z "$LN_S" && LN_S="ln -s"
 
807
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
808
test -z "$NM" && NM=nm
 
809
test -z "$SED" && SED=sed
 
810
test -z "$OBJDUMP" && OBJDUMP=objdump
 
811
test -z "$RANLIB" && RANLIB=:
 
812
test -z "$STRIP" && STRIP=:
 
813
test -z "$ac_objext" && ac_objext=o
 
814
 
 
815
# Determine commands to create old-style static archives.
 
816
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
817
old_postinstall_cmds='chmod 644 $oldlib'
 
818
old_postuninstall_cmds=
 
819
 
 
820
if test -n "$RANLIB"; then
 
821
  case $host_os in
 
822
  openbsd*)
 
823
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
824
    ;;
 
825
  *)
 
826
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
827
    ;;
 
828
  esac
 
829
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
830
fi
 
831
 
 
832
_LT_CC_BASENAME([$compiler])
 
833
 
 
834
# Only perform the check for file, if the check method requires it
 
835
case $deplibs_check_method in
 
836
file_magic*)
 
837
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
838
    AC_PATH_MAGIC
 
839
  fi
 
840
  ;;
 
841
esac
 
842
 
 
843
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
 
844
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 
845
enable_win32_dll=yes, enable_win32_dll=no)
 
846
 
 
847
AC_ARG_ENABLE([libtool-lock],
 
848
    [AC_HELP_STRING([--disable-libtool-lock],
 
849
        [avoid locking (might break parallel builds)])])
 
850
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
851
 
 
852
AC_ARG_WITH([pic],
 
853
    [AC_HELP_STRING([--with-pic],
 
854
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
855
    [pic_mode="$withval"],
 
856
    [pic_mode=default])
 
857
test -z "$pic_mode" && pic_mode=default
 
858
 
 
859
# Use C for the default configuration in the libtool script
 
860
tagname=
 
861
AC_LIBTOOL_LANG_C_CONFIG
 
862
_LT_AC_TAGCONFIG
 
863
])# AC_LIBTOOL_SETUP
 
864
 
 
865
 
 
866
# _LT_AC_SYS_COMPILER
 
867
# -------------------
 
868
AC_DEFUN([_LT_AC_SYS_COMPILER],
 
869
[AC_REQUIRE([AC_PROG_CC])dnl
 
870
 
 
871
# If no C compiler was specified, use CC.
 
872
LTCC=${LTCC-"$CC"}
 
873
 
 
874
# If no C compiler flags were specified, use CFLAGS.
 
875
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
876
 
 
877
# Allow CC to be a program name with arguments.
 
878
compiler=$CC
 
879
])# _LT_AC_SYS_COMPILER
 
880
 
 
881
 
 
882
# _LT_CC_BASENAME(CC)
 
883
# -------------------
 
884
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
885
AC_DEFUN([_LT_CC_BASENAME],
 
886
[for cc_temp in $1""; do
 
887
  case $cc_temp in
 
888
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
889
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
890
    \-*) ;;
 
891
    *) break;;
 
892
  esac
 
893
done
 
894
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
895
])
 
896
 
 
897
 
 
898
# _LT_COMPILER_BOILERPLATE
 
899
# ------------------------
 
900
# Check for compiler boilerplate output or warnings with
 
901
# the simple compiler test code.
 
902
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
903
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
904
ac_outfile=conftest.$ac_objext
 
905
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
906
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
907
_lt_compiler_boilerplate=`cat conftest.err`
 
908
$rm conftest*
 
909
])# _LT_COMPILER_BOILERPLATE
 
910
 
 
911
 
 
912
# _LT_LINKER_BOILERPLATE
 
913
# ----------------------
 
914
# Check for linker boilerplate output or warnings with
 
915
# the simple link test code.
 
916
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
917
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
918
ac_outfile=conftest.$ac_objext
 
919
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
920
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
921
_lt_linker_boilerplate=`cat conftest.err`
 
922
$rm conftest*
 
923
])# _LT_LINKER_BOILERPLATE
 
924
 
 
925
 
 
926
# _LT_AC_SYS_LIBPATH_AIX
 
927
# ----------------------
 
928
# Links a minimal program and checks the executable
 
929
# for the system default hardcoded library path. In most cases,
 
930
# this is /usr/lib:/lib, but when the MPI compilers are used
 
931
# the location of the communication and MPI libs are included too.
 
932
# If we don't find anything, use the default library path according
 
933
# to the aix ld manual.
 
934
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
 
935
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
936
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
937
lt_aix_libpath_sed='
 
938
    /Import File Strings/,/^$/ {
 
939
        /^0/ {
 
940
            s/^0  *\(.*\)$/\1/
 
941
            p
 
942
        }
 
943
    }'
 
944
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
945
# Check for a 64-bit object if we didn't find anything.
 
946
if test -z "$aix_libpath"; then
 
947
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
948
fi],[])
 
949
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
950
])# _LT_AC_SYS_LIBPATH_AIX
 
951
 
 
952
 
 
953
# _LT_AC_SHELL_INIT(ARG)
 
954
# ----------------------
 
955
AC_DEFUN([_LT_AC_SHELL_INIT],
 
956
[ifdef([AC_DIVERSION_NOTICE],
 
957
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
 
958
         [AC_DIVERT_PUSH(NOTICE)])
 
959
$1
 
960
AC_DIVERT_POP
 
961
])# _LT_AC_SHELL_INIT
 
962
 
 
963
 
 
964
# _LT_AC_PROG_ECHO_BACKSLASH
 
965
# --------------------------
 
966
# Add some code to the start of the generated configure script which
 
967
# will find an echo command which doesn't interpret backslashes.
 
968
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
 
969
[_LT_AC_SHELL_INIT([
 
970
# Check that we are running under the correct shell.
 
971
SHELL=${CONFIG_SHELL-/bin/sh}
 
972
 
 
973
case X$ECHO in
 
974
X*--fallback-echo)
 
975
  # Remove one level of quotation (which was required for Make).
 
976
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
977
  ;;
 
978
esac
 
979
 
 
980
echo=${ECHO-echo}
 
981
if test "X[$]1" = X--no-reexec; then
 
982
  # Discard the --no-reexec flag, and continue.
 
983
  shift
 
984
elif test "X[$]1" = X--fallback-echo; then
 
985
  # Avoid inline document here, it may be left over
 
986
  :
 
987
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
988
  # Yippee, $echo works!
 
989
  :
 
990
else
 
991
  # Restart under the correct shell.
 
992
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
993
fi
 
994
 
 
995
if test "X[$]1" = X--fallback-echo; then
 
996
  # used as fallback echo
 
997
  shift
 
998
  cat <<EOF
 
999
[$]*
 
1000
EOF
 
1001
  exit 0
 
1002
fi
 
1003
 
 
1004
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
1005
# if CDPATH is set.
 
1006
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
1007
 
 
1008
if test -z "$ECHO"; then
 
1009
if test "X${echo_test_string+set}" != Xset; then
 
1010
# find a string as large as possible, as long as the shell can cope with it
 
1011
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
1012
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
1013
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
1014
       echo_test_string=`eval $cmd` &&
 
1015
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
1016
    then
 
1017
      break
 
1018
    fi
 
1019
  done
 
1020
fi
 
1021
 
 
1022
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
1023
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
1024
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
1025
  :
 
1026
else
 
1027
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
1028
  # backslashes.  This makes it impossible to quote backslashes using
 
1029
  #   echo "$something" | sed 's/\\/\\\\/g'
 
1030
  #
 
1031
  # So, first we look for a working echo in the user's PATH.
 
1032
 
 
1033
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
1034
  for dir in $PATH /usr/ucb; do
 
1035
    IFS="$lt_save_ifs"
 
1036
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
1037
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
1038
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
1039
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
1040
      echo="$dir/echo"
 
1041
      break
 
1042
    fi
 
1043
  done
 
1044
  IFS="$lt_save_ifs"
 
1045
 
 
1046
  if test "X$echo" = Xecho; then
 
1047
    # We didn't find a better echo, so look for alternatives.
 
1048
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
1049
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
1050
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
1051
      # This shell has a builtin print -r that does the trick.
 
1052
      echo='print -r'
 
1053
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
1054
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
1055
      # If we have ksh, try running configure again with it.
 
1056
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
1057
      export ORIGINAL_CONFIG_SHELL
 
1058
      CONFIG_SHELL=/bin/ksh
 
1059
      export CONFIG_SHELL
 
1060
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
1061
    else
 
1062
      # Try using printf.
 
1063
      echo='printf %s\n'
 
1064
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
1065
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
1066
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
1067
        # Cool, printf works
 
1068
        :
 
1069
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
1070
           test "X$echo_testing_string" = 'X\t' &&
 
1071
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
1072
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
1073
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
1074
        export CONFIG_SHELL
 
1075
        SHELL="$CONFIG_SHELL"
 
1076
        export SHELL
 
1077
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
1078
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
1079
           test "X$echo_testing_string" = 'X\t' &&
 
1080
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
1081
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
1082
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
1083
      else
 
1084
        # maybe with a smaller string...
 
1085
        prev=:
 
1086
 
 
1087
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
1088
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
1089
          then
 
1090
            break
 
1091
          fi
 
1092
          prev="$cmd"
 
1093
        done
 
1094
 
 
1095
        if test "$prev" != 'sed 50q "[$]0"'; then
 
1096
          echo_test_string=`eval $prev`
 
1097
          export echo_test_string
 
1098
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
1099
        else
 
1100
          # Oops.  We lost completely, so just stick with echo.
 
1101
          echo=echo
 
1102
        fi
 
1103
      fi
 
1104
    fi
 
1105
  fi
 
1106
fi
 
1107
fi
 
1108
 
 
1109
# Copy echo and quote the copy suitably for passing to libtool from
 
1110
# the Makefile, instead of quoting the original, which is used later.
 
1111
ECHO=$echo
 
1112
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
1113
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
1114
fi
 
1115
 
 
1116
AC_SUBST(ECHO)
 
1117
])])# _LT_AC_PROG_ECHO_BACKSLASH
 
1118
 
 
1119
 
 
1120
# _LT_AC_LOCK
 
1121
# -----------
 
1122
AC_DEFUN([_LT_AC_LOCK],
 
1123
[AC_ARG_ENABLE([libtool-lock],
 
1124
    [AC_HELP_STRING([--disable-libtool-lock],
 
1125
        [avoid locking (might break parallel builds)])])
 
1126
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
1127
 
 
1128
# Some flags need to be propagated to the compiler or linker for good
 
1129
# libtool support.
 
1130
case $host in
 
1131
ia64-*-hpux*)
 
1132
  # Find out which ABI we are using.
 
1133
  echo 'int i;' > conftest.$ac_ext
 
1134
  if AC_TRY_EVAL(ac_compile); then
 
1135
    case `/usr/bin/file conftest.$ac_objext` in
 
1136
    *ELF-32*)
 
1137
      HPUX_IA64_MODE="32"
 
1138
      ;;
 
1139
    *ELF-64*)
 
1140
      HPUX_IA64_MODE="64"
 
1141
      ;;
 
1142
    esac
 
1143
  fi
 
1144
  rm -rf conftest*
 
1145
  ;;
 
1146
*-*-irix6*)
 
1147
  # Find out which ABI we are using.
 
1148
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
1149
  if AC_TRY_EVAL(ac_compile); then
 
1150
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
1151
    case `/usr/bin/file conftest.$ac_objext` in
 
1152
    *32-bit*)
 
1153
      LD="${LD-ld} -melf32bsmip"
 
1154
      ;;
 
1155
    *N32*)
 
1156
      LD="${LD-ld} -melf32bmipn32"
 
1157
      ;;
 
1158
    *64-bit*)
 
1159
      LD="${LD-ld} -melf64bmip"
 
1160
      ;;
 
1161
    esac
 
1162
   else
 
1163
    case `/usr/bin/file conftest.$ac_objext` in
 
1164
    *32-bit*)
 
1165
      LD="${LD-ld} -32"
 
1166
      ;;
 
1167
    *N32*)
 
1168
      LD="${LD-ld} -n32"
 
1169
      ;;
 
1170
    *64-bit*)
 
1171
      LD="${LD-ld} -64"
 
1172
      ;;
 
1173
    esac
 
1174
   fi
 
1175
  fi
 
1176
  rm -rf conftest*
 
1177
  ;;
 
1178
 
 
1179
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
1180
s390*-*linux*|sparc*-*linux*)
 
1181
  # Find out which ABI we are using.
 
1182
  echo 'int i;' > conftest.$ac_ext
 
1183
  if AC_TRY_EVAL(ac_compile); then
 
1184
    case `/usr/bin/file conftest.o` in
 
1185
    *32-bit*)
 
1186
      case $host in
 
1187
        x86_64-*kfreebsd*-gnu)
 
1188
          LD="${LD-ld} -m elf_i386_fbsd"
 
1189
          ;;
 
1190
        x86_64-*linux*)
 
1191
          LD="${LD-ld} -m elf_i386"
 
1192
          ;;
 
1193
        ppc64-*linux*|powerpc64-*linux*)
 
1194
          LD="${LD-ld} -m elf32ppclinux"
 
1195
          ;;
 
1196
        s390x-*linux*)
 
1197
          LD="${LD-ld} -m elf_s390"
 
1198
          ;;
 
1199
        sparc64-*linux*)
 
1200
          LD="${LD-ld} -m elf32_sparc"
 
1201
          ;;
 
1202
      esac
 
1203
      ;;
 
1204
    *64-bit*)
 
1205
      case $host in
 
1206
        x86_64-*kfreebsd*-gnu)
 
1207
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
1208
          ;;
 
1209
        x86_64-*linux*)
 
1210
          LD="${LD-ld} -m elf_x86_64"
 
1211
          ;;
 
1212
        ppc*-*linux*|powerpc*-*linux*)
 
1213
          LD="${LD-ld} -m elf64ppc"
 
1214
          ;;
 
1215
        s390*-*linux*)
 
1216
          LD="${LD-ld} -m elf64_s390"
 
1217
          ;;
 
1218
        sparc*-*linux*)
 
1219
          LD="${LD-ld} -m elf64_sparc"
 
1220
          ;;
 
1221
      esac
 
1222
      ;;
 
1223
    esac
 
1224
  fi
 
1225
  rm -rf conftest*
 
1226
  ;;
 
1227
 
 
1228
*-*-sco3.2v5*)
 
1229
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
1230
  SAVE_CFLAGS="$CFLAGS"
 
1231
  CFLAGS="$CFLAGS -belf"
 
1232
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
 
1233
    [AC_LANG_PUSH(C)
 
1234
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
1235
     AC_LANG_POP])
 
1236
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
1237
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
1238
    CFLAGS="$SAVE_CFLAGS"
 
1239
  fi
 
1240
  ;;
 
1241
sparc*-*solaris*)
 
1242
  # Find out which ABI we are using.
 
1243
  echo 'int i;' > conftest.$ac_ext
 
1244
  if AC_TRY_EVAL(ac_compile); then
 
1245
    case `/usr/bin/file conftest.o` in
 
1246
    *64-bit*)
 
1247
      case $lt_cv_prog_gnu_ld in
 
1248
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
1249
      *)    LD="${LD-ld} -64" ;;
 
1250
      esac
 
1251
      ;;
 
1252
    esac
 
1253
  fi
 
1254
  rm -rf conftest*
 
1255
  ;;
 
1256
 
 
1257
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 
1258
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
1259
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
1260
  AC_CHECK_TOOL(AS, as, false)
 
1261
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
1262
  ;;
 
1263
  ])
 
1264
esac
 
1265
 
 
1266
need_locks="$enable_libtool_lock"
 
1267
 
 
1268
])# _LT_AC_LOCK
 
1269
 
 
1270
 
 
1271
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1272
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 
1273
# ----------------------------------------------------------------
 
1274
# Check whether the given compiler option works
 
1275
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
 
1276
[AC_REQUIRE([LT_AC_PROG_SED])
 
1277
AC_CACHE_CHECK([$1], [$2],
 
1278
  [$2=no
 
1279
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
1280
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1281
   lt_compiler_flag="$3"
 
1282
   # Insert the option either (1) after the last *FLAGS variable, or
 
1283
   # (2) before a word containing "conftest.", or (3) at the end.
 
1284
   # Note that $ac_compile itself does not contain backslashes and begins
 
1285
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
1286
   # The option is referenced via a variable to avoid confusing sed.
 
1287
   lt_compile=`echo "$ac_compile" | $SED \
 
1288
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
1289
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 
1290
   -e 's:$: $lt_compiler_flag:'`
 
1291
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
1292
   (eval "$lt_compile" 2>conftest.err)
 
1293
   ac_status=$?
 
1294
   cat conftest.err >&AS_MESSAGE_LOG_FD
 
1295
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1296
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
1297
     # The compiler can only warn and ignore the option if not recognized
 
1298
     # So say no if there are warnings other than the usual output.
 
1299
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
1300
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
1301
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
1302
       $2=yes
 
1303
     fi
 
1304
   fi
 
1305
   $rm conftest*
 
1306
])
 
1307
 
 
1308
if test x"[$]$2" = xyes; then
 
1309
    ifelse([$5], , :, [$5])
 
1310
else
 
1311
    ifelse([$6], , :, [$6])
 
1312
fi
 
1313
])# AC_LIBTOOL_COMPILER_OPTION
 
1314
 
 
1315
 
 
1316
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1317
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
 
1318
# ------------------------------------------------------------
 
1319
# Check whether the given compiler option works
 
1320
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
 
1321
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1322
AC_CACHE_CHECK([$1], [$2],
 
1323
  [$2=no
 
1324
   save_LDFLAGS="$LDFLAGS"
 
1325
   LDFLAGS="$LDFLAGS $3"
 
1326
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
1327
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
1328
     # The linker can only warn and ignore the option if not recognized
 
1329
     # So say no if there are warnings
 
1330
     if test -s conftest.err; then
 
1331
       # Append any errors to the config.log.
 
1332
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
1333
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
1334
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
1335
       if diff conftest.exp conftest.er2 >/dev/null; then
 
1336
         $2=yes
 
1337
       fi
 
1338
     else
 
1339
       $2=yes
 
1340
     fi
 
1341
   fi
 
1342
   $rm conftest*
 
1343
   LDFLAGS="$save_LDFLAGS"
 
1344
])
 
1345
 
 
1346
if test x"[$]$2" = xyes; then
 
1347
    ifelse([$4], , :, [$4])
 
1348
else
 
1349
    ifelse([$5], , :, [$5])
 
1350
fi
 
1351
])# AC_LIBTOOL_LINKER_OPTION
 
1352
 
 
1353
 
 
1354
# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1355
# --------------------------
 
1356
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
 
1357
[# find the maximum length of command line arguments
 
1358
AC_MSG_CHECKING([the maximum length of command line arguments])
 
1359
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 
1360
  i=0
 
1361
  teststring="ABCD"
 
1362
 
 
1363
  case $build_os in
 
1364
  msdosdjgpp*)
 
1365
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
1366
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
1367
    # during glob expansion).  Even if it were fixed, the result of this
 
1368
    # check would be larger than it should be.
 
1369
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
1370
    ;;
 
1371
 
 
1372
  gnu*)
 
1373
    # Under GNU Hurd, this test is not required because there is
 
1374
    # no limit to the length of command line arguments.
 
1375
    # Libtool will interpret -1 as no limit whatsoever
 
1376
    lt_cv_sys_max_cmd_len=-1;
 
1377
    ;;
 
1378
 
 
1379
  cygwin* | mingw*)
 
1380
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
1381
    # about 5 minutes as the teststring grows exponentially.
 
1382
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
1383
    # you end up with a "frozen" computer, even though with patience
 
1384
    # the test eventually succeeds (with a max line length of 256k).
 
1385
    # Instead, let's just punt: use the minimum linelength reported by
 
1386
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
1387
    lt_cv_sys_max_cmd_len=8192;
 
1388
    ;;
 
1389
 
 
1390
  amigaos*)
 
1391
    # On AmigaOS with pdksh, this test takes hours, literally.
 
1392
    # So we just punt and use a minimum line length of 8192.
 
1393
    lt_cv_sys_max_cmd_len=8192;
 
1394
    ;;
 
1395
 
 
1396
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
1397
    # This has been around since 386BSD, at least.  Likely further.
 
1398
    if test -x /sbin/sysctl; then
 
1399
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
1400
    elif test -x /usr/sbin/sysctl; then
 
1401
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
1402
    else
 
1403
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
1404
    fi
 
1405
    # And add a safety zone
 
1406
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
1407
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
1408
    ;;
 
1409
 
 
1410
  interix*)
 
1411
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
1412
    lt_cv_sys_max_cmd_len=196608
 
1413
    ;;
 
1414
 
 
1415
  osf*)
 
1416
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
1417
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
1418
    # nice to cause kernel panics so lets avoid the loop below.
 
1419
    # First set a reasonable default.
 
1420
    lt_cv_sys_max_cmd_len=16384
 
1421
    #
 
1422
    if test -x /sbin/sysconfig; then
 
1423
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
1424
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
1425
      esac
 
1426
    fi
 
1427
    ;;
 
1428
  sco3.2v5*)
 
1429
    lt_cv_sys_max_cmd_len=102400
 
1430
    ;;
 
1431
  sysv5* | sco5v6* | sysv4.2uw2*)
 
1432
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
1433
    if test -n "$kargmax"; then
 
1434
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
1435
    else
 
1436
      lt_cv_sys_max_cmd_len=32768
 
1437
    fi
 
1438
    ;;
 
1439
  *)
 
1440
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
1441
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
1442
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
1443
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
1444
    else
 
1445
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
1446
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
1447
               = "XX$teststring") >/dev/null 2>&1 &&
 
1448
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
1449
              lt_cv_sys_max_cmd_len=$new_result &&
 
1450
              test $i != 17 # 1/2 MB should be enough
 
1451
      do
 
1452
        i=`expr $i + 1`
 
1453
        teststring=$teststring$teststring
 
1454
      done
 
1455
      teststring=
 
1456
      # Add a significant safety factor because C++ compilers can tack on massive
 
1457
      # amounts of additional arguments before passing them to the linker.
 
1458
      # It appears as though 1/2 is a usable value.
 
1459
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
1460
    fi
 
1461
    ;;
 
1462
  esac
 
1463
])
 
1464
if test -n $lt_cv_sys_max_cmd_len ; then
 
1465
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
 
1466
else
 
1467
  AC_MSG_RESULT(none)
 
1468
fi
 
1469
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1470
 
 
1471
 
 
1472
# _LT_AC_CHECK_DLFCN
 
1473
# ------------------
 
1474
AC_DEFUN([_LT_AC_CHECK_DLFCN],
 
1475
[AC_CHECK_HEADERS(dlfcn.h)dnl
 
1476
])# _LT_AC_CHECK_DLFCN
 
1477
 
 
1478
 
 
1479
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
1480
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
1481
# ---------------------------------------------------------------------
 
1482
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
 
1483
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
1484
if test "$cross_compiling" = yes; then :
 
1485
  [$4]
 
1486
else
 
1487
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
1488
  lt_status=$lt_dlunknown
 
1489
  cat > conftest.$ac_ext <<EOF
 
1490
[#line __oline__ "configure"
 
1491
#include "confdefs.h"
 
1492
 
 
1493
#if HAVE_DLFCN_H
 
1494
#include <dlfcn.h>
 
1495
#endif
 
1496
 
 
1497
#include <stdio.h>
 
1498
 
 
1499
#ifdef RTLD_GLOBAL
 
1500
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
1501
#else
 
1502
#  ifdef DL_GLOBAL
 
1503
#    define LT_DLGLOBAL         DL_GLOBAL
 
1504
#  else
 
1505
#    define LT_DLGLOBAL         0
 
1506
#  endif
 
1507
#endif
 
1508
 
 
1509
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
1510
   find out it does not work in some platform. */
 
1511
#ifndef LT_DLLAZY_OR_NOW
 
1512
#  ifdef RTLD_LAZY
 
1513
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
1514
#  else
 
1515
#    ifdef DL_LAZY
 
1516
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
1517
#    else
 
1518
#      ifdef RTLD_NOW
 
1519
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
1520
#      else
 
1521
#        ifdef DL_NOW
 
1522
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
1523
#        else
 
1524
#          define LT_DLLAZY_OR_NOW      0
 
1525
#        endif
 
1526
#      endif
 
1527
#    endif
 
1528
#  endif
 
1529
#endif
 
1530
 
 
1531
#ifdef __cplusplus
 
1532
extern "C" void exit (int);
 
1533
#endif
 
1534
 
 
1535
void fnord() { int i=42;}
 
1536
int main ()
 
1537
{
 
1538
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
1539
  int status = $lt_dlunknown;
 
1540
 
 
1541
  if (self)
 
1542
    {
 
1543
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
1544
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
1545
      /* dlclose (self); */
 
1546
    }
 
1547
  else
 
1548
    puts (dlerror ());
 
1549
 
 
1550
    exit (status);
 
1551
}]
 
1552
EOF
 
1553
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
 
1554
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
 
1555
    lt_status=$?
 
1556
    case x$lt_status in
 
1557
      x$lt_dlno_uscore) $1 ;;
 
1558
      x$lt_dlneed_uscore) $2 ;;
 
1559
      x$lt_dlunknown|x*) $3 ;;
 
1560
    esac
 
1561
  else :
 
1562
    # compilation failed
 
1563
    $3
 
1564
  fi
 
1565
fi
 
1566
rm -fr conftest*
 
1567
])# _LT_AC_TRY_DLOPEN_SELF
 
1568
 
 
1569
 
 
1570
# AC_LIBTOOL_DLOPEN_SELF
 
1571
# ----------------------
 
1572
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
 
1573
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
1574
if test "x$enable_dlopen" != xyes; then
 
1575
  enable_dlopen=unknown
 
1576
  enable_dlopen_self=unknown
 
1577
  enable_dlopen_self_static=unknown
 
1578
else
 
1579
  lt_cv_dlopen=no
 
1580
  lt_cv_dlopen_libs=
 
1581
 
 
1582
  case $host_os in
 
1583
  beos*)
 
1584
    lt_cv_dlopen="load_add_on"
 
1585
    lt_cv_dlopen_libs=
 
1586
    lt_cv_dlopen_self=yes
 
1587
    ;;
 
1588
 
 
1589
  mingw* | pw32*)
 
1590
    lt_cv_dlopen="LoadLibrary"
 
1591
    lt_cv_dlopen_libs=
 
1592
   ;;
 
1593
 
 
1594
  cygwin*)
 
1595
    lt_cv_dlopen="dlopen"
 
1596
    lt_cv_dlopen_libs=
 
1597
   ;;
 
1598
 
 
1599
  darwin*)
 
1600
  # if libdl is installed we need to link against it
 
1601
    AC_CHECK_LIB([dl], [dlopen],
 
1602
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
 
1603
    lt_cv_dlopen="dyld"
 
1604
    lt_cv_dlopen_libs=
 
1605
    lt_cv_dlopen_self=yes
 
1606
    ])
 
1607
   ;;
 
1608
 
 
1609
  *)
 
1610
    AC_CHECK_FUNC([shl_load],
 
1611
          [lt_cv_dlopen="shl_load"],
 
1612
      [AC_CHECK_LIB([dld], [shl_load],
 
1613
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
1614
        [AC_CHECK_FUNC([dlopen],
 
1615
              [lt_cv_dlopen="dlopen"],
 
1616
          [AC_CHECK_LIB([dl], [dlopen],
 
1617
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
 
1618
            [AC_CHECK_LIB([svld], [dlopen],
 
1619
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
 
1620
              [AC_CHECK_LIB([dld], [dld_link],
 
1621
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
1622
              ])
 
1623
            ])
 
1624
          ])
 
1625
        ])
 
1626
      ])
 
1627
    ;;
 
1628
  esac
 
1629
 
 
1630
  if test "x$lt_cv_dlopen" != xno; then
 
1631
    enable_dlopen=yes
 
1632
  else
 
1633
    enable_dlopen=no
 
1634
  fi
 
1635
 
 
1636
  case $lt_cv_dlopen in
 
1637
  dlopen)
 
1638
    save_CPPFLAGS="$CPPFLAGS"
 
1639
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
1640
 
 
1641
    save_LDFLAGS="$LDFLAGS"
 
1642
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
1643
 
 
1644
    save_LIBS="$LIBS"
 
1645
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
1646
 
 
1647
    AC_CACHE_CHECK([whether a program can dlopen itself],
 
1648
          lt_cv_dlopen_self, [dnl
 
1649
          _LT_AC_TRY_DLOPEN_SELF(
 
1650
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
 
1651
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
 
1652
    ])
 
1653
 
 
1654
    if test "x$lt_cv_dlopen_self" = xyes; then
 
1655
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
1656
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
 
1657
          lt_cv_dlopen_self_static, [dnl
 
1658
          _LT_AC_TRY_DLOPEN_SELF(
 
1659
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
 
1660
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
 
1661
      ])
 
1662
    fi
 
1663
 
 
1664
    CPPFLAGS="$save_CPPFLAGS"
 
1665
    LDFLAGS="$save_LDFLAGS"
 
1666
    LIBS="$save_LIBS"
 
1667
    ;;
 
1668
  esac
 
1669
 
 
1670
  case $lt_cv_dlopen_self in
 
1671
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
1672
  *) enable_dlopen_self=unknown ;;
 
1673
  esac
 
1674
 
 
1675
  case $lt_cv_dlopen_self_static in
 
1676
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
1677
  *) enable_dlopen_self_static=unknown ;;
 
1678
  esac
 
1679
fi
 
1680
])# AC_LIBTOOL_DLOPEN_SELF
 
1681
 
 
1682
 
 
1683
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
 
1684
# ---------------------------------
 
1685
# Check to see if options -c and -o are simultaneously supported by compiler
 
1686
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
 
1687
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1688
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1689
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
 
1690
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
1691
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
1692
   $rm -r conftest 2>/dev/null
 
1693
   mkdir conftest
 
1694
   cd conftest
 
1695
   mkdir out
 
1696
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1697
 
 
1698
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
1699
   # Insert the option either (1) after the last *FLAGS variable, or
 
1700
   # (2) before a word containing "conftest.", or (3) at the end.
 
1701
   # Note that $ac_compile itself does not contain backslashes and begins
 
1702
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
1703
   lt_compile=`echo "$ac_compile" | $SED \
 
1704
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
1705
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 
1706
   -e 's:$: $lt_compiler_flag:'`
 
1707
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
1708
   (eval "$lt_compile" 2>out/conftest.err)
 
1709
   ac_status=$?
 
1710
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
 
1711
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1712
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
1713
   then
 
1714
     # The compiler can only warn and ignore the option if not recognized
 
1715
     # So say no if there are warnings
 
1716
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1717
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
1718
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
1719
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
1720
     fi
 
1721
   fi
 
1722
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
 
1723
   $rm conftest*
 
1724
   # SGI C++ compiler will create directory out/ii_files/ for
 
1725
   # template instantiation
 
1726
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
1727
   $rm out/* && rmdir out
 
1728
   cd ..
 
1729
   rmdir conftest
 
1730
   $rm conftest*
 
1731
])
 
1732
])# AC_LIBTOOL_PROG_CC_C_O
 
1733
 
 
1734
 
 
1735
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
 
1736
# -----------------------------------------
 
1737
# Check to see if we can do hard links to lock some files if needed
 
1738
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
 
1739
[AC_REQUIRE([_LT_AC_LOCK])dnl
 
1740
 
 
1741
hard_links="nottested"
 
1742
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
1743
  # do not overwrite the value of need_locks provided by the user
 
1744
  AC_MSG_CHECKING([if we can lock with hard links])
 
1745
  hard_links=yes
 
1746
  $rm conftest*
 
1747
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
1748
  touch conftest.a
 
1749
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
1750
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
1751
  AC_MSG_RESULT([$hard_links])
 
1752
  if test "$hard_links" = no; then
 
1753
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
 
1754
    need_locks=warn
 
1755
  fi
 
1756
else
 
1757
  need_locks=no
 
1758
fi
 
1759
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
 
1760
 
 
1761
 
 
1762
# AC_LIBTOOL_OBJDIR
 
1763
# -----------------
 
1764
AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
1765
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
 
1766
[rm -f .libs 2>/dev/null
 
1767
mkdir .libs 2>/dev/null
 
1768
if test -d .libs; then
 
1769
  lt_cv_objdir=.libs
 
1770
else
 
1771
  # MS-DOS does not allow filenames that begin with a dot.
 
1772
  lt_cv_objdir=_libs
 
1773
fi
 
1774
rmdir .libs 2>/dev/null])
 
1775
objdir=$lt_cv_objdir
 
1776
])# AC_LIBTOOL_OBJDIR
 
1777
 
 
1778
 
 
1779
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
 
1780
# ----------------------------------------------
 
1781
# Check hardcoding attributes.
 
1782
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
1783
[AC_MSG_CHECKING([how to hardcode library paths into programs])
 
1784
_LT_AC_TAGVAR(hardcode_action, $1)=
 
1785
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
 
1786
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
1787
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
1788
 
 
1789
  # We can hardcode non-existant directories.
 
1790
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 
1791
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
1792
     # have to relink, otherwise we might link with an installed library
 
1793
     # when we should be linking with a yet-to-be-installed one
 
1794
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
1795
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 
1796
    # Linking always hardcodes the temporary library directory.
 
1797
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
 
1798
  else
 
1799
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
1800
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 
1801
  fi
 
1802
else
 
1803
  # We cannot hardcode anything, or else we can only hardcode existing
 
1804
  # directories.
 
1805
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
1806
fi
 
1807
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
1808
 
 
1809
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
1810
  # Fast installation is not supported
 
1811
  enable_fast_install=no
 
1812
elif test "$shlibpath_overrides_runpath" = yes ||
 
1813
     test "$enable_shared" = no; then
 
1814
  # Fast installation is not necessary
 
1815
  enable_fast_install=needless
 
1816
fi
 
1817
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
 
1818
 
 
1819
 
 
1820
# AC_LIBTOOL_SYS_LIB_STRIP
 
1821
# ------------------------
 
1822
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
 
1823
[striplib=
 
1824
old_striplib=
 
1825
AC_MSG_CHECKING([whether stripping libraries is possible])
 
1826
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
1827
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
1828
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
1829
  AC_MSG_RESULT([yes])
 
1830
else
 
1831
# FIXME - insert some real tests, host_os isn't really good enough
 
1832
  case $host_os in
 
1833
   darwin*)
 
1834
       if test -n "$STRIP" ; then
 
1835
         striplib="$STRIP -x"
 
1836
         old_striplib="$STRIP -S"
 
1837
         AC_MSG_RESULT([yes])
 
1838
       else
 
1839
  AC_MSG_RESULT([no])
 
1840
fi
 
1841
       ;;
 
1842
   *)
 
1843
  AC_MSG_RESULT([no])
 
1844
    ;;
 
1845
  esac
 
1846
fi
 
1847
])# AC_LIBTOOL_SYS_LIB_STRIP
 
1848
 
 
1849
 
 
1850
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
1851
# -----------------------------
 
1852
# PORTME Fill in your ld.so characteristics
 
1853
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
 
1854
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1855
AC_MSG_CHECKING([dynamic linker characteristics])
 
1856
library_names_spec=
 
1857
libname_spec='lib$name'
 
1858
soname_spec=
 
1859
shrext_cmds=".so"
 
1860
postinstall_cmds=
 
1861
postuninstall_cmds=
 
1862
finish_cmds=
 
1863
finish_eval=
 
1864
shlibpath_var=
 
1865
shlibpath_overrides_runpath=unknown
 
1866
version_type=none
 
1867
dynamic_linker="$host_os ld.so"
 
1868
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1869
m4_if($1,[],[
 
1870
if test "$GCC" = yes; then
 
1871
  case $host_os in
 
1872
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1873
    *) lt_awk_arg="/^libraries:/" ;;
 
1874
  esac
 
1875
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1876
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
1877
    # if the path contains ";" then we assume it to be the separator
 
1878
    # otherwise default to the standard path separator (i.e. ":") - it is
 
1879
    # assumed that no part of a normal pathname contains ";" but that should
 
1880
    # okay in the real world where ";" in dirpaths is itself problematic.
 
1881
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
1882
  else
 
1883
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1884
  fi
 
1885
  # Ok, now we have the path, separated by spaces, we can step through it
 
1886
  # and add multilib dir if necessary.
 
1887
  lt_tmp_lt_search_path_spec=
 
1888
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1889
  for lt_sys_path in $lt_search_path_spec; do
 
1890
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1891
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1892
    else
 
1893
      test -d "$lt_sys_path" && \
 
1894
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1895
    fi
 
1896
  done
 
1897
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1898
BEGIN {RS=" "; FS="/|\n";} {
 
1899
  lt_foo="";
 
1900
  lt_count=0;
 
1901
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1902
    if ($lt_i != "" && $lt_i != ".") {
 
1903
      if ($lt_i == "..") {
 
1904
        lt_count++;
 
1905
      } else {
 
1906
        if (lt_count == 0) {
 
1907
          lt_foo="/" $lt_i lt_foo;
 
1908
        } else {
 
1909
          lt_count--;
 
1910
        }
 
1911
      }
 
1912
    }
 
1913
  }
 
1914
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1915
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1916
}'`
 
1917
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
1918
else
 
1919
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
1920
fi])
 
1921
need_lib_prefix=unknown
 
1922
hardcode_into_libs=no
 
1923
 
 
1924
# when you set need_version to no, make sure it does not cause -set_version
 
1925
# flags to be left without arguments
 
1926
need_version=unknown
 
1927
 
 
1928
case $host_os in
 
1929
aix3*)
 
1930
  version_type=linux
 
1931
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
1932
  shlibpath_var=LIBPATH
 
1933
 
 
1934
  # AIX 3 has no versioning support, so we append a major version to the name.
 
1935
  soname_spec='${libname}${release}${shared_ext}$major'
 
1936
  ;;
 
1937
 
 
1938
aix4* | aix5*)
 
1939
  version_type=linux
 
1940
  need_lib_prefix=no
 
1941
  need_version=no
 
1942
  hardcode_into_libs=yes
 
1943
  if test "$host_cpu" = ia64; then
 
1944
    # AIX 5 supports IA64
 
1945
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
1946
    shlibpath_var=LD_LIBRARY_PATH
 
1947
  else
 
1948
    # With GCC up to 2.95.x, collect2 would create an import file
 
1949
    # for dependence libraries.  The import file would start with
 
1950
    # the line `#! .'.  This would cause the generated library to
 
1951
    # depend on `.', always an invalid library.  This was fixed in
 
1952
    # development snapshots of GCC prior to 3.0.
 
1953
    case $host_os in
 
1954
      aix4 | aix4.[[01]] | aix4.[[01]].*)
 
1955
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
1956
           echo ' yes '
 
1957
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
1958
        :
 
1959
      else
 
1960
        can_build_shared=no
 
1961
      fi
 
1962
      ;;
 
1963
    esac
 
1964
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
1965
    # soname into executable. Probably we can add versioning support to
 
1966
    # collect2, so additional links can be useful in future.
 
1967
    if test "$aix_use_runtimelinking" = yes; then
 
1968
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
1969
      # instead of lib<name>.a to let people know that these are not
 
1970
      # typical AIX shared libraries.
 
1971
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1972
    else
 
1973
      # We preserve .a as extension for shared libraries through AIX4.2
 
1974
      # and later when we are not doing run time linking.
 
1975
      library_names_spec='${libname}${release}.a $libname.a'
 
1976
      soname_spec='${libname}${release}${shared_ext}$major'
 
1977
    fi
 
1978
    shlibpath_var=LIBPATH
 
1979
  fi
 
1980
  ;;
 
1981
 
 
1982
amigaos*)
 
1983
  library_names_spec='$libname.ixlibrary $libname.a'
 
1984
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
1985
  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'
 
1986
  ;;
 
1987
 
 
1988
beos*)
 
1989
  library_names_spec='${libname}${shared_ext}'
 
1990
  dynamic_linker="$host_os ld.so"
 
1991
  shlibpath_var=LIBRARY_PATH
 
1992
  ;;
 
1993
 
 
1994
bsdi[[45]]*)
 
1995
  version_type=linux
 
1996
  need_version=no
 
1997
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1998
  soname_spec='${libname}${release}${shared_ext}$major'
 
1999
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
2000
  shlibpath_var=LD_LIBRARY_PATH
 
2001
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
2002
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
2003
  # the default ld.so.conf also contains /usr/contrib/lib and
 
2004
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
2005
  # libtool to hard-code these into programs
 
2006
  ;;
 
2007
 
 
2008
cygwin* | mingw* | pw32*)
 
2009
  version_type=windows
 
2010
  shrext_cmds=".dll"
 
2011
  need_version=no
 
2012
  need_lib_prefix=no
 
2013
 
 
2014
  case $GCC,$host_os in
 
2015
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
2016
    library_names_spec='$libname.dll.a'
 
2017
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
2018
    postinstall_cmds='base_file=`basename \${file}`~
 
2019
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
2020
      dldir=$destdir/`dirname \$dlpath`~
 
2021
      test -d \$dldir || mkdir -p \$dldir~
 
2022
      $install_prog $dir/$dlname \$dldir/$dlname~
 
2023
      chmod a+x \$dldir/$dlname'
 
2024
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
2025
      dlpath=$dir/\$dldll~
 
2026
       $rm \$dlpath'
 
2027
    shlibpath_overrides_runpath=yes
 
2028
 
 
2029
    case $host_os in
 
2030
    cygwin*)
 
2031
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
2032
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2033
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
2034
      ;;
 
2035
    mingw*)
 
2036
      # MinGW DLLs use traditional 'lib' prefix
 
2037
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2038
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
2039
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
2040
        # It is most probably a Windows format PATH printed by
 
2041
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
2042
        # path with ; separators, and with drive letters. We can handle the
 
2043
        # drive letters (cygwin fileutils understands them), so leave them,
 
2044
        # especially as we might pass files found there to a mingw objdump,
 
2045
        # which wouldn't understand a cygwinified path. Ahh.
 
2046
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2047
      else
 
2048
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2049
      fi
 
2050
      ;;
 
2051
    pw32*)
 
2052
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
2053
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2054
      ;;
 
2055
    esac
 
2056
    ;;
 
2057
 
 
2058
  *)
 
2059
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
2060
    ;;
 
2061
  esac
 
2062
  dynamic_linker='Win32 ld.exe'
 
2063
  # FIXME: first we should search . and the directory the executable is in
 
2064
  shlibpath_var=PATH
 
2065
  ;;
 
2066
 
 
2067
darwin* | rhapsody*)
 
2068
  dynamic_linker="$host_os dyld"
 
2069
  version_type=darwin
 
2070
  need_lib_prefix=no
 
2071
  need_version=no
 
2072
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
2073
  soname_spec='${libname}${release}${major}$shared_ext'
 
2074
  shlibpath_overrides_runpath=yes
 
2075
  shlibpath_var=DYLD_LIBRARY_PATH
 
2076
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
2077
  m4_if([$1], [],[
 
2078
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
 
2079
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
2080
  ;;
 
2081
 
 
2082
dgux*)
 
2083
  version_type=linux
 
2084
  need_lib_prefix=no
 
2085
  need_version=no
 
2086
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
2087
  soname_spec='${libname}${release}${shared_ext}$major'
 
2088
  shlibpath_var=LD_LIBRARY_PATH
 
2089
  ;;
 
2090
 
 
2091
freebsd1*)
 
2092
  dynamic_linker=no
 
2093
  ;;
 
2094
 
 
2095
freebsd* | dragonfly*)
 
2096
  # DragonFly does not have aout.  When/if they implement a new
 
2097
  # versioning mechanism, adjust this.
 
2098
  if test -x /usr/bin/objformat; then
 
2099
    objformat=`/usr/bin/objformat`
 
2100
  else
 
2101
    case $host_os in
 
2102
    freebsd[[123]]*) objformat=aout ;;
 
2103
    *) objformat=elf ;;
 
2104
    esac
 
2105
  fi
 
2106
  version_type=freebsd-$objformat
 
2107
  case $version_type in
 
2108
    freebsd-elf*)
 
2109
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
2110
      need_version=no
 
2111
      need_lib_prefix=no
 
2112
      ;;
 
2113
    freebsd-*)
 
2114
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
2115
      need_version=yes
 
2116
      ;;
 
2117
  esac
 
2118
  shlibpath_var=LD_LIBRARY_PATH
 
2119
  case $host_os in
 
2120
  freebsd2*)
 
2121
    shlibpath_overrides_runpath=yes
 
2122
    ;;
 
2123
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
 
2124
    shlibpath_overrides_runpath=yes
 
2125
    hardcode_into_libs=yes
 
2126
    ;;
 
2127
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
2128
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
 
2129
    shlibpath_overrides_runpath=no
 
2130
    hardcode_into_libs=yes
 
2131
    ;;
 
2132
  *) # from 4.6 on, and DragonFly
 
2133
    shlibpath_overrides_runpath=yes
 
2134
    hardcode_into_libs=yes
 
2135
    ;;
 
2136
  esac
 
2137
  ;;
 
2138
 
 
2139
gnu*)
 
2140
  version_type=linux
 
2141
  need_lib_prefix=no
 
2142
  need_version=no
 
2143
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
2144
  soname_spec='${libname}${release}${shared_ext}$major'
 
2145
  shlibpath_var=LD_LIBRARY_PATH
 
2146
  hardcode_into_libs=yes
 
2147
  ;;
 
2148
 
 
2149
hpux9* | hpux10* | hpux11*)
 
2150
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
2151
  # link against other versions.
 
2152
  version_type=sunos
 
2153
  need_lib_prefix=no
 
2154
  need_version=no
 
2155
  case $host_cpu in
 
2156
  ia64*)
 
2157
    shrext_cmds='.so'
 
2158
    hardcode_into_libs=yes
 
2159
    dynamic_linker="$host_os dld.so"
 
2160
    shlibpath_var=LD_LIBRARY_PATH
 
2161
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
2162
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2163
    soname_spec='${libname}${release}${shared_ext}$major'
 
2164
    if test "X$HPUX_IA64_MODE" = X32; then
 
2165
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
2166
    else
 
2167
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
2168
    fi
 
2169
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
2170
    ;;
 
2171
   hppa*64*)
 
2172
     shrext_cmds='.sl'
 
2173
     hardcode_into_libs=yes
 
2174
     dynamic_linker="$host_os dld.sl"
 
2175
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
2176
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
2177
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2178
     soname_spec='${libname}${release}${shared_ext}$major'
 
2179
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
2180
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
2181
     ;;
 
2182
   *)
 
2183
    shrext_cmds='.sl'
 
2184
    dynamic_linker="$host_os dld.sl"
 
2185
    shlibpath_var=SHLIB_PATH
 
2186
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
2187
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2188
    soname_spec='${libname}${release}${shared_ext}$major'
 
2189
    ;;
 
2190
  esac
 
2191
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
2192
  postinstall_cmds='chmod 555 $lib'
 
2193
  ;;
 
2194
 
 
2195
interix[[3-9]]*)
 
2196
  version_type=linux
 
2197
  need_lib_prefix=no
 
2198
  need_version=no
 
2199
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
2200
  soname_spec='${libname}${release}${shared_ext}$major'
 
2201
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
2202
  shlibpath_var=LD_LIBRARY_PATH
 
2203
  shlibpath_overrides_runpath=no
 
2204
  hardcode_into_libs=yes
 
2205
  ;;
 
2206
 
 
2207
irix5* | irix6* | nonstopux*)
 
2208
  case $host_os in
 
2209
    nonstopux*) version_type=nonstopux ;;
 
2210
    *)
 
2211
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
2212
                version_type=linux
 
2213
        else
 
2214
                version_type=irix
 
2215
        fi ;;
 
2216
  esac
 
2217
  need_lib_prefix=no
 
2218
  need_version=no
 
2219
  soname_spec='${libname}${release}${shared_ext}$major'
 
2220
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
2221
  case $host_os in
 
2222
  irix5* | nonstopux*)
 
2223
    libsuff= shlibsuff=
 
2224
    ;;
 
2225
  *)
 
2226
    case $LD in # libtool.m4 will add one of these switches to LD
 
2227
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
2228
      libsuff= shlibsuff= libmagic=32-bit;;
 
2229
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
2230
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
2231
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
2232
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
2233
    *) libsuff= shlibsuff= libmagic=never-match;;
 
2234
    esac
 
2235
    ;;
 
2236
  esac
 
2237
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
2238
  shlibpath_overrides_runpath=no
 
2239
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
2240
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
2241
  hardcode_into_libs=yes
 
2242
  ;;
 
2243
 
 
2244
# No shared lib support for Linux oldld, aout, or coff.
 
2245
linux*oldld* | linux*aout* | linux*coff*)
 
2246
  dynamic_linker=no
 
2247
  ;;
 
2248
 
 
2249
# This must be Linux ELF.
 
2250
linux* | k*bsd*-gnu)
 
2251
  version_type=linux
 
2252
  need_lib_prefix=no
 
2253
  need_version=no
 
2254
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2255
  soname_spec='${libname}${release}${shared_ext}$major'
 
2256
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
2257
  shlibpath_var=LD_LIBRARY_PATH
 
2258
  shlibpath_overrides_runpath=no
 
2259
  # This implies no fast_install, which is unacceptable.
 
2260
  # Some rework will be needed to allow for fast_install
 
2261
  # before this can be enabled.
 
2262
  hardcode_into_libs=yes
 
2263
 
 
2264
  # Append ld.so.conf contents to the search path
 
2265
  if test -f /etc/ld.so.conf; then
 
2266
    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' ' '`
 
2267
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
2268
  fi
 
2269
 
 
2270
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
2271
  # powerpc, because MkLinux only supported shared libraries with the
 
2272
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
2273
  # most powerpc-linux boxes support dynamic linking these days and
 
2274
  # people can always --disable-shared, the test was removed, and we
 
2275
  # assume the GNU/Linux dynamic linker is in use.
 
2276
  dynamic_linker='GNU/Linux ld.so'
 
2277
  ;;
 
2278
 
 
2279
netbsdelf*-gnu)
 
2280
  version_type=linux
 
2281
  need_lib_prefix=no
 
2282
  need_version=no
 
2283
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
2284
  soname_spec='${libname}${release}${shared_ext}$major'
 
2285
  shlibpath_var=LD_LIBRARY_PATH
 
2286
  shlibpath_overrides_runpath=no
 
2287
  hardcode_into_libs=yes
 
2288
  dynamic_linker='NetBSD ld.elf_so'
 
2289
  ;;
 
2290
 
 
2291
netbsd*)
 
2292
  version_type=sunos
 
2293
  need_lib_prefix=no
 
2294
  need_version=no
 
2295
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
2296
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
2297
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
2298
    dynamic_linker='NetBSD (a.out) ld.so'
 
2299
  else
 
2300
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
2301
    soname_spec='${libname}${release}${shared_ext}$major'
 
2302
    dynamic_linker='NetBSD ld.elf_so'
 
2303
  fi
 
2304
  shlibpath_var=LD_LIBRARY_PATH
 
2305
  shlibpath_overrides_runpath=yes
 
2306
  hardcode_into_libs=yes
 
2307
  ;;
 
2308
 
 
2309
newsos6)
 
2310
  version_type=linux
 
2311
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2312
  shlibpath_var=LD_LIBRARY_PATH
 
2313
  shlibpath_overrides_runpath=yes
 
2314
  ;;
 
2315
 
 
2316
nto-qnx*)
 
2317
  version_type=linux
 
2318
  need_lib_prefix=no
 
2319
  need_version=no
 
2320
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2321
  soname_spec='${libname}${release}${shared_ext}$major'
 
2322
  shlibpath_var=LD_LIBRARY_PATH
 
2323
  shlibpath_overrides_runpath=yes
 
2324
  ;;
 
2325
 
 
2326
openbsd*)
 
2327
  version_type=sunos
 
2328
  sys_lib_dlsearch_path_spec="/usr/lib"
 
2329
  need_lib_prefix=no
 
2330
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
2331
  case $host_os in
 
2332
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
2333
    *)                         need_version=no  ;;
 
2334
  esac
 
2335
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
2336
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
2337
  shlibpath_var=LD_LIBRARY_PATH
 
2338
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
2339
    case $host_os in
 
2340
      openbsd2.[[89]] | openbsd2.[[89]].*)
 
2341
        shlibpath_overrides_runpath=no
 
2342
        ;;
 
2343
      *)
 
2344
        shlibpath_overrides_runpath=yes
 
2345
        ;;
 
2346
      esac
 
2347
  else
 
2348
    shlibpath_overrides_runpath=yes
 
2349
  fi
 
2350
  ;;
 
2351
 
 
2352
os2*)
 
2353
  libname_spec='$name'
 
2354
  shrext_cmds=".dll"
 
2355
  need_lib_prefix=no
 
2356
  library_names_spec='$libname${shared_ext} $libname.a'
 
2357
  dynamic_linker='OS/2 ld.exe'
 
2358
  shlibpath_var=LIBPATH
 
2359
  ;;
 
2360
 
 
2361
osf3* | osf4* | osf5*)
 
2362
  version_type=osf
 
2363
  need_lib_prefix=no
 
2364
  need_version=no
 
2365
  soname_spec='${libname}${release}${shared_ext}$major'
 
2366
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2367
  shlibpath_var=LD_LIBRARY_PATH
 
2368
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
2369
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
2370
  ;;
 
2371
 
 
2372
rdos*)
 
2373
  dynamic_linker=no
 
2374
  ;;
 
2375
 
 
2376
solaris*)
 
2377
  version_type=linux
 
2378
  need_lib_prefix=no
 
2379
  need_version=no
 
2380
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2381
  soname_spec='${libname}${release}${shared_ext}$major'
 
2382
  shlibpath_var=LD_LIBRARY_PATH
 
2383
  shlibpath_overrides_runpath=yes
 
2384
  hardcode_into_libs=yes
 
2385
  # ldd complains unless libraries are executable
 
2386
  postinstall_cmds='chmod +x $lib'
 
2387
  ;;
 
2388
 
 
2389
sunos4*)
 
2390
  version_type=sunos
 
2391
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
2392
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
2393
  shlibpath_var=LD_LIBRARY_PATH
 
2394
  shlibpath_overrides_runpath=yes
 
2395
  if test "$with_gnu_ld" = yes; then
 
2396
    need_lib_prefix=no
 
2397
  fi
 
2398
  need_version=yes
 
2399
  ;;
 
2400
 
 
2401
sysv4 | sysv4.3*)
 
2402
  version_type=linux
 
2403
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2404
  soname_spec='${libname}${release}${shared_ext}$major'
 
2405
  shlibpath_var=LD_LIBRARY_PATH
 
2406
  case $host_vendor in
 
2407
    sni)
 
2408
      shlibpath_overrides_runpath=no
 
2409
      need_lib_prefix=no
 
2410
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
2411
      runpath_var=LD_RUN_PATH
 
2412
      ;;
 
2413
    siemens)
 
2414
      need_lib_prefix=no
 
2415
      ;;
 
2416
    motorola)
 
2417
      need_lib_prefix=no
 
2418
      need_version=no
 
2419
      shlibpath_overrides_runpath=no
 
2420
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
2421
      ;;
 
2422
  esac
 
2423
  ;;
 
2424
 
 
2425
sysv4*MP*)
 
2426
  if test -d /usr/nec ;then
 
2427
    version_type=linux
 
2428
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
2429
    soname_spec='$libname${shared_ext}.$major'
 
2430
    shlibpath_var=LD_LIBRARY_PATH
 
2431
  fi
 
2432
  ;;
 
2433
 
 
2434
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
2435
  version_type=freebsd-elf
 
2436
  need_lib_prefix=no
 
2437
  need_version=no
 
2438
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
2439
  soname_spec='${libname}${release}${shared_ext}$major'
 
2440
  shlibpath_var=LD_LIBRARY_PATH
 
2441
  hardcode_into_libs=yes
 
2442
  if test "$with_gnu_ld" = yes; then
 
2443
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
2444
    shlibpath_overrides_runpath=no
 
2445
  else
 
2446
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
2447
    shlibpath_overrides_runpath=yes
 
2448
    case $host_os in
 
2449
      sco3.2v5*)
 
2450
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
2451
        ;;
 
2452
    esac
 
2453
  fi
 
2454
  sys_lib_dlsearch_path_spec='/usr/lib'
 
2455
  ;;
 
2456
 
 
2457
uts4*)
 
2458
  version_type=linux
 
2459
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2460
  soname_spec='${libname}${release}${shared_ext}$major'
 
2461
  shlibpath_var=LD_LIBRARY_PATH
 
2462
  ;;
 
2463
 
 
2464
*)
 
2465
  dynamic_linker=no
 
2466
  ;;
 
2467
esac
 
2468
AC_MSG_RESULT([$dynamic_linker])
 
2469
test "$dynamic_linker" = no && can_build_shared=no
 
2470
 
 
2471
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
2472
if test "$GCC" = yes; then
 
2473
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
2474
fi
 
2475
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
2476
 
 
2477
 
 
2478
# _LT_AC_TAGCONFIG
 
2479
# ----------------
 
2480
AC_DEFUN([_LT_AC_TAGCONFIG],
 
2481
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2482
AC_ARG_WITH([tags],
 
2483
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
 
2484
        [include additional configurations @<:@automatic@:>@])],
 
2485
    [tagnames="$withval"])
 
2486
 
 
2487
if test -f "$ltmain" && test -n "$tagnames"; then
 
2488
  if test ! -f "${ofile}"; then
 
2489
    AC_MSG_WARN([output file `$ofile' does not exist])
 
2490
  fi
 
2491
 
 
2492
  if test -z "$LTCC"; then
 
2493
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
2494
    if test -z "$LTCC"; then
 
2495
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
 
2496
    else
 
2497
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
 
2498
    fi
 
2499
  fi
 
2500
  if test -z "$LTCFLAGS"; then
 
2501
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
2502
  fi
 
2503
 
 
2504
  # Extract list of available tagged configurations in $ofile.
 
2505
  # Note that this assumes the entire list is on one line.
 
2506
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
2507
 
 
2508
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2509
  for tagname in $tagnames; do
 
2510
    IFS="$lt_save_ifs"
 
2511
    # Check whether tagname contains only valid characters
 
2512
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
 
2513
    "") ;;
 
2514
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
 
2515
        ;;
 
2516
    esac
 
2517
 
 
2518
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
2519
    then
 
2520
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
 
2521
    fi
 
2522
 
 
2523
    # Update the list of available tags.
 
2524
    if test -n "$tagname"; then
 
2525
      echo appending configuration tag \"$tagname\" to $ofile
 
2526
 
 
2527
      case $tagname in
 
2528
      CXX)
 
2529
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
2530
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
2531
            (test "X$CXX" != "Xg++"))) ; then
 
2532
          AC_LIBTOOL_LANG_CXX_CONFIG
 
2533
        else
 
2534
          tagname=""
 
2535
        fi
 
2536
        ;;
 
2537
 
 
2538
      F77)
 
2539
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
2540
          AC_LIBTOOL_LANG_F77_CONFIG
 
2541
        else
 
2542
          tagname=""
 
2543
        fi
 
2544
        ;;
 
2545
 
 
2546
      GCJ)
 
2547
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
2548
          AC_LIBTOOL_LANG_GCJ_CONFIG
 
2549
        else
 
2550
          tagname=""
 
2551
        fi
 
2552
        ;;
 
2553
 
 
2554
      RC)
 
2555
        AC_LIBTOOL_LANG_RC_CONFIG
 
2556
        ;;
 
2557
 
 
2558
      *)
 
2559
        AC_MSG_ERROR([Unsupported tag name: $tagname])
 
2560
        ;;
 
2561
      esac
 
2562
 
 
2563
      # Append the new tag name to the list of available tags.
 
2564
      if test -n "$tagname" ; then
 
2565
      available_tags="$available_tags $tagname"
 
2566
    fi
 
2567
    fi
 
2568
  done
 
2569
  IFS="$lt_save_ifs"
 
2570
 
 
2571
  # Now substitute the updated list of available tags.
 
2572
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
2573
    mv "${ofile}T" "$ofile"
 
2574
    chmod +x "$ofile"
 
2575
  else
 
2576
    rm -f "${ofile}T"
 
2577
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
 
2578
  fi
 
2579
fi
 
2580
])# _LT_AC_TAGCONFIG
 
2581
 
 
2582
 
 
2583
# AC_LIBTOOL_DLOPEN
 
2584
# -----------------
 
2585
# enable checks for dlopen support
 
2586
AC_DEFUN([AC_LIBTOOL_DLOPEN],
 
2587
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
 
2588
])# AC_LIBTOOL_DLOPEN
 
2589
 
 
2590
 
 
2591
# AC_LIBTOOL_WIN32_DLL
 
2592
# --------------------
 
2593
# declare package support for building win32 DLLs
 
2594
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
2595
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
 
2596
])# AC_LIBTOOL_WIN32_DLL
 
2597
 
 
2598
 
 
2599
# AC_ENABLE_SHARED([DEFAULT])
 
2600
# ---------------------------
 
2601
# implement the --enable-shared flag
 
2602
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
2603
AC_DEFUN([AC_ENABLE_SHARED],
 
2604
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
 
2605
AC_ARG_ENABLE([shared],
 
2606
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
2607
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
 
2608
    [p=${PACKAGE-default}
 
2609
    case $enableval in
 
2610
    yes) enable_shared=yes ;;
 
2611
    no) enable_shared=no ;;
 
2612
    *)
 
2613
      enable_shared=no
 
2614
      # Look at the argument we got.  We use all the common list separators.
 
2615
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2616
      for pkg in $enableval; do
 
2617
        IFS="$lt_save_ifs"
 
2618
        if test "X$pkg" = "X$p"; then
 
2619
          enable_shared=yes
 
2620
        fi
 
2621
      done
 
2622
      IFS="$lt_save_ifs"
 
2623
      ;;
 
2624
    esac],
 
2625
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
 
2626
])# AC_ENABLE_SHARED
 
2627
 
 
2628
 
 
2629
# AC_DISABLE_SHARED
 
2630
# -----------------
 
2631
# set the default shared flag to --disable-shared
 
2632
AC_DEFUN([AC_DISABLE_SHARED],
 
2633
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2634
AC_ENABLE_SHARED(no)
 
2635
])# AC_DISABLE_SHARED
 
2636
 
 
2637
 
 
2638
# AC_ENABLE_STATIC([DEFAULT])
 
2639
# ---------------------------
 
2640
# implement the --enable-static flag
 
2641
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
2642
AC_DEFUN([AC_ENABLE_STATIC],
 
2643
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
 
2644
AC_ARG_ENABLE([static],
 
2645
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
2646
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
 
2647
    [p=${PACKAGE-default}
 
2648
    case $enableval in
 
2649
    yes) enable_static=yes ;;
 
2650
    no) enable_static=no ;;
 
2651
    *)
 
2652
     enable_static=no
 
2653
      # Look at the argument we got.  We use all the common list separators.
 
2654
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2655
      for pkg in $enableval; do
 
2656
        IFS="$lt_save_ifs"
 
2657
        if test "X$pkg" = "X$p"; then
 
2658
          enable_static=yes
 
2659
        fi
 
2660
      done
 
2661
      IFS="$lt_save_ifs"
 
2662
      ;;
 
2663
    esac],
 
2664
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
 
2665
])# AC_ENABLE_STATIC
 
2666
 
 
2667
 
 
2668
# AC_DISABLE_STATIC
 
2669
# -----------------
 
2670
# set the default static flag to --disable-static
 
2671
AC_DEFUN([AC_DISABLE_STATIC],
 
2672
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2673
AC_ENABLE_STATIC(no)
 
2674
])# AC_DISABLE_STATIC
 
2675
 
 
2676
 
 
2677
# AC_ENABLE_FAST_INSTALL([DEFAULT])
 
2678
# ---------------------------------
 
2679
# implement the --enable-fast-install flag
 
2680
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
2681
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
 
2682
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
 
2683
AC_ARG_ENABLE([fast-install],
 
2684
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
2685
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
2686
    [p=${PACKAGE-default}
 
2687
    case $enableval in
 
2688
    yes) enable_fast_install=yes ;;
 
2689
    no) enable_fast_install=no ;;
 
2690
    *)
 
2691
      enable_fast_install=no
 
2692
      # Look at the argument we got.  We use all the common list separators.
 
2693
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2694
      for pkg in $enableval; do
 
2695
        IFS="$lt_save_ifs"
 
2696
        if test "X$pkg" = "X$p"; then
 
2697
          enable_fast_install=yes
 
2698
        fi
 
2699
      done
 
2700
      IFS="$lt_save_ifs"
 
2701
      ;;
 
2702
    esac],
 
2703
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
 
2704
])# AC_ENABLE_FAST_INSTALL
 
2705
 
 
2706
 
 
2707
# AC_DISABLE_FAST_INSTALL
 
2708
# -----------------------
 
2709
# set the default to --disable-fast-install
 
2710
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
 
2711
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2712
AC_ENABLE_FAST_INSTALL(no)
 
2713
])# AC_DISABLE_FAST_INSTALL
 
2714
 
 
2715
 
 
2716
# AC_LIBTOOL_PICMODE([MODE])
 
2717
# --------------------------
 
2718
# implement the --with-pic flag
 
2719
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
2720
AC_DEFUN([AC_LIBTOOL_PICMODE],
 
2721
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2722
pic_mode=ifelse($#,1,$1,default)
 
2723
])# AC_LIBTOOL_PICMODE
 
2724
 
 
2725
 
 
2726
# AC_PROG_EGREP
 
2727
# -------------
 
2728
# This is predefined starting with Autoconf 2.54, so this conditional
 
2729
# definition can be removed once we require Autoconf 2.54 or later.
 
2730
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
 
2731
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
 
2732
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
2733
    then ac_cv_prog_egrep='grep -E'
 
2734
    else ac_cv_prog_egrep='egrep'
 
2735
    fi])
 
2736
 EGREP=$ac_cv_prog_egrep
 
2737
 AC_SUBST([EGREP])
 
2738
])])
 
2739
 
 
2740
 
 
2741
# AC_PATH_TOOL_PREFIX
 
2742
# -------------------
 
2743
# find a file program which can recognize shared library
 
2744
AC_DEFUN([AC_PATH_TOOL_PREFIX],
 
2745
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
2746
AC_MSG_CHECKING([for $1])
 
2747
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
 
2748
[case $MAGIC_CMD in
 
2749
[[\\/*] |  ?:[\\/]*])
 
2750
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
2751
  ;;
 
2752
*)
 
2753
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
2754
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2755
dnl $ac_dummy forces splitting on constant user-supplied paths.
 
2756
dnl POSIX.2 word splitting is done only on the output of word expansions,
 
2757
dnl not every word.  This closes a longstanding sh security hole.
 
2758
  ac_dummy="ifelse([$2], , $PATH, [$2])"
 
2759
  for ac_dir in $ac_dummy; do
 
2760
    IFS="$lt_save_ifs"
 
2761
    test -z "$ac_dir" && ac_dir=.
 
2762
    if test -f $ac_dir/$1; then
 
2763
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
 
2764
      if test -n "$file_magic_test_file"; then
 
2765
        case $deplibs_check_method in
 
2766
        "file_magic "*)
 
2767
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
2768
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
2769
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
2770
            $EGREP "$file_magic_regex" > /dev/null; then
 
2771
            :
 
2772
          else
 
2773
            cat <<EOF 1>&2
 
2774
 
 
2775
*** Warning: the command libtool uses to detect shared libraries,
 
2776
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
2777
*** The result is that libtool may fail to recognize shared libraries
 
2778
*** as such.  This will affect the creation of libtool libraries that
 
2779
*** depend on shared libraries, but programs linked with such libtool
 
2780
*** libraries will work regardless of this problem.  Nevertheless, you
 
2781
*** may want to report the problem to your system manager and/or to
 
2782
*** bug-libtool@gnu.org
 
2783
 
 
2784
EOF
 
2785
          fi ;;
 
2786
        esac
 
2787
      fi
 
2788
      break
 
2789
    fi
 
2790
  done
 
2791
  IFS="$lt_save_ifs"
 
2792
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
2793
  ;;
 
2794
esac])
 
2795
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
2796
if test -n "$MAGIC_CMD"; then
 
2797
  AC_MSG_RESULT($MAGIC_CMD)
 
2798
else
 
2799
  AC_MSG_RESULT(no)
 
2800
fi
 
2801
])# AC_PATH_TOOL_PREFIX
 
2802
 
 
2803
 
 
2804
# AC_PATH_MAGIC
 
2805
# -------------
 
2806
# find a file program which can recognize a shared library
 
2807
AC_DEFUN([AC_PATH_MAGIC],
 
2808
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
2809
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
2810
  if test -n "$ac_tool_prefix"; then
 
2811
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
2812
  else
 
2813
    MAGIC_CMD=:
 
2814
  fi
 
2815
fi
 
2816
])# AC_PATH_MAGIC
 
2817
 
 
2818
 
 
2819
# AC_PROG_LD
 
2820
# ----------
 
2821
# find the pathname to the GNU or non-GNU linker
 
2822
AC_DEFUN([AC_PROG_LD],
 
2823
[AC_ARG_WITH([gnu-ld],
 
2824
    [AC_HELP_STRING([--with-gnu-ld],
 
2825
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
 
2826
    [test "$withval" = no || with_gnu_ld=yes],
 
2827
    [with_gnu_ld=no])
 
2828
AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2829
AC_REQUIRE([AC_PROG_CC])dnl
 
2830
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2831
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
2832
ac_prog=ld
 
2833
if test "$GCC" = yes; then
 
2834
  # Check if gcc -print-prog-name=ld gives a path.
 
2835
  AC_MSG_CHECKING([for ld used by $CC])
 
2836
  case $host in
 
2837
  *-*-mingw*)
 
2838
    # gcc leaves a trailing carriage return which upsets mingw
 
2839
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
2840
  *)
 
2841
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
2842
  esac
 
2843
  case $ac_prog in
 
2844
    # Accept absolute paths.
 
2845
    [[\\/]]* | ?:[[\\/]]*)
 
2846
      re_direlt='/[[^/]][[^/]]*/\.\./'
 
2847
      # Canonicalize the pathname of ld
 
2848
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
2849
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
2850
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
2851
      done
 
2852
      test -z "$LD" && LD="$ac_prog"
 
2853
      ;;
 
2854
  "")
 
2855
    # If it fails, then pretend we aren't using GCC.
 
2856
    ac_prog=ld
 
2857
    ;;
 
2858
  *)
 
2859
    # If it is relative, then search for the first ld in PATH.
 
2860
    with_gnu_ld=unknown
 
2861
    ;;
 
2862
  esac
 
2863
elif test "$with_gnu_ld" = yes; then
 
2864
  AC_MSG_CHECKING([for GNU ld])
 
2865
else
 
2866
  AC_MSG_CHECKING([for non-GNU ld])
 
2867
fi
 
2868
AC_CACHE_VAL(lt_cv_path_LD,
 
2869
[if test -z "$LD"; then
 
2870
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2871
  for ac_dir in $PATH; do
 
2872
    IFS="$lt_save_ifs"
 
2873
    test -z "$ac_dir" && ac_dir=.
 
2874
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
2875
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
2876
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
2877
      # but apparently some variants of GNU ld only accept -v.
 
2878
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
2879
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
2880
      *GNU* | *'with BFD'*)
 
2881
        test "$with_gnu_ld" != no && break
 
2882
        ;;
 
2883
      *)
 
2884
        test "$with_gnu_ld" != yes && break
 
2885
        ;;
 
2886
      esac
 
2887
    fi
 
2888
  done
 
2889
  IFS="$lt_save_ifs"
 
2890
else
 
2891
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
2892
fi])
 
2893
LD="$lt_cv_path_LD"
 
2894
if test -n "$LD"; then
 
2895
  AC_MSG_RESULT($LD)
 
2896
else
 
2897
  AC_MSG_RESULT(no)
 
2898
fi
 
2899
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 
2900
AC_PROG_LD_GNU
 
2901
])# AC_PROG_LD
 
2902
 
 
2903
 
 
2904
# AC_PROG_LD_GNU
 
2905
# --------------
 
2906
AC_DEFUN([AC_PROG_LD_GNU],
 
2907
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
2908
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
2909
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
 
2910
case `$LD -v 2>&1 </dev/null` in
 
2911
*GNU* | *'with BFD'*)
 
2912
  lt_cv_prog_gnu_ld=yes
 
2913
  ;;
 
2914
*)
 
2915
  lt_cv_prog_gnu_ld=no
 
2916
  ;;
 
2917
esac])
 
2918
with_gnu_ld=$lt_cv_prog_gnu_ld
 
2919
])# AC_PROG_LD_GNU
 
2920
 
 
2921
 
 
2922
# AC_PROG_LD_RELOAD_FLAG
 
2923
# ----------------------
 
2924
# find reload flag for linker
 
2925
#   -- PORTME Some linkers may need a different reload flag.
 
2926
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 
2927
[AC_CACHE_CHECK([for $LD option to reload object files],
 
2928
  lt_cv_ld_reload_flag,
 
2929
  [lt_cv_ld_reload_flag='-r'])
 
2930
reload_flag=$lt_cv_ld_reload_flag
 
2931
case $reload_flag in
 
2932
"" | " "*) ;;
 
2933
*) reload_flag=" $reload_flag" ;;
 
2934
esac
 
2935
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2936
case $host_os in
 
2937
  darwin*)
 
2938
    if test "$GCC" = yes; then
 
2939
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
2940
    else
 
2941
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2942
    fi
 
2943
    ;;
 
2944
esac
 
2945
])# AC_PROG_LD_RELOAD_FLAG
 
2946
 
 
2947
 
 
2948
# AC_DEPLIBS_CHECK_METHOD
 
2949
# -----------------------
 
2950
# how to check for library dependencies
 
2951
#  -- PORTME fill in with the dynamic library characteristics
 
2952
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
 
2953
[AC_CACHE_CHECK([how to recognize dependent libraries],
 
2954
lt_cv_deplibs_check_method,
 
2955
[lt_cv_file_magic_cmd='$MAGIC_CMD'
 
2956
lt_cv_file_magic_test_file=
 
2957
lt_cv_deplibs_check_method='unknown'
 
2958
# Need to set the preceding variable on all platforms that support
 
2959
# interlibrary dependencies.
 
2960
# 'none' -- dependencies not supported.
 
2961
# `unknown' -- same as none, but documents that we really don't know.
 
2962
# 'pass_all' -- all dependencies passed with no checks.
 
2963
# 'test_compile' -- check by making test program.
 
2964
# 'file_magic [[regex]]' -- check by looking for files in library path
 
2965
# which responds to the $file_magic_cmd with a given extended regex.
 
2966
# If you have `file' or equivalent on your system and you're not sure
 
2967
# whether `pass_all' will *always* work, you probably want this one.
 
2968
 
 
2969
case $host_os in
 
2970
aix4* | aix5*)
 
2971
  lt_cv_deplibs_check_method=pass_all
 
2972
  ;;
 
2973
 
 
2974
beos*)
 
2975
  lt_cv_deplibs_check_method=pass_all
 
2976
  ;;
 
2977
 
 
2978
bsdi[[45]]*)
 
2979
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
 
2980
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
2981
  lt_cv_file_magic_test_file=/shlib/libc.so
 
2982
  ;;
 
2983
 
 
2984
cygwin*)
 
2985
  # func_win32_libid is a shell function defined in ltmain.sh
 
2986
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2987
  lt_cv_file_magic_cmd='func_win32_libid'
 
2988
  ;;
 
2989
 
 
2990
mingw* | pw32*)
 
2991
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
2992
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2993
  # unless we find 'file', for example because we are cross-compiling.
 
2994
  if ( file / ) >/dev/null 2>&1; then
 
2995
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2996
    lt_cv_file_magic_cmd='func_win32_libid'
 
2997
  else
 
2998
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2999
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3000
  fi
 
3001
  ;;
 
3002
 
 
3003
darwin* | rhapsody*)
 
3004
  lt_cv_deplibs_check_method=pass_all
 
3005
  ;;
 
3006
 
 
3007
freebsd* | dragonfly*)
 
3008
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3009
    case $host_cpu in
 
3010
    i*86 )
 
3011
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3012
      # Let's accept both of them until this is cleared up.
 
3013
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
 
3014
      lt_cv_file_magic_cmd=/usr/bin/file
 
3015
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3016
      ;;
 
3017
    esac
 
3018
  else
 
3019
    lt_cv_deplibs_check_method=pass_all
 
3020
  fi
 
3021
  ;;
 
3022
 
 
3023
gnu*)
 
3024
  lt_cv_deplibs_check_method=pass_all
 
3025
  ;;
 
3026
 
 
3027
hpux10.20* | hpux11*)
 
3028
  lt_cv_file_magic_cmd=/usr/bin/file
 
3029
  case $host_cpu in
 
3030
  ia64*)
 
3031
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
 
3032
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3033
    ;;
 
3034
  hppa*64*)
 
3035
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
 
3036
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3037
    ;;
 
3038
  *)
 
3039
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
3040
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3041
    ;;
 
3042
  esac
 
3043
  ;;
 
3044
 
 
3045
interix[[3-9]]*)
 
3046
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
3047
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
3048
  ;;
 
3049
 
 
3050
irix5* | irix6* | nonstopux*)
 
3051
  case $LD in
 
3052
  *-32|*"-32 ") libmagic=32-bit;;
 
3053
  *-n32|*"-n32 ") libmagic=N32;;
 
3054
  *-64|*"-64 ") libmagic=64-bit;;
 
3055
  *) libmagic=never-match;;
 
3056
  esac
 
3057
  lt_cv_deplibs_check_method=pass_all
 
3058
  ;;
 
3059
 
 
3060
# This must be Linux ELF.
 
3061
linux* | k*bsd*-gnu)
 
3062
  lt_cv_deplibs_check_method=pass_all
 
3063
  ;;
 
3064
 
 
3065
netbsd* | netbsdelf*-gnu)
 
3066
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3067
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 
3068
  else
 
3069
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
 
3070
  fi
 
3071
  ;;
 
3072
 
 
3073
newos6*)
 
3074
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
 
3075
  lt_cv_file_magic_cmd=/usr/bin/file
 
3076
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3077
  ;;
 
3078
 
 
3079
nto-qnx*)
 
3080
  lt_cv_deplibs_check_method=unknown
 
3081
  ;;
 
3082
 
 
3083
openbsd*)
 
3084
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3085
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
 
3086
  else
 
3087
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 
3088
  fi
 
3089
  ;;
 
3090
 
 
3091
osf3* | osf4* | osf5*)
 
3092
  lt_cv_deplibs_check_method=pass_all
 
3093
  ;;
 
3094
 
 
3095
rdos*)
 
3096
  lt_cv_deplibs_check_method=pass_all
 
3097
  ;;
 
3098
 
 
3099
solaris*)
 
3100
  lt_cv_deplibs_check_method=pass_all
 
3101
  ;;
 
3102
 
 
3103
sysv4 | sysv4.3*)
 
3104
  case $host_vendor in
 
3105
  motorola)
 
3106
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
 
3107
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3108
    ;;
 
3109
  ncr)
 
3110
    lt_cv_deplibs_check_method=pass_all
 
3111
    ;;
 
3112
  sequent)
 
3113
    lt_cv_file_magic_cmd='/bin/file'
 
3114
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
 
3115
    ;;
 
3116
  sni)
 
3117
    lt_cv_file_magic_cmd='/bin/file'
 
3118
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
 
3119
    lt_cv_file_magic_test_file=/lib/libc.so
 
3120
    ;;
 
3121
  siemens)
 
3122
    lt_cv_deplibs_check_method=pass_all
 
3123
    ;;
 
3124
  pc)
 
3125
    lt_cv_deplibs_check_method=pass_all
 
3126
    ;;
 
3127
  esac
 
3128
  ;;
 
3129
 
 
3130
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3131
  lt_cv_deplibs_check_method=pass_all
 
3132
  ;;
 
3133
esac
 
3134
])
 
3135
file_magic_cmd=$lt_cv_file_magic_cmd
 
3136
deplibs_check_method=$lt_cv_deplibs_check_method
 
3137
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3138
])# AC_DEPLIBS_CHECK_METHOD
 
3139
 
 
3140
 
 
3141
# AC_PROG_NM
 
3142
# ----------
 
3143
# find the pathname to a BSD-compatible name lister
 
3144
AC_DEFUN([AC_PROG_NM],
 
3145
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 
3146
[if test -n "$NM"; then
 
3147
  # Let the user override the test.
 
3148
  lt_cv_path_NM="$NM"
 
3149
else
 
3150
  lt_nm_to_check="${ac_tool_prefix}nm"
 
3151
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
3152
    lt_nm_to_check="$lt_nm_to_check nm"
 
3153
  fi
 
3154
  for lt_tmp_nm in $lt_nm_to_check; do
 
3155
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3156
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
3157
      IFS="$lt_save_ifs"
 
3158
      test -z "$ac_dir" && ac_dir=.
 
3159
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
3160
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3161
        # Check to see if the nm accepts a BSD-compat flag.
 
3162
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3163
        #   nm: unknown option "B" ignored
 
3164
        # Tru64's nm complains that /dev/null is an invalid object file
 
3165
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3166
        */dev/null* | *'Invalid file or object type'*)
 
3167
          lt_cv_path_NM="$tmp_nm -B"
 
3168
          break
 
3169
          ;;
 
3170
        *)
 
3171
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3172
          */dev/null*)
 
3173
            lt_cv_path_NM="$tmp_nm -p"
 
3174
            break
 
3175
            ;;
 
3176
          *)
 
3177
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3178
            continue # so that we can try to find one that supports BSD flags
 
3179
            ;;
 
3180
          esac
 
3181
          ;;
 
3182
        esac
 
3183
      fi
 
3184
    done
 
3185
    IFS="$lt_save_ifs"
 
3186
  done
 
3187
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3188
fi])
 
3189
NM="$lt_cv_path_NM"
 
3190
])# AC_PROG_NM
 
3191
 
 
3192
 
 
3193
# AC_CHECK_LIBM
 
3194
# -------------
 
3195
# check for math library
 
3196
AC_DEFUN([AC_CHECK_LIBM],
 
3197
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3198
LIBM=
 
3199
case $host in
 
3200
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
3201
  # These system don't have libm, or don't need it
 
3202
  ;;
 
3203
*-ncr-sysv4.3*)
 
3204
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
 
3205
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
 
3206
  ;;
 
3207
*)
 
3208
  AC_CHECK_LIB(m, cos, LIBM="-lm")
 
3209
  ;;
 
3210
esac
 
3211
])# AC_CHECK_LIBM
 
3212
 
 
3213
 
 
3214
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
 
3215
# -----------------------------------
 
3216
# sets LIBLTDL to the link flags for the libltdl convenience library and
 
3217
# LTDLINCL to the include flags for the libltdl header and adds
 
3218
# --enable-ltdl-convenience to the configure arguments.  Note that
 
3219
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
3220
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
3221
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
3222
# (note the single quotes!).  If your package is not flat and you're not
 
3223
# using automake, define top_builddir and top_srcdir appropriately in
 
3224
# the Makefiles.
 
3225
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
 
3226
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3227
  case $enable_ltdl_convenience in
 
3228
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
 
3229
  "") enable_ltdl_convenience=yes
 
3230
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
 
3231
  esac
 
3232
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
 
3233
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
3234
  # For backwards non-gettext consistent compatibility...
 
3235
  INCLTDL="$LTDLINCL"
 
3236
])# AC_LIBLTDL_CONVENIENCE
 
3237
 
 
3238
 
 
3239
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
 
3240
# -----------------------------------
 
3241
# sets LIBLTDL to the link flags for the libltdl installable library and
 
3242
# LTDLINCL to the include flags for the libltdl header and adds
 
3243
# --enable-ltdl-install to the configure arguments.  Note that
 
3244
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
3245
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
3246
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
3247
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
3248
# flat and you're not using automake, define top_builddir and top_srcdir
 
3249
# appropriately in the Makefiles.
 
3250
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
 
3251
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
 
3252
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3253
  AC_CHECK_LIB(ltdl, lt_dlinit,
 
3254
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
 
3255
  [if test x"$enable_ltdl_install" = xno; then
 
3256
     AC_MSG_WARN([libltdl not installed, but installation disabled])
 
3257
   else
 
3258
     enable_ltdl_install=yes
 
3259
   fi
 
3260
  ])
 
3261
  if test x"$enable_ltdl_install" = x"yes"; then
 
3262
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
 
3263
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
 
3264
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
3265
  else
 
3266
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
 
3267
    LIBLTDL="-lltdl"
 
3268
    LTDLINCL=
 
3269
  fi
 
3270
  # For backwards non-gettext consistent compatibility...
 
3271
  INCLTDL="$LTDLINCL"
 
3272
])# AC_LIBLTDL_INSTALLABLE
 
3273
 
 
3274
 
 
3275
# AC_LIBTOOL_CXX
 
3276
# --------------
 
3277
# enable support for C++ libraries
 
3278
AC_DEFUN([AC_LIBTOOL_CXX],
 
3279
[AC_REQUIRE([_LT_AC_LANG_CXX])
 
3280
])# AC_LIBTOOL_CXX
 
3281
 
 
3282
 
 
3283
# _LT_AC_LANG_CXX
 
3284
# ---------------
 
3285
AC_DEFUN([_LT_AC_LANG_CXX],
 
3286
[AC_REQUIRE([AC_PROG_CXX])
 
3287
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
3288
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
 
3289
])# _LT_AC_LANG_CXX
 
3290
 
 
3291
# _LT_AC_PROG_CXXCPP
 
3292
# ------------------
 
3293
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
3294
[
 
3295
AC_REQUIRE([AC_PROG_CXX])
 
3296
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
3297
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
3298
    (test "X$CXX" != "Xg++"))) ; then
 
3299
  AC_PROG_CXXCPP
 
3300
fi
 
3301
])# _LT_AC_PROG_CXXCPP
 
3302
 
 
3303
# AC_LIBTOOL_F77
 
3304
# --------------
 
3305
# enable support for Fortran 77 libraries
 
3306
AC_DEFUN([AC_LIBTOOL_F77],
 
3307
[AC_REQUIRE([_LT_AC_LANG_F77])
 
3308
])# AC_LIBTOOL_F77
 
3309
 
 
3310
 
 
3311
# _LT_AC_LANG_F77
 
3312
# ---------------
 
3313
AC_DEFUN([_LT_AC_LANG_F77],
 
3314
[AC_REQUIRE([AC_PROG_F77])
 
3315
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
 
3316
])# _LT_AC_LANG_F77
 
3317
 
 
3318
 
 
3319
# AC_LIBTOOL_GCJ
 
3320
# --------------
 
3321
# enable support for GCJ libraries
 
3322
AC_DEFUN([AC_LIBTOOL_GCJ],
 
3323
[AC_REQUIRE([_LT_AC_LANG_GCJ])
 
3324
])# AC_LIBTOOL_GCJ
 
3325
 
 
3326
 
 
3327
# _LT_AC_LANG_GCJ
 
3328
# ---------------
 
3329
AC_DEFUN([_LT_AC_LANG_GCJ],
 
3330
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
 
3331
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
 
3332
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
 
3333
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
 
3334
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
 
3335
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
 
3336
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
 
3337
])# _LT_AC_LANG_GCJ
 
3338
 
 
3339
 
 
3340
# AC_LIBTOOL_RC
 
3341
# -------------
 
3342
# enable support for Windows resource files
 
3343
AC_DEFUN([AC_LIBTOOL_RC],
 
3344
[AC_REQUIRE([LT_AC_PROG_RC])
 
3345
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
 
3346
])# AC_LIBTOOL_RC
 
3347
 
 
3348
 
 
3349
# AC_LIBTOOL_LANG_C_CONFIG
 
3350
# ------------------------
 
3351
# Ensure that the configuration vars for the C compiler are
 
3352
# suitably defined.  Those variables are subsequently used by
 
3353
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
3354
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
 
3355
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
 
3356
[lt_save_CC="$CC"
 
3357
AC_LANG_PUSH(C)
 
3358
 
 
3359
# Source file extension for C test sources.
 
3360
ac_ext=c
 
3361
 
 
3362
# Object file extension for compiled C test sources.
 
3363
objext=o
 
3364
_LT_AC_TAGVAR(objext, $1)=$objext
 
3365
 
 
3366
# Code to be used in simple compile tests
 
3367
lt_simple_compile_test_code="int some_variable = 0;"
 
3368
 
 
3369
# Code to be used in simple link tests
 
3370
lt_simple_link_test_code='int main(){return(0);}'
 
3371
 
 
3372
_LT_AC_SYS_COMPILER
 
3373
 
 
3374
# save warnings/boilerplate of simple test code
 
3375
_LT_COMPILER_BOILERPLATE
 
3376
_LT_LINKER_BOILERPLATE
 
3377
 
 
3378
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
3379
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
3380
AC_LIBTOOL_PROG_CC_C_O($1)
 
3381
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
3382
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
3383
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
3384
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
3385
AC_LIBTOOL_SYS_LIB_STRIP
 
3386
AC_LIBTOOL_DLOPEN_SELF
 
3387
 
 
3388
# Report which library types will actually be built
 
3389
AC_MSG_CHECKING([if libtool supports shared libraries])
 
3390
AC_MSG_RESULT([$can_build_shared])
 
3391
 
 
3392
AC_MSG_CHECKING([whether to build shared libraries])
 
3393
test "$can_build_shared" = "no" && enable_shared=no
 
3394
 
 
3395
# On AIX, shared libraries and static libraries use the same namespace, and
 
3396
# are all built from PIC.
 
3397
case $host_os in
 
3398
aix3*)
 
3399
  test "$enable_shared" = yes && enable_static=no
 
3400
  if test -n "$RANLIB"; then
 
3401
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
3402
    postinstall_cmds='$RANLIB $lib'
 
3403
  fi
 
3404
  ;;
 
3405
 
 
3406
aix4* | aix5*)
 
3407
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
3408
    test "$enable_shared" = yes && enable_static=no
 
3409
  fi
 
3410
    ;;
 
3411
esac
 
3412
AC_MSG_RESULT([$enable_shared])
 
3413
 
 
3414
AC_MSG_CHECKING([whether to build static libraries])
 
3415
# Make sure either enable_shared or enable_static is yes.
 
3416
test "$enable_shared" = yes || enable_static=yes
 
3417
AC_MSG_RESULT([$enable_static])
 
3418
 
 
3419
AC_LIBTOOL_CONFIG($1)
 
3420
 
 
3421
AC_LANG_POP
 
3422
CC="$lt_save_CC"
 
3423
])# AC_LIBTOOL_LANG_C_CONFIG
 
3424
 
 
3425
 
 
3426
# AC_LIBTOOL_LANG_CXX_CONFIG
 
3427
# --------------------------
 
3428
# Ensure that the configuration vars for the C compiler are
 
3429
# suitably defined.  Those variables are subsequently used by
 
3430
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
3431
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
 
3432
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
 
3433
[AC_LANG_PUSH(C++)
 
3434
AC_REQUIRE([AC_PROG_CXX])
 
3435
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
3436
 
 
3437
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3438
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
3439
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
3440
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
3441
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
3442
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3443
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
3444
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
3445
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
3446
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
3447
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3448
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
3449
_LT_AC_TAGVAR(module_cmds, $1)=
 
3450
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
3451
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
3452
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
3453
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
3454
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
3455
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
3456
 
 
3457
# Dependencies to place before and after the object being linked:
 
3458
_LT_AC_TAGVAR(predep_objects, $1)=
 
3459
_LT_AC_TAGVAR(postdep_objects, $1)=
 
3460
_LT_AC_TAGVAR(predeps, $1)=
 
3461
_LT_AC_TAGVAR(postdeps, $1)=
 
3462
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
3463
 
 
3464
# Source file extension for C++ test sources.
 
3465
ac_ext=cpp
 
3466
 
 
3467
# Object file extension for compiled C++ test sources.
 
3468
objext=o
 
3469
_LT_AC_TAGVAR(objext, $1)=$objext
 
3470
 
 
3471
# Code to be used in simple compile tests
 
3472
lt_simple_compile_test_code="int some_variable = 0;"
 
3473
 
 
3474
# Code to be used in simple link tests
 
3475
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
3476
 
 
3477
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
3478
_LT_AC_SYS_COMPILER
 
3479
 
 
3480
# save warnings/boilerplate of simple test code
 
3481
_LT_COMPILER_BOILERPLATE
 
3482
_LT_LINKER_BOILERPLATE
 
3483
 
 
3484
# Allow CC to be a program name with arguments.
 
3485
lt_save_CC=$CC
 
3486
lt_save_LD=$LD
 
3487
lt_save_GCC=$GCC
 
3488
GCC=$GXX
 
3489
lt_save_with_gnu_ld=$with_gnu_ld
 
3490
lt_save_path_LD=$lt_cv_path_LD
 
3491
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
3492
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
3493
else
 
3494
  $as_unset lt_cv_prog_gnu_ld
 
3495
fi
 
3496
if test -n "${lt_cv_path_LDCXX+set}"; then
 
3497
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
3498
else
 
3499
  $as_unset lt_cv_path_LD
 
3500
fi
 
3501
test -z "${LDCXX+set}" || LD=$LDCXX
 
3502
CC=${CXX-"c++"}
 
3503
compiler=$CC
 
3504
_LT_AC_TAGVAR(compiler, $1)=$CC
 
3505
_LT_CC_BASENAME([$compiler])
 
3506
 
 
3507
# We don't want -fno-exception wen compiling C++ code, so set the
 
3508
# no_builtin_flag separately
 
3509
if test "$GXX" = yes; then
 
3510
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3511
else
 
3512
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
3513
fi
 
3514
 
 
3515
if test "$GXX" = yes; then
 
3516
  # Set up default GNU C++ configuration
 
3517
 
 
3518
  AC_PROG_LD
 
3519
 
 
3520
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
3521
  # archiving commands below assume that GNU ld is being used.
 
3522
  if test "$with_gnu_ld" = yes; then
 
3523
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3524
    _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'
 
3525
 
 
3526
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
3527
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3528
 
 
3529
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
3530
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
3531
    #     investigate it a little bit more. (MM)
 
3532
    wlarc='${wl}'
 
3533
 
 
3534
    # ancient GNU ld didn't support --whole-archive et. al.
 
3535
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
3536
        grep 'no-whole-archive' > /dev/null; then
 
3537
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3538
    else
 
3539
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
3540
    fi
 
3541
  else
 
3542
    with_gnu_ld=no
 
3543
    wlarc=
 
3544
 
 
3545
    # A generic and very simple default shared library creation
 
3546
    # command for GNU C++ for the case where it uses the native
 
3547
    # linker, instead of GNU ld.  If possible, this setting should
 
3548
    # overridden to take advantage of the native linker features on
 
3549
    # the platform it is being used on.
 
3550
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3551
  fi
 
3552
 
 
3553
  # Commands to make compiler produce verbose output that lists
 
3554
  # what "hidden" libraries, object files and flags are used when
 
3555
  # linking a shared library.
 
3556
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
3557
 
 
3558
else
 
3559
  GXX=no
 
3560
  with_gnu_ld=no
 
3561
  wlarc=
 
3562
fi
 
3563
 
 
3564
# PORTME: fill in a description of your system's C++ link characteristics
 
3565
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
3566
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
3567
case $host_os in
 
3568
  aix3*)
 
3569
    # FIXME: insert proper C++ library support
 
3570
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3571
    ;;
 
3572
  aix4* | aix5*)
 
3573
    if test "$host_cpu" = ia64; then
 
3574
      # On IA64, the linker does run time linking by default, so we don't
 
3575
      # have to do anything special.
 
3576
      aix_use_runtimelinking=no
 
3577
      exp_sym_flag='-Bexport'
 
3578
      no_entry_flag=""
 
3579
    else
 
3580
      aix_use_runtimelinking=no
 
3581
 
 
3582
      # Test if we are trying to use run time linking or normal
 
3583
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
3584
      # need to do runtime linking.
 
3585
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3586
        for ld_flag in $LDFLAGS; do
 
3587
          case $ld_flag in
 
3588
          *-brtl*)
 
3589
            aix_use_runtimelinking=yes
 
3590
            break
 
3591
            ;;
 
3592
          esac
 
3593
        done
 
3594
        ;;
 
3595
      esac
 
3596
 
 
3597
      exp_sym_flag='-bexport'
 
3598
      no_entry_flag='-bnoentry'
 
3599
    fi
 
3600
 
 
3601
    # When large executables or shared objects are built, AIX ld can
 
3602
    # have problems creating the table of contents.  If linking a library
 
3603
    # or program results in "error TOC overflow" add -mminimal-toc to
 
3604
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
3605
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
3606
 
 
3607
    _LT_AC_TAGVAR(archive_cmds, $1)=''
 
3608
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3609
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
3610
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3611
 
 
3612
    if test "$GXX" = yes; then
 
3613
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
3614
      # We only want to do this on AIX 4.2 and lower, the check
 
3615
      # below for broken collect2 doesn't work under 4.3+
 
3616
        collect2name=`${CC} -print-prog-name=collect2`
 
3617
        if test -f "$collect2name" && \
 
3618
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
3619
        then
 
3620
          # We have reworked collect2
 
3621
          :
 
3622
        else
 
3623
          # We have old collect2
 
3624
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
3625
          # It fails to find uninstalled libraries when the uninstalled
 
3626
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
3627
          # to unsupported forces relinking
 
3628
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
3629
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
3630
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
3631
        fi
 
3632
        ;;
 
3633
      esac
 
3634
      shared_flag='-shared'
 
3635
      if test "$aix_use_runtimelinking" = yes; then
 
3636
        shared_flag="$shared_flag "'${wl}-G'
 
3637
      fi
 
3638
    else
 
3639
      # not using gcc
 
3640
      if test "$host_cpu" = ia64; then
 
3641
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
3642
        # chokes on -Wl,-G. The following line is correct:
 
3643
        shared_flag='-G'
 
3644
      else
 
3645
        if test "$aix_use_runtimelinking" = yes; then
 
3646
          shared_flag='${wl}-G'
 
3647
        else
 
3648
          shared_flag='${wl}-bM:SRE'
 
3649
        fi
 
3650
      fi
 
3651
    fi
 
3652
 
 
3653
    # It seems that -bexpall does not export symbols beginning with
 
3654
    # underscore (_), so it is better to generate a list of symbols to export.
 
3655
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
3656
    if test "$aix_use_runtimelinking" = yes; then
 
3657
      # Warning - without using the other runtime loading flags (-brtl),
 
3658
      # -berok will link without error, but may produce a broken library.
 
3659
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
3660
      # Determine the default libpath from the value encoded in an empty executable.
 
3661
      _LT_AC_SYS_LIBPATH_AIX
 
3662
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
3663
 
 
3664
      _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"
 
3665
     else
 
3666
      if test "$host_cpu" = ia64; then
 
3667
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
3668
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
3669
        _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"
 
3670
      else
 
3671
        # Determine the default libpath from the value encoded in an empty executable.
 
3672
        _LT_AC_SYS_LIBPATH_AIX
 
3673
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
3674
        # Warning - without using the other run time loading flags,
 
3675
        # -berok will link without error, but may produce a broken library.
 
3676
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
3677
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
3678
        # Exported symbols can be pulled into shared objects from archives
 
3679
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
3680
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
3681
        # This is similar to how AIX traditionally builds its shared libraries.
 
3682
        _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'
 
3683
      fi
 
3684
    fi
 
3685
    ;;
 
3686
 
 
3687
  beos*)
 
3688
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
3689
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
3690
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
3691
      # support --undefined.  This deserves some investigation.  FIXME
 
3692
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3693
    else
 
3694
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3695
    fi
 
3696
    ;;
 
3697
 
 
3698
  chorus*)
 
3699
    case $cc_basename in
 
3700
      *)
 
3701
        # FIXME: insert proper C++ library support
 
3702
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3703
        ;;
 
3704
    esac
 
3705
    ;;
 
3706
 
 
3707
  cygwin* | mingw* | pw32*)
 
3708
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
3709
    # as there is no search path for DLLs.
 
3710
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
3711
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
3712
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
3713
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
3714
 
 
3715
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
3716
      _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'
 
3717
      # If the export-symbols file already is a .def file (1st line
 
3718
      # is EXPORTS), use it as is; otherwise, prepend...
 
3719
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
3720
        cp $export_symbols $output_objdir/$soname.def;
 
3721
      else
 
3722
        echo EXPORTS > $output_objdir/$soname.def;
 
3723
        cat $export_symbols >> $output_objdir/$soname.def;
 
3724
      fi~
 
3725
      $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'
 
3726
    else
 
3727
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3728
    fi
 
3729
  ;;
 
3730
      darwin* | rhapsody*)
 
3731
        case $host_os in
 
3732
        rhapsody* | darwin1.[[012]])
 
3733
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
3734
         ;;
 
3735
       *) # Darwin 1.3 on
 
3736
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
3737
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
3738
         else
 
3739
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
3740
             10.[[012]])
 
3741
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
3742
               ;;
 
3743
             10.*)
 
3744
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
3745
               ;;
 
3746
           esac
 
3747
         fi
 
3748
         ;;
 
3749
        esac
 
3750
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3751
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3752
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
3753
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3754
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
3755
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3756
 
 
3757
    if test "$GXX" = yes ; then
 
3758
      lt_int_apple_cc_single_mod=no
 
3759
      output_verbose_link_cmd='echo'
 
3760
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
3761
       lt_int_apple_cc_single_mod=yes
 
3762
      fi
 
3763
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3764
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3765
      else
 
3766
          _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'
 
3767
        fi
 
3768
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3769
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3770
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3771
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3772
          else
 
3773
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3774
          fi
 
3775
            _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}'
 
3776
      else
 
3777
      case $cc_basename in
 
3778
        xlc*)
 
3779
         output_verbose_link_cmd='echo'
 
3780
          _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'
 
3781
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3782
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3783
          _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}'
 
3784
          _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}'
 
3785
          ;;
 
3786
       *)
 
3787
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3788
          ;;
 
3789
      esac
 
3790
      fi
 
3791
        ;;
 
3792
 
 
3793
  dgux*)
 
3794
    case $cc_basename in
 
3795
      ec++*)
 
3796
        # FIXME: insert proper C++ library support
 
3797
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3798
        ;;
 
3799
      ghcx*)
 
3800
        # Green Hills C++ Compiler
 
3801
        # FIXME: insert proper C++ library support
 
3802
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3803
        ;;
 
3804
      *)
 
3805
        # FIXME: insert proper C++ library support
 
3806
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3807
        ;;
 
3808
    esac
 
3809
    ;;
 
3810
  freebsd[[12]]*)
 
3811
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
3812
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3813
    ;;
 
3814
  freebsd-elf*)
 
3815
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3816
    ;;
 
3817
  freebsd* | dragonfly*)
 
3818
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
3819
    # conventions
 
3820
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
3821
    ;;
 
3822
  gnu*)
 
3823
    ;;
 
3824
  hpux9*)
 
3825
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3826
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3827
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3828
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3829
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
3830
                                # but as the default
 
3831
                                # location of the library.
 
3832
 
 
3833
    case $cc_basename in
 
3834
    CC*)
 
3835
      # FIXME: insert proper C++ library support
 
3836
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3837
      ;;
 
3838
    aCC*)
 
3839
      _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'
 
3840
      # Commands to make compiler produce verbose output that lists
 
3841
      # what "hidden" libraries, object files and flags are used when
 
3842
      # linking a shared library.
 
3843
      #
 
3844
      # There doesn't appear to be a way to prevent this compiler from
 
3845
      # explicitly linking system object files so we need to strip them
 
3846
      # from the output so that they don't get included in the library
 
3847
      # dependencies.
 
3848
      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'
 
3849
      ;;
 
3850
    *)
 
3851
      if test "$GXX" = yes; then
 
3852
        _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'
 
3853
      else
 
3854
        # FIXME: insert proper C++ library support
 
3855
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3856
      fi
 
3857
      ;;
 
3858
    esac
 
3859
    ;;
 
3860
  hpux10*|hpux11*)
 
3861
    if test $with_gnu_ld = no; then
 
3862
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3863
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3864
 
 
3865
      case $host_cpu in
 
3866
      hppa*64*|ia64*) ;;
 
3867
      *)
 
3868
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3869
        ;;
 
3870
      esac
 
3871
    fi
 
3872
    case $host_cpu in
 
3873
    hppa*64*|ia64*)
 
3874
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3875
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3876
      ;;
 
3877
    *)
 
3878
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3879
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
3880
                                              # but as the default
 
3881
                                              # location of the library.
 
3882
      ;;
 
3883
    esac
 
3884
 
 
3885
    case $cc_basename in
 
3886
      CC*)
 
3887
        # FIXME: insert proper C++ library support
 
3888
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3889
        ;;
 
3890
      aCC*)
 
3891
        case $host_cpu in
 
3892
        hppa*64*)
 
3893
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3894
          ;;
 
3895
        ia64*)
 
3896
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3897
          ;;
 
3898
        *)
 
3899
          _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'
 
3900
          ;;
 
3901
        esac
 
3902
        # Commands to make compiler produce verbose output that lists
 
3903
        # what "hidden" libraries, object files and flags are used when
 
3904
        # linking a shared library.
 
3905
        #
 
3906
        # There doesn't appear to be a way to prevent this compiler from
 
3907
        # explicitly linking system object files so we need to strip them
 
3908
        # from the output so that they don't get included in the library
 
3909
        # dependencies.
 
3910
        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'
 
3911
        ;;
 
3912
      *)
 
3913
        if test "$GXX" = yes; then
 
3914
          if test $with_gnu_ld = no; then
 
3915
            case $host_cpu in
 
3916
            hppa*64*)
 
3917
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3918
              ;;
 
3919
            ia64*)
 
3920
              _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'
 
3921
              ;;
 
3922
            *)
 
3923
              _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'
 
3924
              ;;
 
3925
            esac
 
3926
          fi
 
3927
        else
 
3928
          # FIXME: insert proper C++ library support
 
3929
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3930
        fi
 
3931
        ;;
 
3932
    esac
 
3933
    ;;
 
3934
  interix[[3-9]]*)
 
3935
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3936
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3937
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3938
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3939
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
3940
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
3941
    # default) and relocated if they conflict, which is a slow very memory
 
3942
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
3943
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
3944
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
3945
    _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'
 
3946
    _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'
 
3947
    ;;
 
3948
  irix5* | irix6*)
 
3949
    case $cc_basename in
 
3950
      CC*)
 
3951
        # SGI C++
 
3952
        _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'
 
3953
 
 
3954
        # Archives containing C++ object files must be created using
 
3955
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
3956
        # necessary to make sure instantiated templates are included
 
3957
        # in the archive.
 
3958
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
3959
        ;;
 
3960
      *)
 
3961
        if test "$GXX" = yes; then
 
3962
          if test "$with_gnu_ld" = no; then
 
3963
            _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'
 
3964
          else
 
3965
            _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'
 
3966
          fi
 
3967
        fi
 
3968
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3969
        ;;
 
3970
    esac
 
3971
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
3972
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3973
    ;;
 
3974
  linux* | k*bsd*-gnu)
 
3975
    case $cc_basename in
 
3976
      KCC*)
 
3977
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
3978
 
 
3979
        # KCC will only create a shared library if the output file
 
3980
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
3981
        # to its proper name (with version) after linking.
 
3982
        _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'
 
3983
        _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'
 
3984
        # Commands to make compiler produce verbose output that lists
 
3985
        # what "hidden" libraries, object files and flags are used when
 
3986
        # linking a shared library.
 
3987
        #
 
3988
        # There doesn't appear to be a way to prevent this compiler from
 
3989
        # explicitly linking system object files so we need to strip them
 
3990
        # from the output so that they don't get included in the library
 
3991
        # dependencies.
 
3992
        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'
 
3993
 
 
3994
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
 
3995
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3996
 
 
3997
        # Archives containing C++ object files must be created using
 
3998
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
3999
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
4000
        ;;
 
4001
      icpc*)
 
4002
        # Intel C++
 
4003
        with_gnu_ld=yes
 
4004
        # version 8.0 and above of icpc choke on multiply defined symbols
 
4005
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
4006
        # earlier do not add the objects themselves.
 
4007
        case `$CC -V 2>&1` in
 
4008
        *"Version 7."*)
 
4009
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4010
          _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'
 
4011
          ;;
 
4012
        *)  # Version 8.0 or newer
 
4013
          tmp_idyn=
 
4014
          case $host_cpu in
 
4015
            ia64*) tmp_idyn=' -i_dynamic';;
 
4016
          esac
 
4017
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4018
          _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'
 
4019
          ;;
 
4020
        esac
 
4021
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4022
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4023
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4024
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
4025
        ;;
 
4026
      pgCC*)
 
4027
        # Portland Group C++ compiler
 
4028
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
4029
        _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'
 
4030
 
 
4031
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
4032
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4033
        _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'
 
4034
        ;;
 
4035
      cxx*)
 
4036
        # Compaq C++
 
4037
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4038
        _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'
 
4039
 
 
4040
        runpath_var=LD_RUN_PATH
 
4041
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
4042
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4043
 
 
4044
        # Commands to make compiler produce verbose output that lists
 
4045
        # what "hidden" libraries, object files and flags are used when
 
4046
        # linking a shared library.
 
4047
        #
 
4048
        # There doesn't appear to be a way to prevent this compiler from
 
4049
        # explicitly linking system object files so we need to strip them
 
4050
        # from the output so that they don't get included in the library
 
4051
        # dependencies.
 
4052
        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'
 
4053
        ;;
 
4054
      *)
 
4055
        case `$CC -V 2>&1 | sed 5q` in
 
4056
        *Sun\ C*)
 
4057
          # Sun C++ 5.9
 
4058
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
4059
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4060
          _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'
 
4061
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4062
          _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'
 
4063
 
 
4064
          # Not sure whether something based on
 
4065
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
4066
          # would be better.
 
4067
          output_verbose_link_cmd='echo'
 
4068
 
 
4069
          # Archives containing C++ object files must be created using
 
4070
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
4071
          # necessary to make sure instantiated templates are included
 
4072
          # in the archive.
 
4073
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
4074
          ;;
 
4075
        esac
 
4076
        ;;
 
4077
    esac
 
4078
    ;;
 
4079
  lynxos*)
 
4080
    # FIXME: insert proper C++ library support
 
4081
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4082
    ;;
 
4083
  m88k*)
 
4084
    # FIXME: insert proper C++ library support
 
4085
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4086
    ;;
 
4087
  mvs*)
 
4088
    case $cc_basename in
 
4089
      cxx*)
 
4090
        # FIXME: insert proper C++ library support
 
4091
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4092
        ;;
 
4093
      *)
 
4094
        # FIXME: insert proper C++ library support
 
4095
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4096
        ;;
 
4097
    esac
 
4098
    ;;
 
4099
  netbsd* | netbsdelf*-gnu)
 
4100
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
4101
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
4102
      wlarc=
 
4103
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4104
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4105
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4106
    fi
 
4107
    # Workaround some broken pre-1.5 toolchains
 
4108
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
4109
    ;;
 
4110
  openbsd2*)
 
4111
    # C++ shared libraries are fairly broken
 
4112
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4113
    ;;
 
4114
  openbsd*)
 
4115
    if test -f /usr/libexec/ld.so; then
 
4116
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4117
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4118
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
4119
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4120
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4121
        _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'
 
4122
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4123
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4124
      fi
 
4125
      output_verbose_link_cmd='echo'
 
4126
    else
 
4127
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4128
    fi
 
4129
    ;;
 
4130
  osf3*)
 
4131
    case $cc_basename in
 
4132
      KCC*)
 
4133
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4134
 
 
4135
        # KCC will only create a shared library if the output file
 
4136
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4137
        # to its proper name (with version) after linking.
 
4138
        _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'
 
4139
 
 
4140
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4141
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4142
 
 
4143
        # Archives containing C++ object files must be created using
 
4144
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
4145
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
4146
 
 
4147
        ;;
 
4148
      RCC*)
 
4149
        # Rational C++ 2.4.1
 
4150
        # FIXME: insert proper C++ library support
 
4151
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4152
        ;;
 
4153
      cxx*)
 
4154
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4155
        _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'
 
4156
 
 
4157
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4158
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4159
 
 
4160
        # Commands to make compiler produce verbose output that lists
 
4161
        # what "hidden" libraries, object files and flags are used when
 
4162
        # linking a shared library.
 
4163
        #
 
4164
        # There doesn't appear to be a way to prevent this compiler from
 
4165
        # explicitly linking system object files so we need to strip them
 
4166
        # from the output so that they don't get included in the library
 
4167
        # dependencies.
 
4168
        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'
 
4169
        ;;
 
4170
      *)
 
4171
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4172
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4173
          _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'
 
4174
 
 
4175
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4176
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4177
 
 
4178
          # Commands to make compiler produce verbose output that lists
 
4179
          # what "hidden" libraries, object files and flags are used when
 
4180
          # linking a shared library.
 
4181
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
4182
 
 
4183
        else
 
4184
          # FIXME: insert proper C++ library support
 
4185
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4186
        fi
 
4187
        ;;
 
4188
    esac
 
4189
    ;;
 
4190
  osf4* | osf5*)
 
4191
    case $cc_basename in
 
4192
      KCC*)
 
4193
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4194
 
 
4195
        # KCC will only create a shared library if the output file
 
4196
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4197
        # to its proper name (with version) after linking.
 
4198
        _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'
 
4199
 
 
4200
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4201
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4202
 
 
4203
        # Archives containing C++ object files must be created using
 
4204
        # the KAI C++ compiler.
 
4205
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
 
4206
        ;;
 
4207
      RCC*)
 
4208
        # Rational C++ 2.4.1
 
4209
        # FIXME: insert proper C++ library support
 
4210
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4211
        ;;
 
4212
      cxx*)
 
4213
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
4214
        _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'
 
4215
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
4216
          echo "-hidden">> $lib.exp~
 
4217
          $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~
 
4218
          $rm $lib.exp'
 
4219
 
 
4220
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
4221
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4222
 
 
4223
        # Commands to make compiler produce verbose output that lists
 
4224
        # what "hidden" libraries, object files and flags are used when
 
4225
        # linking a shared library.
 
4226
        #
 
4227
        # There doesn't appear to be a way to prevent this compiler from
 
4228
        # explicitly linking system object files so we need to strip them
 
4229
        # from the output so that they don't get included in the library
 
4230
        # dependencies.
 
4231
        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'
 
4232
        ;;
 
4233
      *)
 
4234
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4235
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4236
         _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'
 
4237
 
 
4238
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4239
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4240
 
 
4241
          # Commands to make compiler produce verbose output that lists
 
4242
          # what "hidden" libraries, object files and flags are used when
 
4243
          # linking a shared library.
 
4244
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
4245
 
 
4246
        else
 
4247
          # FIXME: insert proper C++ library support
 
4248
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4249
        fi
 
4250
        ;;
 
4251
    esac
 
4252
    ;;
 
4253
  psos*)
 
4254
    # FIXME: insert proper C++ library support
 
4255
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4256
    ;;
 
4257
  sunos4*)
 
4258
    case $cc_basename in
 
4259
      CC*)
 
4260
        # Sun C++ 4.x
 
4261
        # FIXME: insert proper C++ library support
 
4262
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4263
        ;;
 
4264
      lcc*)
 
4265
        # Lucid
 
4266
        # FIXME: insert proper C++ library support
 
4267
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4268
        ;;
 
4269
      *)
 
4270
        # FIXME: insert proper C++ library support
 
4271
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4272
        ;;
 
4273
    esac
 
4274
    ;;
 
4275
  solaris*)
 
4276
    case $cc_basename in
 
4277
      CC*)
 
4278
        # Sun C++ 4.2, 5.x and Centerline C++
 
4279
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
 
4280
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
4281
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4282
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4283
        $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'
 
4284
 
 
4285
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4286
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4287
        case $host_os in
 
4288
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
4289
          *)
 
4290
            # The compiler driver will combine and reorder linker options,
 
4291
            # but understands `-z linker_flag'.
 
4292
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
4293
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
4294
            ;;
 
4295
        esac
 
4296
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4297
 
 
4298
        output_verbose_link_cmd='echo'
 
4299
 
 
4300
        # Archives containing C++ object files must be created using
 
4301
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
4302
        # necessary to make sure instantiated templates are included
 
4303
        # in the archive.
 
4304
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
4305
        ;;
 
4306
      gcx*)
 
4307
        # Green Hills C++ Compiler
 
4308
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
4309
 
 
4310
        # The C++ compiler must be used to create the archive.
 
4311
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
4312
        ;;
 
4313
      *)
 
4314
        # GNU C++ compiler with Solaris linker
 
4315
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4316
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
4317
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
4318
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
4319
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4320
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
4321
 
 
4322
            # Commands to make compiler produce verbose output that lists
 
4323
            # what "hidden" libraries, object files and flags are used when
 
4324
            # linking a shared library.
 
4325
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
4326
          else
 
4327
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
4328
            # platform.
 
4329
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
4330
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4331
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
4332
 
 
4333
            # Commands to make compiler produce verbose output that lists
 
4334
            # what "hidden" libraries, object files and flags are used when
 
4335
            # linking a shared library.
 
4336
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
4337
          fi
 
4338
 
 
4339
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
4340
          case $host_os in
 
4341
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
4342
          *)
 
4343
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
4344
            ;;
 
4345
          esac
 
4346
        fi
 
4347
        ;;
 
4348
    esac
 
4349
    ;;
 
4350
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
4351
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
4352
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4353
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4354
    runpath_var='LD_RUN_PATH'
 
4355
 
 
4356
    case $cc_basename in
 
4357
      CC*)
 
4358
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4359
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4360
        ;;
 
4361
      *)
 
4362
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4363
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4364
        ;;
 
4365
    esac
 
4366
    ;;
 
4367
  sysv5* | sco3.2v5* | sco5v6*)
 
4368
    # Note: We can NOT use -z defs as we might desire, because we do not
 
4369
    # link with -lc, and that would cause any symbols used from libc to
 
4370
    # always be unresolved, which means just about no library would
 
4371
    # ever link correctly.  If we're not using GNU ld we use -z text
 
4372
    # though, which does catch some bad symbols but isn't as heavy-handed
 
4373
    # as -z defs.
 
4374
    # For security reasons, it is highly recommended that you always
 
4375
    # use absolute paths for naming shared libraries, and exclude the
 
4376
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
4377
    # requires that you compile everything twice, which is a pain.
 
4378
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
4379
    # non-empty value in the environment.  Most likely only useful for
 
4380
    # creating official distributions of packages.
 
4381
    # This is a hack until libtool officially supports absolute path
 
4382
    # names for shared libraries.
 
4383
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
4384
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
4385
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4386
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4387
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
4388
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
4389
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4390
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
4391
    runpath_var='LD_RUN_PATH'
 
4392
 
 
4393
    case $cc_basename in
 
4394
      CC*)
 
4395
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4396
        _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'
 
4397
        ;;
 
4398
      *)
 
4399
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4400
        _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'
 
4401
        ;;
 
4402
    esac
 
4403
    ;;
 
4404
  tandem*)
 
4405
    case $cc_basename in
 
4406
      NCC*)
 
4407
        # NonStop-UX NCC 3.20
 
4408
        # FIXME: insert proper C++ library support
 
4409
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4410
        ;;
 
4411
      *)
 
4412
        # FIXME: insert proper C++ library support
 
4413
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4414
        ;;
 
4415
    esac
 
4416
    ;;
 
4417
  vxworks*)
 
4418
    # FIXME: insert proper C++ library support
 
4419
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4420
    ;;
 
4421
  *)
 
4422
    # FIXME: insert proper C++ library support
 
4423
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4424
    ;;
 
4425
esac
 
4426
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
4427
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
4428
 
 
4429
_LT_AC_TAGVAR(GCC, $1)="$GXX"
 
4430
_LT_AC_TAGVAR(LD, $1)="$LD"
 
4431
 
 
4432
AC_LIBTOOL_POSTDEP_PREDEP($1)
 
4433
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4434
AC_LIBTOOL_PROG_CC_C_O($1)
 
4435
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4436
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4437
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4438
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4439
 
 
4440
AC_LIBTOOL_CONFIG($1)
 
4441
 
 
4442
AC_LANG_POP
 
4443
CC=$lt_save_CC
 
4444
LDCXX=$LD
 
4445
LD=$lt_save_LD
 
4446
GCC=$lt_save_GCC
 
4447
with_gnu_ldcxx=$with_gnu_ld
 
4448
with_gnu_ld=$lt_save_with_gnu_ld
 
4449
lt_cv_path_LDCXX=$lt_cv_path_LD
 
4450
lt_cv_path_LD=$lt_save_path_LD
 
4451
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
4452
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
4453
])# AC_LIBTOOL_LANG_CXX_CONFIG
 
4454
 
 
4455
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
 
4456
# ------------------------------------
 
4457
# Figure out "hidden" library dependencies from verbose
 
4458
# compiler output when linking a shared library.
 
4459
# Parse the compiler output and extract the necessary
 
4460
# objects, libraries and library flags.
 
4461
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
4462
dnl we can't use the lt_simple_compile_test_code here,
 
4463
dnl because it contains code intended for an executable,
 
4464
dnl not a library.  It's possible we should let each
 
4465
dnl tag define a new lt_????_link_test_code variable,
 
4466
dnl but it's only used here...
 
4467
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
 
4468
int a;
 
4469
void foo (void) { a = 0; }
 
4470
EOF
 
4471
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
 
4472
class Foo
 
4473
{
 
4474
public:
 
4475
  Foo (void) { a = 0; }
 
4476
private:
 
4477
  int a;
 
4478
};
 
4479
EOF
 
4480
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
 
4481
      subroutine foo
 
4482
      implicit none
 
4483
      integer*4 a
 
4484
      a=0
 
4485
      return
 
4486
      end
 
4487
EOF
 
4488
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
 
4489
public class foo {
 
4490
  private int a;
 
4491
  public void bar (void) {
 
4492
    a = 0;
 
4493
  }
 
4494
};
 
4495
EOF
 
4496
])
 
4497
dnl Parse the compiler output and extract the necessary
 
4498
dnl objects, libraries and library flags.
 
4499
if AC_TRY_EVAL(ac_compile); then
 
4500
  # Parse the compiler output and extract the necessary
 
4501
  # objects, libraries and library flags.
 
4502
 
 
4503
  # Sentinel used to keep track of whether or not we are before
 
4504
  # the conftest object file.
 
4505
  pre_test_object_deps_done=no
 
4506
 
 
4507
  # The `*' in the case matches for architectures that use `case' in
 
4508
  # $output_verbose_cmd can trigger glob expansion during the loop
 
4509
  # eval without this substitution.
 
4510
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
4511
 
 
4512
  for p in `eval $output_verbose_link_cmd`; do
 
4513
    case $p in
 
4514
 
 
4515
    -L* | -R* | -l*)
 
4516
       # Some compilers place space between "-{L,R}" and the path.
 
4517
       # Remove the space.
 
4518
       if test $p = "-L" \
 
4519
          || test $p = "-R"; then
 
4520
         prev=$p
 
4521
         continue
 
4522
       else
 
4523
         prev=
 
4524
       fi
 
4525
 
 
4526
       if test "$pre_test_object_deps_done" = no; then
 
4527
         case $p in
 
4528
         -L* | -R*)
 
4529
           # Internal compiler library paths should come after those
 
4530
           # provided the user.  The postdeps already come after the
 
4531
           # user supplied libs so there is no need to process them.
 
4532
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4533
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
4534
           else
 
4535
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
4536
           fi
 
4537
           ;;
 
4538
         # The "-l" case would never come before the object being
 
4539
         # linked, so don't bother handling this case.
 
4540
         esac
 
4541
       else
 
4542
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
 
4543
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
 
4544
         else
 
4545
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
 
4546
         fi
 
4547
       fi
 
4548
       ;;
 
4549
 
 
4550
    *.$objext)
 
4551
       # This assumes that the test object file only shows up
 
4552
       # once in the compiler output.
 
4553
       if test "$p" = "conftest.$objext"; then
 
4554
         pre_test_object_deps_done=yes
 
4555
         continue
 
4556
       fi
 
4557
 
 
4558
       if test "$pre_test_object_deps_done" = no; then
 
4559
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
 
4560
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
 
4561
         else
 
4562
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
 
4563
         fi
 
4564
       else
 
4565
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
 
4566
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
 
4567
         else
 
4568
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
 
4569
         fi
 
4570
       fi
 
4571
       ;;
 
4572
 
 
4573
    *) ;; # Ignore the rest.
 
4574
 
 
4575
    esac
 
4576
  done
 
4577
 
 
4578
  # Clean up.
 
4579
  rm -f a.out a.exe
 
4580
else
 
4581
  echo "libtool.m4: error: problem compiling $1 test program"
 
4582
fi
 
4583
 
 
4584
$rm -f confest.$objext
 
4585
 
 
4586
# PORTME: override above test on systems where it is broken
 
4587
ifelse([$1],[CXX],
 
4588
[case $host_os in
 
4589
interix[[3-9]]*)
 
4590
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
4591
  # hack all around it, let's just trust "g++" to DTRT.
 
4592
  _LT_AC_TAGVAR(predep_objects,$1)=
 
4593
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
4594
  _LT_AC_TAGVAR(postdeps,$1)=
 
4595
  ;;
 
4596
 
 
4597
linux*)
 
4598
  case `$CC -V 2>&1 | sed 5q` in
 
4599
  *Sun\ C*)
 
4600
    # Sun C++ 5.9
 
4601
    #
 
4602
    # The more standards-conforming stlport4 library is
 
4603
    # incompatible with the Cstd library. Avoid specifying
 
4604
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4605
    # -library=stlport4 depends on it.
 
4606
    case " $CXX $CXXFLAGS " in
 
4607
    *" -library=stlport4 "*)
 
4608
      solaris_use_stlport4=yes
 
4609
      ;;
 
4610
    esac
 
4611
    if test "$solaris_use_stlport4" != yes; then
 
4612
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4613
    fi
 
4614
    ;;
 
4615
  esac
 
4616
  ;;
 
4617
 
 
4618
solaris*)
 
4619
  case $cc_basename in
 
4620
  CC*)
 
4621
    # The more standards-conforming stlport4 library is
 
4622
    # incompatible with the Cstd library. Avoid specifying
 
4623
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4624
    # -library=stlport4 depends on it.
 
4625
    case " $CXX $CXXFLAGS " in
 
4626
    *" -library=stlport4 "*)
 
4627
      solaris_use_stlport4=yes
 
4628
      ;;
 
4629
    esac
 
4630
 
 
4631
    # Adding this requires a known-good setup of shared libraries for
 
4632
    # Sun compiler versions before 5.6, else PIC objects from an old
 
4633
    # archive will be linked into the output, leading to subtle bugs.
 
4634
    if test "$solaris_use_stlport4" != yes; then
 
4635
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4636
    fi
 
4637
    ;;
 
4638
  esac
 
4639
  ;;
 
4640
esac
 
4641
])
 
4642
 
 
4643
case " $_LT_AC_TAGVAR(postdeps, $1) " in
 
4644
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
4645
esac
 
4646
])# AC_LIBTOOL_POSTDEP_PREDEP
 
4647
 
 
4648
# AC_LIBTOOL_LANG_F77_CONFIG
 
4649
# --------------------------
 
4650
# Ensure that the configuration vars for the C compiler are
 
4651
# suitably defined.  Those variables are subsequently used by
 
4652
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4653
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
 
4654
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
 
4655
[AC_REQUIRE([AC_PROG_F77])
 
4656
AC_LANG_PUSH(Fortran 77)
 
4657
 
 
4658
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4659
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
4660
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
4661
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
4662
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
4663
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4664
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4665
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
4666
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
4667
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
4668
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
4669
_LT_AC_TAGVAR(module_cmds, $1)=
 
4670
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
4671
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
4672
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
4673
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
4674
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
4675
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
4676
 
 
4677
# Source file extension for f77 test sources.
 
4678
ac_ext=f
 
4679
 
 
4680
# Object file extension for compiled f77 test sources.
 
4681
objext=o
 
4682
_LT_AC_TAGVAR(objext, $1)=$objext
 
4683
 
 
4684
# Code to be used in simple compile tests
 
4685
lt_simple_compile_test_code="\
 
4686
      subroutine t
 
4687
      return
 
4688
      end
 
4689
"
 
4690
 
 
4691
# Code to be used in simple link tests
 
4692
lt_simple_link_test_code="\
 
4693
      program t
 
4694
      end
 
4695
"
 
4696
 
 
4697
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
4698
_LT_AC_SYS_COMPILER
 
4699
 
 
4700
# save warnings/boilerplate of simple test code
 
4701
_LT_COMPILER_BOILERPLATE
 
4702
_LT_LINKER_BOILERPLATE
 
4703
 
 
4704
# Allow CC to be a program name with arguments.
 
4705
lt_save_CC="$CC"
 
4706
CC=${F77-"f77"}
 
4707
compiler=$CC
 
4708
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4709
_LT_CC_BASENAME([$compiler])
 
4710
 
 
4711
AC_MSG_CHECKING([if libtool supports shared libraries])
 
4712
AC_MSG_RESULT([$can_build_shared])
 
4713
 
 
4714
AC_MSG_CHECKING([whether to build shared libraries])
 
4715
test "$can_build_shared" = "no" && enable_shared=no
 
4716
 
 
4717
# On AIX, shared libraries and static libraries use the same namespace, and
 
4718
# are all built from PIC.
 
4719
case $host_os in
 
4720
aix3*)
 
4721
  test "$enable_shared" = yes && enable_static=no
 
4722
  if test -n "$RANLIB"; then
 
4723
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
4724
    postinstall_cmds='$RANLIB $lib'
 
4725
  fi
 
4726
  ;;
 
4727
aix4* | aix5*)
 
4728
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
4729
    test "$enable_shared" = yes && enable_static=no
 
4730
  fi
 
4731
  ;;
 
4732
esac
 
4733
AC_MSG_RESULT([$enable_shared])
 
4734
 
 
4735
AC_MSG_CHECKING([whether to build static libraries])
 
4736
# Make sure either enable_shared or enable_static is yes.
 
4737
test "$enable_shared" = yes || enable_static=yes
 
4738
AC_MSG_RESULT([$enable_static])
 
4739
 
 
4740
_LT_AC_TAGVAR(GCC, $1)="$G77"
 
4741
_LT_AC_TAGVAR(LD, $1)="$LD"
 
4742
 
 
4743
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4744
AC_LIBTOOL_PROG_CC_C_O($1)
 
4745
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4746
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4747
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4748
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4749
 
 
4750
AC_LIBTOOL_CONFIG($1)
 
4751
 
 
4752
AC_LANG_POP
 
4753
CC="$lt_save_CC"
 
4754
])# AC_LIBTOOL_LANG_F77_CONFIG
 
4755
 
 
4756
 
 
4757
# AC_LIBTOOL_LANG_GCJ_CONFIG
 
4758
# --------------------------
 
4759
# Ensure that the configuration vars for the C compiler are
 
4760
# suitably defined.  Those variables are subsequently used by
 
4761
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4762
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
 
4763
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
 
4764
[AC_LANG_SAVE
 
4765
 
 
4766
# Source file extension for Java test sources.
 
4767
ac_ext=java
 
4768
 
 
4769
# Object file extension for compiled Java test sources.
 
4770
objext=o
 
4771
_LT_AC_TAGVAR(objext, $1)=$objext
 
4772
 
 
4773
# Code to be used in simple compile tests
 
4774
lt_simple_compile_test_code="class foo {}"
 
4775
 
 
4776
# Code to be used in simple link tests
 
4777
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
4778
 
 
4779
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
4780
_LT_AC_SYS_COMPILER
 
4781
 
 
4782
# save warnings/boilerplate of simple test code
 
4783
_LT_COMPILER_BOILERPLATE
 
4784
_LT_LINKER_BOILERPLATE
 
4785
 
 
4786
# Allow CC to be a program name with arguments.
 
4787
lt_save_CC="$CC"
 
4788
CC=${GCJ-"gcj"}
 
4789
compiler=$CC
 
4790
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4791
_LT_CC_BASENAME([$compiler])
 
4792
 
 
4793
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
4794
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4795
 
 
4796
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
4797
 
 
4798
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
4799
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4800
AC_LIBTOOL_PROG_CC_C_O($1)
 
4801
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4802
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4803
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4804
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4805
 
 
4806
AC_LIBTOOL_CONFIG($1)
 
4807
 
 
4808
AC_LANG_RESTORE
 
4809
CC="$lt_save_CC"
 
4810
])# AC_LIBTOOL_LANG_GCJ_CONFIG
 
4811
 
 
4812
 
 
4813
# AC_LIBTOOL_LANG_RC_CONFIG
 
4814
# -------------------------
 
4815
# Ensure that the configuration vars for the Windows resource compiler are
 
4816
# suitably defined.  Those variables are subsequently used by
 
4817
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4818
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
 
4819
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
 
4820
[AC_LANG_SAVE
 
4821
 
 
4822
# Source file extension for RC test sources.
 
4823
ac_ext=rc
 
4824
 
 
4825
# Object file extension for compiled RC test sources.
 
4826
objext=o
 
4827
_LT_AC_TAGVAR(objext, $1)=$objext
 
4828
 
 
4829
# Code to be used in simple compile tests
 
4830
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
4831
 
 
4832
# Code to be used in simple link tests
 
4833
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
4834
 
 
4835
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
4836
_LT_AC_SYS_COMPILER
 
4837
 
 
4838
# save warnings/boilerplate of simple test code
 
4839
_LT_COMPILER_BOILERPLATE
 
4840
_LT_LINKER_BOILERPLATE
 
4841
 
 
4842
# Allow CC to be a program name with arguments.
 
4843
lt_save_CC="$CC"
 
4844
CC=${RC-"windres"}
 
4845
compiler=$CC
 
4846
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4847
_LT_CC_BASENAME([$compiler])
 
4848
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
4849
 
 
4850
AC_LIBTOOL_CONFIG($1)
 
4851
 
 
4852
AC_LANG_RESTORE
 
4853
CC="$lt_save_CC"
 
4854
])# AC_LIBTOOL_LANG_RC_CONFIG
 
4855
 
 
4856
 
 
4857
# AC_LIBTOOL_CONFIG([TAGNAME])
 
4858
# ----------------------------
 
4859
# If TAGNAME is not passed, then create an initial libtool script
 
4860
# with a default configuration from the untagged config vars.  Otherwise
 
4861
# add code to config.status for appending the configuration named by
 
4862
# TAGNAME from the matching tagged config vars.
 
4863
AC_DEFUN([AC_LIBTOOL_CONFIG],
 
4864
[# The else clause should only fire when bootstrapping the
 
4865
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
4866
# with your package, and you will get complaints that there are
 
4867
# no rules to generate ltmain.sh.
 
4868
if test -f "$ltmain"; then
 
4869
  # See if we are running on zsh, and set the options which allow our commands through
 
4870
  # without removal of \ escapes.
 
4871
  if test -n "${ZSH_VERSION+set}" ; then
 
4872
    setopt NO_GLOB_SUBST
 
4873
  fi
 
4874
  # Now quote all the things that may contain metacharacters while being
 
4875
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
4876
  # variables and quote the copies for generation of the libtool script.
 
4877
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
4878
    SED SHELL STRIP \
 
4879
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
4880
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
4881
    deplibs_check_method reload_flag reload_cmds need_locks \
 
4882
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
4883
    lt_cv_sys_global_symbol_to_c_name_address \
 
4884
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
4885
    old_postinstall_cmds old_postuninstall_cmds \
 
4886
    _LT_AC_TAGVAR(compiler, $1) \
 
4887
    _LT_AC_TAGVAR(CC, $1) \
 
4888
    _LT_AC_TAGVAR(LD, $1) \
 
4889
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
 
4890
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
 
4891
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
 
4892
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
 
4893
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
 
4894
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
 
4895
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
 
4896
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
 
4897
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
 
4898
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
 
4899
    _LT_AC_TAGVAR(predep_objects, $1) \
 
4900
    _LT_AC_TAGVAR(postdep_objects, $1) \
 
4901
    _LT_AC_TAGVAR(predeps, $1) \
 
4902
    _LT_AC_TAGVAR(postdeps, $1) \
 
4903
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4904
    _LT_AC_TAGVAR(archive_cmds, $1) \
 
4905
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
 
4906
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
 
4907
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
 
4908
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
 
4909
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
 
4910
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
 
4911
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
 
4912
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
 
4913
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
 
4914
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
 
4915
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
 
4916
    _LT_AC_TAGVAR(module_cmds, $1) \
 
4917
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
 
4918
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4919
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
 
4920
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
 
4921
    _LT_AC_TAGVAR(include_expsyms, $1); do
 
4922
 
 
4923
    case $var in
 
4924
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
 
4925
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
 
4926
    _LT_AC_TAGVAR(archive_cmds, $1) | \
 
4927
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
 
4928
    _LT_AC_TAGVAR(module_cmds, $1) | \
 
4929
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
 
4930
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
 
4931
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
 
4932
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
4933
    postinstall_cmds | postuninstall_cmds | \
 
4934
    old_postinstall_cmds | old_postuninstall_cmds | \
 
4935
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
4936
      # Double-quote double-evaled strings.
 
4937
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
4938
      ;;
 
4939
    *)
 
4940
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
4941
      ;;
 
4942
    esac
 
4943
  done
 
4944
 
 
4945
  case $lt_echo in
 
4946
  *'\[$]0 --fallback-echo"')
 
4947
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
 
4948
    ;;
 
4949
  esac
 
4950
 
 
4951
ifelse([$1], [],
 
4952
  [cfgfile="${ofile}T"
 
4953
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
4954
  $rm -f "$cfgfile"
 
4955
  AC_MSG_NOTICE([creating $ofile])],
 
4956
  [cfgfile="$ofile"])
 
4957
 
 
4958
  cat <<__EOF__ >> "$cfgfile"
 
4959
ifelse([$1], [],
 
4960
[#! $SHELL
 
4961
 
 
4962
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
4963
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
4964
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
4965
#
 
4966
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
4967
# Free Software Foundation, Inc.
 
4968
#
 
4969
# This file is part of GNU Libtool:
 
4970
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
4971
#
 
4972
# This program is free software; you can redistribute it and/or modify
 
4973
# it under the terms of the GNU General Public License as published by
 
4974
# the Free Software Foundation; either version 2 of the License, or
 
4975
# (at your option) any later version.
 
4976
#
 
4977
# This program is distributed in the hope that it will be useful, but
 
4978
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
4979
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
4980
# General Public License for more details.
 
4981
#
 
4982
# You should have received a copy of the GNU General Public License
 
4983
# along with this program; if not, write to the Free Software
 
4984
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
4985
#
 
4986
# As a special exception to the GNU General Public License, if you
 
4987
# distribute this file as part of a program that contains a
 
4988
# configuration script generated by Autoconf, you may include it under
 
4989
# the same distribution terms that you use for the rest of that program.
 
4990
 
 
4991
# A sed program that does not truncate output.
 
4992
SED=$lt_SED
 
4993
 
 
4994
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
4995
Xsed="$SED -e 1s/^X//"
 
4996
 
 
4997
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
4998
# if CDPATH is set.
 
4999
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
5000
 
 
5001
# The names of the tagged configurations supported by this script.
 
5002
available_tags=
 
5003
 
 
5004
# ### BEGIN LIBTOOL CONFIG],
 
5005
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
 
5006
 
 
5007
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
5008
 
 
5009
# Shell to use when invoking shell scripts.
 
5010
SHELL=$lt_SHELL
 
5011
 
 
5012
# Whether or not to build shared libraries.
 
5013
build_libtool_libs=$enable_shared
 
5014
 
 
5015
# Whether or not to build static libraries.
 
5016
build_old_libs=$enable_static
 
5017
 
 
5018
# Whether or not to add -lc for building shared libraries.
 
5019
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
 
5020
 
 
5021
# Whether or not to disallow shared libs when runtime libs are static
 
5022
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
 
5023
 
 
5024
# Whether or not to optimize for fast installation.
 
5025
fast_install=$enable_fast_install
 
5026
 
 
5027
# The host system.
 
5028
host_alias=$host_alias
 
5029
host=$host
 
5030
host_os=$host_os
 
5031
 
 
5032
# The build system.
 
5033
build_alias=$build_alias
 
5034
build=$build
 
5035
build_os=$build_os
 
5036
 
 
5037
# An echo program that does not interpret backslashes.
 
5038
echo=$lt_echo
 
5039
 
 
5040
# The archiver.
 
5041
AR=$lt_AR
 
5042
AR_FLAGS=$lt_AR_FLAGS
 
5043
 
 
5044
# A C compiler.
 
5045
LTCC=$lt_LTCC
 
5046
 
 
5047
# LTCC compiler flags.
 
5048
LTCFLAGS=$lt_LTCFLAGS
 
5049
 
 
5050
# A language-specific compiler.
 
5051
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
 
5052
 
 
5053
# Is the compiler the GNU C compiler?
 
5054
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
 
5055
 
 
5056
# An ERE matcher.
 
5057
EGREP=$lt_EGREP
 
5058
 
 
5059
# The linker used to build libraries.
 
5060
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
 
5061
 
 
5062
# Whether we need hard or soft links.
 
5063
LN_S=$lt_LN_S
 
5064
 
 
5065
# A BSD-compatible nm program.
 
5066
NM=$lt_NM
 
5067
 
 
5068
# A symbol stripping program
 
5069
STRIP=$lt_STRIP
 
5070
 
 
5071
# Used to examine libraries when file_magic_cmd begins "file"
 
5072
MAGIC_CMD=$MAGIC_CMD
 
5073
 
 
5074
# Used on cygwin: DLL creation program.
 
5075
DLLTOOL="$DLLTOOL"
 
5076
 
 
5077
# Used on cygwin: object dumper.
 
5078
OBJDUMP="$OBJDUMP"
 
5079
 
 
5080
# Used on cygwin: assembler.
 
5081
AS="$AS"
 
5082
 
 
5083
# The name of the directory that contains temporary libtool files.
 
5084
objdir=$objdir
 
5085
 
 
5086
# How to create reloadable object files.
 
5087
reload_flag=$lt_reload_flag
 
5088
reload_cmds=$lt_reload_cmds
 
5089
 
 
5090
# How to pass a linker flag through the compiler.
 
5091
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
5092
 
 
5093
# Object file suffix (normally "o").
 
5094
objext="$ac_objext"
 
5095
 
 
5096
# Old archive suffix (normally "a").
 
5097
libext="$libext"
 
5098
 
 
5099
# Shared library suffix (normally ".so").
 
5100
shrext_cmds='$shrext_cmds'
 
5101
 
 
5102
# Executable file suffix (normally "").
 
5103
exeext="$exeext"
 
5104
 
 
5105
# Additional compiler flags for building library objects.
 
5106
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
5107
pic_mode=$pic_mode
 
5108
 
 
5109
# What is the maximum length of a command?
 
5110
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5111
 
 
5112
# Does compiler simultaneously support -c and -o options?
 
5113
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
 
5114
 
 
5115
# Must we lock files when doing compilation?
 
5116
need_locks=$lt_need_locks
 
5117
 
 
5118
# Do we need the lib prefix for modules?
 
5119
need_lib_prefix=$need_lib_prefix
 
5120
 
 
5121
# Do we need a version for libraries?
 
5122
need_version=$need_version
 
5123
 
 
5124
# Whether dlopen is supported.
 
5125
dlopen_support=$enable_dlopen
 
5126
 
 
5127
# Whether dlopen of programs is supported.
 
5128
dlopen_self=$enable_dlopen_self
 
5129
 
 
5130
# Whether dlopen of statically linked programs is supported.
 
5131
dlopen_self_static=$enable_dlopen_self_static
 
5132
 
 
5133
# Compiler flag to prevent dynamic linking.
 
5134
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
 
5135
 
 
5136
# Compiler flag to turn off builtin functions.
 
5137
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
 
5138
 
 
5139
# Compiler flag to allow reflexive dlopens.
 
5140
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
 
5141
 
 
5142
# Compiler flag to generate shared objects directly from archives.
 
5143
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
 
5144
 
 
5145
# Compiler flag to generate thread-safe objects.
 
5146
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
 
5147
 
 
5148
# Library versioning type.
 
5149
version_type=$version_type
 
5150
 
 
5151
# Format of library name prefix.
 
5152
libname_spec=$lt_libname_spec
 
5153
 
 
5154
# List of archive names.  First name is the real one, the rest are links.
 
5155
# The last name is the one that the linker finds with -lNAME.
 
5156
library_names_spec=$lt_library_names_spec
 
5157
 
 
5158
# The coded name of the library, if different from the real name.
 
5159
soname_spec=$lt_soname_spec
 
5160
 
 
5161
# Commands used to build and install an old-style archive.
 
5162
RANLIB=$lt_RANLIB
 
5163
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
 
5164
old_postinstall_cmds=$lt_old_postinstall_cmds
 
5165
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
5166
 
 
5167
# Create an old-style archive from a shared archive.
 
5168
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
 
5169
 
 
5170
# Create a temporary old-style archive to link instead of a shared archive.
 
5171
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
 
5172
 
 
5173
# Commands used to build and install a shared archive.
 
5174
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
 
5175
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
 
5176
postinstall_cmds=$lt_postinstall_cmds
 
5177
postuninstall_cmds=$lt_postuninstall_cmds
 
5178
 
 
5179
# Commands used to build a loadable module (assumed same as above if empty)
 
5180
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
 
5181
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
 
5182
 
 
5183
# Commands to strip libraries.
 
5184
old_striplib=$lt_old_striplib
 
5185
striplib=$lt_striplib
 
5186
 
 
5187
# Dependencies to place before the objects being linked to create a
 
5188
# shared library.
 
5189
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
 
5190
 
 
5191
# Dependencies to place after the objects being linked to create a
 
5192
# shared library.
 
5193
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
 
5194
 
 
5195
# Dependencies to place before the objects being linked to create a
 
5196
# shared library.
 
5197
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
 
5198
 
 
5199
# Dependencies to place after the objects being linked to create a
 
5200
# shared library.
 
5201
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
 
5202
 
 
5203
# The library search path used internally by the compiler when linking
 
5204
# a shared library.
 
5205
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
 
5206
 
 
5207
# Method to check whether dependent libraries are shared objects.
 
5208
deplibs_check_method=$lt_deplibs_check_method
 
5209
 
 
5210
# Command to use when deplibs_check_method == file_magic.
 
5211
file_magic_cmd=$lt_file_magic_cmd
 
5212
 
 
5213
# Flag that allows shared libraries with undefined symbols to be built.
 
5214
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
 
5215
 
 
5216
# Flag that forces no undefined symbols.
 
5217
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
 
5218
 
 
5219
# Commands used to finish a libtool library installation in a directory.
 
5220
finish_cmds=$lt_finish_cmds
 
5221
 
 
5222
# Same as above, but a single script fragment to be evaled but not shown.
 
5223
finish_eval=$lt_finish_eval
 
5224
 
 
5225
# Take the output of nm and produce a listing of raw symbols and C names.
 
5226
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
5227
 
 
5228
# Transform the output of nm in a proper C declaration
 
5229
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
5230
 
 
5231
# Transform the output of nm in a C name address pair
 
5232
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
5233
 
 
5234
# This is the shared library runtime path variable.
 
5235
runpath_var=$runpath_var
 
5236
 
 
5237
# This is the shared library path variable.
 
5238
shlibpath_var=$shlibpath_var
 
5239
 
 
5240
# Is shlibpath searched before the hard-coded library search path?
 
5241
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
5242
 
 
5243
# How to hardcode a shared library path into an executable.
 
5244
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
 
5245
 
 
5246
# Whether we should hardcode library paths into libraries.
 
5247
hardcode_into_libs=$hardcode_into_libs
 
5248
 
 
5249
# Flag to hardcode \$libdir into a binary during linking.
 
5250
# This must work even if \$libdir does not exist.
 
5251
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
 
5252
 
 
5253
# If ld is used when linking, flag to hardcode \$libdir into
 
5254
# a binary during linking. This must work even if \$libdir does
 
5255
# not exist.
 
5256
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
 
5257
 
 
5258
# Whether we need a single -rpath flag with a separated argument.
 
5259
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
 
5260
 
 
5261
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
5262
# resulting binary.
 
5263
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
 
5264
 
 
5265
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
5266
# resulting binary.
 
5267
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
 
5268
 
 
5269
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
5270
# the resulting binary.
 
5271
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
 
5272
 
 
5273
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
5274
# and all subsequent libraries and executables linked against it.
 
5275
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
 
5276
 
 
5277
# Variables whose values should be saved in libtool wrapper scripts and
 
5278
# restored at relink time.
 
5279
variables_saved_for_relink="$variables_saved_for_relink"
 
5280
 
 
5281
# Whether libtool must link a program against all its dependency libraries.
 
5282
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
 
5283
 
 
5284
# Compile-time system search path for libraries
 
5285
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
5286
 
 
5287
# Run-time system search path for libraries
 
5288
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
5289
 
 
5290
# Fix the shell variable \$srcfile for the compiler.
 
5291
fix_srcfile_path=$lt_fix_srcfile_path
 
5292
 
 
5293
# Set to yes if exported symbols are required.
 
5294
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
 
5295
 
 
5296
# The commands to list exported symbols.
 
5297
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
 
5298
 
 
5299
# The commands to extract the exported symbol list from a shared archive.
 
5300
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
5301
 
 
5302
# Symbols that should not be listed in the preloaded symbols.
 
5303
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
 
5304
 
 
5305
# Symbols that must always be exported.
 
5306
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
 
5307
 
 
5308
ifelse([$1],[],
 
5309
[# ### END LIBTOOL CONFIG],
 
5310
[# ### END LIBTOOL TAG CONFIG: $tagname])
 
5311
 
 
5312
__EOF__
 
5313
 
 
5314
ifelse([$1],[], [
 
5315
  case $host_os in
 
5316
  aix3*)
 
5317
    cat <<\EOF >> "$cfgfile"
 
5318
 
 
5319
# AIX sometimes has problems with the GCC collect2 program.  For some
 
5320
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
5321
# vanish in a puff of smoke.
 
5322
if test "X${COLLECT_NAMES+set}" != Xset; then
 
5323
  COLLECT_NAMES=
 
5324
  export COLLECT_NAMES
 
5325
fi
 
5326
EOF
 
5327
    ;;
 
5328
  esac
 
5329
 
 
5330
  # We use sed instead of cat because bash on DJGPP gets confused if
 
5331
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
5332
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
5333
  # is reportedly fixed, but why not run on old versions too?
 
5334
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
5335
 
 
5336
  mv -f "$cfgfile" "$ofile" || \
 
5337
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
5338
  chmod +x "$ofile"
 
5339
])
 
5340
else
 
5341
  # If there is no Makefile yet, we rely on a make rule to execute
 
5342
  # `config.status --recheck' to rerun these tests and create the
 
5343
  # libtool script then.
 
5344
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
5345
  if test -f "$ltmain_in"; then
 
5346
    test -f Makefile && make "$ltmain"
 
5347
  fi
 
5348
fi
 
5349
])# AC_LIBTOOL_CONFIG
 
5350
 
 
5351
 
 
5352
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
 
5353
# -------------------------------------------
 
5354
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
 
5355
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
5356
 
 
5357
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
5358
 
 
5359
if test "$GCC" = yes; then
 
5360
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
5361
 
 
5362
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
5363
    lt_cv_prog_compiler_rtti_exceptions,
 
5364
    [-fno-rtti -fno-exceptions], [],
 
5365
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
5366
fi
 
5367
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
 
5368
 
 
5369
 
 
5370
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
5371
# ---------------------------------
 
5372
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
 
5373
[AC_REQUIRE([AC_CANONICAL_HOST])
 
5374
AC_REQUIRE([LT_AC_PROG_SED])
 
5375
AC_REQUIRE([AC_PROG_NM])
 
5376
AC_REQUIRE([AC_OBJEXT])
 
5377
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5378
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
 
5379
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
 
5380
[
 
5381
# These are sane defaults that work on at least a few old systems.
 
5382
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5383
 
 
5384
# Character class describing NM global symbol codes.
 
5385
symcode='[[BCDEGRST]]'
 
5386
 
 
5387
# Regexp to match symbols that can be accessed directly from C.
 
5388
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
 
5389
 
 
5390
# Transform an extracted symbol line into a proper C declaration
 
5391
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5392
 
 
5393
# Transform an extracted symbol line into symbol name and symbol address
 
5394
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'"
 
5395
 
 
5396
# Define system-specific variables.
 
5397
case $host_os in
 
5398
aix*)
 
5399
  symcode='[[BCDT]]'
 
5400
  ;;
 
5401
cygwin* | mingw* | pw32*)
 
5402
  symcode='[[ABCDGISTW]]'
 
5403
  ;;
 
5404
hpux*) # Its linker distinguishes data from code symbols
 
5405
  if test "$host_cpu" = ia64; then
 
5406
    symcode='[[ABCDEGRST]]'
 
5407
  fi
 
5408
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5409
  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'"
 
5410
  ;;
 
5411
linux* | k*bsd*-gnu)
 
5412
  if test "$host_cpu" = ia64; then
 
5413
    symcode='[[ABCDGIRSTW]]'
 
5414
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5415
    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'"
 
5416
  fi
 
5417
  ;;
 
5418
irix* | nonstopux*)
 
5419
  symcode='[[BCDEGRST]]'
 
5420
  ;;
 
5421
osf*)
 
5422
  symcode='[[BCDEGQRST]]'
 
5423
  ;;
 
5424
solaris*)
 
5425
  symcode='[[BDRT]]'
 
5426
  ;;
 
5427
sco3.2v5*)
 
5428
  symcode='[[DT]]'
 
5429
  ;;
 
5430
sysv4.2uw2*)
 
5431
  symcode='[[DT]]'
 
5432
  ;;
 
5433
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5434
  symcode='[[ABDT]]'
 
5435
  ;;
 
5436
sysv4)
 
5437
  symcode='[[DFNSTU]]'
 
5438
  ;;
 
5439
esac
 
5440
 
 
5441
# Handle CRLF in mingw tool chain
 
5442
opt_cr=
 
5443
case $build_os in
 
5444
mingw*)
 
5445
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5446
  ;;
 
5447
esac
 
5448
 
 
5449
# If we're using GNU nm, then use its standard symbol codes.
 
5450
case `$NM -V 2>&1` in
 
5451
*GNU* | *'with BFD'*)
 
5452
  symcode='[[ABCDGIRSTW]]' ;;
 
5453
esac
 
5454
 
 
5455
# Try without a prefix undercore, then with it.
 
5456
for ac_symprfx in "" "_"; do
 
5457
 
 
5458
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5459
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5460
 
 
5461
  # Write the raw and C identifiers.
 
5462
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5463
 
 
5464
  # Check to see that the pipe works correctly.
 
5465
  pipe_works=no
 
5466
 
 
5467
  rm -f conftest*
 
5468
  cat > conftest.$ac_ext <<EOF
 
5469
#ifdef __cplusplus
 
5470
extern "C" {
 
5471
#endif
 
5472
char nm_test_var;
 
5473
void nm_test_func(){}
 
5474
#ifdef __cplusplus
 
5475
}
 
5476
#endif
 
5477
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5478
EOF
 
5479
 
 
5480
  if AC_TRY_EVAL(ac_compile); then
 
5481
    # Now try to grab the symbols.
 
5482
    nlist=conftest.nm
 
5483
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
5484
      # Try sorting and uniquifying the output.
 
5485
      if sort "$nlist" | uniq > "$nlist"T; then
 
5486
        mv -f "$nlist"T "$nlist"
 
5487
      else
 
5488
        rm -f "$nlist"T
 
5489
      fi
 
5490
 
 
5491
      # Make sure that we snagged all the symbols we need.
 
5492
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5493
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5494
          cat <<EOF > conftest.$ac_ext
 
5495
#ifdef __cplusplus
 
5496
extern "C" {
 
5497
#endif
 
5498
 
 
5499
EOF
 
5500
          # Now generate the symbol file.
 
5501
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5502
 
 
5503
          cat <<EOF >> conftest.$ac_ext
 
5504
#if defined (__STDC__) && __STDC__
 
5505
# define lt_ptr_t void *
 
5506
#else
 
5507
# define lt_ptr_t char *
 
5508
# define const
 
5509
#endif
 
5510
 
 
5511
/* The mapping between symbol names and symbols. */
 
5512
const struct {
 
5513
  const char *name;
 
5514
  lt_ptr_t address;
 
5515
}
 
5516
lt_preloaded_symbols[[]] =
 
5517
{
 
5518
EOF
 
5519
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5520
          cat <<\EOF >> conftest.$ac_ext
 
5521
  {0, (lt_ptr_t) 0}
 
5522
};
 
5523
 
 
5524
#ifdef __cplusplus
 
5525
}
 
5526
#endif
 
5527
EOF
 
5528
          # Now try linking the two files.
 
5529
          mv conftest.$ac_objext conftstm.$ac_objext
 
5530
          lt_save_LIBS="$LIBS"
 
5531
          lt_save_CFLAGS="$CFLAGS"
 
5532
          LIBS="conftstm.$ac_objext"
 
5533
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
5534
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
 
5535
            pipe_works=yes
 
5536
          fi
 
5537
          LIBS="$lt_save_LIBS"
 
5538
          CFLAGS="$lt_save_CFLAGS"
 
5539
        else
 
5540
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
 
5541
        fi
 
5542
      else
 
5543
        echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
 
5544
      fi
 
5545
    else
 
5546
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
 
5547
    fi
 
5548
  else
 
5549
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
 
5550
    cat conftest.$ac_ext >&5
 
5551
  fi
 
5552
  rm -f conftest* conftst*
 
5553
 
 
5554
  # Do not use the global_symbol_pipe unless it works.
 
5555
  if test "$pipe_works" = yes; then
 
5556
    break
 
5557
  else
 
5558
    lt_cv_sys_global_symbol_pipe=
 
5559
  fi
 
5560
done
 
5561
])
 
5562
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5563
  lt_cv_sys_global_symbol_to_cdecl=
 
5564
fi
 
5565
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5566
  AC_MSG_RESULT(failed)
 
5567
else
 
5568
  AC_MSG_RESULT(ok)
 
5569
fi
 
5570
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
5571
 
 
5572
 
 
5573
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
 
5574
# ---------------------------------------
 
5575
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
 
5576
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
 
5577
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5578
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 
5579
 
 
5580
AC_MSG_CHECKING([for $compiler option to produce PIC])
 
5581
 ifelse([$1],[CXX],[
 
5582
  # C++ specific cases for pic, static, wl, etc.
 
5583
  if test "$GXX" = yes; then
 
5584
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5585
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5586
 
 
5587
    case $host_os in
 
5588
    aix*)
 
5589
      # All AIX code is PIC.
 
5590
      if test "$host_cpu" = ia64; then
 
5591
        # AIX 5 now supports IA64 processor
 
5592
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5593
      fi
 
5594
      ;;
 
5595
    amigaos*)
 
5596
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5597
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5598
      # like `-m68040'.
 
5599
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
5600
      ;;
 
5601
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5602
      # PIC is the default for these OSes.
 
5603
      ;;
 
5604
    mingw* | cygwin* | os2* | pw32*)
 
5605
      # This hack is so that the source file can tell whether it is being
 
5606
      # built for inclusion in a dll (and should export symbols for example).
 
5607
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5608
      # (--disable-auto-import) libraries
 
5609
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5610
      ;;
 
5611
    darwin* | rhapsody*)
 
5612
      # PIC is the default on this platform
 
5613
      # Common symbols not allowed in MH_DYLIB files
 
5614
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
5615
      ;;
 
5616
    *djgpp*)
 
5617
      # DJGPP does not support shared libraries at all
 
5618
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5619
      ;;
 
5620
    interix[[3-9]]*)
 
5621
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5622
      # Instead, we relocate shared libraries at runtime.
 
5623
      ;;
 
5624
    sysv4*MP*)
 
5625
      if test -d /usr/nec; then
 
5626
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
5627
      fi
 
5628
      ;;
 
5629
    hpux*)
 
5630
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5631
      # not for PA HP-UX.
 
5632
      case $host_cpu in
 
5633
      hppa*64*|ia64*)
 
5634
        ;;
 
5635
      *)
 
5636
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5637
        ;;
 
5638
      esac
 
5639
      ;;
 
5640
    *)
 
5641
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5642
      ;;
 
5643
    esac
 
5644
  else
 
5645
    case $host_os in
 
5646
      aix4* | aix5*)
 
5647
        # All AIX code is PIC.
 
5648
        if test "$host_cpu" = ia64; then
 
5649
          # AIX 5 now supports IA64 processor
 
5650
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5651
        else
 
5652
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
5653
        fi
 
5654
        ;;
 
5655
      chorus*)
 
5656
        case $cc_basename in
 
5657
        cxch68*)
 
5658
          # Green Hills C++ Compiler
 
5659
          # _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"
 
5660
          ;;
 
5661
        esac
 
5662
        ;;
 
5663
       darwin*)
 
5664
         # PIC is the default on this platform
 
5665
         # Common symbols not allowed in MH_DYLIB files
 
5666
         case $cc_basename in
 
5667
           xlc*)
 
5668
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5669
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5670
           ;;
 
5671
         esac
 
5672
       ;;
 
5673
      dgux*)
 
5674
        case $cc_basename in
 
5675
          ec++*)
 
5676
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5677
            ;;
 
5678
          ghcx*)
 
5679
            # Green Hills C++ Compiler
 
5680
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5681
            ;;
 
5682
          *)
 
5683
            ;;
 
5684
        esac
 
5685
        ;;
 
5686
      freebsd* | dragonfly*)
 
5687
        # FreeBSD uses GNU C++
 
5688
        ;;
 
5689
      hpux9* | hpux10* | hpux11*)
 
5690
        case $cc_basename in
 
5691
          CC*)
 
5692
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5693
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5694
            if test "$host_cpu" != ia64; then
 
5695
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5696
            fi
 
5697
            ;;
 
5698
          aCC*)
 
5699
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5700
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5701
            case $host_cpu in
 
5702
            hppa*64*|ia64*)
 
5703
              # +Z the default
 
5704
              ;;
 
5705
            *)
 
5706
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5707
              ;;
 
5708
            esac
 
5709
            ;;
 
5710
          *)
 
5711
            ;;
 
5712
        esac
 
5713
        ;;
 
5714
      interix*)
 
5715
        # This is c89, which is MS Visual C++ (no shared libs)
 
5716
        # Anyone wants to do a port?
 
5717
        ;;
 
5718
      irix5* | irix6* | nonstopux*)
 
5719
        case $cc_basename in
 
5720
          CC*)
 
5721
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5722
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5723
            # CC pic flag -KPIC is the default.
 
5724
            ;;
 
5725
          *)
 
5726
            ;;
 
5727
        esac
 
5728
        ;;
 
5729
      linux* | k*bsd*-gnu)
 
5730
        case $cc_basename in
 
5731
          KCC*)
 
5732
            # KAI C++ Compiler
 
5733
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
5734
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5735
            ;;
 
5736
          icpc* | ecpc*)
 
5737
            # Intel C++
 
5738
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5739
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5740
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5741
            ;;
 
5742
          pgCC*)
 
5743
            # Portland Group C++ compiler.
 
5744
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5745
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5746
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5747
            ;;
 
5748
          cxx*)
 
5749
            # Compaq C++
 
5750
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
5751
            # Linux and Compaq Tru64 Unix objects are PIC.
 
5752
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5753
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5754
            ;;
 
5755
          *)
 
5756
            case `$CC -V 2>&1 | sed 5q` in
 
5757
            *Sun\ C*)
 
5758
              # Sun C++ 5.9
 
5759
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5760
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5761
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5762
              ;;
 
5763
            esac
 
5764
            ;;
 
5765
        esac
 
5766
        ;;
 
5767
      lynxos*)
 
5768
        ;;
 
5769
      m88k*)
 
5770
        ;;
 
5771
      mvs*)
 
5772
        case $cc_basename in
 
5773
          cxx*)
 
5774
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
5775
            ;;
 
5776
          *)
 
5777
            ;;
 
5778
        esac
 
5779
        ;;
 
5780
      netbsd* | netbsdelf*-gnu)
 
5781
        ;;
 
5782
      osf3* | osf4* | osf5*)
 
5783
        case $cc_basename in
 
5784
          KCC*)
 
5785
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
5786
            ;;
 
5787
          RCC*)
 
5788
            # Rational C++ 2.4.1
 
5789
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5790
            ;;
 
5791
          cxx*)
 
5792
            # Digital/Compaq C++
 
5793
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5794
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
5795
            # Linux and Compaq Tru64 Unix objects are PIC.
 
5796
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5797
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5798
            ;;
 
5799
          *)
 
5800
            ;;
 
5801
        esac
 
5802
        ;;
 
5803
      psos*)
 
5804
        ;;
 
5805
      solaris*)
 
5806
        case $cc_basename in
 
5807
          CC*)
 
5808
            # Sun C++ 4.2, 5.x and Centerline C++
 
5809
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5810
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5811
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5812
            ;;
 
5813
          gcx*)
 
5814
            # Green Hills C++ Compiler
 
5815
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5816
            ;;
 
5817
          *)
 
5818
            ;;
 
5819
        esac
 
5820
        ;;
 
5821
      sunos4*)
 
5822
        case $cc_basename in
 
5823
          CC*)
 
5824
            # Sun C++ 4.x
 
5825
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5826
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5827
            ;;
 
5828
          lcc*)
 
5829
            # Lucid
 
5830
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5831
            ;;
 
5832
          *)
 
5833
            ;;
 
5834
        esac
 
5835
        ;;
 
5836
      tandem*)
 
5837
        case $cc_basename in
 
5838
          NCC*)
 
5839
            # NonStop-UX NCC 3.20
 
5840
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5841
            ;;
 
5842
          *)
 
5843
            ;;
 
5844
        esac
 
5845
        ;;
 
5846
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5847
        case $cc_basename in
 
5848
          CC*)
 
5849
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5850
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5851
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5852
            ;;
 
5853
        esac
 
5854
        ;;
 
5855
      vxworks*)
 
5856
        ;;
 
5857
      *)
 
5858
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5859
        ;;
 
5860
    esac
 
5861
  fi
 
5862
],
 
5863
[
 
5864
  if test "$GCC" = yes; then
 
5865
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5866
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5867
 
 
5868
    case $host_os in
 
5869
      aix*)
 
5870
      # All AIX code is PIC.
 
5871
      if test "$host_cpu" = ia64; then
 
5872
        # AIX 5 now supports IA64 processor
 
5873
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5874
      fi
 
5875
      ;;
 
5876
 
 
5877
    amigaos*)
 
5878
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5879
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5880
      # like `-m68040'.
 
5881
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
5882
      ;;
 
5883
 
 
5884
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5885
      # PIC is the default for these OSes.
 
5886
      ;;
 
5887
 
 
5888
    mingw* | cygwin* | pw32* | os2*)
 
5889
      # This hack is so that the source file can tell whether it is being
 
5890
      # built for inclusion in a dll (and should export symbols for example).
 
5891
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5892
      # (--disable-auto-import) libraries
 
5893
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5894
      ;;
 
5895
 
 
5896
    darwin* | rhapsody*)
 
5897
      # PIC is the default on this platform
 
5898
      # Common symbols not allowed in MH_DYLIB files
 
5899
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
5900
      ;;
 
5901
 
 
5902
    interix[[3-9]]*)
 
5903
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5904
      # Instead, we relocate shared libraries at runtime.
 
5905
      ;;
 
5906
 
 
5907
    msdosdjgpp*)
 
5908
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
5909
      # on systems that don't support them.
 
5910
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5911
      enable_shared=no
 
5912
      ;;
 
5913
 
 
5914
    sysv4*MP*)
 
5915
      if test -d /usr/nec; then
 
5916
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
5917
      fi
 
5918
      ;;
 
5919
 
 
5920
    hpux*)
 
5921
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5922
      # not for PA HP-UX.
 
5923
      case $host_cpu in
 
5924
      hppa*64*|ia64*)
 
5925
        # +Z the default
 
5926
        ;;
 
5927
      *)
 
5928
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5929
        ;;
 
5930
      esac
 
5931
      ;;
 
5932
 
 
5933
    *)
 
5934
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5935
      ;;
 
5936
    esac
 
5937
  else
 
5938
    # PORTME Check for flag to pass linker flags through the system compiler.
 
5939
    case $host_os in
 
5940
    aix*)
 
5941
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5942
      if test "$host_cpu" = ia64; then
 
5943
        # AIX 5 now supports IA64 processor
 
5944
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5945
      else
 
5946
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
5947
      fi
 
5948
      ;;
 
5949
      darwin*)
 
5950
        # PIC is the default on this platform
 
5951
        # Common symbols not allowed in MH_DYLIB files
 
5952
       case $cc_basename in
 
5953
         xlc*)
 
5954
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5955
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5956
         ;;
 
5957
       esac
 
5958
       ;;
 
5959
 
 
5960
    mingw* | cygwin* | pw32* | os2*)
 
5961
      # This hack is so that the source file can tell whether it is being
 
5962
      # built for inclusion in a dll (and should export symbols for example).
 
5963
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5964
      ;;
 
5965
 
 
5966
    hpux9* | hpux10* | hpux11*)
 
5967
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5968
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5969
      # not for PA HP-UX.
 
5970
      case $host_cpu in
 
5971
      hppa*64*|ia64*)
 
5972
        # +Z the default
 
5973
        ;;
 
5974
      *)
 
5975
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5976
        ;;
 
5977
      esac
 
5978
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
5979
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5980
      ;;
 
5981
 
 
5982
    irix5* | irix6* | nonstopux*)
 
5983
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5984
      # PIC (with -KPIC) is the default.
 
5985
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5986
      ;;
 
5987
 
 
5988
    newsos6)
 
5989
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5990
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5991
      ;;
 
5992
 
 
5993
    linux* | k*bsd*-gnu)
 
5994
      case $cc_basename in
 
5995
      icc* | ecc*)
 
5996
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5997
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5998
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5999
        ;;
 
6000
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6001
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6002
        # which looks to be a dead project)
 
6003
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6004
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
6005
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6006
        ;;
 
6007
      ccc*)
 
6008
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6009
        # All Alpha code is PIC.
 
6010
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6011
        ;;
 
6012
      *)
 
6013
        case `$CC -V 2>&1 | sed 5q` in
 
6014
        *Sun\ C*)
 
6015
          # Sun C 5.9
 
6016
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6017
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6018
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6019
          ;;
 
6020
        *Sun\ F*)
 
6021
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
6022
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6023
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6024
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
6025
          ;;
 
6026
        esac
 
6027
        ;;
 
6028
      esac
 
6029
      ;;
 
6030
 
 
6031
    osf3* | osf4* | osf5*)
 
6032
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6033
      # All OSF/1 code is PIC.
 
6034
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6035
      ;;
 
6036
 
 
6037
    rdos*)
 
6038
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6039
      ;;
 
6040
 
 
6041
    solaris*)
 
6042
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6043
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6044
      case $cc_basename in
 
6045
      f77* | f90* | f95*)
 
6046
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
6047
      *)
 
6048
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
6049
      esac
 
6050
      ;;
 
6051
 
 
6052
    sunos4*)
 
6053
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
6054
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
6055
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6056
      ;;
 
6057
 
 
6058
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
6059
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6060
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6061
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6062
      ;;
 
6063
 
 
6064
    sysv4*MP*)
 
6065
      if test -d /usr/nec ;then
 
6066
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
6067
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6068
      fi
 
6069
      ;;
 
6070
 
 
6071
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
6072
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6073
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6074
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6075
      ;;
 
6076
 
 
6077
    unicos*)
 
6078
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6079
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6080
      ;;
 
6081
 
 
6082
    uts4*)
 
6083
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6084
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6085
      ;;
 
6086
 
 
6087
    *)
 
6088
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6089
      ;;
 
6090
    esac
 
6091
  fi
 
6092
])
 
6093
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
6094
 
 
6095
#
 
6096
# Check to make sure the PIC flag actually works.
 
6097
#
 
6098
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
6099
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
 
6100
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
6101
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
 
6102
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
6103
     "" | " "*) ;;
 
6104
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
6105
     esac],
 
6106
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6107
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
6108
fi
 
6109
case $host_os in
 
6110
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6111
  *djgpp*)
 
6112
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6113
    ;;
 
6114
  *)
 
6115
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
 
6116
    ;;
 
6117
esac
 
6118
 
 
6119
#
 
6120
# Check to make sure the static flag actually works.
 
6121
#
 
6122
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
6123
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
6124
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
6125
  $lt_tmp_static_flag,
 
6126
  [],
 
6127
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 
6128
])
 
6129
 
 
6130
 
 
6131
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
 
6132
# ------------------------------------
 
6133
# See if the linker supports building shared libraries.
 
6134
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
 
6135
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
6136
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
6137
ifelse([$1],[CXX],[
 
6138
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6139
  case $host_os in
 
6140
  aix4* | aix5*)
 
6141
    # If we're using GNU nm, then we don't want the "-C" option.
 
6142
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6143
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6144
      _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'
 
6145
    else
 
6146
      _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'
 
6147
    fi
 
6148
    ;;
 
6149
  pw32*)
 
6150
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
6151
  ;;
 
6152
  cygwin* | mingw*)
 
6153
    _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'
 
6154
  ;;
 
6155
  linux* | k*bsd*-gnu)
 
6156
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
6157
  ;;
 
6158
  *)
 
6159
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6160
  ;;
 
6161
  esac
 
6162
],[
 
6163
  runpath_var=
 
6164
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
6165
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6166
  _LT_AC_TAGVAR(archive_cmds, $1)=
 
6167
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
6168
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
 
6169
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
6170
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
6171
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
6172
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
 
6173
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6174
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6175
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
6176
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6177
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
6178
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6179
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
6180
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
6181
  _LT_AC_TAGVAR(module_cmds, $1)=
 
6182
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
6183
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
6184
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6185
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6186
  # included in the symbol list
 
6187
  _LT_AC_TAGVAR(include_expsyms, $1)=
 
6188
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6189
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6190
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6191
  # as well as any symbol that contains `d'.
 
6192
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
6193
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6194
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6195
  # the symbol is explicitly referenced.  Since portable code cannot
 
6196
  # rely on this symbol name, it's probably fine to never include it in
 
6197
  # preloaded symbol tables.
 
6198
  extract_expsyms_cmds=
 
6199
  # Just being paranoid about ensuring that cc_basename is set.
 
6200
  _LT_CC_BASENAME([$compiler])
 
6201
  case $host_os in
 
6202
  cygwin* | mingw* | pw32*)
 
6203
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6204
    # When not using gcc, we currently assume that we are using
 
6205
    # Microsoft Visual C++.
 
6206
    if test "$GCC" != yes; then
 
6207
      with_gnu_ld=no
 
6208
    fi
 
6209
    ;;
 
6210
  interix*)
 
6211
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
6212
    with_gnu_ld=yes
 
6213
    ;;
 
6214
  openbsd*)
 
6215
    with_gnu_ld=no
 
6216
    ;;
 
6217
  esac
 
6218
 
 
6219
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
6220
  if test "$with_gnu_ld" = yes; then
 
6221
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6222
    wlarc='${wl}'
 
6223
 
 
6224
    # Set some defaults for GNU ld with shared library support. These
 
6225
    # are reset later if shared libraries are not supported. Putting them
 
6226
    # here allows them to be overridden if necessary.
 
6227
    runpath_var=LD_RUN_PATH
 
6228
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
6229
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6230
    # ancient GNU ld didn't support --whole-archive et. al.
 
6231
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6232
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6233
      else
 
6234
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
6235
    fi
 
6236
    supports_anon_versioning=no
 
6237
    case `$LD -v 2>/dev/null` in
 
6238
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6239
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6240
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6241
      *\ 2.11.*) ;; # other 2.11 versions
 
6242
      *) supports_anon_versioning=yes ;;
 
6243
    esac
 
6244
 
 
6245
    # See if GNU ld supports shared libraries.
 
6246
    case $host_os in
 
6247
    aix3* | aix4* | aix5*)
 
6248
      # On AIX/PPC, the GNU linker is very broken
 
6249
      if test "$host_cpu" != ia64; then
 
6250
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6251
        cat <<EOF 1>&2
 
6252
 
 
6253
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6254
*** to be unable to reliably create shared libraries on AIX.
 
6255
*** Therefore, libtool is disabling shared libraries support.  If you
 
6256
*** really care for shared libraries, you may want to modify your PATH
 
6257
*** so that a non-GNU linker is found, and then restart.
 
6258
 
 
6259
EOF
 
6260
      fi
 
6261
      ;;
 
6262
 
 
6263
    amigaos*)
 
6264
      _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)'
 
6265
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6266
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6267
 
 
6268
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6269
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6270
      # to version 4, is to share data among multiple programs linked
 
6271
      # with the same dynamic library.  Since this doesn't match the
 
6272
      # behavior of shared libraries on other platforms, we can't use
 
6273
      # them.
 
6274
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6275
      ;;
 
6276
 
 
6277
    beos*)
 
6278
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6279
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6280
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6281
        # support --undefined.  This deserves some investigation.  FIXME
 
6282
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6283
      else
 
6284
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6285
      fi
 
6286
      ;;
 
6287
 
 
6288
    cygwin* | mingw* | pw32*)
 
6289
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6290
      # as there is no search path for DLLs.
 
6291
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6292
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6293
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
6294
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6295
      _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'
 
6296
 
 
6297
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6298
        _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'
 
6299
        # If the export-symbols file already is a .def file (1st line
 
6300
        # is EXPORTS), use it as is; otherwise, prepend...
 
6301
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6302
          cp $export_symbols $output_objdir/$soname.def;
 
6303
        else
 
6304
          echo EXPORTS > $output_objdir/$soname.def;
 
6305
          cat $export_symbols >> $output_objdir/$soname.def;
 
6306
        fi~
 
6307
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6308
      else
 
6309
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6310
      fi
 
6311
      ;;
 
6312
 
 
6313
    interix[[3-9]]*)
 
6314
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6315
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6316
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6317
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6318
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6319
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6320
      # default) and relocated if they conflict, which is a slow very memory
 
6321
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
6322
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6323
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6324
      _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'
 
6325
      _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'
 
6326
      ;;
 
6327
 
 
6328
    gnu* | linux* | k*bsd*-gnu)
 
6329
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6330
        tmp_addflag=
 
6331
        case $cc_basename,$host_cpu in
 
6332
        pgcc*)                          # Portland Group C compiler
 
6333
          _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'
 
6334
          tmp_addflag=' $pic_flag'
 
6335
          ;;
 
6336
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
6337
          _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'
 
6338
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
6339
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
6340
          tmp_addflag=' -i_dynamic' ;;
 
6341
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
6342
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
6343
        ifc* | ifort*)                  # Intel Fortran compiler
 
6344
          tmp_addflag=' -nofor_main' ;;
 
6345
        esac
 
6346
        case `$CC -V 2>&1 | sed 5q` in
 
6347
        *Sun\ C*)                       # Sun C 5.9
 
6348
          _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'
 
6349
          tmp_sharedflag='-G' ;;
 
6350
        *Sun\ F*)                       # Sun Fortran 8.3
 
6351
          tmp_sharedflag='-G' ;;
 
6352
        *)
 
6353
          tmp_sharedflag='-shared' ;;
 
6354
        esac
 
6355
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6356
 
 
6357
        if test $supports_anon_versioning = yes; then
 
6358
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
6359
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6360
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
6361
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6362
        fi
 
6363
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
6364
      else
 
6365
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6366
      fi
 
6367
      ;;
 
6368
 
 
6369
    netbsd* | netbsdelf*-gnu)
 
6370
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6371
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6372
        wlarc=
 
6373
      else
 
6374
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6375
        _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'
 
6376
      fi
 
6377
      ;;
 
6378
 
 
6379
    solaris*)
 
6380
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6381
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6382
        cat <<EOF 1>&2
 
6383
 
 
6384
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6385
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6386
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6387
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6388
*** your PATH or compiler configuration so that the native linker is
 
6389
*** used, and then restart.
 
6390
 
 
6391
EOF
 
6392
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6393
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6394
        _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'
 
6395
      else
 
6396
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6397
      fi
 
6398
      ;;
 
6399
 
 
6400
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
6401
      case `$LD -v 2>&1` in
 
6402
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 
6403
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6404
        cat <<_LT_EOF 1>&2
 
6405
 
 
6406
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
6407
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
6408
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6409
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
6410
*** your PATH or compiler configuration so that the native linker is
 
6411
*** used, and then restart.
 
6412
 
 
6413
_LT_EOF
 
6414
        ;;
 
6415
        *)
 
6416
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6417
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
6418
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
6419
            _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'
 
6420
          else
 
6421
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6422
          fi
 
6423
        ;;
 
6424
      esac
 
6425
      ;;
 
6426
 
 
6427
    sunos4*)
 
6428
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6429
      wlarc=
 
6430
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6431
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6432
      ;;
 
6433
 
 
6434
    *)
 
6435
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6436
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6437
        _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'
 
6438
      else
 
6439
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6440
      fi
 
6441
      ;;
 
6442
    esac
 
6443
 
 
6444
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
6445
      runpath_var=
 
6446
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6447
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
6448
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
6449
    fi
 
6450
  else
 
6451
    # PORTME fill in a description of your system's linker (not GNU ld)
 
6452
    case $host_os in
 
6453
    aix3*)
 
6454
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6455
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
6456
      _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'
 
6457
      # Note: this linker hardcodes the directories in LIBPATH if there
 
6458
      # are no directories specified by -L.
 
6459
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6460
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
6461
        # Neither direct hardcoding nor static linking is supported with a
 
6462
        # broken collect2.
 
6463
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
6464
      fi
 
6465
      ;;
 
6466
 
 
6467
    aix4* | aix5*)
 
6468
      if test "$host_cpu" = ia64; then
 
6469
        # On IA64, the linker does run time linking by default, so we don't
 
6470
        # have to do anything special.
 
6471
        aix_use_runtimelinking=no
 
6472
        exp_sym_flag='-Bexport'
 
6473
        no_entry_flag=""
 
6474
      else
 
6475
        # If we're using GNU nm, then we don't want the "-C" option.
 
6476
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6477
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6478
          _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'
 
6479
        else
 
6480
          _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'
 
6481
        fi
 
6482
        aix_use_runtimelinking=no
 
6483
 
 
6484
        # Test if we are trying to use run time linking or normal
 
6485
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6486
        # need to do runtime linking.
 
6487
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
6488
          for ld_flag in $LDFLAGS; do
 
6489
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6490
            aix_use_runtimelinking=yes
 
6491
            break
 
6492
          fi
 
6493
          done
 
6494
          ;;
 
6495
        esac
 
6496
 
 
6497
        exp_sym_flag='-bexport'
 
6498
        no_entry_flag='-bnoentry'
 
6499
      fi
 
6500
 
 
6501
      # When large executables or shared objects are built, AIX ld can
 
6502
      # have problems creating the table of contents.  If linking a library
 
6503
      # or program results in "error TOC overflow" add -mminimal-toc to
 
6504
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6505
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6506
 
 
6507
      _LT_AC_TAGVAR(archive_cmds, $1)=''
 
6508
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6509
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6510
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6511
 
 
6512
      if test "$GCC" = yes; then
 
6513
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
6514
        # We only want to do this on AIX 4.2 and lower, the check
 
6515
        # below for broken collect2 doesn't work under 4.3+
 
6516
          collect2name=`${CC} -print-prog-name=collect2`
 
6517
          if test -f "$collect2name" && \
 
6518
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6519
          then
 
6520
          # We have reworked collect2
 
6521
          :
 
6522
          else
 
6523
          # We have old collect2
 
6524
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
6525
          # It fails to find uninstalled libraries when the uninstalled
 
6526
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6527
          # to unsupported forces relinking
 
6528
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6529
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6530
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
6531
          fi
 
6532
          ;;
 
6533
        esac
 
6534
        shared_flag='-shared'
 
6535
        if test "$aix_use_runtimelinking" = yes; then
 
6536
          shared_flag="$shared_flag "'${wl}-G'
 
6537
        fi
 
6538
      else
 
6539
        # not using gcc
 
6540
        if test "$host_cpu" = ia64; then
 
6541
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6542
        # chokes on -Wl,-G. The following line is correct:
 
6543
          shared_flag='-G'
 
6544
        else
 
6545
          if test "$aix_use_runtimelinking" = yes; then
 
6546
            shared_flag='${wl}-G'
 
6547
          else
 
6548
            shared_flag='${wl}-bM:SRE'
 
6549
          fi
 
6550
        fi
 
6551
      fi
 
6552
 
 
6553
      # It seems that -bexpall does not export symbols beginning with
 
6554
      # underscore (_), so it is better to generate a list of symbols to export.
 
6555
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
6556
      if test "$aix_use_runtimelinking" = yes; then
 
6557
        # Warning - without using the other runtime loading flags (-brtl),
 
6558
        # -berok will link without error, but may produce a broken library.
 
6559
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
6560
       # Determine the default libpath from the value encoded in an empty executable.
 
6561
       _LT_AC_SYS_LIBPATH_AIX
 
6562
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6563
        _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"
 
6564
       else
 
6565
        if test "$host_cpu" = ia64; then
 
6566
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
6567
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
6568
          _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"
 
6569
        else
 
6570
         # Determine the default libpath from the value encoded in an empty executable.
 
6571
         _LT_AC_SYS_LIBPATH_AIX
 
6572
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6573
          # Warning - without using the other run time loading flags,
 
6574
          # -berok will link without error, but may produce a broken library.
 
6575
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
6576
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
6577
          # Exported symbols can be pulled into shared objects from archives
 
6578
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6579
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6580
          # This is similar to how AIX traditionally builds its shared libraries.
 
6581
          _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'
 
6582
        fi
 
6583
      fi
 
6584
      ;;
 
6585
 
 
6586
    amigaos*)
 
6587
      _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)'
 
6588
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6589
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6590
      # see comment about different semantics on the GNU ld section
 
6591
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6592
      ;;
 
6593
 
 
6594
    bsdi[[45]]*)
 
6595
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
6596
      ;;
 
6597
 
 
6598
    cygwin* | mingw* | pw32*)
 
6599
      # When not using gcc, we currently assume that we are using
 
6600
      # Microsoft Visual C++.
 
6601
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6602
      # no search path for DLLs.
 
6603
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6604
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6605
      # Tell ltmain to make .lib files, not .a files.
 
6606
      libext=lib
 
6607
      # Tell ltmain to make .dll files, not .so files.
 
6608
      shrext_cmds=".dll"
 
6609
      # FIXME: Setting linknames here is a bad hack.
 
6610
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6611
      # The linker will automatically build a .lib file if we build a DLL.
 
6612
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 
6613
      # FIXME: Should let the user specify the lib program.
 
6614
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
6615
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
6616
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6617
      ;;
 
6618
 
 
6619
    darwin* | rhapsody*)
 
6620
      case $host_os in
 
6621
        rhapsody* | darwin1.[[012]])
 
6622
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
6623
         ;;
 
6624
       *) # Darwin 1.3 on
 
6625
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
6626
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6627
         else
 
6628
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
6629
             10.[[012]])
 
6630
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6631
               ;;
 
6632
             10.*)
 
6633
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
6634
               ;;
 
6635
           esac
 
6636
         fi
 
6637
         ;;
 
6638
      esac
 
6639
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6640
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6641
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
6642
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6643
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
6644
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6645
    if test "$GCC" = yes ; then
 
6646
        output_verbose_link_cmd='echo'
 
6647
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6648
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6649
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6650
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6651
      _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}'
 
6652
    else
 
6653
      case $cc_basename in
 
6654
        xlc*)
 
6655
         output_verbose_link_cmd='echo'
 
6656
         _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'
 
6657
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6658
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6659
         _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}'
 
6660
          _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}'
 
6661
          ;;
 
6662
       *)
 
6663
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6664
          ;;
 
6665
      esac
 
6666
    fi
 
6667
      ;;
 
6668
 
 
6669
    dgux*)
 
6670
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6671
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6672
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6673
      ;;
 
6674
 
 
6675
    freebsd1*)
 
6676
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6677
      ;;
 
6678
 
 
6679
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
6680
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
6681
    # does not break anything, and helps significantly (at the cost of a little
 
6682
    # extra space).
 
6683
    freebsd2.2*)
 
6684
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6685
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6686
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6687
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6688
      ;;
 
6689
 
 
6690
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
6691
    freebsd2*)
 
6692
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6693
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6694
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6695
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6696
      ;;
 
6697
 
 
6698
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
6699
    freebsd* | dragonfly*)
 
6700
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6701
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6702
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6703
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6704
      ;;
 
6705
 
 
6706
    hpux9*)
 
6707
      if test "$GCC" = yes; then
 
6708
        _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'
 
6709
      else
 
6710
        _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'
 
6711
      fi
 
6712
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6713
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6714
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6715
 
 
6716
      # hardcode_minus_L: Not really in the search PATH,
 
6717
      # but as the default location of the library.
 
6718
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6719
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6720
      ;;
 
6721
 
 
6722
    hpux10*)
 
6723
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6724
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6725
      else
 
6726
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6727
      fi
 
6728
      if test "$with_gnu_ld" = no; then
 
6729
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6730
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6731
 
 
6732
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6733
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6734
 
 
6735
        # hardcode_minus_L: Not really in the search PATH,
 
6736
        # but as the default location of the library.
 
6737
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6738
      fi
 
6739
      ;;
 
6740
 
 
6741
    hpux11*)
 
6742
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6743
        case $host_cpu in
 
6744
        hppa*64*)
 
6745
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6746
          ;;
 
6747
        ia64*)
 
6748
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6749
          ;;
 
6750
        *)
 
6751
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6752
          ;;
 
6753
        esac
 
6754
      else
 
6755
        case $host_cpu in
 
6756
        hppa*64*)
 
6757
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6758
          ;;
 
6759
        ia64*)
 
6760
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6761
          ;;
 
6762
        *)
 
6763
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6764
          ;;
 
6765
        esac
 
6766
      fi
 
6767
      if test "$with_gnu_ld" = no; then
 
6768
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6769
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6770
 
 
6771
        case $host_cpu in
 
6772
        hppa*64*|ia64*)
 
6773
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
6774
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6775
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6776
          ;;
 
6777
        *)
 
6778
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6779
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6780
 
 
6781
          # hardcode_minus_L: Not really in the search PATH,
 
6782
          # but as the default location of the library.
 
6783
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6784
          ;;
 
6785
        esac
 
6786
      fi
 
6787
      ;;
 
6788
 
 
6789
    irix5* | irix6* | nonstopux*)
 
6790
      if test "$GCC" = yes; then
 
6791
        _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'
 
6792
      else
 
6793
        _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'
 
6794
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
6795
      fi
 
6796
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6797
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6798
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6799
      ;;
 
6800
 
 
6801
    netbsd* | netbsdelf*-gnu)
 
6802
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6803
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6804
      else
 
6805
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
6806
      fi
 
6807
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6808
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6809
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6810
      ;;
 
6811
 
 
6812
    newsos6)
 
6813
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6814
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6815
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6816
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6817
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6818
      ;;
 
6819
 
 
6820
    openbsd*)
 
6821
      if test -f /usr/libexec/ld.so; then
 
6822
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6823
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6824
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6825
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6826
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6827
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6828
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6829
        else
 
6830
          case $host_os in
 
6831
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6832
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6833
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6834
             ;;
 
6835
           *)
 
6836
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6837
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6838
             ;;
 
6839
          esac
 
6840
        fi
 
6841
      else
 
6842
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6843
      fi
 
6844
      ;;
 
6845
 
 
6846
    os2*)
 
6847
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6848
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6849
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6850
      _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'
 
6851
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
6852
      ;;
 
6853
 
 
6854
    osf3*)
 
6855
      if test "$GCC" = yes; then
 
6856
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6857
        _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'
 
6858
      else
 
6859
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6860
        _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'
 
6861
      fi
 
6862
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6863
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6864
      ;;
 
6865
 
 
6866
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
6867
      if test "$GCC" = yes; then
 
6868
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6869
        _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'
 
6870
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6871
      else
 
6872
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6873
        _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'
 
6874
        _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~
 
6875
        $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'
 
6876
 
 
6877
        # Both c and cxx compiler support -rpath directly
 
6878
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6879
      fi
 
6880
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6881
      ;;
 
6882
 
 
6883
    solaris*)
 
6884
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
6885
      if test "$GCC" = yes; then
 
6886
        wlarc='${wl}'
 
6887
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6888
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6889
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
6890
      else
 
6891
        wlarc=''
 
6892
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6893
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6894
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6895
      fi
 
6896
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6897
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6898
      case $host_os in
 
6899
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
6900
      *)
 
6901
        # The compiler driver will combine and reorder linker options,
 
6902
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6903
        # but is careful enough not to reorder.
 
6904
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6905
        if test "$GCC" = yes; then
 
6906
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6907
        else
 
6908
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6909
        fi
 
6910
        ;;
 
6911
      esac
 
6912
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6913
      ;;
 
6914
 
 
6915
    sunos4*)
 
6916
      if test "x$host_vendor" = xsequent; then
 
6917
        # Use $CC to link under sequent, because it throws in some extra .o
 
6918
        # files that make .init and .fini sections work.
 
6919
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6920
      else
 
6921
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
6922
      fi
 
6923
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6924
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6925
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6926
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6927
      ;;
 
6928
 
 
6929
    sysv4)
 
6930
      case $host_vendor in
 
6931
        sni)
 
6932
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6933
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
6934
        ;;
 
6935
        siemens)
 
6936
          ## LD is ld it makes a PLAMLIB
 
6937
          ## CC just makes a GrossModule.
 
6938
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6939
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
6940
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6941
        ;;
 
6942
        motorola)
 
6943
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6944
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
6945
        ;;
 
6946
      esac
 
6947
      runpath_var='LD_RUN_PATH'
 
6948
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6949
      ;;
 
6950
 
 
6951
    sysv4.3*)
 
6952
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6953
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6954
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
6955
      ;;
 
6956
 
 
6957
    sysv4*MP*)
 
6958
      if test -d /usr/nec; then
 
6959
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6960
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6961
        runpath_var=LD_RUN_PATH
 
6962
        hardcode_runpath_var=yes
 
6963
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
6964
      fi
 
6965
      ;;
 
6966
 
 
6967
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
6968
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6969
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6970
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6971
      runpath_var='LD_RUN_PATH'
 
6972
 
 
6973
      if test "$GCC" = yes; then
 
6974
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6975
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6976
      else
 
6977
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6978
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6979
      fi
 
6980
      ;;
 
6981
 
 
6982
    sysv5* | sco3.2v5* | sco5v6*)
 
6983
      # Note: We can NOT use -z defs as we might desire, because we do not
 
6984
      # link with -lc, and that would cause any symbols used from libc to
 
6985
      # always be unresolved, which means just about no library would
 
6986
      # ever link correctly.  If we're not using GNU ld we use -z text
 
6987
      # though, which does catch some bad symbols but isn't as heavy-handed
 
6988
      # as -z defs.
 
6989
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6990
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6991
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6992
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6993
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
6994
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6995
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6996
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6997
      runpath_var='LD_RUN_PATH'
 
6998
 
 
6999
      if test "$GCC" = yes; then
 
7000
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7001
        _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'
 
7002
      else
 
7003
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7004
        _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'
 
7005
      fi
 
7006
      ;;
 
7007
 
 
7008
    uts4*)
 
7009
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7010
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7011
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7012
      ;;
 
7013
 
 
7014
    *)
 
7015
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7016
      ;;
 
7017
    esac
 
7018
  fi
 
7019
])
 
7020
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
7021
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
7022
 
 
7023
#
 
7024
# Do we need to explicitly link libc?
 
7025
#
 
7026
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 
7027
x|xyes)
 
7028
  # Assume -lc should be added
 
7029
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7030
 
 
7031
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7032
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
 
7033
    *'~'*)
 
7034
      # FIXME: we may have to deal with multi-command sequences.
 
7035
      ;;
 
7036
    '$CC '*)
 
7037
      # Test whether the compiler implicitly links with -lc since on some
 
7038
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7039
      # to ld, don't add -lc before -lgcc.
 
7040
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
 
7041
      $rm conftest*
 
7042
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7043
 
 
7044
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
7045
        soname=conftest
 
7046
        lib=conftest
 
7047
        libobjs=conftest.$ac_objext
 
7048
        deplibs=
 
7049
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
7050
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
7051
        compiler_flags=-v
 
7052
        linker_flags=-v
 
7053
        verstring=
 
7054
        output_objdir=.
 
7055
        libname=conftest
 
7056
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
 
7057
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
7058
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 
7059
        then
 
7060
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
7061
        else
 
7062
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7063
        fi
 
7064
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
7065
      else
 
7066
        cat conftest.err 1>&5
 
7067
      fi
 
7068
      $rm conftest*
 
7069
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 
7070
      ;;
 
7071
    esac
 
7072
  fi
 
7073
  ;;
 
7074
esac
 
7075
])# AC_LIBTOOL_PROG_LD_SHLIBS
 
7076
 
 
7077
 
 
7078
# _LT_AC_FILE_LTDLL_C
 
7079
# -------------------
 
7080
# Be careful that the start marker always follows a newline.
 
7081
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
 
7082
# /* ltdll.c starts here */
 
7083
# #define WIN32_LEAN_AND_MEAN
 
7084
# #include <windows.h>
 
7085
# #undef WIN32_LEAN_AND_MEAN
 
7086
# #include <stdio.h>
 
7087
#
 
7088
# #ifndef __CYGWIN__
 
7089
# #  ifdef __CYGWIN32__
 
7090
# #    define __CYGWIN__ __CYGWIN32__
 
7091
# #  endif
 
7092
# #endif
 
7093
#
 
7094
# #ifdef __cplusplus
 
7095
# extern "C" {
 
7096
# #endif
 
7097
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 
7098
# #ifdef __cplusplus
 
7099
# }
 
7100
# #endif
 
7101
#
 
7102
# #ifdef __CYGWIN__
 
7103
# #include <cygwin/cygwin_dll.h>
 
7104
# DECLARE_CYGWIN_DLL( DllMain );
 
7105
# #endif
 
7106
# HINSTANCE __hDllInstance_base;
 
7107
#
 
7108
# BOOL APIENTRY
 
7109
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 
7110
# {
 
7111
#   __hDllInstance_base = hInst;
 
7112
#   return TRUE;
 
7113
# }
 
7114
# /* ltdll.c ends here */
 
7115
])# _LT_AC_FILE_LTDLL_C
 
7116
 
 
7117
 
 
7118
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
7119
# ---------------------------------
 
7120
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
 
7121
 
 
7122
 
 
7123
# old names
 
7124
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
 
7125
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
 
7126
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
 
7127
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
7128
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
7129
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
 
7130
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
 
7131
 
 
7132
# This is just to silence aclocal about the macro not being used
 
7133
ifelse([AC_DISABLE_FAST_INSTALL])
 
7134
 
 
7135
AC_DEFUN([LT_AC_PROG_GCJ],
 
7136
[AC_CHECK_TOOL(GCJ, gcj, no)
 
7137
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
7138
  AC_SUBST(GCJFLAGS)
 
7139
])
 
7140
 
 
7141
AC_DEFUN([LT_AC_PROG_RC],
 
7142
[AC_CHECK_TOOL(RC, windres, no)
 
7143
])
 
7144
 
 
7145
 
 
7146
# Cheap backport of AS_EXECUTABLE_P and required macros
 
7147
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
7148
 
 
7149
# _AS_TEST_PREPARE
 
7150
# ----------------
 
7151
m4_ifndef([_AS_TEST_PREPARE],
 
7152
[m4_defun([_AS_TEST_PREPARE],
 
7153
[if test -x / >/dev/null 2>&1; then
 
7154
  as_executable_p='test -x'
 
7155
else
 
7156
  as_executable_p='test -f'
 
7157
fi
 
7158
])])# _AS_TEST_PREPARE
 
7159
 
 
7160
# AS_EXECUTABLE_P
 
7161
# ---------------
 
7162
# Check whether a file is executable.
 
7163
m4_ifndef([AS_EXECUTABLE_P],
 
7164
[m4_defun([AS_EXECUTABLE_P],
 
7165
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
7166
$as_executable_p $1[]dnl
 
7167
])])# AS_EXECUTABLE_P
 
7168
 
 
7169
# NOTE: This macro has been submitted for inclusion into   #
 
7170
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
 
7171
#  a released version of Autoconf we should remove this    #
 
7172
#  macro and use it instead.                               #
 
7173
# LT_AC_PROG_SED
 
7174
# --------------
 
7175
# Check for a fully-functional sed program, that truncates
 
7176
# as few characters as possible.  Prefer GNU sed if found.
 
7177
AC_DEFUN([LT_AC_PROG_SED],
 
7178
[AC_MSG_CHECKING([for a sed that does not truncate output])
 
7179
AC_CACHE_VAL(lt_cv_path_SED,
 
7180
[# Loop through the user's path and test for sed and gsed.
 
7181
# Then use that list of sed's as ones to test for truncation.
 
7182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7183
for as_dir in $PATH
 
7184
do
 
7185
  IFS=$as_save_IFS
 
7186
  test -z "$as_dir" && as_dir=.
 
7187
  for lt_ac_prog in sed gsed; do
 
7188
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7189
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
 
7190
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
7191
      fi
 
7192
    done
 
7193
  done
 
7194
done
 
7195
IFS=$as_save_IFS
 
7196
lt_ac_max=0
 
7197
lt_ac_count=0
 
7198
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
7199
# along with /bin/sed that truncates output.
 
7200
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
7201
  test ! -f $lt_ac_sed && continue
 
7202
  cat /dev/null > conftest.in
 
7203
  lt_ac_count=0
 
7204
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
7205
  # Check for GNU sed and select it if it is found.
 
7206
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
7207
    lt_cv_path_SED=$lt_ac_sed
 
7208
    break
 
7209
  fi
 
7210
  while true; do
 
7211
    cat conftest.in conftest.in >conftest.tmp
 
7212
    mv conftest.tmp conftest.in
 
7213
    cp conftest.in conftest.nl
 
7214
    echo >>conftest.nl
 
7215
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
7216
    cmp -s conftest.out conftest.nl || break
 
7217
    # 10000 chars as input seems more than enough
 
7218
    test $lt_ac_count -gt 10 && break
 
7219
    lt_ac_count=`expr $lt_ac_count + 1`
 
7220
    if test $lt_ac_count -gt $lt_ac_max; then
 
7221
      lt_ac_max=$lt_ac_count
 
7222
      lt_cv_path_SED=$lt_ac_sed
 
7223
    fi
 
7224
  done
 
7225
done
 
7226
])
 
7227
SED=$lt_cv_path_SED
 
7228
AC_SUBST([SED])
 
7229
AC_MSG_RESULT([$SED])
 
7230
])
 
7231
 
 
7232
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
7233
 
7234
# Copyright Ā© 2004 Scott James Remnant <scott@netsplit.com>.
 
7235
#
 
7236
# This program is free software; you can redistribute it and/or modify
 
7237
# it under the terms of the GNU General Public License as published by
 
7238
# the Free Software Foundation; either version 2 of the License, or
 
7239
# (at your option) any later version.
 
7240
#
 
7241
# This program is distributed in the hope that it will be useful, but
 
7242
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
7243
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
7244
# General Public License for more details.
 
7245
#
 
7246
# You should have received a copy of the GNU General Public License
 
7247
# along with this program; if not, write to the Free Software
 
7248
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
7249
#
 
7250
# As a special exception to the GNU General Public License, if you
 
7251
# distribute this file as part of a program that contains a
 
7252
# configuration script generated by Autoconf, you may include it under
 
7253
# the same distribution terms that you use for the rest of that program.
 
7254
 
 
7255
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
7256
# ----------------------------------
 
7257
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
7258
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
7259
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
7260
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
7261
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
7262
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
7263
fi
 
7264
if test -n "$PKG_CONFIG"; then
 
7265
        _pkg_min_version=m4_default([$1], [0.9.0])
 
7266
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
7267
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
7268
                AC_MSG_RESULT([yes])
 
7269
        else
 
7270
                AC_MSG_RESULT([no])
 
7271
                PKG_CONFIG=""
 
7272
        fi
 
7273
                
 
7274
fi[]dnl
 
7275
])# PKG_PROG_PKG_CONFIG
 
7276
 
 
7277
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
7278
#
 
7279
# Check to see whether a particular set of modules exists.  Similar
 
7280
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
7281
#
 
7282
#
 
7283
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
 
7284
# this or PKG_CHECK_MODULES is called, or make sure to call
 
7285
# PKG_CHECK_EXISTS manually
 
7286
# --------------------------------------------------------------
 
7287
AC_DEFUN([PKG_CHECK_EXISTS],
 
7288
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
7289
if test -n "$PKG_CONFIG" && \
 
7290
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
7291
  m4_ifval([$2], [$2], [:])
 
7292
m4_ifvaln([$3], [else
 
7293
  $3])dnl
 
7294
fi])
 
7295
 
 
7296
 
 
7297
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
7298
# ---------------------------------------------
 
7299
m4_define([_PKG_CONFIG],
 
7300
[if test -n "$PKG_CONFIG"; then
 
7301
    if test -n "$$1"; then
 
7302
        pkg_cv_[]$1="$$1"
 
7303
    else
 
7304
        PKG_CHECK_EXISTS([$3],
 
7305
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
7306
                         [pkg_failed=yes])
 
7307
    fi
 
7308
else
 
7309
        pkg_failed=untried
 
7310
fi[]dnl
 
7311
])# _PKG_CONFIG
 
7312
 
 
7313
# _PKG_SHORT_ERRORS_SUPPORTED
 
7314
# -----------------------------
 
7315
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
7316
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
7317
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
7318
        _pkg_short_errors_supported=yes
 
7319
else
 
7320
        _pkg_short_errors_supported=no
 
7321
fi[]dnl
 
7322
])# _PKG_SHORT_ERRORS_SUPPORTED
 
7323
 
 
7324
 
 
7325
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
7326
# [ACTION-IF-NOT-FOUND])
 
7327
#
 
7328
#
 
7329
# Note that if there is a possibility the first call to
 
7330
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
7331
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
7332
#
 
7333
#
 
7334
# --------------------------------------------------------------
 
7335
AC_DEFUN([PKG_CHECK_MODULES],
 
7336
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
7337
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
7338
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
7339
 
 
7340
pkg_failed=no
 
7341
AC_MSG_CHECKING([for $1])
 
7342
 
 
7343
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
7344
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
7345
 
 
7346
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
7347
and $1[]_LIBS to avoid the need to call pkg-config.
 
7348
See the pkg-config man page for more details.])
 
7349
 
 
7350
if test $pkg_failed = yes; then
 
7351
        _PKG_SHORT_ERRORS_SUPPORTED
 
7352
        if test $_pkg_short_errors_supported = yes; then
 
7353
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
7354
        else 
 
7355
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
7356
        fi
 
7357
        # Put the nasty error message in config.log where it belongs
 
7358
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
7359
 
 
7360
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
7361
[Package requirements ($2) were not met:
 
7362
 
 
7363
$$1_PKG_ERRORS
 
7364
 
 
7365
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
7366
installed software in a non-standard prefix.
 
7367
 
 
7368
_PKG_TEXT
 
7369
])],
 
7370
                [AC_MSG_RESULT([no])
 
7371
                $4])
 
7372
elif test $pkg_failed = untried; then
 
7373
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
7374
[The pkg-config script could not be found or is too old.  Make sure it
 
7375
is in your PATH or set the PKG_CONFIG environment variable to the full
 
7376
path to pkg-config.
 
7377
 
 
7378
_PKG_TEXT
 
7379
 
 
7380
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
 
7381
                [$4])
 
7382
else
 
7383
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
7384
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
7385
        AC_MSG_RESULT([yes])
 
7386
        ifelse([$3], , :, [$3])
 
7387
fi[]dnl
 
7388
])# PKG_CHECK_MODULES
 
7389
 
 
7390
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
 
7391
#
 
7392
# This file is free software; the Free Software Foundation
 
7393
# gives unlimited permission to copy and/or distribute it,
 
7394
# with or without modifications, as long as this notice is preserved.
 
7395
 
 
7396
# AM_AUTOMAKE_VERSION(VERSION)
 
7397
# ----------------------------
 
7398
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
7399
# generated from the m4 files accompanying Automake X.Y.
 
7400
# (This private macro should not be called outside this file.)
 
7401
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
7402
[am__api_version='1.10'
 
7403
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
7404
dnl require some minimum version.  Point them to the right macro.
 
7405
m4_if([$1], [1.10], [],
 
7406
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
7407
])
 
7408
 
 
7409
# _AM_AUTOCONF_VERSION(VERSION)
 
7410
# -----------------------------
 
7411
# aclocal traces this macro to find the Autoconf version.
 
7412
# This is a private macro too.  Using m4_define simplifies
 
7413
# the logic in aclocal, which can simply ignore this definition.
 
7414
m4_define([_AM_AUTOCONF_VERSION], [])
 
7415
 
 
7416
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
7417
# -------------------------------
 
7418
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
7419
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
7420
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
7421
[AM_AUTOMAKE_VERSION([1.10])dnl
 
7422
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
 
7423
 
 
7424
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
7425
 
 
7426
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
7427
#
 
7428
# This file is free software; the Free Software Foundation
 
7429
# gives unlimited permission to copy and/or distribute it,
 
7430
# with or without modifications, as long as this notice is preserved.
 
7431
 
 
7432
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
7433
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
7434
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
7435
#
 
7436
# Of course, Automake must honor this variable whenever it calls a
 
7437
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
7438
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
7439
# depending on how configure is run.  This is pretty annoying, since
 
7440
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
7441
# source directory, any form will work fine, but in subdirectories a
 
7442
# relative path needs to be adjusted first.
 
7443
#
 
7444
# $ac_aux_dir/missing
 
7445
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
7446
# $top_srcdir/$ac_aux_dir/missing
 
7447
#    fails if $ac_aux_dir is absolute,
 
7448
#    fails when called from a subdirectory in a VPATH build with
 
7449
#          a relative $ac_aux_dir
 
7450
#
 
7451
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
7452
# are both prefixed by $srcdir.  In an in-source build this is usually
 
7453
# harmless because $srcdir is `.', but things will broke when you
 
7454
# start a VPATH build or use an absolute $srcdir.
 
7455
#
 
7456
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
7457
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
7458
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
7459
# and then we would define $MISSING as
 
7460
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
7461
# This will work as long as MISSING is not called from configure, because
 
7462
# unfortunately $(top_srcdir) has no meaning in configure.
 
7463
# However there are other variables, like CC, which are often used in
 
7464
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
7465
#
 
7466
# Another solution, used here, is to always expand $ac_aux_dir to an
 
7467
# absolute PATH.  The drawback is that using absolute paths prevent a
 
7468
# configured tree to be moved without reconfiguration.
 
7469
 
 
7470
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
7471
[dnl Rely on autoconf to set up CDPATH properly.
 
7472
AC_PREREQ([2.50])dnl
 
7473
# expand $ac_aux_dir to an absolute path
 
7474
am_aux_dir=`cd $ac_aux_dir && pwd`
 
7475
])
 
7476
 
 
7477
 
 
7478
# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
 
7479
# Free Software Foundation, Inc.
 
7480
#
 
7481
# This file is free software; the Free Software Foundation
 
7482
# gives unlimited permission to copy and/or distribute it,
 
7483
# with or without modifications, as long as this notice is preserved.
 
7484
 
 
7485
# serial 4
 
7486
 
 
7487
# This was merged into AC_PROG_CC in Autoconf.
 
7488
 
 
7489
AU_DEFUN([AM_PROG_CC_STDC],
 
7490
[AC_PROG_CC
 
7491
AC_DIAGNOSE([obsolete], [$0:
 
7492
        your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
 
7493
        `ac_cv_prog_cc_stdc'.  Remove this warning and the assignment when
 
7494
        you adjust the code.  You can also remove the above call to
 
7495
        AC_PROG_CC if you already called it elsewhere.])
 
7496
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
 
7497
])
 
7498
AU_DEFUN([fp_PROG_CC_STDC])
 
7499
 
 
7500
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
7501
 
 
7502
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
7503
# Free Software Foundation, Inc.
 
7504
#
 
7505
# This file is free software; the Free Software Foundation
 
7506
# gives unlimited permission to copy and/or distribute it,
 
7507
# with or without modifications, as long as this notice is preserved.
 
7508
 
 
7509
# serial 8
 
7510
 
 
7511
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
7512
# -------------------------------------
 
7513
# Define a conditional.
 
7514
AC_DEFUN([AM_CONDITIONAL],
 
7515
[AC_PREREQ(2.52)dnl
 
7516
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
7517
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
7518
AC_SUBST([$1_TRUE])dnl
 
7519
AC_SUBST([$1_FALSE])dnl
 
7520
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
7521
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
7522
if $2; then
 
7523
  $1_TRUE=
 
7524
  $1_FALSE='#'
 
7525
else
 
7526
  $1_TRUE='#'
 
7527
  $1_FALSE=
 
7528
fi
 
7529
AC_CONFIG_COMMANDS_PRE(
 
7530
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
7531
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
7532
Usually this means the macro was only invoked conditionally.]])
 
7533
fi])])
 
7534
 
 
7535
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
7536
# Free Software Foundation, Inc.
 
7537
#
 
7538
# This file is free software; the Free Software Foundation
 
7539
# gives unlimited permission to copy and/or distribute it,
 
7540
# with or without modifications, as long as this notice is preserved.
 
7541
 
 
7542
# serial 9
 
7543
 
 
7544
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
7545
# written in clear, in which case automake, when reading aclocal.m4,
 
7546
# will think it sees a *use*, and therefore will trigger all it's
 
7547
# C support machinery.  Also note that it means that autoscan, seeing
 
7548
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
7549
 
 
7550
 
 
7551
# _AM_DEPENDENCIES(NAME)
 
7552
# ----------------------
 
7553
# See how the compiler implements dependency checking.
 
7554
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
7555
# We try a few techniques and use that to set a single cache variable.
 
7556
#
 
7557
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
7558
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
7559
# dependency, and given that the user is not expected to run this macro,
 
7560
# just rely on AC_PROG_CC.
 
7561
AC_DEFUN([_AM_DEPENDENCIES],
 
7562
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
7563
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
7564
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
7565
AC_REQUIRE([AM_DEP_TRACK])dnl
 
7566
 
 
7567
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
7568
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
7569
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
7570
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
7571
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
7572
                   [depcc="$$1"   am_compiler_list=])
 
7573
 
 
7574
AC_CACHE_CHECK([dependency style of $depcc],
 
7575
               [am_cv_$1_dependencies_compiler_type],
 
7576
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
7577
  # We make a subdir and do the tests there.  Otherwise we can end up
 
7578
  # making bogus files that we don't know about and never remove.  For
 
7579
  # instance it was reported that on HP-UX the gcc test will end up
 
7580
  # making a dummy file named `D' -- because `-MD' means `put the output
 
7581
  # in D'.
 
7582
  mkdir conftest.dir
 
7583
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
7584
  # using a relative directory.
 
7585
  cp "$am_depcomp" conftest.dir
 
7586
  cd conftest.dir
 
7587
  # We will build objects and dependencies in a subdirectory because
 
7588
  # it helps to detect inapplicable dependency modes.  For instance
 
7589
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
7590
  # side effect of compilation, but ICC will put the dependencies in
 
7591
  # the current directory while Tru64 will put them in the object
 
7592
  # directory.
 
7593
  mkdir sub
 
7594
 
 
7595
  am_cv_$1_dependencies_compiler_type=none
 
7596
  if test "$am_compiler_list" = ""; then
 
7597
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
7598
  fi
 
7599
  for depmode in $am_compiler_list; do
 
7600
    # Setup a source with many dependencies, because some compilers
 
7601
    # like to wrap large dependency lists on column 80 (with \), and
 
7602
    # we should not choose a depcomp mode which is confused by this.
 
7603
    #
 
7604
    # We need to recreate these files for each test, as the compiler may
 
7605
    # overwrite some of them when testing with obscure command lines.
 
7606
    # This happens at least with the AIX C compiler.
 
7607
    : > sub/conftest.c
 
7608
    for i in 1 2 3 4 5 6; do
 
7609
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
7610
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
7611
      # Solaris 8's {/usr,}/bin/sh.
 
7612
      touch sub/conftst$i.h
 
7613
    done
 
7614
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
7615
 
 
7616
    case $depmode in
 
7617
    nosideeffect)
 
7618
      # after this tag, mechanisms are not by side-effect, so they'll
 
7619
      # only be used when explicitly requested
 
7620
      if test "x$enable_dependency_tracking" = xyes; then
 
7621
        continue
 
7622
      else
 
7623
        break
 
7624
      fi
 
7625
      ;;
 
7626
    none) break ;;
 
7627
    esac
 
7628
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
7629
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
7630
    # handle `-M -o', and we need to detect this.
 
7631
    if depmode=$depmode \
 
7632
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
7633
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
7634
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
7635
         >/dev/null 2>conftest.err &&
 
7636
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
7637
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
7638
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
7639
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
7640
      # icc doesn't choke on unknown options, it will just issue warnings
 
7641
      # or remarks (even with -Werror).  So we grep stderr for any message
 
7642
      # that says an option was ignored or not supported.
 
7643
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
7644
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
7645
      # The diagnosis changed in icc 8.0:
 
7646
      #   icc: Command line remark: option '-MP' not supported
 
7647
      if (grep 'ignoring option' conftest.err ||
 
7648
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
7649
        am_cv_$1_dependencies_compiler_type=$depmode
 
7650
        break
 
7651
      fi
 
7652
    fi
 
7653
  done
 
7654
 
 
7655
  cd ..
 
7656
  rm -rf conftest.dir
 
7657
else
 
7658
  am_cv_$1_dependencies_compiler_type=none
 
7659
fi
 
7660
])
 
7661
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
7662
AM_CONDITIONAL([am__fastdep$1], [
 
7663
  test "x$enable_dependency_tracking" != xno \
 
7664
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
7665
])
 
7666
 
 
7667
 
 
7668
# AM_SET_DEPDIR
 
7669
# -------------
 
7670
# Choose a directory name for dependency files.
 
7671
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
7672
AC_DEFUN([AM_SET_DEPDIR],
 
7673
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
7674
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
7675
])
 
7676
 
 
7677
 
 
7678
# AM_DEP_TRACK
 
7679
# ------------
 
7680
AC_DEFUN([AM_DEP_TRACK],
 
7681
[AC_ARG_ENABLE(dependency-tracking,
 
7682
[  --disable-dependency-tracking  speeds up one-time build
 
7683
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
7684
if test "x$enable_dependency_tracking" != xno; then
 
7685
  am_depcomp="$ac_aux_dir/depcomp"
 
7686
  AMDEPBACKSLASH='\'
 
7687
fi
 
7688
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
7689
AC_SUBST([AMDEPBACKSLASH])dnl
 
7690
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
7691
])
 
7692
 
 
7693
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
7694
 
 
7695
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
7696
# Free Software Foundation, Inc.
 
7697
#
 
7698
# This file is free software; the Free Software Foundation
 
7699
# gives unlimited permission to copy and/or distribute it,
 
7700
# with or without modifications, as long as this notice is preserved.
 
7701
 
 
7702
#serial 3
 
7703
 
 
7704
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
7705
# ------------------------------
 
7706
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
7707
[for mf in $CONFIG_FILES; do
 
7708
  # Strip MF so we end up with the name of the file.
 
7709
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
7710
  # Check whether this is an Automake generated Makefile or not.
 
7711
  # We used to match only the files named `Makefile.in', but
 
7712
  # some people rename them; so instead we look at the file content.
 
7713
  # Grep'ing the first line is not enough: some people post-process
 
7714
  # each Makefile.in and add a new line on top of each file to say so.
 
7715
  # Grep'ing the whole file is not good either: AIX grep has a line
 
7716
  # limit of 2048, but all sed's we know have understand at least 4000.
 
7717
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
7718
    dirpart=`AS_DIRNAME("$mf")`
 
7719
  else
 
7720
    continue
 
7721
  fi
 
7722
  # Extract the definition of DEPDIR, am__include, and am__quote
 
7723
  # from the Makefile without running `make'.
 
7724
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
7725
  test -z "$DEPDIR" && continue
 
7726
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
7727
  test -z "am__include" && continue
 
7728
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
7729
  # When using ansi2knr, U may be empty or an underscore; expand it
 
7730
  U=`sed -n 's/^U = //p' < "$mf"`
 
7731
  # Find all dependency output files, they are included files with
 
7732
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
7733
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
7734
  # expansion.
 
7735
  for file in `sed -n "
 
7736
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
7737
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
7738
    # Make sure the directory exists.
 
7739
    test -f "$dirpart/$file" && continue
 
7740
    fdir=`AS_DIRNAME(["$file"])`
 
7741
    AS_MKDIR_P([$dirpart/$fdir])
 
7742
    # echo "creating $dirpart/$file"
 
7743
    echo '# dummy' > "$dirpart/$file"
 
7744
  done
 
7745
done
 
7746
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
7747
 
 
7748
 
 
7749
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
7750
# -----------------------------
 
7751
# This macro should only be invoked once -- use via AC_REQUIRE.
 
7752
#
 
7753
# This code is only required when automatic dependency tracking
 
7754
# is enabled.  FIXME.  This creates each `.P' file that we will
 
7755
# need in order to bootstrap the dependency handling code.
 
7756
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
7757
[AC_CONFIG_COMMANDS([depfiles],
 
7758
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
7759
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
7760
])
 
7761
 
 
7762
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
7763
# Free Software Foundation, Inc.
 
7764
#
 
7765
# This file is free software; the Free Software Foundation
 
7766
# gives unlimited permission to copy and/or distribute it,
 
7767
# with or without modifications, as long as this notice is preserved.
 
7768
 
 
7769
# serial 8
 
7770
 
 
7771
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
7772
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
7773
 
 
7774
# Do all the work for Automake.                             -*- Autoconf -*-
 
7775
 
 
7776
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
7777
# 2005, 2006 Free Software Foundation, Inc.
 
7778
#
 
7779
# This file is free software; the Free Software Foundation
 
7780
# gives unlimited permission to copy and/or distribute it,
 
7781
# with or without modifications, as long as this notice is preserved.
 
7782
 
 
7783
# serial 12
 
7784
 
 
7785
# This macro actually does too much.  Some checks are only needed if
 
7786
# your package does certain things.  But this isn't really a big deal.
 
7787
 
 
7788
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
7789
# AM_INIT_AUTOMAKE([OPTIONS])
 
7790
# -----------------------------------------------
 
7791
# The call with PACKAGE and VERSION arguments is the old style
 
7792
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
7793
# and VERSION should now be passed to AC_INIT and removed from
 
7794
# the call to AM_INIT_AUTOMAKE.
 
7795
# We support both call styles for the transition.  After
 
7796
# the next Automake release, Autoconf can make the AC_INIT
 
7797
# arguments mandatory, and then we can depend on a new Autoconf
 
7798
# release and drop the old call support.
 
7799
AC_DEFUN([AM_INIT_AUTOMAKE],
 
7800
[AC_PREREQ([2.60])dnl
 
7801
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
7802
dnl the ones we care about.
 
7803
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
7804
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
7805
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
7806
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
7807
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
7808
  # is not polluted with repeated "-I."
 
7809
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
7810
  # test to see if srcdir already configured
 
7811
  if test -f $srcdir/config.status; then
 
7812
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7813
  fi
 
7814
fi
 
7815
 
 
7816
# test whether we have cygpath
 
7817
if test -z "$CYGPATH_W"; then
 
7818
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
7819
    CYGPATH_W='cygpath -w'
 
7820
  else
 
7821
    CYGPATH_W=echo
 
7822
  fi
 
7823
fi
 
7824
AC_SUBST([CYGPATH_W])
 
7825
 
 
7826
# Define the identity of the package.
 
7827
dnl Distinguish between old-style and new-style calls.
 
7828
m4_ifval([$2],
 
7829
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
7830
 AC_SUBST([PACKAGE], [$1])dnl
 
7831
 AC_SUBST([VERSION], [$2])],
 
7832
[_AM_SET_OPTIONS([$1])dnl
 
7833
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
7834
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
7835
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
7836
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
7837
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
7838
 
 
7839
_AM_IF_OPTION([no-define],,
 
7840
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
7841
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
7842
 
 
7843
# Some tools Automake needs.
 
7844
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
7845
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
7846
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
7847
AM_MISSING_PROG(AUTOCONF, autoconf)
 
7848
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
7849
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
7850
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
7851
AM_PROG_INSTALL_SH
 
7852
AM_PROG_INSTALL_STRIP
 
7853
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
7854
# We need awk for the "check" target.  The system "awk" is bad on
 
7855
# some platforms.
 
7856
AC_REQUIRE([AC_PROG_AWK])dnl
 
7857
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
7858
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
7859
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
7860
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
7861
                             [_AM_PROG_TAR([v7])])])
 
7862
_AM_IF_OPTION([no-dependencies],,
 
7863
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
7864
                  [_AM_DEPENDENCIES(CC)],
 
7865
                  [define([AC_PROG_CC],
 
7866
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
7867
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
7868
                  [_AM_DEPENDENCIES(CXX)],
 
7869
                  [define([AC_PROG_CXX],
 
7870
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
7871
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
7872
                  [_AM_DEPENDENCIES(OBJC)],
 
7873
                  [define([AC_PROG_OBJC],
 
7874
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
7875
])
 
7876
])
 
7877
 
 
7878
 
 
7879
# When config.status generates a header, we must update the stamp-h file.
 
7880
# This file resides in the same directory as the config header
 
7881
# that is generated.  The stamp files are numbered to have different names.
 
7882
 
 
7883
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
7884
# loop where config.status creates the headers, so we can generate
 
7885
# our stamp files there.
 
7886
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
7887
[# Compute $1's index in $config_headers.
 
7888
_am_stamp_count=1
 
7889
for _am_header in $config_headers :; do
 
7890
  case $_am_header in
 
7891
    $1 | $1:* )
 
7892
      break ;;
 
7893
    * )
 
7894
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
7895
  esac
 
7896
done
 
7897
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
7898
 
 
7899
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
7900
#
 
7901
# This file is free software; the Free Software Foundation
 
7902
# gives unlimited permission to copy and/or distribute it,
 
7903
# with or without modifications, as long as this notice is preserved.
 
7904
 
 
7905
# AM_PROG_INSTALL_SH
 
7906
# ------------------
 
7907
# Define $install_sh.
 
7908
AC_DEFUN([AM_PROG_INSTALL_SH],
 
7909
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7910
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
7911
AC_SUBST(install_sh)])
 
7912
 
 
7913
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
7914
#
 
7915
# This file is free software; the Free Software Foundation
 
7916
# gives unlimited permission to copy and/or distribute it,
 
7917
# with or without modifications, as long as this notice is preserved.
 
7918
 
 
7919
# serial 2
 
7920
 
 
7921
# Check whether the underlying file-system supports filenames
 
7922
# with a leading dot.  For instance MS-DOS doesn't.
 
7923
AC_DEFUN([AM_SET_LEADING_DOT],
 
7924
[rm -rf .tst 2>/dev/null
 
7925
mkdir .tst 2>/dev/null
 
7926
if test -d .tst; then
 
7927
  am__leading_dot=.
 
7928
else
 
7929
  am__leading_dot=_
 
7930
fi
 
7931
rmdir .tst 2>/dev/null
 
7932
AC_SUBST([am__leading_dot])])
 
7933
 
 
7934
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
7935
# From Jim Meyering
 
7936
 
 
7937
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
7938
# Free Software Foundation, Inc.
 
7939
#
 
7940
# This file is free software; the Free Software Foundation
 
7941
# gives unlimited permission to copy and/or distribute it,
 
7942
# with or without modifications, as long as this notice is preserved.
 
7943
 
 
7944
# serial 4
 
7945
 
 
7946
AC_DEFUN([AM_MAINTAINER_MODE],
 
7947
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
7948
  dnl maintainer-mode is disabled by default
 
7949
  AC_ARG_ENABLE(maintainer-mode,
 
7950
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
7951
                          (and sometimes confusing) to the casual installer],
 
7952
      USE_MAINTAINER_MODE=$enableval,
 
7953
      USE_MAINTAINER_MODE=no)
 
7954
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
7955
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
7956
  MAINT=$MAINTAINER_MODE_TRUE
 
7957
  AC_SUBST(MAINT)dnl
 
7958
]
 
7959
)
 
7960
 
 
7961
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
7962
 
 
7963
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
7964
 
 
7965
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
7966
#
 
7967
# This file is free software; the Free Software Foundation
 
7968
# gives unlimited permission to copy and/or distribute it,
 
7969
# with or without modifications, as long as this notice is preserved.
 
7970
 
 
7971
# serial 3
 
7972
 
 
7973
# AM_MAKE_INCLUDE()
 
7974
# -----------------
 
7975
# Check to see how make treats includes.
 
7976
AC_DEFUN([AM_MAKE_INCLUDE],
 
7977
[am_make=${MAKE-make}
 
7978
cat > confinc << 'END'
 
7979
am__doit:
 
7980
        @echo done
 
7981
.PHONY: am__doit
 
7982
END
 
7983
# If we don't find an include directive, just comment out the code.
 
7984
AC_MSG_CHECKING([for style of include used by $am_make])
 
7985
am__include="#"
 
7986
am__quote=
 
7987
_am_result=none
 
7988
# First try GNU make style include.
 
7989
echo "include confinc" > confmf
 
7990
# We grep out `Entering directory' and `Leaving directory'
 
7991
# messages which can occur if `w' ends up in MAKEFLAGS.
 
7992
# In particular we don't look at `^make:' because GNU make might
 
7993
# be invoked under some other name (usually "gmake"), in which
 
7994
# case it prints its new name instead of `make'.
 
7995
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
7996
   am__include=include
 
7997
   am__quote=
 
7998
   _am_result=GNU
 
7999
fi
 
8000
# Now try BSD make style include.
 
8001
if test "$am__include" = "#"; then
 
8002
   echo '.include "confinc"' > confmf
 
8003
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
8004
      am__include=.include
 
8005
      am__quote="\""
 
8006
      _am_result=BSD
 
8007
   fi
 
8008
fi
 
8009
AC_SUBST([am__include])
 
8010
AC_SUBST([am__quote])
 
8011
AC_MSG_RESULT([$_am_result])
 
8012
rm -f confinc confmf
 
8013
])
 
8014
 
 
8015
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
8016
 
 
8017
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
8018
# Free Software Foundation, Inc.
 
8019
#
 
8020
# This file is free software; the Free Software Foundation
 
8021
# gives unlimited permission to copy and/or distribute it,
 
8022
# with or without modifications, as long as this notice is preserved.
 
8023
 
 
8024
# serial 5
 
8025
 
 
8026
# AM_MISSING_PROG(NAME, PROGRAM)
 
8027
# ------------------------------
 
8028
AC_DEFUN([AM_MISSING_PROG],
 
8029
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
8030
$1=${$1-"${am_missing_run}$2"}
 
8031
AC_SUBST($1)])
 
8032
 
 
8033
 
 
8034
# AM_MISSING_HAS_RUN
 
8035
# ------------------
 
8036
# Define MISSING if not defined so far and test if it supports --run.
 
8037
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
8038
AC_DEFUN([AM_MISSING_HAS_RUN],
 
8039
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
8040
AC_REQUIRE_AUX_FILE([missing])dnl
 
8041
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
8042
# Use eval to expand $SHELL
 
8043
if eval "$MISSING --run true"; then
 
8044
  am_missing_run="$MISSING --run "
 
8045
else
 
8046
  am_missing_run=
 
8047
  AC_MSG_WARN([`missing' script is too old or missing])
 
8048
fi
 
8049
])
 
8050
 
 
8051
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
8052
#
 
8053
# This file is free software; the Free Software Foundation
 
8054
# gives unlimited permission to copy and/or distribute it,
 
8055
# with or without modifications, as long as this notice is preserved.
 
8056
 
 
8057
# AM_PROG_MKDIR_P
 
8058
# ---------------
 
8059
# Check for `mkdir -p'.
 
8060
AC_DEFUN([AM_PROG_MKDIR_P],
 
8061
[AC_PREREQ([2.60])dnl
 
8062
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
8063
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
8064
dnl while keeping a definition of mkdir_p for backward compatibility.
 
8065
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
8066
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
8067
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
8068
dnl adjustment using top_builddir (which is defined more often than
 
8069
dnl MKDIR_P).
 
8070
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
8071
case $mkdir_p in
 
8072
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
8073
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
8074
esac
 
8075
])
 
8076
 
 
8077
# Helper functions for option handling.                     -*- Autoconf -*-
 
8078
 
 
8079
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
8080
#
 
8081
# This file is free software; the Free Software Foundation
 
8082
# gives unlimited permission to copy and/or distribute it,
 
8083
# with or without modifications, as long as this notice is preserved.
 
8084
 
 
8085
# serial 3
 
8086
 
 
8087
# _AM_MANGLE_OPTION(NAME)
 
8088
# -----------------------
 
8089
AC_DEFUN([_AM_MANGLE_OPTION],
 
8090
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
8091
 
 
8092
# _AM_SET_OPTION(NAME)
 
8093
# ------------------------------
 
8094
# Set option NAME.  Presently that only means defining a flag for this option.
 
8095
AC_DEFUN([_AM_SET_OPTION],
 
8096
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
8097
 
 
8098
# _AM_SET_OPTIONS(OPTIONS)
 
8099
# ----------------------------------
 
8100
# OPTIONS is a space-separated list of Automake options.
 
8101
AC_DEFUN([_AM_SET_OPTIONS],
 
8102
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
8103
 
 
8104
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
8105
# -------------------------------------------
 
8106
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
8107
AC_DEFUN([_AM_IF_OPTION],
 
8108
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
8109
 
 
8110
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
8111
 
 
8112
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
8113
# Free Software Foundation, Inc.
 
8114
#
 
8115
# This file is free software; the Free Software Foundation
 
8116
# gives unlimited permission to copy and/or distribute it,
 
8117
# with or without modifications, as long as this notice is preserved.
 
8118
 
 
8119
# serial 4
 
8120
 
 
8121
# AM_SANITY_CHECK
 
8122
# ---------------
 
8123
AC_DEFUN([AM_SANITY_CHECK],
 
8124
[AC_MSG_CHECKING([whether build environment is sane])
 
8125
# Just in case
 
8126
sleep 1
 
8127
echo timestamp > conftest.file
 
8128
# Do `set' in a subshell so we don't clobber the current shell's
 
8129
# arguments.  Must try -L first in case configure is actually a
 
8130
# symlink; some systems play weird games with the mod time of symlinks
 
8131
# (eg FreeBSD returns the mod time of the symlink's containing
 
8132
# directory).
 
8133
if (
 
8134
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
8135
   if test "$[*]" = "X"; then
 
8136
      # -L didn't work.
 
8137
      set X `ls -t $srcdir/configure conftest.file`
 
8138
   fi
 
8139
   rm -f conftest.file
 
8140
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
8141
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
8142
 
 
8143
      # If neither matched, then we have a broken ls.  This can happen
 
8144
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
8145
      # broken ls alias from the environment.  This has actually
 
8146
      # happened.  Such a system could not be considered "sane".
 
8147
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
8148
alias in your environment])
 
8149
   fi
 
8150
 
 
8151
   test "$[2]" = conftest.file
 
8152
   )
 
8153
then
 
8154
   # Ok.
 
8155
   :
 
8156
else
 
8157
   AC_MSG_ERROR([newly created file is older than distributed files!
 
8158
Check your system clock])
 
8159
fi
 
8160
AC_MSG_RESULT(yes)])
 
8161
 
 
8162
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
8163
#
 
8164
# This file is free software; the Free Software Foundation
 
8165
# gives unlimited permission to copy and/or distribute it,
 
8166
# with or without modifications, as long as this notice is preserved.
 
8167
 
 
8168
# AM_PROG_INSTALL_STRIP
 
8169
# ---------------------
 
8170
# One issue with vendor `install' (even GNU) is that you can't
 
8171
# specify the program used to strip binaries.  This is especially
 
8172
# annoying in cross-compiling environments, where the build's strip
 
8173
# is unlikely to handle the host's binaries.
 
8174
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
8175
# always use install-sh in `make install-strip', and initialize
 
8176
# STRIPPROG with the value of the STRIP variable (set by the user).
 
8177
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
8178
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
8179
# Installed binaries are usually stripped using `strip' when the user
 
8180
# run `make install-strip'.  However `strip' might not be the right
 
8181
# tool to use in cross-compilation environments, therefore Automake
 
8182
# will honor the `STRIP' environment variable to overrule this program.
 
8183
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
8184
if test "$cross_compiling" != no; then
 
8185
  AC_CHECK_TOOL([STRIP], [strip], :)
 
8186
fi
 
8187
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
8188
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
8189
 
 
8190
# Copyright (C) 2006  Free Software Foundation, Inc.
 
8191
#
 
8192
# This file is free software; the Free Software Foundation
 
8193
# gives unlimited permission to copy and/or distribute it,
 
8194
# with or without modifications, as long as this notice is preserved.
 
8195
 
 
8196
# _AM_SUBST_NOTMAKE(VARIABLE)
 
8197
# ---------------------------
 
8198
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
 
8199
# This macro is traced by Automake.
 
8200
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
8201
 
 
8202
# Check how to create a tarball.                            -*- Autoconf -*-
 
8203
 
 
8204
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
8205
#
 
8206
# This file is free software; the Free Software Foundation
 
8207
# gives unlimited permission to copy and/or distribute it,
 
8208
# with or without modifications, as long as this notice is preserved.
 
8209
 
 
8210
# serial 2
 
8211
 
 
8212
# _AM_PROG_TAR(FORMAT)
 
8213
# --------------------
 
8214
# Check how to create a tarball in format FORMAT.
 
8215
# FORMAT should be one of `v7', `ustar', or `pax'.
 
8216
#
 
8217
# Substitute a variable $(am__tar) that is a command
 
8218
# writing to stdout a FORMAT-tarball containing the directory
 
8219
# $tardir.
 
8220
#     tardir=directory && $(am__tar) > result.tar
 
8221
#
 
8222
# Substitute a variable $(am__untar) that extract such
 
8223
# a tarball read from stdin.
 
8224
#     $(am__untar) < result.tar
 
8225
AC_DEFUN([_AM_PROG_TAR],
 
8226
[# Always define AMTAR for backward compatibility.
 
8227
AM_MISSING_PROG([AMTAR], [tar])
 
8228
m4_if([$1], [v7],
 
8229
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
8230
     [m4_case([$1], [ustar],, [pax],,
 
8231
              [m4_fatal([Unknown tar format])])
 
8232
AC_MSG_CHECKING([how to create a $1 tar archive])
 
8233
# Loop over all known methods to create a tar archive until one works.
 
8234
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
8235
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
8236
# Do not fold the above two line into one, because Tru64 sh and
 
8237
# Solaris sh will not grok spaces in the rhs of `-'.
 
8238
for _am_tool in $_am_tools
 
8239
do
 
8240
  case $_am_tool in
 
8241
  gnutar)
 
8242
    for _am_tar in tar gnutar gtar;
 
8243
    do
 
8244
      AM_RUN_LOG([$_am_tar --version]) && break
 
8245
    done
 
8246
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
8247
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
8248
    am__untar="$_am_tar -xf -"
 
8249
    ;;
 
8250
  plaintar)
 
8251
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
8252
    # ustar tarball either.
 
8253
    (tar --version) >/dev/null 2>&1 && continue
 
8254
    am__tar='tar chf - "$$tardir"'
 
8255
    am__tar_='tar chf - "$tardir"'
 
8256
    am__untar='tar xf -'
 
8257
    ;;
 
8258
  pax)
 
8259
    am__tar='pax -L -x $1 -w "$$tardir"'
 
8260
    am__tar_='pax -L -x $1 -w "$tardir"'
 
8261
    am__untar='pax -r'
 
8262
    ;;
 
8263
  cpio)
 
8264
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
8265
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
8266
    am__untar='cpio -i -H $1 -d'
 
8267
    ;;
 
8268
  none)
 
8269
    am__tar=false
 
8270
    am__tar_=false
 
8271
    am__untar=false
 
8272
    ;;
 
8273
  esac
 
8274
 
 
8275
  # If the value was cached, stop now.  We just wanted to have am__tar
 
8276
  # and am__untar set.
 
8277
  test -n "${am_cv_prog_tar_$1}" && break
 
8278
 
 
8279
  # tar/untar a dummy directory, and stop if the command works
 
8280
  rm -rf conftest.dir
 
8281
  mkdir conftest.dir
 
8282
  echo GrepMe > conftest.dir/file
 
8283
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
8284
  rm -rf conftest.dir
 
8285
  if test -s conftest.tar; then
 
8286
    AM_RUN_LOG([$am__untar <conftest.tar])
 
8287
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
8288
  fi
 
8289
done
 
8290
rm -rf conftest.dir
 
8291
 
 
8292
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
8293
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
8294
AC_SUBST([am__tar])
 
8295
AC_SUBST([am__untar])
 
8296
]) # _AM_PROG_TAR
 
8297