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