Develop and Download Open Source Software

Browse CVS Repository

Annotation of /freewnn/FreeWnn/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (hide annotations) (download)
Sat Sep 5 19:35:51 2009 UTC (14 years, 7 months ago) by aonoto
Branch: MAIN
CVS Tags: freewnn-1-1-1-a023-1, freewnn-1-1-1-a023, freewnn-1-1-1-a022, freewnn-1-1-1-a022I002, HEAD
Branch point for: freewnn-1-1-1-a022I001
Changes since 1.3: +1502 -698 lines
Update libtool to 1.5.26 (last release of 1.5 series - bit old).
Also update config.guess, so maybe it will build on AVR32 architecture.
(cf. Debian Bug #534811)

1 aono 1.3 # aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-
2 ura 1.1
3 aono 1.3 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
4     # Free Software Foundation, Inc.
5     # This file is free software; the Free Software Foundation
6     # gives unlimited permission to copy and/or distribute it,
7     # with or without modifications, as long as this notice is preserved.
8 ura 1.1
9 aono 1.3 # 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 ura 1.1
14 aono 1.3 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15 ura 1.1
16 aonoto 1.4 # serial 52 AC_PROG_LIBTOOL
17 aono 1.3
18    
19     # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
20     # -----------------------------------------------------------
21     # If this macro is not defined by Autoconf, define it here.
22     m4_ifdef([AC_PROVIDE_IFELSE],
23     [],
24     [m4_define([AC_PROVIDE_IFELSE],
25     [m4_ifdef([AC_PROVIDE_$1],
26     [$2], [$3])])])
27    
28    
29     # AC_PROG_LIBTOOL
30     # ---------------
31 hiroo 1.2 AC_DEFUN([AC_PROG_LIBTOOL],
32 aono 1.3 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
33     dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
34     dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
35     AC_PROVIDE_IFELSE([AC_PROG_CXX],
36     [AC_LIBTOOL_CXX],
37     [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
38     ])])
39     dnl And a similar setup for Fortran 77 support
40     AC_PROVIDE_IFELSE([AC_PROG_F77],
41     [AC_LIBTOOL_F77],
42     [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
43     ])])
44    
45     dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
46     dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
47     dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
48     AC_PROVIDE_IFELSE([AC_PROG_GCJ],
49     [AC_LIBTOOL_GCJ],
50     [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
51     [AC_LIBTOOL_GCJ],
52     [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
53     [AC_LIBTOOL_GCJ],
54     [ifdef([AC_PROG_GCJ],
55     [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
56     ifdef([A][M_PROG_GCJ],
57     [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
58     ifdef([LT_AC_PROG_GCJ],
59     [define([LT_AC_PROG_GCJ],
60     defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
61     ])])# AC_PROG_LIBTOOL
62    
63    
64     # _AC_PROG_LIBTOOL
65     # ----------------
66     AC_DEFUN([_AC_PROG_LIBTOOL],
67 ura 1.1 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
68 aono 1.3 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
69     AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
70     AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
71 ura 1.1
72 hiroo 1.2 # This can be used to rebuild libtool when needed
73     LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
74    
75     # Always use our own libtool.
76     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
77     AC_SUBST(LIBTOOL)dnl
78    
79     # Prevent multiple expansion
80     define([AC_PROG_LIBTOOL], [])
81 aono 1.3 ])# _AC_PROG_LIBTOOL
82    
83 hiroo 1.2
84 aono 1.3 # AC_LIBTOOL_SETUP
85     # ----------------
86 hiroo 1.2 AC_DEFUN([AC_LIBTOOL_SETUP],
87 aono 1.3 [AC_PREREQ(2.50)dnl
88 hiroo 1.2 AC_REQUIRE([AC_ENABLE_SHARED])dnl
89     AC_REQUIRE([AC_ENABLE_STATIC])dnl
90     AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
91     AC_REQUIRE([AC_CANONICAL_HOST])dnl
92     AC_REQUIRE([AC_CANONICAL_BUILD])dnl
93     AC_REQUIRE([AC_PROG_CC])dnl
94     AC_REQUIRE([AC_PROG_LD])dnl
95     AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
96     AC_REQUIRE([AC_PROG_NM])dnl
97 aono 1.3
98 hiroo 1.2 AC_REQUIRE([AC_PROG_LN_S])dnl
99     AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
100 aono 1.3 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
101 hiroo 1.2 AC_REQUIRE([AC_OBJEXT])dnl
102     AC_REQUIRE([AC_EXEEXT])dnl
103     dnl
104 aono 1.3 AC_LIBTOOL_SYS_MAX_CMD_LEN
105     AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
106     AC_LIBTOOL_OBJDIR
107    
108     AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
109 hiroo 1.2 _LT_AC_PROG_ECHO_BACKSLASH
110 aono 1.3
111     case $host_os in
112     aix3*)
113     # AIX sometimes has problems with the GCC collect2 program. For some
114     # reason, if we set the COLLECT_NAMES environment variable, the problems
115     # vanish in a puff of smoke.
116     if test "X${COLLECT_NAMES+set}" != Xset; then
117     COLLECT_NAMES=
118     export COLLECT_NAMES
119 hiroo 1.2 fi
120     ;;
121     esac
122    
123 aono 1.3 # Sed substitution that helps us do robust quoting. It backslashifies
124     # metacharacters that are still active within double-quoted strings.
125 aonoto 1.4 Xsed='sed -e 1s/^X//'
126 aono 1.3 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
127    
128     # Same as above, but do not quote variable references.
129     [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
130    
131     # Sed substitution to delay expansion of an escaped shell variable in a
132     # double_quote_subst'ed string.
133     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
134    
135     # Sed substitution to avoid accidental globbing in evaled expressions
136     no_glob_subst='s/\*/\\\*/g'
137    
138     # Constants:
139     rm="rm -f"
140    
141     # Global variables:
142     default_ofile=libtool
143     can_build_shared=yes
144    
145 aonoto 1.4 # All known linkers require a `.a' archive for static linking (except MSVC,
146 aono 1.3 # which needs '.lib').
147     libext=a
148     ltmain="$ac_aux_dir/ltmain.sh"
149     ofile="$default_ofile"
150     with_gnu_ld="$lt_cv_prog_gnu_ld"
151    
152     AC_CHECK_TOOL(AR, ar, false)
153 hiroo 1.2 AC_CHECK_TOOL(RANLIB, ranlib, :)
154     AC_CHECK_TOOL(STRIP, strip, :)
155    
156 aono 1.3 old_CC="$CC"
157     old_CFLAGS="$CFLAGS"
158    
159     # Set sane defaults for various variables
160     test -z "$AR" && AR=ar
161     test -z "$AR_FLAGS" && AR_FLAGS=cru
162     test -z "$AS" && AS=as
163     test -z "$CC" && CC=cc
164     test -z "$LTCC" && LTCC=$CC
165 aonoto 1.4 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
166 aono 1.3 test -z "$DLLTOOL" && DLLTOOL=dlltool
167     test -z "$LD" && LD=ld
168     test -z "$LN_S" && LN_S="ln -s"
169     test -z "$MAGIC_CMD" && MAGIC_CMD=file
170     test -z "$NM" && NM=nm
171     test -z "$SED" && SED=sed
172     test -z "$OBJDUMP" && OBJDUMP=objdump
173     test -z "$RANLIB" && RANLIB=:
174     test -z "$STRIP" && STRIP=:
175     test -z "$ac_objext" && ac_objext=o
176 hiroo 1.2
177 aono 1.3 # Determine commands to create old-style static archives.
178 aonoto 1.4 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
179 aono 1.3 old_postinstall_cmds='chmod 644 $oldlib'
180     old_postuninstall_cmds=
181 hiroo 1.2
182 aono 1.3 if test -n "$RANLIB"; then
183     case $host_os in
184     openbsd*)
185 aonoto 1.4 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
186 aono 1.3 ;;
187     *)
188 aonoto 1.4 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
189 aono 1.3 ;;
190     esac
191     old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
192     fi
193 hiroo 1.2
194 aonoto 1.4 _LT_CC_BASENAME([$compiler])
195    
196 aono 1.3 # Only perform the check for file, if the check method requires it
197     case $deplibs_check_method in
198     file_magic*)
199     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
200     AC_PATH_MAGIC
201 hiroo 1.2 fi
202     ;;
203 aono 1.3 esac
204 hiroo 1.2
205 aonoto 1.4 _LT_REQUIRED_DARWIN_CHECKS
206    
207 aono 1.3 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
208     AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
209     enable_win32_dll=yes, enable_win32_dll=no)
210 hiroo 1.2
211 aono 1.3 AC_ARG_ENABLE([libtool-lock],
212     [AC_HELP_STRING([--disable-libtool-lock],
213     [avoid locking (might break parallel builds)])])
214     test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
215 hiroo 1.2
216 aono 1.3 AC_ARG_WITH([pic],
217     [AC_HELP_STRING([--with-pic],
218     [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
219     [pic_mode="$withval"],
220     [pic_mode=default])
221     test -z "$pic_mode" && pic_mode=default
222 hiroo 1.2
223 aono 1.3 # Use C for the default configuration in the libtool script
224     tagname=
225     AC_LIBTOOL_LANG_C_CONFIG
226     _LT_AC_TAGCONFIG
227     ])# AC_LIBTOOL_SETUP
228 hiroo 1.2
229    
230 aono 1.3 # _LT_AC_SYS_COMPILER
231     # -------------------
232     AC_DEFUN([_LT_AC_SYS_COMPILER],
233     [AC_REQUIRE([AC_PROG_CC])dnl
234 hiroo 1.2
235 aono 1.3 # If no C compiler was specified, use CC.
236     LTCC=${LTCC-"$CC"}
237 hiroo 1.2
238 aonoto 1.4 # If no C compiler flags were specified, use CFLAGS.
239     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
240    
241 aono 1.3 # Allow CC to be a program name with arguments.
242     compiler=$CC
243     ])# _LT_AC_SYS_COMPILER
244 hiroo 1.2
245    
246 aonoto 1.4 # _LT_CC_BASENAME(CC)
247     # -------------------
248     # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
249     AC_DEFUN([_LT_CC_BASENAME],
250     [for cc_temp in $1""; do
251     case $cc_temp in
252     compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
253     distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
254     \-*) ;;
255     *) break;;
256     esac
257     done
258     cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
259     ])
260    
261    
262     # _LT_COMPILER_BOILERPLATE
263     # ------------------------
264     # Check for compiler boilerplate output or warnings with
265     # the simple compiler test code.
266     AC_DEFUN([_LT_COMPILER_BOILERPLATE],
267     [AC_REQUIRE([LT_AC_PROG_SED])dnl
268     ac_outfile=conftest.$ac_objext
269     echo "$lt_simple_compile_test_code" >conftest.$ac_ext
270     eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
271     _lt_compiler_boilerplate=`cat conftest.err`
272     $rm conftest*
273     ])# _LT_COMPILER_BOILERPLATE
274    
275    
276     # _LT_LINKER_BOILERPLATE
277     # ----------------------
278     # Check for linker boilerplate output or warnings with
279     # the simple link test code.
280     AC_DEFUN([_LT_LINKER_BOILERPLATE],
281     [AC_REQUIRE([LT_AC_PROG_SED])dnl
282     ac_outfile=conftest.$ac_objext
283     echo "$lt_simple_link_test_code" >conftest.$ac_ext
284     eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
285     _lt_linker_boilerplate=`cat conftest.err`
286     $rm -r conftest*
287     ])# _LT_LINKER_BOILERPLATE
288    
289     # _LT_REQUIRED_DARWIN_CHECKS
290     # --------------------------
291     # Check for some things on darwin
292     AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
293     case $host_os in
294     rhapsody* | darwin*)
295     AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
296     AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
297    
298     AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
299     [lt_cv_apple_cc_single_mod=no
300     if test -z "${LT_MULTI_MODULE}"; then
301     # By default we will add the -single_module flag. You can override
302     # by either setting the environment variable LT_MULTI_MODULE
303     # non-empty at configure time, or by adding -multi_module to the
304     # link flags.
305     echo "int foo(void){return 1;}" > conftest.c
306     $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
307     -dynamiclib ${wl}-single_module conftest.c
308     if test -f libconftest.dylib; then
309     lt_cv_apple_cc_single_mod=yes
310     rm -rf libconftest.dylib*
311     fi
312     rm conftest.c
313     fi])
314     AC_CACHE_CHECK([for -exported_symbols_list linker flag],
315     [lt_cv_ld_exported_symbols_list],
316     [lt_cv_ld_exported_symbols_list=no
317     save_LDFLAGS=$LDFLAGS
318     echo "_main" > conftest.sym
319     LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
320     AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
321     [lt_cv_ld_exported_symbols_list=yes],
322     [lt_cv_ld_exported_symbols_list=no])
323     LDFLAGS="$save_LDFLAGS"
324     ])
325     case $host_os in
326     rhapsody* | darwin1.[[0123]])
327     _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
328     darwin1.*)
329     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
330     darwin*)
331     # if running on 10.5 or later, the deployment target defaults
332     # to the OS version, if on x86, and 10.4, the deployment
333     # target defaults to 10.4. Don't you love it?
334     case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
335     10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
336     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
337     10.[[012]]*)
338     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
339     10.*)
340     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
341     esac
342     ;;
343     esac
344     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
345     _lt_dar_single_mod='$single_module'
346     fi
347     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
348     _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
349     else
350     _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
351     fi
352     if test "$DSYMUTIL" != ":"; then
353     _lt_dsymutil="~$DSYMUTIL \$lib || :"
354     else
355     _lt_dsymutil=
356     fi
357     ;;
358     esac
359     ])
360    
361 aono 1.3 # _LT_AC_SYS_LIBPATH_AIX
362     # ----------------------
363     # Links a minimal program and checks the executable
364     # for the system default hardcoded library path. In most cases,
365     # this is /usr/lib:/lib, but when the MPI compilers are used
366     # the location of the communication and MPI libs are included too.
367     # If we don't find anything, use the default library path according
368     # to the aix ld manual.
369     AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
370 aonoto 1.4 [AC_REQUIRE([LT_AC_PROG_SED])dnl
371     AC_LINK_IFELSE(AC_LANG_PROGRAM,[
372     lt_aix_libpath_sed='
373     /Import File Strings/,/^$/ {
374     /^0/ {
375     s/^0 *\(.*\)$/\1/
376     p
377     }
378     }'
379     aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
380 aono 1.3 # Check for a 64-bit object if we didn't find anything.
381 aonoto 1.4 if test -z "$aix_libpath"; then
382     aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
383     fi],[])
384 aono 1.3 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
385     ])# _LT_AC_SYS_LIBPATH_AIX
386    
387    
388     # _LT_AC_SHELL_INIT(ARG)
389     # ----------------------
390     AC_DEFUN([_LT_AC_SHELL_INIT],
391     [ifdef([AC_DIVERSION_NOTICE],
392     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
393     [AC_DIVERT_PUSH(NOTICE)])
394     $1
395     AC_DIVERT_POP
396     ])# _LT_AC_SHELL_INIT
397 hiroo 1.2
398    
399 aono 1.3 # _LT_AC_PROG_ECHO_BACKSLASH
400     # --------------------------
401     # Add some code to the start of the generated configure script which
402     # will find an echo command which doesn't interpret backslashes.
403     AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
404     [_LT_AC_SHELL_INIT([
405     # Check that we are running under the correct shell.
406     SHELL=${CONFIG_SHELL-/bin/sh}
407 hiroo 1.2
408 aono 1.3 case X$ECHO in
409     X*--fallback-echo)
410     # Remove one level of quotation (which was required for Make).
411     ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
412 hiroo 1.2 ;;
413     esac
414    
415 aono 1.3 echo=${ECHO-echo}
416     if test "X[$]1" = X--no-reexec; then
417     # Discard the --no-reexec flag, and continue.
418     shift
419     elif test "X[$]1" = X--fallback-echo; then
420     # Avoid inline document here, it may be left over
421     :
422     elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
423     # Yippee, $echo works!
424     :
425     else
426     # Restart under the correct shell.
427     exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
428 hiroo 1.2 fi
429    
430 aono 1.3 if test "X[$]1" = X--fallback-echo; then
431     # used as fallback echo
432     shift
433     cat <<EOF
434     [$]*
435     EOF
436     exit 0
437     fi
438 hiroo 1.2
439 aono 1.3 # The HP-UX ksh and POSIX shell print the target directory to stdout
440     # if CDPATH is set.
441 aonoto 1.4 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
442 hiroo 1.2
443 aono 1.3 if test -z "$ECHO"; then
444     if test "X${echo_test_string+set}" != Xset; then
445     # find a string as large as possible, as long as the shell can cope with it
446     for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
447     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
448 aonoto 1.4 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
449     echo_test_string=`eval $cmd` &&
450 aono 1.3 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
451     then
452     break
453     fi
454     done
455     fi
456 hiroo 1.2
457 aono 1.3 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
458     echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
459     test "X$echo_testing_string" = "X$echo_test_string"; then
460     :
461     else
462     # The Solaris, AIX, and Digital Unix default echo programs unquote
463     # backslashes. This makes it impossible to quote backslashes using
464     # echo "$something" | sed 's/\\/\\\\/g'
465     #
466     # So, first we look for a working echo in the user's PATH.
467 hiroo 1.2
468 aono 1.3 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
469     for dir in $PATH /usr/ucb; do
470     IFS="$lt_save_ifs"
471     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
472     test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
473     echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
474     test "X$echo_testing_string" = "X$echo_test_string"; then
475 hiroo 1.2 echo="$dir/echo"
476     break
477     fi
478     done
479 aono 1.3 IFS="$lt_save_ifs"
480 hiroo 1.2
481     if test "X$echo" = Xecho; then
482     # We didn't find a better echo, so look for alternatives.
483     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
484     echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
485     test "X$echo_testing_string" = "X$echo_test_string"; then
486     # This shell has a builtin print -r that does the trick.
487     echo='print -r'
488     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
489     test "X$CONFIG_SHELL" != X/bin/ksh; then
490     # If we have ksh, try running configure again with it.
491     ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
492     export ORIGINAL_CONFIG_SHELL
493     CONFIG_SHELL=/bin/ksh
494     export CONFIG_SHELL
495     exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
496     else
497     # Try using printf.
498     echo='printf %s\n'
499     if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
500     echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
501     test "X$echo_testing_string" = "X$echo_test_string"; then
502     # Cool, printf works
503     :
504     elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
505     test "X$echo_testing_string" = 'X\t' &&
506     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
507     test "X$echo_testing_string" = "X$echo_test_string"; then
508     CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
509     export CONFIG_SHELL
510     SHELL="$CONFIG_SHELL"
511     export SHELL
512     echo="$CONFIG_SHELL [$]0 --fallback-echo"
513     elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
514     test "X$echo_testing_string" = 'X\t' &&
515     echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
516     test "X$echo_testing_string" = "X$echo_test_string"; then
517     echo="$CONFIG_SHELL [$]0 --fallback-echo"
518     else
519     # maybe with a smaller string...
520     prev=:
521    
522     for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
523     if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
524     then
525     break
526     fi
527     prev="$cmd"
528     done
529    
530     if test "$prev" != 'sed 50q "[$]0"'; then
531     echo_test_string=`eval $prev`
532     export echo_test_string
533     exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
534     else
535     # Oops. We lost completely, so just stick with echo.
536     echo=echo
537     fi
538     fi
539     fi
540     fi
541     fi
542     fi
543    
544     # Copy echo and quote the copy suitably for passing to libtool from
545     # the Makefile, instead of quoting the original, which is used later.
546     ECHO=$echo
547     if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
548     ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
549     fi
550    
551     AC_SUBST(ECHO)
552 aono 1.3 ])])# _LT_AC_PROG_ECHO_BACKSLASH
553    
554    
555     # _LT_AC_LOCK
556     # -----------
557     AC_DEFUN([_LT_AC_LOCK],
558     [AC_ARG_ENABLE([libtool-lock],
559     [AC_HELP_STRING([--disable-libtool-lock],
560     [avoid locking (might break parallel builds)])])
561     test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
562    
563     # Some flags need to be propagated to the compiler or linker for good
564     # libtool support.
565     case $host in
566     ia64-*-hpux*)
567     # Find out which ABI we are using.
568     echo 'int i;' > conftest.$ac_ext
569     if AC_TRY_EVAL(ac_compile); then
570     case `/usr/bin/file conftest.$ac_objext` in
571     *ELF-32*)
572     HPUX_IA64_MODE="32"
573     ;;
574     *ELF-64*)
575     HPUX_IA64_MODE="64"
576     ;;
577     esac
578     fi
579     rm -rf conftest*
580     ;;
581     *-*-irix6*)
582     # Find out which ABI we are using.
583     echo '[#]line __oline__ "configure"' > conftest.$ac_ext
584     if AC_TRY_EVAL(ac_compile); then
585     if test "$lt_cv_prog_gnu_ld" = yes; then
586     case `/usr/bin/file conftest.$ac_objext` in
587     *32-bit*)
588     LD="${LD-ld} -melf32bsmip"
589     ;;
590     *N32*)
591     LD="${LD-ld} -melf32bmipn32"
592     ;;
593     *64-bit*)
594     LD="${LD-ld} -melf64bmip"
595     ;;
596     esac
597     else
598     case `/usr/bin/file conftest.$ac_objext` in
599     *32-bit*)
600     LD="${LD-ld} -32"
601     ;;
602     *N32*)
603     LD="${LD-ld} -n32"
604     ;;
605     *64-bit*)
606     LD="${LD-ld} -64"
607     ;;
608     esac
609     fi
610     fi
611     rm -rf conftest*
612     ;;
613    
614 aonoto 1.4 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
615     s390*-*linux*|sparc*-*linux*)
616 aono 1.3 # Find out which ABI we are using.
617     echo 'int i;' > conftest.$ac_ext
618     if AC_TRY_EVAL(ac_compile); then
619 aonoto 1.4 case `/usr/bin/file conftest.o` in
620 aono 1.3 *32-bit*)
621     case $host in
622 aonoto 1.4 x86_64-*kfreebsd*-gnu)
623     LD="${LD-ld} -m elf_i386_fbsd"
624     ;;
625 aono 1.3 x86_64-*linux*)
626     LD="${LD-ld} -m elf_i386"
627     ;;
628 aonoto 1.4 ppc64-*linux*|powerpc64-*linux*)
629 aono 1.3 LD="${LD-ld} -m elf32ppclinux"
630     ;;
631     s390x-*linux*)
632     LD="${LD-ld} -m elf_s390"
633     ;;
634     sparc64-*linux*)
635     LD="${LD-ld} -m elf32_sparc"
636     ;;
637     esac
638     ;;
639     *64-bit*)
640     case $host in
641 aonoto 1.4 x86_64-*kfreebsd*-gnu)
642     LD="${LD-ld} -m elf_x86_64_fbsd"
643     ;;
644 aono 1.3 x86_64-*linux*)
645     LD="${LD-ld} -m elf_x86_64"
646     ;;
647     ppc*-*linux*|powerpc*-*linux*)
648     LD="${LD-ld} -m elf64ppc"
649     ;;
650     s390*-*linux*)
651     LD="${LD-ld} -m elf64_s390"
652     ;;
653     sparc*-*linux*)
654     LD="${LD-ld} -m elf64_sparc"
655     ;;
656     esac
657     ;;
658     esac
659     fi
660     rm -rf conftest*
661     ;;
662    
663     *-*-sco3.2v5*)
664     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
665     SAVE_CFLAGS="$CFLAGS"
666     CFLAGS="$CFLAGS -belf"
667     AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
668     [AC_LANG_PUSH(C)
669     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
670     AC_LANG_POP])
671     if test x"$lt_cv_cc_needs_belf" != x"yes"; then
672     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
673     CFLAGS="$SAVE_CFLAGS"
674     fi
675     ;;
676 aonoto 1.4 sparc*-*solaris*)
677     # Find out which ABI we are using.
678     echo 'int i;' > conftest.$ac_ext
679     if AC_TRY_EVAL(ac_compile); then
680     case `/usr/bin/file conftest.o` in
681     *64-bit*)
682     case $lt_cv_prog_gnu_ld in
683     yes*) LD="${LD-ld} -m elf64_sparc" ;;
684     *)
685     if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
686     LD="${LD-ld} -64"
687     fi
688     ;;
689     esac
690     ;;
691     esac
692     fi
693     rm -rf conftest*
694     ;;
695    
696 aono 1.3 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
697     [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
698     AC_CHECK_TOOL(DLLTOOL, dlltool, false)
699     AC_CHECK_TOOL(AS, as, false)
700     AC_CHECK_TOOL(OBJDUMP, objdump, false)
701     ;;
702     ])
703     esac
704    
705     need_locks="$enable_libtool_lock"
706    
707     ])# _LT_AC_LOCK
708    
709    
710     # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
711     # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
712     # ----------------------------------------------------------------
713     # Check whether the given compiler option works
714     AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
715 aonoto 1.4 [AC_REQUIRE([LT_AC_PROG_SED])
716     AC_CACHE_CHECK([$1], [$2],
717 aono 1.3 [$2=no
718     ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
719 aonoto 1.4 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
720 aono 1.3 lt_compiler_flag="$3"
721     # Insert the option either (1) after the last *FLAGS variable, or
722     # (2) before a word containing "conftest.", or (3) at the end.
723     # Note that $ac_compile itself does not contain backslashes and begins
724     # with a dollar sign (not a hyphen), so the echo should work correctly.
725     # The option is referenced via a variable to avoid confusing sed.
726     lt_compile=`echo "$ac_compile" | $SED \
727 aonoto 1.4 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
728 aono 1.3 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
729     -e 's:$: $lt_compiler_flag:'`
730     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
731     (eval "$lt_compile" 2>conftest.err)
732     ac_status=$?
733     cat conftest.err >&AS_MESSAGE_LOG_FD
734     echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
735     if (exit $ac_status) && test -s "$ac_outfile"; then
736     # The compiler can only warn and ignore the option if not recognized
737 aonoto 1.4 # So say no if there are warnings other than the usual output.
738     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
739     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
740     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
741 aono 1.3 $2=yes
742     fi
743     fi
744     $rm conftest*
745     ])
746    
747     if test x"[$]$2" = xyes; then
748     ifelse([$5], , :, [$5])
749     else
750     ifelse([$6], , :, [$6])
751     fi
752     ])# AC_LIBTOOL_COMPILER_OPTION
753    
754    
755     # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
756     # [ACTION-SUCCESS], [ACTION-FAILURE])
757     # ------------------------------------------------------------
758     # Check whether the given compiler option works
759     AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
760 aonoto 1.4 [AC_REQUIRE([LT_AC_PROG_SED])dnl
761     AC_CACHE_CHECK([$1], [$2],
762 aono 1.3 [$2=no
763     save_LDFLAGS="$LDFLAGS"
764     LDFLAGS="$LDFLAGS $3"
765 aonoto 1.4 echo "$lt_simple_link_test_code" > conftest.$ac_ext
766 aono 1.3 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
767 aonoto 1.4 # The linker can only warn and ignore the option if not recognized
768 aono 1.3 # So say no if there are warnings
769     if test -s conftest.err; then
770     # Append any errors to the config.log.
771     cat conftest.err 1>&AS_MESSAGE_LOG_FD
772 aonoto 1.4 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
773     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
774     if diff conftest.exp conftest.er2 >/dev/null; then
775     $2=yes
776     fi
777 aono 1.3 else
778     $2=yes
779     fi
780     fi
781 aonoto 1.4 $rm -r conftest*
782 aono 1.3 LDFLAGS="$save_LDFLAGS"
783     ])
784    
785     if test x"[$]$2" = xyes; then
786     ifelse([$4], , :, [$4])
787     else
788     ifelse([$5], , :, [$5])
789     fi
790     ])# AC_LIBTOOL_LINKER_OPTION
791    
792    
793     # AC_LIBTOOL_SYS_MAX_CMD_LEN
794     # --------------------------
795     AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
796     [# find the maximum length of command line arguments
797     AC_MSG_CHECKING([the maximum length of command line arguments])
798     AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
799     i=0
800 aonoto 1.4 teststring="ABCD"
801 aono 1.3
802     case $build_os in
803     msdosdjgpp*)
804     # On DJGPP, this test can blow up pretty badly due to problems in libc
805     # (any single argument exceeding 2000 bytes causes a buffer overrun
806     # during glob expansion). Even if it were fixed, the result of this
807     # check would be larger than it should be.
808     lt_cv_sys_max_cmd_len=12288; # 12K is about right
809     ;;
810    
811     gnu*)
812     # Under GNU Hurd, this test is not required because there is
813     # no limit to the length of command line arguments.
814     # Libtool will interpret -1 as no limit whatsoever
815     lt_cv_sys_max_cmd_len=-1;
816     ;;
817    
818     cygwin* | mingw*)
819     # On Win9x/ME, this test blows up -- it succeeds, but takes
820     # about 5 minutes as the teststring grows exponentially.
821     # Worse, since 9x/ME are not pre-emptively multitasking,
822     # you end up with a "frozen" computer, even though with patience
823     # the test eventually succeeds (with a max line length of 256k).
824     # Instead, let's just punt: use the minimum linelength reported by
825     # all of the supported platforms: 8192 (on NT/2K/XP).
826     lt_cv_sys_max_cmd_len=8192;
827     ;;
828    
829 aonoto 1.4 amigaos*)
830     # On AmigaOS with pdksh, this test takes hours, literally.
831     # So we just punt and use a minimum line length of 8192.
832     lt_cv_sys_max_cmd_len=8192;
833     ;;
834    
835     netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
836     # This has been around since 386BSD, at least. Likely further.
837     if test -x /sbin/sysctl; then
838     lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
839     elif test -x /usr/sbin/sysctl; then
840     lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
841     else
842     lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
843     fi
844     # And add a safety zone
845     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
846     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
847     ;;
848    
849     interix*)
850     # We know the value 262144 and hardcode it with a safety zone (like BSD)
851     lt_cv_sys_max_cmd_len=196608
852     ;;
853    
854     osf*)
855     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
856     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
857     # nice to cause kernel panics so lets avoid the loop below.
858     # First set a reasonable default.
859     lt_cv_sys_max_cmd_len=16384
860     #
861     if test -x /sbin/sysconfig; then
862     case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
863     *1*) lt_cv_sys_max_cmd_len=-1 ;;
864     esac
865     fi
866     ;;
867     sco3.2v5*)
868     lt_cv_sys_max_cmd_len=102400
869     ;;
870     sysv5* | sco5v6* | sysv4.2uw2*)
871     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
872     if test -n "$kargmax"; then
873     lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
874     else
875     lt_cv_sys_max_cmd_len=32768
876     fi
877     ;;
878     *)
879     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
880     if test -n "$lt_cv_sys_max_cmd_len"; then
881     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
882     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
883     else
884     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
885     while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
886     = "XX$teststring") >/dev/null 2>&1 &&
887     new_result=`expr "X$teststring" : ".*" 2>&1` &&
888     lt_cv_sys_max_cmd_len=$new_result &&
889     test $i != 17 # 1/2 MB should be enough
890     do
891     i=`expr $i + 1`
892     teststring=$teststring$teststring
893     done
894     teststring=
895     # Add a significant safety factor because C++ compilers can tack on massive
896     # amounts of additional arguments before passing them to the linker.
897     # It appears as though 1/2 is a usable value.
898     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
899     fi
900 aono 1.3 ;;
901     esac
902     ])
903     if test -n $lt_cv_sys_max_cmd_len ; then
904     AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
905     else
906     AC_MSG_RESULT(none)
907     fi
908     ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
909    
910    
911     # _LT_AC_CHECK_DLFCN
912 aonoto 1.4 # ------------------
913 aono 1.3 AC_DEFUN([_LT_AC_CHECK_DLFCN],
914     [AC_CHECK_HEADERS(dlfcn.h)dnl
915     ])# _LT_AC_CHECK_DLFCN
916    
917 hiroo 1.2
918     # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
919     # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
920 aonoto 1.4 # ---------------------------------------------------------------------
921 aono 1.3 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
922     [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
923     if test "$cross_compiling" = yes; then :
924 hiroo 1.2 [$4]
925     else
926     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
927     lt_status=$lt_dlunknown
928     cat > conftest.$ac_ext <<EOF
929     [#line __oline__ "configure"
930     #include "confdefs.h"
931    
932     #if HAVE_DLFCN_H
933     #include <dlfcn.h>
934     #endif
935    
936     #include <stdio.h>
937    
938     #ifdef RTLD_GLOBAL
939     # define LT_DLGLOBAL RTLD_GLOBAL
940     #else
941     # ifdef DL_GLOBAL
942     # define LT_DLGLOBAL DL_GLOBAL
943     # else
944     # define LT_DLGLOBAL 0
945     # endif
946     #endif
947    
948     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
949     find out it does not work in some platform. */
950     #ifndef LT_DLLAZY_OR_NOW
951     # ifdef RTLD_LAZY
952     # define LT_DLLAZY_OR_NOW RTLD_LAZY
953     # else
954     # ifdef DL_LAZY
955     # define LT_DLLAZY_OR_NOW DL_LAZY
956     # else
957     # ifdef RTLD_NOW
958     # define LT_DLLAZY_OR_NOW RTLD_NOW
959     # else
960     # ifdef DL_NOW
961     # define LT_DLLAZY_OR_NOW DL_NOW
962     # else
963     # define LT_DLLAZY_OR_NOW 0
964     # endif
965     # endif
966     # endif
967     # endif
968     #endif
969    
970     #ifdef __cplusplus
971     extern "C" void exit (int);
972     #endif
973    
974     void fnord() { int i=42;}
975     int main ()
976     {
977     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
978     int status = $lt_dlunknown;
979    
980     if (self)
981     {
982     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
983     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
984     /* dlclose (self); */
985     }
986 aonoto 1.4 else
987     puts (dlerror ());
988 hiroo 1.2
989     exit (status);
990     }]
991     EOF
992     if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
993 aonoto 1.4 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
994 hiroo 1.2 lt_status=$?
995     case x$lt_status in
996     x$lt_dlno_uscore) $1 ;;
997     x$lt_dlneed_uscore) $2 ;;
998 aonoto 1.4 x$lt_dlunknown|x*) $3 ;;
999 hiroo 1.2 esac
1000     else :
1001     # compilation failed
1002     $3
1003     fi
1004     fi
1005     rm -fr conftest*
1006     ])# _LT_AC_TRY_DLOPEN_SELF
1007    
1008 aono 1.3
1009 hiroo 1.2 # AC_LIBTOOL_DLOPEN_SELF
1010 aonoto 1.4 # ----------------------
1011 aono 1.3 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1012     [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1013     if test "x$enable_dlopen" != xyes; then
1014 hiroo 1.2 enable_dlopen=unknown
1015     enable_dlopen_self=unknown
1016     enable_dlopen_self_static=unknown
1017     else
1018     lt_cv_dlopen=no
1019     lt_cv_dlopen_libs=
1020    
1021     case $host_os in
1022     beos*)
1023     lt_cv_dlopen="load_add_on"
1024     lt_cv_dlopen_libs=
1025     lt_cv_dlopen_self=yes
1026     ;;
1027    
1028 aono 1.3 mingw* | pw32*)
1029 hiroo 1.2 lt_cv_dlopen="LoadLibrary"
1030     lt_cv_dlopen_libs=
1031     ;;
1032    
1033 aono 1.3 cygwin*)
1034     lt_cv_dlopen="dlopen"
1035     lt_cv_dlopen_libs=
1036     ;;
1037    
1038     darwin*)
1039     # if libdl is installed we need to link against it
1040     AC_CHECK_LIB([dl], [dlopen],
1041     [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1042     lt_cv_dlopen="dyld"
1043     lt_cv_dlopen_libs=
1044     lt_cv_dlopen_self=yes
1045     ])
1046     ;;
1047 aonoto 1.4
1048 hiroo 1.2 *)
1049 aono 1.3 AC_CHECK_FUNC([shl_load],
1050     [lt_cv_dlopen="shl_load"],
1051     [AC_CHECK_LIB([dld], [shl_load],
1052 aonoto 1.4 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1053 aono 1.3 [AC_CHECK_FUNC([dlopen],
1054     [lt_cv_dlopen="dlopen"],
1055     [AC_CHECK_LIB([dl], [dlopen],
1056     [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1057     [AC_CHECK_LIB([svld], [dlopen],
1058     [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1059     [AC_CHECK_LIB([dld], [dld_link],
1060 aonoto 1.4 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1061 aono 1.3 ])
1062 hiroo 1.2 ])
1063 aono 1.3 ])
1064     ])
1065 hiroo 1.2 ])
1066     ;;
1067     esac
1068    
1069     if test "x$lt_cv_dlopen" != xno; then
1070     enable_dlopen=yes
1071     else
1072     enable_dlopen=no
1073     fi
1074    
1075     case $lt_cv_dlopen in
1076     dlopen)
1077     save_CPPFLAGS="$CPPFLAGS"
1078     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1079    
1080     save_LDFLAGS="$LDFLAGS"
1081 aonoto 1.4 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1082 hiroo 1.2
1083     save_LIBS="$LIBS"
1084     LIBS="$lt_cv_dlopen_libs $LIBS"
1085    
1086     AC_CACHE_CHECK([whether a program can dlopen itself],
1087     lt_cv_dlopen_self, [dnl
1088     _LT_AC_TRY_DLOPEN_SELF(
1089     lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1090     lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1091     ])
1092    
1093     if test "x$lt_cv_dlopen_self" = xyes; then
1094 aonoto 1.4 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1095 hiroo 1.2 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1096     lt_cv_dlopen_self_static, [dnl
1097     _LT_AC_TRY_DLOPEN_SELF(
1098     lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1099     lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1100     ])
1101     fi
1102    
1103     CPPFLAGS="$save_CPPFLAGS"
1104     LDFLAGS="$save_LDFLAGS"
1105     LIBS="$save_LIBS"
1106     ;;
1107     esac
1108    
1109     case $lt_cv_dlopen_self in
1110     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1111     *) enable_dlopen_self=unknown ;;
1112     esac
1113    
1114     case $lt_cv_dlopen_self_static in
1115     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1116     *) enable_dlopen_self_static=unknown ;;
1117     esac
1118     fi
1119     ])# AC_LIBTOOL_DLOPEN_SELF
1120    
1121    
1122 aono 1.3 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1123     # ---------------------------------
1124     # Check to see if options -c and -o are simultaneously supported by compiler
1125     AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1126 aonoto 1.4 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1127     AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1128 aono 1.3 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1129     [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1130     [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1131     $rm -r conftest 2>/dev/null
1132     mkdir conftest
1133     cd conftest
1134     mkdir out
1135 aonoto 1.4 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1136 aono 1.3
1137     lt_compiler_flag="-o out/conftest2.$ac_objext"
1138     # Insert the option either (1) after the last *FLAGS variable, or
1139     # (2) before a word containing "conftest.", or (3) at the end.
1140     # Note that $ac_compile itself does not contain backslashes and begins
1141     # with a dollar sign (not a hyphen), so the echo should work correctly.
1142     lt_compile=`echo "$ac_compile" | $SED \
1143 aonoto 1.4 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1144 aono 1.3 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1145     -e 's:$: $lt_compiler_flag:'`
1146     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1147     (eval "$lt_compile" 2>out/conftest.err)
1148     ac_status=$?
1149     cat out/conftest.err >&AS_MESSAGE_LOG_FD
1150     echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1151     if (exit $ac_status) && test -s out/conftest2.$ac_objext
1152     then
1153     # The compiler can only warn and ignore the option if not recognized
1154     # So say no if there are warnings
1155 aonoto 1.4 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1156     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1157     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1158 aono 1.3 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1159     fi
1160     fi
1161 aonoto 1.4 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1162     $rm conftest*
1163     # SGI C++ compiler will create directory out/ii_files/ for
1164     # template instantiation
1165     test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1166     $rm out/* && rmdir out
1167 aono 1.3 cd ..
1168     rmdir conftest
1169     $rm conftest*
1170     ])
1171     ])# AC_LIBTOOL_PROG_CC_C_O
1172    
1173 hiroo 1.2
1174 aono 1.3 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1175     # -----------------------------------------
1176     # Check to see if we can do hard links to lock some files if needed
1177     AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1178     [AC_REQUIRE([_LT_AC_LOCK])dnl
1179 hiroo 1.2
1180 aono 1.3 hard_links="nottested"
1181     if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1182     # do not overwrite the value of need_locks provided by the user
1183     AC_MSG_CHECKING([if we can lock with hard links])
1184     hard_links=yes
1185     $rm conftest*
1186     ln conftest.a conftest.b 2>/dev/null && hard_links=no
1187     touch conftest.a
1188     ln conftest.a conftest.b 2>&5 || hard_links=no
1189     ln conftest.a conftest.b 2>/dev/null && hard_links=no
1190     AC_MSG_RESULT([$hard_links])
1191     if test "$hard_links" = no; then
1192     AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1193     need_locks=warn
1194     fi
1195     else
1196     need_locks=no
1197     fi
1198     ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1199 hiroo 1.2
1200    
1201 aono 1.3 # AC_LIBTOOL_OBJDIR
1202     # -----------------
1203     AC_DEFUN([AC_LIBTOOL_OBJDIR],
1204     [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1205     [rm -f .libs 2>/dev/null
1206     mkdir .libs 2>/dev/null
1207     if test -d .libs; then
1208     lt_cv_objdir=.libs
1209     else
1210     # MS-DOS does not allow filenames that begin with a dot.
1211     lt_cv_objdir=_libs
1212     fi
1213     rmdir .libs 2>/dev/null])
1214     objdir=$lt_cv_objdir
1215     ])# AC_LIBTOOL_OBJDIR
1216 hiroo 1.2
1217    
1218 aono 1.3 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1219     # ----------------------------------------------
1220     # Check hardcoding attributes.
1221     AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1222     [AC_MSG_CHECKING([how to hardcode library paths into programs])
1223     _LT_AC_TAGVAR(hardcode_action, $1)=
1224     if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1225 aonoto 1.4 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1226     test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1227 hiroo 1.2
1228 aono 1.3 # We can hardcode non-existant directories.
1229     if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1230     # If the only mechanism to avoid hardcoding is shlibpath_var, we
1231     # have to relink, otherwise we might link with an installed library
1232     # when we should be linking with a yet-to-be-installed one
1233     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1234     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1235     # Linking always hardcodes the temporary library directory.
1236     _LT_AC_TAGVAR(hardcode_action, $1)=relink
1237     else
1238     # We can link without hardcoding, and we can hardcode nonexisting dirs.
1239     _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1240     fi
1241 hiroo 1.2 else
1242 aono 1.3 # We cannot hardcode anything, or else we can only hardcode existing
1243     # directories.
1244     _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1245 hiroo 1.2 fi
1246 aono 1.3 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1247 hiroo 1.2
1248 aono 1.3 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1249     # Fast installation is not supported
1250     enable_fast_install=no
1251     elif test "$shlibpath_overrides_runpath" = yes ||
1252     test "$enable_shared" = no; then
1253     # Fast installation is not necessary
1254     enable_fast_install=needless
1255     fi
1256     ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1257 hiroo 1.2
1258    
1259 aono 1.3 # AC_LIBTOOL_SYS_LIB_STRIP
1260     # ------------------------
1261     AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1262     [striplib=
1263     old_striplib=
1264     AC_MSG_CHECKING([whether stripping libraries is possible])
1265     if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1266     test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1267     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1268     AC_MSG_RESULT([yes])
1269     else
1270     # FIXME - insert some real tests, host_os isn't really good enough
1271     case $host_os in
1272     darwin*)
1273     if test -n "$STRIP" ; then
1274     striplib="$STRIP -x"
1275 aonoto 1.4 old_striplib="$STRIP -S"
1276 aono 1.3 AC_MSG_RESULT([yes])
1277     else
1278     AC_MSG_RESULT([no])
1279     fi
1280     ;;
1281     *)
1282     AC_MSG_RESULT([no])
1283     ;;
1284 aonoto 1.4 esac
1285 hiroo 1.2 fi
1286 aono 1.3 ])# AC_LIBTOOL_SYS_LIB_STRIP
1287 hiroo 1.2
1288    
1289 aono 1.3 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1290     # -----------------------------
1291     # PORTME Fill in your ld.so characteristics
1292     AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1293 aonoto 1.4 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1294     AC_MSG_CHECKING([dynamic linker characteristics])
1295 aono 1.3 library_names_spec=
1296     libname_spec='lib$name'
1297     soname_spec=
1298 aonoto 1.4 shrext_cmds=".so"
1299 aono 1.3 postinstall_cmds=
1300     postuninstall_cmds=
1301     finish_cmds=
1302     finish_eval=
1303     shlibpath_var=
1304     shlibpath_overrides_runpath=unknown
1305     version_type=none
1306     dynamic_linker="$host_os ld.so"
1307     sys_lib_dlsearch_path_spec="/lib /usr/lib"
1308 aonoto 1.4 m4_if($1,[],[
1309 aono 1.3 if test "$GCC" = yes; then
1310 aonoto 1.4 case $host_os in
1311     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1312     *) lt_awk_arg="/^libraries:/" ;;
1313     esac
1314     lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1315     if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1316 aono 1.3 # if the path contains ";" then we assume it to be the separator
1317     # otherwise default to the standard path separator (i.e. ":") - it is
1318     # assumed that no part of a normal pathname contains ";" but that should
1319     # okay in the real world where ";" in dirpaths is itself problematic.
1320 aonoto 1.4 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1321 aono 1.3 else
1322 aonoto 1.4 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1323 aono 1.3 fi
1324 aonoto 1.4 # Ok, now we have the path, separated by spaces, we can step through it
1325     # and add multilib dir if necessary.
1326     lt_tmp_lt_search_path_spec=
1327     lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1328     for lt_sys_path in $lt_search_path_spec; do
1329     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1330     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1331     else
1332     test -d "$lt_sys_path" && \
1333     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1334     fi
1335     done
1336     lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1337     BEGIN {RS=" "; FS="/|\n";} {
1338     lt_foo="";
1339     lt_count=0;
1340     for (lt_i = NF; lt_i > 0; lt_i--) {
1341     if ($lt_i != "" && $lt_i != ".") {
1342     if ($lt_i == "..") {
1343     lt_count++;
1344     } else {
1345     if (lt_count == 0) {
1346     lt_foo="/" $lt_i lt_foo;
1347     } else {
1348     lt_count--;
1349     }
1350     }
1351     }
1352     }
1353     if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1354     if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1355     }'`
1356     sys_lib_search_path_spec=`echo $lt_search_path_spec`
1357 hiroo 1.2 else
1358 aono 1.3 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1359 aonoto 1.4 fi])
1360 aono 1.3 need_lib_prefix=unknown
1361     hardcode_into_libs=no
1362 hiroo 1.2
1363 aono 1.3 # when you set need_version to no, make sure it does not cause -set_version
1364     # flags to be left without arguments
1365     need_version=unknown
1366 hiroo 1.2
1367 aono 1.3 case $host_os in
1368     aix3*)
1369     version_type=linux
1370     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1371     shlibpath_var=LIBPATH
1372 hiroo 1.2
1373 aono 1.3 # AIX 3 has no versioning support, so we append a major version to the name.
1374     soname_spec='${libname}${release}${shared_ext}$major'
1375     ;;
1376 hiroo 1.2
1377 aonoto 1.4 aix[[4-9]]*)
1378 aono 1.3 version_type=linux
1379     need_lib_prefix=no
1380     need_version=no
1381     hardcode_into_libs=yes
1382     if test "$host_cpu" = ia64; then
1383     # AIX 5 supports IA64
1384     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1385     shlibpath_var=LD_LIBRARY_PATH
1386 hiroo 1.2 else
1387 aono 1.3 # With GCC up to 2.95.x, collect2 would create an import file
1388     # for dependence libraries. The import file would start with
1389     # the line `#! .'. This would cause the generated library to
1390     # depend on `.', always an invalid library. This was fixed in
1391     # development snapshots of GCC prior to 3.0.
1392 hiroo 1.2 case $host_os in
1393 aono 1.3 aix4 | aix4.[[01]] | aix4.[[01]].*)
1394     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1395     echo ' yes '
1396     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1397     :
1398 hiroo 1.2 else
1399 aono 1.3 can_build_shared=no
1400 hiroo 1.2 fi
1401     ;;
1402 aono 1.3 esac
1403     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1404     # soname into executable. Probably we can add versioning support to
1405     # collect2, so additional links can be useful in future.
1406     if test "$aix_use_runtimelinking" = yes; then
1407     # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1408     # instead of lib<name>.a to let people know that these are not
1409     # typical AIX shared libraries.
1410     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1411     else
1412     # We preserve .a as extension for shared libraries through AIX4.2
1413     # and later when we are not doing run time linking.
1414     library_names_spec='${libname}${release}.a $libname.a'
1415     soname_spec='${libname}${release}${shared_ext}$major'
1416     fi
1417     shlibpath_var=LIBPATH
1418     fi
1419     ;;
1420 hiroo 1.2
1421 aono 1.3 amigaos*)
1422     library_names_spec='$libname.ixlibrary $libname.a'
1423     # Create ${libname}_ixlibrary.a entries in /sys/libs.
1424 aonoto 1.4 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'
1425 aono 1.3 ;;
1426 hiroo 1.2
1427 aono 1.3 beos*)
1428     library_names_spec='${libname}${shared_ext}'
1429     dynamic_linker="$host_os ld.so"
1430     shlibpath_var=LIBRARY_PATH
1431     ;;
1432 hiroo 1.2
1433 aonoto 1.4 bsdi[[45]]*)
1434 aono 1.3 version_type=linux
1435     need_version=no
1436     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1437     soname_spec='${libname}${release}${shared_ext}$major'
1438     finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1439     shlibpath_var=LD_LIBRARY_PATH
1440     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1441     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1442     # the default ld.so.conf also contains /usr/contrib/lib and
1443     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1444     # libtool to hard-code these into programs
1445     ;;
1446 hiroo 1.2
1447 aono 1.3 cygwin* | mingw* | pw32*)
1448     version_type=windows
1449 aonoto 1.4 shrext_cmds=".dll"
1450 aono 1.3 need_version=no
1451     need_lib_prefix=no
1452 hiroo 1.2
1453 aono 1.3 case $GCC,$host_os in
1454     yes,cygwin* | yes,mingw* | yes,pw32*)
1455     library_names_spec='$libname.dll.a'
1456     # DLL is installed to $(libdir)/../bin by postinstall_cmds
1457     postinstall_cmds='base_file=`basename \${file}`~
1458     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1459     dldir=$destdir/`dirname \$dlpath`~
1460     test -d \$dldir || mkdir -p \$dldir~
1461 aonoto 1.4 $install_prog $dir/$dlname \$dldir/$dlname~
1462     chmod a+x \$dldir/$dlname'
1463 aono 1.3 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1464     dlpath=$dir/\$dldll~
1465     $rm \$dlpath'
1466     shlibpath_overrides_runpath=yes
1467 hiroo 1.2
1468 aono 1.3 case $host_os in
1469     cygwin*)
1470     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1471     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1472 aonoto 1.4 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1473 hiroo 1.2 ;;
1474 aono 1.3 mingw*)
1475     # MinGW DLLs use traditional 'lib' prefix
1476     soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1477     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1478     if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1479     # It is most probably a Windows format PATH printed by
1480     # mingw gcc, but we are running on Cygwin. Gcc prints its search
1481     # path with ; separators, and with drive letters. We can handle the
1482     # drive letters (cygwin fileutils understands them), so leave them,
1483     # especially as we might pass files found there to a mingw objdump,
1484     # which wouldn't understand a cygwinified path. Ahh.
1485     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1486     else
1487     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1488     fi
1489 hiroo 1.2 ;;
1490 aono 1.3 pw32*)
1491     # pw32 DLLs use 'pw' prefix rather than 'lib'
1492 aonoto 1.4 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1493 hiroo 1.2 ;;
1494 aono 1.3 esac
1495     ;;
1496 hiroo 1.2
1497 aono 1.3 *)
1498     library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1499     ;;
1500     esac
1501     dynamic_linker='Win32 ld.exe'
1502     # FIXME: first we should search . and the directory the executable is in
1503     shlibpath_var=PATH
1504     ;;
1505    
1506     darwin* | rhapsody*)
1507     dynamic_linker="$host_os dyld"
1508     version_type=darwin
1509     need_lib_prefix=no
1510     need_version=no
1511     library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1512     soname_spec='${libname}${release}${major}$shared_ext'
1513     shlibpath_overrides_runpath=yes
1514     shlibpath_var=DYLD_LIBRARY_PATH
1515 aonoto 1.4 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1516     m4_if([$1], [],[
1517     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1518 aono 1.3 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1519     ;;
1520    
1521     dgux*)
1522     version_type=linux
1523     need_lib_prefix=no
1524     need_version=no
1525     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1526     soname_spec='${libname}${release}${shared_ext}$major'
1527     shlibpath_var=LD_LIBRARY_PATH
1528     ;;
1529    
1530     freebsd1*)
1531     dynamic_linker=no
1532     ;;
1533    
1534 aonoto 1.4 freebsd* | dragonfly*)
1535     # DragonFly does not have aout. When/if they implement a new
1536     # versioning mechanism, adjust this.
1537     if test -x /usr/bin/objformat; then
1538     objformat=`/usr/bin/objformat`
1539     else
1540     case $host_os in
1541     freebsd[[123]]*) objformat=aout ;;
1542     *) objformat=elf ;;
1543     esac
1544     fi
1545 aono 1.3 version_type=freebsd-$objformat
1546     case $version_type in
1547     freebsd-elf*)
1548     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1549     need_version=no
1550     need_lib_prefix=no
1551     ;;
1552     freebsd-*)
1553     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1554     need_version=yes
1555     ;;
1556     esac
1557     shlibpath_var=LD_LIBRARY_PATH
1558     case $host_os in
1559     freebsd2*)
1560     shlibpath_overrides_runpath=yes
1561     ;;
1562 aonoto 1.4 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1563 aono 1.3 shlibpath_overrides_runpath=yes
1564     hardcode_into_libs=yes
1565     ;;
1566 aonoto 1.4 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1567     freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1568 aono 1.3 shlibpath_overrides_runpath=no
1569     hardcode_into_libs=yes
1570     ;;
1571 aonoto 1.4 *) # from 4.6 on, and DragonFly
1572     shlibpath_overrides_runpath=yes
1573     hardcode_into_libs=yes
1574     ;;
1575 aono 1.3 esac
1576     ;;
1577    
1578     gnu*)
1579     version_type=linux
1580     need_lib_prefix=no
1581     need_version=no
1582     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1583     soname_spec='${libname}${release}${shared_ext}$major'
1584     shlibpath_var=LD_LIBRARY_PATH
1585     hardcode_into_libs=yes
1586     ;;
1587    
1588     hpux9* | hpux10* | hpux11*)
1589     # Give a soname corresponding to the major version so that dld.sl refuses to
1590     # link against other versions.
1591     version_type=sunos
1592     need_lib_prefix=no
1593     need_version=no
1594 aonoto 1.4 case $host_cpu in
1595 aono 1.3 ia64*)
1596 aonoto 1.4 shrext_cmds='.so'
1597 aono 1.3 hardcode_into_libs=yes
1598     dynamic_linker="$host_os dld.so"
1599     shlibpath_var=LD_LIBRARY_PATH
1600     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1601     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1602     soname_spec='${libname}${release}${shared_ext}$major'
1603     if test "X$HPUX_IA64_MODE" = X32; then
1604     sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1605     else
1606     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1607     fi
1608     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1609     ;;
1610     hppa*64*)
1611 aonoto 1.4 shrext_cmds='.sl'
1612 aono 1.3 hardcode_into_libs=yes
1613     dynamic_linker="$host_os dld.sl"
1614     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1615     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1616     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1617     soname_spec='${libname}${release}${shared_ext}$major'
1618     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1619     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1620     ;;
1621     *)
1622 aonoto 1.4 shrext_cmds='.sl'
1623 aono 1.3 dynamic_linker="$host_os dld.sl"
1624     shlibpath_var=SHLIB_PATH
1625     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1626     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1627     soname_spec='${libname}${release}${shared_ext}$major'
1628     ;;
1629     esac
1630     # HP-UX runs *really* slowly unless shared libraries are mode 555.
1631     postinstall_cmds='chmod 555 $lib'
1632     ;;
1633    
1634 aonoto 1.4 interix[[3-9]]*)
1635     version_type=linux
1636     need_lib_prefix=no
1637     need_version=no
1638     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1639     soname_spec='${libname}${release}${shared_ext}$major'
1640     dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1641     shlibpath_var=LD_LIBRARY_PATH
1642     shlibpath_overrides_runpath=no
1643     hardcode_into_libs=yes
1644     ;;
1645    
1646 aono 1.3 irix5* | irix6* | nonstopux*)
1647     case $host_os in
1648     nonstopux*) version_type=nonstopux ;;
1649     *)
1650     if test "$lt_cv_prog_gnu_ld" = yes; then
1651     version_type=linux
1652     else
1653     version_type=irix
1654     fi ;;
1655     esac
1656     need_lib_prefix=no
1657     need_version=no
1658     soname_spec='${libname}${release}${shared_ext}$major'
1659     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1660     case $host_os in
1661     irix5* | nonstopux*)
1662     libsuff= shlibsuff=
1663     ;;
1664     *)
1665     case $LD in # libtool.m4 will add one of these switches to LD
1666     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1667     libsuff= shlibsuff= libmagic=32-bit;;
1668     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1669     libsuff=32 shlibsuff=N32 libmagic=N32;;
1670     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1671     libsuff=64 shlibsuff=64 libmagic=64-bit;;
1672     *) libsuff= shlibsuff= libmagic=never-match;;
1673     esac
1674     ;;
1675     esac
1676     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1677     shlibpath_overrides_runpath=no
1678     sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1679     sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1680     hardcode_into_libs=yes
1681     ;;
1682    
1683     # No shared lib support for Linux oldld, aout, or coff.
1684     linux*oldld* | linux*aout* | linux*coff*)
1685     dynamic_linker=no
1686     ;;
1687    
1688     # This must be Linux ELF.
1689 aonoto 1.4 linux* | k*bsd*-gnu)
1690 aono 1.3 version_type=linux
1691     need_lib_prefix=no
1692     need_version=no
1693     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1694     soname_spec='${libname}${release}${shared_ext}$major'
1695     finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1696     shlibpath_var=LD_LIBRARY_PATH
1697     shlibpath_overrides_runpath=no
1698     # This implies no fast_install, which is unacceptable.
1699     # Some rework will be needed to allow for fast_install
1700     # before this can be enabled.
1701     hardcode_into_libs=yes
1702    
1703 aonoto 1.4 # Append ld.so.conf contents to the search path
1704     if test -f /etc/ld.so.conf; then
1705     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1706     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1707     fi
1708    
1709 aono 1.3 # We used to test for /lib/ld.so.1 and disable shared libraries on
1710     # powerpc, because MkLinux only supported shared libraries with the
1711     # GNU dynamic linker. Since this was broken with cross compilers,
1712     # most powerpc-linux boxes support dynamic linking these days and
1713     # people can always --disable-shared, the test was removed, and we
1714     # assume the GNU/Linux dynamic linker is in use.
1715     dynamic_linker='GNU/Linux ld.so'
1716     ;;
1717    
1718     netbsd*)
1719     version_type=sunos
1720     need_lib_prefix=no
1721     need_version=no
1722     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1723     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1724     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1725     dynamic_linker='NetBSD (a.out) ld.so'
1726     else
1727 aonoto 1.4 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1728 aono 1.3 soname_spec='${libname}${release}${shared_ext}$major'
1729     dynamic_linker='NetBSD ld.elf_so'
1730     fi
1731     shlibpath_var=LD_LIBRARY_PATH
1732     shlibpath_overrides_runpath=yes
1733     hardcode_into_libs=yes
1734     ;;
1735    
1736     newsos6)
1737     version_type=linux
1738     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1739     shlibpath_var=LD_LIBRARY_PATH
1740     shlibpath_overrides_runpath=yes
1741     ;;
1742    
1743 aonoto 1.4 nto-qnx*)
1744 aono 1.3 version_type=linux
1745     need_lib_prefix=no
1746     need_version=no
1747     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1748     soname_spec='${libname}${release}${shared_ext}$major'
1749     shlibpath_var=LD_LIBRARY_PATH
1750     shlibpath_overrides_runpath=yes
1751     ;;
1752    
1753     openbsd*)
1754     version_type=sunos
1755 aonoto 1.4 sys_lib_dlsearch_path_spec="/usr/lib"
1756 aono 1.3 need_lib_prefix=no
1757 aonoto 1.4 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1758     case $host_os in
1759     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1760     *) need_version=no ;;
1761     esac
1762 aono 1.3 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1763     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1764     shlibpath_var=LD_LIBRARY_PATH
1765     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1766     case $host_os in
1767     openbsd2.[[89]] | openbsd2.[[89]].*)
1768     shlibpath_overrides_runpath=no
1769     ;;
1770     *)
1771     shlibpath_overrides_runpath=yes
1772     ;;
1773     esac
1774     else
1775     shlibpath_overrides_runpath=yes
1776     fi
1777     ;;
1778    
1779     os2*)
1780     libname_spec='$name'
1781 aonoto 1.4 shrext_cmds=".dll"
1782 aono 1.3 need_lib_prefix=no
1783     library_names_spec='$libname${shared_ext} $libname.a'
1784     dynamic_linker='OS/2 ld.exe'
1785     shlibpath_var=LIBPATH
1786     ;;
1787    
1788     osf3* | osf4* | osf5*)
1789     version_type=osf
1790     need_lib_prefix=no
1791     need_version=no
1792     soname_spec='${libname}${release}${shared_ext}$major'
1793     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1794     shlibpath_var=LD_LIBRARY_PATH
1795     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1796     sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1797     ;;
1798    
1799 aonoto 1.4 rdos*)
1800     dynamic_linker=no
1801 aono 1.3 ;;
1802    
1803     solaris*)
1804     version_type=linux
1805     need_lib_prefix=no
1806     need_version=no
1807     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1808     soname_spec='${libname}${release}${shared_ext}$major'
1809     shlibpath_var=LD_LIBRARY_PATH
1810     shlibpath_overrides_runpath=yes
1811     hardcode_into_libs=yes
1812     # ldd complains unless libraries are executable
1813     postinstall_cmds='chmod +x $lib'
1814     ;;
1815    
1816     sunos4*)
1817     version_type=sunos
1818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1819     finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1820     shlibpath_var=LD_LIBRARY_PATH
1821     shlibpath_overrides_runpath=yes
1822     if test "$with_gnu_ld" = yes; then
1823     need_lib_prefix=no
1824     fi
1825     need_version=yes
1826     ;;
1827    
1828 aonoto 1.4 sysv4 | sysv4.3*)
1829 aono 1.3 version_type=linux
1830     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1831     soname_spec='${libname}${release}${shared_ext}$major'
1832     shlibpath_var=LD_LIBRARY_PATH
1833     case $host_vendor in
1834     sni)
1835     shlibpath_overrides_runpath=no
1836     need_lib_prefix=no
1837     export_dynamic_flag_spec='${wl}-Blargedynsym'
1838     runpath_var=LD_RUN_PATH
1839     ;;
1840     siemens)
1841     need_lib_prefix=no
1842     ;;
1843     motorola)
1844     need_lib_prefix=no
1845     need_version=no
1846     shlibpath_overrides_runpath=no
1847     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1848     ;;
1849     esac
1850     ;;
1851    
1852     sysv4*MP*)
1853     if test -d /usr/nec ;then
1854     version_type=linux
1855     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1856     soname_spec='$libname${shared_ext}.$major'
1857     shlibpath_var=LD_LIBRARY_PATH
1858     fi
1859     ;;
1860    
1861 aonoto 1.4 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1862     version_type=freebsd-elf
1863     need_lib_prefix=no
1864     need_version=no
1865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1866     soname_spec='${libname}${release}${shared_ext}$major'
1867     shlibpath_var=LD_LIBRARY_PATH
1868     hardcode_into_libs=yes
1869     if test "$with_gnu_ld" = yes; then
1870     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1871     shlibpath_overrides_runpath=no
1872     else
1873     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1874     shlibpath_overrides_runpath=yes
1875     case $host_os in
1876     sco3.2v5*)
1877     sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1878     ;;
1879     esac
1880     fi
1881     sys_lib_dlsearch_path_spec='/usr/lib'
1882     ;;
1883    
1884 aono 1.3 uts4*)
1885     version_type=linux
1886     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1887     soname_spec='${libname}${release}${shared_ext}$major'
1888     shlibpath_var=LD_LIBRARY_PATH
1889     ;;
1890    
1891     *)
1892     dynamic_linker=no
1893     ;;
1894     esac
1895     AC_MSG_RESULT([$dynamic_linker])
1896     test "$dynamic_linker" = no && can_build_shared=no
1897 aonoto 1.4
1898     AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
1899     [lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
1900     sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1901     AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
1902     [lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
1903     sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1904    
1905     variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1906     if test "$GCC" = yes; then
1907     variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1908     fi
1909 aono 1.3 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1910    
1911    
1912     # _LT_AC_TAGCONFIG
1913     # ----------------
1914     AC_DEFUN([_LT_AC_TAGCONFIG],
1915 aonoto 1.4 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1916     AC_ARG_WITH([tags],
1917 aono 1.3 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1918     [include additional configurations @<:@automatic@:>@])],
1919     [tagnames="$withval"])
1920    
1921     if test -f "$ltmain" && test -n "$tagnames"; then
1922     if test ! -f "${ofile}"; then
1923     AC_MSG_WARN([output file `$ofile' does not exist])
1924     fi
1925    
1926     if test -z "$LTCC"; then
1927     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1928     if test -z "$LTCC"; then
1929     AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1930     else
1931     AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1932     fi
1933     fi
1934 aonoto 1.4 if test -z "$LTCFLAGS"; then
1935     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1936     fi
1937 aono 1.3
1938     # Extract list of available tagged configurations in $ofile.
1939     # Note that this assumes the entire list is on one line.
1940     available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1941    
1942     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1943     for tagname in $tagnames; do
1944     IFS="$lt_save_ifs"
1945     # Check whether tagname contains only valid characters
1946     case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1947     "") ;;
1948     *) AC_MSG_ERROR([invalid tag name: $tagname])
1949     ;;
1950     esac
1951    
1952     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1953     then
1954     AC_MSG_ERROR([tag name \"$tagname\" already exists])
1955     fi
1956    
1957     # Update the list of available tags.
1958     if test -n "$tagname"; then
1959     echo appending configuration tag \"$tagname\" to $ofile
1960    
1961     case $tagname in
1962     CXX)
1963 aonoto 1.4 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1964     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1965     (test "X$CXX" != "Xg++"))) ; then
1966 aono 1.3 AC_LIBTOOL_LANG_CXX_CONFIG
1967     else
1968     tagname=""
1969     fi
1970     ;;
1971    
1972     F77)
1973     if test -n "$F77" && test "X$F77" != "Xno"; then
1974     AC_LIBTOOL_LANG_F77_CONFIG
1975     else
1976     tagname=""
1977     fi
1978     ;;
1979    
1980     GCJ)
1981     if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1982     AC_LIBTOOL_LANG_GCJ_CONFIG
1983     else
1984     tagname=""
1985     fi
1986     ;;
1987    
1988     RC)
1989     AC_LIBTOOL_LANG_RC_CONFIG
1990     ;;
1991    
1992     *)
1993     AC_MSG_ERROR([Unsupported tag name: $tagname])
1994     ;;
1995     esac
1996    
1997     # Append the new tag name to the list of available tags.
1998     if test -n "$tagname" ; then
1999     available_tags="$available_tags $tagname"
2000     fi
2001     fi
2002     done
2003     IFS="$lt_save_ifs"
2004    
2005     # Now substitute the updated list of available tags.
2006     if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2007     mv "${ofile}T" "$ofile"
2008     chmod +x "$ofile"
2009     else
2010     rm -f "${ofile}T"
2011     AC_MSG_ERROR([unable to update list of available tagged configurations.])
2012     fi
2013     fi
2014     ])# _LT_AC_TAGCONFIG
2015    
2016    
2017     # AC_LIBTOOL_DLOPEN
2018     # -----------------
2019     # enable checks for dlopen support
2020     AC_DEFUN([AC_LIBTOOL_DLOPEN],
2021     [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2022     ])# AC_LIBTOOL_DLOPEN
2023    
2024    
2025     # AC_LIBTOOL_WIN32_DLL
2026     # --------------------
2027 aonoto 1.4 # declare package support for building win32 DLLs
2028 aono 1.3 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2029     [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2030     ])# AC_LIBTOOL_WIN32_DLL
2031    
2032    
2033     # AC_ENABLE_SHARED([DEFAULT])
2034     # ---------------------------
2035     # implement the --enable-shared flag
2036     # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2037     AC_DEFUN([AC_ENABLE_SHARED],
2038     [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2039     AC_ARG_ENABLE([shared],
2040     [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2041     [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2042     [p=${PACKAGE-default}
2043     case $enableval in
2044     yes) enable_shared=yes ;;
2045     no) enable_shared=no ;;
2046     *)
2047     enable_shared=no
2048     # Look at the argument we got. We use all the common list separators.
2049     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2050     for pkg in $enableval; do
2051     IFS="$lt_save_ifs"
2052     if test "X$pkg" = "X$p"; then
2053     enable_shared=yes
2054     fi
2055     done
2056     IFS="$lt_save_ifs"
2057     ;;
2058     esac],
2059     [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2060     ])# AC_ENABLE_SHARED
2061    
2062    
2063     # AC_DISABLE_SHARED
2064     # -----------------
2065 aonoto 1.4 # set the default shared flag to --disable-shared
2066 aono 1.3 AC_DEFUN([AC_DISABLE_SHARED],
2067     [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2068     AC_ENABLE_SHARED(no)
2069     ])# AC_DISABLE_SHARED
2070    
2071    
2072     # AC_ENABLE_STATIC([DEFAULT])
2073     # ---------------------------
2074     # implement the --enable-static flag
2075     # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2076     AC_DEFUN([AC_ENABLE_STATIC],
2077     [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2078     AC_ARG_ENABLE([static],
2079     [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2080     [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2081     [p=${PACKAGE-default}
2082     case $enableval in
2083     yes) enable_static=yes ;;
2084     no) enable_static=no ;;
2085     *)
2086     enable_static=no
2087     # Look at the argument we got. We use all the common list separators.
2088     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2089     for pkg in $enableval; do
2090     IFS="$lt_save_ifs"
2091     if test "X$pkg" = "X$p"; then
2092     enable_static=yes
2093     fi
2094     done
2095     IFS="$lt_save_ifs"
2096     ;;
2097     esac],
2098     [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2099     ])# AC_ENABLE_STATIC
2100    
2101    
2102     # AC_DISABLE_STATIC
2103     # -----------------
2104     # set the default static flag to --disable-static
2105     AC_DEFUN([AC_DISABLE_STATIC],
2106     [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2107     AC_ENABLE_STATIC(no)
2108     ])# AC_DISABLE_STATIC
2109    
2110    
2111     # AC_ENABLE_FAST_INSTALL([DEFAULT])
2112     # ---------------------------------
2113     # implement the --enable-fast-install flag
2114     # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2115     AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2116     [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2117     AC_ARG_ENABLE([fast-install],
2118     [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2119     [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2120     [p=${PACKAGE-default}
2121     case $enableval in
2122     yes) enable_fast_install=yes ;;
2123     no) enable_fast_install=no ;;
2124     *)
2125     enable_fast_install=no
2126     # Look at the argument we got. We use all the common list separators.
2127     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2128     for pkg in $enableval; do
2129     IFS="$lt_save_ifs"
2130     if test "X$pkg" = "X$p"; then
2131     enable_fast_install=yes
2132     fi
2133     done
2134     IFS="$lt_save_ifs"
2135     ;;
2136     esac],
2137     [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2138     ])# AC_ENABLE_FAST_INSTALL
2139    
2140    
2141     # AC_DISABLE_FAST_INSTALL
2142     # -----------------------
2143     # set the default to --disable-fast-install
2144     AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2145     [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2146     AC_ENABLE_FAST_INSTALL(no)
2147     ])# AC_DISABLE_FAST_INSTALL
2148    
2149    
2150     # AC_LIBTOOL_PICMODE([MODE])
2151     # --------------------------
2152     # implement the --with-pic flag
2153     # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2154     AC_DEFUN([AC_LIBTOOL_PICMODE],
2155     [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2156     pic_mode=ifelse($#,1,$1,default)
2157     ])# AC_LIBTOOL_PICMODE
2158    
2159    
2160     # AC_PROG_EGREP
2161     # -------------
2162     # This is predefined starting with Autoconf 2.54, so this conditional
2163     # definition can be removed once we require Autoconf 2.54 or later.
2164     m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2165     [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2166     [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2167     then ac_cv_prog_egrep='grep -E'
2168     else ac_cv_prog_egrep='egrep'
2169     fi])
2170     EGREP=$ac_cv_prog_egrep
2171     AC_SUBST([EGREP])
2172     ])])
2173    
2174    
2175     # AC_PATH_TOOL_PREFIX
2176     # -------------------
2177 aonoto 1.4 # find a file program which can recognize shared library
2178 aono 1.3 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2179     [AC_REQUIRE([AC_PROG_EGREP])dnl
2180     AC_MSG_CHECKING([for $1])
2181     AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2182     [case $MAGIC_CMD in
2183     [[\\/*] | ?:[\\/]*])
2184     lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2185     ;;
2186     *)
2187     lt_save_MAGIC_CMD="$MAGIC_CMD"
2188     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2189     dnl $ac_dummy forces splitting on constant user-supplied paths.
2190     dnl POSIX.2 word splitting is done only on the output of word expansions,
2191     dnl not every word. This closes a longstanding sh security hole.
2192     ac_dummy="ifelse([$2], , $PATH, [$2])"
2193     for ac_dir in $ac_dummy; do
2194     IFS="$lt_save_ifs"
2195     test -z "$ac_dir" && ac_dir=.
2196     if test -f $ac_dir/$1; then
2197     lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2198     if test -n "$file_magic_test_file"; then
2199     case $deplibs_check_method in
2200     "file_magic "*)
2201 aonoto 1.4 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2202 aono 1.3 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2203     if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2204     $EGREP "$file_magic_regex" > /dev/null; then
2205     :
2206     else
2207     cat <<EOF 1>&2
2208    
2209     *** Warning: the command libtool uses to detect shared libraries,
2210     *** $file_magic_cmd, produces output that libtool cannot recognize.
2211     *** The result is that libtool may fail to recognize shared libraries
2212     *** as such. This will affect the creation of libtool libraries that
2213     *** depend on shared libraries, but programs linked with such libtool
2214     *** libraries will work regardless of this problem. Nevertheless, you
2215     *** may want to report the problem to your system manager and/or to
2216     *** bug-libtool@gnu.org
2217    
2218     EOF
2219     fi ;;
2220     esac
2221 hiroo 1.2 fi
2222 aono 1.3 break
2223     fi
2224     done
2225     IFS="$lt_save_ifs"
2226     MAGIC_CMD="$lt_save_MAGIC_CMD"
2227     ;;
2228     esac])
2229     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2230     if test -n "$MAGIC_CMD"; then
2231     AC_MSG_RESULT($MAGIC_CMD)
2232     else
2233     AC_MSG_RESULT(no)
2234     fi
2235     ])# AC_PATH_TOOL_PREFIX
2236    
2237    
2238     # AC_PATH_MAGIC
2239     # -------------
2240 aonoto 1.4 # find a file program which can recognize a shared library
2241 aono 1.3 AC_DEFUN([AC_PATH_MAGIC],
2242     [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2243     if test -z "$lt_cv_path_MAGIC_CMD"; then
2244     if test -n "$ac_tool_prefix"; then
2245     AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2246     else
2247     MAGIC_CMD=:
2248     fi
2249     fi
2250     ])# AC_PATH_MAGIC
2251    
2252    
2253     # AC_PROG_LD
2254     # ----------
2255 aonoto 1.4 # find the pathname to the GNU or non-GNU linker
2256 aono 1.3 AC_DEFUN([AC_PROG_LD],
2257     [AC_ARG_WITH([gnu-ld],
2258     [AC_HELP_STRING([--with-gnu-ld],
2259     [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2260     [test "$withval" = no || with_gnu_ld=yes],
2261     [with_gnu_ld=no])
2262     AC_REQUIRE([LT_AC_PROG_SED])dnl
2263     AC_REQUIRE([AC_PROG_CC])dnl
2264     AC_REQUIRE([AC_CANONICAL_HOST])dnl
2265     AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2266     ac_prog=ld
2267     if test "$GCC" = yes; then
2268     # Check if gcc -print-prog-name=ld gives a path.
2269     AC_MSG_CHECKING([for ld used by $CC])
2270     case $host in
2271     *-*-mingw*)
2272     # gcc leaves a trailing carriage return which upsets mingw
2273     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2274     *)
2275     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2276     esac
2277     case $ac_prog in
2278     # Accept absolute paths.
2279     [[\\/]]* | ?:[[\\/]]*)
2280     re_direlt='/[[^/]][[^/]]*/\.\./'
2281 aonoto 1.4 # Canonicalize the pathname of ld
2282 aono 1.3 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2283     while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2284     ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2285     done
2286     test -z "$LD" && LD="$ac_prog"
2287     ;;
2288     "")
2289     # If it fails, then pretend we aren't using GCC.
2290     ac_prog=ld
2291     ;;
2292     *)
2293     # If it is relative, then search for the first ld in PATH.
2294     with_gnu_ld=unknown
2295     ;;
2296     esac
2297     elif test "$with_gnu_ld" = yes; then
2298     AC_MSG_CHECKING([for GNU ld])
2299     else
2300     AC_MSG_CHECKING([for non-GNU ld])
2301     fi
2302     AC_CACHE_VAL(lt_cv_path_LD,
2303     [if test -z "$LD"; then
2304     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2305     for ac_dir in $PATH; do
2306     IFS="$lt_save_ifs"
2307     test -z "$ac_dir" && ac_dir=.
2308     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2309     lt_cv_path_LD="$ac_dir/$ac_prog"
2310     # Check to see if the program is GNU ld. I'd rather use --version,
2311 aonoto 1.4 # but apparently some variants of GNU ld only accept -v.
2312 aono 1.3 # Break only if it was the GNU/non-GNU ld that we prefer.
2313     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2314     *GNU* | *'with BFD'*)
2315     test "$with_gnu_ld" != no && break
2316     ;;
2317     *)
2318     test "$with_gnu_ld" != yes && break
2319     ;;
2320     esac
2321     fi
2322     done
2323     IFS="$lt_save_ifs"
2324     else
2325     lt_cv_path_LD="$LD" # Let the user override the test with a path.
2326     fi])
2327     LD="$lt_cv_path_LD"
2328     if test -n "$LD"; then
2329     AC_MSG_RESULT($LD)
2330     else
2331     AC_MSG_RESULT(no)
2332     fi
2333     test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2334     AC_PROG_LD_GNU
2335     ])# AC_PROG_LD
2336    
2337    
2338     # AC_PROG_LD_GNU
2339     # --------------
2340     AC_DEFUN([AC_PROG_LD_GNU],
2341     [AC_REQUIRE([AC_PROG_EGREP])dnl
2342     AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2343 aonoto 1.4 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2344     case `$LD -v 2>&1 </dev/null` in
2345 aono 1.3 *GNU* | *'with BFD'*)
2346     lt_cv_prog_gnu_ld=yes
2347     ;;
2348     *)
2349     lt_cv_prog_gnu_ld=no
2350     ;;
2351     esac])
2352     with_gnu_ld=$lt_cv_prog_gnu_ld
2353     ])# AC_PROG_LD_GNU
2354    
2355    
2356     # AC_PROG_LD_RELOAD_FLAG
2357     # ----------------------
2358     # find reload flag for linker
2359     # -- PORTME Some linkers may need a different reload flag.
2360     AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2361     [AC_CACHE_CHECK([for $LD option to reload object files],
2362     lt_cv_ld_reload_flag,
2363     [lt_cv_ld_reload_flag='-r'])
2364     reload_flag=$lt_cv_ld_reload_flag
2365     case $reload_flag in
2366     "" | " "*) ;;
2367     *) reload_flag=" $reload_flag" ;;
2368     esac
2369     reload_cmds='$LD$reload_flag -o $output$reload_objs'
2370 aonoto 1.4 case $host_os in
2371     darwin*)
2372     if test "$GCC" = yes; then
2373     reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2374     else
2375     reload_cmds='$LD$reload_flag -o $output$reload_objs'
2376     fi
2377     ;;
2378     esac
2379 aono 1.3 ])# AC_PROG_LD_RELOAD_FLAG
2380    
2381    
2382     # AC_DEPLIBS_CHECK_METHOD
2383     # -----------------------
2384     # how to check for library dependencies
2385     # -- PORTME fill in with the dynamic library characteristics
2386     AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2387 aonoto 1.4 [AC_CACHE_CHECK([how to recognize dependent libraries],
2388 aono 1.3 lt_cv_deplibs_check_method,
2389     [lt_cv_file_magic_cmd='$MAGIC_CMD'
2390     lt_cv_file_magic_test_file=
2391     lt_cv_deplibs_check_method='unknown'
2392     # Need to set the preceding variable on all platforms that support
2393     # interlibrary dependencies.
2394     # 'none' -- dependencies not supported.
2395     # `unknown' -- same as none, but documents that we really don't know.
2396     # 'pass_all' -- all dependencies passed with no checks.
2397     # 'test_compile' -- check by making test program.
2398     # 'file_magic [[regex]]' -- check by looking for files in library path
2399     # which responds to the $file_magic_cmd with a given extended regex.
2400     # If you have `file' or equivalent on your system and you're not sure
2401     # whether `pass_all' will *always* work, you probably want this one.
2402    
2403     case $host_os in
2404 aonoto 1.4 aix[[4-9]]*)
2405 aono 1.3 lt_cv_deplibs_check_method=pass_all
2406     ;;
2407    
2408     beos*)
2409     lt_cv_deplibs_check_method=pass_all
2410     ;;
2411    
2412 aonoto 1.4 bsdi[[45]]*)
2413 aono 1.3 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2414     lt_cv_file_magic_cmd='/usr/bin/file -L'
2415     lt_cv_file_magic_test_file=/shlib/libc.so
2416     ;;
2417    
2418 aonoto 1.4 cygwin*)
2419     # func_win32_libid is a shell function defined in ltmain.sh
2420 aono 1.3 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2421 aonoto 1.4 lt_cv_file_magic_cmd='func_win32_libid'
2422     ;;
2423    
2424     mingw* | pw32*)
2425     # Base MSYS/MinGW do not provide the 'file' command needed by
2426     # func_win32_libid shell function, so use a weaker test based on 'objdump',
2427     # unless we find 'file', for example because we are cross-compiling.
2428     if ( file / ) >/dev/null 2>&1; then
2429     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2430     lt_cv_file_magic_cmd='func_win32_libid'
2431     else
2432     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2433     lt_cv_file_magic_cmd='$OBJDUMP -f'
2434     fi
2435 aono 1.3 ;;
2436    
2437     darwin* | rhapsody*)
2438     lt_cv_deplibs_check_method=pass_all
2439     ;;
2440    
2441 aonoto 1.4 freebsd* | dragonfly*)
2442 aono 1.3 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2443     case $host_cpu in
2444     i*86 )
2445     # Not sure whether the presence of OpenBSD here was a mistake.
2446     # Let's accept both of them until this is cleared up.
2447 aonoto 1.4 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2448 aono 1.3 lt_cv_file_magic_cmd=/usr/bin/file
2449     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2450     ;;
2451     esac
2452     else
2453     lt_cv_deplibs_check_method=pass_all
2454     fi
2455     ;;
2456    
2457     gnu*)
2458     lt_cv_deplibs_check_method=pass_all
2459     ;;
2460    
2461     hpux10.20* | hpux11*)
2462     lt_cv_file_magic_cmd=/usr/bin/file
2463 aonoto 1.4 case $host_cpu in
2464 aono 1.3 ia64*)
2465     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2466     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2467     ;;
2468     hppa*64*)
2469     [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]']
2470     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2471     ;;
2472     *)
2473     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2474     lt_cv_file_magic_test_file=/usr/lib/libc.sl
2475     ;;
2476     esac
2477     ;;
2478    
2479 aonoto 1.4 interix[[3-9]]*)
2480     # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2481     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2482     ;;
2483    
2484 aono 1.3 irix5* | irix6* | nonstopux*)
2485 aonoto 1.4 case $LD in
2486     *-32|*"-32 ") libmagic=32-bit;;
2487     *-n32|*"-n32 ") libmagic=N32;;
2488     *-64|*"-64 ") libmagic=64-bit;;
2489     *) libmagic=never-match;;
2490 aono 1.3 esac
2491     lt_cv_deplibs_check_method=pass_all
2492     ;;
2493    
2494     # This must be Linux ELF.
2495 aonoto 1.4 linux* | k*bsd*-gnu)
2496     lt_cv_deplibs_check_method=pass_all
2497 aono 1.3 ;;
2498    
2499     netbsd*)
2500     if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2501     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2502     else
2503     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2504     fi
2505     ;;
2506    
2507     newos6*)
2508     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2509     lt_cv_file_magic_cmd=/usr/bin/file
2510     lt_cv_file_magic_test_file=/usr/lib/libnls.so
2511     ;;
2512    
2513 aonoto 1.4 nto-qnx*)
2514 aono 1.3 lt_cv_deplibs_check_method=unknown
2515     ;;
2516    
2517     openbsd*)
2518     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2519 aonoto 1.4 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2520 aono 1.3 else
2521 aonoto 1.4 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2522 aono 1.3 fi
2523     ;;
2524    
2525     osf3* | osf4* | osf5*)
2526     lt_cv_deplibs_check_method=pass_all
2527     ;;
2528    
2529 aonoto 1.4 rdos*)
2530 aono 1.3 lt_cv_deplibs_check_method=pass_all
2531     ;;
2532 hiroo 1.2
2533 aono 1.3 solaris*)
2534     lt_cv_deplibs_check_method=pass_all
2535     ;;
2536 hiroo 1.2
2537 aonoto 1.4 sysv4 | sysv4.3*)
2538 aono 1.3 case $host_vendor in
2539     motorola)
2540     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]]'
2541     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2542     ;;
2543     ncr)
2544     lt_cv_deplibs_check_method=pass_all
2545     ;;
2546     sequent)
2547     lt_cv_file_magic_cmd='/bin/file'
2548     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2549     ;;
2550     sni)
2551     lt_cv_file_magic_cmd='/bin/file'
2552     lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2553     lt_cv_file_magic_test_file=/lib/libc.so
2554     ;;
2555     siemens)
2556     lt_cv_deplibs_check_method=pass_all
2557     ;;
2558 aonoto 1.4 pc)
2559     lt_cv_deplibs_check_method=pass_all
2560     ;;
2561 aono 1.3 esac
2562     ;;
2563 hiroo 1.2
2564 aonoto 1.4 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2565 aono 1.3 lt_cv_deplibs_check_method=pass_all
2566     ;;
2567     esac
2568 hiroo 1.2 ])
2569 aono 1.3 file_magic_cmd=$lt_cv_file_magic_cmd
2570     deplibs_check_method=$lt_cv_deplibs_check_method
2571     test -z "$deplibs_check_method" && deplibs_check_method=unknown
2572     ])# AC_DEPLIBS_CHECK_METHOD
2573    
2574    
2575     # AC_PROG_NM
2576     # ----------
2577 aonoto 1.4 # find the pathname to a BSD-compatible name lister
2578 aono 1.3 AC_DEFUN([AC_PROG_NM],
2579     [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2580     [if test -n "$NM"; then
2581     # Let the user override the test.
2582     lt_cv_path_NM="$NM"
2583 hiroo 1.2 else
2584 aonoto 1.4 lt_nm_to_check="${ac_tool_prefix}nm"
2585     if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2586     lt_nm_to_check="$lt_nm_to_check nm"
2587     fi
2588     for lt_tmp_nm in $lt_nm_to_check; do
2589     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2590     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2591     IFS="$lt_save_ifs"
2592     test -z "$ac_dir" && ac_dir=.
2593     tmp_nm="$ac_dir/$lt_tmp_nm"
2594     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2595     # Check to see if the nm accepts a BSD-compat flag.
2596     # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2597     # nm: unknown option "B" ignored
2598     # Tru64's nm complains that /dev/null is an invalid object file
2599     case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2600     */dev/null* | *'Invalid file or object type'*)
2601     lt_cv_path_NM="$tmp_nm -B"
2602 aono 1.3 break
2603     ;;
2604     *)
2605 aonoto 1.4 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2606     */dev/null*)
2607     lt_cv_path_NM="$tmp_nm -p"
2608     break
2609     ;;
2610     *)
2611     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2612     continue # so that we can try to find one that supports BSD flags
2613     ;;
2614     esac
2615 aono 1.3 ;;
2616     esac
2617 aonoto 1.4 fi
2618     done
2619     IFS="$lt_save_ifs"
2620 aono 1.3 done
2621     test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2622     fi])
2623     NM="$lt_cv_path_NM"
2624     ])# AC_PROG_NM
2625    
2626    
2627     # AC_CHECK_LIBM
2628     # -------------
2629     # check for math library
2630     AC_DEFUN([AC_CHECK_LIBM],
2631     [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2632     LIBM=
2633     case $host in
2634     *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2635     # These system don't have libm, or don't need it
2636     ;;
2637     *-ncr-sysv4.3*)
2638     AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2639     AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2640     ;;
2641     *)
2642     AC_CHECK_LIB(m, cos, LIBM="-lm")
2643     ;;
2644     esac
2645     ])# AC_CHECK_LIBM
2646    
2647    
2648     # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2649     # -----------------------------------
2650     # sets LIBLTDL to the link flags for the libltdl convenience library and
2651     # LTDLINCL to the include flags for the libltdl header and adds
2652 aonoto 1.4 # --enable-ltdl-convenience to the configure arguments. Note that
2653     # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2654     # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2655     # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2656     # (note the single quotes!). If your package is not flat and you're not
2657     # using automake, define top_builddir and top_srcdir appropriately in
2658     # the Makefiles.
2659 aono 1.3 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2660     [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2661     case $enable_ltdl_convenience in
2662     no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2663     "") enable_ltdl_convenience=yes
2664     ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2665     esac
2666     LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2667     LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2668     # For backwards non-gettext consistent compatibility...
2669     INCLTDL="$LTDLINCL"
2670     ])# AC_LIBLTDL_CONVENIENCE
2671    
2672    
2673     # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2674     # -----------------------------------
2675     # sets LIBLTDL to the link flags for the libltdl installable library and
2676     # LTDLINCL to the include flags for the libltdl header and adds
2677 aonoto 1.4 # --enable-ltdl-install to the configure arguments. Note that
2678     # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2679     # and an installed libltdl is not found, it is assumed to be `libltdl'.
2680     # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2681     # '${top_srcdir}/' (note the single quotes!). If your package is not
2682     # flat and you're not using automake, define top_builddir and top_srcdir
2683     # appropriately in the Makefiles.
2684 aono 1.3 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2685     AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2686     [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2687     AC_CHECK_LIB(ltdl, lt_dlinit,
2688     [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2689     [if test x"$enable_ltdl_install" = xno; then
2690     AC_MSG_WARN([libltdl not installed, but installation disabled])
2691     else
2692     enable_ltdl_install=yes
2693     fi
2694 hiroo 1.2 ])
2695 aono 1.3 if test x"$enable_ltdl_install" = x"yes"; then
2696     ac_configure_args="$ac_configure_args --enable-ltdl-install"
2697     LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2698     LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2699 hiroo 1.2 else
2700 aono 1.3 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2701     LIBLTDL="-lltdl"
2702     LTDLINCL=
2703 hiroo 1.2 fi
2704 aono 1.3 # For backwards non-gettext consistent compatibility...
2705     INCLTDL="$LTDLINCL"
2706     ])# AC_LIBLTDL_INSTALLABLE
2707    
2708    
2709     # AC_LIBTOOL_CXX
2710     # --------------
2711     # enable support for C++ libraries
2712     AC_DEFUN([AC_LIBTOOL_CXX],
2713     [AC_REQUIRE([_LT_AC_LANG_CXX])
2714     ])# AC_LIBTOOL_CXX
2715    
2716    
2717     # _LT_AC_LANG_CXX
2718     # ---------------
2719     AC_DEFUN([_LT_AC_LANG_CXX],
2720     [AC_REQUIRE([AC_PROG_CXX])
2721 aonoto 1.4 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2722     _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2723 aono 1.3 ])# _LT_AC_LANG_CXX
2724    
2725 aonoto 1.4 # _LT_AC_PROG_CXXCPP
2726     # ------------------
2727     AC_DEFUN([_LT_AC_PROG_CXXCPP],
2728     [
2729     AC_REQUIRE([AC_PROG_CXX])
2730     if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2731     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2732     (test "X$CXX" != "Xg++"))) ; then
2733     AC_PROG_CXXCPP
2734     fi
2735     ])# _LT_AC_PROG_CXXCPP
2736 aono 1.3
2737     # AC_LIBTOOL_F77
2738     # --------------
2739     # enable support for Fortran 77 libraries
2740     AC_DEFUN([AC_LIBTOOL_F77],
2741     [AC_REQUIRE([_LT_AC_LANG_F77])
2742     ])# AC_LIBTOOL_F77
2743    
2744    
2745     # _LT_AC_LANG_F77
2746     # ---------------
2747     AC_DEFUN([_LT_AC_LANG_F77],
2748     [AC_REQUIRE([AC_PROG_F77])
2749 aonoto 1.4 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2750 aono 1.3 ])# _LT_AC_LANG_F77
2751    
2752    
2753     # AC_LIBTOOL_GCJ
2754     # --------------
2755     # enable support for GCJ libraries
2756     AC_DEFUN([AC_LIBTOOL_GCJ],
2757     [AC_REQUIRE([_LT_AC_LANG_GCJ])
2758     ])# AC_LIBTOOL_GCJ
2759    
2760    
2761     # _LT_AC_LANG_GCJ
2762     # ---------------
2763     AC_DEFUN([_LT_AC_LANG_GCJ],
2764     [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2765     [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2766     [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2767     [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2768     [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2769     [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2770 aonoto 1.4 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2771 aono 1.3 ])# _LT_AC_LANG_GCJ
2772    
2773    
2774     # AC_LIBTOOL_RC
2775 aonoto 1.4 # -------------
2776 aono 1.3 # enable support for Windows resource files
2777     AC_DEFUN([AC_LIBTOOL_RC],
2778     [AC_REQUIRE([LT_AC_PROG_RC])
2779 aonoto 1.4 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2780 aono 1.3 ])# AC_LIBTOOL_RC
2781    
2782    
2783     # AC_LIBTOOL_LANG_C_CONFIG
2784     # ------------------------
2785     # Ensure that the configuration vars for the C compiler are
2786     # suitably defined. Those variables are subsequently used by
2787     # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2788     AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2789     AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2790     [lt_save_CC="$CC"
2791     AC_LANG_PUSH(C)
2792    
2793     # Source file extension for C test sources.
2794     ac_ext=c
2795    
2796     # Object file extension for compiled C test sources.
2797     objext=o
2798     _LT_AC_TAGVAR(objext, $1)=$objext
2799    
2800     # Code to be used in simple compile tests
2801 aonoto 1.4 lt_simple_compile_test_code="int some_variable = 0;"
2802 hiroo 1.2
2803 aono 1.3 # Code to be used in simple link tests
2804 aonoto 1.4 lt_simple_link_test_code='int main(){return(0);}'
2805 aono 1.3
2806     _LT_AC_SYS_COMPILER
2807 hiroo 1.2
2808 aonoto 1.4 # save warnings/boilerplate of simple test code
2809     _LT_COMPILER_BOILERPLATE
2810     _LT_LINKER_BOILERPLATE
2811 aono 1.3
2812     AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2813     AC_LIBTOOL_PROG_COMPILER_PIC($1)
2814     AC_LIBTOOL_PROG_CC_C_O($1)
2815     AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2816     AC_LIBTOOL_PROG_LD_SHLIBS($1)
2817 aonoto 1.4 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2818 aono 1.3 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2819     AC_LIBTOOL_SYS_LIB_STRIP
2820 aonoto 1.4 AC_LIBTOOL_DLOPEN_SELF
2821 aono 1.3
2822 aonoto 1.4 # Report which library types will actually be built
2823 aono 1.3 AC_MSG_CHECKING([if libtool supports shared libraries])
2824     AC_MSG_RESULT([$can_build_shared])
2825 hiroo 1.2
2826 aono 1.3 AC_MSG_CHECKING([whether to build shared libraries])
2827     test "$can_build_shared" = "no" && enable_shared=no
2828 hiroo 1.2
2829 aono 1.3 # On AIX, shared libraries and static libraries use the same namespace, and
2830     # are all built from PIC.
2831 aonoto 1.4 case $host_os in
2832 aono 1.3 aix3*)
2833     test "$enable_shared" = yes && enable_static=no
2834     if test -n "$RANLIB"; then
2835     archive_cmds="$archive_cmds~\$RANLIB \$lib"
2836     postinstall_cmds='$RANLIB $lib'
2837 hiroo 1.2 fi
2838 aono 1.3 ;;
2839 hiroo 1.2
2840 aonoto 1.4 aix[[4-9]]*)
2841 aono 1.3 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2842     test "$enable_shared" = yes && enable_static=no
2843     fi
2844 aonoto 1.4 ;;
2845 aono 1.3 esac
2846     AC_MSG_RESULT([$enable_shared])
2847 hiroo 1.2
2848 aono 1.3 AC_MSG_CHECKING([whether to build static libraries])
2849     # Make sure either enable_shared or enable_static is yes.
2850     test "$enable_shared" = yes || enable_static=yes
2851     AC_MSG_RESULT([$enable_static])
2852 hiroo 1.2
2853 aono 1.3 AC_LIBTOOL_CONFIG($1)
2854 hiroo 1.2
2855 aono 1.3 AC_LANG_POP
2856     CC="$lt_save_CC"
2857     ])# AC_LIBTOOL_LANG_C_CONFIG
2858 hiroo 1.2
2859    
2860 aono 1.3 # AC_LIBTOOL_LANG_CXX_CONFIG
2861     # --------------------------
2862     # Ensure that the configuration vars for the C compiler are
2863     # suitably defined. Those variables are subsequently used by
2864     # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2865     AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2866     AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2867     [AC_LANG_PUSH(C++)
2868     AC_REQUIRE([AC_PROG_CXX])
2869 aonoto 1.4 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2870 aono 1.3
2871     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2872     _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2873     _LT_AC_TAGVAR(always_export_symbols, $1)=no
2874     _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2875     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2876     _LT_AC_TAGVAR(hardcode_direct, $1)=no
2877     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2878     _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2879     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2880     _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2881 aonoto 1.4 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2882 aono 1.3 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2883     _LT_AC_TAGVAR(module_cmds, $1)=
2884     _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2885     _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2886     _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2887     _LT_AC_TAGVAR(no_undefined_flag, $1)=
2888     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2889     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2890    
2891     # Dependencies to place before and after the object being linked:
2892     _LT_AC_TAGVAR(predep_objects, $1)=
2893     _LT_AC_TAGVAR(postdep_objects, $1)=
2894     _LT_AC_TAGVAR(predeps, $1)=
2895     _LT_AC_TAGVAR(postdeps, $1)=
2896     _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2897 aonoto 1.4 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2898 aono 1.3
2899     # Source file extension for C++ test sources.
2900 aonoto 1.4 ac_ext=cpp
2901 aono 1.3
2902     # Object file extension for compiled C++ test sources.
2903     objext=o
2904     _LT_AC_TAGVAR(objext, $1)=$objext
2905 hiroo 1.2
2906 aono 1.3 # Code to be used in simple compile tests
2907 aonoto 1.4 lt_simple_compile_test_code="int some_variable = 0;"
2908 hiroo 1.2
2909 aono 1.3 # Code to be used in simple link tests
2910 aonoto 1.4 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2911 hiroo 1.2
2912 aono 1.3 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2913     _LT_AC_SYS_COMPILER
2914 hiroo 1.2
2915 aonoto 1.4 # save warnings/boilerplate of simple test code
2916     _LT_COMPILER_BOILERPLATE
2917     _LT_LINKER_BOILERPLATE
2918    
2919 aono 1.3 # Allow CC to be a program name with arguments.
2920     lt_save_CC=$CC
2921     lt_save_LD=$LD
2922     lt_save_GCC=$GCC
2923     GCC=$GXX
2924     lt_save_with_gnu_ld=$with_gnu_ld
2925     lt_save_path_LD=$lt_cv_path_LD
2926     if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2927     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2928     else
2929 aonoto 1.4 $as_unset lt_cv_prog_gnu_ld
2930 aono 1.3 fi
2931     if test -n "${lt_cv_path_LDCXX+set}"; then
2932     lt_cv_path_LD=$lt_cv_path_LDCXX
2933     else
2934 aonoto 1.4 $as_unset lt_cv_path_LD
2935 aono 1.3 fi
2936     test -z "${LDCXX+set}" || LD=$LDCXX
2937     CC=${CXX-"c++"}
2938     compiler=$CC
2939     _LT_AC_TAGVAR(compiler, $1)=$CC
2940 aonoto 1.4 _LT_CC_BASENAME([$compiler])
2941 aono 1.3
2942     # We don't want -fno-exception wen compiling C++ code, so set the
2943     # no_builtin_flag separately
2944     if test "$GXX" = yes; then
2945     _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2946     else
2947     _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2948     fi
2949 hiroo 1.2
2950 aono 1.3 if test "$GXX" = yes; then
2951     # Set up default GNU C++ configuration
2952 hiroo 1.2
2953 aono 1.3 AC_PROG_LD
2954 hiroo 1.2
2955 aono 1.3 # Check if GNU C++ uses GNU ld as the underlying linker, since the
2956     # archiving commands below assume that GNU ld is being used.
2957     if test "$with_gnu_ld" = yes; then
2958     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2959     _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'
2960 hiroo 1.2
2961 aono 1.3 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2962     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2963 hiroo 1.2
2964 aono 1.3 # If archive_cmds runs LD, not CC, wlarc should be empty
2965     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2966     # investigate it a little bit more. (MM)
2967     wlarc='${wl}'
2968    
2969     # ancient GNU ld didn't support --whole-archive et. al.
2970     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2971     grep 'no-whole-archive' > /dev/null; then
2972     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2973 hiroo 1.2 else
2974 aono 1.3 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2975 hiroo 1.2 fi
2976 aono 1.3 else
2977     with_gnu_ld=no
2978     wlarc=
2979 hiroo 1.2
2980 aono 1.3 # A generic and very simple default shared library creation
2981     # command for GNU C++ for the case where it uses the native
2982     # linker, instead of GNU ld. If possible, this setting should
2983     # overridden to take advantage of the native linker features on
2984     # the platform it is being used on.
2985 aonoto 1.4 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2986 aono 1.3 fi
2987 hiroo 1.2
2988 aono 1.3 # Commands to make compiler produce verbose output that lists
2989     # what "hidden" libraries, object files and flags are used when
2990     # linking a shared library.
2991     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2992 hiroo 1.2
2993 aono 1.3 else
2994     GXX=no
2995     with_gnu_ld=no
2996     wlarc=
2997     fi
2998 hiroo 1.2
2999 aono 1.3 # PORTME: fill in a description of your system's C++ link characteristics
3000     AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3001     _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3002     case $host_os in
3003     aix3*)
3004     # FIXME: insert proper C++ library support
3005     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3006 hiroo 1.2 ;;
3007 aonoto 1.4 aix[[4-9]]*)
3008 aono 1.3 if test "$host_cpu" = ia64; then
3009     # On IA64, the linker does run time linking by default, so we don't
3010     # have to do anything special.
3011     aix_use_runtimelinking=no
3012     exp_sym_flag='-Bexport'
3013     no_entry_flag=""
3014     else
3015     aix_use_runtimelinking=no
3016 hiroo 1.2
3017 aono 1.3 # Test if we are trying to use run time linking or normal
3018     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3019     # need to do runtime linking.
3020 aonoto 1.4 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3021 aono 1.3 for ld_flag in $LDFLAGS; do
3022     case $ld_flag in
3023     *-brtl*)
3024     aix_use_runtimelinking=yes
3025     break
3026     ;;
3027     esac
3028     done
3029 aonoto 1.4 ;;
3030 aono 1.3 esac
3031 hiroo 1.2
3032 aono 1.3 exp_sym_flag='-bexport'
3033     no_entry_flag='-bnoentry'
3034 hiroo 1.2 fi
3035    
3036     # When large executables or shared objects are built, AIX ld can
3037     # have problems creating the table of contents. If linking a library
3038     # or program results in "error TOC overflow" add -mminimal-toc to
3039     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3040     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3041    
3042 aono 1.3 _LT_AC_TAGVAR(archive_cmds, $1)=''
3043     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3044     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3045     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3046    
3047     if test "$GXX" = yes; then
3048 aonoto 1.4 case $host_os in aix4.[[012]]|aix4.[[012]].*)
3049 aono 1.3 # We only want to do this on AIX 4.2 and lower, the check
3050     # below for broken collect2 doesn't work under 4.3+
3051     collect2name=`${CC} -print-prog-name=collect2`
3052     if test -f "$collect2name" && \
3053     strings "$collect2name" | grep resolve_lib_name >/dev/null
3054     then
3055     # We have reworked collect2
3056 aonoto 1.4 :
3057 aono 1.3 else
3058     # We have old collect2
3059     _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3060     # It fails to find uninstalled libraries when the uninstalled
3061     # path is not listed in the libpath. Setting hardcode_minus_L
3062     # to unsupported forces relinking
3063     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3064     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3065     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3066     fi
3067 aonoto 1.4 ;;
3068 aono 1.3 esac
3069 hiroo 1.2 shared_flag='-shared'
3070 aonoto 1.4 if test "$aix_use_runtimelinking" = yes; then
3071     shared_flag="$shared_flag "'${wl}-G'
3072     fi
3073 hiroo 1.2 else
3074 aono 1.3 # not using gcc
3075 hiroo 1.2 if test "$host_cpu" = ia64; then
3076 aono 1.3 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3077     # chokes on -Wl,-G. The following line is correct:
3078     shared_flag='-G'
3079 hiroo 1.2 else
3080 aono 1.3 if test "$aix_use_runtimelinking" = yes; then
3081     shared_flag='${wl}-G'
3082     else
3083     shared_flag='${wl}-bM:SRE'
3084     fi
3085 hiroo 1.2 fi
3086     fi
3087    
3088 aono 1.3 # It seems that -bexpall does not export symbols beginning with
3089     # underscore (_), so it is better to generate a list of symbols to export.
3090     _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3091 hiroo 1.2 if test "$aix_use_runtimelinking" = yes; then
3092 aono 1.3 # Warning - without using the other runtime loading flags (-brtl),
3093     # -berok will link without error, but may produce a broken library.
3094     _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3095     # Determine the default libpath from the value encoded in an empty executable.
3096     _LT_AC_SYS_LIBPATH_AIX
3097     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3098    
3099 aonoto 1.4 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3100 aono 1.3 else
3101 hiroo 1.2 if test "$host_cpu" = ia64; then
3102 aono 1.3 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3103     _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3104 aonoto 1.4 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3105 aono 1.3 else
3106     # Determine the default libpath from the value encoded in an empty executable.
3107     _LT_AC_SYS_LIBPATH_AIX
3108     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3109     # Warning - without using the other run time loading flags,
3110     # -berok will link without error, but may produce a broken library.
3111     _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3112     _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3113     # Exported symbols can be pulled into shared objects from archives
3114 aonoto 1.4 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3115 aono 1.3 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3116 aonoto 1.4 # This is similar to how AIX traditionally builds its shared libraries.
3117     _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3118 hiroo 1.2 fi
3119     fi
3120     ;;
3121 aonoto 1.4
3122     beos*)
3123     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3124     _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3125     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3126     # support --undefined. This deserves some investigation. FIXME
3127     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3128     else
3129     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3130     fi
3131     ;;
3132    
3133 aono 1.3 chorus*)
3134     case $cc_basename in
3135     *)
3136     # FIXME: insert proper C++ library support
3137     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3138     ;;
3139     esac
3140 hiroo 1.2 ;;
3141    
3142     cygwin* | mingw* | pw32*)
3143 aono 1.3 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3144     # as there is no search path for DLLs.
3145     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3146     _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3147     _LT_AC_TAGVAR(always_export_symbols, $1)=no
3148     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3149    
3150     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3151 aonoto 1.4 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3152 aono 1.3 # If the export-symbols file already is a .def file (1st line
3153     # is EXPORTS), use it as is; otherwise, prepend...
3154     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3155     cp $export_symbols $output_objdir/$soname.def;
3156     else
3157     echo EXPORTS > $output_objdir/$soname.def;
3158     cat $export_symbols >> $output_objdir/$soname.def;
3159     fi~
3160 aonoto 1.4 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3161 hiroo 1.2 else
3162 aono 1.3 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3163 hiroo 1.2 fi
3164 aono 1.3 ;;
3165 aonoto 1.4 darwin* | rhapsody*)
3166     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3167     _LT_AC_TAGVAR(hardcode_direct, $1)=no
3168     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3169     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3170     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3171     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3172     _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3173     if test "$GXX" = yes ; then
3174     output_verbose_link_cmd='echo'
3175     _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3176     _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3177     _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3178     _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3179     if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3180     _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -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${_lt_dsymutil}"
3181     _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -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${_lt_dar_export_syms}${_lt_dsymutil}"
3182     fi
3183     else
3184     case $cc_basename in
3185     xlc*)
3186     output_verbose_link_cmd='echo'
3187     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3188     _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3189     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3190     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3191     _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3192     ;;
3193     *)
3194     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3195     ;;
3196     esac
3197 aono 1.3 fi
3198 aonoto 1.4 ;;
3199 hiroo 1.2
3200     dgux*)
3201 aono 1.3 case $cc_basename in
3202 aonoto 1.4 ec++*)
3203 aono 1.3 # FIXME: insert proper C++ library support
3204     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3205     ;;
3206 aonoto 1.4 ghcx*)
3207 aono 1.3 # Green Hills C++ Compiler
3208     # FIXME: insert proper C++ library support
3209     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3210     ;;
3211     *)
3212     # FIXME: insert proper C++ library support
3213     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3214     ;;
3215     esac
3216 hiroo 1.2 ;;
3217 aonoto 1.4 freebsd[[12]]*)
3218 aono 1.3 # C++ shared libraries reported to be fairly broken before switch to ELF
3219     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3220 hiroo 1.2 ;;
3221 aono 1.3 freebsd-elf*)
3222     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3223 hiroo 1.2 ;;
3224 aonoto 1.4 freebsd* | dragonfly*)
3225 aono 1.3 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3226     # conventions
3227     _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3228     ;;
3229     gnu*)
3230     ;;
3231     hpux9*)
3232     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3233     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3234     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3235     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3236     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3237     # but as the default
3238     # location of the library.
3239    
3240     case $cc_basename in
3241 aonoto 1.4 CC*)
3242 aono 1.3 # FIXME: insert proper C++ library support
3243     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3244     ;;
3245 aonoto 1.4 aCC*)
3246 aono 1.3 _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'
3247     # Commands to make compiler produce verbose output that lists
3248     # what "hidden" libraries, object files and flags are used when
3249     # linking a shared library.
3250     #
3251     # There doesn't appear to be a way to prevent this compiler from
3252     # explicitly linking system object files so we need to strip them
3253     # from the output so that they don't get included in the library
3254     # dependencies.
3255 aonoto 1.4 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'
3256 aono 1.3 ;;
3257     *)
3258     if test "$GXX" = yes; then
3259     _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'
3260 hiroo 1.2 else
3261 aono 1.3 # FIXME: insert proper C++ library support
3262     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3263 hiroo 1.2 fi
3264     ;;
3265     esac
3266 aono 1.3 ;;
3267     hpux10*|hpux11*)
3268     if test $with_gnu_ld = no; then
3269 aonoto 1.4 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3270     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3271    
3272     case $host_cpu in
3273     hppa*64*|ia64*) ;;
3274 aono 1.3 *)
3275     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3276     ;;
3277     esac
3278 hiroo 1.2 fi
3279 aonoto 1.4 case $host_cpu in
3280     hppa*64*|ia64*)
3281 aono 1.3 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3282     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3283     ;;
3284     *)
3285     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3286     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3287     # but as the default
3288     # location of the library.
3289     ;;
3290     esac
3291 hiroo 1.2
3292 aono 1.3 case $cc_basename in
3293 aonoto 1.4 CC*)
3294 aono 1.3 # FIXME: insert proper C++ library support
3295     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3296     ;;
3297 aonoto 1.4 aCC*)
3298     case $host_cpu in
3299     hppa*64*)
3300     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3301     ;;
3302     ia64*)
3303     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3304 aono 1.3 ;;
3305     *)
3306     _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'
3307     ;;
3308     esac
3309     # Commands to make compiler produce verbose output that lists
3310     # what "hidden" libraries, object files and flags are used when
3311     # linking a shared library.
3312     #
3313     # There doesn't appear to be a way to prevent this compiler from
3314     # explicitly linking system object files so we need to strip them
3315     # from the output so that they don't get included in the library
3316     # dependencies.
3317     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'
3318     ;;
3319     *)
3320     if test "$GXX" = yes; then
3321     if test $with_gnu_ld = no; then
3322 aonoto 1.4 case $host_cpu in
3323     hppa*64*)
3324     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3325     ;;
3326     ia64*)
3327     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3328 aono 1.3 ;;
3329     *)
3330     _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'
3331     ;;
3332     esac
3333     fi
3334     else
3335     # FIXME: insert proper C++ library support
3336     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3337     fi
3338     ;;
3339     esac
3340     ;;
3341 aonoto 1.4 interix[[3-9]]*)
3342     _LT_AC_TAGVAR(hardcode_direct, $1)=no
3343     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3344     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3345     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3346     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3347     # Instead, shared libraries are loaded at an image base (0x10000000 by
3348     # default) and relocated if they conflict, which is a slow very memory
3349     # consuming and fragmenting process. To avoid this, we pick a random,
3350     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3351     # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3352     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3353     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3354     ;;
3355 aono 1.3 irix5* | irix6*)
3356     case $cc_basename in
3357 aonoto 1.4 CC*)
3358 aono 1.3 # SGI C++
3359 aonoto 1.4 _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 ${output_objdir}/so_locations -o $lib'
3360 aono 1.3
3361     # Archives containing C++ object files must be created using
3362     # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3363     # necessary to make sure instantiated templates are included
3364     # in the archive.
3365     _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3366     ;;
3367     *)
3368     if test "$GXX" = yes; then
3369     if test "$with_gnu_ld" = no; then
3370 aonoto 1.4 _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}${output_objdir}/so_locations -o $lib'
3371 aono 1.3 else
3372     _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'
3373     fi
3374     fi
3375     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3376     ;;
3377     esac
3378     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3379     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3380 hiroo 1.2 ;;
3381 aonoto 1.4 linux* | k*bsd*-gnu)
3382 aono 1.3 case $cc_basename in
3383 aonoto 1.4 KCC*)
3384 aono 1.3 # Kuck and Associates, Inc. (KAI) C++ Compiler
3385    
3386     # KCC will only create a shared library if the output file
3387     # ends with ".so" (or ".sl" for HP-UX), so rename the library
3388     # to its proper name (with version) after linking.
3389     _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'
3390     _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'
3391     # Commands to make compiler produce verbose output that lists
3392     # what "hidden" libraries, object files and flags are used when
3393     # linking a shared library.
3394     #
3395     # There doesn't appear to be a way to prevent this compiler from
3396     # explicitly linking system object files so we need to strip them
3397     # from the output so that they don't get included in the library
3398     # dependencies.
3399     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'
3400    
3401     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3402     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3403    
3404     # Archives containing C++ object files must be created using
3405     # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3406     _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3407     ;;
3408 aonoto 1.4 icpc*)
3409 aono 1.3 # Intel C++
3410     with_gnu_ld=yes
3411 aonoto 1.4 # version 8.0 and above of icpc choke on multiply defined symbols
3412     # if we add $predep_objects and $postdep_objects, however 7.1 and
3413     # earlier do not add the objects themselves.
3414     case `$CC -V 2>&1` in
3415     *"Version 7."*)
3416     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3417     _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'
3418     ;;
3419     *) # Version 8.0 or newer
3420     tmp_idyn=
3421     case $host_cpu in
3422     ia64*) tmp_idyn=' -i_dynamic';;
3423     esac
3424     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3425     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3426     ;;
3427     esac
3428 aono 1.3 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3429     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3430     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3431     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3432     ;;
3433 aonoto 1.4 pgCC* | pgcpp*)
3434     # Portland Group C++ compiler
3435     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3436     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3437    
3438     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3439     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3440     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3441     ;;
3442     cxx*)
3443 aono 1.3 # Compaq C++
3444     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3445     _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'
3446    
3447     runpath_var=LD_RUN_PATH
3448     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3449     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3450    
3451     # Commands to make compiler produce verbose output that lists
3452     # what "hidden" libraries, object files and flags are used when
3453     # linking a shared library.
3454     #
3455     # There doesn't appear to be a way to prevent this compiler from
3456     # explicitly linking system object files so we need to strip them
3457     # from the output so that they don't get included in the library
3458     # dependencies.
3459     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'
3460     ;;
3461 aonoto 1.4 *)
3462     case `$CC -V 2>&1 | sed 5q` in
3463     *Sun\ C*)
3464     # Sun C++ 5.9
3465     _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3466     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3467     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3468     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3469     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3470    
3471     # Not sure whether something based on
3472     # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3473     # would be better.
3474     output_verbose_link_cmd='echo'
3475    
3476     # Archives containing C++ object files must be created using
3477     # "CC -xar", where "CC" is the Sun C++ compiler. This is
3478     # necessary to make sure instantiated templates are included
3479     # in the archive.
3480     _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3481     ;;
3482     esac
3483     ;;
3484 aono 1.3 esac
3485 hiroo 1.2 ;;
3486 aono 1.3 lynxos*)
3487     # FIXME: insert proper C++ library support
3488     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3489     ;;
3490     m88k*)
3491     # FIXME: insert proper C++ library support
3492     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3493     ;;
3494     mvs*)
3495     case $cc_basename in
3496 aonoto 1.4 cxx*)
3497 aono 1.3 # FIXME: insert proper C++ library support
3498     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3499     ;;
3500     *)
3501     # FIXME: insert proper C++ library support
3502     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3503     ;;
3504     esac
3505 hiroo 1.2 ;;
3506 aono 1.3 netbsd*)
3507     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3508     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3509     wlarc=
3510     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3511     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3512     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3513     fi
3514     # Workaround some broken pre-1.5 toolchains
3515     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3516 hiroo 1.2 ;;
3517 aonoto 1.4 openbsd2*)
3518     # C++ shared libraries are fairly broken
3519     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3520     ;;
3521     openbsd*)
3522     if test -f /usr/libexec/ld.so; then
3523     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3524     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3525     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3526     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3527     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3528     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3529     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3530     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3531     fi
3532     output_verbose_link_cmd='echo'
3533     else
3534     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3535     fi
3536     ;;
3537 aono 1.3 osf3*)
3538     case $cc_basename in
3539 aonoto 1.4 KCC*)
3540 aono 1.3 # Kuck and Associates, Inc. (KAI) C++ Compiler
3541    
3542     # KCC will only create a shared library if the output file
3543     # ends with ".so" (or ".sl" for HP-UX), so rename the library
3544     # to its proper name (with version) after linking.
3545     _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'
3546    
3547     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3548     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3549    
3550     # Archives containing C++ object files must be created using
3551     # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3552     _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3553 hiroo 1.2
3554 aono 1.3 ;;
3555 aonoto 1.4 RCC*)
3556 aono 1.3 # Rational C++ 2.4.1
3557     # FIXME: insert proper C++ library support
3558     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3559     ;;
3560 aonoto 1.4 cxx*)
3561 aono 1.3 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3562 aonoto 1.4 _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 ${output_objdir}/so_locations -o $lib'
3563 aono 1.3
3564     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3565     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3566    
3567     # Commands to make compiler produce verbose output that lists
3568     # what "hidden" libraries, object files and flags are used when
3569     # linking a shared library.
3570     #
3571     # There doesn't appear to be a way to prevent this compiler from
3572     # explicitly linking system object files so we need to strip them
3573     # from the output so that they don't get included in the library
3574     # dependencies.
3575     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'
3576     ;;
3577     *)
3578     if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3579     _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3580 aonoto 1.4 _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}${output_objdir}/so_locations -o $lib'
3581 aono 1.3
3582     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3583     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3584    
3585     # Commands to make compiler produce verbose output that lists
3586     # what "hidden" libraries, object files and flags are used when
3587     # linking a shared library.
3588     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3589 hiroo 1.2
3590 aono 1.3 else
3591     # FIXME: insert proper C++ library support
3592     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3593     fi
3594     ;;
3595     esac
3596     ;;
3597     osf4* | osf5*)
3598     case $cc_basename in
3599 aonoto 1.4 KCC*)
3600 aono 1.3 # Kuck and Associates, Inc. (KAI) C++ Compiler
3601    
3602     # KCC will only create a shared library if the output file
3603     # ends with ".so" (or ".sl" for HP-UX), so rename the library
3604     # to its proper name (with version) after linking.
3605     _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'
3606    
3607     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3608     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3609    
3610     # Archives containing C++ object files must be created using
3611     # the KAI C++ compiler.
3612     _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3613     ;;
3614 aonoto 1.4 RCC*)
3615 aono 1.3 # Rational C++ 2.4.1
3616     # FIXME: insert proper C++ library support
3617     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3618     ;;
3619 aonoto 1.4 cxx*)
3620 aono 1.3 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3621 aonoto 1.4 _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 ${output_objdir}/so_locations -o $lib'
3622 aono 1.3 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3623     echo "-hidden">> $lib.exp~
3624 aonoto 1.4 $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 ${output_objdir}/so_locations -o $lib~
3625 aono 1.3 $rm $lib.exp'
3626    
3627     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3628     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3629    
3630     # Commands to make compiler produce verbose output that lists
3631     # what "hidden" libraries, object files and flags are used when
3632     # linking a shared library.
3633     #
3634     # There doesn't appear to be a way to prevent this compiler from
3635     # explicitly linking system object files so we need to strip them
3636     # from the output so that they don't get included in the library
3637     # dependencies.
3638     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'
3639     ;;
3640     *)
3641     if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3642     _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3643 aonoto 1.4 _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}${output_objdir}/so_locations -o $lib'
3644 aono 1.3
3645     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3646     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3647    
3648     # Commands to make compiler produce verbose output that lists
3649     # what "hidden" libraries, object files and flags are used when
3650     # linking a shared library.
3651     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3652 hiroo 1.2
3653 aono 1.3 else
3654     # FIXME: insert proper C++ library support
3655     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3656     fi
3657     ;;
3658     esac
3659     ;;
3660     psos*)
3661     # FIXME: insert proper C++ library support
3662     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3663     ;;