/[svn]/linuxsampler/tags/v0_1_0/aclocal.m4
ViewVC logotype

Annotation of /linuxsampler/tags/v0_1_0/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18 - (hide annotations) (download)
Sun Dec 7 05:03:43 2003 UTC (20 years, 4 months ago) by schoenebeck
Original Path: linuxsampler/trunk/aclocal.m4
File size: 238681 byte(s)
* src/audioio.cpp: added support for Alsa 1.0.0
* src/audiothread.cpp: fixed several bugs in sustain pedal handling
* src/diskthread.cpp: fixed several bugs which occured under extreme
  conditions (endless loop in audiothread, freezing the whole application,
  outage of available disk streams)
* src/voice.cpp: fixed cubic interpolation (disabled by default; you can
  enable it by setting USE_LINEAR_INTERPOLATION to 0 in src/voice.h)
* src/configure.in: added check for Alsa version

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

  ViewVC Help
Powered by ViewVC