~ubuntu-branches/ubuntu/feisty/flac/feisty-security

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Tollef Fog Heen
  • Date: 2005-11-10 12:55:33 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20051110125533-2fmlml8wnb06r5vg
Tags: 1.1.2-3ubuntu1
* Merge with Debian
  - We did the C++ transition earlier than Debian, so add c2 suffix to
    liboggflac++ and libflac++

Show diffs side-by-side

added added

removed removed

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