/[svn]/libgig/branches/release0_7_0/aclocal.m4
ViewVC logotype

Annotation of /libgig/branches/release0_7_0/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC