~ubuntu-branches/ubuntu/breezy/libaal/breezy

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2004-02-28 16:53:28 UTC
  • Revision ID: james.westby@ubuntu.com-20040228165328-so8szfq83icw2b37
Tags: 0.5.0-1
* New upstream version.
* No shared libraries are provided at the moment.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# aclocal.m4 generated automatically by aclocal 1.5
 
1
# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
2
2
 
3
 
# Copyright 1996, 1997, 1998, 1999, 2000, 2001
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4
4
# Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
14
 
# Do all the work for Automake.  This macro actually does too much --
15
 
# some checks are only needed if your package does certain things.
16
 
# But this isn't really a big deal.
 
14
# Add --enable-maintainer-mode option to configure.
 
15
# From Jim Meyering
 
16
 
 
17
# Copyright 1996, 1998, 2000, 2001, 2002  Free Software Foundation, Inc.
 
18
 
 
19
# This program is free software; you can redistribute it and/or modify
 
20
# it under the terms of the GNU General Public License as published by
 
21
# the Free Software Foundation; either version 2, or (at your option)
 
22
# any later version.
 
23
 
 
24
# This program is distributed in the hope that it will be useful,
 
25
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
26
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
27
# GNU General Public License for more details.
 
28
 
 
29
# You should have received a copy of the GNU General Public License
 
30
# along with this program; if not, write to the Free Software
 
31
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
32
# 02111-1307, USA.
 
33
 
 
34
# serial 2
 
35
 
 
36
AC_DEFUN([AM_MAINTAINER_MODE],
 
37
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
38
  dnl maintainer-mode is disabled by default
 
39
  AC_ARG_ENABLE(maintainer-mode,
 
40
[  --enable-maintainer-mode enable make rules and dependencies not useful
 
41
                          (and sometimes confusing) to the casual installer],
 
42
      USE_MAINTAINER_MODE=$enableval,
 
43
      USE_MAINTAINER_MODE=no)
 
44
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
45
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
46
  MAINT=$MAINTAINER_MODE_TRUE
 
47
  AC_SUBST(MAINT)dnl
 
48
]
 
49
)
 
50
 
 
51
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
52
 
 
53
# AM_CONDITIONAL                                              -*- Autoconf -*-
 
54
 
 
55
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
 
56
 
 
57
# This program is free software; you can redistribute it and/or modify
 
58
# it under the terms of the GNU General Public License as published by
 
59
# the Free Software Foundation; either version 2, or (at your option)
 
60
# any later version.
 
61
 
 
62
# This program is distributed in the hope that it will be useful,
 
63
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
64
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
65
# GNU General Public License for more details.
 
66
 
 
67
# You should have received a copy of the GNU General Public License
 
68
# along with this program; if not, write to the Free Software
 
69
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
70
# 02111-1307, USA.
17
71
 
18
72
# serial 5
19
73
 
20
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
21
 
# written in clear, in which case automake, when reading aclocal.m4,
22
 
# will think it sees a *use*, and therefore will trigger all it's
23
 
# C support machinery.  Also note that it means that autoscan, seeing
24
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
25
 
 
26
 
 
27
 
# We require 2.13 because we rely on SHELL being computed by configure.
28
 
AC_PREREQ([2.13])
29
 
 
30
 
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
31
 
# -----------------------------------------------------------
32
 
# If MACRO-NAME is provided do IF-PROVIDED, else IF-NOT-PROVIDED.
33
 
# The purpose of this macro is to provide the user with a means to
34
 
# check macros which are provided without letting her know how the
35
 
# information is coded.
36
 
# If this macro is not defined by Autoconf, define it here.
37
 
ifdef([AC_PROVIDE_IFELSE],
38
 
      [],
39
 
      [define([AC_PROVIDE_IFELSE],
40
 
              [ifdef([AC_PROVIDE_$1],
41
 
                     [$2], [$3])])])
42
 
 
43
 
 
44
 
# AM_INIT_AUTOMAKE(PACKAGE,VERSION, [NO-DEFINE])
45
 
# ----------------------------------------------
 
74
AC_PREREQ(2.52)
 
75
 
 
76
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
77
# -------------------------------------
 
78
# Define a conditional.
 
79
AC_DEFUN([AM_CONDITIONAL],
 
80
[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
81
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
82
AC_SUBST([$1_TRUE])
 
83
AC_SUBST([$1_FALSE])
 
84
if $2; then
 
85
  $1_TRUE=
 
86
  $1_FALSE='#'
 
87
else
 
88
  $1_TRUE='#'
 
89
  $1_FALSE=
 
90
fi
 
91
AC_CONFIG_COMMANDS_PRE(
 
92
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
93
  AC_MSG_ERROR([conditional "$1" was never defined.
 
94
Usually this means the macro was only invoked conditionally.])
 
95
fi])])
 
96
 
 
97
# Do all the work for Automake.                            -*- Autoconf -*-
 
98
 
 
99
# This macro actually does too much some checks are only needed if
 
100
# your package does certain things.  But this isn't really a big deal.
 
101
 
 
102
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
 
103
# Free Software Foundation, Inc.
 
104
 
 
105
# This program is free software; you can redistribute it and/or modify
 
106
# it under the terms of the GNU General Public License as published by
 
107
# the Free Software Foundation; either version 2, or (at your option)
 
108
# any later version.
 
109
 
 
110
# This program is distributed in the hope that it will be useful,
 
111
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
112
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
113
# GNU General Public License for more details.
 
114
 
 
115
# You should have received a copy of the GNU General Public License
 
116
# along with this program; if not, write to the Free Software
 
117
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
118
# 02111-1307, USA.
 
119
 
 
120
# serial 10
 
121
 
 
122
AC_PREREQ([2.54])
 
123
 
 
124
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
 
125
# the ones we care about.
 
126
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
127
 
 
128
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
129
# AM_INIT_AUTOMAKE([OPTIONS])
 
130
# -----------------------------------------------
 
131
# The call with PACKAGE and VERSION arguments is the old style
 
132
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
133
# and VERSION should now be passed to AC_INIT and removed from
 
134
# the call to AM_INIT_AUTOMAKE.
 
135
# We support both call styles for the transition.  After
 
136
# the next Automake release, Autoconf can make the AC_INIT
 
137
# arguments mandatory, and then we can depend on a new Autoconf
 
138
# release and drop the old call support.
46
139
AC_DEFUN([AM_INIT_AUTOMAKE],
47
 
[AC_REQUIRE([AC_PROG_INSTALL])dnl
 
140
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
141
 AC_REQUIRE([AC_PROG_INSTALL])dnl
48
142
# test to see if srcdir already configured
49
 
if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
 
143
if test "`cd $srcdir && pwd`" != "`pwd`" &&
50
144
   test -f $srcdir/config.status; then
51
 
  AC_MSG_ERROR([source directory already configured; run \"make distclean\" there first])
52
 
fi
 
145
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
146
fi
 
147
 
 
148
# test whether we have cygpath
 
149
if test -z "$CYGPATH_W"; then
 
150
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
151
    CYGPATH_W='cygpath -w'
 
152
  else
 
153
    CYGPATH_W=echo
 
154
  fi
 
155
fi
 
156
AC_SUBST([CYGPATH_W])
53
157
 
54
158
# Define the identity of the package.
55
 
PACKAGE=$1
56
 
AC_SUBST(PACKAGE)dnl
57
 
VERSION=$2
58
 
AC_SUBST(VERSION)dnl
59
 
ifelse([$3],,
 
159
dnl Distinguish between old-style and new-style calls.
 
160
m4_ifval([$2],
 
161
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
162
 AC_SUBST([PACKAGE], [$1])dnl
 
163
 AC_SUBST([VERSION], [$2])],
 
164
[_AM_SET_OPTIONS([$1])dnl
 
165
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
166
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
167
 
 
168
_AM_IF_OPTION([no-define],,
60
169
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
61
 
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])
62
 
 
63
 
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
64
 
# the ones we care about.
65
 
ifdef([m4_pattern_allow],
66
 
      [m4_pattern_allow([^AM_[A-Z]+FLAGS])])dnl
67
 
 
68
 
# Autoconf 2.50 always computes EXEEXT.  However we need to be
69
 
# compatible with 2.13, for now.  So we always define EXEEXT, but we
70
 
# don't compute it.
71
 
AC_SUBST(EXEEXT)
72
 
# Similar for OBJEXT -- only we only use OBJEXT if the user actually
73
 
# requests that it be used.  This is a bit dumb.
74
 
: ${OBJEXT=o}
75
 
AC_SUBST(OBJEXT)
 
170
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
76
171
 
77
172
# Some tools Automake needs.
78
173
AC_REQUIRE([AM_SANITY_CHECK])dnl
79
174
AC_REQUIRE([AC_ARG_PROGRAM])dnl
80
 
AM_MISSING_PROG(ACLOCAL, aclocal)
 
175
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
81
176
AM_MISSING_PROG(AUTOCONF, autoconf)
82
 
AM_MISSING_PROG(AUTOMAKE, automake)
 
177
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
83
178
AM_MISSING_PROG(AUTOHEADER, autoheader)
84
179
AM_MISSING_PROG(MAKEINFO, makeinfo)
85
180
AM_MISSING_PROG(AMTAR, tar)
89
184
# some platforms.
90
185
AC_REQUIRE([AC_PROG_AWK])dnl
91
186
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
92
 
AC_REQUIRE([AM_DEP_TRACK])dnl
93
 
AC_REQUIRE([AM_SET_DEPDIR])dnl
94
 
AC_PROVIDE_IFELSE([AC_PROG_][CC],
 
187
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
188
 
 
189
_AM_IF_OPTION([no-dependencies],,
 
190
[AC_PROVIDE_IFELSE([AC_PROG_CC],
95
191
                  [_AM_DEPENDENCIES(CC)],
96
 
                  [define([AC_PROG_][CC],
97
 
                          defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
98
 
AC_PROVIDE_IFELSE([AC_PROG_][CXX],
 
192
                  [define([AC_PROG_CC],
 
193
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
194
AC_PROVIDE_IFELSE([AC_PROG_CXX],
99
195
                  [_AM_DEPENDENCIES(CXX)],
100
 
                  [define([AC_PROG_][CXX],
101
 
                          defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
102
 
])
 
196
                  [define([AC_PROG_CXX],
 
197
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
198
])
 
199
])
 
200
 
 
201
 
 
202
# When config.status generates a header, we must update the stamp-h file.
 
203
# This file resides in the same directory as the config header
 
204
# that is generated.  The stamp files are numbered to have different names.
 
205
 
 
206
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
207
# loop where config.status creates the headers, so we can generate
 
208
# our stamp files there.
 
209
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
210
[# Compute $1's index in $config_headers.
 
211
_am_stamp_count=1
 
212
for _am_header in $config_headers :; do
 
213
  case $_am_header in
 
214
    $1 | $1:* )
 
215
      break ;;
 
216
    * )
 
217
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
218
  esac
 
219
done
 
220
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
221
 
 
222
# Copyright 2002  Free Software Foundation, Inc.
 
223
 
 
224
# This program is free software; you can redistribute it and/or modify
 
225
# it under the terms of the GNU General Public License as published by
 
226
# the Free Software Foundation; either version 2, or (at your option)
 
227
# any later version.
 
228
 
 
229
# This program is distributed in the hope that it will be useful,
 
230
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
231
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
232
# GNU General Public License for more details.
 
233
 
 
234
# You should have received a copy of the GNU General Public License
 
235
# along with this program; if not, write to the Free Software
 
236
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
237
 
 
238
# AM_AUTOMAKE_VERSION(VERSION)
 
239
# ----------------------------
 
240
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
241
# generated from the m4 files accompanying Automake X.Y.
 
242
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
 
243
 
 
244
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
245
# -------------------------------
 
246
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
247
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
248
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
249
         [AM_AUTOMAKE_VERSION([1.7.9])])
 
250
 
 
251
# Helper functions for option handling.                    -*- Autoconf -*-
 
252
 
 
253
# Copyright 2001, 2002  Free Software Foundation, Inc.
 
254
 
 
255
# This program is free software; you can redistribute it and/or modify
 
256
# it under the terms of the GNU General Public License as published by
 
257
# the Free Software Foundation; either version 2, or (at your option)
 
258
# any later version.
 
259
 
 
260
# This program is distributed in the hope that it will be useful,
 
261
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
262
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
263
# GNU General Public License for more details.
 
264
 
 
265
# You should have received a copy of the GNU General Public License
 
266
# along with this program; if not, write to the Free Software
 
267
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
268
# 02111-1307, USA.
 
269
 
 
270
# serial 2
 
271
 
 
272
# _AM_MANGLE_OPTION(NAME)
 
273
# -----------------------
 
274
AC_DEFUN([_AM_MANGLE_OPTION],
 
275
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
276
 
 
277
# _AM_SET_OPTION(NAME)
 
278
# ------------------------------
 
279
# Set option NAME.  Presently that only means defining a flag for this option.
 
280
AC_DEFUN([_AM_SET_OPTION],
 
281
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
282
 
 
283
# _AM_SET_OPTIONS(OPTIONS)
 
284
# ----------------------------------
 
285
# OPTIONS is a space-separated list of Automake options.
 
286
AC_DEFUN([_AM_SET_OPTIONS],
 
287
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
288
 
 
289
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
290
# -------------------------------------------
 
291
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
292
AC_DEFUN([_AM_IF_OPTION],
 
293
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
103
294
 
104
295
#
105
296
# Check to make sure that the build environment is sane.
106
297
#
107
298
 
 
299
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
 
300
 
 
301
# This program is free software; you can redistribute it and/or modify
 
302
# it under the terms of the GNU General Public License as published by
 
303
# the Free Software Foundation; either version 2, or (at your option)
 
304
# any later version.
 
305
 
 
306
# This program is distributed in the hope that it will be useful,
 
307
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
308
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
309
# GNU General Public License for more details.
 
310
 
 
311
# You should have received a copy of the GNU General Public License
 
312
# along with this program; if not, write to the Free Software
 
313
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
314
# 02111-1307, USA.
 
315
 
108
316
# serial 3
109
317
 
110
318
# AM_SANITY_CHECK
148
356
fi
149
357
AC_MSG_RESULT(yes)])
150
358
 
151
 
 
152
 
# serial 2
 
359
#  -*- Autoconf -*-
 
360
 
 
361
 
 
362
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
 
363
 
 
364
# This program is free software; you can redistribute it and/or modify
 
365
# it under the terms of the GNU General Public License as published by
 
366
# the Free Software Foundation; either version 2, or (at your option)
 
367
# any later version.
 
368
 
 
369
# This program is distributed in the hope that it will be useful,
 
370
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
371
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
372
# GNU General Public License for more details.
 
373
 
 
374
# You should have received a copy of the GNU General Public License
 
375
# along with this program; if not, write to the Free Software
 
376
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
377
# 02111-1307, USA.
 
378
 
 
379
# serial 3
153
380
 
154
381
# AM_MISSING_PROG(NAME, PROGRAM)
155
382
# ------------------------------
171
398
  am_missing_run="$MISSING --run "
172
399
else
173
400
  am_missing_run=
174
 
  am_backtick='`'
175
 
  AC_MSG_WARN([${am_backtick}missing' script is too old or missing])
 
401
  AC_MSG_WARN([`missing' script is too old or missing])
176
402
fi
177
403
])
178
404
 
179
405
# AM_AUX_DIR_EXPAND
180
406
 
 
407
# Copyright 2001 Free Software Foundation, Inc.
 
408
 
 
409
# This program is free software; you can redistribute it and/or modify
 
410
# it under the terms of the GNU General Public License as published by
 
411
# the Free Software Foundation; either version 2, or (at your option)
 
412
# any later version.
 
413
 
 
414
# This program is distributed in the hope that it will be useful,
 
415
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
416
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
417
# GNU General Public License for more details.
 
418
 
 
419
# You should have received a copy of the GNU General Public License
 
420
# along with this program; if not, write to the Free Software
 
421
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
422
# 02111-1307, USA.
 
423
 
181
424
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
182
425
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
183
426
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
216
459
# absolute PATH.  The drawback is that using absolute paths prevent a
217
460
# configured tree to be moved without reconfiguration.
218
461
 
 
462
# Rely on autoconf to set up CDPATH properly.
 
463
AC_PREREQ([2.50])
 
464
 
219
465
AC_DEFUN([AM_AUX_DIR_EXPAND], [
220
466
# expand $ac_aux_dir to an absolute path
221
 
am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
 
467
am_aux_dir=`cd $ac_aux_dir && pwd`
222
468
])
223
469
 
224
470
# AM_PROG_INSTALL_SH
225
471
# ------------------
226
472
# Define $install_sh.
 
473
 
 
474
# Copyright 2001 Free Software Foundation, Inc.
 
475
 
 
476
# This program is free software; you can redistribute it and/or modify
 
477
# it under the terms of the GNU General Public License as published by
 
478
# the Free Software Foundation; either version 2, or (at your option)
 
479
# any later version.
 
480
 
 
481
# This program is distributed in the hope that it will be useful,
 
482
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
483
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
484
# GNU General Public License for more details.
 
485
 
 
486
# You should have received a copy of the GNU General Public License
 
487
# along with this program; if not, write to the Free Software
 
488
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
489
# 02111-1307, USA.
 
490
 
227
491
AC_DEFUN([AM_PROG_INSTALL_SH],
228
492
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
229
493
install_sh=${install_sh-"$am_aux_dir/install-sh"}
230
494
AC_SUBST(install_sh)])
231
495
 
 
496
# AM_PROG_INSTALL_STRIP
 
497
 
 
498
# Copyright 2001 Free Software Foundation, Inc.
 
499
 
 
500
# This program is free software; you can redistribute it and/or modify
 
501
# it under the terms of the GNU General Public License as published by
 
502
# the Free Software Foundation; either version 2, or (at your option)
 
503
# any later version.
 
504
 
 
505
# This program is distributed in the hope that it will be useful,
 
506
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
507
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
508
# GNU General Public License for more details.
 
509
 
 
510
# You should have received a copy of the GNU General Public License
 
511
# along with this program; if not, write to the Free Software
 
512
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
513
# 02111-1307, USA.
 
514
 
232
515
# One issue with vendor `install' (even GNU) is that you can't
233
516
# specify the program used to strip binaries.  This is especially
234
517
# annoying in cross-compiling environments, where the build's strip
238
521
# STRIPPROG with the value of the STRIP variable (set by the user).
239
522
AC_DEFUN([AM_PROG_INSTALL_STRIP],
240
523
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
524
# Installed binaries are usually stripped using `strip' when the user
 
525
# run `make install-strip'.  However `strip' might not be the right
 
526
# tool to use in cross-compilation environments, therefore Automake
 
527
# will honor the `STRIP' environment variable to overrule this program.
 
528
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
529
if test "$cross_compiling" != no; then
 
530
  AC_CHECK_TOOL([STRIP], [strip], :)
 
531
fi
241
532
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
242
533
AC_SUBST([INSTALL_STRIP_PROGRAM])])
243
534
 
244
 
# serial 4                                              -*- Autoconf -*-
245
 
 
 
535
#                                                          -*- Autoconf -*-
 
536
# Copyright (C) 2003  Free Software Foundation, Inc.
 
537
 
 
538
# This program is free software; you can redistribute it and/or modify
 
539
# it under the terms of the GNU General Public License as published by
 
540
# the Free Software Foundation; either version 2, or (at your option)
 
541
# any later version.
 
542
 
 
543
# This program is distributed in the hope that it will be useful,
 
544
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
545
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
546
# GNU General Public License for more details.
 
547
 
 
548
# You should have received a copy of the GNU General Public License
 
549
# along with this program; if not, write to the Free Software
 
550
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
551
# 02111-1307, USA.
 
552
 
 
553
# serial 1
 
554
 
 
555
# Check whether the underlying file-system supports filenames
 
556
# with a leading dot.  For instance MS-DOS doesn't.
 
557
AC_DEFUN([AM_SET_LEADING_DOT],
 
558
[rm -rf .tst 2>/dev/null
 
559
mkdir .tst 2>/dev/null
 
560
if test -d .tst; then
 
561
  am__leading_dot=.
 
562
else
 
563
  am__leading_dot=_
 
564
fi
 
565
rmdir .tst 2>/dev/null
 
566
AC_SUBST([am__leading_dot])])
 
567
 
 
568
# serial 5                                              -*- Autoconf -*-
 
569
 
 
570
# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
 
571
 
 
572
# This program is free software; you can redistribute it and/or modify
 
573
# it under the terms of the GNU General Public License as published by
 
574
# the Free Software Foundation; either version 2, or (at your option)
 
575
# any later version.
 
576
 
 
577
# This program is distributed in the hope that it will be useful,
 
578
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
579
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
580
# GNU General Public License for more details.
 
581
 
 
582
# You should have received a copy of the GNU General Public License
 
583
# along with this program; if not, write to the Free Software
 
584
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
585
# 02111-1307, USA.
246
586
 
247
587
 
248
588
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
254
594
 
255
595
 
256
596
# _AM_DEPENDENCIES(NAME)
257
 
# ---------------------
 
597
# ----------------------
258
598
# See how the compiler implements dependency checking.
259
 
# NAME is "CC", "CXX" or "OBJC".
 
599
# NAME is "CC", "CXX", "GCJ", or "OBJC".
260
600
# We try a few techniques and use that to set a single cache variable.
261
601
#
262
602
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
271
611
 
272
612
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
273
613
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
274
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc']
 
614
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
275
615
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
276
616
                   [depcc="$$1"   am_compiler_list=])
277
617
 
288
628
  # using a relative directory.
289
629
  cp "$am_depcomp" conftest.dir
290
630
  cd conftest.dir
 
631
  # We will build objects and dependencies in a subdirectory because
 
632
  # it helps to detect inapplicable dependency modes.  For instance
 
633
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
634
  # side effect of compilation, but ICC will put the dependencies in
 
635
  # the current directory while Tru64 will put them in the object
 
636
  # directory.
 
637
  mkdir sub
291
638
 
292
639
  am_cv_$1_dependencies_compiler_type=none
293
640
  if test "$am_compiler_list" = ""; then
294
641
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
295
642
  fi
296
643
  for depmode in $am_compiler_list; do
 
644
    # Setup a source with many dependencies, because some compilers
 
645
    # like to wrap large dependency lists on column 80 (with \), and
 
646
    # we should not choose a depcomp mode which is confused by this.
 
647
    #
297
648
    # We need to recreate these files for each test, as the compiler may
298
649
    # overwrite some of them when testing with obscure command lines.
299
650
    # This happens at least with the AIX C compiler.
300
 
    echo '#include "conftest.h"' > conftest.c
301
 
    echo 'int i;' > conftest.h
302
 
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
651
    : > sub/conftest.c
 
652
    for i in 1 2 3 4 5 6; do
 
653
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
654
      : > sub/conftst$i.h
 
655
    done
 
656
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
303
657
 
304
658
    case $depmode in
305
659
    nosideeffect)
317
671
    # mode.  It turns out that the SunPro C++ compiler does not properly
318
672
    # handle `-M -o', and we need to detect this.
319
673
    if depmode=$depmode \
320
 
       source=conftest.c object=conftest.o \
321
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
322
 
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
323
 
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
674
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
675
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
676
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
677
         >/dev/null 2>conftest.err &&
 
678
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
679
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
324
680
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
325
 
      am_cv_$1_dependencies_compiler_type=$depmode
326
 
      break
 
681
      # icc doesn't choke on unknown options, it will just issue warnings
 
682
      # (even with -Werror).  So we grep stderr for any message
 
683
      # that says an option was ignored.
 
684
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
685
        am_cv_$1_dependencies_compiler_type=$depmode
 
686
        break
 
687
      fi
327
688
    fi
328
689
  done
329
690
 
333
694
  am_cv_$1_dependencies_compiler_type=none
334
695
fi
335
696
])
336
 
$1DEPMODE="depmode=$am_cv_$1_dependencies_compiler_type"
337
 
AC_SUBST([$1DEPMODE])
 
697
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
698
AM_CONDITIONAL([am__fastdep$1], [
 
699
  test "x$enable_dependency_tracking" != xno \
 
700
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
338
701
])
339
702
 
340
703
 
343
706
# Choose a directory name for dependency files.
344
707
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
345
708
AC_DEFUN([AM_SET_DEPDIR],
346
 
[rm -f .deps 2>/dev/null
347
 
mkdir .deps 2>/dev/null
348
 
if test -d .deps; then
349
 
  DEPDIR=.deps
350
 
else
351
 
  # MS-DOS does not allow filenames that begin with a dot.
352
 
  DEPDIR=_deps
353
 
fi
354
 
rmdir .deps 2>/dev/null
355
 
AC_SUBST(DEPDIR)
 
709
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
710
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
356
711
])
357
712
 
358
713
 
367
722
  AMDEPBACKSLASH='\'
368
723
fi
369
724
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
370
 
pushdef([subst], defn([AC_SUBST]))
371
 
subst(AMDEPBACKSLASH)
372
 
popdef([subst])
 
725
AC_SUBST([AMDEPBACKSLASH])
373
726
])
374
727
 
375
 
# Generate code to set up dependency tracking.
376
 
# This macro should only be invoked once -- use via AC_REQUIRE.
377
 
# Usage:
378
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
379
 
 
380
 
#
381
 
# This code is only required when automatic dependency tracking
382
 
# is enabled.  FIXME.  This creates each `.P' file that we will
383
 
# need in order to bootstrap the dependency handling code.
384
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],[
385
 
AC_OUTPUT_COMMANDS([
386
 
test x"$AMDEP_TRUE" != x"" ||
387
 
for mf in $CONFIG_FILES; do
388
 
  case "$mf" in
389
 
  Makefile) dirpart=.;;
390
 
  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
391
 
  *) continue;;
392
 
  esac
393
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
728
# Generate code to set up dependency tracking.   -*- Autoconf -*-
 
729
 
 
730
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
 
731
 
 
732
# This program is free software; you can redistribute it and/or modify
 
733
# it under the terms of the GNU General Public License as published by
 
734
# the Free Software Foundation; either version 2, or (at your option)
 
735
# any later version.
 
736
 
 
737
# This program is distributed in the hope that it will be useful,
 
738
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
739
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
740
# GNU General Public License for more details.
 
741
 
 
742
# You should have received a copy of the GNU General Public License
 
743
# along with this program; if not, write to the Free Software
 
744
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
745
# 02111-1307, USA.
 
746
 
 
747
#serial 2
 
748
 
 
749
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
750
# ------------------------------
 
751
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
752
[for mf in $CONFIG_FILES; do
 
753
  # Strip MF so we end up with the name of the file.
 
754
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
755
  # Check whether this is an Automake generated Makefile or not.
 
756
  # We used to match only the files named `Makefile.in', but
 
757
  # some people rename them; so instead we look at the file content.
 
758
  # Grep'ing the first line is not enough: some people post-process
 
759
  # each Makefile.in and add a new line on top of each file to say so.
 
760
  # So let's grep whole file.
 
761
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
762
    dirpart=`AS_DIRNAME("$mf")`
 
763
  else
 
764
    continue
 
765
  fi
 
766
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
394
767
  # Extract the definition of DEP_FILES from the Makefile without
395
768
  # running `make'.
396
769
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
414
787
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
415
788
    # Make sure the directory exists.
416
789
    test -f "$dirpart/$file" && continue
417
 
    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
418
 
    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
 
790
    fdir=`AS_DIRNAME(["$file"])`
 
791
    AS_MKDIR_P([$dirpart/$fdir])
419
792
    # echo "creating $dirpart/$file"
420
793
    echo '# dummy' > "$dirpart/$file"
421
794
  done
422
795
done
423
 
], [AMDEP_TRUE="$AMDEP_TRUE"
424
 
ac_aux_dir="$ac_aux_dir"])])
 
796
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
797
 
 
798
 
 
799
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
800
# -----------------------------
 
801
# This macro should only be invoked once -- use via AC_REQUIRE.
 
802
#
 
803
# This code is only required when automatic dependency tracking
 
804
# is enabled.  FIXME.  This creates each `.P' file that we will
 
805
# need in order to bootstrap the dependency handling code.
 
806
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
807
[AC_CONFIG_COMMANDS([depfiles],
 
808
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
809
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
810
])
 
811
 
 
812
# Check to see how 'make' treats includes.      -*- Autoconf -*-
 
813
 
 
814
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
 
815
 
 
816
# This program is free software; you can redistribute it and/or modify
 
817
# it under the terms of the GNU General Public License as published by
 
818
# the Free Software Foundation; either version 2, or (at your option)
 
819
# any later version.
 
820
 
 
821
# This program is distributed in the hope that it will be useful,
 
822
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
823
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
824
# GNU General Public License for more details.
 
825
 
 
826
# You should have received a copy of the GNU General Public License
 
827
# along with this program; if not, write to the Free Software
 
828
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
829
# 02111-1307, USA.
 
830
 
 
831
# serial 2
425
832
 
426
833
# AM_MAKE_INCLUDE()
427
834
# -----------------
429
836
AC_DEFUN([AM_MAKE_INCLUDE],
430
837
[am_make=${MAKE-make}
431
838
cat > confinc << 'END'
432
 
doit:
 
839
am__doit:
433
840
        @echo done
 
841
.PHONY: am__doit
434
842
END
435
843
# If we don't find an include directive, just comment out the code.
436
844
AC_MSG_CHECKING([for style of include used by $am_make])
437
 
am__include='#'
 
845
am__include="#"
438
846
am__quote=
439
847
_am_result=none
440
848
# First try GNU make style include.
444
852
# In particular we don't look at `^make:' because GNU make might
445
853
# be invoked under some other name (usually "gmake"), in which
446
854
# case it prints its new name instead of `make'.
447
 
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
 
855
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
448
856
   am__include=include
449
857
   am__quote=
450
858
   _am_result=GNU
454
862
   echo '.include "confinc"' > confmf
455
863
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
456
864
      am__include=.include
457
 
      am__quote='"'
 
865
      am__quote="\""
458
866
      _am_result=BSD
459
867
   fi
460
868
fi
461
 
AC_SUBST(am__include)
462
 
AC_SUBST(am__quote)
463
 
AC_MSG_RESULT($_am_result)
 
869
AC_SUBST([am__include])
 
870
AC_SUBST([am__quote])
 
871
AC_MSG_RESULT([$_am_result])
464
872
rm -f confinc confmf
465
873
])
466
874
 
467
 
# serial 3
468
 
 
469
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
470
 
# -------------------------------------
471
 
# Define a conditional.
472
 
#
473
 
# FIXME: Once using 2.50, use this:
474
 
# m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnl
475
 
AC_DEFUN([AM_CONDITIONAL],
476
 
[ifelse([$1], [TRUE],
477
 
        [errprint(__file__:__line__: [$0: invalid condition: $1
478
 
])dnl
479
 
m4exit(1)])dnl
480
 
ifelse([$1], [FALSE],
481
 
       [errprint(__file__:__line__: [$0: invalid condition: $1
482
 
])dnl
483
 
m4exit(1)])dnl
484
 
AC_SUBST([$1_TRUE])
485
 
AC_SUBST([$1_FALSE])
486
 
if $2; then
487
 
  $1_TRUE=
488
 
  $1_FALSE='#'
489
 
else
490
 
  $1_TRUE='#'
491
 
  $1_FALSE=
492
 
fi])
493
 
 
494
 
# Like AC_CONFIG_HEADER, but automatically create stamp file.
495
 
 
496
 
# serial 3
497
 
 
498
 
# When config.status generates a header, we must update the stamp-h file.
499
 
# This file resides in the same directory as the config header
500
 
# that is generated.  We must strip everything past the first ":",
501
 
# and everything past the last "/".
502
 
 
503
 
AC_PREREQ([2.12])
504
 
 
505
 
AC_DEFUN([AM_CONFIG_HEADER],
506
 
[ifdef([AC_FOREACH],dnl
507
 
         [dnl init our file count if it isn't already
508
 
         m4_ifndef([_AM_Config_Header_Index], m4_define([_AM_Config_Header_Index], [0]))
509
 
         dnl prepare to store our destination file list for use in config.status
510
 
         AC_FOREACH([_AM_File], [$1],
511
 
                    [m4_pushdef([_AM_Dest], m4_patsubst(_AM_File, [:.*]))
512
 
                    m4_define([_AM_Config_Header_Index], m4_incr(_AM_Config_Header_Index))
513
 
                    dnl and add it to the list of files AC keeps track of, along
514
 
                    dnl with our hook
515
 
                    AC_CONFIG_HEADERS(_AM_File,
516
 
dnl COMMANDS, [, INIT-CMDS]
517
 
[# update the timestamp
518
 
echo timestamp >"AS_ESCAPE(_AM_DIRNAME(]_AM_Dest[))/stamp-h]_AM_Config_Header_Index["
519
 
][$2]m4_ifval([$3], [, [$3]]))dnl AC_CONFIG_HEADERS
520
 
                    m4_popdef([_AM_Dest])])],dnl
521
 
[AC_CONFIG_HEADER([$1])
522
 
  AC_OUTPUT_COMMANDS(
523
 
   ifelse(patsubst([$1], [[^ ]], []),
524
 
          [],
525
 
          [test -z "$CONFIG_HEADERS" || echo timestamp >dnl
526
 
           patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h]),dnl
527
 
[am_indx=1
528
 
for am_file in $1; do
529
 
  case " \$CONFIG_HEADERS " in
530
 
  *" \$am_file "*)
531
 
    am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\`
532
 
    if test -n "\$am_dir"; then
533
 
      am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\`
534
 
      for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do
535
 
        am_tmpdir=\$am_tmpdir\$am_subdir/
536
 
        if test ! -d \$am_tmpdir; then
537
 
          mkdir \$am_tmpdir
538
 
        fi
539
 
      done
540
 
    fi
541
 
    echo timestamp > "\$am_dir"stamp-h\$am_indx
542
 
    ;;
543
 
  esac
544
 
  am_indx=\`expr \$am_indx + 1\`
545
 
done])
546
 
])]) # AM_CONFIG_HEADER
547
 
 
548
 
# _AM_DIRNAME(PATH)
549
 
# -----------------
550
 
# Like AS_DIRNAME, only do it during macro expansion
551
 
AC_DEFUN([_AM_DIRNAME],
552
 
       [m4_if(m4_regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
553
 
              m4_if(m4_regexp([$1], [^//\([^/]\|$\)]), -1,
554
 
                    m4_if(m4_regexp([$1], [^/.*]), -1,
555
 
                          [.],
556
 
                          m4_patsubst([$1], [^\(/\).*], [\1])),
557
 
                    m4_patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
558
 
              m4_patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
559
 
]) # _AM_DIRNAME
560
 
 
561
 
# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
562
 
 
563
 
# serial 46 AC_PROG_LIBTOOL
564
 
 
 
875
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
 
876
 
 
877
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
 
878
 
 
879
# This program is free software; you can redistribute it and/or modify
 
880
# it under the terms of the GNU General Public License as published by
 
881
# the Free Software Foundation; either version 2, or (at your option)
 
882
# any later version.
 
883
 
 
884
# This program is distributed in the hope that it will be useful,
 
885
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
886
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
887
# GNU General Public License for more details.
 
888
 
 
889
# You should have received a copy of the GNU General Public License
 
890
# along with this program; if not, write to the Free Software
 
891
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
892
# 02111-1307, USA.
 
893
 
 
894
AC_PREREQ([2.52])
 
895
 
 
896
# serial 6
 
897
 
 
898
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
899
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
900
 
 
901
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 
902
 
 
903
# serial 47 AC_PROG_LIBTOOL
 
904
# Debian $Rev: 192 $
 
905
 
 
906
 
 
907
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
 
908
# -----------------------------------------------------------
 
909
# If this macro is not defined by Autoconf, define it here.
 
910
m4_ifdef([AC_PROVIDE_IFELSE],
 
911
         [],
 
912
         [m4_define([AC_PROVIDE_IFELSE],
 
913
                 [m4_ifdef([AC_PROVIDE_$1],
 
914
                           [$2], [$3])])])
 
915
 
 
916
 
 
917
# AC_PROG_LIBTOOL
 
918
# ---------------
565
919
AC_DEFUN([AC_PROG_LIBTOOL],
 
920
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
 
921
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
 
922
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
 
923
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
924
    [AC_LIBTOOL_CXX],
 
925
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
 
926
  ])])
 
927
dnl And a similar setup for Fortran 77 support
 
928
  AC_PROVIDE_IFELSE([AC_PROG_F77],
 
929
    [AC_LIBTOOL_F77],
 
930
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
 
931
])])
 
932
 
 
933
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
 
934
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
 
935
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
 
936
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
937
    [AC_LIBTOOL_GCJ],
 
938
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
939
      [AC_LIBTOOL_GCJ],
 
940
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
 
941
        [AC_LIBTOOL_GCJ],
 
942
      [ifdef([AC_PROG_GCJ],
 
943
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
944
       ifdef([A][M_PROG_GCJ],
 
945
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
946
       ifdef([LT_AC_PROG_GCJ],
 
947
             [define([LT_AC_PROG_GCJ],
 
948
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
 
949
])])# AC_PROG_LIBTOOL
 
950
 
 
951
 
 
952
# _AC_PROG_LIBTOOL
 
953
# ----------------
 
954
AC_DEFUN([_AC_PROG_LIBTOOL],
566
955
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
 
956
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
 
957
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
 
958
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
567
959
 
568
960
# This can be used to rebuild libtool when needed
569
961
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
574
966
 
575
967
# Prevent multiple expansion
576
968
define([AC_PROG_LIBTOOL], [])
577
 
])
578
 
 
 
969
])# _AC_PROG_LIBTOOL
 
970
 
 
971
 
 
972
# AC_LIBTOOL_SETUP
 
973
# ----------------
579
974
AC_DEFUN([AC_LIBTOOL_SETUP],
580
 
[AC_PREREQ(2.13)dnl
 
975
[AC_PREREQ(2.50)dnl
581
976
AC_REQUIRE([AC_ENABLE_SHARED])dnl
582
977
AC_REQUIRE([AC_ENABLE_STATIC])dnl
583
978
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
587
982
AC_REQUIRE([AC_PROG_LD])dnl
588
983
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
589
984
AC_REQUIRE([AC_PROG_NM])dnl
 
985
 
590
986
AC_REQUIRE([AC_PROG_LN_S])dnl
591
987
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
 
988
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
592
989
AC_REQUIRE([AC_OBJEXT])dnl
593
990
AC_REQUIRE([AC_EXEEXT])dnl
594
991
dnl
595
992
 
 
993
AC_LIBTOOL_SYS_MAX_CMD_LEN
 
994
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
995
AC_LIBTOOL_OBJDIR
 
996
 
 
997
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
596
998
_LT_AC_PROG_ECHO_BACKSLASH
 
999
 
 
1000
case $host_os in
 
1001
aix3*)
 
1002
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
1003
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
1004
  # vanish in a puff of smoke.
 
1005
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
1006
    COLLECT_NAMES=
 
1007
    export COLLECT_NAMES
 
1008
  fi
 
1009
  ;;
 
1010
esac
 
1011
 
 
1012
# Sed substitution that helps us do robust quoting.  It backslashifies
 
1013
# metacharacters that are still active within double-quoted strings.
 
1014
Xsed='sed -e s/^X//'
 
1015
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
1016
 
 
1017
# Same as above, but do not quote variable references.
 
1018
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
1019
 
 
1020
# Sed substitution to delay expansion of an escaped shell variable in a
 
1021
# double_quote_subst'ed string.
 
1022
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
1023
 
 
1024
# Sed substitution to avoid accidental globbing in evaled expressions
 
1025
no_glob_subst='s/\*/\\\*/g'
 
1026
 
 
1027
# Constants:
 
1028
rm="rm -f"
 
1029
 
 
1030
# Global variables:
 
1031
default_ofile=libtool
 
1032
can_build_shared=yes
 
1033
 
 
1034
# All known linkers require a `.a' archive for static linking (except M$VC,
 
1035
# which needs '.lib').
 
1036
libext=a
 
1037
ltmain="$ac_aux_dir/ltmain.sh"
 
1038
ofile="$default_ofile"
 
1039
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
1040
 
 
1041
AC_CHECK_TOOL(AR, ar, false)
 
1042
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
1043
AC_CHECK_TOOL(STRIP, strip, :)
 
1044
 
 
1045
old_CC="$CC"
 
1046
old_CFLAGS="$CFLAGS"
 
1047
 
 
1048
# Set sane defaults for various variables
 
1049
test -z "$AR" && AR=ar
 
1050
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
1051
test -z "$AS" && AS=as
 
1052
test -z "$CC" && CC=cc
 
1053
test -z "$LTCC" && LTCC=$CC
 
1054
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
1055
test -z "$LD" && LD=ld
 
1056
test -z "$LN_S" && LN_S="ln -s"
 
1057
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
1058
test -z "$NM" && NM=nm
 
1059
test -z "$SED" && SED=sed
 
1060
test -z "$OBJDUMP" && OBJDUMP=objdump
 
1061
test -z "$RANLIB" && RANLIB=:
 
1062
test -z "$STRIP" && STRIP=:
 
1063
test -z "$ac_objext" && ac_objext=o
 
1064
 
 
1065
# Determine commands to create old-style static archives.
 
1066
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
1067
old_postinstall_cmds='chmod 644 $oldlib'
 
1068
old_postuninstall_cmds=
 
1069
 
 
1070
if test -n "$RANLIB"; then
 
1071
  case $host_os in
 
1072
  openbsd*)
 
1073
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
1074
    ;;
 
1075
  *)
 
1076
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
1077
    ;;
 
1078
  esac
 
1079
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
1080
fi
 
1081
 
597
1082
# Only perform the check for file, if the check method requires it
598
1083
case $deplibs_check_method in
599
1084
file_magic*)
603
1088
  ;;
604
1089
esac
605
1090
 
606
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
607
 
AC_CHECK_TOOL(STRIP, strip, :)
608
 
 
609
 
ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
610
 
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
 
1091
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
 
1092
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
611
1093
enable_win32_dll=yes, enable_win32_dll=no)
612
1094
 
613
 
AC_ARG_ENABLE(libtool-lock,
614
 
  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
 
1095
AC_ARG_ENABLE([libtool-lock],
 
1096
    [AC_HELP_STRING([--disable-libtool-lock],
 
1097
        [avoid locking (might break parallel builds)])])
615
1098
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
616
1099
 
617
 
# Some flags need to be propagated to the compiler or linker for good
618
 
# libtool support.
619
 
case $host in
620
 
*-*-irix6*)
621
 
  # Find out which ABI we are using.
622
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
623
 
  if AC_TRY_EVAL(ac_compile); then
624
 
    case `/usr/bin/file conftest.$ac_objext` in
625
 
    *32-bit*)
626
 
      LD="${LD-ld} -32"
627
 
      ;;
628
 
    *N32*)
629
 
      LD="${LD-ld} -n32"
630
 
      ;;
631
 
    *64-bit*)
632
 
      LD="${LD-ld} -64"
633
 
      ;;
634
 
    esac
635
 
  fi
636
 
  rm -rf conftest*
637
 
  ;;
638
 
 
639
 
*-*-sco3.2v5*)
640
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
641
 
  SAVE_CFLAGS="$CFLAGS"
642
 
  CFLAGS="$CFLAGS -belf"
643
 
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
644
 
    [AC_LANG_SAVE
645
 
     AC_LANG_C
646
 
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
647
 
     AC_LANG_RESTORE])
648
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
649
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
650
 
    CFLAGS="$SAVE_CFLAGS"
651
 
  fi
652
 
  ;;
653
 
 
654
 
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
655
 
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
656
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
657
 
  AC_CHECK_TOOL(AS, as, false)
658
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
659
 
 
660
 
  # recent cygwin and mingw systems supply a stub DllMain which the user
661
 
  # can override, but on older systems we have to supply one
662
 
  AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
663
 
    [AC_TRY_LINK([],
664
 
      [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
665
 
      DllMain (0, 0, 0);],
666
 
      [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
667
 
 
668
 
  case $host/$CC in
669
 
  *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
670
 
    # old mingw systems require "-dll" to link a DLL, while more recent ones
671
 
    # require "-mdll"
672
 
    SAVE_CFLAGS="$CFLAGS"
673
 
    CFLAGS="$CFLAGS -mdll"
674
 
    AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
675
 
      [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
676
 
    CFLAGS="$SAVE_CFLAGS" ;;
677
 
  *-*-cygwin* | *-*-pw32*)
678
 
    # cygwin systems need to pass --dll to the linker, and not link
679
 
    # crt.o which will require a WinMain@16 definition.
680
 
    lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
681
 
  esac
682
 
  ;;
683
 
  ])
684
 
esac
685
 
 
686
 
_LT_AC_LTCONFIG_HACK
687
 
 
688
 
])
689
 
 
690
 
# AC_LIBTOOL_HEADER_ASSERT
691
 
# ------------------------
692
 
AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
693
 
[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
694
 
    [lt_cv_func_assert_works],
695
 
    [case $host in
696
 
    *-*-solaris*)
697
 
      if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
698
 
        case `$CC --version 2>/dev/null` in
699
 
        [[12]].*) lt_cv_func_assert_works=no ;;
700
 
        *)        lt_cv_func_assert_works=yes ;;
701
 
        esac
702
 
      fi
703
 
      ;;
704
 
    esac])
705
 
 
706
 
if test "x$lt_cv_func_assert_works" = xyes; then
707
 
  AC_CHECK_HEADERS(assert.h)
708
 
fi
709
 
])# AC_LIBTOOL_HEADER_ASSERT
710
 
 
711
 
# _LT_AC_CHECK_DLFCN
712
 
# --------------------
713
 
AC_DEFUN([_LT_AC_CHECK_DLFCN],
714
 
[AC_CHECK_HEADERS(dlfcn.h)
715
 
])# _LT_AC_CHECK_DLFCN
716
 
 
717
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
718
 
# ---------------------------------
719
 
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
720
 
[AC_REQUIRE([AC_CANONICAL_HOST])
721
 
AC_REQUIRE([AC_PROG_NM])
722
 
AC_REQUIRE([AC_OBJEXT])
723
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
724
 
AC_MSG_CHECKING([command to parse $NM output])
725
 
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
726
 
 
727
 
# These are sane defaults that work on at least a few old systems.
728
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
729
 
 
730
 
# Character class describing NM global symbol codes.
731
 
symcode='[[BCDEGRST]]'
732
 
 
733
 
# Regexp to match symbols that can be accessed directly from C.
734
 
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
735
 
 
736
 
# Transform the above into a raw symbol and a C symbol.
737
 
symxfrm='\1 \2\3 \3'
738
 
 
739
 
# Transform an extracted symbol line into a proper C declaration
740
 
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
741
 
 
742
 
# Transform an extracted symbol line into symbol name and symbol address
743
 
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
744
 
 
745
 
# Define system-specific variables.
746
 
case $host_os in
747
 
aix*)
748
 
  symcode='[[BCDT]]'
749
 
  ;;
750
 
cygwin* | mingw* | pw32*)
751
 
  symcode='[[ABCDGISTW]]'
752
 
  ;;
753
 
hpux*) # Its linker distinguishes data from code symbols
754
 
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
755
 
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
756
 
  ;;
757
 
irix*)
758
 
  symcode='[[BCDEGRST]]'
759
 
  ;;
760
 
solaris* | sysv5*)
761
 
  symcode='[[BDT]]'
762
 
  ;;
763
 
sysv4)
764
 
  symcode='[[DFNSTU]]'
765
 
  ;;
766
 
esac
767
 
 
768
 
# Handle CRLF in mingw tool chain
769
 
opt_cr=
770
 
case $host_os in
771
 
mingw*)
772
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
773
 
  ;;
774
 
esac
775
 
 
776
 
# If we're using GNU nm, then use its standard symbol codes.
777
 
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
778
 
  symcode='[[ABCDGISTW]]'
779
 
fi
780
 
 
781
 
# Try without a prefix undercore, then with it.
782
 
for ac_symprfx in "" "_"; do
783
 
 
784
 
  # Write the raw and C identifiers.
785
 
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[        ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
786
 
 
787
 
  # Check to see that the pipe works correctly.
788
 
  pipe_works=no
789
 
  rm -f conftest*
790
 
  cat > conftest.$ac_ext <<EOF
791
 
#ifdef __cplusplus
792
 
extern "C" {
793
 
#endif
794
 
char nm_test_var;
795
 
void nm_test_func(){}
796
 
#ifdef __cplusplus
797
 
}
798
 
#endif
799
 
int main(){nm_test_var='a';nm_test_func();return(0);}
800
 
EOF
801
 
 
802
 
  if AC_TRY_EVAL(ac_compile); then
803
 
    # Now try to grab the symbols.
804
 
    nlist=conftest.nm
805
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
806
 
      # Try sorting and uniquifying the output.
807
 
      if sort "$nlist" | uniq > "$nlist"T; then
808
 
        mv -f "$nlist"T "$nlist"
809
 
      else
810
 
        rm -f "$nlist"T
811
 
      fi
812
 
 
813
 
      # Make sure that we snagged all the symbols we need.
814
 
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
815
 
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
816
 
          cat <<EOF > conftest.$ac_ext
817
 
#ifdef __cplusplus
818
 
extern "C" {
819
 
#endif
820
 
 
821
 
EOF
822
 
          # Now generate the symbol file.
823
 
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
824
 
 
825
 
          cat <<EOF >> conftest.$ac_ext
826
 
#if defined (__STDC__) && __STDC__
827
 
# define lt_ptr void *
828
 
#else
829
 
# define lt_ptr char *
830
 
# define const
831
 
#endif
832
 
 
833
 
/* The mapping between symbol names and symbols. */
834
 
const struct {
835
 
  const char *name;
836
 
  lt_ptr address;
837
 
}
838
 
lt_preloaded_symbols[[]] =
839
 
{
840
 
EOF
841
 
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
842
 
          cat <<\EOF >> conftest.$ac_ext
843
 
  {0, (lt_ptr) 0}
844
 
};
845
 
 
846
 
#ifdef __cplusplus
847
 
}
848
 
#endif
849
 
EOF
850
 
          # Now try linking the two files.
851
 
          mv conftest.$ac_objext conftstm.$ac_objext
852
 
          save_LIBS="$LIBS"
853
 
          save_CFLAGS="$CFLAGS"
854
 
          LIBS="conftstm.$ac_objext"
855
 
          CFLAGS="$CFLAGS$no_builtin_flag"
856
 
          if AC_TRY_EVAL(ac_link) && test -s conftest; then
857
 
            pipe_works=yes
858
 
          fi
859
 
          LIBS="$save_LIBS"
860
 
          CFLAGS="$save_CFLAGS"
861
 
        else
862
 
          echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
863
 
        fi
864
 
      else
865
 
        echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
866
 
      fi
867
 
    else
868
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
869
 
    fi
870
 
  else
871
 
    echo "$progname: failed program was:" >&AC_FD_CC
872
 
    cat conftest.$ac_ext >&5
873
 
  fi
874
 
  rm -f conftest* conftst*
875
 
 
876
 
  # Do not use the global_symbol_pipe unless it works.
877
 
  if test "$pipe_works" = yes; then
878
 
    break
879
 
  else
880
 
    lt_cv_sys_global_symbol_pipe=
881
 
  fi
882
 
done
883
 
])
884
 
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
885
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
886
 
  global_symbol_to_cdecl=
887
 
  global_symbol_to_c_name_address=
888
 
else
889
 
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
890
 
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
891
 
fi
892
 
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
893
 
then
894
 
  AC_MSG_RESULT(failed)
895
 
else
896
 
  AC_MSG_RESULT(ok)
897
 
fi
898
 
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
899
 
 
900
 
# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
901
 
# ---------------------------------
902
 
AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
903
 
[# Find the correct PATH separator.  Usually this is `:', but
904
 
# DJGPP uses `;' like DOS.
905
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
906
 
  UNAME=${UNAME-`uname 2>/dev/null`}
907
 
  case X$UNAME in
908
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
909
 
    *)     lt_cv_sys_path_separator=':' ;;
910
 
  esac
911
 
  PATH_SEPARATOR=$lt_cv_sys_path_separator
912
 
fi
913
 
])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
 
1100
AC_ARG_WITH([pic],
 
1101
    [AC_HELP_STRING([--with-pic],
 
1102
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
1103
    [pic_mode="$withval"],
 
1104
    [pic_mode=default])
 
1105
test -z "$pic_mode" && pic_mode=default
 
1106
 
 
1107
# Use C for the default configuration in the libtool script
 
1108
tagname=
 
1109
AC_LIBTOOL_LANG_C_CONFIG
 
1110
_LT_AC_TAGCONFIG
 
1111
])# AC_LIBTOOL_SETUP
 
1112
 
 
1113
 
 
1114
# _LT_AC_SYS_COMPILER
 
1115
# -------------------
 
1116
AC_DEFUN([_LT_AC_SYS_COMPILER],
 
1117
[AC_REQUIRE([AC_PROG_CC])dnl
 
1118
 
 
1119
# If no C compiler was specified, use CC.
 
1120
LTCC=${LTCC-"$CC"}
 
1121
 
 
1122
# Allow CC to be a program name with arguments.
 
1123
compiler=$CC
 
1124
])# _LT_AC_SYS_COMPILER
 
1125
 
 
1126
 
 
1127
# _LT_AC_SYS_LIBPATH_AIX
 
1128
# ----------------------
 
1129
# Links a minimal program and checks the executable
 
1130
# for the system default hardcoded library path. In most cases,
 
1131
# this is /usr/lib:/lib, but when the MPI compilers are used
 
1132
# the location of the communication and MPI libs are included too.
 
1133
# If we don't find anything, use the default library path according
 
1134
# to the aix ld manual.
 
1135
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
 
1136
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
1137
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
1138
}'`
 
1139
# Check for a 64-bit object if we didn't find anything.
 
1140
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
1141
}'`; fi],[])
 
1142
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
1143
])# _LT_AC_SYS_LIBPATH_AIX
 
1144
 
 
1145
 
 
1146
# _LT_AC_SHELL_INIT(ARG)
 
1147
# ----------------------
 
1148
AC_DEFUN([_LT_AC_SHELL_INIT],
 
1149
[ifdef([AC_DIVERSION_NOTICE],
 
1150
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
 
1151
         [AC_DIVERT_PUSH(NOTICE)])
 
1152
$1
 
1153
AC_DIVERT_POP
 
1154
])# _LT_AC_SHELL_INIT
 
1155
 
914
1156
 
915
1157
# _LT_AC_PROG_ECHO_BACKSLASH
916
1158
# --------------------------
917
1159
# Add some code to the start of the generated configure script which
918
1160
# will find an echo command which doesn't interpret backslashes.
919
1161
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
920
 
[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
921
 
                              [AC_DIVERT_PUSH(NOTICE)])
922
 
_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
923
 
 
 
1162
[_LT_AC_SHELL_INIT([
924
1163
# Check that we are running under the correct shell.
925
1164
SHELL=${CONFIG_SHELL-/bin/sh}
926
1165
 
938
1177
elif test "X[$]1" = X--fallback-echo; then
939
1178
  # Avoid inline document here, it may be left over
940
1179
  :
941
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
1180
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
942
1181
  # Yippee, $echo works!
943
1182
  :
944
1183
else
950
1189
  # used as fallback echo
951
1190
  shift
952
1191
  cat <<EOF
953
 
$*
 
1192
[$]*
954
1193
EOF
955
1194
  exit 0
956
1195
fi
984
1223
  #
985
1224
  # So, first we look for a working echo in the user's PATH.
986
1225
 
987
 
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
1226
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
988
1227
  for dir in $PATH /usr/ucb; do
 
1228
    IFS="$lt_save_ifs"
989
1229
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
990
1230
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
991
1231
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
994
1234
      break
995
1235
    fi
996
1236
  done
997
 
  IFS="$save_ifs"
 
1237
  IFS="$lt_save_ifs"
998
1238
 
999
1239
  if test "X$echo" = Xecho; then
1000
1240
    # We didn't find a better echo, so look for alternatives.
1067
1307
fi
1068
1308
 
1069
1309
AC_SUBST(ECHO)
1070
 
AC_DIVERT_POP
1071
 
])# _LT_AC_PROG_ECHO_BACKSLASH
 
1310
])])# _LT_AC_PROG_ECHO_BACKSLASH
 
1311
 
 
1312
 
 
1313
# _LT_AC_LOCK
 
1314
# -----------
 
1315
AC_DEFUN([_LT_AC_LOCK],
 
1316
[AC_ARG_ENABLE([libtool-lock],
 
1317
    [AC_HELP_STRING([--disable-libtool-lock],
 
1318
        [avoid locking (might break parallel builds)])])
 
1319
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
1320
 
 
1321
# Some flags need to be propagated to the compiler or linker for good
 
1322
# libtool support.
 
1323
case $host in
 
1324
ia64-*-hpux*)
 
1325
  # Find out which ABI we are using.
 
1326
  echo 'int i;' > conftest.$ac_ext
 
1327
  if AC_TRY_EVAL(ac_compile); then
 
1328
    case `/usr/bin/file conftest.$ac_objext` in
 
1329
    *ELF-32*)
 
1330
      HPUX_IA64_MODE="32"
 
1331
      ;;
 
1332
    *ELF-64*)
 
1333
      HPUX_IA64_MODE="64"
 
1334
      ;;
 
1335
    esac
 
1336
  fi
 
1337
  rm -rf conftest*
 
1338
  ;;
 
1339
*-*-irix6*)
 
1340
  # Find out which ABI we are using.
 
1341
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
1342
  if AC_TRY_EVAL(ac_compile); then
 
1343
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
1344
    case `/usr/bin/file conftest.$ac_objext` in
 
1345
    *32-bit*)
 
1346
      LD="${LD-ld} -melf32bsmip"
 
1347
      ;;
 
1348
    *N32*)
 
1349
      LD="${LD-ld} -melf32bmipn32"
 
1350
      ;;
 
1351
    *64-bit*)
 
1352
      LD="${LD-ld} -melf64bmip"
 
1353
      ;;
 
1354
    esac
 
1355
   else
 
1356
    case `/usr/bin/file conftest.$ac_objext` in
 
1357
    *32-bit*)
 
1358
      LD="${LD-ld} -32"
 
1359
      ;;
 
1360
    *N32*)
 
1361
      LD="${LD-ld} -n32"
 
1362
      ;;
 
1363
    *64-bit*)
 
1364
      LD="${LD-ld} -64"
 
1365
      ;;
 
1366
    esac
 
1367
   fi
 
1368
  fi
 
1369
  rm -rf conftest*
 
1370
  ;;
 
1371
 
 
1372
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
1373
  # Find out which ABI we are using.
 
1374
  echo 'int i;' > conftest.$ac_ext
 
1375
  if AC_TRY_EVAL(ac_compile); then
 
1376
    case "`/usr/bin/file conftest.o`" in
 
1377
    *32-bit*)
 
1378
      case $host in
 
1379
        x86_64-*linux*)
 
1380
          LD="${LD-ld} -m elf_i386"
 
1381
          ;;
 
1382
        ppc64-*linux*|powerpc64-*linux*)
 
1383
          LD="${LD-ld} -m elf32ppclinux"
 
1384
          ;;
 
1385
        s390x-*linux*)
 
1386
          LD="${LD-ld} -m elf_s390"
 
1387
          ;;
 
1388
        sparc64-*linux*)
 
1389
          LD="${LD-ld} -m elf32_sparc"
 
1390
          ;;
 
1391
      esac
 
1392
      ;;
 
1393
    *64-bit*)
 
1394
      case $host in
 
1395
        x86_64-*linux*)
 
1396
          LD="${LD-ld} -m elf_x86_64"
 
1397
          ;;
 
1398
        ppc*-*linux*|powerpc*-*linux*)
 
1399
          LD="${LD-ld} -m elf64ppc"
 
1400
          ;;
 
1401
        s390*-*linux*)
 
1402
          LD="${LD-ld} -m elf64_s390"
 
1403
          ;;
 
1404
        sparc*-*linux*)
 
1405
          LD="${LD-ld} -m elf64_sparc"
 
1406
          ;;
 
1407
      esac
 
1408
      ;;
 
1409
    esac
 
1410
  fi
 
1411
  rm -rf conftest*
 
1412
  ;;
 
1413
 
 
1414
*-*-sco3.2v5*)
 
1415
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
1416
  SAVE_CFLAGS="$CFLAGS"
 
1417
  CFLAGS="$CFLAGS -belf"
 
1418
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
 
1419
    [AC_LANG_PUSH(C)
 
1420
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
1421
     AC_LANG_POP])
 
1422
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
1423
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
1424
    CFLAGS="$SAVE_CFLAGS"
 
1425
  fi
 
1426
  ;;
 
1427
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 
1428
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
1429
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
1430
  AC_CHECK_TOOL(AS, as, false)
 
1431
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
1432
  ;;
 
1433
  ])
 
1434
esac
 
1435
 
 
1436
need_locks="$enable_libtool_lock"
 
1437
 
 
1438
])# _LT_AC_LOCK
 
1439
 
 
1440
 
 
1441
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1442
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 
1443
# ----------------------------------------------------------------
 
1444
# Check whether the given compiler option works
 
1445
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
 
1446
[AC_REQUIRE([LT_AC_PROG_SED])
 
1447
AC_CACHE_CHECK([$1], [$2],
 
1448
  [$2=no
 
1449
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
1450
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1451
   lt_compiler_flag="$3"
 
1452
   # Insert the option either (1) after the last *FLAGS variable, or
 
1453
   # (2) before a word containing "conftest.", or (3) at the end.
 
1454
   # Note that $ac_compile itself does not contain backslashes and begins
 
1455
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
1456
   # The option is referenced via a variable to avoid confusing sed.
 
1457
   lt_compile=`echo "$ac_compile" | $SED \
 
1458
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
1459
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 
1460
   -e 's:$: $lt_compiler_flag:'`
 
1461
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
1462
   (eval "$lt_compile" 2>conftest.err)
 
1463
   ac_status=$?
 
1464
   cat conftest.err >&AS_MESSAGE_LOG_FD
 
1465
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1466
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
1467
     # The compiler can only warn and ignore the option if not recognized
 
1468
     # So say no if there are warnings
 
1469
     if test ! -s conftest.err; then
 
1470
       $2=yes
 
1471
     fi
 
1472
   fi
 
1473
   $rm conftest*
 
1474
])
 
1475
 
 
1476
if test x"[$]$2" = xyes; then
 
1477
    ifelse([$5], , :, [$5])
 
1478
else
 
1479
    ifelse([$6], , :, [$6])
 
1480
fi
 
1481
])# AC_LIBTOOL_COMPILER_OPTION
 
1482
 
 
1483
 
 
1484
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1485
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
 
1486
# ------------------------------------------------------------
 
1487
# Check whether the given compiler option works
 
1488
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
 
1489
[AC_CACHE_CHECK([$1], [$2],
 
1490
  [$2=no
 
1491
   save_LDFLAGS="$LDFLAGS"
 
1492
   LDFLAGS="$LDFLAGS $3"
 
1493
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
1494
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
1495
     # The compiler can only warn and ignore the option if not recognized
 
1496
     # So say no if there are warnings
 
1497
     if test -s conftest.err; then
 
1498
       # Append any errors to the config.log.
 
1499
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
1500
     else
 
1501
       $2=yes
 
1502
     fi
 
1503
   fi
 
1504
   $rm conftest*
 
1505
   LDFLAGS="$save_LDFLAGS"
 
1506
])
 
1507
 
 
1508
if test x"[$]$2" = xyes; then
 
1509
    ifelse([$4], , :, [$4])
 
1510
else
 
1511
    ifelse([$5], , :, [$5])
 
1512
fi
 
1513
])# AC_LIBTOOL_LINKER_OPTION
 
1514
 
 
1515
 
 
1516
# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1517
# --------------------------
 
1518
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
 
1519
[# find the maximum length of command line arguments
 
1520
AC_MSG_CHECKING([the maximum length of command line arguments])
 
1521
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 
1522
  i=0
 
1523
  testring="ABCD"
 
1524
 
 
1525
  case $build_os in
 
1526
  msdosdjgpp*)
 
1527
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
1528
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
1529
    # during glob expansion).  Even if it were fixed, the result of this
 
1530
    # check would be larger than it should be.
 
1531
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
1532
    ;;
 
1533
 
 
1534
  gnu*)
 
1535
    # Under GNU Hurd, this test is not required because there is
 
1536
    # no limit to the length of command line arguments.
 
1537
    # Libtool will interpret -1 as no limit whatsoever
 
1538
    lt_cv_sys_max_cmd_len=-1;
 
1539
    ;;
 
1540
 
 
1541
  cygwin* | mingw*)
 
1542
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
1543
    # about 5 minutes as the teststring grows exponentially.
 
1544
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
1545
    # you end up with a "frozen" computer, even though with patience
 
1546
    # the test eventually succeeds (with a max line length of 256k).
 
1547
    # Instead, let's just punt: use the minimum linelength reported by
 
1548
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
1549
    lt_cv_sys_max_cmd_len=8192;
 
1550
    ;;
 
1551
 
 
1552
  amigaos*)
 
1553
    # On AmigaOS with pdksh, this test takes hours, literally.
 
1554
    # So we just punt and use a minimum line length of 8192.
 
1555
    lt_cv_sys_max_cmd_len=8192;
 
1556
    ;;
 
1557
 
 
1558
 *)
 
1559
    # If test is not a shell built-in, we'll probably end up computing a
 
1560
    # maximum length that is only half of the actual maximum length, but
 
1561
    # we can't tell.
 
1562
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
 
1563
               = "XX$testring") >/dev/null 2>&1 &&
 
1564
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
1565
            lt_cv_sys_max_cmd_len=$new_result &&
 
1566
            test $i != 17 # 1/2 MB should be enough
 
1567
    do
 
1568
      i=`expr $i + 1`
 
1569
      testring=$testring$testring
 
1570
    done
 
1571
    testring=
 
1572
    # Add a significant safety factor because C++ compilers can tack on massive
 
1573
    # amounts of additional arguments before passing them to the linker.
 
1574
    # It appears as though 1/2 is a usable value.
 
1575
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
1576
    ;;
 
1577
  esac
 
1578
])
 
1579
if test -n $lt_cv_sys_max_cmd_len ; then
 
1580
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
 
1581
else
 
1582
  AC_MSG_RESULT(none)
 
1583
fi
 
1584
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1585
 
 
1586
 
 
1587
# _LT_AC_CHECK_DLFCN
 
1588
# --------------------
 
1589
AC_DEFUN([_LT_AC_CHECK_DLFCN],
 
1590
[AC_CHECK_HEADERS(dlfcn.h)dnl
 
1591
])# _LT_AC_CHECK_DLFCN
 
1592
 
1072
1593
 
1073
1594
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1074
1595
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1075
1596
# ------------------------------------------------------------------
1076
1597
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1077
 
[if test "$cross_compiling" = yes; then :
 
1598
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
1599
if test "$cross_compiling" = yes; then :
1078
1600
  [$4]
1079
1601
else
1080
 
  AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1081
1602
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1082
1603
  lt_status=$lt_dlunknown
1083
1604
  cat > conftest.$ac_ext <<EOF
1158
1679
rm -fr conftest*
1159
1680
])# _LT_AC_TRY_DLOPEN_SELF
1160
1681
 
 
1682
 
1161
1683
# AC_LIBTOOL_DLOPEN_SELF
1162
1684
# -------------------
1163
1685
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1164
 
[if test "x$enable_dlopen" != xyes; then
 
1686
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
1687
if test "x$enable_dlopen" != xyes; then
1165
1688
  enable_dlopen=unknown
1166
1689
  enable_dlopen_self=unknown
1167
1690
  enable_dlopen_self_static=unknown
1176
1699
    lt_cv_dlopen_self=yes
1177
1700
    ;;
1178
1701
 
1179
 
  cygwin* | mingw* | pw32*)
 
1702
  mingw* | pw32*)
1180
1703
    lt_cv_dlopen="LoadLibrary"
1181
1704
    lt_cv_dlopen_libs=
1182
1705
   ;;
1183
1706
 
 
1707
  cygwin*)
 
1708
    lt_cv_dlopen="dlopen"
 
1709
    lt_cv_dlopen_libs=
 
1710
   ;;
 
1711
 
 
1712
  darwin*)
 
1713
  # if libdl is installed we need to link against it
 
1714
    AC_CHECK_LIB([dl], [dlopen],
 
1715
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
 
1716
    lt_cv_dlopen="dyld"
 
1717
    lt_cv_dlopen_libs=
 
1718
    lt_cv_dlopen_self=yes
 
1719
    ])
 
1720
   ;;
 
1721
 
1184
1722
  *)
1185
1723
    AC_CHECK_FUNC([shl_load],
1186
 
          [lt_cv_dlopen="shl_load"],
 
1724
          [lt_cv_dlopen="shl_load"],
1187
1725
      [AC_CHECK_LIB([dld], [shl_load],
1188
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
1726
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1189
1727
        [AC_CHECK_FUNC([dlopen],
1190
1728
              [lt_cv_dlopen="dlopen"],
1191
1729
          [AC_CHECK_LIB([dl], [dlopen],
1192
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
 
1730
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1193
1731
            [AC_CHECK_LIB([svld], [dlopen],
1194
 
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
 
1732
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1195
1733
              [AC_CHECK_LIB([dld], [dld_link],
1196
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
1734
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1197
1735
              ])
1198
1736
            ])
1199
1737
          ])
1211
1749
  case $lt_cv_dlopen in
1212
1750
  dlopen)
1213
1751
    save_CPPFLAGS="$CPPFLAGS"
1214
 
    AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1215
1752
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1216
1753
 
1217
1754
    save_LDFLAGS="$LDFLAGS"
1255
1792
fi
1256
1793
])# AC_LIBTOOL_DLOPEN_SELF
1257
1794
 
1258
 
AC_DEFUN([_LT_AC_LTCONFIG_HACK],
1259
 
[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
1260
 
# Sed substitution that helps us do robust quoting.  It backslashifies
1261
 
# metacharacters that are still active within double-quoted strings.
1262
 
Xsed='sed -e s/^X//'
1263
 
sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
1264
 
 
1265
 
# Same as above, but do not quote variable references.
1266
 
double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
1267
 
 
1268
 
# Sed substitution to delay expansion of an escaped shell variable in a
1269
 
# double_quote_subst'ed string.
1270
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1271
 
 
1272
 
# Constants:
1273
 
rm="rm -f"
1274
 
 
1275
 
# Global variables:
1276
 
default_ofile=libtool
1277
 
can_build_shared=yes
1278
 
 
1279
 
# All known linkers require a `.a' archive for static linking (except M$VC,
1280
 
# which needs '.lib').
1281
 
libext=a
1282
 
ltmain="$ac_aux_dir/ltmain.sh"
1283
 
ofile="$default_ofile"
1284
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
1285
 
need_locks="$enable_libtool_lock"
1286
 
 
1287
 
old_CC="$CC"
1288
 
old_CFLAGS="$CFLAGS"
1289
 
 
1290
 
# Set sane defaults for various variables
1291
 
test -z "$AR" && AR=ar
1292
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
1293
 
test -z "$AS" && AS=as
1294
 
test -z "$CC" && CC=cc
1295
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
1296
 
test -z "$LD" && LD=ld
1297
 
test -z "$LN_S" && LN_S="ln -s"
1298
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1299
 
test -z "$NM" && NM=nm
1300
 
test -z "$OBJDUMP" && OBJDUMP=objdump
1301
 
test -z "$RANLIB" && RANLIB=:
1302
 
test -z "$STRIP" && STRIP=:
1303
 
test -z "$ac_objext" && ac_objext=o
1304
 
 
1305
 
if test x"$host" != x"$build"; then
1306
 
  ac_tool_prefix=${host_alias}-
1307
 
else
1308
 
  ac_tool_prefix=
1309
 
fi
1310
 
 
1311
 
case $host_os in
1312
 
aix3*)
1313
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
1314
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
1315
 
  # vanish in a puff of smoke.
1316
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
1317
 
    COLLECT_NAMES=
1318
 
    export COLLECT_NAMES
1319
 
  fi
1320
 
  ;;
1321
 
esac
1322
 
 
1323
 
# Determine commands to create old-style static archives.
1324
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1325
 
old_postinstall_cmds='chmod 644 $oldlib'
1326
 
old_postuninstall_cmds=
1327
 
 
1328
 
if test -n "$RANLIB"; then
1329
 
  case $host_os in
1330
 
  openbsd*)
1331
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1332
 
    ;;
1333
 
  *)
1334
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1335
 
    ;;
1336
 
  esac
1337
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1338
 
fi
1339
 
 
1340
 
# Allow CC to be a program name with arguments.
1341
 
set dummy $CC
1342
 
compiler="[$]2"
1343
 
 
1344
 
AC_MSG_CHECKING([for objdir])
1345
 
rm -f .libs 2>/dev/null
1346
 
mkdir .libs 2>/dev/null
1347
 
if test -d .libs; then
1348
 
  objdir=.libs
1349
 
else
1350
 
  # MS-DOS does not allow filenames that begin with a dot.
1351
 
  objdir=_libs
1352
 
fi
1353
 
rmdir .libs 2>/dev/null
1354
 
AC_MSG_RESULT($objdir)
1355
 
 
1356
 
 
1357
 
AC_ARG_WITH(pic,
1358
 
[  --with-pic              try to use only PIC/non-PIC objects [default=use both]],
1359
 
pic_mode="$withval", pic_mode=default)
1360
 
test -z "$pic_mode" && pic_mode=default
1361
 
 
1362
 
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
1363
 
# in isolation, and that seeing it set (from the cache) indicates that
1364
 
# the associated values are set (in the cache) correctly too.
1365
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
1366
 
AC_CACHE_VAL(lt_cv_prog_cc_pic,
1367
 
[ lt_cv_prog_cc_pic=
1368
 
  lt_cv_prog_cc_shlib=
1369
 
  lt_cv_prog_cc_wl=
1370
 
  lt_cv_prog_cc_static=
1371
 
  lt_cv_prog_cc_no_builtin=
1372
 
  lt_cv_prog_cc_can_build_shared=$can_build_shared
1373
 
 
1374
 
  if test "$GCC" = yes; then
1375
 
    lt_cv_prog_cc_wl='-Wl,'
1376
 
    lt_cv_prog_cc_static='-static'
1377
 
 
1378
 
    case $host_os in
1379
 
    aix*)
1380
 
      # Below there is a dirty hack to force normal static linking with -ldl
1381
 
      # The problem is because libdl dynamically linked with both libc and
1382
 
      # libC (AIX C++ library), which obviously doesn't included in libraries
1383
 
      # list by gcc. This cause undefined symbols with -static flags.
1384
 
      # This hack allows C programs to be linked with "-static -ldl", but
1385
 
      # not sure about C++ programs.
1386
 
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
1387
 
      ;;
1388
 
    amigaos*)
1389
 
      # FIXME: we need at least 68020 code to build shared libraries, but
1390
 
      # adding the `-m68020' flag to GCC prevents building anything better,
1391
 
      # like `-m68040'.
1392
 
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
1393
 
      ;;
1394
 
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
1395
 
      # PIC is the default for these OSes.
1396
 
      ;;
1397
 
    darwin* | rhapsody*)
1398
 
      # PIC is the default on this platform
1399
 
      # Common symbols not allowed in MH_DYLIB files
1400
 
      lt_cv_prog_cc_pic='-fno-common'
1401
 
      ;;
1402
 
    cygwin* | mingw* | pw32* | os2*)
1403
 
      # This hack is so that the source file can tell whether it is being
1404
 
      # built for inclusion in a dll (and should export symbols for example).
1405
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
1406
 
      ;;
1407
 
    sysv4*MP*)
1408
 
      if test -d /usr/nec; then
1409
 
         lt_cv_prog_cc_pic=-Kconform_pic
1410
 
      fi
1411
 
      ;;
1412
 
    *)
1413
 
      lt_cv_prog_cc_pic='-fPIC'
1414
 
      ;;
1415
 
    esac
1416
 
  else
1417
 
    # PORTME Check for PIC flags for the system compiler.
1418
 
    case $host_os in
1419
 
    aix3* | aix4* | aix5*)
1420
 
      lt_cv_prog_cc_wl='-Wl,'
1421
 
      # All AIX code is PIC.
1422
 
      if test "$host_cpu" = ia64; then
1423
 
        # AIX 5 now supports IA64 processor
1424
 
        lt_cv_prog_cc_static='-Bstatic'
1425
 
      else
1426
 
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
1427
 
      fi
1428
 
      ;;
1429
 
 
1430
 
    hpux9* | hpux10* | hpux11*)
1431
 
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
1432
 
      lt_cv_prog_cc_wl='-Wl,'
1433
 
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
1434
 
      lt_cv_prog_cc_pic='+Z'
1435
 
      ;;
1436
 
 
1437
 
    irix5* | irix6*)
1438
 
      lt_cv_prog_cc_wl='-Wl,'
1439
 
      lt_cv_prog_cc_static='-non_shared'
1440
 
      # PIC (with -KPIC) is the default.
1441
 
      ;;
1442
 
 
1443
 
    cygwin* | mingw* | pw32* | os2*)
1444
 
      # This hack is so that the source file can tell whether it is being
1445
 
      # built for inclusion in a dll (and should export symbols for example).
1446
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
1447
 
      ;;
1448
 
 
1449
 
    newsos6)
1450
 
      lt_cv_prog_cc_pic='-KPIC'
1451
 
      lt_cv_prog_cc_static='-Bstatic'
1452
 
      ;;
1453
 
 
1454
 
    osf3* | osf4* | osf5*)
1455
 
      # All OSF/1 code is PIC.
1456
 
      lt_cv_prog_cc_wl='-Wl,'
1457
 
      lt_cv_prog_cc_static='-non_shared'
1458
 
      ;;
1459
 
 
1460
 
    sco3.2v5*)
1461
 
      lt_cv_prog_cc_pic='-Kpic'
1462
 
      lt_cv_prog_cc_static='-dn'
1463
 
      lt_cv_prog_cc_shlib='-belf'
1464
 
      ;;
1465
 
 
1466
 
    solaris*)
1467
 
      lt_cv_prog_cc_pic='-KPIC'
1468
 
      lt_cv_prog_cc_static='-Bstatic'
1469
 
      lt_cv_prog_cc_wl='-Wl,'
1470
 
      ;;
1471
 
 
1472
 
    sunos4*)
1473
 
      lt_cv_prog_cc_pic='-PIC'
1474
 
      lt_cv_prog_cc_static='-Bstatic'
1475
 
      lt_cv_prog_cc_wl='-Qoption ld '
1476
 
      ;;
1477
 
 
1478
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1479
 
      lt_cv_prog_cc_pic='-KPIC'
1480
 
      lt_cv_prog_cc_static='-Bstatic'
1481
 
      if test "x$host_vendor" = xsni; then
1482
 
        lt_cv_prog_cc_wl='-LD'
1483
 
      else
1484
 
        lt_cv_prog_cc_wl='-Wl,'
1485
 
      fi
1486
 
      ;;
1487
 
 
1488
 
    uts4*)
1489
 
      lt_cv_prog_cc_pic='-pic'
1490
 
      lt_cv_prog_cc_static='-Bstatic'
1491
 
      ;;
1492
 
 
1493
 
    sysv4*MP*)
1494
 
      if test -d /usr/nec ;then
1495
 
        lt_cv_prog_cc_pic='-Kconform_pic'
1496
 
        lt_cv_prog_cc_static='-Bstatic'
1497
 
      fi
1498
 
      ;;
1499
 
 
1500
 
    *)
1501
 
      lt_cv_prog_cc_can_build_shared=no
1502
 
      ;;
1503
 
    esac
1504
 
  fi
1505
 
])
1506
 
if test -z "$lt_cv_prog_cc_pic"; then
1507
 
  AC_MSG_RESULT([none])
1508
 
else
1509
 
  AC_MSG_RESULT([$lt_cv_prog_cc_pic])
1510
 
 
1511
 
  # Check to make sure the pic_flag actually works.
1512
 
  AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
1513
 
  AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
1514
 
    save_CFLAGS="$CFLAGS"
1515
 
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
1516
 
    AC_TRY_COMPILE([], [], [dnl
1517
 
      case $host_os in
1518
 
      hpux9* | hpux10* | hpux11*)
1519
 
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
1520
 
        # they create non-PIC objects.  So, if there were any warnings, we
1521
 
        # assume that PIC is not supported.
1522
 
        if test -s conftest.err; then
1523
 
          lt_cv_prog_cc_pic_works=no
1524
 
        else
1525
 
          lt_cv_prog_cc_pic_works=yes
1526
 
        fi
1527
 
        ;;
1528
 
      *)
1529
 
        lt_cv_prog_cc_pic_works=yes
1530
 
        ;;
1531
 
      esac
1532
 
    ], [dnl
1533
 
      lt_cv_prog_cc_pic_works=no
1534
 
    ])
1535
 
    CFLAGS="$save_CFLAGS"
1536
 
  ])
1537
 
 
1538
 
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
1539
 
    lt_cv_prog_cc_pic=
1540
 
    lt_cv_prog_cc_can_build_shared=no
1541
 
  else
1542
 
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
1543
 
  fi
1544
 
 
1545
 
  AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
1546
 
fi
1547
 
 
1548
 
# Check for any special shared library compilation flags.
1549
 
if test -n "$lt_cv_prog_cc_shlib"; then
1550
 
  AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
1551
 
  if echo "$old_CC $old_CFLAGS " | egrep -e "[[         ]]$lt_cv_prog_cc_shlib[[        ]]" >/dev/null; then :
1552
 
  else
1553
 
   AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
1554
 
    lt_cv_prog_cc_can_build_shared=no
1555
 
  fi
1556
 
fi
1557
 
 
1558
 
AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
1559
 
AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
1560
 
  lt_cv_prog_cc_static_works=no
1561
 
  save_LDFLAGS="$LDFLAGS"
1562
 
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
1563
 
  AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
1564
 
  LDFLAGS="$save_LDFLAGS"
1565
 
])
1566
 
 
1567
 
# Belt *and* braces to stop my trousers falling down:
1568
 
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
1569
 
AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
1570
 
 
1571
 
pic_flag="$lt_cv_prog_cc_pic"
1572
 
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
1573
 
wl="$lt_cv_prog_cc_wl"
1574
 
link_static_flag="$lt_cv_prog_cc_static"
1575
 
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
1576
 
can_build_shared="$lt_cv_prog_cc_can_build_shared"
1577
 
 
1578
 
 
1579
 
# Check to see if options -o and -c are simultaneously supported by compiler
1580
 
AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
1581
 
AC_CACHE_VAL([lt_cv_compiler_c_o], [
1582
 
$rm -r conftest 2>/dev/null
1583
 
mkdir conftest
1584
 
cd conftest
1585
 
echo "int some_variable = 0;" > conftest.$ac_ext
1586
 
mkdir out
1587
 
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
1588
 
# that will create temporary files in the current directory regardless of
1589
 
# the output directory.  Thus, making CWD read-only will cause this test
1590
 
# to fail, enabling locking or at least warning the user not to do parallel
1591
 
# builds.
1592
 
chmod -w .
1593
 
save_CFLAGS="$CFLAGS"
1594
 
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
1595
 
compiler_c_o=no
1596
 
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
1597
 
  # The compiler can only warn and ignore the option if not recognized
1598
 
  # So say no if there are warnings
1599
 
  if test -s out/conftest.err; then
1600
 
    lt_cv_compiler_c_o=no
1601
 
  else
1602
 
    lt_cv_compiler_c_o=yes
1603
 
  fi
1604
 
else
1605
 
  # Append any errors to the config.log.
1606
 
  cat out/conftest.err 1>&AC_FD_CC
1607
 
  lt_cv_compiler_c_o=no
1608
 
fi
1609
 
CFLAGS="$save_CFLAGS"
1610
 
chmod u+w .
1611
 
$rm conftest* out/*
1612
 
rmdir out
1613
 
cd ..
1614
 
rmdir conftest
1615
 
$rm -r conftest 2>/dev/null
1616
 
])
1617
 
compiler_c_o=$lt_cv_compiler_c_o
1618
 
AC_MSG_RESULT([$compiler_c_o])
1619
 
 
1620
 
if test x"$compiler_c_o" = x"yes"; then
1621
 
  # Check to see if we can write to a .lo
1622
 
  AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
1623
 
  AC_CACHE_VAL([lt_cv_compiler_o_lo], [
1624
 
  lt_cv_compiler_o_lo=no
1625
 
  save_CFLAGS="$CFLAGS"
1626
 
  CFLAGS="$CFLAGS -c -o conftest.lo"
1627
 
  save_objext="$ac_objext"
1628
 
  ac_objext=lo
1629
 
  AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
1630
 
    # The compiler can only warn and ignore the option if not recognized
1631
 
    # So say no if there are warnings
1632
 
    if test -s conftest.err; then
1633
 
      lt_cv_compiler_o_lo=no
1634
 
    else
1635
 
      lt_cv_compiler_o_lo=yes
1636
 
    fi
1637
 
  ])
1638
 
  ac_objext="$save_objext"
1639
 
  CFLAGS="$save_CFLAGS"
1640
 
  ])
1641
 
  compiler_o_lo=$lt_cv_compiler_o_lo
1642
 
  AC_MSG_RESULT([$compiler_o_lo])
1643
 
else
1644
 
  compiler_o_lo=no
1645
 
fi
1646
 
 
 
1795
 
 
1796
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
 
1797
# ---------------------------------
 
1798
# Check to see if options -c and -o are simultaneously supported by compiler
 
1799
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
 
1800
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1801
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
 
1802
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
1803
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
1804
   $rm -r conftest 2>/dev/null
 
1805
   mkdir conftest
 
1806
   cd conftest
 
1807
   mkdir out
 
1808
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1809
 
 
1810
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
1811
   # Insert the option either (1) after the last *FLAGS variable, or
 
1812
   # (2) before a word containing "conftest.", or (3) at the end.
 
1813
   # Note that $ac_compile itself does not contain backslashes and begins
 
1814
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
1815
   lt_compile=`echo "$ac_compile" | $SED \
 
1816
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
1817
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 
1818
   -e 's:$: $lt_compiler_flag:'`
 
1819
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
1820
   (eval "$lt_compile" 2>out/conftest.err)
 
1821
   ac_status=$?
 
1822
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
 
1823
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1824
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
1825
   then
 
1826
     # The compiler can only warn and ignore the option if not recognized
 
1827
     # So say no if there are warnings
 
1828
     if test ! -s out/conftest.err; then
 
1829
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
1830
     fi
 
1831
   fi
 
1832
   chmod u+w .
 
1833
   $rm conftest*
 
1834
   # SGI C++ compiler will create directory out/ii_files/ for
 
1835
   # template instantiation
 
1836
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
1837
   $rm out/* && rmdir out
 
1838
   cd ..
 
1839
   rmdir conftest
 
1840
   $rm conftest*
 
1841
])
 
1842
])# AC_LIBTOOL_PROG_CC_C_O
 
1843
 
 
1844
 
 
1845
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
 
1846
# -----------------------------------------
1647
1847
# Check to see if we can do hard links to lock some files if needed
 
1848
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
 
1849
[AC_REQUIRE([_LT_AC_LOCK])dnl
 
1850
 
1648
1851
hard_links="nottested"
1649
 
if test "$compiler_c_o" = no && test "$need_locks" != no; then
 
1852
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1650
1853
  # do not overwrite the value of need_locks provided by the user
1651
1854
  AC_MSG_CHECKING([if we can lock with hard links])
1652
1855
  hard_links=yes
1657
1860
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1658
1861
  AC_MSG_RESULT([$hard_links])
1659
1862
  if test "$hard_links" = no; then
1660
 
    AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
 
1863
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1661
1864
    need_locks=warn
1662
1865
  fi
1663
1866
else
1664
1867
  need_locks=no
1665
1868
fi
1666
 
 
1667
 
if test "$GCC" = yes; then
1668
 
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
1669
 
  AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
1670
 
  echo "int some_variable = 0;" > conftest.$ac_ext
1671
 
  save_CFLAGS="$CFLAGS"
1672
 
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
1673
 
  compiler_rtti_exceptions=no
1674
 
  AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
1675
 
    # The compiler can only warn and ignore the option if not recognized
1676
 
    # So say no if there are warnings
1677
 
    if test -s conftest.err; then
1678
 
      compiler_rtti_exceptions=no
1679
 
    else
1680
 
      compiler_rtti_exceptions=yes
1681
 
    fi
1682
 
  ])
1683
 
  CFLAGS="$save_CFLAGS"
1684
 
  AC_MSG_RESULT([$compiler_rtti_exceptions])
1685
 
 
1686
 
  if test "$compiler_rtti_exceptions" = "yes"; then
1687
 
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
1688
 
  else
1689
 
    no_builtin_flag=' -fno-builtin'
1690
 
  fi
1691
 
fi
1692
 
 
1693
 
# See if the linker supports building shared libraries.
1694
 
AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
1695
 
 
1696
 
allow_undefined_flag=
1697
 
no_undefined_flag=
1698
 
need_lib_prefix=unknown
1699
 
need_version=unknown
1700
 
# when you set need_version to no, make sure it does not cause -set_version
1701
 
# flags to be left without arguments
1702
 
archive_cmds=
1703
 
archive_expsym_cmds=
1704
 
old_archive_from_new_cmds=
1705
 
old_archive_from_expsyms_cmds=
1706
 
export_dynamic_flag_spec=
1707
 
whole_archive_flag_spec=
1708
 
thread_safe_flag_spec=
1709
 
hardcode_into_libs=no
1710
 
hardcode_libdir_flag_spec=
1711
 
hardcode_libdir_separator=
1712
 
hardcode_direct=no
1713
 
hardcode_minus_L=no
1714
 
hardcode_shlibpath_var=unsupported
1715
 
runpath_var=
1716
 
link_all_deplibs=unknown
1717
 
always_export_symbols=no
1718
 
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
1719
 
# include_expsyms should be a list of space-separated symbols to be *always*
1720
 
# included in the symbol list
1721
 
include_expsyms=
1722
 
# exclude_expsyms can be an egrep regular expression of symbols to exclude
1723
 
# it will be wrapped by ` (' and `)$', so one must not match beginning or
1724
 
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
1725
 
# as well as any symbol that contains `d'.
1726
 
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
1727
 
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
1728
 
# platforms (ab)use it in PIC code, but their linkers get confused if
1729
 
# the symbol is explicitly referenced.  Since portable code cannot
1730
 
# rely on this symbol name, it's probably fine to never include it in
1731
 
# preloaded symbol tables.
1732
 
extract_expsyms_cmds=
1733
 
 
1734
 
case $host_os in
1735
 
cygwin* | mingw* | pw32*)
1736
 
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
1737
 
  # When not using gcc, we currently assume that we are using
1738
 
  # Microsoft Visual C++.
1739
 
  if test "$GCC" != yes; then
1740
 
    with_gnu_ld=no
1741
 
  fi
1742
 
  ;;
1743
 
openbsd*)
1744
 
  with_gnu_ld=no
1745
 
  ;;
1746
 
esac
1747
 
 
1748
 
ld_shlibs=yes
1749
 
if test "$with_gnu_ld" = yes; then
1750
 
  # If archive_cmds runs LD, not CC, wlarc should be empty
1751
 
  wlarc='${wl}'
1752
 
 
1753
 
  # See if GNU ld supports shared libraries.
1754
 
  case $host_os in
1755
 
  aix3* | aix4* | aix5*)
1756
 
    # On AIX, the GNU linker is very broken
1757
 
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
1758
 
    ld_shlibs=no
1759
 
    cat <<EOF 1>&2
1760
 
 
1761
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
1762
 
*** to be unable to reliably create shared libraries on AIX.
1763
 
*** Therefore, libtool is disabling shared libraries support.  If you
1764
 
*** really care for shared libraries, you may want to modify your PATH
1765
 
*** so that a non-GNU linker is found, and then restart.
1766
 
 
1767
 
EOF
1768
 
    ;;
1769
 
 
1770
 
  amigaos*)
1771
 
    archive_cmds='$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)'
1772
 
    hardcode_libdir_flag_spec='-L$libdir'
1773
 
    hardcode_minus_L=yes
1774
 
 
1775
 
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
1776
 
    # that the semantics of dynamic libraries on AmigaOS, at least up
1777
 
    # to version 4, is to share data among multiple programs linked
1778
 
    # with the same dynamic library.  Since this doesn't match the
1779
 
    # behavior of shared libraries on other platforms, we can use
1780
 
    # them.
1781
 
    ld_shlibs=no
1782
 
    ;;
1783
 
 
1784
 
  beos*)
1785
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1786
 
      allow_undefined_flag=unsupported
1787
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1788
 
      # support --undefined.  This deserves some investigation.  FIXME
1789
 
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1790
 
    else
1791
 
      ld_shlibs=no
1792
 
    fi
1793
 
    ;;
1794
 
 
1795
 
  cygwin* | mingw* | pw32*)
1796
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
1797
 
    # no search path for DLLs.
1798
 
    hardcode_libdir_flag_spec='-L$libdir'
1799
 
    allow_undefined_flag=unsupported
1800
 
    always_export_symbols=yes
1801
 
 
1802
 
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
1803
 
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
1804
 
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
1805
 
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
1806
 
      else $CC -o impgen impgen.c ; fi)~
1807
 
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
1808
 
 
1809
 
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
1810
 
 
1811
 
    # cygwin and mingw dlls have different entry points and sets of symbols
1812
 
    # to exclude.
1813
 
    # FIXME: what about values for MSVC?
1814
 
    dll_entry=__cygwin_dll_entry@12
1815
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
1816
 
    case $host_os in
1817
 
    mingw*)
1818
 
      # mingw values
1819
 
      dll_entry=_DllMainCRTStartup@12
1820
 
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
1821
 
      ;;
1822
 
    esac
1823
 
 
1824
 
    # mingw and cygwin differ, and it's simplest to just exclude the union
1825
 
    # of the two symbol sets.
1826
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
1827
 
 
1828
 
    # recent cygwin and mingw systems supply a stub DllMain which the user
1829
 
    # can override, but on older systems we have to supply one (in ltdll.c)
1830
 
    if test "x$lt_cv_need_dllmain" = "xyes"; then
1831
 
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
1832
 
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
1833
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
1834
 
    else
1835
 
      ltdll_obj=
1836
 
      ltdll_cmds=
1837
 
    fi
1838
 
 
1839
 
    # Extract the symbol export list from an `--export-all' def file,
1840
 
    # then regenerate the def file from the symbol export list, so that
1841
 
    # the compiled dll only exports the symbol export list.
1842
 
    # Be careful not to strip the DATA tag left be newer dlltools.
1843
 
    export_symbols_cmds="$ltdll_cmds"'
1844
 
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
1845
 
      sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
1846
 
 
1847
 
    # If the export-symbols file already is a .def file (1st line
1848
 
    # is EXPORTS), use it as is.
1849
 
    # If DATA tags from a recent dlltool are present, honour them!
1850
 
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
1851
 
        cp $export_symbols $output_objdir/$soname-def;
1852
 
      else
1853
 
        echo EXPORTS > $output_objdir/$soname-def;
1854
 
        _lt_hint=1;
1855
 
        cat $export_symbols | while read symbol; do
1856
 
         set dummy \$symbol;
1857
 
         case \[$]# in
1858
 
           2) echo "   \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
1859
 
           *) echo "     \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
1860
 
         esac;
1861
 
         _lt_hint=`expr 1 + \$_lt_hint`;
1862
 
        done;
1863
 
      fi~
1864
 
      '"$ltdll_cmds"'
1865
 
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
1866
 
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
1867
 
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
1868
 
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
1869
 
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
1870
 
    ;;
1871
 
 
1872
 
  netbsd*)
1873
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1874
 
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1875
 
      wlarc=
1876
 
    else
1877
 
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1878
 
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1879
 
    fi
1880
 
    ;;
1881
 
 
1882
 
  solaris* | sysv5*)
1883
 
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
1884
 
      ld_shlibs=no
1885
 
      cat <<EOF 1>&2
1886
 
 
1887
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
1888
 
*** create shared libraries on Solaris systems.  Therefore, libtool
1889
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
1890
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
1891
 
*** your PATH or compiler configuration so that the native linker is
1892
 
*** used, and then restart.
1893
 
 
1894
 
EOF
1895
 
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1896
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1897
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1898
 
    else
1899
 
      ld_shlibs=no
1900
 
    fi
1901
 
    ;;
1902
 
 
1903
 
  sunos4*)
1904
 
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1905
 
    wlarc=
1906
 
    hardcode_direct=yes
1907
 
    hardcode_shlibpath_var=no
1908
 
    ;;
1909
 
 
1910
 
  *)
1911
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1912
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1913
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1914
 
    else
1915
 
      ld_shlibs=no
1916
 
    fi
1917
 
    ;;
1918
 
  esac
1919
 
 
1920
 
  if test "$ld_shlibs" = yes; then
1921
 
    runpath_var=LD_RUN_PATH
1922
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
1923
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
1924
 
    case $host_os in
1925
 
    cygwin* | mingw* | pw32*)
1926
 
      # dlltool doesn't understand --whole-archive et. al.
1927
 
      whole_archive_flag_spec=
1928
 
      ;;
1929
 
    *)
1930
 
      # ancient GNU ld didn't support --whole-archive et. al.
1931
 
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
1932
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1933
 
      else
1934
 
        whole_archive_flag_spec=
1935
 
      fi
1936
 
      ;;
1937
 
    esac
1938
 
  fi
 
1869
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
 
1870
 
 
1871
 
 
1872
# AC_LIBTOOL_OBJDIR
 
1873
# -----------------
 
1874
AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
1875
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
 
1876
[rm -f .libs 2>/dev/null
 
1877
mkdir .libs 2>/dev/null
 
1878
if test -d .libs; then
 
1879
  lt_cv_objdir=.libs
1939
1880
else
1940
 
  # PORTME fill in a description of your system's linker (not GNU ld)
1941
 
  case $host_os in
1942
 
  aix3*)
1943
 
    allow_undefined_flag=unsupported
1944
 
    always_export_symbols=yes
1945
 
    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
1946
 
    # Note: this linker hardcodes the directories in LIBPATH if there
1947
 
    # are no directories specified by -L.
1948
 
    hardcode_minus_L=yes
1949
 
    if test "$GCC" = yes && test -z "$link_static_flag"; then
1950
 
      # Neither direct hardcoding nor static linking is supported with a
1951
 
      # broken collect2.
1952
 
      hardcode_direct=unsupported
1953
 
    fi
1954
 
    ;;
1955
 
 
1956
 
  aix4* | aix5*)
1957
 
    if test "$host_cpu" = ia64; then
1958
 
      # On IA64, the linker does run time linking by default, so we don't
1959
 
      # have to do anything special.
1960
 
      aix_use_runtimelinking=no
1961
 
      exp_sym_flag='-Bexport'
1962
 
      no_entry_flag=""
1963
 
    else
1964
 
      aix_use_runtimelinking=no
1965
 
 
1966
 
      # Test if we are trying to use run time linking or normal
1967
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1968
 
      # need to do runtime linking.
1969
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
1970
 
        for ld_flag in $LDFLAGS; do
1971
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
1972
 
            aix_use_runtimelinking=yes
1973
 
            break
1974
 
          fi
1975
 
        done
1976
 
      esac
1977
 
 
1978
 
      exp_sym_flag='-bexport'
1979
 
      no_entry_flag='-bnoentry'
1980
 
    fi
1981
 
 
1982
 
    # When large executables or shared objects are built, AIX ld can
1983
 
    # have problems creating the table of contents.  If linking a library
1984
 
    # or program results in "error TOC overflow" add -mminimal-toc to
1985
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
1986
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
1987
 
 
1988
 
    hardcode_direct=yes
1989
 
    archive_cmds=''
1990
 
    hardcode_libdir_separator=':'
1991
 
    if test "$GCC" = yes; then
1992
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
1993
 
        collect2name=`${CC} -print-prog-name=collect2`
1994
 
        if test -f "$collect2name" && \
1995
 
          strings "$collect2name" | grep resolve_lib_name >/dev/null
1996
 
        then
1997
 
          # We have reworked collect2
1998
 
          hardcode_direct=yes
1999
 
        else
2000
 
          # We have old collect2
2001
 
          hardcode_direct=unsupported
2002
 
          # It fails to find uninstalled libraries when the uninstalled
2003
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
2004
 
          # to unsupported forces relinking
2005
 
          hardcode_minus_L=yes
2006
 
          hardcode_libdir_flag_spec='-L$libdir'
2007
 
          hardcode_libdir_separator=
2008
 
        fi
2009
 
      esac
2010
 
 
2011
 
      shared_flag='-shared'
2012
 
    else
2013
 
      # not using gcc
2014
 
      if test "$host_cpu" = ia64; then
2015
 
        shared_flag='${wl}-G'
2016
 
      else
2017
 
        if test "$aix_use_runtimelinking" = yes; then
2018
 
          shared_flag='${wl}-G'
2019
 
        else
2020
 
          shared_flag='${wl}-bM:SRE'
2021
 
        fi
2022
 
      fi
2023
 
    fi
2024
 
 
2025
 
    # It seems that -bexpall can do strange things, so it is better to
2026
 
    # generate a list of symbols to export.
2027
 
    always_export_symbols=yes
2028
 
    if test "$aix_use_runtimelinking" = yes; then
2029
 
      # Warning - without using the other runtime loading flags (-brtl),
2030
 
      # -berok will link without error, but may produce a broken library.
2031
 
      allow_undefined_flag='-berok'
2032
 
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
2033
 
      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2034
 
    else
2035
 
      if test "$host_cpu" = ia64; then
2036
 
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
2037
 
        allow_undefined_flag="-z nodefs"
2038
 
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
2039
 
      else
2040
 
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
2041
 
        # Warning - without using the other run time loading flags,
2042
 
        # -berok will link without error, but may produce a broken library.
2043
 
        allow_undefined_flag='${wl}-berok'
2044
 
        # This is a bit strange, but is similar to how AIX traditionally builds
2045
 
        # it's shared libraries.
2046
 
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
2047
 
      fi
2048
 
    fi
2049
 
    ;;
2050
 
 
2051
 
  amigaos*)
2052
 
    archive_cmds='$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)'
2053
 
    hardcode_libdir_flag_spec='-L$libdir'
2054
 
    hardcode_minus_L=yes
2055
 
    # see comment about different semantics on the GNU ld section
2056
 
    ld_shlibs=no
2057
 
    ;;
2058
 
 
2059
 
  cygwin* | mingw* | pw32*)
2060
 
    # When not using gcc, we currently assume that we are using
2061
 
    # Microsoft Visual C++.
2062
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
2063
 
    # no search path for DLLs.
2064
 
    hardcode_libdir_flag_spec=' '
2065
 
    allow_undefined_flag=unsupported
2066
 
    # Tell ltmain to make .lib files, not .a files.
2067
 
    libext=lib
2068
 
    # FIXME: Setting linknames here is a bad hack.
2069
 
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
2070
 
    # The linker will automatically build a .lib file if we build a DLL.
2071
 
    old_archive_from_new_cmds='true'
2072
 
    # FIXME: Should let the user specify the lib program.
2073
 
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
2074
 
    fix_srcfile_path='`cygpath -w "$srcfile"`'
2075
 
    ;;
2076
 
 
2077
 
  darwin* | rhapsody*)
2078
 
    case "$host_os" in
2079
 
    rhapsody* | darwin1.[[012]])
2080
 
      allow_undefined_flag='-undefined suppress'
2081
 
      ;;
2082
 
    *) # Darwin 1.3 on
2083
 
      allow_undefined_flag='-flat_namespace -undefined suppress'
2084
 
      ;;
2085
 
    esac
2086
 
    # FIXME: Relying on posixy $() will cause problems for
2087
 
    #        cross-compilation, but unfortunately the echo tests do not
2088
 
    #        yet detect zsh echo's removal of \ escapes.
2089
 
    archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
2090
 
    # We need to add '_' to the symbols in $export_symbols first
2091
 
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
2092
 
    hardcode_direct=yes
2093
 
    hardcode_shlibpath_var=no
2094
 
    whole_archive_flag_spec='-all_load $convenience'
2095
 
    ;;
2096
 
 
2097
 
  freebsd1*)
2098
 
    ld_shlibs=no
2099
 
    ;;
2100
 
 
2101
 
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
2102
 
  # support.  Future versions do this automatically, but an explicit c++rt0.o
2103
 
  # does not break anything, and helps significantly (at the cost of a little
2104
 
  # extra space).
2105
 
  freebsd2.2*)
2106
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
2107
 
    hardcode_libdir_flag_spec='-R$libdir'
2108
 
    hardcode_direct=yes
2109
 
    hardcode_shlibpath_var=no
2110
 
    ;;
2111
 
 
2112
 
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
2113
 
  freebsd2*)
2114
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2115
 
    hardcode_direct=yes
2116
 
    hardcode_minus_L=yes
2117
 
    hardcode_shlibpath_var=no
2118
 
    ;;
2119
 
 
2120
 
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
2121
 
  freebsd*)
2122
 
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
2123
 
    hardcode_libdir_flag_spec='-R$libdir'
2124
 
    hardcode_direct=yes
2125
 
    hardcode_shlibpath_var=no
2126
 
    ;;
2127
 
 
2128
 
  hpux9* | hpux10* | hpux11*)
2129
 
    case $host_os in
2130
 
    hpux9*) archive_cmds='$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' ;;
2131
 
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
2132
 
    esac
2133
 
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
2134
 
    hardcode_libdir_separator=:
2135
 
    hardcode_direct=yes
2136
 
    hardcode_minus_L=yes # Not in the search PATH, but as the default
2137
 
                         # location of the library.
2138
 
    export_dynamic_flag_spec='${wl}-E'
2139
 
    ;;
2140
 
 
2141
 
  irix5* | irix6*)
2142
 
    if test "$GCC" = yes; then
2143
 
      archive_cmds='$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'
2144
 
    else
2145
 
      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2146
 
    fi
2147
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2148
 
    hardcode_libdir_separator=:
2149
 
    link_all_deplibs=yes
2150
 
    ;;
2151
 
 
2152
 
  netbsd*)
2153
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2154
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
2155
 
    else
2156
 
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
2157
 
    fi
2158
 
    hardcode_libdir_flag_spec='-R$libdir'
2159
 
    hardcode_direct=yes
2160
 
    hardcode_shlibpath_var=no
2161
 
    ;;
2162
 
 
2163
 
  newsos6)
2164
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2165
 
    hardcode_direct=yes
2166
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2167
 
    hardcode_libdir_separator=:
2168
 
    hardcode_shlibpath_var=no
2169
 
    ;;
2170
 
 
2171
 
  openbsd*)
2172
 
    hardcode_direct=yes
2173
 
    hardcode_shlibpath_var=no
2174
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2175
 
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
2176
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
2177
 
      export_dynamic_flag_spec='${wl}-E'
2178
 
    else
2179
 
      case "$host_os" in
2180
 
      openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
2181
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2182
 
        hardcode_libdir_flag_spec='-R$libdir'
2183
 
        ;;
2184
 
      *)
2185
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
2186
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
2187
 
        ;;
2188
 
      esac
2189
 
    fi
2190
 
    ;;
2191
 
 
2192
 
  os2*)
2193
 
    hardcode_libdir_flag_spec='-L$libdir'
2194
 
    hardcode_minus_L=yes
2195
 
    allow_undefined_flag=unsupported
2196
 
    archive_cmds='$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'
2197
 
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
2198
 
    ;;
2199
 
 
2200
 
  osf3*)
2201
 
    if test "$GCC" = yes; then
2202
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
2203
 
      archive_cmds='$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'
2204
 
    else
2205
 
      allow_undefined_flag=' -expect_unresolved \*'
2206
 
      archive_cmds='$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'
2207
 
    fi
2208
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2209
 
    hardcode_libdir_separator=:
2210
 
    ;;
2211
 
 
2212
 
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
2213
 
    if test "$GCC" = yes; then
2214
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
2215
 
      archive_cmds='$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'
2216
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2217
 
    else
2218
 
      allow_undefined_flag=' -expect_unresolved \*'
2219
 
      archive_cmds='$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'
2220
 
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
2221
 
      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
2222
 
 
2223
 
      #Both c and cxx compiler support -rpath directly
2224
 
      hardcode_libdir_flag_spec='-rpath $libdir'
2225
 
    fi
2226
 
    hardcode_libdir_separator=:
2227
 
    ;;
2228
 
 
2229
 
  sco3.2v5*)
2230
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2231
 
    hardcode_shlibpath_var=no
2232
 
    runpath_var=LD_RUN_PATH
2233
 
    hardcode_runpath_var=yes
2234
 
    export_dynamic_flag_spec='${wl}-Bexport'
2235
 
    ;;
2236
 
 
2237
 
  solaris*)
2238
 
    # gcc --version < 3.0 without binutils cannot create self contained
2239
 
    # shared libraries reliably, requiring libgcc.a to resolve some of
2240
 
    # the object symbols generated in some cases.  Libraries that use
2241
 
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
2242
 
    # a copy of libgcc.a into every shared library to guarantee resolving
2243
 
    # such symbols causes other problems:  According to Tim Van Holder
2244
 
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
2245
 
    # (to the application) exception stack for one thing.
2246
 
    no_undefined_flag=' -z defs'
2247
 
    if test "$GCC" = yes; then
2248
 
      case `$CC --version 2>/dev/null` in
2249
 
      [[12]].*)
2250
 
        cat <<EOF 1>&2
2251
 
 
2252
 
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
2253
 
*** create self contained shared libraries on Solaris systems, without
2254
 
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
2255
 
*** -no-undefined support, which will at least allow you to build shared
2256
 
*** libraries.  However, you may find that when you link such libraries
2257
 
*** into an application without using GCC, you have to manually add
2258
 
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
2259
 
*** upgrade to a newer version of GCC.  Another option is to rebuild your
2260
 
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
2261
 
 
2262
 
EOF
2263
 
        no_undefined_flag=
2264
 
        ;;
2265
 
      esac
2266
 
    fi
2267
 
    # $CC -shared without GNU ld will not create a library from C++
2268
 
    # object files and a static libstdc++, better avoid it by now
2269
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
2270
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2271
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
2272
 
    hardcode_libdir_flag_spec='-R$libdir'
2273
 
    hardcode_shlibpath_var=no
2274
 
    case $host_os in
2275
 
    solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2276
 
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
2277
 
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
2278
 
    esac
2279
 
    link_all_deplibs=yes
2280
 
    ;;
2281
 
 
2282
 
  sunos4*)
2283
 
    if test "x$host_vendor" = xsequent; then
2284
 
      # Use $CC to link under sequent, because it throws in some extra .o
2285
 
      # files that make .init and .fini sections work.
2286
 
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
2287
 
    else
2288
 
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
2289
 
    fi
2290
 
    hardcode_libdir_flag_spec='-L$libdir'
2291
 
    hardcode_direct=yes
2292
 
    hardcode_minus_L=yes
2293
 
    hardcode_shlibpath_var=no
2294
 
    ;;
2295
 
 
2296
 
  sysv4)
2297
 
    if test "x$host_vendor" = xsno; then
2298
 
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
2299
 
      hardcode_direct=yes # is this really true???
2300
 
    else
2301
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2302
 
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
2303
 
    fi
2304
 
    runpath_var='LD_RUN_PATH'
2305
 
    hardcode_shlibpath_var=no
2306
 
    ;;
2307
 
 
2308
 
  sysv4.3*)
2309
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2310
 
    hardcode_shlibpath_var=no
2311
 
    export_dynamic_flag_spec='-Bexport'
2312
 
    ;;
2313
 
 
2314
 
  sysv5*)
2315
 
    no_undefined_flag=' -z text'
2316
 
    # $CC -shared without GNU ld will not create a library from C++
2317
 
    # object files and a static libstdc++, better avoid it by now
2318
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
2319
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2320
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
2321
 
    hardcode_libdir_flag_spec=
2322
 
    hardcode_shlibpath_var=no
2323
 
    runpath_var='LD_RUN_PATH'
2324
 
    ;;
2325
 
 
2326
 
  uts4*)
2327
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2328
 
    hardcode_libdir_flag_spec='-L$libdir'
2329
 
    hardcode_shlibpath_var=no
2330
 
    ;;
2331
 
 
2332
 
  dgux*)
2333
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2334
 
    hardcode_libdir_flag_spec='-L$libdir'
2335
 
    hardcode_shlibpath_var=no
2336
 
    ;;
2337
 
 
2338
 
  sysv4*MP*)
2339
 
    if test -d /usr/nec; then
2340
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2341
 
      hardcode_shlibpath_var=no
2342
 
      runpath_var=LD_RUN_PATH
2343
 
      hardcode_runpath_var=yes
2344
 
      ld_shlibs=yes
2345
 
    fi
2346
 
    ;;
2347
 
 
2348
 
  sysv4.2uw2*)
2349
 
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
2350
 
    hardcode_direct=yes
2351
 
    hardcode_minus_L=no
2352
 
    hardcode_shlibpath_var=no
2353
 
    hardcode_runpath_var=yes
2354
 
    runpath_var=LD_RUN_PATH
2355
 
    ;;
2356
 
 
2357
 
  sysv5uw7* | unixware7*)
2358
 
    no_undefined_flag='${wl}-z ${wl}text'
2359
 
    if test "$GCC" = yes; then
2360
 
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2361
 
    else
2362
 
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2363
 
    fi
2364
 
    runpath_var='LD_RUN_PATH'
2365
 
    hardcode_shlibpath_var=no
2366
 
    ;;
2367
 
 
2368
 
  *)
2369
 
    ld_shlibs=no
2370
 
    ;;
2371
 
  esac
 
1881
  # MS-DOS does not allow filenames that begin with a dot.
 
1882
  lt_cv_objdir=_libs
2372
1883
fi
2373
 
AC_MSG_RESULT([$ld_shlibs])
2374
 
test "$ld_shlibs" = no && can_build_shared=no
2375
 
 
 
1884
rmdir .libs 2>/dev/null])
 
1885
objdir=$lt_cv_objdir
 
1886
])# AC_LIBTOOL_OBJDIR
 
1887
 
 
1888
 
 
1889
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
 
1890
# ----------------------------------------------
2376
1891
# Check hardcoding attributes.
2377
 
AC_MSG_CHECKING([how to hardcode library paths into programs])
2378
 
hardcode_action=
2379
 
if test -n "$hardcode_libdir_flag_spec" || \
2380
 
   test -n "$runpath_var"; then
 
1892
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
1893
[AC_MSG_CHECKING([how to hardcode library paths into programs])
 
1894
_LT_AC_TAGVAR(hardcode_action, $1)=
 
1895
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
 
1896
   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
 
1897
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
2381
1898
 
2382
1899
  # We can hardcode non-existant directories.
2383
 
  if test "$hardcode_direct" != no &&
 
1900
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2384
1901
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2385
1902
     # have to relink, otherwise we might link with an installed library
2386
1903
     # when we should be linking with a yet-to-be-installed one
2387
 
     ## test "$hardcode_shlibpath_var" != no &&
2388
 
     test "$hardcode_minus_L" != no; then
 
1904
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
1905
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2389
1906
    # Linking always hardcodes the temporary library directory.
2390
 
    hardcode_action=relink
 
1907
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
2391
1908
  else
2392
1909
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
2393
 
    hardcode_action=immediate
 
1910
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2394
1911
  fi
2395
1912
else
2396
1913
  # We cannot hardcode anything, or else we can only hardcode existing
2397
1914
  # directories.
2398
 
  hardcode_action=unsupported
2399
 
fi
2400
 
AC_MSG_RESULT([$hardcode_action])
2401
 
 
2402
 
striplib=
 
1915
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
1916
fi
 
1917
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
1918
 
 
1919
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
1920
  # Fast installation is not supported
 
1921
  enable_fast_install=no
 
1922
elif test "$shlibpath_overrides_runpath" = yes ||
 
1923
     test "$enable_shared" = no; then
 
1924
  # Fast installation is not necessary
 
1925
  enable_fast_install=needless
 
1926
fi
 
1927
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
 
1928
 
 
1929
 
 
1930
# AC_LIBTOOL_SYS_LIB_STRIP
 
1931
# ------------------------
 
1932
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
 
1933
[striplib=
2403
1934
old_striplib=
2404
1935
AC_MSG_CHECKING([whether stripping libraries is possible])
2405
1936
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2407
1938
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2408
1939
  AC_MSG_RESULT([yes])
2409
1940
else
2410
 
  AC_MSG_RESULT([no])
2411
 
fi
2412
 
 
2413
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2414
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
2415
 
 
 
1941
# FIXME - insert some real tests, host_os isn't really good enough
 
1942
  case $host_os in
 
1943
   darwin*)
 
1944
       if test -n "$STRIP" ; then
 
1945
         striplib="$STRIP -x"
 
1946
         AC_MSG_RESULT([yes])
 
1947
       else
 
1948
  AC_MSG_RESULT([no])
 
1949
fi
 
1950
       ;;
 
1951
   *)
 
1952
  AC_MSG_RESULT([no])
 
1953
    ;;
 
1954
  esac
 
1955
fi
 
1956
])# AC_LIBTOOL_SYS_LIB_STRIP
 
1957
 
 
1958
 
 
1959
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
1960
# -----------------------------
2416
1961
# PORTME Fill in your ld.so characteristics
2417
 
AC_MSG_CHECKING([dynamic linker characteristics])
 
1962
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
 
1963
[AC_MSG_CHECKING([dynamic linker characteristics])
2418
1964
library_names_spec=
2419
1965
libname_spec='lib$name'
2420
1966
soname_spec=
 
1967
shrext=".so"
2421
1968
postinstall_cmds=
2422
1969
postuninstall_cmds=
2423
1970
finish_cmds=
2427
1974
version_type=none
2428
1975
dynamic_linker="$host_os ld.so"
2429
1976
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2430
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
1977
if test "$GCC" = yes; then
 
1978
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1979
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1980
    # if the path contains ";" then we assume it to be the separator
 
1981
    # otherwise default to the standard path separator (i.e. ":") - it is
 
1982
    # assumed that no part of a normal pathname contains ";" but that should
 
1983
    # okay in the real world where ";" in dirpaths is itself problematic.
 
1984
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1985
  else
 
1986
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1987
  fi
 
1988
else
 
1989
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
1990
fi
 
1991
need_lib_prefix=unknown
 
1992
hardcode_into_libs=no
 
1993
 
 
1994
# when you set need_version to no, make sure it does not cause -set_version
 
1995
# flags to be left without arguments
 
1996
need_version=unknown
2431
1997
 
2432
1998
case $host_os in
2433
1999
aix3*)
2434
2000
  version_type=linux
2435
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
 
2001
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2436
2002
  shlibpath_var=LIBPATH
2437
2003
 
2438
 
  # AIX has no versioning support, so we append a major version to the name.
2439
 
  soname_spec='${libname}${release}.so$major'
 
2004
  # AIX 3 has no versioning support, so we append a major version to the name.
 
2005
  soname_spec='${libname}${release}${shared_ext}$major'
2440
2006
  ;;
2441
2007
 
2442
2008
aix4* | aix5*)
2443
2009
  version_type=linux
 
2010
  need_lib_prefix=no
 
2011
  need_version=no
 
2012
  hardcode_into_libs=yes
2444
2013
  if test "$host_cpu" = ia64; then
2445
2014
    # AIX 5 supports IA64
2446
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
 
2015
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2447
2016
    shlibpath_var=LD_LIBRARY_PATH
2448
2017
  else
2449
2018
    # With GCC up to 2.95.x, collect2 would create an import file
2453
2022
    # development snapshots of GCC prior to 3.0.
2454
2023
    case $host_os in
2455
2024
      aix4 | aix4.[[01]] | aix4.[[01]].*)
2456
 
        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2457
 
             echo ' yes '
2458
 
             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2459
 
          :
2460
 
        else
2461
 
          can_build_shared=no
2462
 
        fi
2463
 
        ;;
 
2025
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
2026
           echo ' yes '
 
2027
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
2028
        :
 
2029
      else
 
2030
        can_build_shared=no
 
2031
      fi
 
2032
      ;;
2464
2033
    esac
2465
 
    # AIX (on Power*) has no versioning support, so currently we can
2466
 
    # not hardcode correct soname into executable. Probably we can
2467
 
    # add versioning support to collect2, so additional links can
2468
 
    # be useful in future.
 
2034
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
2035
    # soname into executable. Probably we can add versioning support to
 
2036
    # collect2, so additional links can be useful in future.
2469
2037
    if test "$aix_use_runtimelinking" = yes; then
2470
2038
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2471
2039
      # instead of lib<name>.a to let people know that these are not
2472
2040
      # typical AIX shared libraries.
2473
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
2041
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2474
2042
    else
2475
2043
      # We preserve .a as extension for shared libraries through AIX4.2
2476
2044
      # and later when we are not doing run time linking.
2477
2045
      library_names_spec='${libname}${release}.a $libname.a'
2478
 
      soname_spec='${libname}${release}.so$major'
 
2046
      soname_spec='${libname}${release}${shared_ext}$major'
2479
2047
    fi
2480
2048
    shlibpath_var=LIBPATH
2481
2049
  fi
2484
2052
amigaos*)
2485
2053
  library_names_spec='$libname.ixlibrary $libname.a'
2486
2054
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
2487
 
  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'
 
2055
  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'
2488
2056
  ;;
2489
2057
 
2490
2058
beos*)
2491
 
  library_names_spec='${libname}.so'
 
2059
  library_names_spec='${libname}${shared_ext}'
2492
2060
  dynamic_linker="$host_os ld.so"
2493
2061
  shlibpath_var=LIBRARY_PATH
2494
2062
  ;;
2496
2064
bsdi4*)
2497
2065
  version_type=linux
2498
2066
  need_version=no
2499
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2500
 
  soname_spec='${libname}${release}.so$major'
 
2067
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2068
  soname_spec='${libname}${release}${shared_ext}$major'
2501
2069
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2502
2070
  shlibpath_var=LD_LIBRARY_PATH
2503
2071
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2504
2072
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2505
 
  export_dynamic_flag_spec=-rdynamic
2506
2073
  # the default ld.so.conf also contains /usr/contrib/lib and
2507
2074
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2508
2075
  # libtool to hard-code these into programs
2510
2077
 
2511
2078
cygwin* | mingw* | pw32*)
2512
2079
  version_type=windows
 
2080
  shrext=".dll"
2513
2081
  need_version=no
2514
2082
  need_lib_prefix=no
 
2083
 
2515
2084
  case $GCC,$host_os in
2516
 
  yes,cygwin*)
 
2085
  yes,cygwin* | yes,mingw* | yes,pw32*)
2517
2086
    library_names_spec='$libname.dll.a'
2518
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
2519
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
 
2087
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
2088
    postinstall_cmds='base_file=`basename \${file}`~
 
2089
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2520
2090
      dldir=$destdir/`dirname \$dlpath`~
2521
2091
      test -d \$dldir || mkdir -p \$dldir~
2522
 
      $install_prog .libs/$dlname \$dldir/$dlname'
2523
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
2092
      $install_prog $dir/$dlname \$dldir/$dlname'
 
2093
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2524
2094
      dlpath=$dir/\$dldll~
2525
2095
       $rm \$dlpath'
2526
 
    ;;
2527
 
  yes,mingw*)
2528
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
2529
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
2530
 
    ;;
2531
 
  yes,pw32*)
2532
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
2533
 
    ;;
 
2096
    shlibpath_overrides_runpath=yes
 
2097
 
 
2098
    case $host_os in
 
2099
    cygwin*)
 
2100
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
2101
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2102
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
2103
      ;;
 
2104
    mingw*)
 
2105
      # MinGW DLLs use traditional 'lib' prefix
 
2106
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2107
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
2108
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
2109
        # It is most probably a Windows format PATH printed by
 
2110
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
2111
        # path with ; separators, and with drive letters. We can handle the
 
2112
        # drive letters (cygwin fileutils understands them), so leave them,
 
2113
        # especially as we might pass files found there to a mingw objdump,
 
2114
        # which wouldn't understand a cygwinified path. Ahh.
 
2115
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2116
      else
 
2117
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2118
      fi
 
2119
      ;;
 
2120
    pw32*)
 
2121
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
2122
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
2123
      ;;
 
2124
    esac
 
2125
    ;;
 
2126
 
2534
2127
  *)
2535
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
 
2128
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2536
2129
    ;;
2537
2130
  esac
2538
2131
  dynamic_linker='Win32 ld.exe'
2545
2138
  version_type=darwin
2546
2139
  need_lib_prefix=no
2547
2140
  need_version=no
2548
 
  # FIXME: Relying on posixy $() will cause problems for
2549
 
  #        cross-compilation, but unfortunately the echo tests do not
2550
 
  #        yet detect zsh echo's removal of \ escapes.
2551
 
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
2552
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
 
2141
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
2142
  soname_spec='${libname}${release}${major}$shared_ext'
2553
2143
  shlibpath_overrides_runpath=yes
2554
2144
  shlibpath_var=DYLD_LIBRARY_PATH
 
2145
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
2146
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
2147
  if test "$GCC" = yes; then
 
2148
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
2149
  else
 
2150
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
2151
  fi
 
2152
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
2153
  ;;
 
2154
 
 
2155
dgux*)
 
2156
  version_type=linux
 
2157
  need_lib_prefix=no
 
2158
  need_version=no
 
2159
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
2160
  soname_spec='${libname}${release}${shared_ext}$major'
 
2161
  shlibpath_var=LD_LIBRARY_PATH
2555
2162
  ;;
2556
2163
 
2557
2164
freebsd1*)
2558
2165
  dynamic_linker=no
2559
2166
  ;;
2560
2167
 
 
2168
kfreebsd*-gnu)
 
2169
  version_type=linux
 
2170
  need_lib_prefix=no
 
2171
  need_version=no
 
2172
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
2173
  soname_spec='${libname}${release}${shared_ext}$major'
 
2174
  shlibpath_var=LD_LIBRARY_PATH
 
2175
  shlibpath_overrides_runpath=no
 
2176
  hardcode_into_libs=yes
 
2177
  dynamic_linker='GNU ld.so'
 
2178
  ;;
 
2179
 
2561
2180
freebsd*)
2562
2181
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2563
2182
  version_type=freebsd-$objformat
2564
2183
  case $version_type in
2565
2184
    freebsd-elf*)
2566
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
2185
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2567
2186
      need_version=no
2568
2187
      need_lib_prefix=no
2569
2188
      ;;
2570
2189
    freebsd-*)
2571
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
 
2190
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2572
2191
      need_version=yes
2573
2192
      ;;
2574
2193
  esac
2577
2196
  freebsd2*)
2578
2197
    shlibpath_overrides_runpath=yes
2579
2198
    ;;
2580
 
  *)
 
2199
  freebsd3.[01]* | freebsdelf3.[01]*)
 
2200
    shlibpath_overrides_runpath=yes
 
2201
    hardcode_into_libs=yes
 
2202
    ;;
 
2203
  *) # from 3.2 on
2581
2204
    shlibpath_overrides_runpath=no
2582
2205
    hardcode_into_libs=yes
2583
2206
    ;;
2588
2211
  version_type=linux
2589
2212
  need_lib_prefix=no
2590
2213
  need_version=no
2591
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
2592
 
  soname_spec='${libname}${release}.so$major'
 
2214
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
2215
  soname_spec='${libname}${release}${shared_ext}$major'
2593
2216
  shlibpath_var=LD_LIBRARY_PATH
2594
2217
  hardcode_into_libs=yes
2595
2218
  ;;
2597
2220
hpux9* | hpux10* | hpux11*)
2598
2221
  # Give a soname corresponding to the major version so that dld.sl refuses to
2599
2222
  # link against other versions.
2600
 
  dynamic_linker="$host_os dld.sl"
2601
2223
  version_type=sunos
2602
2224
  need_lib_prefix=no
2603
2225
  need_version=no
2604
 
  shlibpath_var=SHLIB_PATH
2605
 
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2606
 
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
2607
 
  soname_spec='${libname}${release}.sl$major'
 
2226
  case "$host_cpu" in
 
2227
  ia64*)
 
2228
    shrext='.so'
 
2229
    hardcode_into_libs=yes
 
2230
    dynamic_linker="$host_os dld.so"
 
2231
    shlibpath_var=LD_LIBRARY_PATH
 
2232
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
2233
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2234
    soname_spec='${libname}${release}${shared_ext}$major'
 
2235
    if test "X$HPUX_IA64_MODE" = X32; then
 
2236
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
2237
    else
 
2238
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
2239
    fi
 
2240
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
2241
    ;;
 
2242
   hppa*64*)
 
2243
     shrext='.sl'
 
2244
     hardcode_into_libs=yes
 
2245
     dynamic_linker="$host_os dld.sl"
 
2246
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
2247
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
2248
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2249
     soname_spec='${libname}${release}${shared_ext}$major'
 
2250
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
2251
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
2252
     ;;
 
2253
   *)
 
2254
    shrext='.sl'
 
2255
    dynamic_linker="$host_os dld.sl"
 
2256
    shlibpath_var=SHLIB_PATH
 
2257
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
2258
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2259
    soname_spec='${libname}${release}${shared_ext}$major'
 
2260
    ;;
 
2261
  esac
2608
2262
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
2609
2263
  postinstall_cmds='chmod 555 $lib'
2610
2264
  ;;
2611
2265
 
2612
 
irix5* | irix6*)
2613
 
  version_type=irix
 
2266
irix5* | irix6* | nonstopux*)
 
2267
  case $host_os in
 
2268
    nonstopux*) version_type=nonstopux ;;
 
2269
    *)
 
2270
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
2271
                version_type=linux
 
2272
        else
 
2273
                version_type=irix
 
2274
        fi ;;
 
2275
  esac
2614
2276
  need_lib_prefix=no
2615
2277
  need_version=no
2616
 
  soname_spec='${libname}${release}.so$major'
2617
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
 
2278
  soname_spec='${libname}${release}${shared_ext}$major'
 
2279
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2618
2280
  case $host_os in
2619
 
  irix5*)
 
2281
  irix5* | nonstopux*)
2620
2282
    libsuff= shlibsuff=
2621
2283
    ;;
2622
2284
  *)
2623
2285
    case $LD in # libtool.m4 will add one of these switches to LD
2624
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
2625
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
2626
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
2286
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
2287
      libsuff= shlibsuff= libmagic=32-bit;;
 
2288
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
2289
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
2290
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
2291
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
2627
2292
    *) libsuff= shlibsuff= libmagic=never-match;;
2628
2293
    esac
2629
2294
    ;;
2632
2297
  shlibpath_overrides_runpath=no
2633
2298
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2634
2299
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
2300
  hardcode_into_libs=yes
2635
2301
  ;;
2636
2302
 
2637
2303
# No shared lib support for Linux oldld, aout, or coff.
2644
2310
  version_type=linux
2645
2311
  need_lib_prefix=no
2646
2312
  need_version=no
2647
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2648
 
  soname_spec='${libname}${release}.so$major'
 
2313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2314
  soname_spec='${libname}${release}${shared_ext}$major'
2649
2315
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2650
2316
  shlibpath_var=LD_LIBRARY_PATH
2651
2317
  shlibpath_overrides_runpath=no
2654
2320
  # before this can be enabled.
2655
2321
  hardcode_into_libs=yes
2656
2322
 
 
2323
  # Append ld.so.conf contents to the search path
 
2324
  if test -f /etc/ld.so.conf; then
 
2325
    ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf`
 
2326
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
2327
  fi
 
2328
 
2657
2329
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2658
2330
  # powerpc, because MkLinux only supported shared libraries with the
2659
2331
  # GNU dynamic linker.  Since this was broken with cross compilers,
2663
2335
  dynamic_linker='GNU/Linux ld.so'
2664
2336
  ;;
2665
2337
 
 
2338
knetbsd*-gnu)
 
2339
  version_type=linux
 
2340
  need_lib_prefix=no
 
2341
  need_version=no
 
2342
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
2343
  soname_spec='${libname}${release}${shared_ext}$major'
 
2344
  shlibpath_var=LD_LIBRARY_PATH
 
2345
  shlibpath_overrides_runpath=no
 
2346
  hardcode_into_libs=yes
 
2347
  dynamic_linker='GNU ld.so'
 
2348
  ;;
 
2349
 
2666
2350
netbsd*)
2667
2351
  version_type=sunos
2668
2352
  need_lib_prefix=no
2669
2353
  need_version=no
2670
2354
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2671
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
2355
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2672
2356
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2673
2357
    dynamic_linker='NetBSD (a.out) ld.so'
2674
2358
  else
2675
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
2676
 
    soname_spec='${libname}${release}.so$major'
 
2359
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
2360
    soname_spec='${libname}${release}${shared_ext}$major'
2677
2361
    dynamic_linker='NetBSD ld.elf_so'
2678
2362
  fi
2679
2363
  shlibpath_var=LD_LIBRARY_PATH
2683
2367
 
2684
2368
newsos6)
2685
2369
  version_type=linux
2686
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
2370
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2371
  shlibpath_var=LD_LIBRARY_PATH
 
2372
  shlibpath_overrides_runpath=yes
 
2373
  ;;
 
2374
 
 
2375
nto-qnx*)
 
2376
  version_type=linux
 
2377
  need_lib_prefix=no
 
2378
  need_version=no
 
2379
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2380
  soname_spec='${libname}${release}${shared_ext}$major'
2687
2381
  shlibpath_var=LD_LIBRARY_PATH
2688
2382
  shlibpath_overrides_runpath=yes
2689
2383
  ;;
2691
2385
openbsd*)
2692
2386
  version_type=sunos
2693
2387
  need_lib_prefix=no
2694
 
  need_version=no
2695
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2696
 
    case "$host_os" in
2697
 
    openbsd2.[[89]] | openbsd2.[[89]].*)
2698
 
      shlibpath_overrides_runpath=no
2699
 
      ;;
2700
 
    *)
2701
 
      shlibpath_overrides_runpath=yes
2702
 
      ;;
2703
 
    esac
2704
 
  else
2705
 
    shlibpath_overrides_runpath=yes
2706
 
  fi
2707
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
2388
  need_version=yes
 
2389
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2708
2390
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2709
2391
  shlibpath_var=LD_LIBRARY_PATH
 
2392
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
2393
    case $host_os in
 
2394
      openbsd2.[[89]] | openbsd2.[[89]].*)
 
2395
        shlibpath_overrides_runpath=no
 
2396
        ;;
 
2397
      *)
 
2398
        shlibpath_overrides_runpath=yes
 
2399
        ;;
 
2400
      esac
 
2401
  else
 
2402
    shlibpath_overrides_runpath=yes
 
2403
  fi
2710
2404
  ;;
2711
2405
 
2712
2406
os2*)
2713
2407
  libname_spec='$name'
 
2408
  shrext=".dll"
2714
2409
  need_lib_prefix=no
2715
 
  library_names_spec='$libname.dll $libname.a'
 
2410
  library_names_spec='$libname${shared_ext} $libname.a'
2716
2411
  dynamic_linker='OS/2 ld.exe'
2717
2412
  shlibpath_var=LIBPATH
2718
2413
  ;;
2719
2414
 
2720
2415
osf3* | osf4* | osf5*)
2721
2416
  version_type=osf
 
2417
  need_lib_prefix=no
2722
2418
  need_version=no
2723
 
  soname_spec='${libname}${release}.so'
2724
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
2419
  soname_spec='${libname}${release}${shared_ext}$major'
 
2420
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2725
2421
  shlibpath_var=LD_LIBRARY_PATH
2726
2422
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2727
2423
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2729
2425
 
2730
2426
sco3.2v5*)
2731
2427
  version_type=osf
2732
 
  soname_spec='${libname}${release}.so$major'
2733
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
2428
  soname_spec='${libname}${release}${shared_ext}$major'
 
2429
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2734
2430
  shlibpath_var=LD_LIBRARY_PATH
2735
2431
  ;;
2736
2432
 
2738
2434
  version_type=linux
2739
2435
  need_lib_prefix=no
2740
2436
  need_version=no
2741
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2742
 
  soname_spec='${libname}${release}.so$major'
 
2437
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2438
  soname_spec='${libname}${release}${shared_ext}$major'
2743
2439
  shlibpath_var=LD_LIBRARY_PATH
2744
2440
  shlibpath_overrides_runpath=yes
2745
2441
  hardcode_into_libs=yes
2749
2445
 
2750
2446
sunos4*)
2751
2447
  version_type=sunos
2752
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
2448
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2753
2449
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2754
2450
  shlibpath_var=LD_LIBRARY_PATH
2755
2451
  shlibpath_overrides_runpath=yes
2761
2457
 
2762
2458
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2763
2459
  version_type=linux
2764
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2765
 
  soname_spec='${libname}${release}.so$major'
 
2460
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2461
  soname_spec='${libname}${release}${shared_ext}$major'
2766
2462
  shlibpath_var=LD_LIBRARY_PATH
2767
2463
  case $host_vendor in
2768
2464
    sni)
2769
2465
      shlibpath_overrides_runpath=no
 
2466
      need_lib_prefix=no
 
2467
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
2468
      runpath_var=LD_RUN_PATH
 
2469
      ;;
 
2470
    siemens)
 
2471
      need_lib_prefix=no
2770
2472
      ;;
2771
2473
    motorola)
2772
2474
      need_lib_prefix=no
2777
2479
  esac
2778
2480
  ;;
2779
2481
 
2780
 
uts4*)
2781
 
  version_type=linux
2782
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2783
 
  soname_spec='${libname}${release}.so$major'
2784
 
  shlibpath_var=LD_LIBRARY_PATH
2785
 
  ;;
2786
 
 
2787
 
dgux*)
2788
 
  version_type=linux
2789
 
  need_lib_prefix=no
2790
 
  need_version=no
2791
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2792
 
  soname_spec='${libname}${release}.so$major'
2793
 
  shlibpath_var=LD_LIBRARY_PATH
2794
 
  ;;
2795
 
 
2796
2482
sysv4*MP*)
2797
2483
  if test -d /usr/nec ;then
2798
2484
    version_type=linux
2799
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
2800
 
    soname_spec='$libname.so.$major'
 
2485
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
2486
    soname_spec='$libname${shared_ext}.$major'
2801
2487
    shlibpath_var=LD_LIBRARY_PATH
2802
2488
  fi
2803
2489
  ;;
2804
2490
 
 
2491
uts4*)
 
2492
  version_type=linux
 
2493
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2494
  soname_spec='${libname}${release}${shared_ext}$major'
 
2495
  shlibpath_var=LD_LIBRARY_PATH
 
2496
  ;;
 
2497
 
2805
2498
*)
2806
2499
  dynamic_linker=no
2807
2500
  ;;
2808
2501
esac
2809
2502
AC_MSG_RESULT([$dynamic_linker])
2810
2503
test "$dynamic_linker" = no && can_build_shared=no
2811
 
 
2812
 
# Report the final consequences.
 
2504
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
2505
 
 
2506
 
 
2507
# _LT_AC_TAGCONFIG
 
2508
# ----------------
 
2509
AC_DEFUN([_LT_AC_TAGCONFIG],
 
2510
[AC_ARG_WITH([tags],
 
2511
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
 
2512
        [include additional configurations @<:@automatic@:>@])],
 
2513
    [tagnames="$withval"])
 
2514
 
 
2515
if test -f "$ltmain" && test -n "$tagnames"; then
 
2516
  if test ! -f "${ofile}"; then
 
2517
    AC_MSG_WARN([output file `$ofile' does not exist])
 
2518
  fi
 
2519
 
 
2520
  if test -z "$LTCC"; then
 
2521
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
2522
    if test -z "$LTCC"; then
 
2523
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
 
2524
    else
 
2525
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
 
2526
    fi
 
2527
  fi
 
2528
 
 
2529
  # Extract list of available tagged configurations in $ofile.
 
2530
  # Note that this assumes the entire list is on one line.
 
2531
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
2532
 
 
2533
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2534
  for tagname in $tagnames; do
 
2535
    IFS="$lt_save_ifs"
 
2536
    # Check whether tagname contains only valid characters
 
2537
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
 
2538
    "") ;;
 
2539
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
 
2540
        ;;
 
2541
    esac
 
2542
 
 
2543
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
2544
    then
 
2545
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
 
2546
    fi
 
2547
 
 
2548
    # Update the list of available tags.
 
2549
    if test -n "$tagname"; then
 
2550
      echo appending configuration tag \"$tagname\" to $ofile
 
2551
 
 
2552
      case $tagname in
 
2553
      CXX)
 
2554
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
2555
          AC_LIBTOOL_LANG_CXX_CONFIG
 
2556
        else
 
2557
          tagname=""
 
2558
        fi
 
2559
        ;;
 
2560
 
 
2561
      F77)
 
2562
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
2563
          AC_LIBTOOL_LANG_F77_CONFIG
 
2564
        else
 
2565
          tagname=""
 
2566
        fi
 
2567
        ;;
 
2568
 
 
2569
      GCJ)
 
2570
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
2571
          AC_LIBTOOL_LANG_GCJ_CONFIG
 
2572
        else
 
2573
          tagname=""
 
2574
        fi
 
2575
        ;;
 
2576
 
 
2577
      RC)
 
2578
        AC_LIBTOOL_LANG_RC_CONFIG
 
2579
        ;;
 
2580
 
 
2581
      *)
 
2582
        AC_MSG_ERROR([Unsupported tag name: $tagname])
 
2583
        ;;
 
2584
      esac
 
2585
 
 
2586
      # Append the new tag name to the list of available tags.
 
2587
      if test -n "$tagname" ; then
 
2588
      available_tags="$available_tags $tagname"
 
2589
    fi
 
2590
    fi
 
2591
  done
 
2592
  IFS="$lt_save_ifs"
 
2593
 
 
2594
  # Now substitute the updated list of available tags.
 
2595
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
2596
    mv "${ofile}T" "$ofile"
 
2597
    chmod +x "$ofile"
 
2598
  else
 
2599
    rm -f "${ofile}T"
 
2600
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
 
2601
  fi
 
2602
fi
 
2603
])# _LT_AC_TAGCONFIG
 
2604
 
 
2605
 
 
2606
# AC_LIBTOOL_DLOPEN
 
2607
# -----------------
 
2608
# enable checks for dlopen support
 
2609
AC_DEFUN([AC_LIBTOOL_DLOPEN],
 
2610
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
 
2611
])# AC_LIBTOOL_DLOPEN
 
2612
 
 
2613
 
 
2614
# AC_LIBTOOL_WIN32_DLL
 
2615
# --------------------
 
2616
# declare package support for building win32 dll's
 
2617
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
2618
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
 
2619
])# AC_LIBTOOL_WIN32_DLL
 
2620
 
 
2621
 
 
2622
# AC_ENABLE_SHARED([DEFAULT])
 
2623
# ---------------------------
 
2624
# implement the --enable-shared flag
 
2625
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
2626
AC_DEFUN([AC_ENABLE_SHARED],
 
2627
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
 
2628
AC_ARG_ENABLE([shared],
 
2629
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
2630
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
 
2631
    [p=${PACKAGE-default}
 
2632
    case $enableval in
 
2633
    yes) enable_shared=yes ;;
 
2634
    no) enable_shared=no ;;
 
2635
    *)
 
2636
      enable_shared=no
 
2637
      # Look at the argument we got.  We use all the common list separators.
 
2638
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2639
      for pkg in $enableval; do
 
2640
        IFS="$lt_save_ifs"
 
2641
        if test "X$pkg" = "X$p"; then
 
2642
          enable_shared=yes
 
2643
        fi
 
2644
      done
 
2645
      IFS="$lt_save_ifs"
 
2646
      ;;
 
2647
    esac],
 
2648
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
 
2649
])# AC_ENABLE_SHARED
 
2650
 
 
2651
 
 
2652
# AC_DISABLE_SHARED
 
2653
# -----------------
 
2654
#- set the default shared flag to --disable-shared
 
2655
AC_DEFUN([AC_DISABLE_SHARED],
 
2656
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2657
AC_ENABLE_SHARED(no)
 
2658
])# AC_DISABLE_SHARED
 
2659
 
 
2660
 
 
2661
# AC_ENABLE_STATIC([DEFAULT])
 
2662
# ---------------------------
 
2663
# implement the --enable-static flag
 
2664
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
2665
AC_DEFUN([AC_ENABLE_STATIC],
 
2666
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
 
2667
AC_ARG_ENABLE([static],
 
2668
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
2669
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
 
2670
    [p=${PACKAGE-default}
 
2671
    case $enableval in
 
2672
    yes) enable_static=yes ;;
 
2673
    no) enable_static=no ;;
 
2674
    *)
 
2675
     enable_static=no
 
2676
      # Look at the argument we got.  We use all the common list separators.
 
2677
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2678
      for pkg in $enableval; do
 
2679
        IFS="$lt_save_ifs"
 
2680
        if test "X$pkg" = "X$p"; then
 
2681
          enable_static=yes
 
2682
        fi
 
2683
      done
 
2684
      IFS="$lt_save_ifs"
 
2685
      ;;
 
2686
    esac],
 
2687
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
 
2688
])# AC_ENABLE_STATIC
 
2689
 
 
2690
 
 
2691
# AC_DISABLE_STATIC
 
2692
# -----------------
 
2693
# set the default static flag to --disable-static
 
2694
AC_DEFUN([AC_DISABLE_STATIC],
 
2695
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2696
AC_ENABLE_STATIC(no)
 
2697
])# AC_DISABLE_STATIC
 
2698
 
 
2699
 
 
2700
# AC_ENABLE_FAST_INSTALL([DEFAULT])
 
2701
# ---------------------------------
 
2702
# implement the --enable-fast-install flag
 
2703
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
2704
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
 
2705
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
 
2706
AC_ARG_ENABLE([fast-install],
 
2707
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
2708
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
2709
    [p=${PACKAGE-default}
 
2710
    case $enableval in
 
2711
    yes) enable_fast_install=yes ;;
 
2712
    no) enable_fast_install=no ;;
 
2713
    *)
 
2714
      enable_fast_install=no
 
2715
      # Look at the argument we got.  We use all the common list separators.
 
2716
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2717
      for pkg in $enableval; do
 
2718
        IFS="$lt_save_ifs"
 
2719
        if test "X$pkg" = "X$p"; then
 
2720
          enable_fast_install=yes
 
2721
        fi
 
2722
      done
 
2723
      IFS="$lt_save_ifs"
 
2724
      ;;
 
2725
    esac],
 
2726
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
 
2727
])# AC_ENABLE_FAST_INSTALL
 
2728
 
 
2729
 
 
2730
# AC_DISABLE_FAST_INSTALL
 
2731
# -----------------------
 
2732
# set the default to --disable-fast-install
 
2733
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
 
2734
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2735
AC_ENABLE_FAST_INSTALL(no)
 
2736
])# AC_DISABLE_FAST_INSTALL
 
2737
 
 
2738
 
 
2739
# AC_LIBTOOL_PICMODE([MODE])
 
2740
# --------------------------
 
2741
# implement the --with-pic flag
 
2742
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
2743
AC_DEFUN([AC_LIBTOOL_PICMODE],
 
2744
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2745
pic_mode=ifelse($#,1,$1,default)
 
2746
])# AC_LIBTOOL_PICMODE
 
2747
 
 
2748
 
 
2749
# AC_PROG_EGREP
 
2750
# -------------
 
2751
# This is predefined starting with Autoconf 2.54, so this conditional
 
2752
# definition can be removed once we require Autoconf 2.54 or later.
 
2753
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
 
2754
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
 
2755
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
2756
    then ac_cv_prog_egrep='grep -E'
 
2757
    else ac_cv_prog_egrep='egrep'
 
2758
    fi])
 
2759
 EGREP=$ac_cv_prog_egrep
 
2760
 AC_SUBST([EGREP])
 
2761
])])
 
2762
 
 
2763
 
 
2764
# AC_PATH_TOOL_PREFIX
 
2765
# -------------------
 
2766
# find a file program which can recognise shared library
 
2767
AC_DEFUN([AC_PATH_TOOL_PREFIX],
 
2768
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
2769
AC_MSG_CHECKING([for $1])
 
2770
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
 
2771
[case $MAGIC_CMD in
 
2772
[[\\/*] |  ?:[\\/]*])
 
2773
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
2774
  ;;
 
2775
*)
 
2776
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
2777
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2778
dnl $ac_dummy forces splitting on constant user-supplied paths.
 
2779
dnl POSIX.2 word splitting is done only on the output of word expansions,
 
2780
dnl not every word.  This closes a longstanding sh security hole.
 
2781
  ac_dummy="ifelse([$2], , $PATH, [$2])"
 
2782
  for ac_dir in $ac_dummy; do
 
2783
    IFS="$lt_save_ifs"
 
2784
    test -z "$ac_dir" && ac_dir=.
 
2785
    if test -f $ac_dir/$1; then
 
2786
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
 
2787
      if test -n "$file_magic_test_file"; then
 
2788
        case $deplibs_check_method in
 
2789
        "file_magic "*)
 
2790
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
2791
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
2792
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
2793
            $EGREP "$file_magic_regex" > /dev/null; then
 
2794
            :
 
2795
          else
 
2796
            cat <<EOF 1>&2
 
2797
 
 
2798
*** Warning: the command libtool uses to detect shared libraries,
 
2799
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
2800
*** The result is that libtool may fail to recognize shared libraries
 
2801
*** as such.  This will affect the creation of libtool libraries that
 
2802
*** depend on shared libraries, but programs linked with such libtool
 
2803
*** libraries will work regardless of this problem.  Nevertheless, you
 
2804
*** may want to report the problem to your system manager and/or to
 
2805
*** bug-libtool@gnu.org
 
2806
 
 
2807
EOF
 
2808
          fi ;;
 
2809
        esac
 
2810
      fi
 
2811
      break
 
2812
    fi
 
2813
  done
 
2814
  IFS="$lt_save_ifs"
 
2815
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
2816
  ;;
 
2817
esac])
 
2818
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
2819
if test -n "$MAGIC_CMD"; then
 
2820
  AC_MSG_RESULT($MAGIC_CMD)
 
2821
else
 
2822
  AC_MSG_RESULT(no)
 
2823
fi
 
2824
])# AC_PATH_TOOL_PREFIX
 
2825
 
 
2826
 
 
2827
# AC_PATH_MAGIC
 
2828
# -------------
 
2829
# find a file program which can recognise a shared library
 
2830
AC_DEFUN([AC_PATH_MAGIC],
 
2831
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
2832
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
2833
  if test -n "$ac_tool_prefix"; then
 
2834
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
2835
  else
 
2836
    MAGIC_CMD=:
 
2837
  fi
 
2838
fi
 
2839
])# AC_PATH_MAGIC
 
2840
 
 
2841
 
 
2842
# AC_PROG_LD
 
2843
# ----------
 
2844
# find the pathname to the GNU or non-GNU linker
 
2845
AC_DEFUN([AC_PROG_LD],
 
2846
[AC_ARG_WITH([gnu-ld],
 
2847
    [AC_HELP_STRING([--with-gnu-ld],
 
2848
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
 
2849
    [test "$withval" = no || with_gnu_ld=yes],
 
2850
    [with_gnu_ld=no])
 
2851
AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2852
AC_REQUIRE([AC_PROG_CC])dnl
 
2853
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2854
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
2855
ac_prog=ld
 
2856
if test "$GCC" = yes; then
 
2857
  # Check if gcc -print-prog-name=ld gives a path.
 
2858
  AC_MSG_CHECKING([for ld used by $CC])
 
2859
  case $host in
 
2860
  *-*-mingw*)
 
2861
    # gcc leaves a trailing carriage return which upsets mingw
 
2862
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
2863
  *)
 
2864
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
2865
  esac
 
2866
  case $ac_prog in
 
2867
    # Accept absolute paths.
 
2868
    [[\\/]]* | ?:[[\\/]]*)
 
2869
      re_direlt='/[[^/]][[^/]]*/\.\./'
 
2870
      # Canonicalize the pathname of ld
 
2871
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
2872
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
2873
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
2874
      done
 
2875
      test -z "$LD" && LD="$ac_prog"
 
2876
      ;;
 
2877
  "")
 
2878
    # If it fails, then pretend we aren't using GCC.
 
2879
    ac_prog=ld
 
2880
    ;;
 
2881
  *)
 
2882
    # If it is relative, then search for the first ld in PATH.
 
2883
    with_gnu_ld=unknown
 
2884
    ;;
 
2885
  esac
 
2886
elif test "$with_gnu_ld" = yes; then
 
2887
  AC_MSG_CHECKING([for GNU ld])
 
2888
else
 
2889
  AC_MSG_CHECKING([for non-GNU ld])
 
2890
fi
 
2891
AC_CACHE_VAL(lt_cv_path_LD,
 
2892
[if test -z "$LD"; then
 
2893
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2894
  for ac_dir in $PATH; do
 
2895
    IFS="$lt_save_ifs"
 
2896
    test -z "$ac_dir" && ac_dir=.
 
2897
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
2898
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
2899
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
2900
      # but apparently some GNU ld's only accept -v.
 
2901
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
2902
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
2903
      *GNU* | *'with BFD'*)
 
2904
        test "$with_gnu_ld" != no && break
 
2905
        ;;
 
2906
      *)
 
2907
        test "$with_gnu_ld" != yes && break
 
2908
        ;;
 
2909
      esac
 
2910
    fi
 
2911
  done
 
2912
  IFS="$lt_save_ifs"
 
2913
else
 
2914
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
2915
fi])
 
2916
LD="$lt_cv_path_LD"
 
2917
if test -n "$LD"; then
 
2918
  AC_MSG_RESULT($LD)
 
2919
else
 
2920
  AC_MSG_RESULT(no)
 
2921
fi
 
2922
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 
2923
AC_PROG_LD_GNU
 
2924
])# AC_PROG_LD
 
2925
 
 
2926
 
 
2927
# AC_PROG_LD_GNU
 
2928
# --------------
 
2929
AC_DEFUN([AC_PROG_LD_GNU],
 
2930
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
2931
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
2932
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
2933
case `$LD -v 2>&1 </dev/null` in
 
2934
*GNU* | *'with BFD'*)
 
2935
  lt_cv_prog_gnu_ld=yes
 
2936
  ;;
 
2937
*)
 
2938
  lt_cv_prog_gnu_ld=no
 
2939
  ;;
 
2940
esac])
 
2941
with_gnu_ld=$lt_cv_prog_gnu_ld
 
2942
])# AC_PROG_LD_GNU
 
2943
 
 
2944
 
 
2945
# AC_PROG_LD_RELOAD_FLAG
 
2946
# ----------------------
 
2947
# find reload flag for linker
 
2948
#   -- PORTME Some linkers may need a different reload flag.
 
2949
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 
2950
[AC_CACHE_CHECK([for $LD option to reload object files],
 
2951
  lt_cv_ld_reload_flag,
 
2952
  [lt_cv_ld_reload_flag='-r'])
 
2953
reload_flag=$lt_cv_ld_reload_flag
 
2954
case $reload_flag in
 
2955
"" | " "*) ;;
 
2956
*) reload_flag=" $reload_flag" ;;
 
2957
esac
 
2958
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2959
])# AC_PROG_LD_RELOAD_FLAG
 
2960
 
 
2961
 
 
2962
# AC_DEPLIBS_CHECK_METHOD
 
2963
# -----------------------
 
2964
# how to check for library dependencies
 
2965
#  -- PORTME fill in with the dynamic library characteristics
 
2966
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
 
2967
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2968
lt_cv_deplibs_check_method,
 
2969
[lt_cv_file_magic_cmd='$MAGIC_CMD'
 
2970
lt_cv_file_magic_test_file=
 
2971
lt_cv_deplibs_check_method='unknown'
 
2972
# Need to set the preceding variable on all platforms that support
 
2973
# interlibrary dependencies.
 
2974
# 'none' -- dependencies not supported.
 
2975
# `unknown' -- same as none, but documents that we really don't know.
 
2976
# 'pass_all' -- all dependencies passed with no checks.
 
2977
# 'test_compile' -- check by making test program.
 
2978
# 'file_magic [[regex]]' -- check by looking for files in library path
 
2979
# which responds to the $file_magic_cmd with a given extended regex.
 
2980
# If you have `file' or equivalent on your system and you're not sure
 
2981
# whether `pass_all' will *always* work, you probably want this one.
 
2982
 
 
2983
case $host_os in
 
2984
aix4* | aix5*)
 
2985
  lt_cv_deplibs_check_method=pass_all
 
2986
  ;;
 
2987
 
 
2988
beos*)
 
2989
  lt_cv_deplibs_check_method=pass_all
 
2990
  ;;
 
2991
 
 
2992
bsdi4*)
 
2993
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
 
2994
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
2995
  lt_cv_file_magic_test_file=/shlib/libc.so
 
2996
  ;;
 
2997
 
 
2998
cygwin*)
 
2999
  # win32_libid is a shell function defined in ltmain.sh
 
3000
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3001
  lt_cv_file_magic_cmd='win32_libid'
 
3002
  ;;
 
3003
 
 
3004
mingw* | pw32*)
 
3005
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3006
  # win32_libid shell function, so use a weaker test based on 'objdump'.
 
3007
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3008
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3009
  ;;
 
3010
 
 
3011
darwin* | rhapsody*)
 
3012
  lt_cv_deplibs_check_method=pass_all
 
3013
  ;;
 
3014
 
 
3015
freebsd* | kfreebsd*-gnu)
 
3016
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3017
    case $host_cpu in
 
3018
    i*86 )
 
3019
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3020
      # Let's accept both of them until this is cleared up.
 
3021
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
 
3022
      lt_cv_file_magic_cmd=/usr/bin/file
 
3023
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3024
      ;;
 
3025
    esac
 
3026
  else
 
3027
    lt_cv_deplibs_check_method=pass_all
 
3028
  fi
 
3029
  ;;
 
3030
 
 
3031
gnu*)
 
3032
  lt_cv_deplibs_check_method=pass_all
 
3033
  ;;
 
3034
 
 
3035
hpux10.20* | hpux11*)
 
3036
  lt_cv_file_magic_cmd=/usr/bin/file
 
3037
  case "$host_cpu" in
 
3038
  ia64*)
 
3039
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
 
3040
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3041
    ;;
 
3042
  hppa*64*)
 
3043
    [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]']
 
3044
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3045
    ;;
 
3046
  *)
 
3047
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
3048
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3049
    ;;
 
3050
  esac
 
3051
  ;;
 
3052
 
 
3053
irix5* | irix6* | nonstopux*)
 
3054
  case $LD in
 
3055
  *-32|*"-32 ") libmagic=32-bit;;
 
3056
  *-n32|*"-n32 ") libmagic=N32;;
 
3057
  *-64|*"-64 ") libmagic=64-bit;;
 
3058
  *) libmagic=never-match;;
 
3059
  esac
 
3060
  lt_cv_deplibs_check_method=pass_all
 
3061
  ;;
 
3062
 
 
3063
# This must be Linux ELF.
 
3064
linux*)
 
3065
  lt_cv_deplibs_check_method=pass_all
 
3066
  ;;
 
3067
 
 
3068
netbsd* | knetbsd*-gnu)
 
3069
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3070
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 
3071
  else
 
3072
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
 
3073
  fi
 
3074
  ;;
 
3075
 
 
3076
newos6*)
 
3077
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
 
3078
  lt_cv_file_magic_cmd=/usr/bin/file
 
3079
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3080
  ;;
 
3081
 
 
3082
nto-qnx*)
 
3083
  lt_cv_deplibs_check_method=unknown
 
3084
  ;;
 
3085
 
 
3086
openbsd*)
 
3087
  lt_cv_file_magic_cmd=/usr/bin/file
 
3088
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3089
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3090
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
 
3091
  else
 
3092
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3093
  fi
 
3094
  ;;
 
3095
 
 
3096
osf3* | osf4* | osf5*)
 
3097
  lt_cv_deplibs_check_method=pass_all
 
3098
  ;;
 
3099
 
 
3100
sco3.2v5*)
 
3101
  lt_cv_deplibs_check_method=pass_all
 
3102
  ;;
 
3103
 
 
3104
solaris*)
 
3105
  lt_cv_deplibs_check_method=pass_all
 
3106
  ;;
 
3107
 
 
3108
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3109
  case $host_vendor in
 
3110
  motorola)
 
3111
    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]]'
 
3112
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3113
    ;;
 
3114
  ncr)
 
3115
    lt_cv_deplibs_check_method=pass_all
 
3116
    ;;
 
3117
  sequent)
 
3118
    lt_cv_file_magic_cmd='/bin/file'
 
3119
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
 
3120
    ;;
 
3121
  sni)
 
3122
    lt_cv_file_magic_cmd='/bin/file'
 
3123
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
 
3124
    lt_cv_file_magic_test_file=/lib/libc.so
 
3125
    ;;
 
3126
  siemens)
 
3127
    lt_cv_deplibs_check_method=pass_all
 
3128
    ;;
 
3129
  esac
 
3130
  ;;
 
3131
 
 
3132
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
3133
  lt_cv_deplibs_check_method=pass_all
 
3134
  ;;
 
3135
esac
 
3136
])
 
3137
file_magic_cmd=$lt_cv_file_magic_cmd
 
3138
deplibs_check_method=$lt_cv_deplibs_check_method
 
3139
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3140
])# AC_DEPLIBS_CHECK_METHOD
 
3141
 
 
3142
 
 
3143
# AC_PROG_NM
 
3144
# ----------
 
3145
# find the pathname to a BSD-compatible name lister
 
3146
AC_DEFUN([AC_PROG_NM],
 
3147
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 
3148
[if test -n "$NM"; then
 
3149
  # Let the user override the test.
 
3150
  lt_cv_path_NM="$NM"
 
3151
else
 
3152
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3153
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3154
    IFS="$lt_save_ifs"
 
3155
    test -z "$ac_dir" && ac_dir=.
 
3156
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
3157
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3158
      # Check to see if the nm accepts a BSD-compat flag.
 
3159
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3160
      #   nm: unknown option "B" ignored
 
3161
      # Tru64's nm complains that /dev/null is an invalid object file
 
3162
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3163
      */dev/null* | *'Invalid file or object type'*)
 
3164
        lt_cv_path_NM="$tmp_nm -B"
 
3165
        break
 
3166
        ;;
 
3167
      *)
 
3168
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3169
        */dev/null*)
 
3170
          lt_cv_path_NM="$tmp_nm -p"
 
3171
          break
 
3172
          ;;
 
3173
        *)
 
3174
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3175
          continue # so that we can try to find one that supports BSD flags
 
3176
          ;;
 
3177
        esac
 
3178
      esac
 
3179
    fi
 
3180
  done
 
3181
  IFS="$lt_save_ifs"
 
3182
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3183
fi])
 
3184
NM="$lt_cv_path_NM"
 
3185
])# AC_PROG_NM
 
3186
 
 
3187
 
 
3188
# AC_CHECK_LIBM
 
3189
# -------------
 
3190
# check for math library
 
3191
AC_DEFUN([AC_CHECK_LIBM],
 
3192
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3193
LIBM=
 
3194
case $host in
 
3195
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
3196
  # These system don't have libm, or don't need it
 
3197
  ;;
 
3198
*-ncr-sysv4.3*)
 
3199
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
 
3200
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
 
3201
  ;;
 
3202
*)
 
3203
  AC_CHECK_LIB(m, cos, LIBM="-lm")
 
3204
  ;;
 
3205
esac
 
3206
])# AC_CHECK_LIBM
 
3207
 
 
3208
 
 
3209
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
 
3210
# -----------------------------------
 
3211
# sets LIBLTDL to the link flags for the libltdl convenience library and
 
3212
# LTDLINCL to the include flags for the libltdl header and adds
 
3213
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
 
3214
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
 
3215
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
 
3216
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
 
3217
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
3218
# flat and you're not using automake, define top_builddir and
 
3219
# top_srcdir appropriately in the Makefiles.
 
3220
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
 
3221
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3222
  case $enable_ltdl_convenience in
 
3223
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
 
3224
  "") enable_ltdl_convenience=yes
 
3225
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
 
3226
  esac
 
3227
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
 
3228
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
3229
  # For backwards non-gettext consistent compatibility...
 
3230
  INCLTDL="$LTDLINCL"
 
3231
])# AC_LIBLTDL_CONVENIENCE
 
3232
 
 
3233
 
 
3234
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
 
3235
# -----------------------------------
 
3236
# sets LIBLTDL to the link flags for the libltdl installable library and
 
3237
# LTDLINCL to the include flags for the libltdl header and adds
 
3238
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
 
3239
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
 
3240
# DIRECTORY is not provided and an installed libltdl is not found, it is
 
3241
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
 
3242
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
 
3243
# quotes!).  If your package is not flat and you're not using automake,
 
3244
# define top_builddir and top_srcdir appropriately in the Makefiles.
 
3245
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
 
3246
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
 
3247
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3248
  AC_CHECK_LIB(ltdl, lt_dlinit,
 
3249
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
 
3250
  [if test x"$enable_ltdl_install" = xno; then
 
3251
     AC_MSG_WARN([libltdl not installed, but installation disabled])
 
3252
   else
 
3253
     enable_ltdl_install=yes
 
3254
   fi
 
3255
  ])
 
3256
  if test x"$enable_ltdl_install" = x"yes"; then
 
3257
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
 
3258
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
 
3259
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
3260
  else
 
3261
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
 
3262
    LIBLTDL="-lltdl"
 
3263
    LTDLINCL=
 
3264
  fi
 
3265
  # For backwards non-gettext consistent compatibility...
 
3266
  INCLTDL="$LTDLINCL"
 
3267
])# AC_LIBLTDL_INSTALLABLE
 
3268
 
 
3269
 
 
3270
# AC_LIBTOOL_CXX
 
3271
# --------------
 
3272
# enable support for C++ libraries
 
3273
AC_DEFUN([AC_LIBTOOL_CXX],
 
3274
[AC_REQUIRE([_LT_AC_LANG_CXX])
 
3275
])# AC_LIBTOOL_CXX
 
3276
 
 
3277
 
 
3278
# _LT_AC_LANG_CXX
 
3279
# ---------------
 
3280
AC_DEFUN([_LT_AC_LANG_CXX],
 
3281
[AC_REQUIRE([AC_PROG_CXX])
 
3282
AC_REQUIRE([AC_PROG_CXXCPP])
 
3283
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
 
3284
])# _LT_AC_LANG_CXX
 
3285
 
 
3286
 
 
3287
# AC_LIBTOOL_F77
 
3288
# --------------
 
3289
# enable support for Fortran 77 libraries
 
3290
AC_DEFUN([AC_LIBTOOL_F77],
 
3291
[AC_REQUIRE([_LT_AC_LANG_F77])
 
3292
])# AC_LIBTOOL_F77
 
3293
 
 
3294
 
 
3295
# _LT_AC_LANG_F77
 
3296
# ---------------
 
3297
AC_DEFUN([_LT_AC_LANG_F77],
 
3298
[AC_REQUIRE([AC_PROG_F77])
 
3299
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
 
3300
])# _LT_AC_LANG_F77
 
3301
 
 
3302
 
 
3303
# AC_LIBTOOL_GCJ
 
3304
# --------------
 
3305
# enable support for GCJ libraries
 
3306
AC_DEFUN([AC_LIBTOOL_GCJ],
 
3307
[AC_REQUIRE([_LT_AC_LANG_GCJ])
 
3308
])# AC_LIBTOOL_GCJ
 
3309
 
 
3310
 
 
3311
# _LT_AC_LANG_GCJ
 
3312
# ---------------
 
3313
AC_DEFUN([_LT_AC_LANG_GCJ],
 
3314
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
 
3315
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
 
3316
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
 
3317
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
 
3318
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
 
3319
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
 
3320
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
 
3321
])# _LT_AC_LANG_GCJ
 
3322
 
 
3323
 
 
3324
# AC_LIBTOOL_RC
 
3325
# --------------
 
3326
# enable support for Windows resource files
 
3327
AC_DEFUN([AC_LIBTOOL_RC],
 
3328
[AC_REQUIRE([LT_AC_PROG_RC])
 
3329
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
 
3330
])# AC_LIBTOOL_RC
 
3331
 
 
3332
 
 
3333
# AC_LIBTOOL_LANG_C_CONFIG
 
3334
# ------------------------
 
3335
# Ensure that the configuration vars for the C compiler are
 
3336
# suitably defined.  Those variables are subsequently used by
 
3337
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
3338
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
 
3339
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
 
3340
[lt_save_CC="$CC"
 
3341
AC_LANG_PUSH(C)
 
3342
 
 
3343
# Source file extension for C test sources.
 
3344
ac_ext=c
 
3345
 
 
3346
# Object file extension for compiled C test sources.
 
3347
objext=o
 
3348
_LT_AC_TAGVAR(objext, $1)=$objext
 
3349
 
 
3350
# Code to be used in simple compile tests
 
3351
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3352
 
 
3353
# Code to be used in simple link tests
 
3354
lt_simple_link_test_code='int main(){return(0);}\n'
 
3355
 
 
3356
_LT_AC_SYS_COMPILER
 
3357
 
 
3358
#
 
3359
# Check for any special shared library compilation flags.
 
3360
#
 
3361
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
 
3362
if test "$GCC" = no; then
 
3363
  case $host_os in
 
3364
  sco3.2v5*)
 
3365
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
 
3366
    ;;
 
3367
  esac
 
3368
fi
 
3369
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
 
3370
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
 
3371
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
 
3372
  else
 
3373
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
 
3374
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
 
3375
  fi
 
3376
fi
 
3377
 
 
3378
 
 
3379
#
 
3380
# Check to make sure the static flag actually works.
 
3381
#
 
3382
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
 
3383
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
3384
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
 
3385
  [],
 
3386
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 
3387
 
 
3388
 
 
3389
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
3390
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
3391
AC_LIBTOOL_PROG_CC_C_O($1)
 
3392
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
3393
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
3394
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
3395
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
3396
AC_LIBTOOL_SYS_LIB_STRIP
 
3397
AC_LIBTOOL_DLOPEN_SELF($1)
 
3398
 
 
3399
# Report which librarie types wil actually be built
2813
3400
AC_MSG_CHECKING([if libtool supports shared libraries])
2814
3401
AC_MSG_RESULT([$can_build_shared])
2815
3402
 
2832
3419
    test "$enable_shared" = yes && enable_static=no
2833
3420
  fi
2834
3421
  ;;
2835
 
esac
2836
 
AC_MSG_RESULT([$enable_shared])
2837
 
 
2838
 
AC_MSG_CHECKING([whether to build static libraries])
2839
 
# Make sure either enable_shared or enable_static is yes.
2840
 
test "$enable_shared" = yes || enable_static=yes
2841
 
AC_MSG_RESULT([$enable_static])
2842
 
 
2843
 
if test "$hardcode_action" = relink; then
2844
 
  # Fast installation is not supported
2845
 
  enable_fast_install=no
2846
 
elif test "$shlibpath_overrides_runpath" = yes ||
2847
 
     test "$enable_shared" = no; then
2848
 
  # Fast installation is not necessary
2849
 
  enable_fast_install=needless
2850
 
fi
2851
 
 
2852
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2853
 
if test "$GCC" = yes; then
2854
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2855
 
fi
2856
 
 
2857
 
AC_LIBTOOL_DLOPEN_SELF
2858
 
 
2859
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
2860
 
  case $archive_cmds in
2861
 
  *'~'*)
2862
 
    # FIXME: we may have to deal with multi-command sequences.
2863
 
    ;;
2864
 
  '$CC '*)
2865
 
    # Test whether the compiler implicitly links with -lc since on some
2866
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
2867
 
    # to ld, don't add -lc before -lgcc.
2868
 
    AC_MSG_CHECKING([whether -lc should be explicitly linked in])
2869
 
    AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
2870
 
    [$rm conftest*
2871
 
    echo 'static int dummy;' > conftest.$ac_ext
2872
 
 
2873
 
    if AC_TRY_EVAL(ac_compile); then
2874
 
      soname=conftest
2875
 
      lib=conftest
2876
 
      libobjs=conftest.$ac_objext
2877
 
      deplibs=
2878
 
      wl=$lt_cv_prog_cc_wl
2879
 
      compiler_flags=-v
2880
 
      linker_flags=-v
2881
 
      verstring=
2882
 
      output_objdir=.
2883
 
      libname=conftest
2884
 
      save_allow_undefined_flag=$allow_undefined_flag
2885
 
      allow_undefined_flag=
2886
 
      if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
2887
 
      then
2888
 
        lt_cv_archive_cmds_need_lc=no
2889
 
      else
2890
 
        lt_cv_archive_cmds_need_lc=yes
2891
 
      fi
2892
 
      allow_undefined_flag=$save_allow_undefined_flag
2893
 
    else
2894
 
      cat conftest.err 1>&5
2895
 
    fi])
2896
 
    AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
2897
 
    ;;
2898
 
  esac
2899
 
fi
2900
 
need_lc=${lt_cv_archive_cmds_need_lc-yes}
2901
 
 
2902
 
# The second clause should only fire when bootstrapping the
 
3422
  darwin* | rhapsody*)
 
3423
  if test "$GCC" = yes; then
 
3424
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3425
    case "$host_os" in
 
3426
    rhapsody* | darwin1.[[012]])
 
3427
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
 
3428
      ;;
 
3429
    *) # Darwin 1.3 on
 
3430
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
3431
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
3432
      else
 
3433
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
3434
          10.[[012]])
 
3435
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
3436
            ;;
 
3437
          10.*)
 
3438
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
 
3439
            ;;
 
3440
        esac
 
3441
      fi
 
3442
      ;;
 
3443
    esac
 
3444
    output_verbose_link_cmd='echo'
 
3445
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
3446
    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3447
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
3448
    _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}'
 
3449
    _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}'
 
3450
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3451
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
3452
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3453
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
 
3454
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3455
  else
 
3456
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3457
  fi
 
3458
    ;;
 
3459
esac
 
3460
AC_MSG_RESULT([$enable_shared])
 
3461
 
 
3462
AC_MSG_CHECKING([whether to build static libraries])
 
3463
# Make sure either enable_shared or enable_static is yes.
 
3464
test "$enable_shared" = yes || enable_static=yes
 
3465
AC_MSG_RESULT([$enable_static])
 
3466
 
 
3467
AC_LIBTOOL_CONFIG($1)
 
3468
 
 
3469
AC_LANG_POP
 
3470
CC="$lt_save_CC"
 
3471
])# AC_LIBTOOL_LANG_C_CONFIG
 
3472
 
 
3473
 
 
3474
# AC_LIBTOOL_LANG_CXX_CONFIG
 
3475
# --------------------------
 
3476
# Ensure that the configuration vars for the C compiler are
 
3477
# suitably defined.  Those variables are subsequently used by
 
3478
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
3479
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
 
3480
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
 
3481
[AC_LANG_PUSH(C++)
 
3482
AC_REQUIRE([AC_PROG_CXX])
 
3483
AC_REQUIRE([AC_PROG_CXXCPP])
 
3484
 
 
3485
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3486
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
3487
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
3488
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
3489
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
3490
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3491
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
3492
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
3493
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
3494
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
3495
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
3496
_LT_AC_TAGVAR(module_cmds, $1)=
 
3497
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
3498
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
3499
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
3500
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
3501
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
3502
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
3503
 
 
3504
# Dependencies to place before and after the object being linked:
 
3505
_LT_AC_TAGVAR(predep_objects, $1)=
 
3506
_LT_AC_TAGVAR(postdep_objects, $1)=
 
3507
_LT_AC_TAGVAR(predeps, $1)=
 
3508
_LT_AC_TAGVAR(postdeps, $1)=
 
3509
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
3510
 
 
3511
# Source file extension for C++ test sources.
 
3512
ac_ext=cc
 
3513
 
 
3514
# Object file extension for compiled C++ test sources.
 
3515
objext=o
 
3516
_LT_AC_TAGVAR(objext, $1)=$objext
 
3517
 
 
3518
# Code to be used in simple compile tests
 
3519
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3520
 
 
3521
# Code to be used in simple link tests
 
3522
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
3523
 
 
3524
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
3525
_LT_AC_SYS_COMPILER
 
3526
 
 
3527
# Allow CC to be a program name with arguments.
 
3528
lt_save_CC=$CC
 
3529
lt_save_LD=$LD
 
3530
lt_save_GCC=$GCC
 
3531
GCC=$GXX
 
3532
lt_save_with_gnu_ld=$with_gnu_ld
 
3533
lt_save_path_LD=$lt_cv_path_LD
 
3534
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
3535
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
3536
else
 
3537
  unset lt_cv_prog_gnu_ld
 
3538
fi
 
3539
if test -n "${lt_cv_path_LDCXX+set}"; then
 
3540
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
3541
else
 
3542
  unset lt_cv_path_LD
 
3543
fi
 
3544
test -z "${LDCXX+set}" || LD=$LDCXX
 
3545
CC=${CXX-"c++"}
 
3546
compiler=$CC
 
3547
_LT_AC_TAGVAR(compiler, $1)=$CC
 
3548
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
3549
 
 
3550
# We don't want -fno-exception wen compiling C++ code, so set the
 
3551
# no_builtin_flag separately
 
3552
if test "$GXX" = yes; then
 
3553
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3554
else
 
3555
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
3556
fi
 
3557
 
 
3558
if test "$GXX" = yes; then
 
3559
  # Set up default GNU C++ configuration
 
3560
 
 
3561
  AC_PROG_LD
 
3562
 
 
3563
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
3564
  # archiving commands below assume that GNU ld is being used.
 
3565
  if test "$with_gnu_ld" = yes; then
 
3566
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3567
    _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'
 
3568
 
 
3569
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
3570
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3571
 
 
3572
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
3573
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
3574
    #     investigate it a little bit more. (MM)
 
3575
    wlarc='${wl}'
 
3576
 
 
3577
    # ancient GNU ld didn't support --whole-archive et. al.
 
3578
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
3579
        grep 'no-whole-archive' > /dev/null; then
 
3580
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3581
    else
 
3582
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
3583
    fi
 
3584
  else
 
3585
    with_gnu_ld=no
 
3586
    wlarc=
 
3587
 
 
3588
    # A generic and very simple default shared library creation
 
3589
    # command for GNU C++ for the case where it uses the native
 
3590
    # linker, instead of GNU ld.  If possible, this setting should
 
3591
    # overridden to take advantage of the native linker features on
 
3592
    # the platform it is being used on.
 
3593
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3594
  fi
 
3595
 
 
3596
  # Commands to make compiler produce verbose output that lists
 
3597
  # what "hidden" libraries, object files and flags are used when
 
3598
  # linking a shared library.
 
3599
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
3600
 
 
3601
else
 
3602
  GXX=no
 
3603
  with_gnu_ld=no
 
3604
  wlarc=
 
3605
fi
 
3606
 
 
3607
# PORTME: fill in a description of your system's C++ link characteristics
 
3608
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
3609
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
3610
case $host_os in
 
3611
  aix3*)
 
3612
    # FIXME: insert proper C++ library support
 
3613
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3614
    ;;
 
3615
  aix4* | aix5*)
 
3616
    if test "$host_cpu" = ia64; then
 
3617
      # On IA64, the linker does run time linking by default, so we don't
 
3618
      # have to do anything special.
 
3619
      aix_use_runtimelinking=no
 
3620
      exp_sym_flag='-Bexport'
 
3621
      no_entry_flag=""
 
3622
    else
 
3623
      aix_use_runtimelinking=no
 
3624
 
 
3625
      # Test if we are trying to use run time linking or normal
 
3626
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
3627
      # need to do runtime linking.
 
3628
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3629
        for ld_flag in $LDFLAGS; do
 
3630
          case $ld_flag in
 
3631
          *-brtl*)
 
3632
            aix_use_runtimelinking=yes
 
3633
            break
 
3634
            ;;
 
3635
          esac
 
3636
        done
 
3637
      esac
 
3638
 
 
3639
      exp_sym_flag='-bexport'
 
3640
      no_entry_flag='-bnoentry'
 
3641
    fi
 
3642
 
 
3643
    # When large executables or shared objects are built, AIX ld can
 
3644
    # have problems creating the table of contents.  If linking a library
 
3645
    # or program results in "error TOC overflow" add -mminimal-toc to
 
3646
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
3647
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
3648
 
 
3649
    _LT_AC_TAGVAR(archive_cmds, $1)=''
 
3650
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3651
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
3652
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3653
 
 
3654
    if test "$GXX" = yes; then
 
3655
      case $host_os in aix4.[012]|aix4.[012].*)
 
3656
      # We only want to do this on AIX 4.2 and lower, the check
 
3657
      # below for broken collect2 doesn't work under 4.3+
 
3658
        collect2name=`${CC} -print-prog-name=collect2`
 
3659
        if test -f "$collect2name" && \
 
3660
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
3661
        then
 
3662
          # We have reworked collect2
 
3663
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3664
        else
 
3665
          # We have old collect2
 
3666
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
3667
          # It fails to find uninstalled libraries when the uninstalled
 
3668
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
3669
          # to unsupported forces relinking
 
3670
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
3671
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
3672
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
3673
        fi
 
3674
      esac
 
3675
      shared_flag='-shared'
 
3676
    else
 
3677
      # not using gcc
 
3678
      if test "$host_cpu" = ia64; then
 
3679
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
3680
        # chokes on -Wl,-G. The following line is correct:
 
3681
        shared_flag='-G'
 
3682
      else
 
3683
        if test "$aix_use_runtimelinking" = yes; then
 
3684
          shared_flag='${wl}-G'
 
3685
        else
 
3686
          shared_flag='${wl}-bM:SRE'
 
3687
        fi
 
3688
      fi
 
3689
    fi
 
3690
 
 
3691
    # It seems that -bexpall does not export symbols beginning with
 
3692
    # underscore (_), so it is better to generate a list of symbols to export.
 
3693
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
3694
    if test "$aix_use_runtimelinking" = yes; then
 
3695
      # Warning - without using the other runtime loading flags (-brtl),
 
3696
      # -berok will link without error, but may produce a broken library.
 
3697
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
3698
      # Determine the default libpath from the value encoded in an empty executable.
 
3699
      _LT_AC_SYS_LIBPATH_AIX
 
3700
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
3701
 
 
3702
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
3703
     else
 
3704
      if test "$host_cpu" = ia64; then
 
3705
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
3706
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
3707
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
3708
      else
 
3709
        # Determine the default libpath from the value encoded in an empty executable.
 
3710
        _LT_AC_SYS_LIBPATH_AIX
 
3711
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
3712
        # Warning - without using the other run time loading flags,
 
3713
        # -berok will link without error, but may produce a broken library.
 
3714
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
3715
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
3716
        # -bexpall does not export symbols beginning with underscore (_)
 
3717
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
3718
        # Exported symbols can be pulled into shared objects from archives
 
3719
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
3720
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
3721
        # This is similar to how AIX traditionally builds it's shared libraries.
 
3722
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
3723
      fi
 
3724
    fi
 
3725
    ;;
 
3726
  chorus*)
 
3727
    case $cc_basename in
 
3728
      *)
 
3729
        # FIXME: insert proper C++ library support
 
3730
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3731
        ;;
 
3732
    esac
 
3733
    ;;
 
3734
 
 
3735
  cygwin* | mingw* | pw32*)
 
3736
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
3737
    # as there is no search path for DLLs.
 
3738
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
3739
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
3740
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
3741
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
3742
 
 
3743
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
3744
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
3745
      # If the export-symbols file already is a .def file (1st line
 
3746
      # is EXPORTS), use it as is; otherwise, prepend...
 
3747
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
3748
        cp $export_symbols $output_objdir/$soname.def;
 
3749
      else
 
3750
        echo EXPORTS > $output_objdir/$soname.def;
 
3751
        cat $export_symbols >> $output_objdir/$soname.def;
 
3752
      fi~
 
3753
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
3754
    else
 
3755
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3756
    fi
 
3757
  ;;
 
3758
 
 
3759
  darwin* | rhapsody*)
 
3760
  if test "$GXX" = yes; then
 
3761
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3762
    case "$host_os" in
 
3763
    rhapsody* | darwin1.[[012]])
 
3764
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
 
3765
      ;;
 
3766
    *) # Darwin 1.3 on
 
3767
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
3768
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
3769
      else
 
3770
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
3771
          10.[[012]])
 
3772
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
3773
            ;;
 
3774
          10.*)
 
3775
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
 
3776
            ;;
 
3777
        esac
 
3778
      fi
 
3779
      ;;
 
3780
    esac
 
3781
    lt_int_apple_cc_single_mod=no
 
3782
    output_verbose_link_cmd='echo'
 
3783
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
3784
      lt_int_apple_cc_single_mod=yes
 
3785
    fi
 
3786
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3787
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3788
    else
 
3789
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
 
3790
    fi
 
3791
    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3792
 
 
3793
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
3794
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3795
      _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}'
 
3796
    else
 
3797
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
 
3798
    fi
 
3799
    _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}'
 
3800
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3801
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
3802
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3803
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
 
3804
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3805
  else
 
3806
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3807
  fi
 
3808
    ;;
 
3809
 
 
3810
  dgux*)
 
3811
    case $cc_basename in
 
3812
      ec++)
 
3813
        # FIXME: insert proper C++ library support
 
3814
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3815
        ;;
 
3816
      ghcx)
 
3817
        # Green Hills C++ Compiler
 
3818
        # FIXME: insert proper C++ library support
 
3819
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3820
        ;;
 
3821
      *)
 
3822
        # FIXME: insert proper C++ library support
 
3823
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3824
        ;;
 
3825
    esac
 
3826
    ;;
 
3827
  freebsd[12]*)
 
3828
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
3829
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3830
    ;;
 
3831
  freebsd-elf*)
 
3832
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3833
    ;;
 
3834
  freebsd* | kfreebsd*-gnu)
 
3835
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
3836
    # conventions
 
3837
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
3838
    ;;
 
3839
  gnu*)
 
3840
    ;;
 
3841
  hpux9*)
 
3842
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3843
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3844
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3845
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3846
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
3847
                                # but as the default
 
3848
                                # location of the library.
 
3849
 
 
3850
    case $cc_basename in
 
3851
    CC)
 
3852
      # FIXME: insert proper C++ library support
 
3853
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3854
      ;;
 
3855
    aCC)
 
3856
      _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'
 
3857
      # Commands to make compiler produce verbose output that lists
 
3858
      # what "hidden" libraries, object files and flags are used when
 
3859
      # linking a shared library.
 
3860
      #
 
3861
      # There doesn't appear to be a way to prevent this compiler from
 
3862
      # explicitly linking system object files so we need to strip them
 
3863
      # from the output so that they don't get included in the library
 
3864
      # dependencies.
 
3865
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3866
      ;;
 
3867
    *)
 
3868
      if test "$GXX" = yes; then
 
3869
        _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'
 
3870
      else
 
3871
        # FIXME: insert proper C++ library support
 
3872
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3873
      fi
 
3874
      ;;
 
3875
    esac
 
3876
    ;;
 
3877
  hpux10*|hpux11*)
 
3878
    if test $with_gnu_ld = no; then
 
3879
      case "$host_cpu" in
 
3880
      hppa*64*)
 
3881
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3882
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
3883
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3884
        ;;
 
3885
      ia64*)
 
3886
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
3887
        ;;
 
3888
      *)
 
3889
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3890
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3891
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3892
        ;;
 
3893
      esac
 
3894
    fi
 
3895
    case "$host_cpu" in
 
3896
    hppa*64*)
 
3897
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3898
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3899
      ;;
 
3900
    ia64*)
 
3901
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3902
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3903
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
3904
                                              # but as the default
 
3905
                                              # location of the library.
 
3906
      ;;
 
3907
    *)
 
3908
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3909
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
3910
                                              # but as the default
 
3911
                                              # location of the library.
 
3912
      ;;
 
3913
    esac
 
3914
 
 
3915
    case $cc_basename in
 
3916
      CC)
 
3917
        # FIXME: insert proper C++ library support
 
3918
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3919
        ;;
 
3920
      aCC)
 
3921
        case "$host_cpu" in
 
3922
        hppa*64*|ia64*)
 
3923
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3924
          ;;
 
3925
        *)
 
3926
          _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'
 
3927
          ;;
 
3928
        esac
 
3929
        # Commands to make compiler produce verbose output that lists
 
3930
        # what "hidden" libraries, object files and flags are used when
 
3931
        # linking a shared library.
 
3932
        #
 
3933
        # There doesn't appear to be a way to prevent this compiler from
 
3934
        # explicitly linking system object files so we need to strip them
 
3935
        # from the output so that they don't get included in the library
 
3936
        # dependencies.
 
3937
        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'
 
3938
        ;;
 
3939
      *)
 
3940
        if test "$GXX" = yes; then
 
3941
          if test $with_gnu_ld = no; then
 
3942
            case "$host_cpu" in
 
3943
            ia64*|hppa*64*)
 
3944
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3945
              ;;
 
3946
            *)
 
3947
              _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'
 
3948
              ;;
 
3949
            esac
 
3950
          fi
 
3951
        else
 
3952
          # FIXME: insert proper C++ library support
 
3953
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3954
        fi
 
3955
        ;;
 
3956
    esac
 
3957
    ;;
 
3958
  irix5* | irix6*)
 
3959
    case $cc_basename in
 
3960
      CC)
 
3961
        # SGI C++
 
3962
        _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 ${objdir}/so_locations -o $lib'
 
3963
 
 
3964
        # Archives containing C++ object files must be created using
 
3965
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
3966
        # necessary to make sure instantiated templates are included
 
3967
        # in the archive.
 
3968
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
3969
        ;;
 
3970
      *)
 
3971
        if test "$GXX" = yes; then
 
3972
          if test "$with_gnu_ld" = no; then
 
3973
            _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}${objdir}/so_locations -o $lib'
 
3974
          else
 
3975
            _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'
 
3976
          fi
 
3977
        fi
 
3978
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3979
        ;;
 
3980
    esac
 
3981
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
3982
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3983
    ;;
 
3984
  linux*)
 
3985
    case $cc_basename in
 
3986
      KCC)
 
3987
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
3988
 
 
3989
        # KCC will only create a shared library if the output file
 
3990
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
3991
        # to its proper name (with version) after linking.
 
3992
        _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'
 
3993
        _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'
 
3994
        # Commands to make compiler produce verbose output that lists
 
3995
        # what "hidden" libraries, object files and flags are used when
 
3996
        # linking a shared library.
 
3997
        #
 
3998
        # There doesn't appear to be a way to prevent this compiler from
 
3999
        # explicitly linking system object files so we need to strip them
 
4000
        # from the output so that they don't get included in the library
 
4001
        # dependencies.
 
4002
        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'
 
4003
 
 
4004
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
 
4005
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4006
 
 
4007
        # Archives containing C++ object files must be created using
 
4008
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
4009
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
4010
        ;;
 
4011
      icpc)
 
4012
        # Intel C++
 
4013
        with_gnu_ld=yes
 
4014
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4015
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4016
        _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'
 
4017
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4018
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4019
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
4020
        ;;
 
4021
      cxx)
 
4022
        # Compaq C++
 
4023
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4024
        _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'
 
4025
 
 
4026
        runpath_var=LD_RUN_PATH
 
4027
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
4028
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4029
 
 
4030
        # Commands to make compiler produce verbose output that lists
 
4031
        # what "hidden" libraries, object files and flags are used when
 
4032
        # linking a shared library.
 
4033
        #
 
4034
        # There doesn't appear to be a way to prevent this compiler from
 
4035
        # explicitly linking system object files so we need to strip them
 
4036
        # from the output so that they don't get included in the library
 
4037
        # dependencies.
 
4038
        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'
 
4039
        ;;
 
4040
    esac
 
4041
    ;;
 
4042
  lynxos*)
 
4043
    # FIXME: insert proper C++ library support
 
4044
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4045
    ;;
 
4046
  m88k*)
 
4047
    # FIXME: insert proper C++ library support
 
4048
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4049
    ;;
 
4050
  mvs*)
 
4051
    case $cc_basename in
 
4052
      cxx)
 
4053
        # FIXME: insert proper C++ library support
 
4054
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4055
        ;;
 
4056
      *)
 
4057
        # FIXME: insert proper C++ library support
 
4058
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4059
        ;;
 
4060
    esac
 
4061
    ;;
 
4062
  netbsd* | knetbsd*-gnu)
 
4063
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
4064
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
4065
      wlarc=
 
4066
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4067
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4068
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4069
    fi
 
4070
    # Workaround some broken pre-1.5 toolchains
 
4071
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
4072
    ;;
 
4073
  osf3*)
 
4074
    case $cc_basename in
 
4075
      KCC)
 
4076
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4077
 
 
4078
        # KCC will only create a shared library if the output file
 
4079
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4080
        # to its proper name (with version) after linking.
 
4081
        _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'
 
4082
 
 
4083
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4084
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4085
 
 
4086
        # Archives containing C++ object files must be created using
 
4087
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
4088
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
4089
 
 
4090
        ;;
 
4091
      RCC)
 
4092
        # Rational C++ 2.4.1
 
4093
        # FIXME: insert proper C++ library support
 
4094
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4095
        ;;
 
4096
      cxx)
 
4097
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4098
        _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 ${objdir}/so_locations -o $lib'
 
4099
 
 
4100
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4101
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4102
 
 
4103
        # Commands to make compiler produce verbose output that lists
 
4104
        # what "hidden" libraries, object files and flags are used when
 
4105
        # linking a shared library.
 
4106
        #
 
4107
        # There doesn't appear to be a way to prevent this compiler from
 
4108
        # explicitly linking system object files so we need to strip them
 
4109
        # from the output so that they don't get included in the library
 
4110
        # dependencies.
 
4111
        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'
 
4112
        ;;
 
4113
      *)
 
4114
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4115
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4116
          _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}${objdir}/so_locations -o $lib'
 
4117
 
 
4118
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4119
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4120
 
 
4121
          # Commands to make compiler produce verbose output that lists
 
4122
          # what "hidden" libraries, object files and flags are used when
 
4123
          # linking a shared library.
 
4124
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
4125
 
 
4126
        else
 
4127
          # FIXME: insert proper C++ library support
 
4128
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4129
        fi
 
4130
        ;;
 
4131
    esac
 
4132
    ;;
 
4133
  osf4* | osf5*)
 
4134
    case $cc_basename in
 
4135
      KCC)
 
4136
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4137
 
 
4138
        # KCC will only create a shared library if the output file
 
4139
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4140
        # to its proper name (with version) after linking.
 
4141
        _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'
 
4142
 
 
4143
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4144
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4145
 
 
4146
        # Archives containing C++ object files must be created using
 
4147
        # the KAI C++ compiler.
 
4148
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
 
4149
        ;;
 
4150
      RCC)
 
4151
        # Rational C++ 2.4.1
 
4152
        # FIXME: insert proper C++ library support
 
4153
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4154
        ;;
 
4155
      cxx)
 
4156
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
4157
        _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 ${objdir}/so_locations -o $lib'
 
4158
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
4159
          echo "-hidden">> $lib.exp~
 
4160
          $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 $objdir/so_locations -o $lib~
 
4161
          $rm $lib.exp'
 
4162
 
 
4163
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
4164
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4165
 
 
4166
        # Commands to make compiler produce verbose output that lists
 
4167
        # what "hidden" libraries, object files and flags are used when
 
4168
        # linking a shared library.
 
4169
        #
 
4170
        # There doesn't appear to be a way to prevent this compiler from
 
4171
        # explicitly linking system object files so we need to strip them
 
4172
        # from the output so that they don't get included in the library
 
4173
        # dependencies.
 
4174
        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'
 
4175
        ;;
 
4176
      *)
 
4177
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4178
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4179
         _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}${objdir}/so_locations -o $lib'
 
4180
 
 
4181
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4182
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4183
 
 
4184
          # Commands to make compiler produce verbose output that lists
 
4185
          # what "hidden" libraries, object files and flags are used when
 
4186
          # linking a shared library.
 
4187
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
4188
 
 
4189
        else
 
4190
          # FIXME: insert proper C++ library support
 
4191
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4192
        fi
 
4193
        ;;
 
4194
    esac
 
4195
    ;;
 
4196
  psos*)
 
4197
    # FIXME: insert proper C++ library support
 
4198
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4199
    ;;
 
4200
  sco*)
 
4201
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4202
    case $cc_basename in
 
4203
      CC)
 
4204
        # FIXME: insert proper C++ library support
 
4205
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4206
        ;;
 
4207
      *)
 
4208
        # FIXME: insert proper C++ library support
 
4209
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4210
        ;;
 
4211
    esac
 
4212
    ;;
 
4213
  sunos4*)
 
4214
    case $cc_basename in
 
4215
      CC)
 
4216
        # Sun C++ 4.x
 
4217
        # FIXME: insert proper C++ library support
 
4218
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4219
        ;;
 
4220
      lcc)
 
4221
        # Lucid
 
4222
        # FIXME: insert proper C++ library support
 
4223
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4224
        ;;
 
4225
      *)
 
4226
        # FIXME: insert proper C++ library support
 
4227
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4228
        ;;
 
4229
    esac
 
4230
    ;;
 
4231
  solaris*)
 
4232
    case $cc_basename in
 
4233
      CC)
 
4234
        # Sun C++ 4.2, 5.x and Centerline C++
 
4235
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
4236
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4237
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4238
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
4239
 
 
4240
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4241
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4242
        case $host_os in
 
4243
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
4244
          *)
 
4245
            # The C++ compiler is used as linker so we must use $wl
 
4246
            # flag to pass the commands to the underlying system
 
4247
            # linker.
 
4248
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
4249
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
4250
            ;;
 
4251
        esac
 
4252
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4253
 
 
4254
        # Commands to make compiler produce verbose output that lists
 
4255
        # what "hidden" libraries, object files and flags are used when
 
4256
        # linking a shared library.
 
4257
        #
 
4258
        # There doesn't appear to be a way to prevent this compiler from
 
4259
        # explicitly linking system object files so we need to strip them
 
4260
        # from the output so that they don't get included in the library
 
4261
        # dependencies.
 
4262
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
4263
 
 
4264
        # Archives containing C++ object files must be created using
 
4265
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
4266
        # necessary to make sure instantiated templates are included
 
4267
        # in the archive.
 
4268
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
4269
        ;;
 
4270
      gcx)
 
4271
        # Green Hills C++ Compiler
 
4272
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
4273
 
 
4274
        # The C++ compiler must be used to create the archive.
 
4275
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
4276
        ;;
 
4277
      *)
 
4278
        # GNU C++ compiler with Solaris linker
 
4279
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4280
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
4281
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
4282
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
4283
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4284
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
4285
 
 
4286
            # Commands to make compiler produce verbose output that lists
 
4287
            # what "hidden" libraries, object files and flags are used when
 
4288
            # linking a shared library.
 
4289
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
4290
          else
 
4291
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
4292
            # platform.
 
4293
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
4294
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4295
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
4296
 
 
4297
            # Commands to make compiler produce verbose output that lists
 
4298
            # what "hidden" libraries, object files and flags are used when
 
4299
            # linking a shared library.
 
4300
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
4301
          fi
 
4302
 
 
4303
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
4304
        fi
 
4305
        ;;
 
4306
    esac
 
4307
    ;;
 
4308
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
 
4309
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4310
    ;;
 
4311
  tandem*)
 
4312
    case $cc_basename in
 
4313
      NCC)
 
4314
        # NonStop-UX NCC 3.20
 
4315
        # FIXME: insert proper C++ library support
 
4316
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4317
        ;;
 
4318
      *)
 
4319
        # FIXME: insert proper C++ library support
 
4320
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4321
        ;;
 
4322
    esac
 
4323
    ;;
 
4324
  vxworks*)
 
4325
    # FIXME: insert proper C++ library support
 
4326
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4327
    ;;
 
4328
  *)
 
4329
    # FIXME: insert proper C++ library support
 
4330
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4331
    ;;
 
4332
esac
 
4333
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
4334
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
4335
 
 
4336
_LT_AC_TAGVAR(GCC, $1)="$GXX"
 
4337
_LT_AC_TAGVAR(LD, $1)="$LD"
 
4338
 
 
4339
AC_LIBTOOL_POSTDEP_PREDEP($1)
 
4340
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4341
AC_LIBTOOL_PROG_CC_C_O($1)
 
4342
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4343
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4344
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4345
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4346
AC_LIBTOOL_SYS_LIB_STRIP
 
4347
AC_LIBTOOL_DLOPEN_SELF($1)
 
4348
 
 
4349
AC_LIBTOOL_CONFIG($1)
 
4350
 
 
4351
AC_LANG_POP
 
4352
CC=$lt_save_CC
 
4353
LDCXX=$LD
 
4354
LD=$lt_save_LD
 
4355
GCC=$lt_save_GCC
 
4356
with_gnu_ldcxx=$with_gnu_ld
 
4357
with_gnu_ld=$lt_save_with_gnu_ld
 
4358
lt_cv_path_LDCXX=$lt_cv_path_LD
 
4359
lt_cv_path_LD=$lt_save_path_LD
 
4360
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
4361
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
4362
])# AC_LIBTOOL_LANG_CXX_CONFIG
 
4363
 
 
4364
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
 
4365
# ------------------------
 
4366
# Figure out "hidden" library dependencies from verbose
 
4367
# compiler output when linking a shared library.
 
4368
# Parse the compiler output and extract the necessary
 
4369
# objects, libraries and library flags.
 
4370
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
4371
dnl we can't use the lt_simple_compile_test_code here,
 
4372
dnl because it contains code intended for an executable,
 
4373
dnl not a library.  It's possible we should let each
 
4374
dnl tag define a new lt_????_link_test_code variable,
 
4375
dnl but it's only used here...
 
4376
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
 
4377
int a;
 
4378
void foo (void) { a = 0; }
 
4379
EOF
 
4380
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
 
4381
class Foo
 
4382
{
 
4383
public:
 
4384
  Foo (void) { a = 0; }
 
4385
private:
 
4386
  int a;
 
4387
};
 
4388
EOF
 
4389
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
 
4390
      subroutine foo
 
4391
      implicit none
 
4392
      integer*4 a
 
4393
      a=0
 
4394
      return
 
4395
      end
 
4396
EOF
 
4397
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
 
4398
public class foo {
 
4399
  private int a;
 
4400
  public void bar (void) {
 
4401
    a = 0;
 
4402
  }
 
4403
};
 
4404
EOF
 
4405
])
 
4406
dnl Parse the compiler output and extract the necessary
 
4407
dnl objects, libraries and library flags.
 
4408
if AC_TRY_EVAL(ac_compile); then
 
4409
  # Parse the compiler output and extract the necessary
 
4410
  # objects, libraries and library flags.
 
4411
 
 
4412
  # Sentinel used to keep track of whether or not we are before
 
4413
  # the conftest object file.
 
4414
  pre_test_object_deps_done=no
 
4415
 
 
4416
  # The `*' in the case matches for architectures that use `case' in
 
4417
  # $output_verbose_cmd can trigger glob expansion during the loop
 
4418
  # eval without this substitution.
 
4419
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
4420
 
 
4421
  for p in `eval $output_verbose_link_cmd`; do
 
4422
    case $p in
 
4423
 
 
4424
    -L* | -R* | -l*)
 
4425
       # Some compilers place space between "-{L,R}" and the path.
 
4426
       # Remove the space.
 
4427
       if test $p = "-L" \
 
4428
          || test $p = "-R"; then
 
4429
         prev=$p
 
4430
         continue
 
4431
       else
 
4432
         prev=
 
4433
       fi
 
4434
 
 
4435
       if test "$pre_test_object_deps_done" = no; then
 
4436
         case $p in
 
4437
         -L* | -R*)
 
4438
           # Internal compiler library paths should come after those
 
4439
           # provided the user.  The postdeps already come after the
 
4440
           # user supplied libs so there is no need to process them.
 
4441
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4442
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
4443
           else
 
4444
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
4445
           fi
 
4446
           ;;
 
4447
         # The "-l" case would never come before the object being
 
4448
         # linked, so don't bother handling this case.
 
4449
         esac
 
4450
       else
 
4451
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
 
4452
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
 
4453
         else
 
4454
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
 
4455
         fi
 
4456
       fi
 
4457
       ;;
 
4458
 
 
4459
    *.$objext)
 
4460
       # This assumes that the test object file only shows up
 
4461
       # once in the compiler output.
 
4462
       if test "$p" = "conftest.$objext"; then
 
4463
         pre_test_object_deps_done=yes
 
4464
         continue
 
4465
       fi
 
4466
 
 
4467
       if test "$pre_test_object_deps_done" = no; then
 
4468
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
 
4469
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
 
4470
         else
 
4471
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
 
4472
         fi
 
4473
       else
 
4474
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
 
4475
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
 
4476
         else
 
4477
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
 
4478
         fi
 
4479
       fi
 
4480
       ;;
 
4481
 
 
4482
    *) ;; # Ignore the rest.
 
4483
 
 
4484
    esac
 
4485
  done
 
4486
 
 
4487
  # Clean up.
 
4488
  rm -f a.out a.exe
 
4489
else
 
4490
  echo "libtool.m4: error: problem compiling $1 test program"
 
4491
fi
 
4492
 
 
4493
$rm -f confest.$objext
 
4494
 
 
4495
case " $_LT_AC_TAGVAR(postdeps, $1) " in
 
4496
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
4497
esac
 
4498
])# AC_LIBTOOL_POSTDEP_PREDEP
 
4499
 
 
4500
# AC_LIBTOOL_LANG_F77_CONFIG
 
4501
# ------------------------
 
4502
# Ensure that the configuration vars for the C compiler are
 
4503
# suitably defined.  Those variables are subsequently used by
 
4504
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4505
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
 
4506
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
 
4507
[AC_REQUIRE([AC_PROG_F77])
 
4508
AC_LANG_PUSH(Fortran 77)
 
4509
 
 
4510
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4511
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
4512
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
4513
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
4514
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
4515
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4516
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4517
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
4518
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
4519
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
4520
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
4521
_LT_AC_TAGVAR(module_cmds, $1)=
 
4522
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
4523
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
4524
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
4525
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
4526
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
4527
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
4528
 
 
4529
# Source file extension for f77 test sources.
 
4530
ac_ext=f
 
4531
 
 
4532
# Object file extension for compiled f77 test sources.
 
4533
objext=o
 
4534
_LT_AC_TAGVAR(objext, $1)=$objext
 
4535
 
 
4536
# Code to be used in simple compile tests
 
4537
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4538
 
 
4539
# Code to be used in simple link tests
 
4540
lt_simple_link_test_code="      program t\n      end\n"
 
4541
 
 
4542
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
4543
_LT_AC_SYS_COMPILER
 
4544
 
 
4545
# Allow CC to be a program name with arguments.
 
4546
lt_save_CC="$CC"
 
4547
CC=${F77-"f77"}
 
4548
compiler=$CC
 
4549
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4550
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
4551
 
 
4552
AC_MSG_CHECKING([if libtool supports shared libraries])
 
4553
AC_MSG_RESULT([$can_build_shared])
 
4554
 
 
4555
AC_MSG_CHECKING([whether to build shared libraries])
 
4556
test "$can_build_shared" = "no" && enable_shared=no
 
4557
 
 
4558
# On AIX, shared libraries and static libraries use the same namespace, and
 
4559
# are all built from PIC.
 
4560
case "$host_os" in
 
4561
aix3*)
 
4562
  test "$enable_shared" = yes && enable_static=no
 
4563
  if test -n "$RANLIB"; then
 
4564
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
4565
    postinstall_cmds='$RANLIB $lib'
 
4566
  fi
 
4567
  ;;
 
4568
aix4*)
 
4569
  test "$enable_shared" = yes && enable_static=no
 
4570
  ;;
 
4571
esac
 
4572
AC_MSG_RESULT([$enable_shared])
 
4573
 
 
4574
AC_MSG_CHECKING([whether to build static libraries])
 
4575
# Make sure either enable_shared or enable_static is yes.
 
4576
test "$enable_shared" = yes || enable_static=yes
 
4577
AC_MSG_RESULT([$enable_static])
 
4578
 
 
4579
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
4580
 
 
4581
_LT_AC_TAGVAR(GCC, $1)="$G77"
 
4582
_LT_AC_TAGVAR(LD, $1)="$LD"
 
4583
 
 
4584
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4585
AC_LIBTOOL_PROG_CC_C_O($1)
 
4586
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4587
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4588
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4589
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4590
AC_LIBTOOL_SYS_LIB_STRIP
 
4591
 
 
4592
 
 
4593
AC_LIBTOOL_CONFIG($1)
 
4594
 
 
4595
AC_LANG_POP
 
4596
CC="$lt_save_CC"
 
4597
])# AC_LIBTOOL_LANG_F77_CONFIG
 
4598
 
 
4599
 
 
4600
# AC_LIBTOOL_LANG_GCJ_CONFIG
 
4601
# --------------------------
 
4602
# Ensure that the configuration vars for the C compiler are
 
4603
# suitably defined.  Those variables are subsequently used by
 
4604
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4605
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
 
4606
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
 
4607
[AC_LANG_SAVE
 
4608
 
 
4609
# Source file extension for Java test sources.
 
4610
ac_ext=java
 
4611
 
 
4612
# Object file extension for compiled Java test sources.
 
4613
objext=o
 
4614
_LT_AC_TAGVAR(objext, $1)=$objext
 
4615
 
 
4616
# Code to be used in simple compile tests
 
4617
lt_simple_compile_test_code="class foo {}\n"
 
4618
 
 
4619
# Code to be used in simple link tests
 
4620
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
4621
 
 
4622
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
4623
_LT_AC_SYS_COMPILER
 
4624
 
 
4625
# Allow CC to be a program name with arguments.
 
4626
lt_save_CC="$CC"
 
4627
CC=${GCJ-"gcj"}
 
4628
compiler=$CC
 
4629
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4630
 
 
4631
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
4632
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4633
 
 
4634
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
4635
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4636
AC_LIBTOOL_PROG_CC_C_O($1)
 
4637
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4638
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4639
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4640
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4641
AC_LIBTOOL_SYS_LIB_STRIP
 
4642
AC_LIBTOOL_DLOPEN_SELF($1)
 
4643
 
 
4644
AC_LIBTOOL_CONFIG($1)
 
4645
 
 
4646
AC_LANG_RESTORE
 
4647
CC="$lt_save_CC"
 
4648
])# AC_LIBTOOL_LANG_GCJ_CONFIG
 
4649
 
 
4650
 
 
4651
# AC_LIBTOOL_LANG_RC_CONFIG
 
4652
# --------------------------
 
4653
# Ensure that the configuration vars for the Windows resource compiler are
 
4654
# suitably defined.  Those variables are subsequently used by
 
4655
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4656
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
 
4657
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
 
4658
[AC_LANG_SAVE
 
4659
 
 
4660
# Source file extension for RC test sources.
 
4661
ac_ext=rc
 
4662
 
 
4663
# Object file extension for compiled RC test sources.
 
4664
objext=o
 
4665
_LT_AC_TAGVAR(objext, $1)=$objext
 
4666
 
 
4667
# Code to be used in simple compile tests
 
4668
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4669
 
 
4670
# Code to be used in simple link tests
 
4671
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
4672
 
 
4673
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
4674
_LT_AC_SYS_COMPILER
 
4675
 
 
4676
# Allow CC to be a program name with arguments.
 
4677
lt_save_CC="$CC"
 
4678
CC=${RC-"windres"}
 
4679
compiler=$CC
 
4680
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4681
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
4682
 
 
4683
AC_LIBTOOL_CONFIG($1)
 
4684
 
 
4685
AC_LANG_RESTORE
 
4686
CC="$lt_save_CC"
 
4687
])# AC_LIBTOOL_LANG_RC_CONFIG
 
4688
 
 
4689
 
 
4690
# AC_LIBTOOL_CONFIG([TAGNAME])
 
4691
# ----------------------------
 
4692
# If TAGNAME is not passed, then create an initial libtool script
 
4693
# with a default configuration from the untagged config vars.  Otherwise
 
4694
# add code to config.status for appending the configuration named by
 
4695
# TAGNAME from the matching tagged config vars.
 
4696
AC_DEFUN([AC_LIBTOOL_CONFIG],
 
4697
[# The else clause should only fire when bootstrapping the
2903
4698
# libtool distribution, otherwise you forgot to ship ltmain.sh
2904
4699
# with your package, and you will get complaints that there are
2905
4700
# no rules to generate ltmain.sh.
2906
4701
if test -f "$ltmain"; then
2907
 
  :
2908
 
else
2909
 
  # If there is no Makefile yet, we rely on a make rule to execute
2910
 
  # `config.status --recheck' to rerun these tests and create the
2911
 
  # libtool script then.
2912
 
  test -f Makefile && make "$ltmain"
2913
 
fi
2914
 
 
2915
 
if test -f "$ltmain"; then
2916
 
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
2917
 
  $rm -f "${ofile}T"
2918
 
 
2919
 
  echo creating $ofile
2920
 
 
 
4702
  # See if we are running on zsh, and set the options which allow our commands through
 
4703
  # without removal of \ escapes.
 
4704
  if test -n "${ZSH_VERSION+set}" ; then
 
4705
    setopt NO_GLOB_SUBST
 
4706
  fi
2921
4707
  # Now quote all the things that may contain metacharacters while being
2922
4708
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
2923
4709
  # variables and quote the copies for generation of the libtool script.
2924
 
  for var in echo old_CC old_CFLAGS \
2925
 
    AR AR_FLAGS AS CC LD LN_S NM SHELL \
2926
 
    reload_flag reload_cmds wl \
2927
 
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
2928
 
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
2929
 
    library_names_spec soname_spec \
2930
 
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
2931
 
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
2932
 
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
2933
 
    old_striplib striplib file_magic_cmd export_symbols_cmds \
2934
 
    deplibs_check_method allow_undefined_flag no_undefined_flag \
2935
 
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
2936
 
    global_symbol_to_c_name_address \
2937
 
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 
4710
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
4711
    SED SHELL STRIP \
 
4712
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
4713
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
4714
    deplibs_check_method reload_flag reload_cmds need_locks \
 
4715
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
4716
    lt_cv_sys_global_symbol_to_c_name_address \
2938
4717
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
2939
 
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 
4718
    old_postinstall_cmds old_postuninstall_cmds \
 
4719
    _LT_AC_TAGVAR(compiler, $1) \
 
4720
    _LT_AC_TAGVAR(CC, $1) \
 
4721
    _LT_AC_TAGVAR(LD, $1) \
 
4722
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
 
4723
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
 
4724
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
 
4725
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
 
4726
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
 
4727
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
 
4728
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
 
4729
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
 
4730
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
 
4731
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
 
4732
    _LT_AC_TAGVAR(predep_objects, $1) \
 
4733
    _LT_AC_TAGVAR(postdep_objects, $1) \
 
4734
    _LT_AC_TAGVAR(predeps, $1) \
 
4735
    _LT_AC_TAGVAR(postdeps, $1) \
 
4736
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4737
    _LT_AC_TAGVAR(archive_cmds, $1) \
 
4738
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
 
4739
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
 
4740
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
 
4741
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
 
4742
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
 
4743
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
 
4744
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
 
4745
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
 
4746
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
 
4747
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
 
4748
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
 
4749
    _LT_AC_TAGVAR(module_cmds, $1) \
 
4750
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
 
4751
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4752
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
 
4753
    _LT_AC_TAGVAR(include_expsyms, $1); do
2940
4754
 
2941
4755
    case $var in
2942
 
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 
4756
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
 
4757
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
 
4758
    _LT_AC_TAGVAR(archive_cmds, $1) | \
 
4759
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
 
4760
    _LT_AC_TAGVAR(module_cmds, $1) | \
 
4761
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
 
4762
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
 
4763
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
 
4764
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
4765
    postinstall_cmds | postuninstall_cmds | \
2943
4766
    old_postinstall_cmds | old_postuninstall_cmds | \
2944
 
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
2945
 
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
2946
 
    postinstall_cmds | postuninstall_cmds | \
2947
 
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
4767
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
2948
4768
      # Double-quote double-evaled strings.
2949
4769
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
2950
4770
      ;;
2954
4774
    esac
2955
4775
  done
2956
4776
 
2957
 
  cat <<__EOF__ > "${ofile}T"
2958
 
#! $SHELL
2959
 
 
2960
 
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
4777
  case $lt_echo in
 
4778
  *'\[$]0 --fallback-echo"')
 
4779
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
 
4780
    ;;
 
4781
  esac
 
4782
 
 
4783
ifelse([$1], [],
 
4784
  [cfgfile="${ofile}T"
 
4785
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
4786
  $rm -f "$cfgfile"
 
4787
  AC_MSG_NOTICE([creating $ofile])],
 
4788
  [cfgfile="$ofile"])
 
4789
 
 
4790
  cat <<__EOF__ >> "$cfgfile"
 
4791
ifelse([$1], [],
 
4792
[#! $SHELL
 
4793
 
 
4794
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
2961
4795
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
2962
4796
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
2963
4797
#
2964
 
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 
4798
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4799
# Free Software Foundation, Inc.
 
4800
#
 
4801
# This file is part of GNU Libtool:
2965
4802
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
2966
4803
#
2967
4804
# This program is free software; you can redistribute it and/or modify
2983
4820
# configuration script generated by Autoconf, you may include it under
2984
4821
# the same distribution terms that you use for the rest of that program.
2985
4822
 
 
4823
# A sed program that does not truncate output.
 
4824
SED=$lt_SED
 
4825
 
2986
4826
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
2987
 
Xsed="sed -e s/^X//"
 
4827
Xsed="$SED -e s/^X//"
2988
4828
 
2989
4829
# The HP-UX ksh and POSIX shell print the target directory to stdout
2990
4830
# if CDPATH is set.
2991
4831
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
2992
4832
 
2993
 
# ### BEGIN LIBTOOL CONFIG
 
4833
# The names of the tagged configurations supported by this script.
 
4834
available_tags=
 
4835
 
 
4836
# ### BEGIN LIBTOOL CONFIG],
 
4837
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
2994
4838
 
2995
4839
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2996
4840
 
3004
4848
build_old_libs=$enable_static
3005
4849
 
3006
4850
# Whether or not to add -lc for building shared libraries.
3007
 
build_libtool_need_lc=$need_lc
 
4851
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
 
4852
 
 
4853
# Whether or not to disallow shared libs when runtime libs are static
 
4854
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
3008
4855
 
3009
4856
# Whether or not to optimize for fast installation.
3010
4857
fast_install=$enable_fast_install
3020
4867
AR=$lt_AR
3021
4868
AR_FLAGS=$lt_AR_FLAGS
3022
4869
 
3023
 
# The default C compiler.
3024
 
CC=$lt_CC
 
4870
# A C compiler.
 
4871
LTCC=$lt_LTCC
 
4872
 
 
4873
# A language-specific compiler.
 
4874
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
3025
4875
 
3026
4876
# Is the compiler the GNU C compiler?
3027
 
with_gcc=$GCC
 
4877
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
 
4878
 
 
4879
# An ERE matcher.
 
4880
EGREP=$lt_EGREP
3028
4881
 
3029
4882
# The linker used to build libraries.
3030
 
LD=$lt_LD
 
4883
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
3031
4884
 
3032
4885
# Whether we need hard or soft links.
3033
4886
LN_S=$lt_LN_S
3036
4889
NM=$lt_NM
3037
4890
 
3038
4891
# A symbol stripping program
3039
 
STRIP=$STRIP
 
4892
STRIP=$lt_STRIP
3040
4893
 
3041
4894
# Used to examine libraries when file_magic_cmd begins "file"
3042
4895
MAGIC_CMD=$MAGIC_CMD
3048
4901
OBJDUMP="$OBJDUMP"
3049
4902
 
3050
4903
# Used on cygwin: assembler.
3051
 
AS=$lt_AS
 
4904
AS="$AS"
3052
4905
 
3053
4906
# The name of the directory that contains temporary libtool files.
3054
4907
objdir=$objdir
3058
4911
reload_cmds=$lt_reload_cmds
3059
4912
 
3060
4913
# How to pass a linker flag through the compiler.
3061
 
wl=$lt_wl
 
4914
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
3062
4915
 
3063
4916
# Object file suffix (normally "o").
3064
4917
objext="$ac_objext"
3066
4919
# Old archive suffix (normally "a").
3067
4920
libext="$libext"
3068
4921
 
 
4922
# Shared library suffix (normally ".so").
 
4923
shrext='$shrext'
 
4924
 
3069
4925
# Executable file suffix (normally "").
3070
4926
exeext="$exeext"
3071
4927
 
3072
4928
# Additional compiler flags for building library objects.
3073
 
pic_flag=$lt_pic_flag
 
4929
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
3074
4930
pic_mode=$pic_mode
3075
4931
 
 
4932
# What is the maximum length of a command?
 
4933
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4934
 
3076
4935
# Does compiler simultaneously support -c and -o options?
3077
 
compiler_c_o=$lt_compiler_c_o
3078
 
 
3079
 
# Can we write directly to a .lo ?
3080
 
compiler_o_lo=$lt_compiler_o_lo
 
4936
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
3081
4937
 
3082
4938
# Must we lock files when doing compilation ?
3083
4939
need_locks=$lt_need_locks
3098
4954
dlopen_self_static=$enable_dlopen_self_static
3099
4955
 
3100
4956
# Compiler flag to prevent dynamic linking.
3101
 
link_static_flag=$lt_link_static_flag
 
4957
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
3102
4958
 
3103
4959
# Compiler flag to turn off builtin functions.
3104
 
no_builtin_flag=$lt_no_builtin_flag
 
4960
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
3105
4961
 
3106
4962
# Compiler flag to allow reflexive dlopens.
3107
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
4963
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
3108
4964
 
3109
4965
# Compiler flag to generate shared objects directly from archives.
3110
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
4966
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
3111
4967
 
3112
4968
# Compiler flag to generate thread-safe objects.
3113
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
4969
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
3114
4970
 
3115
4971
# Library versioning type.
3116
4972
version_type=$version_type
3127
4983
 
3128
4984
# Commands used to build and install an old-style archive.
3129
4985
RANLIB=$lt_RANLIB
3130
 
old_archive_cmds=$lt_old_archive_cmds
 
4986
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
3131
4987
old_postinstall_cmds=$lt_old_postinstall_cmds
3132
4988
old_postuninstall_cmds=$lt_old_postuninstall_cmds
3133
4989
 
3134
4990
# Create an old-style archive from a shared archive.
3135
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
4991
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
3136
4992
 
3137
4993
# Create a temporary old-style archive to link instead of a shared archive.
3138
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
4994
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
3139
4995
 
3140
4996
# Commands used to build and install a shared archive.
3141
 
archive_cmds=$lt_archive_cmds
3142
 
archive_expsym_cmds=$lt_archive_expsym_cmds
 
4997
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
 
4998
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
3143
4999
postinstall_cmds=$lt_postinstall_cmds
3144
5000
postuninstall_cmds=$lt_postuninstall_cmds
3145
5001
 
 
5002
# Commands used to build a loadable module (assumed same as above if empty)
 
5003
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
 
5004
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
 
5005
 
3146
5006
# Commands to strip libraries.
3147
5007
old_striplib=$lt_old_striplib
3148
5008
striplib=$lt_striplib
3149
5009
 
 
5010
# Dependencies to place before the objects being linked to create a
 
5011
# shared library.
 
5012
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
 
5013
 
 
5014
# Dependencies to place after the objects being linked to create a
 
5015
# shared library.
 
5016
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
 
5017
 
 
5018
# Dependencies to place before the objects being linked to create a
 
5019
# shared library.
 
5020
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
 
5021
 
 
5022
# Dependencies to place after the objects being linked to create a
 
5023
# shared library.
 
5024
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
 
5025
 
 
5026
# The library search path used internally by the compiler when linking
 
5027
# a shared library.
 
5028
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
 
5029
 
3150
5030
# Method to check whether dependent libraries are shared objects.
3151
5031
deplibs_check_method=$lt_deplibs_check_method
3152
5032
 
3154
5034
file_magic_cmd=$lt_file_magic_cmd
3155
5035
 
3156
5036
# Flag that allows shared libraries with undefined symbols to be built.
3157
 
allow_undefined_flag=$lt_allow_undefined_flag
 
5037
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
3158
5038
 
3159
5039
# Flag that forces no undefined symbols.
3160
 
no_undefined_flag=$lt_no_undefined_flag
 
5040
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
3161
5041
 
3162
5042
# Commands used to finish a libtool library installation in a directory.
3163
5043
finish_cmds=$lt_finish_cmds
3166
5046
finish_eval=$lt_finish_eval
3167
5047
 
3168
5048
# Take the output of nm and produce a listing of raw symbols and C names.
3169
 
global_symbol_pipe=$lt_global_symbol_pipe
 
5049
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
3170
5050
 
3171
5051
# Transform the output of nm in a proper C declaration
3172
 
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
 
5052
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
3173
5053
 
3174
5054
# Transform the output of nm in a C name address pair
3175
 
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
 
5055
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
3176
5056
 
3177
5057
# This is the shared library runtime path variable.
3178
5058
runpath_var=$runpath_var
3184
5064
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
3185
5065
 
3186
5066
# How to hardcode a shared library path into an executable.
3187
 
hardcode_action=$hardcode_action
 
5067
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
3188
5068
 
3189
5069
# Whether we should hardcode library paths into libraries.
3190
5070
hardcode_into_libs=$hardcode_into_libs
3191
5071
 
3192
5072
# Flag to hardcode \$libdir into a binary during linking.
3193
5073
# This must work even if \$libdir does not exist.
3194
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
5074
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
 
5075
 
 
5076
# If ld is used when linking, flag to hardcode \$libdir into
 
5077
# a binary during linking. This must work even if \$libdir does
 
5078
# not exist.
 
5079
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
3195
5080
 
3196
5081
# Whether we need a single -rpath flag with a separated argument.
3197
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
5082
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
3198
5083
 
3199
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
5084
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
3200
5085
# resulting binary.
3201
 
hardcode_direct=$hardcode_direct
 
5086
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
3202
5087
 
3203
5088
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
3204
5089
# resulting binary.
3205
 
hardcode_minus_L=$hardcode_minus_L
 
5090
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
3206
5091
 
3207
5092
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
3208
5093
# the resulting binary.
3209
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
5094
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
 
5095
 
 
5096
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
5097
# and all subsequent libraries and executables linked against it.
 
5098
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
3210
5099
 
3211
5100
# Variables whose values should be saved in libtool wrapper scripts and
3212
5101
# restored at relink time.
3213
5102
variables_saved_for_relink="$variables_saved_for_relink"
3214
5103
 
3215
5104
# Whether libtool must link a program against all its dependency libraries.
3216
 
link_all_deplibs=$link_all_deplibs
 
5105
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
3217
5106
 
3218
5107
# Compile-time system search path for libraries
3219
5108
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
3222
5111
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
3223
5112
 
3224
5113
# Fix the shell variable \$srcfile for the compiler.
3225
 
fix_srcfile_path="$fix_srcfile_path"
 
5114
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
3226
5115
 
3227
5116
# Set to yes if exported symbols are required.
3228
 
always_export_symbols=$always_export_symbols
 
5117
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
3229
5118
 
3230
5119
# The commands to list exported symbols.
3231
 
export_symbols_cmds=$lt_export_symbols_cmds
 
5120
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
3232
5121
 
3233
5122
# The commands to extract the exported symbol list from a shared archive.
3234
5123
extract_expsyms_cmds=$lt_extract_expsyms_cmds
3235
5124
 
3236
5125
# Symbols that should not be listed in the preloaded symbols.
3237
 
exclude_expsyms=$lt_exclude_expsyms
 
5126
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
3238
5127
 
3239
5128
# Symbols that must always be exported.
3240
 
include_expsyms=$lt_include_expsyms
 
5129
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
3241
5130
 
3242
 
# ### END LIBTOOL CONFIG
 
5131
ifelse([$1],[],
 
5132
[# ### END LIBTOOL CONFIG],
 
5133
[# ### END LIBTOOL TAG CONFIG: $tagname])
3243
5134
 
3244
5135
__EOF__
3245
5136
 
 
5137
ifelse([$1],[], [
3246
5138
  case $host_os in
3247
5139
  aix3*)
3248
 
    cat <<\EOF >> "${ofile}T"
 
5140
    cat <<\EOF >> "$cfgfile"
3249
5141
 
3250
5142
# AIX sometimes has problems with the GCC collect2 program.  For some
3251
5143
# reason, if we set the COLLECT_NAMES environment variable, the problems
3258
5150
    ;;
3259
5151
  esac
3260
5152
 
3261
 
  case $host_os in
3262
 
  cygwin* | mingw* | pw32* | os2*)
3263
 
    cat <<'EOF' >> "${ofile}T"
3264
 
      # This is a source program that is used to create dlls on Windows
3265
 
      # Don't remove nor modify the starting and closing comments
 
5153
  # We use sed instead of cat because bash on DJGPP gets confused if
 
5154
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
5155
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
5156
  # is reportedly fixed, but why not run on old versions too?
 
5157
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
5158
 
 
5159
  mv -f "$cfgfile" "$ofile" || \
 
5160
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
5161
  chmod +x "$ofile"
 
5162
])
 
5163
else
 
5164
  # If there is no Makefile yet, we rely on a make rule to execute
 
5165
  # `config.status --recheck' to rerun these tests and create the
 
5166
  # libtool script then.
 
5167
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
5168
  if test -f "$ltmain_in"; then
 
5169
    test -f Makefile && make "$ltmain"
 
5170
  fi
 
5171
fi
 
5172
])# AC_LIBTOOL_CONFIG
 
5173
 
 
5174
 
 
5175
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
 
5176
# -------------------------------------------
 
5177
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
 
5178
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
5179
 
 
5180
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
5181
 
 
5182
if test "$GCC" = yes; then
 
5183
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
5184
 
 
5185
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
5186
    lt_cv_prog_compiler_rtti_exceptions,
 
5187
    [-fno-rtti -fno-exceptions], [],
 
5188
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
5189
fi
 
5190
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
 
5191
 
 
5192
 
 
5193
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
5194
# ---------------------------------
 
5195
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
 
5196
[AC_REQUIRE([AC_CANONICAL_HOST])
 
5197
AC_REQUIRE([AC_PROG_NM])
 
5198
AC_REQUIRE([AC_OBJEXT])
 
5199
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5200
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
 
5201
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
 
5202
[
 
5203
# These are sane defaults that work on at least a few old systems.
 
5204
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5205
 
 
5206
# Character class describing NM global symbol codes.
 
5207
symcode='[[BCDEGRST]]'
 
5208
 
 
5209
# Regexp to match symbols that can be accessed directly from C.
 
5210
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
 
5211
 
 
5212
# Transform the above into a raw symbol and a C symbol.
 
5213
symxfrm='\1 \2\3 \3'
 
5214
 
 
5215
# Transform an extracted symbol line into a proper C declaration
 
5216
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5217
 
 
5218
# Transform an extracted symbol line into symbol name and symbol address
 
5219
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'"
 
5220
 
 
5221
# Define system-specific variables.
 
5222
case $host_os in
 
5223
aix*)
 
5224
  symcode='[[BCDT]]'
 
5225
  ;;
 
5226
cygwin* | mingw* | pw32*)
 
5227
  symcode='[[ABCDGISTW]]'
 
5228
  ;;
 
5229
hpux*) # Its linker distinguishes data from code symbols
 
5230
  if test "$host_cpu" = ia64; then
 
5231
    symcode='[[ABCDEGRST]]'
 
5232
  fi
 
5233
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5234
  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'"
 
5235
  ;;
 
5236
irix* | nonstopux*)
 
5237
  symcode='[[BCDEGRST]]'
 
5238
  ;;
 
5239
osf*)
 
5240
  symcode='[[BCDEGQRST]]'
 
5241
  ;;
 
5242
solaris* | sysv5*)
 
5243
  symcode='[[BDRT]]'
 
5244
  ;;
 
5245
sysv4)
 
5246
  symcode='[[DFNSTU]]'
 
5247
  ;;
 
5248
esac
 
5249
 
 
5250
# Handle CRLF in mingw tool chain
 
5251
opt_cr=
 
5252
case $build_os in
 
5253
mingw*)
 
5254
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5255
  ;;
 
5256
esac
 
5257
 
 
5258
# If we're using GNU nm, then use its standard symbol codes.
 
5259
case `$NM -V 2>&1` in
 
5260
*GNU* | *'with BFD'*)
 
5261
  symcode='[[ABCDGIRSTW]]' ;;
 
5262
esac
 
5263
 
 
5264
# Try without a prefix undercore, then with it.
 
5265
for ac_symprfx in "" "_"; do
 
5266
 
 
5267
  # Write the raw and C identifiers.
 
5268
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5269
 
 
5270
  # Check to see that the pipe works correctly.
 
5271
  pipe_works=no
 
5272
 
 
5273
  rm -f conftest*
 
5274
  cat > conftest.$ac_ext <<EOF
 
5275
#ifdef __cplusplus
 
5276
extern "C" {
 
5277
#endif
 
5278
char nm_test_var;
 
5279
void nm_test_func(){}
 
5280
#ifdef __cplusplus
 
5281
}
 
5282
#endif
 
5283
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5284
EOF
 
5285
 
 
5286
  if AC_TRY_EVAL(ac_compile); then
 
5287
    # Now try to grab the symbols.
 
5288
    nlist=conftest.nm
 
5289
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
5290
      # Try sorting and uniquifying the output.
 
5291
      if sort "$nlist" | uniq > "$nlist"T; then
 
5292
        mv -f "$nlist"T "$nlist"
 
5293
      else
 
5294
        rm -f "$nlist"T
 
5295
      fi
 
5296
 
 
5297
      # Make sure that we snagged all the symbols we need.
 
5298
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5299
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5300
          cat <<EOF > conftest.$ac_ext
 
5301
#ifdef __cplusplus
 
5302
extern "C" {
 
5303
#endif
 
5304
 
 
5305
EOF
 
5306
          # Now generate the symbol file.
 
5307
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5308
 
 
5309
          cat <<EOF >> conftest.$ac_ext
 
5310
#if defined (__STDC__) && __STDC__
 
5311
# define lt_ptr_t void *
 
5312
#else
 
5313
# define lt_ptr_t char *
 
5314
# define const
 
5315
#endif
 
5316
 
 
5317
/* The mapping between symbol names and symbols. */
 
5318
const struct {
 
5319
  const char *name;
 
5320
  lt_ptr_t address;
 
5321
}
 
5322
lt_preloaded_symbols[[]] =
 
5323
{
 
5324
EOF
 
5325
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5326
          cat <<\EOF >> conftest.$ac_ext
 
5327
  {0, (lt_ptr_t) 0}
 
5328
};
 
5329
 
 
5330
#ifdef __cplusplus
 
5331
}
 
5332
#endif
 
5333
EOF
 
5334
          # Now try linking the two files.
 
5335
          mv conftest.$ac_objext conftstm.$ac_objext
 
5336
          lt_save_LIBS="$LIBS"
 
5337
          lt_save_CFLAGS="$CFLAGS"
 
5338
          LIBS="conftstm.$ac_objext"
 
5339
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
5340
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
 
5341
            pipe_works=yes
 
5342
          fi
 
5343
          LIBS="$lt_save_LIBS"
 
5344
          CFLAGS="$lt_save_CFLAGS"
 
5345
        else
 
5346
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
 
5347
        fi
 
5348
      else
 
5349
        echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
 
5350
      fi
 
5351
    else
 
5352
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
 
5353
    fi
 
5354
  else
 
5355
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
 
5356
    cat conftest.$ac_ext >&5
 
5357
  fi
 
5358
  rm -f conftest* conftst*
 
5359
 
 
5360
  # Do not use the global_symbol_pipe unless it works.
 
5361
  if test "$pipe_works" = yes; then
 
5362
    break
 
5363
  else
 
5364
    lt_cv_sys_global_symbol_pipe=
 
5365
  fi
 
5366
done
 
5367
])
 
5368
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5369
  lt_cv_sys_global_symbol_to_cdecl=
 
5370
fi
 
5371
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5372
  AC_MSG_RESULT(failed)
 
5373
else
 
5374
  AC_MSG_RESULT(ok)
 
5375
fi
 
5376
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
5377
 
 
5378
 
 
5379
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
 
5380
# ---------------------------------------
 
5381
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
 
5382
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
 
5383
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5384
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 
5385
 
 
5386
AC_MSG_CHECKING([for $compiler option to produce PIC])
 
5387
 ifelse([$1],[CXX],[
 
5388
  # C++ specific cases for pic, static, wl, etc.
 
5389
  if test "$GXX" = yes; then
 
5390
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5391
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5392
 
 
5393
    case $host_os in
 
5394
    aix*)
 
5395
      # All AIX code is PIC.
 
5396
      if test "$host_cpu" = ia64; then
 
5397
        # AIX 5 now supports IA64 processor
 
5398
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5399
      fi
 
5400
      ;;
 
5401
    amigaos*)
 
5402
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5403
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5404
      # like `-m68040'.
 
5405
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
5406
      ;;
 
5407
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5408
      # PIC is the default for these OSes.
 
5409
      ;;
 
5410
    mingw* | os2* | pw32*)
 
5411
      # This hack is so that the source file can tell whether it is being
 
5412
      # built for inclusion in a dll (and should export symbols for example).
 
5413
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5414
      ;;
 
5415
    darwin* | rhapsody*)
 
5416
      # PIC is the default on this platform
 
5417
      # Common symbols not allowed in MH_DYLIB files
 
5418
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
5419
      ;;
 
5420
    *djgpp*)
 
5421
      # DJGPP does not support shared libraries at all
 
5422
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5423
      ;;
 
5424
    sysv4*MP*)
 
5425
      if test -d /usr/nec; then
 
5426
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
5427
      fi
 
5428
      ;;
 
5429
    hpux*)
 
5430
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5431
      # not for PA HP-UX.
 
5432
      case "$host_cpu" in
 
5433
      hppa*64*|ia64*)
 
5434
        ;;
 
5435
      *)
 
5436
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5437
        ;;
 
5438
      esac
 
5439
      ;;
 
5440
    *)
 
5441
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5442
      ;;
 
5443
    esac
 
5444
  else
 
5445
    case $host_os in
 
5446
      aix4* | aix5*)
 
5447
        # All AIX code is PIC.
 
5448
        if test "$host_cpu" = ia64; then
 
5449
          # AIX 5 now supports IA64 processor
 
5450
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5451
        else
 
5452
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
5453
        fi
 
5454
        ;;
 
5455
      chorus*)
 
5456
        case $cc_basename in
 
5457
        cxch68)
 
5458
          # Green Hills C++ Compiler
 
5459
          # _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"
 
5460
          ;;
 
5461
        esac
 
5462
        ;;
 
5463
      dgux*)
 
5464
        case $cc_basename in
 
5465
          ec++)
 
5466
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5467
            ;;
 
5468
          ghcx)
 
5469
            # Green Hills C++ Compiler
 
5470
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5471
            ;;
 
5472
          *)
 
5473
            ;;
 
5474
        esac
 
5475
        ;;
 
5476
      freebsd* | kfreebsd*-gnu)
 
5477
        # FreeBSD uses GNU C++
 
5478
        ;;
 
5479
      hpux9* | hpux10* | hpux11*)
 
5480
        case $cc_basename in
 
5481
          CC)
 
5482
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5483
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
5484
            if test "$host_cpu" != ia64; then
 
5485
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5486
            fi
 
5487
            ;;
 
5488
          aCC)
 
5489
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5490
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
5491
            case "$host_cpu" in
 
5492
            hppa*64*|ia64*)
 
5493
              # +Z the default
 
5494
              ;;
 
5495
            *)
 
5496
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5497
              ;;
 
5498
            esac
 
5499
            ;;
 
5500
          *)
 
5501
            ;;
 
5502
        esac
 
5503
        ;;
 
5504
      irix5* | irix6* | nonstopux*)
 
5505
        case $cc_basename in
 
5506
          CC)
 
5507
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5508
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5509
            # CC pic flag -KPIC is the default.
 
5510
            ;;
 
5511
          *)
 
5512
            ;;
 
5513
        esac
 
5514
        ;;
 
5515
      linux*)
 
5516
        case $cc_basename in
 
5517
          KCC)
 
5518
            # KAI C++ Compiler
 
5519
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
5520
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5521
            ;;
 
5522
          icpc)
 
5523
            # Intel C++
 
5524
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5525
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5526
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5527
            ;;
 
5528
          cxx)
 
5529
            # Compaq C++
 
5530
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
5531
            # Linux and Compaq Tru64 Unix objects are PIC.
 
5532
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5533
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5534
            ;;
 
5535
          *)
 
5536
            ;;
 
5537
        esac
 
5538
        ;;
 
5539
      lynxos*)
 
5540
        ;;
 
5541
      m88k*)
 
5542
        ;;
 
5543
      mvs*)
 
5544
        case $cc_basename in
 
5545
          cxx)
 
5546
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
5547
            ;;
 
5548
          *)
 
5549
            ;;
 
5550
        esac
 
5551
        ;;
 
5552
      netbsd* | knetbsd*-gnu)
 
5553
        ;;
 
5554
      osf3* | osf4* | osf5*)
 
5555
        case $cc_basename in
 
5556
          KCC)
 
5557
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
5558
            ;;
 
5559
          RCC)
 
5560
            # Rational C++ 2.4.1
 
5561
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5562
            ;;
 
5563
          cxx)
 
5564
            # Digital/Compaq C++
 
5565
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5566
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
5567
            # Linux and Compaq Tru64 Unix objects are PIC.
 
5568
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5569
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5570
            ;;
 
5571
          *)
 
5572
            ;;
 
5573
        esac
 
5574
        ;;
 
5575
      psos*)
 
5576
        ;;
 
5577
      sco*)
 
5578
        case $cc_basename in
 
5579
          CC)
 
5580
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5581
            ;;
 
5582
          *)
 
5583
            ;;
 
5584
        esac
 
5585
        ;;
 
5586
      solaris*)
 
5587
        case $cc_basename in
 
5588
          CC)
 
5589
            # Sun C++ 4.2, 5.x and Centerline C++
 
5590
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5591
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5592
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5593
            ;;
 
5594
          gcx)
 
5595
            # Green Hills C++ Compiler
 
5596
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5597
            ;;
 
5598
          *)
 
5599
            ;;
 
5600
        esac
 
5601
        ;;
 
5602
      sunos4*)
 
5603
        case $cc_basename in
 
5604
          CC)
 
5605
            # Sun C++ 4.x
 
5606
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5607
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5608
            ;;
 
5609
          lcc)
 
5610
            # Lucid
 
5611
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5612
            ;;
 
5613
          *)
 
5614
            ;;
 
5615
        esac
 
5616
        ;;
 
5617
      tandem*)
 
5618
        case $cc_basename in
 
5619
          NCC)
 
5620
            # NonStop-UX NCC 3.20
 
5621
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5622
            ;;
 
5623
          *)
 
5624
            ;;
 
5625
        esac
 
5626
        ;;
 
5627
      unixware*)
 
5628
        ;;
 
5629
      vxworks*)
 
5630
        ;;
 
5631
      *)
 
5632
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5633
        ;;
 
5634
    esac
 
5635
  fi
 
5636
],
 
5637
[
 
5638
  if test "$GCC" = yes; then
 
5639
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5640
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5641
 
 
5642
    case $host_os in
 
5643
      aix*)
 
5644
      # All AIX code is PIC.
 
5645
      if test "$host_cpu" = ia64; then
 
5646
        # AIX 5 now supports IA64 processor
 
5647
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5648
      fi
 
5649
      ;;
 
5650
 
 
5651
    amigaos*)
 
5652
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5653
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5654
      # like `-m68040'.
 
5655
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
5656
      ;;
 
5657
 
 
5658
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5659
      # PIC is the default for these OSes.
 
5660
      ;;
 
5661
 
 
5662
    mingw* | pw32* | os2*)
 
5663
      # This hack is so that the source file can tell whether it is being
 
5664
      # built for inclusion in a dll (and should export symbols for example).
 
5665
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5666
      ;;
 
5667
 
 
5668
    darwin* | rhapsody*)
 
5669
      # PIC is the default on this platform
 
5670
      # Common symbols not allowed in MH_DYLIB files
 
5671
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
5672
      ;;
 
5673
 
 
5674
    msdosdjgpp*)
 
5675
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
5676
      # on systems that don't support them.
 
5677
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5678
      enable_shared=no
 
5679
      ;;
 
5680
 
 
5681
    sysv4*MP*)
 
5682
      if test -d /usr/nec; then
 
5683
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
5684
      fi
 
5685
      ;;
 
5686
 
 
5687
    hpux*)
 
5688
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5689
      # not for PA HP-UX.
 
5690
      case "$host_cpu" in
 
5691
      hppa*64*|ia64*)
 
5692
        # +Z the default
 
5693
        ;;
 
5694
      *)
 
5695
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5696
        ;;
 
5697
      esac
 
5698
      ;;
 
5699
 
 
5700
    *)
 
5701
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5702
      ;;
 
5703
    esac
 
5704
  else
 
5705
    # PORTME Check for flag to pass linker flags through the system compiler.
 
5706
    case $host_os in
 
5707
    aix*)
 
5708
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5709
      if test "$host_cpu" = ia64; then
 
5710
        # AIX 5 now supports IA64 processor
 
5711
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5712
      else
 
5713
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
5714
      fi
 
5715
      ;;
 
5716
 
 
5717
    mingw* | pw32* | os2*)
 
5718
      # This hack is so that the source file can tell whether it is being
 
5719
      # built for inclusion in a dll (and should export symbols for example).
 
5720
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5721
      ;;
 
5722
 
 
5723
    hpux9* | hpux10* | hpux11*)
 
5724
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5725
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5726
      # not for PA HP-UX.
 
5727
      case "$host_cpu" in
 
5728
      hppa*64*|ia64*)
 
5729
        # +Z the default
 
5730
        ;;
 
5731
      *)
 
5732
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5733
        ;;
 
5734
      esac
 
5735
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
5736
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5737
      ;;
 
5738
 
 
5739
    irix5* | irix6* | nonstopux*)
 
5740
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5741
      # PIC (with -KPIC) is the default.
 
5742
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5743
      ;;
 
5744
 
 
5745
    newsos6)
 
5746
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5747
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5748
      ;;
 
5749
 
 
5750
    linux*)
 
5751
      case $CC in
 
5752
      icc* | ecc*)
 
5753
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5754
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5755
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5756
        ;;
 
5757
      ccc*)
 
5758
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5759
        # All Alpha code is PIC.
 
5760
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5761
        ;;
 
5762
      esac
 
5763
      ;;
 
5764
 
 
5765
    osf3* | osf4* | osf5*)
 
5766
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5767
      # All OSF/1 code is PIC.
 
5768
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5769
      ;;
 
5770
 
 
5771
    sco3.2v5*)
 
5772
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
 
5773
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
 
5774
      ;;
 
5775
 
 
5776
    solaris*)
 
5777
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5778
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5779
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5780
      ;;
 
5781
 
 
5782
    sunos4*)
 
5783
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5784
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5785
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5786
      ;;
 
5787
 
 
5788
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5789
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5790
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5791
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5792
      ;;
 
5793
 
 
5794
    sysv4*MP*)
 
5795
      if test -d /usr/nec ;then
 
5796
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
5797
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5798
      fi
 
5799
      ;;
 
5800
 
 
5801
    uts4*)
 
5802
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5803
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5804
      ;;
 
5805
 
 
5806
    *)
 
5807
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5808
      ;;
 
5809
    esac
 
5810
  fi
 
5811
])
 
5812
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
5813
 
 
5814
#
 
5815
# Check to make sure the PIC flag actually works.
 
5816
#
 
5817
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
5818
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
 
5819
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
5820
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
 
5821
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
5822
     "" | " "*) ;;
 
5823
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
5824
     esac],
 
5825
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5826
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
5827
fi
 
5828
case "$host_os" in
 
5829
  # For platforms which do not support PIC, -DPIC is meaningless:
 
5830
  *djgpp*)
 
5831
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5832
    ;;
 
5833
  *)
 
5834
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
 
5835
    ;;
 
5836
esac
 
5837
])
 
5838
 
 
5839
 
 
5840
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
 
5841
# ------------------------------------
 
5842
# See if the linker supports building shared libraries.
 
5843
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
 
5844
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5845
ifelse([$1],[CXX],[
 
5846
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5847
  case $host_os in
 
5848
  aix4* | aix5*)
 
5849
    # If we're using GNU nm, then we don't want the "-C" option.
 
5850
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
5851
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
5852
      _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'
 
5853
    else
 
5854
      _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'
 
5855
    fi
 
5856
    ;;
 
5857
  pw32*)
 
5858
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
5859
  ;;
 
5860
  cygwin* | mingw*)
 
5861
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5862
  ;;
 
5863
  *)
 
5864
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5865
  ;;
 
5866
  esac
 
5867
],[
 
5868
  runpath_var=
 
5869
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
5870
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5871
  _LT_AC_TAGVAR(archive_cmds, $1)=
 
5872
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
5873
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
 
5874
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
5875
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
5876
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5877
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
 
5878
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5879
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
5880
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
5881
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5882
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
5883
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5884
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
5885
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
5886
  _LT_AC_TAGVAR(module_cmds, $1)=
 
5887
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
5888
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
5889
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5890
  # include_expsyms should be a list of space-separated symbols to be *always*
 
5891
  # included in the symbol list
 
5892
  _LT_AC_TAGVAR(include_expsyms, $1)=
 
5893
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
5894
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
5895
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
5896
  # as well as any symbol that contains `d'.
 
5897
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5898
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
5899
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
5900
  # the symbol is explicitly referenced.  Since portable code cannot
 
5901
  # rely on this symbol name, it's probably fine to never include it in
 
5902
  # preloaded symbol tables.
 
5903
  extract_expsyms_cmds=
 
5904
 
 
5905
  case $host_os in
 
5906
  cygwin* | mingw* | pw32*)
 
5907
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
5908
    # When not using gcc, we currently assume that we are using
 
5909
    # Microsoft Visual C++.
 
5910
    if test "$GCC" != yes; then
 
5911
      with_gnu_ld=no
 
5912
    fi
 
5913
    ;;
 
5914
  openbsd*)
 
5915
    with_gnu_ld=no
 
5916
    ;;
 
5917
  esac
 
5918
 
 
5919
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5920
  if test "$with_gnu_ld" = yes; then
 
5921
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
5922
    wlarc='${wl}'
 
5923
 
 
5924
    # See if GNU ld supports shared libraries.
 
5925
    case $host_os in
 
5926
    aix3* | aix4* | aix5*)
 
5927
      # On AIX/PPC, the GNU linker is very broken
 
5928
      if test "$host_cpu" != ia64; then
 
5929
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5930
        cat <<EOF 1>&2
 
5931
 
 
5932
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
5933
*** to be unable to reliably create shared libraries on AIX.
 
5934
*** Therefore, libtool is disabling shared libraries support.  If you
 
5935
*** really care for shared libraries, you may want to modify your PATH
 
5936
*** so that a non-GNU linker is found, and then restart.
 
5937
 
 
5938
EOF
 
5939
      fi
 
5940
      ;;
 
5941
 
 
5942
    amigaos*)
 
5943
      _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)'
 
5944
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5945
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5946
 
 
5947
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
5948
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
5949
      # to version 4, is to share data among multiple programs linked
 
5950
      # with the same dynamic library.  Since this doesn't match the
 
5951
      # behavior of shared libraries on other platforms, we can't use
 
5952
      # them.
 
5953
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5954
      ;;
 
5955
 
 
5956
    beos*)
 
5957
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5958
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5959
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
5960
        # support --undefined.  This deserves some investigation.  FIXME
 
5961
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5962
      else
 
5963
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5964
      fi
 
5965
      ;;
 
5966
 
 
5967
    cygwin* | mingw* | pw32*)
 
5968
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
5969
      # as there is no search path for DLLs.
 
5970
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5971
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5972
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
5973
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5974
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5975
 
 
5976
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
5977
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
5978
        # If the export-symbols file already is a .def file (1st line
 
5979
        # is EXPORTS), use it as is; otherwise, prepend...
 
5980
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5981
          cp $export_symbols $output_objdir/$soname.def;
 
5982
        else
 
5983
          echo EXPORTS > $output_objdir/$soname.def;
 
5984
          cat $export_symbols >> $output_objdir/$soname.def;
 
5985
        fi~
 
5986
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
5987
      else
 
5988
        ld_shlibs=no
 
5989
      fi
 
5990
      ;;
 
5991
 
 
5992
    netbsd* | knetbsd*-gnu)
 
5993
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
5994
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
5995
        wlarc=
 
5996
      else
 
5997
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5998
        _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'
 
5999
      fi
 
6000
      ;;
 
6001
 
 
6002
    solaris* | sysv5*)
 
6003
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6004
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6005
        cat <<EOF 1>&2
 
6006
 
 
6007
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6008
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6009
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6010
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6011
*** your PATH or compiler configuration so that the native linker is
 
6012
*** used, and then restart.
 
6013
 
 
6014
EOF
 
6015
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6016
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6017
        _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'
 
6018
      else
 
6019
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6020
      fi
 
6021
      ;;
 
6022
 
 
6023
    sunos4*)
 
6024
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6025
      wlarc=
 
6026
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6027
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6028
      ;;
 
6029
 
 
6030
  linux*)
 
6031
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
6032
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6033
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
 
6034
      supports_anon_versioning=no
 
6035
      case `$LD -v 2>/dev/null` in
 
6036
        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6037
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6038
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6039
        *\ 2.11.*) ;; # other 2.11 versions
 
6040
        *) supports_anon_versioning=yes ;;
 
6041
      esac
 
6042
      if test $supports_anon_versioning = yes; then
 
6043
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
6044
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6045
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
6046
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6047
      else
 
6048
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
 
6049
      fi
 
6050
    else
 
6051
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6052
    fi
 
6053
    ;;
 
6054
 
 
6055
    *)
 
6056
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6057
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6058
        _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'
 
6059
      else
 
6060
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6061
      fi
 
6062
      ;;
 
6063
    esac
 
6064
 
 
6065
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
 
6066
      runpath_var=LD_RUN_PATH
 
6067
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
6068
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6069
      # ancient GNU ld didn't support --whole-archive et. al.
 
6070
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6071
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6072
      else
 
6073
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
6074
      fi
 
6075
    fi
 
6076
  else
 
6077
    # PORTME fill in a description of your system's linker (not GNU ld)
 
6078
    case $host_os in
 
6079
    aix3*)
 
6080
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6081
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
6082
      _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'
 
6083
      # Note: this linker hardcodes the directories in LIBPATH if there
 
6084
      # are no directories specified by -L.
 
6085
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6086
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6087
        # Neither direct hardcoding nor static linking is supported with a
 
6088
        # broken collect2.
 
6089
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
6090
      fi
 
6091
      ;;
 
6092
 
 
6093
    aix4* | aix5*)
 
6094
      if test "$host_cpu" = ia64; then
 
6095
        # On IA64, the linker does run time linking by default, so we don't
 
6096
        # have to do anything special.
 
6097
        aix_use_runtimelinking=no
 
6098
        exp_sym_flag='-Bexport'
 
6099
        no_entry_flag=""
 
6100
      else
 
6101
        # If we're using GNU nm, then we don't want the "-C" option.
 
6102
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6103
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6104
          _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'
 
6105
        else
 
6106
          _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'
 
6107
        fi
 
6108
        aix_use_runtimelinking=no
 
6109
 
 
6110
        # Test if we are trying to use run time linking or normal
 
6111
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6112
        # need to do runtime linking.
 
6113
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
6114
          for ld_flag in $LDFLAGS; do
 
6115
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6116
            aix_use_runtimelinking=yes
 
6117
            break
 
6118
          fi
 
6119
          done
 
6120
        esac
 
6121
 
 
6122
        exp_sym_flag='-bexport'
 
6123
        no_entry_flag='-bnoentry'
 
6124
      fi
 
6125
 
 
6126
      # When large executables or shared objects are built, AIX ld can
 
6127
      # have problems creating the table of contents.  If linking a library
 
6128
      # or program results in "error TOC overflow" add -mminimal-toc to
 
6129
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6130
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6131
 
 
6132
      _LT_AC_TAGVAR(archive_cmds, $1)=''
 
6133
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6134
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6135
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6136
 
 
6137
      if test "$GCC" = yes; then
 
6138
        case $host_os in aix4.[012]|aix4.[012].*)
 
6139
        # We only want to do this on AIX 4.2 and lower, the check
 
6140
        # below for broken collect2 doesn't work under 4.3+
 
6141
          collect2name=`${CC} -print-prog-name=collect2`
 
6142
          if test -f "$collect2name" && \
 
6143
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6144
          then
 
6145
          # We have reworked collect2
 
6146
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6147
          else
 
6148
          # We have old collect2
 
6149
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
6150
          # It fails to find uninstalled libraries when the uninstalled
 
6151
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6152
          # to unsupported forces relinking
 
6153
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6154
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6155
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
6156
          fi
 
6157
        esac
 
6158
        shared_flag='-shared'
 
6159
      else
 
6160
        # not using gcc
 
6161
        if test "$host_cpu" = ia64; then
 
6162
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6163
        # chokes on -Wl,-G. The following line is correct:
 
6164
          shared_flag='-G'
 
6165
        else
 
6166
        if test "$aix_use_runtimelinking" = yes; then
 
6167
            shared_flag='${wl}-G'
 
6168
          else
 
6169
            shared_flag='${wl}-bM:SRE'
 
6170
        fi
 
6171
        fi
 
6172
      fi
 
6173
 
 
6174
      # It seems that -bexpall does not export symbols beginning with
 
6175
      # underscore (_), so it is better to generate a list of symbols to export.
 
6176
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
6177
      if test "$aix_use_runtimelinking" = yes; then
 
6178
        # Warning - without using the other runtime loading flags (-brtl),
 
6179
        # -berok will link without error, but may produce a broken library.
 
6180
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
6181
       # Determine the default libpath from the value encoded in an empty executable.
 
6182
       _LT_AC_SYS_LIBPATH_AIX
 
6183
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6184
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6185
       else
 
6186
        if test "$host_cpu" = ia64; then
 
6187
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
6188
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
6189
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
6190
        else
 
6191
         # Determine the default libpath from the value encoded in an empty executable.
 
6192
         _LT_AC_SYS_LIBPATH_AIX
 
6193
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6194
          # Warning - without using the other run time loading flags,
 
6195
          # -berok will link without error, but may produce a broken library.
 
6196
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
6197
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
6198
          # -bexpall does not export symbols beginning with underscore (_)
 
6199
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
6200
          # Exported symbols can be pulled into shared objects from archives
 
6201
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
6202
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6203
          # This is similar to how AIX traditionally builds it's shared libraries.
 
6204
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
6205
        fi
 
6206
      fi
 
6207
      ;;
 
6208
 
 
6209
    amigaos*)
 
6210
      _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)'
 
6211
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6212
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6213
      # see comment about different semantics on the GNU ld section
 
6214
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6215
      ;;
 
6216
 
 
6217
    bsdi4*)
 
6218
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
6219
      ;;
 
6220
 
 
6221
    cygwin* | mingw* | pw32*)
 
6222
      # When not using gcc, we currently assume that we are using
 
6223
      # Microsoft Visual C++.
 
6224
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6225
      # no search path for DLLs.
 
6226
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6227
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6228
      # Tell ltmain to make .lib files, not .a files.
 
6229
      libext=lib
 
6230
      # Tell ltmain to make .dll files, not .so files.
 
6231
      shrext=".dll"
 
6232
      # FIXME: Setting linknames here is a bad hack.
 
6233
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6234
      # The linker will automatically build a .lib file if we build a DLL.
 
6235
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 
6236
      # FIXME: Should let the user specify the lib program.
 
6237
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6238
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
6239
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6240
      ;;
 
6241
 
 
6242
    darwin* | rhapsody*)
 
6243
    if test "$GXX" = yes ; then
 
6244
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6245
      case "$host_os" in
 
6246
      rhapsody* | darwin1.[[012]])
 
6247
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
 
6248
        ;;
 
6249
      *) # Darwin 1.3 on
 
6250
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
6251
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
6252
      else
 
6253
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
6254
          10.[[012]])
 
6255
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
6256
            ;;
 
6257
          10.*)
 
6258
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
 
6259
            ;;
 
6260
        esac
 
6261
      fi
 
6262
        ;;
 
6263
      esac
 
6264
        lt_int_apple_cc_single_mod=no
 
6265
        output_verbose_link_cmd='echo'
 
6266
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
6267
          lt_int_apple_cc_single_mod=yes
 
6268
        fi
 
6269
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
6270
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6271
        else
 
6272
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
 
6273
      fi
 
6274
      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6275
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
6276
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
6277
          _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}'
 
6278
        else
 
6279
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
 
6280
        fi
 
6281
          _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}'
 
6282
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6283
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
6284
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6285
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
 
6286
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6287
    else
 
6288
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6289
    fi
 
6290
      ;;
 
6291
 
 
6292
    dgux*)
 
6293
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6294
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6295
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6296
      ;;
 
6297
 
 
6298
    freebsd1*)
 
6299
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6300
      ;;
 
6301
 
 
6302
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
6303
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
6304
    # does not break anything, and helps significantly (at the cost of a little
 
6305
    # extra space).
 
6306
    freebsd2.2*)
 
6307
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6308
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6309
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6310
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6311
      ;;
 
6312
 
 
6313
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
6314
    freebsd2*)
 
6315
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6316
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6317
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6318
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6319
      ;;
 
6320
 
 
6321
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
6322
    freebsd* | kfreebsd*-gnu)
 
6323
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6324
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6325
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6326
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6327
      ;;
 
6328
 
 
6329
    hpux9*)
 
6330
      if test "$GCC" = yes; then
 
6331
        _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'
 
6332
      else
 
6333
        _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'
 
6334
      fi
 
6335
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6336
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6337
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6338
 
 
6339
      # hardcode_minus_L: Not really in the search PATH,
 
6340
      # but as the default location of the library.
 
6341
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6342
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6343
      ;;
 
6344
 
 
6345
    hpux10* | hpux11*)
 
6346
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6347
        case "$host_cpu" in
 
6348
        hppa*64*|ia64*)
 
6349
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6350
          ;;
 
6351
        *)
 
6352
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6353
          ;;
 
6354
        esac
 
6355
      else
 
6356
        case "$host_cpu" in
 
6357
        hppa*64*|ia64*)
 
6358
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6359
          ;;
 
6360
        *)
 
6361
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6362
          ;;
 
6363
        esac
 
6364
      fi
 
6365
      if test "$with_gnu_ld" = no; then
 
6366
        case "$host_cpu" in
 
6367
        hppa*64*)
 
6368
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6369
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
6370
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6371
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6372
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6373
          ;;
 
6374
        ia64*)
 
6375
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6376
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6377
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6378
 
 
6379
          # hardcode_minus_L: Not really in the search PATH,
 
6380
          # but as the default location of the library.
 
6381
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6382
          ;;
 
6383
        *)
 
6384
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6385
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6386
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6387
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6388
 
 
6389
          # hardcode_minus_L: Not really in the search PATH,
 
6390
          # but as the default location of the library.
 
6391
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6392
          ;;
 
6393
        esac
 
6394
      fi
 
6395
      ;;
 
6396
 
 
6397
    irix5* | irix6* | nonstopux*)
 
6398
      if test "$GCC" = yes; then
 
6399
        _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'
 
6400
      else
 
6401
        _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'
 
6402
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
6403
      fi
 
6404
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6405
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6406
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6407
      ;;
 
6408
 
 
6409
    netbsd* | knetbsd*-gnu)
 
6410
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6411
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6412
      else
 
6413
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
6414
      fi
 
6415
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6416
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6417
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6418
      ;;
 
6419
 
 
6420
    newsos6)
 
6421
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6422
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6423
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6424
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6425
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6426
      ;;
 
6427
 
 
6428
    openbsd*)
 
6429
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6430
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6431
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6432
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6433
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6434
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6435
      else
 
6436
       case $host_os in
 
6437
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6438
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6439
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6440
           ;;
 
6441
         *)
 
6442
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6443
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6444
           ;;
 
6445
       esac
 
6446
      fi
 
6447
      ;;
 
6448
 
 
6449
    os2*)
 
6450
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6451
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6452
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6453
      _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'
 
6454
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
6455
      ;;
 
6456
 
 
6457
    osf3*)
 
6458
      if test "$GCC" = yes; then
 
6459
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6460
        _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'
 
6461
      else
 
6462
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6463
        _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'
 
6464
      fi
 
6465
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6466
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6467
      ;;
 
6468
 
 
6469
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
6470
      if test "$GCC" = yes; then
 
6471
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6472
        _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'
 
6473
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6474
      else
 
6475
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6476
        _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'
 
6477
        _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~
 
6478
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
6479
 
 
6480
        # Both c and cxx compiler support -rpath directly
 
6481
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6482
      fi
 
6483
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6484
      ;;
 
6485
 
 
6486
    sco3.2v5*)
 
6487
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6488
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6489
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6490
      runpath_var=LD_RUN_PATH
 
6491
      hardcode_runpath_var=yes
 
6492
      ;;
 
6493
 
 
6494
    solaris*)
 
6495
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
6496
      if test "$GCC" = yes; then
 
6497
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6498
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6499
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
6500
      else
 
6501
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6502
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6503
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6504
      fi
 
6505
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6506
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6507
      case $host_os in
 
6508
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
6509
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6510
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
6511
      esac
 
6512
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6513
      ;;
 
6514
 
 
6515
    sunos4*)
 
6516
      if test "x$host_vendor" = xsequent; then
 
6517
        # Use $CC to link under sequent, because it throws in some extra .o
 
6518
        # files that make .init and .fini sections work.
 
6519
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6520
      else
 
6521
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
6522
      fi
 
6523
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6524
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6525
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6526
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6527
      ;;
 
6528
 
 
6529
    sysv4)
 
6530
      case $host_vendor in
 
6531
        sni)
 
6532
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6533
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
6534
        ;;
 
6535
        siemens)
 
6536
          ## LD is ld it makes a PLAMLIB
 
6537
          ## CC just makes a GrossModule.
 
6538
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6539
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
6540
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6541
        ;;
 
6542
        motorola)
 
6543
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6544
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
6545
        ;;
 
6546
      esac
 
6547
      runpath_var='LD_RUN_PATH'
 
6548
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6549
      ;;
 
6550
 
 
6551
    sysv4.3*)
 
6552
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6553
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6554
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
6555
      ;;
 
6556
 
 
6557
    sysv4*MP*)
 
6558
      if test -d /usr/nec; then
 
6559
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6560
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6561
        runpath_var=LD_RUN_PATH
 
6562
        hardcode_runpath_var=yes
 
6563
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
6564
      fi
 
6565
      ;;
 
6566
 
 
6567
    sysv4.2uw2*)
 
6568
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6569
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6570
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
6571
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6572
      hardcode_runpath_var=yes
 
6573
      runpath_var=LD_RUN_PATH
 
6574
      ;;
 
6575
 
 
6576
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
 
6577
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
 
6578
      if test "$GCC" = yes; then
 
6579
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6580
      else
 
6581
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6582
      fi
 
6583
      runpath_var='LD_RUN_PATH'
 
6584
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6585
      ;;
 
6586
 
 
6587
    sysv5*)
 
6588
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
6589
      # $CC -shared without GNU ld will not create a library from C++
 
6590
      # object files and a static libstdc++, better avoid it by now
 
6591
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6592
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6593
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6594
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6595
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6596
      runpath_var='LD_RUN_PATH'
 
6597
      ;;
 
6598
 
 
6599
    uts4*)
 
6600
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6601
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6602
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6603
      ;;
 
6604
 
 
6605
    *)
 
6606
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6607
      ;;
 
6608
    esac
 
6609
  fi
 
6610
])
 
6611
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
6612
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6613
 
 
6614
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
6615
if test "$GCC" = yes; then
 
6616
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
6617
fi
 
6618
 
 
6619
#
 
6620
# Do we need to explicitly link libc?
 
6621
#
 
6622
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 
6623
x|xyes)
 
6624
  # Assume -lc should be added
 
6625
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6626
 
 
6627
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
6628
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
 
6629
    *'~'*)
 
6630
      # FIXME: we may have to deal with multi-command sequences.
 
6631
      ;;
 
6632
    '$CC '*)
 
6633
      # Test whether the compiler implicitly links with -lc since on some
 
6634
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
6635
      # to ld, don't add -lc before -lgcc.
 
6636
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
 
6637
      $rm conftest*
 
6638
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6639
 
 
6640
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
6641
        soname=conftest
 
6642
        lib=conftest
 
6643
        libobjs=conftest.$ac_objext
 
6644
        deplibs=
 
6645
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
6646
        compiler_flags=-v
 
6647
        linker_flags=-v
 
6648
        verstring=
 
6649
        output_objdir=.
 
6650
        libname=conftest
 
6651
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
 
6652
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
6653
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 
6654
        then
 
6655
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6656
        else
 
6657
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6658
        fi
 
6659
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
6660
      else
 
6661
        cat conftest.err 1>&5
 
6662
      fi
 
6663
      $rm conftest*
 
6664
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 
6665
      ;;
 
6666
    esac
 
6667
  fi
 
6668
  ;;
 
6669
esac
 
6670
])# AC_LIBTOOL_PROG_LD_SHLIBS
 
6671
 
 
6672
 
 
6673
# _LT_AC_FILE_LTDLL_C
 
6674
# -------------------
 
6675
# Be careful that the start marker always follows a newline.
 
6676
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
3266
6677
# /* ltdll.c starts here */
3267
6678
# #define WIN32_LEAN_AND_MEAN
3268
6679
# #include <windows.h>
3296
6707
#   return TRUE;
3297
6708
# }
3298
6709
# /* ltdll.c ends here */
3299
 
        # This is a source program that is used to create import libraries
3300
 
        # on Windows for dlls which lack them. Don't remove nor modify the
3301
 
        # starting and closing comments
3302
 
# /* impgen.c starts here */
3303
 
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
3304
 
#
3305
 
#  This file is part of GNU libtool.
3306
 
#
3307
 
#  This program is free software; you can redistribute it and/or modify
3308
 
#  it under the terms of the GNU General Public License as published by
3309
 
#  the Free Software Foundation; either version 2 of the License, or
3310
 
#  (at your option) any later version.
3311
 
#
3312
 
#  This program is distributed in the hope that it will be useful,
3313
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
3314
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3315
 
#  GNU General Public License for more details.
3316
 
#
3317
 
#  You should have received a copy of the GNU General Public License
3318
 
#  along with this program; if not, write to the Free Software
3319
 
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3320
 
#  */
3321
 
#
3322
 
# #include <stdio.h>            /* for printf() */
3323
 
# #include <unistd.h>           /* for open(), lseek(), read() */
3324
 
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
3325
 
# #include <string.h>           /* for strdup() */
3326
 
#
3327
 
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
3328
 
# #ifndef O_BINARY
3329
 
# #define O_BINARY 0
3330
 
# #endif
3331
 
#
3332
 
# static unsigned int
3333
 
# pe_get16 (fd, offset)
3334
 
#      int fd;
3335
 
#      int offset;
3336
 
# {
3337
 
#   unsigned char b[2];
3338
 
#   lseek (fd, offset, SEEK_SET);
3339
 
#   read (fd, b, 2);
3340
 
#   return b[0] + (b[1]<<8);
3341
 
# }
3342
 
#
3343
 
# static unsigned int
3344
 
# pe_get32 (fd, offset)
3345
 
#     int fd;
3346
 
#     int offset;
3347
 
# {
3348
 
#   unsigned char b[4];
3349
 
#   lseek (fd, offset, SEEK_SET);
3350
 
#   read (fd, b, 4);
3351
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
3352
 
# }
3353
 
#
3354
 
# static unsigned int
3355
 
# pe_as32 (ptr)
3356
 
#      void *ptr;
3357
 
# {
3358
 
#   unsigned char *b = ptr;
3359
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
3360
 
# }
3361
 
#
3362
 
# int
3363
 
# main (argc, argv)
3364
 
#     int argc;
3365
 
#     char *argv[];
3366
 
# {
3367
 
#     int dll;
3368
 
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
3369
 
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
3370
 
#     unsigned long name_rvas, nexp;
3371
 
#     unsigned char *expdata, *erva;
3372
 
#     char *filename, *dll_name;
3373
 
#
3374
 
#     filename = argv[1];
3375
 
#
3376
 
#     dll = open(filename, O_RDONLY|O_BINARY);
3377
 
#     if (dll < 1)
3378
 
#       return 1;
3379
 
#
3380
 
#     dll_name = filename;
3381
 
#
3382
 
#     for (i=0; filename[i]; i++)
3383
 
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
3384
 
#           dll_name = filename + i +1;
3385
 
#
3386
 
#     pe_header_offset = pe_get32 (dll, 0x3c);
3387
 
#     opthdr_ofs = pe_header_offset + 4 + 20;
3388
 
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
3389
 
#
3390
 
#     if (num_entries < 1) /* no exports */
3391
 
#       return 1;
3392
 
#
3393
 
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
3394
 
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
3395
 
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
3396
 
#     secptr = (pe_header_offset + 4 + 20 +
3397
 
#             pe_get16 (dll, pe_header_offset + 4 + 16));
3398
 
#
3399
 
#     expptr = 0;
3400
 
#     for (i = 0; i < nsections; i++)
3401
 
#     {
3402
 
#       char sname[8];
3403
 
#       unsigned long secptr1 = secptr + 40 * i;
3404
 
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
3405
 
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
3406
 
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
3407
 
#       lseek(dll, secptr1, SEEK_SET);
3408
 
#       read(dll, sname, 8);
3409
 
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
3410
 
#       {
3411
 
#           expptr = fptr + (export_rva - vaddr);
3412
 
#           if (export_rva + export_size > vaddr + vsize)
3413
 
#               export_size = vsize - (export_rva - vaddr);
3414
 
#           break;
3415
 
#       }
3416
 
#     }
3417
 
#
3418
 
#     expdata = (unsigned char*)malloc(export_size);
3419
 
#     lseek (dll, expptr, SEEK_SET);
3420
 
#     read (dll, expdata, export_size);
3421
 
#     erva = expdata - export_rva;
3422
 
#
3423
 
#     nexp = pe_as32 (expdata+24);
3424
 
#     name_rvas = pe_as32 (expdata+32);
3425
 
#
3426
 
#     printf ("EXPORTS\n");
3427
 
#     for (i = 0; i<nexp; i++)
3428
 
#     {
3429
 
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
3430
 
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
3431
 
#     }
3432
 
#
3433
 
#     return 0;
3434
 
# }
3435
 
# /* impgen.c ends here */
3436
 
 
3437
 
EOF
3438
 
    ;;
3439
 
  esac
3440
 
 
3441
 
  # We use sed instead of cat because bash on DJGPP gets confused if
3442
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
3443
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
3444
 
  # is reportedly fixed, but why not run on old versions too?
3445
 
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
3446
 
 
3447
 
  mv -f "${ofile}T" "$ofile" || \
3448
 
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
3449
 
  chmod +x "$ofile"
3450
 
fi
3451
 
 
3452
 
])# _LT_AC_LTCONFIG_HACK
3453
 
 
3454
 
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
3455
 
AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
3456
 
 
3457
 
# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
3458
 
AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
3459
 
 
3460
 
# AC_ENABLE_SHARED - implement the --enable-shared flag
3461
 
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
3462
 
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
3463
 
#   `yes'.
3464
 
AC_DEFUN([AC_ENABLE_SHARED],
3465
 
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3466
 
AC_ARG_ENABLE(shared,
3467
 
changequote(<<, >>)dnl
3468
 
<<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
3469
 
changequote([, ])dnl
3470
 
[p=${PACKAGE-default}
3471
 
case $enableval in
3472
 
yes) enable_shared=yes ;;
3473
 
no) enable_shared=no ;;
3474
 
*)
3475
 
  enable_shared=no
3476
 
  # Look at the argument we got.  We use all the common list separators.
3477
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3478
 
  for pkg in $enableval; do
3479
 
    if test "X$pkg" = "X$p"; then
3480
 
      enable_shared=yes
3481
 
    fi
3482
 
  done
3483
 
  IFS="$ac_save_ifs"
3484
 
  ;;
3485
 
esac],
3486
 
enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
3487
 
])
3488
 
 
3489
 
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
3490
 
AC_DEFUN([AC_DISABLE_SHARED],
3491
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3492
 
AC_ENABLE_SHARED(no)])
3493
 
 
3494
 
# AC_ENABLE_STATIC - implement the --enable-static flag
3495
 
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
3496
 
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
3497
 
#   `yes'.
3498
 
AC_DEFUN([AC_ENABLE_STATIC],
3499
 
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3500
 
AC_ARG_ENABLE(static,
3501
 
changequote(<<, >>)dnl
3502
 
<<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
3503
 
changequote([, ])dnl
3504
 
[p=${PACKAGE-default}
3505
 
case $enableval in
3506
 
yes) enable_static=yes ;;
3507
 
no) enable_static=no ;;
3508
 
*)
3509
 
  enable_static=no
3510
 
  # Look at the argument we got.  We use all the common list separators.
3511
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3512
 
  for pkg in $enableval; do
3513
 
    if test "X$pkg" = "X$p"; then
3514
 
      enable_static=yes
3515
 
    fi
3516
 
  done
3517
 
  IFS="$ac_save_ifs"
3518
 
  ;;
3519
 
esac],
3520
 
enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
3521
 
])
3522
 
 
3523
 
# AC_DISABLE_STATIC - set the default static flag to --disable-static
3524
 
AC_DEFUN([AC_DISABLE_STATIC],
3525
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3526
 
AC_ENABLE_STATIC(no)])
3527
 
 
3528
 
 
3529
 
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
3530
 
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
3531
 
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
3532
 
#   `yes'.
3533
 
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3534
 
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3535
 
AC_ARG_ENABLE(fast-install,
3536
 
changequote(<<, >>)dnl
3537
 
<<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
3538
 
changequote([, ])dnl
3539
 
[p=${PACKAGE-default}
3540
 
case $enableval in
3541
 
yes) enable_fast_install=yes ;;
3542
 
no) enable_fast_install=no ;;
3543
 
*)
3544
 
  enable_fast_install=no
3545
 
  # Look at the argument we got.  We use all the common list separators.
3546
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3547
 
  for pkg in $enableval; do
3548
 
    if test "X$pkg" = "X$p"; then
3549
 
      enable_fast_install=yes
3550
 
    fi
3551
 
  done
3552
 
  IFS="$ac_save_ifs"
3553
 
  ;;
3554
 
esac],
3555
 
enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
3556
 
])
3557
 
 
3558
 
# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
3559
 
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3560
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3561
 
AC_ENABLE_FAST_INSTALL(no)])
3562
 
 
3563
 
# AC_LIBTOOL_PICMODE - implement the --with-pic flag
3564
 
# Usage: AC_LIBTOOL_PICMODE[(MODE)]
3565
 
#   Where MODE is either `yes' or `no'.  If omitted, it defaults to
3566
 
#   `both'.
3567
 
AC_DEFUN([AC_LIBTOOL_PICMODE],
3568
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3569
 
pic_mode=ifelse($#,1,$1,default)])
3570
 
 
3571
 
 
3572
 
# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
3573
 
AC_DEFUN([AC_PATH_TOOL_PREFIX],
3574
 
[AC_MSG_CHECKING([for $1])
3575
 
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3576
 
[case $MAGIC_CMD in
3577
 
  /*)
3578
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3579
 
  ;;
3580
 
  ?:/*)
3581
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3582
 
  ;;
3583
 
  *)
3584
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
3585
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3586
 
dnl $ac_dummy forces splitting on constant user-supplied paths.
3587
 
dnl POSIX.2 word splitting is done only on the output of word expansions,
3588
 
dnl not every word.  This closes a longstanding sh security hole.
3589
 
  ac_dummy="ifelse([$2], , $PATH, [$2])"
3590
 
  for ac_dir in $ac_dummy; do
3591
 
    test -z "$ac_dir" && ac_dir=.
3592
 
    if test -f $ac_dir/$1; then
3593
 
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3594
 
      if test -n "$file_magic_test_file"; then
3595
 
        case $deplibs_check_method in
3596
 
        "file_magic "*)
3597
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3598
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3599
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3600
 
            egrep "$file_magic_regex" > /dev/null; then
3601
 
            :
3602
 
          else
3603
 
            cat <<EOF 1>&2
3604
 
 
3605
 
*** Warning: the command libtool uses to detect shared libraries,
3606
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
3607
 
*** The result is that libtool may fail to recognize shared libraries
3608
 
*** as such.  This will affect the creation of libtool libraries that
3609
 
*** depend on shared libraries, but programs linked with such libtool
3610
 
*** libraries will work regardless of this problem.  Nevertheless, you
3611
 
*** may want to report the problem to your system manager and/or to
3612
 
*** bug-libtool@gnu.org
3613
 
 
3614
 
EOF
3615
 
          fi ;;
3616
 
        esac
3617
 
      fi
3618
 
      break
3619
 
    fi
3620
 
  done
3621
 
  IFS="$ac_save_ifs"
3622
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
3623
 
  ;;
3624
 
esac])
3625
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3626
 
if test -n "$MAGIC_CMD"; then
3627
 
  AC_MSG_RESULT($MAGIC_CMD)
3628
 
else
3629
 
  AC_MSG_RESULT(no)
3630
 
fi
3631
 
])
3632
 
 
3633
 
 
3634
 
# AC_PATH_MAGIC - find a file program which can recognise a shared library
3635
 
AC_DEFUN([AC_PATH_MAGIC],
3636
 
[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
3637
 
AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
3638
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
3639
 
  if test -n "$ac_tool_prefix"; then
3640
 
    AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
3641
 
  else
3642
 
    MAGIC_CMD=:
3643
 
  fi
3644
 
fi
3645
 
])
3646
 
 
3647
 
 
3648
 
# AC_PROG_LD - find the path to the GNU or non-GNU linker
3649
 
AC_DEFUN([AC_PROG_LD],
3650
 
[AC_ARG_WITH(gnu-ld,
3651
 
[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
3652
 
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
3653
 
AC_REQUIRE([AC_PROG_CC])dnl
3654
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3655
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3656
 
AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
3657
 
ac_prog=ld
3658
 
if test "$GCC" = yes; then
3659
 
  # Check if gcc -print-prog-name=ld gives a path.
3660
 
  AC_MSG_CHECKING([for ld used by GCC])
3661
 
  case $host in
3662
 
  *-*-mingw*)
3663
 
    # gcc leaves a trailing carriage return which upsets mingw
3664
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3665
 
  *)
3666
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3667
 
  esac
3668
 
  case $ac_prog in
3669
 
    # Accept absolute paths.
3670
 
    [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
3671
 
      re_direlt='/[[^/]][[^/]]*/\.\./'
3672
 
      # Canonicalize the path of ld
3673
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3674
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3675
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3676
 
      done
3677
 
      test -z "$LD" && LD="$ac_prog"
3678
 
      ;;
3679
 
  "")
3680
 
    # If it fails, then pretend we aren't using GCC.
3681
 
    ac_prog=ld
3682
 
    ;;
3683
 
  *)
3684
 
    # If it is relative, then search for the first ld in PATH.
3685
 
    with_gnu_ld=unknown
3686
 
    ;;
3687
 
  esac
3688
 
elif test "$with_gnu_ld" = yes; then
3689
 
  AC_MSG_CHECKING([for GNU ld])
3690
 
else
3691
 
  AC_MSG_CHECKING([for non-GNU ld])
3692
 
fi
3693
 
AC_CACHE_VAL(lt_cv_path_LD,
3694
 
[if test -z "$LD"; then
3695
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3696
 
  for ac_dir in $PATH; do
3697
 
    test -z "$ac_dir" && ac_dir=.
3698
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3699
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
3700
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
3701
 
      # but apparently some GNU ld's only accept -v.
3702
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
3703
 
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3704
 
        test "$with_gnu_ld" != no && break
3705
 
      else
3706
 
        test "$with_gnu_ld" != yes && break
3707
 
      fi
3708
 
    fi
3709
 
  done
3710
 
  IFS="$ac_save_ifs"
3711
 
else
3712
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3713
 
fi])
3714
 
LD="$lt_cv_path_LD"
3715
 
if test -n "$LD"; then
3716
 
  AC_MSG_RESULT($LD)
3717
 
else
3718
 
  AC_MSG_RESULT(no)
3719
 
fi
3720
 
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3721
 
AC_PROG_LD_GNU
3722
 
])
3723
 
 
3724
 
# AC_PROG_LD_GNU -
3725
 
AC_DEFUN([AC_PROG_LD_GNU],
3726
 
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3727
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3728
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3729
 
  lt_cv_prog_gnu_ld=yes
3730
 
else
3731
 
  lt_cv_prog_gnu_ld=no
3732
 
fi])
3733
 
with_gnu_ld=$lt_cv_prog_gnu_ld
3734
 
])
3735
 
 
3736
 
# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
3737
 
#   -- PORTME Some linkers may need a different reload flag.
3738
 
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3739
 
[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
3740
 
[lt_cv_ld_reload_flag='-r'])
3741
 
reload_flag=$lt_cv_ld_reload_flag
3742
 
test -n "$reload_flag" && reload_flag=" $reload_flag"
3743
 
])
3744
 
 
3745
 
# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
3746
 
#  -- PORTME fill in with the dynamic library characteristics
3747
 
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3748
 
[AC_CACHE_CHECK([how to recognise dependant libraries],
3749
 
lt_cv_deplibs_check_method,
3750
 
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3751
 
lt_cv_file_magic_test_file=
3752
 
lt_cv_deplibs_check_method='unknown'
3753
 
# Need to set the preceding variable on all platforms that support
3754
 
# interlibrary dependencies.
3755
 
# 'none' -- dependencies not supported.
3756
 
# `unknown' -- same as none, but documents that we really don't know.
3757
 
# 'pass_all' -- all dependencies passed with no checks.
3758
 
# 'test_compile' -- check by making test program.
3759
 
# 'file_magic [[regex]]' -- check by looking for files in library path
3760
 
# which responds to the $file_magic_cmd with a given egrep regex.
3761
 
# If you have `file' or equivalent on your system and you're not sure
3762
 
# whether `pass_all' will *always* work, you probably want this one.
3763
 
 
3764
 
case $host_os in
3765
 
aix4* | aix5*)
3766
 
  lt_cv_deplibs_check_method=pass_all
3767
 
  ;;
3768
 
 
3769
 
beos*)
3770
 
  lt_cv_deplibs_check_method=pass_all
3771
 
  ;;
3772
 
 
3773
 
bsdi4*)
3774
 
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3775
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3776
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3777
 
  ;;
3778
 
 
3779
 
cygwin* | mingw* | pw32*)
3780
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3781
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3782
 
  ;;
3783
 
 
3784
 
darwin* | rhapsody*)
3785
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3786
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3787
 
  case "$host_os" in
3788
 
  rhapsody* | darwin1.[[012]])
3789
 
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3790
 
    ;;
3791
 
  *) # Darwin 1.3 on
3792
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3793
 
    ;;
3794
 
  esac
3795
 
  ;;
3796
 
 
3797
 
freebsd*)
3798
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3799
 
    case $host_cpu in
3800
 
    i*86 )
3801
 
      # Not sure whether the presence of OpenBSD here was a mistake.
3802
 
      # Let's accept both of them until this is cleared up.
3803
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
3804
 
      lt_cv_file_magic_cmd=/usr/bin/file
3805
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3806
 
      ;;
3807
 
    esac
3808
 
  else
3809
 
    lt_cv_deplibs_check_method=pass_all
3810
 
  fi
3811
 
  ;;
3812
 
 
3813
 
gnu*)
3814
 
  lt_cv_deplibs_check_method=pass_all
3815
 
  ;;
3816
 
 
3817
 
hpux10.20*|hpux11*)
3818
 
  lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3819
 
  lt_cv_file_magic_cmd=/usr/bin/file
3820
 
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
3821
 
  ;;
3822
 
 
3823
 
irix5* | irix6*)
3824
 
  case $host_os in
3825
 
  irix5*)
3826
 
    # this will be overridden with pass_all, but let us keep it just in case
3827
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3828
 
    ;;
3829
 
  *)
3830
 
    case $LD in
3831
 
    *-32|*"-32 ") libmagic=32-bit;;
3832
 
    *-n32|*"-n32 ") libmagic=N32;;
3833
 
    *-64|*"-64 ") libmagic=64-bit;;
3834
 
    *) libmagic=never-match;;
3835
 
    esac
3836
 
    # this will be overridden with pass_all, but let us keep it just in case
3837
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
3838
 
    ;;
3839
 
  esac
3840
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3841
 
  lt_cv_deplibs_check_method=pass_all
3842
 
  ;;
3843
 
 
3844
 
# This must be Linux ELF.
3845
 
linux*)
3846
 
  case $host_cpu in
3847
 
  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* | m68* | mips* )
3848
 
    lt_cv_deplibs_check_method=pass_all ;;
3849
 
  *)
3850
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
3851
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
3852
 
  esac
3853
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3854
 
  ;;
3855
 
 
3856
 
netbsd*)
3857
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3858
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
3859
 
  else
3860
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
3861
 
  fi
3862
 
  ;;
3863
 
 
3864
 
newos6*)
3865
 
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3866
 
  lt_cv_file_magic_cmd=/usr/bin/file
3867
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3868
 
  ;;
3869
 
 
3870
 
openbsd*)
3871
 
  lt_cv_file_magic_cmd=/usr/bin/file
3872
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3873
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3874
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
3875
 
  else
3876
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3877
 
  fi
3878
 
  ;;
3879
 
 
3880
 
osf3* | osf4* | osf5*)
3881
 
  # this will be overridden with pass_all, but let us keep it just in case
3882
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3883
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3884
 
  lt_cv_deplibs_check_method=pass_all
3885
 
  ;;
3886
 
 
3887
 
sco3.2v5*)
3888
 
  lt_cv_deplibs_check_method=pass_all
3889
 
  ;;
3890
 
 
3891
 
solaris*)
3892
 
  lt_cv_deplibs_check_method=pass_all
3893
 
  lt_cv_file_magic_test_file=/lib/libc.so
3894
 
  ;;
3895
 
 
3896
 
sysv5uw[[78]]* | sysv4*uw2*)
3897
 
  lt_cv_deplibs_check_method=pass_all
3898
 
  ;;
3899
 
 
3900
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3901
 
  case $host_vendor in
3902
 
  motorola)
3903
 
    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]]'
3904
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3905
 
    ;;
3906
 
  ncr)
3907
 
    lt_cv_deplibs_check_method=pass_all
3908
 
    ;;
3909
 
  sequent)
3910
 
    lt_cv_file_magic_cmd='/bin/file'
3911
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3912
 
    ;;
3913
 
  sni)
3914
 
    lt_cv_file_magic_cmd='/bin/file'
3915
 
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3916
 
    lt_cv_file_magic_test_file=/lib/libc.so
3917
 
    ;;
3918
 
  esac
3919
 
  ;;
3920
 
esac
3921
 
])
3922
 
file_magic_cmd=$lt_cv_file_magic_cmd
3923
 
deplibs_check_method=$lt_cv_deplibs_check_method
3924
 
])
3925
 
 
3926
 
 
3927
 
# AC_PROG_NM - find the path to a BSD-compatible name lister
3928
 
AC_DEFUN([AC_PROG_NM],
3929
 
[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
3930
 
AC_MSG_CHECKING([for BSD-compatible nm])
3931
 
AC_CACHE_VAL(lt_cv_path_NM,
3932
 
[if test -n "$NM"; then
3933
 
  # Let the user override the test.
3934
 
  lt_cv_path_NM="$NM"
3935
 
else
3936
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3937
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3938
 
    test -z "$ac_dir" && ac_dir=.
3939
 
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3940
 
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3941
 
      # Check to see if the nm accepts a BSD-compat flag.
3942
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3943
 
      #   nm: unknown option "B" ignored
3944
 
      # Tru64's nm complains that /dev/null is an invalid object file
3945
 
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3946
 
        lt_cv_path_NM="$tmp_nm -B"
3947
 
        break
3948
 
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3949
 
        lt_cv_path_NM="$tmp_nm -p"
3950
 
        break
3951
 
      else
3952
 
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3953
 
        continue # so that we can try to find one that supports BSD flags
3954
 
      fi
3955
 
    fi
3956
 
  done
3957
 
  IFS="$ac_save_ifs"
3958
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3959
 
fi])
3960
 
NM="$lt_cv_path_NM"
3961
 
AC_MSG_RESULT([$NM])
3962
 
])
3963
 
 
3964
 
# AC_CHECK_LIBM - check for math library
3965
 
AC_DEFUN([AC_CHECK_LIBM],
3966
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3967
 
LIBM=
3968
 
case $host in
3969
 
*-*-beos* | *-*-cygwin* | *-*-pw32*)
3970
 
  # These system don't have libm
3971
 
  ;;
3972
 
*-ncr-sysv4.3*)
3973
 
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3974
 
  AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
3975
 
  ;;
3976
 
*)
3977
 
  AC_CHECK_LIB(m, main, LIBM="-lm")
3978
 
  ;;
3979
 
esac
3980
 
])
3981
 
 
3982
 
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
3983
 
# the libltdl convenience library and INCLTDL to the include flags for
3984
 
# the libltdl header and adds --enable-ltdl-convenience to the
3985
 
# configure arguments.  Note that LIBLTDL and INCLTDL are not
3986
 
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
3987
 
# provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
3988
 
# with '${top_builddir}/' and INCLTDL will be prefixed with
3989
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
3990
 
# flat and you're not using automake, define top_builddir and
3991
 
# top_srcdir appropriately in the Makefiles.
3992
 
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3993
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3994
 
  case $enable_ltdl_convenience in
3995
 
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3996
 
  "") enable_ltdl_convenience=yes
3997
 
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3998
 
  esac
3999
 
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4000
 
  INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4001
 
])
4002
 
 
4003
 
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
4004
 
# the libltdl installable library and INCLTDL to the include flags for
4005
 
# the libltdl header and adds --enable-ltdl-install to the configure
4006
 
# arguments.  Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
4007
 
# AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
4008
 
# libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
4009
 
# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
4010
 
# with '${top_srcdir}/' (note the single quotes!).  If your package is
4011
 
# not flat and you're not using automake, define top_builddir and
4012
 
# top_srcdir appropriately in the Makefiles.
4013
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4014
 
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4015
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4016
 
  AC_CHECK_LIB(ltdl, main,
4017
 
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4018
 
  [if test x"$enable_ltdl_install" = xno; then
4019
 
     AC_MSG_WARN([libltdl not installed, but installation disabled])
4020
 
   else
4021
 
     enable_ltdl_install=yes
4022
 
   fi
4023
 
  ])
4024
 
  if test x"$enable_ltdl_install" = x"yes"; then
4025
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
4026
 
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4027
 
    INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4028
 
  else
4029
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4030
 
    LIBLTDL="-lltdl"
4031
 
    INCLTDL=
4032
 
  fi
4033
 
])
 
6710
])# _LT_AC_FILE_LTDLL_C
 
6711
 
 
6712
 
 
6713
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
6714
# ---------------------------------
 
6715
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
 
6716
 
4034
6717
 
4035
6718
# old names
4036
6719
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
4044
6727
# This is just to silence aclocal about the macro not being used
4045
6728
ifelse([AC_DISABLE_FAST_INSTALL])
4046
6729
 
 
6730
AC_DEFUN([LT_AC_PROG_GCJ],
 
6731
[AC_CHECK_TOOL(GCJ, gcj, no)
 
6732
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
6733
  AC_SUBST(GCJFLAGS)
 
6734
])
 
6735
 
 
6736
AC_DEFUN([LT_AC_PROG_RC],
 
6737
[AC_CHECK_TOOL(RC, windres, no)
 
6738
])
 
6739
 
 
6740
# NOTE: This macro has been submitted for inclusion into   #
 
6741
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
 
6742
#  a released version of Autoconf we should remove this    #
 
6743
#  macro and use it instead.                               #
 
6744
# LT_AC_PROG_SED
 
6745
# --------------
 
6746
# Check for a fully-functional sed program, that truncates
 
6747
# as few characters as possible.  Prefer GNU sed if found.
 
6748
AC_DEFUN([LT_AC_PROG_SED],
 
6749
[AC_MSG_CHECKING([for a sed that does not truncate output])
 
6750
AC_CACHE_VAL(lt_cv_path_SED,
 
6751
[# Loop through the user's path and test for sed and gsed.
 
6752
# Then use that list of sed's as ones to test for truncation.
 
6753
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6754
for as_dir in $PATH
 
6755
do
 
6756
  IFS=$as_save_IFS
 
6757
  test -z "$as_dir" && as_dir=.
 
6758
  for lt_ac_prog in sed gsed; do
 
6759
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6760
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6761
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
6762
      fi
 
6763
    done
 
6764
  done
 
6765
done
 
6766
lt_ac_max=0
 
6767
lt_ac_count=0
 
6768
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
6769
# along with /bin/sed that truncates output.
 
6770
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
6771
  test ! -f $lt_ac_sed && break
 
6772
  cat /dev/null > conftest.in
 
6773
  lt_ac_count=0
 
6774
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
6775
  # Check for GNU sed and select it if it is found.
 
6776
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
6777
    lt_cv_path_SED=$lt_ac_sed
 
6778
    break
 
6779
  fi
 
6780
  while true; do
 
6781
    cat conftest.in conftest.in >conftest.tmp
 
6782
    mv conftest.tmp conftest.in
 
6783
    cp conftest.in conftest.nl
 
6784
    echo >>conftest.nl
 
6785
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
6786
    cmp -s conftest.out conftest.nl || break
 
6787
    # 10000 chars as input seems more than enough
 
6788
    test $lt_ac_count -gt 10 && break
 
6789
    lt_ac_count=`expr $lt_ac_count + 1`
 
6790
    if test $lt_ac_count -gt $lt_ac_max; then
 
6791
      lt_ac_max=$lt_ac_count
 
6792
      lt_cv_path_SED=$lt_ac_sed
 
6793
    fi
 
6794
  done
 
6795
done
 
6796
SED=$lt_cv_path_SED
 
6797
])
 
6798
AC_MSG_RESULT([$SED])
 
6799
])
 
6800