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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC