1
diff -Nur plugins-main/aclocal.m4 plugins-main.new/aclocal.m4
2
--- plugins-main/aclocal.m4 1970-01-01 01:00:00.000000000 +0100
3
+++ plugins-main.new/aclocal.m4 2007-06-08 18:39:01.000000000 +0200
5
+# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
7
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
8
+# 2005 Free Software Foundation, Inc.
9
+# This file is free software; the Free Software Foundation
10
+# gives unlimited permission to copy and/or distribute it,
11
+# with or without modifications, as long as this notice is preserved.
13
+# This program is distributed in the hope that it will be useful,
14
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
15
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
16
+# PARTICULAR PURPOSE.
18
+dnl AM_GCONF_SOURCE_2
19
+dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
20
+dnl (i.e. pass to gconftool-2
21
+dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
22
+dnl you should install foo.schemas files
25
+AC_DEFUN([AM_GCONF_SOURCE_2],
27
+ if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
28
+ GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
30
+ GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
33
+ AC_ARG_WITH(gconf-source,
34
+ [ --with-gconf-source=sourceaddress Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
36
+ AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
37
+ AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
39
+ if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
40
+ GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
43
+ AC_ARG_WITH(gconf-schema-file-dir,
44
+ [ --with-gconf-schema-file-dir=dir Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",)
46
+ AC_SUBST(GCONF_SCHEMA_FILE_DIR)
47
+ AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
49
+ AC_ARG_ENABLE(schemas-install,
50
+ [ --disable-schemas-install Disable the schemas installation],
51
+ [case ${enableval} in
53
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
55
+ AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
58
+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
60
+# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
63
+# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
64
+# -----------------------------------------------------------
65
+# If this macro is not defined by Autoconf, define it here.
66
+m4_ifdef([AC_PROVIDE_IFELSE],
68
+ [m4_define([AC_PROVIDE_IFELSE],
69
+ [m4_ifdef([AC_PROVIDE_$1],
75
+AC_DEFUN([AC_PROG_LIBTOOL],
76
+[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
77
+dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
78
+dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
79
+ AC_PROVIDE_IFELSE([AC_PROG_CXX],
81
+ [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
83
+dnl And a similar setup for Fortran 77 support
84
+ AC_PROVIDE_IFELSE([AC_PROG_F77],
86
+ [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
89
+dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
90
+dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
91
+dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
92
+ AC_PROVIDE_IFELSE([AC_PROG_GCJ],
94
+ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
96
+ [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
98
+ [ifdef([AC_PROG_GCJ],
99
+ [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
100
+ ifdef([A][M_PROG_GCJ],
101
+ [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
102
+ ifdef([LT_AC_PROG_GCJ],
103
+ [define([LT_AC_PROG_GCJ],
104
+ defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
105
+])])# AC_PROG_LIBTOOL
110
+AC_DEFUN([_AC_PROG_LIBTOOL],
111
+[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
112
+AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
113
+AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
114
+AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
116
+# This can be used to rebuild libtool when needed
117
+LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
119
+# Always use our own libtool.
120
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
121
+AC_SUBST(LIBTOOL)dnl
123
+# Prevent multiple expansion
124
+define([AC_PROG_LIBTOOL], [])
125
+])# _AC_PROG_LIBTOOL
130
+AC_DEFUN([AC_LIBTOOL_SETUP],
132
+AC_REQUIRE([AC_ENABLE_SHARED])dnl
133
+AC_REQUIRE([AC_ENABLE_STATIC])dnl
134
+AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
135
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
136
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
137
+AC_REQUIRE([AC_PROG_CC])dnl
138
+AC_REQUIRE([AC_PROG_LD])dnl
139
+AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
140
+AC_REQUIRE([AC_PROG_NM])dnl
142
+AC_REQUIRE([AC_PROG_LN_S])dnl
143
+AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
144
+# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
145
+AC_REQUIRE([AC_OBJEXT])dnl
146
+AC_REQUIRE([AC_EXEEXT])dnl
149
+AC_LIBTOOL_SYS_MAX_CMD_LEN
150
+AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
153
+AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
154
+_LT_AC_PROG_ECHO_BACKSLASH
158
+ # AIX sometimes has problems with the GCC collect2 program. For some
159
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
160
+ # vanish in a puff of smoke.
161
+ if test "X${COLLECT_NAMES+set}" != Xset; then
163
+ export COLLECT_NAMES
168
+# Sed substitution that helps us do robust quoting. It backslashifies
169
+# metacharacters that are still active within double-quoted strings.
170
+Xsed='sed -e 1s/^X//'
171
+[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
173
+# Same as above, but do not quote variable references.
174
+[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
176
+# Sed substitution to delay expansion of an escaped shell variable in a
177
+# double_quote_subst'ed string.
178
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
180
+# Sed substitution to avoid accidental globbing in evaled expressions
181
+no_glob_subst='s/\*/\\\*/g'
187
+default_ofile=libtool
188
+can_build_shared=yes
190
+# All known linkers require a `.a' archive for static linking (except MSVC,
191
+# which needs '.lib').
193
+ltmain="$ac_aux_dir/ltmain.sh"
194
+ofile="$default_ofile"
195
+with_gnu_ld="$lt_cv_prog_gnu_ld"
197
+AC_CHECK_TOOL(AR, ar, false)
198
+AC_CHECK_TOOL(RANLIB, ranlib, :)
199
+AC_CHECK_TOOL(STRIP, strip, :)
202
+old_CFLAGS="$CFLAGS"
204
+# Set sane defaults for various variables
205
+test -z "$AR" && AR=ar
206
+test -z "$AR_FLAGS" && AR_FLAGS=cru
207
+test -z "$AS" && AS=as
208
+test -z "$CC" && CC=cc
209
+test -z "$LTCC" && LTCC=$CC
210
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
211
+test -z "$DLLTOOL" && DLLTOOL=dlltool
212
+test -z "$LD" && LD=ld
213
+test -z "$LN_S" && LN_S="ln -s"
214
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
215
+test -z "$NM" && NM=nm
216
+test -z "$SED" && SED=sed
217
+test -z "$OBJDUMP" && OBJDUMP=objdump
218
+test -z "$RANLIB" && RANLIB=:
219
+test -z "$STRIP" && STRIP=:
220
+test -z "$ac_objext" && ac_objext=o
222
+# Determine commands to create old-style static archives.
223
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
224
+old_postinstall_cmds='chmod 644 $oldlib'
225
+old_postuninstall_cmds=
227
+if test -n "$RANLIB"; then
230
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
233
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
236
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
239
+_LT_CC_BASENAME([$compiler])
241
+# Only perform the check for file, if the check method requires it
242
+case $deplibs_check_method in
244
+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
250
+AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
251
+AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
252
+enable_win32_dll=yes, enable_win32_dll=no)
254
+AC_ARG_ENABLE([libtool-lock],
255
+ [AC_HELP_STRING([--disable-libtool-lock],
256
+ [avoid locking (might break parallel builds)])])
257
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
260
+ [AC_HELP_STRING([--with-pic],
261
+ [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
262
+ [pic_mode="$withval"],
263
+ [pic_mode=default])
264
+test -z "$pic_mode" && pic_mode=default
266
+# Use C for the default configuration in the libtool script
268
+AC_LIBTOOL_LANG_C_CONFIG
270
+])# AC_LIBTOOL_SETUP
273
+# _LT_AC_SYS_COMPILER
274
+# -------------------
275
+AC_DEFUN([_LT_AC_SYS_COMPILER],
276
+[AC_REQUIRE([AC_PROG_CC])dnl
278
+# If no C compiler was specified, use CC.
281
+# If no C compiler flags were specified, use CFLAGS.
282
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
284
+# Allow CC to be a program name with arguments.
286
+])# _LT_AC_SYS_COMPILER
289
+# _LT_CC_BASENAME(CC)
290
+# -------------------
291
+# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
292
+AC_DEFUN([_LT_CC_BASENAME],
293
+[for cc_temp in $1""; do
295
+ compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
296
+ distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
301
+cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
305
+# _LT_COMPILER_BOILERPLATE
306
+# ------------------------
307
+# Check for compiler boilerplate output or warnings with
308
+# the simple compiler test code.
309
+AC_DEFUN([_LT_COMPILER_BOILERPLATE],
310
+[ac_outfile=conftest.$ac_objext
311
+printf "$lt_simple_compile_test_code" >conftest.$ac_ext
312
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
313
+_lt_compiler_boilerplate=`cat conftest.err`
315
+])# _LT_COMPILER_BOILERPLATE
318
+# _LT_LINKER_BOILERPLATE
319
+# ----------------------
320
+# Check for linker boilerplate output or warnings with
321
+# the simple link test code.
322
+AC_DEFUN([_LT_LINKER_BOILERPLATE],
323
+[ac_outfile=conftest.$ac_objext
324
+printf "$lt_simple_link_test_code" >conftest.$ac_ext
325
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
326
+_lt_linker_boilerplate=`cat conftest.err`
328
+])# _LT_LINKER_BOILERPLATE
331
+# _LT_AC_SYS_LIBPATH_AIX
332
+# ----------------------
333
+# Links a minimal program and checks the executable
334
+# for the system default hardcoded library path. In most cases,
335
+# this is /usr/lib:/lib, but when the MPI compilers are used
336
+# the location of the communication and MPI libs are included too.
337
+# If we don't find anything, use the default library path according
338
+# to the aix ld manual.
339
+AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
340
+[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
341
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
343
+# Check for a 64-bit object if we didn't find anything.
344
+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
346
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
347
+])# _LT_AC_SYS_LIBPATH_AIX
350
+# _LT_AC_SHELL_INIT(ARG)
351
+# ----------------------
352
+AC_DEFUN([_LT_AC_SHELL_INIT],
353
+[ifdef([AC_DIVERSION_NOTICE],
354
+ [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
355
+ [AC_DIVERT_PUSH(NOTICE)])
358
+])# _LT_AC_SHELL_INIT
361
+# _LT_AC_PROG_ECHO_BACKSLASH
362
+# --------------------------
363
+# Add some code to the start of the generated configure script which
364
+# will find an echo command which doesn't interpret backslashes.
365
+AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
366
+[_LT_AC_SHELL_INIT([
367
+# Check that we are running under the correct shell.
368
+SHELL=${CONFIG_SHELL-/bin/sh}
372
+ # Remove one level of quotation (which was required for Make).
373
+ ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
378
+if test "X[$]1" = X--no-reexec; then
379
+ # Discard the --no-reexec flag, and continue.
381
+elif test "X[$]1" = X--fallback-echo; then
382
+ # Avoid inline document here, it may be left over
384
+elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
385
+ # Yippee, $echo works!
388
+ # Restart under the correct shell.
389
+ exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
392
+if test "X[$]1" = X--fallback-echo; then
393
+ # used as fallback echo
401
+# The HP-UX ksh and POSIX shell print the target directory to stdout
403
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
405
+if test -z "$ECHO"; then
406
+if test "X${echo_test_string+set}" != Xset; then
407
+# find a string as large as possible, as long as the shell can cope with it
408
+ for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
409
+ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
410
+ if (echo_test_string=`eval $cmd`) 2>/dev/null &&
411
+ echo_test_string=`eval $cmd` &&
412
+ (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
419
+if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
420
+ echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
421
+ test "X$echo_testing_string" = "X$echo_test_string"; then
424
+ # The Solaris, AIX, and Digital Unix default echo programs unquote
425
+ # backslashes. This makes it impossible to quote backslashes using
426
+ # echo "$something" | sed 's/\\/\\\\/g'
428
+ # So, first we look for a working echo in the user's PATH.
430
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
431
+ for dir in $PATH /usr/ucb; do
433
+ if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
434
+ test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
435
+ echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
436
+ test "X$echo_testing_string" = "X$echo_test_string"; then
443
+ if test "X$echo" = Xecho; then
444
+ # We didn't find a better echo, so look for alternatives.
445
+ if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
446
+ echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
447
+ test "X$echo_testing_string" = "X$echo_test_string"; then
448
+ # This shell has a builtin print -r that does the trick.
450
+ elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
451
+ test "X$CONFIG_SHELL" != X/bin/ksh; then
452
+ # If we have ksh, try running configure again with it.
453
+ ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
454
+ export ORIGINAL_CONFIG_SHELL
455
+ CONFIG_SHELL=/bin/ksh
456
+ export CONFIG_SHELL
457
+ exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
459
+ # Try using printf.
461
+ if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
462
+ echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
463
+ test "X$echo_testing_string" = "X$echo_test_string"; then
464
+ # Cool, printf works
466
+ elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
467
+ test "X$echo_testing_string" = 'X\t' &&
468
+ echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
469
+ test "X$echo_testing_string" = "X$echo_test_string"; then
470
+ CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
471
+ export CONFIG_SHELL
472
+ SHELL="$CONFIG_SHELL"
474
+ echo="$CONFIG_SHELL [$]0 --fallback-echo"
475
+ elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
476
+ test "X$echo_testing_string" = 'X\t' &&
477
+ echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
478
+ test "X$echo_testing_string" = "X$echo_test_string"; then
479
+ echo="$CONFIG_SHELL [$]0 --fallback-echo"
481
+ # maybe with a smaller string...
484
+ for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
485
+ if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
492
+ if test "$prev" != 'sed 50q "[$]0"'; then
493
+ echo_test_string=`eval $prev`
494
+ export echo_test_string
495
+ exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
497
+ # Oops. We lost completely, so just stick with echo.
506
+# Copy echo and quote the copy suitably for passing to libtool from
507
+# the Makefile, instead of quoting the original, which is used later.
509
+if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
510
+ ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
514
+])])# _LT_AC_PROG_ECHO_BACKSLASH
519
+AC_DEFUN([_LT_AC_LOCK],
520
+[AC_ARG_ENABLE([libtool-lock],
521
+ [AC_HELP_STRING([--disable-libtool-lock],
522
+ [avoid locking (might break parallel builds)])])
523
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
525
+# Some flags need to be propagated to the compiler or linker for good
529
+ # Find out which ABI we are using.
530
+ echo 'int i;' > conftest.$ac_ext
531
+ if AC_TRY_EVAL(ac_compile); then
532
+ case `/usr/bin/file conftest.$ac_objext` in
534
+ HPUX_IA64_MODE="32"
537
+ HPUX_IA64_MODE="64"
544
+ # Find out which ABI we are using.
545
+ echo '[#]line __oline__ "configure"' > conftest.$ac_ext
546
+ if AC_TRY_EVAL(ac_compile); then
547
+ if test "$lt_cv_prog_gnu_ld" = yes; then
548
+ case `/usr/bin/file conftest.$ac_objext` in
550
+ LD="${LD-ld} -melf32bsmip"
553
+ LD="${LD-ld} -melf32bmipn32"
556
+ LD="${LD-ld} -melf64bmip"
560
+ case `/usr/bin/file conftest.$ac_objext` in
576
+x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
577
+ # Find out which ABI we are using.
578
+ echo 'int i;' > conftest.$ac_ext
579
+ if AC_TRY_EVAL(ac_compile); then
580
+ case `/usr/bin/file conftest.o` in
584
+ LD="${LD-ld} -m elf_i386"
586
+ ppc64-*linux*|powerpc64-*linux*)
587
+ LD="${LD-ld} -m elf32ppclinux"
590
+ LD="${LD-ld} -m elf_s390"
593
+ LD="${LD-ld} -m elf32_sparc"
600
+ LD="${LD-ld} -m elf_x86_64"
602
+ ppc*-*linux*|powerpc*-*linux*)
603
+ LD="${LD-ld} -m elf64ppc"
606
+ LD="${LD-ld} -m elf64_s390"
609
+ LD="${LD-ld} -m elf64_sparc"
619
+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
620
+ SAVE_CFLAGS="$CFLAGS"
621
+ CFLAGS="$CFLAGS -belf"
622
+ AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
624
+ AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
626
+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
627
+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
628
+ CFLAGS="$SAVE_CFLAGS"
632
+ # Find out which ABI we are using.
633
+ echo 'int i;' > conftest.$ac_ext
634
+ if AC_TRY_EVAL(ac_compile); then
635
+ case `/usr/bin/file conftest.o` in
637
+ case $lt_cv_prog_gnu_ld in
638
+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
639
+ *) LD="${LD-ld} -64" ;;
647
+AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
648
+[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
649
+ AC_CHECK_TOOL(DLLTOOL, dlltool, false)
650
+ AC_CHECK_TOOL(AS, as, false)
651
+ AC_CHECK_TOOL(OBJDUMP, objdump, false)
656
+need_locks="$enable_libtool_lock"
661
+# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
662
+# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
663
+# ----------------------------------------------------------------
664
+# Check whether the given compiler option works
665
+AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
666
+[AC_REQUIRE([LT_AC_PROG_SED])
667
+AC_CACHE_CHECK([$1], [$2],
669
+ ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
670
+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
671
+ lt_compiler_flag="$3"
672
+ # Insert the option either (1) after the last *FLAGS variable, or
673
+ # (2) before a word containing "conftest.", or (3) at the end.
674
+ # Note that $ac_compile itself does not contain backslashes and begins
675
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
676
+ # The option is referenced via a variable to avoid confusing sed.
677
+ lt_compile=`echo "$ac_compile" | $SED \
678
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
679
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
680
+ -e 's:$: $lt_compiler_flag:'`
681
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
682
+ (eval "$lt_compile" 2>conftest.err)
684
+ cat conftest.err >&AS_MESSAGE_LOG_FD
685
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
686
+ if (exit $ac_status) && test -s "$ac_outfile"; then
687
+ # The compiler can only warn and ignore the option if not recognized
688
+ # So say no if there are warnings other than the usual output.
689
+ $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
690
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
691
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
698
+if test x"[$]$2" = xyes; then
699
+ ifelse([$5], , :, [$5])
701
+ ifelse([$6], , :, [$6])
703
+])# AC_LIBTOOL_COMPILER_OPTION
706
+# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
707
+# [ACTION-SUCCESS], [ACTION-FAILURE])
708
+# ------------------------------------------------------------
709
+# Check whether the given compiler option works
710
+AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
711
+[AC_CACHE_CHECK([$1], [$2],
713
+ save_LDFLAGS="$LDFLAGS"
714
+ LDFLAGS="$LDFLAGS $3"
715
+ printf "$lt_simple_link_test_code" > conftest.$ac_ext
716
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
717
+ # The linker can only warn and ignore the option if not recognized
718
+ # So say no if there are warnings
719
+ if test -s conftest.err; then
720
+ # Append any errors to the config.log.
721
+ cat conftest.err 1>&AS_MESSAGE_LOG_FD
722
+ $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
723
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
724
+ if diff conftest.exp conftest.er2 >/dev/null; then
732
+ LDFLAGS="$save_LDFLAGS"
735
+if test x"[$]$2" = xyes; then
736
+ ifelse([$4], , :, [$4])
738
+ ifelse([$5], , :, [$5])
740
+])# AC_LIBTOOL_LINKER_OPTION
743
+# AC_LIBTOOL_SYS_MAX_CMD_LEN
744
+# --------------------------
745
+AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
746
+[# find the maximum length of command line arguments
747
+AC_MSG_CHECKING([the maximum length of command line arguments])
748
+AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
754
+ # On DJGPP, this test can blow up pretty badly due to problems in libc
755
+ # (any single argument exceeding 2000 bytes causes a buffer overrun
756
+ # during glob expansion). Even if it were fixed, the result of this
757
+ # check would be larger than it should be.
758
+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
762
+ # Under GNU Hurd, this test is not required because there is
763
+ # no limit to the length of command line arguments.
764
+ # Libtool will interpret -1 as no limit whatsoever
765
+ lt_cv_sys_max_cmd_len=-1;
769
+ # On Win9x/ME, this test blows up -- it succeeds, but takes
770
+ # about 5 minutes as the teststring grows exponentially.
771
+ # Worse, since 9x/ME are not pre-emptively multitasking,
772
+ # you end up with a "frozen" computer, even though with patience
773
+ # the test eventually succeeds (with a max line length of 256k).
774
+ # Instead, let's just punt: use the minimum linelength reported by
775
+ # all of the supported platforms: 8192 (on NT/2K/XP).
776
+ lt_cv_sys_max_cmd_len=8192;
780
+ # On AmigaOS with pdksh, this test takes hours, literally.
781
+ # So we just punt and use a minimum line length of 8192.
782
+ lt_cv_sys_max_cmd_len=8192;
785
+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
786
+ # This has been around since 386BSD, at least. Likely further.
787
+ if test -x /sbin/sysctl; then
788
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
789
+ elif test -x /usr/sbin/sysctl; then
790
+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
792
+ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
794
+ # And add a safety zone
795
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
796
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
800
+ # We know the value 262144 and hardcode it with a safety zone (like BSD)
801
+ lt_cv_sys_max_cmd_len=196608
805
+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
806
+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
807
+ # nice to cause kernel panics so lets avoid the loop below.
808
+ # First set a reasonable default.
809
+ lt_cv_sys_max_cmd_len=16384
811
+ if test -x /sbin/sysconfig; then
812
+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
813
+ *1*) lt_cv_sys_max_cmd_len=-1 ;;
818
+ lt_cv_sys_max_cmd_len=102400
820
+ sysv5* | sco5v6* | sysv4.2uw2*)
821
+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
822
+ if test -n "$kargmax"; then
823
+ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
825
+ lt_cv_sys_max_cmd_len=32768
829
+ # If test is not a shell built-in, we'll probably end up computing a
830
+ # maximum length that is only half of the actual maximum length, but
832
+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
833
+ while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
834
+ = "XX$teststring") >/dev/null 2>&1 &&
835
+ new_result=`expr "X$teststring" : ".*" 2>&1` &&
836
+ lt_cv_sys_max_cmd_len=$new_result &&
837
+ test $i != 17 # 1/2 MB should be enough
840
+ teststring=$teststring$teststring
843
+ # Add a significant safety factor because C++ compilers can tack on massive
844
+ # amounts of additional arguments before passing them to the linker.
845
+ # It appears as though 1/2 is a usable value.
846
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
850
+if test -n $lt_cv_sys_max_cmd_len ; then
851
+ AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
853
+ AC_MSG_RESULT(none)
855
+])# AC_LIBTOOL_SYS_MAX_CMD_LEN
858
+# _LT_AC_CHECK_DLFCN
859
+# ------------------
860
+AC_DEFUN([_LT_AC_CHECK_DLFCN],
861
+[AC_CHECK_HEADERS(dlfcn.h)dnl
862
+])# _LT_AC_CHECK_DLFCN
865
+# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
866
+# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
867
+# ---------------------------------------------------------------------
868
+AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
869
+[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
870
+if test "$cross_compiling" = yes; then :
873
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
874
+ lt_status=$lt_dlunknown
875
+ cat > conftest.$ac_ext <<EOF
876
+[#line __oline__ "configure"
877
+#include "confdefs.h"
886
+# define LT_DLGLOBAL RTLD_GLOBAL
889
+# define LT_DLGLOBAL DL_GLOBAL
891
+# define LT_DLGLOBAL 0
895
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
896
+ find out it does not work in some platform. */
897
+#ifndef LT_DLLAZY_OR_NOW
899
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
902
+# define LT_DLLAZY_OR_NOW DL_LAZY
905
+# define LT_DLLAZY_OR_NOW RTLD_NOW
908
+# define LT_DLLAZY_OR_NOW DL_NOW
910
+# define LT_DLLAZY_OR_NOW 0
918
+extern "C" void exit (int);
921
+void fnord() { int i=42;}
924
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
925
+ int status = $lt_dlunknown;
929
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
930
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
931
+ /* dlclose (self); */
939
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
940
+ (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
942
+ case x$lt_status in
943
+ x$lt_dlno_uscore) $1 ;;
944
+ x$lt_dlneed_uscore) $2 ;;
945
+ x$lt_dlunknown|x*) $3 ;;
948
+ # compilation failed
953
+])# _LT_AC_TRY_DLOPEN_SELF
956
+# AC_LIBTOOL_DLOPEN_SELF
957
+# ----------------------
958
+AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
959
+[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
960
+if test "x$enable_dlopen" != xyes; then
961
+ enable_dlopen=unknown
962
+ enable_dlopen_self=unknown
963
+ enable_dlopen_self_static=unknown
970
+ lt_cv_dlopen="load_add_on"
972
+ lt_cv_dlopen_self=yes
976
+ lt_cv_dlopen="LoadLibrary"
981
+ lt_cv_dlopen="dlopen"
986
+ # if libdl is installed we need to link against it
987
+ AC_CHECK_LIB([dl], [dlopen],
988
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
989
+ lt_cv_dlopen="dyld"
991
+ lt_cv_dlopen_self=yes
996
+ AC_CHECK_FUNC([shl_load],
997
+ [lt_cv_dlopen="shl_load"],
998
+ [AC_CHECK_LIB([dld], [shl_load],
999
+ [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1000
+ [AC_CHECK_FUNC([dlopen],
1001
+ [lt_cv_dlopen="dlopen"],
1002
+ [AC_CHECK_LIB([dl], [dlopen],
1003
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1004
+ [AC_CHECK_LIB([svld], [dlopen],
1005
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1006
+ [AC_CHECK_LIB([dld], [dld_link],
1007
+ [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1016
+ if test "x$lt_cv_dlopen" != xno; then
1022
+ case $lt_cv_dlopen in
1024
+ save_CPPFLAGS="$CPPFLAGS"
1025
+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1027
+ save_LDFLAGS="$LDFLAGS"
1028
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1031
+ LIBS="$lt_cv_dlopen_libs $LIBS"
1033
+ AC_CACHE_CHECK([whether a program can dlopen itself],
1034
+ lt_cv_dlopen_self, [dnl
1035
+ _LT_AC_TRY_DLOPEN_SELF(
1036
+ lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1037
+ lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1040
+ if test "x$lt_cv_dlopen_self" = xyes; then
1041
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1042
+ AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1043
+ lt_cv_dlopen_self_static, [dnl
1044
+ _LT_AC_TRY_DLOPEN_SELF(
1045
+ lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1046
+ lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1050
+ CPPFLAGS="$save_CPPFLAGS"
1051
+ LDFLAGS="$save_LDFLAGS"
1056
+ case $lt_cv_dlopen_self in
1057
+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1058
+ *) enable_dlopen_self=unknown ;;
1061
+ case $lt_cv_dlopen_self_static in
1062
+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1063
+ *) enable_dlopen_self_static=unknown ;;
1066
+])# AC_LIBTOOL_DLOPEN_SELF
1069
+# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1070
+# ---------------------------------
1071
+# Check to see if options -c and -o are simultaneously supported by compiler
1072
+AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1073
+[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1074
+AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1075
+ [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1076
+ [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1077
+ $rm -r conftest 2>/dev/null
1081
+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1083
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
1084
+ # Insert the option either (1) after the last *FLAGS variable, or
1085
+ # (2) before a word containing "conftest.", or (3) at the end.
1086
+ # Note that $ac_compile itself does not contain backslashes and begins
1087
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
1088
+ lt_compile=`echo "$ac_compile" | $SED \
1089
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1090
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1091
+ -e 's:$: $lt_compiler_flag:'`
1092
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1093
+ (eval "$lt_compile" 2>out/conftest.err)
1095
+ cat out/conftest.err >&AS_MESSAGE_LOG_FD
1096
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1097
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
1099
+ # The compiler can only warn and ignore the option if not recognized
1100
+ # So say no if there are warnings
1101
+ $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1102
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1103
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1104
+ _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1107
+ chmod u+w . 2>&AS_MESSAGE_LOG_FD
1109
+ # SGI C++ compiler will create directory out/ii_files/ for
1110
+ # template instantiation
1111
+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1112
+ $rm out/* && rmdir out
1117
+])# AC_LIBTOOL_PROG_CC_C_O
1120
+# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1121
+# -----------------------------------------
1122
+# Check to see if we can do hard links to lock some files if needed
1123
+AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1124
+[AC_REQUIRE([_LT_AC_LOCK])dnl
1126
+hard_links="nottested"
1127
+if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1128
+ # do not overwrite the value of need_locks provided by the user
1129
+ AC_MSG_CHECKING([if we can lock with hard links])
1132
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
1134
+ ln conftest.a conftest.b 2>&5 || hard_links=no
1135
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
1136
+ AC_MSG_RESULT([$hard_links])
1137
+ if test "$hard_links" = no; then
1138
+ AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1144
+])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1147
+# AC_LIBTOOL_OBJDIR
1148
+# -----------------
1149
+AC_DEFUN([AC_LIBTOOL_OBJDIR],
1150
+[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1151
+[rm -f .libs 2>/dev/null
1152
+mkdir .libs 2>/dev/null
1153
+if test -d .libs; then
1154
+ lt_cv_objdir=.libs
1156
+ # MS-DOS does not allow filenames that begin with a dot.
1157
+ lt_cv_objdir=_libs
1159
+rmdir .libs 2>/dev/null])
1160
+objdir=$lt_cv_objdir
1161
+])# AC_LIBTOOL_OBJDIR
1164
+# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1165
+# ----------------------------------------------
1166
+# Check hardcoding attributes.
1167
+AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1168
+[AC_MSG_CHECKING([how to hardcode library paths into programs])
1169
+_LT_AC_TAGVAR(hardcode_action, $1)=
1170
+if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1171
+ test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1172
+ test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1174
+ # We can hardcode non-existant directories.
1175
+ if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1176
+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
1177
+ # have to relink, otherwise we might link with an installed library
1178
+ # when we should be linking with a yet-to-be-installed one
1179
+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1180
+ test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1181
+ # Linking always hardcodes the temporary library directory.
1182
+ _LT_AC_TAGVAR(hardcode_action, $1)=relink
1184
+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
1185
+ _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1188
+ # We cannot hardcode anything, or else we can only hardcode existing
1190
+ _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1192
+AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1194
+if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1195
+ # Fast installation is not supported
1196
+ enable_fast_install=no
1197
+elif test "$shlibpath_overrides_runpath" = yes ||
1198
+ test "$enable_shared" = no; then
1199
+ # Fast installation is not necessary
1200
+ enable_fast_install=needless
1202
+])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1205
+# AC_LIBTOOL_SYS_LIB_STRIP
1206
+# ------------------------
1207
+AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1210
+AC_MSG_CHECKING([whether stripping libraries is possible])
1211
+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1212
+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1213
+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1214
+ AC_MSG_RESULT([yes])
1216
+# FIXME - insert some real tests, host_os isn't really good enough
1219
+ if test -n "$STRIP" ; then
1220
+ striplib="$STRIP -x"
1221
+ AC_MSG_RESULT([yes])
1223
+ AC_MSG_RESULT([no])
1227
+ AC_MSG_RESULT([no])
1231
+])# AC_LIBTOOL_SYS_LIB_STRIP
1234
+# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1235
+# -----------------------------
1236
+# PORTME Fill in your ld.so characteristics
1237
+AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1238
+[AC_MSG_CHECKING([dynamic linker characteristics])
1239
+library_names_spec=
1240
+libname_spec='lib$name'
1244
+postuninstall_cmds=
1248
+shlibpath_overrides_runpath=unknown
1250
+dynamic_linker="$host_os ld.so"
1251
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
1252
+if test "$GCC" = yes; then
1253
+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1254
+ if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1255
+ # if the path contains ";" then we assume it to be the separator
1256
+ # otherwise default to the standard path separator (i.e. ":") - it is
1257
+ # assumed that no part of a normal pathname contains ";" but that should
1258
+ # okay in the real world where ";" in dirpaths is itself problematic.
1259
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1261
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1264
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1266
+need_lib_prefix=unknown
1267
+hardcode_into_libs=no
1269
+# when you set need_version to no, make sure it does not cause -set_version
1270
+# flags to be left without arguments
1271
+need_version=unknown
1275
+ version_type=linux
1276
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1277
+ shlibpath_var=LIBPATH
1279
+ # AIX 3 has no versioning support, so we append a major version to the name.
1280
+ soname_spec='${libname}${release}${shared_ext}$major'
1284
+ version_type=linux
1285
+ need_lib_prefix=no
1287
+ hardcode_into_libs=yes
1288
+ if test "$host_cpu" = ia64; then
1289
+ # AIX 5 supports IA64
1290
+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1291
+ shlibpath_var=LD_LIBRARY_PATH
1293
+ # With GCC up to 2.95.x, collect2 would create an import file
1294
+ # for dependence libraries. The import file would start with
1295
+ # the line `#! .'. This would cause the generated library to
1296
+ # depend on `.', always an invalid library. This was fixed in
1297
+ # development snapshots of GCC prior to 3.0.
1299
+ aix4 | aix4.[[01]] | aix4.[[01]].*)
1300
+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1302
+ echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1305
+ can_build_shared=no
1309
+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1310
+ # soname into executable. Probably we can add versioning support to
1311
+ # collect2, so additional links can be useful in future.
1312
+ if test "$aix_use_runtimelinking" = yes; then
1313
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1314
+ # instead of lib<name>.a to let people know that these are not
1315
+ # typical AIX shared libraries.
1316
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1318
+ # We preserve .a as extension for shared libraries through AIX4.2
1319
+ # and later when we are not doing run time linking.
1320
+ library_names_spec='${libname}${release}.a $libname.a'
1321
+ soname_spec='${libname}${release}${shared_ext}$major'
1323
+ shlibpath_var=LIBPATH
1328
+ library_names_spec='$libname.ixlibrary $libname.a'
1329
+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
1330
+ 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'
1334
+ library_names_spec='${libname}${shared_ext}'
1335
+ dynamic_linker="$host_os ld.so"
1336
+ shlibpath_var=LIBRARY_PATH
1340
+ version_type=linux
1342
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1343
+ soname_spec='${libname}${release}${shared_ext}$major'
1344
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1345
+ shlibpath_var=LD_LIBRARY_PATH
1346
+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1347
+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1348
+ # the default ld.so.conf also contains /usr/contrib/lib and
1349
+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1350
+ # libtool to hard-code these into programs
1353
+cygwin* | mingw* | pw32*)
1354
+ version_type=windows
1355
+ shrext_cmds=".dll"
1357
+ need_lib_prefix=no
1359
+ case $GCC,$host_os in
1360
+ yes,cygwin* | yes,mingw* | yes,pw32*)
1361
+ library_names_spec='$libname.dll.a'
1362
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
1363
+ postinstall_cmds='base_file=`basename \${file}`~
1364
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1365
+ dldir=$destdir/`dirname \$dlpath`~
1366
+ test -d \$dldir || mkdir -p \$dldir~
1367
+ $install_prog $dir/$dlname \$dldir/$dlname~
1368
+ chmod a+x \$dldir/$dlname'
1369
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1370
+ dlpath=$dir/\$dldll~
1372
+ shlibpath_overrides_runpath=yes
1376
+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1377
+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1378
+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1381
+ # MinGW DLLs use traditional 'lib' prefix
1382
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1383
+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1384
+ if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1385
+ # It is most probably a Windows format PATH printed by
1386
+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
1387
+ # path with ; separators, and with drive letters. We can handle the
1388
+ # drive letters (cygwin fileutils understands them), so leave them,
1389
+ # especially as we might pass files found there to a mingw objdump,
1390
+ # which wouldn't understand a cygwinified path. Ahh.
1391
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1393
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1397
+ # pw32 DLLs use 'pw' prefix rather than 'lib'
1398
+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1404
+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1407
+ dynamic_linker='Win32 ld.exe'
1408
+ # FIXME: first we should search . and the directory the executable is in
1409
+ shlibpath_var=PATH
1412
+darwin* | rhapsody*)
1413
+ dynamic_linker="$host_os dyld"
1414
+ version_type=darwin
1415
+ need_lib_prefix=no
1417
+ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1418
+ soname_spec='${libname}${release}${major}$shared_ext'
1419
+ shlibpath_overrides_runpath=yes
1420
+ shlibpath_var=DYLD_LIBRARY_PATH
1421
+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1422
+ # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1423
+ if test "$GCC" = yes; then
1424
+ sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1426
+ sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1428
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1432
+ version_type=linux
1433
+ need_lib_prefix=no
1435
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1436
+ soname_spec='${libname}${release}${shared_ext}$major'
1437
+ shlibpath_var=LD_LIBRARY_PATH
1444
+freebsd* | dragonfly*)
1445
+ # DragonFly does not have aout. When/if they implement a new
1446
+ # versioning mechanism, adjust this.
1447
+ if test -x /usr/bin/objformat; then
1448
+ objformat=`/usr/bin/objformat`
1451
+ freebsd[[123]]*) objformat=aout ;;
1452
+ *) objformat=elf ;;
1455
+ version_type=freebsd-$objformat
1456
+ case $version_type in
1458
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1460
+ need_lib_prefix=no
1463
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1467
+ shlibpath_var=LD_LIBRARY_PATH
1470
+ shlibpath_overrides_runpath=yes
1472
+ freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1473
+ shlibpath_overrides_runpath=yes
1474
+ hardcode_into_libs=yes
1476
+ freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1477
+ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1478
+ shlibpath_overrides_runpath=no
1479
+ hardcode_into_libs=yes
1481
+ freebsd*) # from 4.6 on
1482
+ shlibpath_overrides_runpath=yes
1483
+ hardcode_into_libs=yes
1489
+ version_type=linux
1490
+ need_lib_prefix=no
1492
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1493
+ soname_spec='${libname}${release}${shared_ext}$major'
1494
+ shlibpath_var=LD_LIBRARY_PATH
1495
+ hardcode_into_libs=yes
1498
+hpux9* | hpux10* | hpux11*)
1499
+ # Give a soname corresponding to the major version so that dld.sl refuses to
1500
+ # link against other versions.
1501
+ version_type=sunos
1502
+ need_lib_prefix=no
1507
+ hardcode_into_libs=yes
1508
+ dynamic_linker="$host_os dld.so"
1509
+ shlibpath_var=LD_LIBRARY_PATH
1510
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1511
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1512
+ soname_spec='${libname}${release}${shared_ext}$major'
1513
+ if test "X$HPUX_IA64_MODE" = X32; then
1514
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1516
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1518
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1522
+ hardcode_into_libs=yes
1523
+ dynamic_linker="$host_os dld.sl"
1524
+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1525
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1526
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1527
+ soname_spec='${libname}${release}${shared_ext}$major'
1528
+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1529
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1533
+ dynamic_linker="$host_os dld.sl"
1534
+ shlibpath_var=SHLIB_PATH
1535
+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1536
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1537
+ soname_spec='${libname}${release}${shared_ext}$major'
1540
+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
1541
+ postinstall_cmds='chmod 555 $lib'
1545
+ version_type=linux
1546
+ need_lib_prefix=no
1548
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1549
+ soname_spec='${libname}${release}${shared_ext}$major'
1550
+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1551
+ shlibpath_var=LD_LIBRARY_PATH
1552
+ shlibpath_overrides_runpath=no
1553
+ hardcode_into_libs=yes
1556
+irix5* | irix6* | nonstopux*)
1558
+ nonstopux*) version_type=nonstopux ;;
1560
+ if test "$lt_cv_prog_gnu_ld" = yes; then
1561
+ version_type=linux
1566
+ need_lib_prefix=no
1568
+ soname_spec='${libname}${release}${shared_ext}$major'
1569
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1571
+ irix5* | nonstopux*)
1572
+ libsuff= shlibsuff=
1575
+ case $LD in # libtool.m4 will add one of these switches to LD
1576
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1577
+ libsuff= shlibsuff= libmagic=32-bit;;
1578
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1579
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
1580
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1581
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
1582
+ *) libsuff= shlibsuff= libmagic=never-match;;
1586
+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1587
+ shlibpath_overrides_runpath=no
1588
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1589
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1590
+ hardcode_into_libs=yes
1593
+# No shared lib support for Linux oldld, aout, or coff.
1594
+linux*oldld* | linux*aout* | linux*coff*)
1598
+# This must be Linux ELF.
1599
+linux* | k*bsd*-gnu)
1600
+ version_type=linux
1601
+ need_lib_prefix=no
1603
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1604
+ soname_spec='${libname}${release}${shared_ext}$major'
1605
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1606
+ shlibpath_var=LD_LIBRARY_PATH
1607
+ shlibpath_overrides_runpath=no
1608
+ # This implies no fast_install, which is unacceptable.
1609
+ # Some rework will be needed to allow for fast_install
1610
+ # before this can be enabled.
1611
+ hardcode_into_libs=yes
1613
+ # Append ld.so.conf contents to the search path
1614
+ if test -f /etc/ld.so.conf; then
1615
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1616
+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1619
+ # We used to test for /lib/ld.so.1 and disable shared libraries on
1620
+ # powerpc, because MkLinux only supported shared libraries with the
1621
+ # GNU dynamic linker. Since this was broken with cross compilers,
1622
+ # most powerpc-linux boxes support dynamic linking these days and
1623
+ # people can always --disable-shared, the test was removed, and we
1624
+ # assume the GNU/Linux dynamic linker is in use.
1625
+ dynamic_linker='GNU/Linux ld.so'
1629
+ version_type=linux
1630
+ need_lib_prefix=no
1632
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1633
+ soname_spec='${libname}${release}${shared_ext}$major'
1634
+ shlibpath_var=LD_LIBRARY_PATH
1635
+ shlibpath_overrides_runpath=no
1636
+ hardcode_into_libs=yes
1637
+ dynamic_linker='NetBSD ld.elf_so'
1641
+ version_type=sunos
1642
+ need_lib_prefix=no
1644
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1645
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1646
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1647
+ dynamic_linker='NetBSD (a.out) ld.so'
1649
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1650
+ soname_spec='${libname}${release}${shared_ext}$major'
1651
+ dynamic_linker='NetBSD ld.elf_so'
1653
+ shlibpath_var=LD_LIBRARY_PATH
1654
+ shlibpath_overrides_runpath=yes
1655
+ hardcode_into_libs=yes
1659
+ version_type=linux
1660
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1661
+ shlibpath_var=LD_LIBRARY_PATH
1662
+ shlibpath_overrides_runpath=yes
1666
+ version_type=linux
1667
+ need_lib_prefix=no
1669
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1670
+ soname_spec='${libname}${release}${shared_ext}$major'
1671
+ shlibpath_var=LD_LIBRARY_PATH
1672
+ shlibpath_overrides_runpath=yes
1676
+ version_type=sunos
1677
+ sys_lib_dlsearch_path_spec="/usr/lib"
1678
+ need_lib_prefix=no
1679
+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1681
+ openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1682
+ *) need_version=no ;;
1684
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1685
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1686
+ shlibpath_var=LD_LIBRARY_PATH
1687
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1689
+ openbsd2.[[89]] | openbsd2.[[89]].*)
1690
+ shlibpath_overrides_runpath=no
1693
+ shlibpath_overrides_runpath=yes
1697
+ shlibpath_overrides_runpath=yes
1702
+ libname_spec='$name'
1703
+ shrext_cmds=".dll"
1704
+ need_lib_prefix=no
1705
+ library_names_spec='$libname${shared_ext} $libname.a'
1706
+ dynamic_linker='OS/2 ld.exe'
1707
+ shlibpath_var=LIBPATH
1710
+osf3* | osf4* | osf5*)
1712
+ need_lib_prefix=no
1714
+ soname_spec='${libname}${release}${shared_ext}$major'
1715
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1716
+ shlibpath_var=LD_LIBRARY_PATH
1717
+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1718
+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1722
+ version_type=linux
1723
+ need_lib_prefix=no
1725
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1726
+ soname_spec='${libname}${release}${shared_ext}$major'
1727
+ shlibpath_var=LD_LIBRARY_PATH
1728
+ shlibpath_overrides_runpath=yes
1729
+ hardcode_into_libs=yes
1730
+ # ldd complains unless libraries are executable
1731
+ postinstall_cmds='chmod +x $lib'
1735
+ version_type=sunos
1736
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1737
+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1738
+ shlibpath_var=LD_LIBRARY_PATH
1739
+ shlibpath_overrides_runpath=yes
1740
+ if test "$with_gnu_ld" = yes; then
1741
+ need_lib_prefix=no
1747
+ version_type=linux
1748
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1749
+ soname_spec='${libname}${release}${shared_ext}$major'
1750
+ shlibpath_var=LD_LIBRARY_PATH
1751
+ case $host_vendor in
1753
+ shlibpath_overrides_runpath=no
1754
+ need_lib_prefix=no
1755
+ export_dynamic_flag_spec='${wl}-Blargedynsym'
1756
+ runpath_var=LD_RUN_PATH
1759
+ need_lib_prefix=no
1762
+ need_lib_prefix=no
1764
+ shlibpath_overrides_runpath=no
1765
+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1771
+ if test -d /usr/nec ;then
1772
+ version_type=linux
1773
+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1774
+ soname_spec='$libname${shared_ext}.$major'
1775
+ shlibpath_var=LD_LIBRARY_PATH
1779
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1780
+ version_type=freebsd-elf
1781
+ need_lib_prefix=no
1783
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1784
+ soname_spec='${libname}${release}${shared_ext}$major'
1785
+ shlibpath_var=LD_LIBRARY_PATH
1786
+ hardcode_into_libs=yes
1787
+ if test "$with_gnu_ld" = yes; then
1788
+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1789
+ shlibpath_overrides_runpath=no
1791
+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1792
+ shlibpath_overrides_runpath=yes
1795
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1799
+ sys_lib_dlsearch_path_spec='/usr/lib'
1803
+ version_type=linux
1804
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1805
+ soname_spec='${libname}${release}${shared_ext}$major'
1806
+ shlibpath_var=LD_LIBRARY_PATH
1813
+AC_MSG_RESULT([$dynamic_linker])
1814
+test "$dynamic_linker" = no && can_build_shared=no
1816
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1817
+if test "$GCC" = yes; then
1818
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1820
+])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1825
+AC_DEFUN([_LT_AC_TAGCONFIG],
1826
+[AC_ARG_WITH([tags],
1827
+ [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1828
+ [include additional configurations @<:@automatic@:>@])],
1829
+ [tagnames="$withval"])
1831
+if test -f "$ltmain" && test -n "$tagnames"; then
1832
+ if test ! -f "${ofile}"; then
1833
+ AC_MSG_WARN([output file `$ofile' does not exist])
1836
+ if test -z "$LTCC"; then
1837
+ eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1838
+ if test -z "$LTCC"; then
1839
+ AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1841
+ AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1844
+ if test -z "$LTCFLAGS"; then
1845
+ eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1848
+ # Extract list of available tagged configurations in $ofile.
1849
+ # Note that this assumes the entire list is on one line.
1850
+ available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1852
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1853
+ for tagname in $tagnames; do
1854
+ IFS="$lt_save_ifs"
1855
+ # Check whether tagname contains only valid characters
1856
+ case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1858
+ *) AC_MSG_ERROR([invalid tag name: $tagname])
1862
+ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1864
+ AC_MSG_ERROR([tag name \"$tagname\" already exists])
1867
+ # Update the list of available tags.
1868
+ if test -n "$tagname"; then
1869
+ echo appending configuration tag \"$tagname\" to $ofile
1873
+ if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1874
+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1875
+ (test "X$CXX" != "Xg++"))) ; then
1876
+ AC_LIBTOOL_LANG_CXX_CONFIG
1883
+ if test -n "$F77" && test "X$F77" != "Xno"; then
1884
+ AC_LIBTOOL_LANG_F77_CONFIG
1891
+ if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1892
+ AC_LIBTOOL_LANG_GCJ_CONFIG
1899
+ AC_LIBTOOL_LANG_RC_CONFIG
1903
+ AC_MSG_ERROR([Unsupported tag name: $tagname])
1907
+ # Append the new tag name to the list of available tags.
1908
+ if test -n "$tagname" ; then
1909
+ available_tags="$available_tags $tagname"
1913
+ IFS="$lt_save_ifs"
1915
+ # Now substitute the updated list of available tags.
1916
+ if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1917
+ mv "${ofile}T" "$ofile"
1921
+ AC_MSG_ERROR([unable to update list of available tagged configurations.])
1924
+])# _LT_AC_TAGCONFIG
1927
+# AC_LIBTOOL_DLOPEN
1928
+# -----------------
1929
+# enable checks for dlopen support
1930
+AC_DEFUN([AC_LIBTOOL_DLOPEN],
1931
+ [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1932
+])# AC_LIBTOOL_DLOPEN
1935
+# AC_LIBTOOL_WIN32_DLL
1936
+# --------------------
1937
+# declare package support for building win32 DLLs
1938
+AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1939
+[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1940
+])# AC_LIBTOOL_WIN32_DLL
1943
+# AC_ENABLE_SHARED([DEFAULT])
1944
+# ---------------------------
1945
+# implement the --enable-shared flag
1946
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1947
+AC_DEFUN([AC_ENABLE_SHARED],
1948
+[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1949
+AC_ARG_ENABLE([shared],
1950
+ [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1951
+ [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1952
+ [p=${PACKAGE-default}
1953
+ case $enableval in
1954
+ yes) enable_shared=yes ;;
1955
+ no) enable_shared=no ;;
1958
+ # Look at the argument we got. We use all the common list separators.
1959
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1960
+ for pkg in $enableval; do
1961
+ IFS="$lt_save_ifs"
1962
+ if test "X$pkg" = "X$p"; then
1966
+ IFS="$lt_save_ifs"
1969
+ [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1970
+])# AC_ENABLE_SHARED
1973
+# AC_DISABLE_SHARED
1974
+# -----------------
1975
+# set the default shared flag to --disable-shared
1976
+AC_DEFUN([AC_DISABLE_SHARED],
1977
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1978
+AC_ENABLE_SHARED(no)
1979
+])# AC_DISABLE_SHARED
1982
+# AC_ENABLE_STATIC([DEFAULT])
1983
+# ---------------------------
1984
+# implement the --enable-static flag
1985
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1986
+AC_DEFUN([AC_ENABLE_STATIC],
1987
+[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
1988
+AC_ARG_ENABLE([static],
1989
+ [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
1990
+ [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
1991
+ [p=${PACKAGE-default}
1992
+ case $enableval in
1993
+ yes) enable_static=yes ;;
1994
+ no) enable_static=no ;;
1997
+ # Look at the argument we got. We use all the common list separators.
1998
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1999
+ for pkg in $enableval; do
2000
+ IFS="$lt_save_ifs"
2001
+ if test "X$pkg" = "X$p"; then
2005
+ IFS="$lt_save_ifs"
2008
+ [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2009
+])# AC_ENABLE_STATIC
2012
+# AC_DISABLE_STATIC
2013
+# -----------------
2014
+# set the default static flag to --disable-static
2015
+AC_DEFUN([AC_DISABLE_STATIC],
2016
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2017
+AC_ENABLE_STATIC(no)
2018
+])# AC_DISABLE_STATIC
2021
+# AC_ENABLE_FAST_INSTALL([DEFAULT])
2022
+# ---------------------------------
2023
+# implement the --enable-fast-install flag
2024
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2025
+AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2026
+[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2027
+AC_ARG_ENABLE([fast-install],
2028
+ [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2029
+ [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2030
+ [p=${PACKAGE-default}
2031
+ case $enableval in
2032
+ yes) enable_fast_install=yes ;;
2033
+ no) enable_fast_install=no ;;
2035
+ enable_fast_install=no
2036
+ # Look at the argument we got. We use all the common list separators.
2037
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2038
+ for pkg in $enableval; do
2039
+ IFS="$lt_save_ifs"
2040
+ if test "X$pkg" = "X$p"; then
2041
+ enable_fast_install=yes
2044
+ IFS="$lt_save_ifs"
2047
+ [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2048
+])# AC_ENABLE_FAST_INSTALL
2051
+# AC_DISABLE_FAST_INSTALL
2052
+# -----------------------
2053
+# set the default to --disable-fast-install
2054
+AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2055
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2056
+AC_ENABLE_FAST_INSTALL(no)
2057
+])# AC_DISABLE_FAST_INSTALL
2060
+# AC_LIBTOOL_PICMODE([MODE])
2061
+# --------------------------
2062
+# implement the --with-pic flag
2063
+# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2064
+AC_DEFUN([AC_LIBTOOL_PICMODE],
2065
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2066
+pic_mode=ifelse($#,1,$1,default)
2067
+])# AC_LIBTOOL_PICMODE
2072
+# This is predefined starting with Autoconf 2.54, so this conditional
2073
+# definition can be removed once we require Autoconf 2.54 or later.
2074
+m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2075
+[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2076
+ [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2077
+ then ac_cv_prog_egrep='grep -E'
2078
+ else ac_cv_prog_egrep='egrep'
2080
+ EGREP=$ac_cv_prog_egrep
2085
+# AC_PATH_TOOL_PREFIX
2086
+# -------------------
2087
+# find a file program which can recognise shared library
2088
+AC_DEFUN([AC_PATH_TOOL_PREFIX],
2089
+[AC_REQUIRE([AC_PROG_EGREP])dnl
2090
+AC_MSG_CHECKING([for $1])
2091
+AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2092
+[case $MAGIC_CMD in
2093
+[[\\/*] | ?:[\\/]*])
2094
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2097
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
2098
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2099
+dnl $ac_dummy forces splitting on constant user-supplied paths.
2100
+dnl POSIX.2 word splitting is done only on the output of word expansions,
2101
+dnl not every word. This closes a longstanding sh security hole.
2102
+ ac_dummy="ifelse([$2], , $PATH, [$2])"
2103
+ for ac_dir in $ac_dummy; do
2104
+ IFS="$lt_save_ifs"
2105
+ test -z "$ac_dir" && ac_dir=.
2106
+ if test -f $ac_dir/$1; then
2107
+ lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2108
+ if test -n "$file_magic_test_file"; then
2109
+ case $deplibs_check_method in
2111
+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2112
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2113
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2114
+ $EGREP "$file_magic_regex" > /dev/null; then
2119
+*** Warning: the command libtool uses to detect shared libraries,
2120
+*** $file_magic_cmd, produces output that libtool cannot recognize.
2121
+*** The result is that libtool may fail to recognize shared libraries
2122
+*** as such. This will affect the creation of libtool libraries that
2123
+*** depend on shared libraries, but programs linked with such libtool
2124
+*** libraries will work regardless of this problem. Nevertheless, you
2125
+*** may want to report the problem to your system manager and/or to
2126
+*** bug-libtool@gnu.org
2135
+ IFS="$lt_save_ifs"
2136
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
2139
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2140
+if test -n "$MAGIC_CMD"; then
2141
+ AC_MSG_RESULT($MAGIC_CMD)
2145
+])# AC_PATH_TOOL_PREFIX
2150
+# find a file program which can recognise a shared library
2151
+AC_DEFUN([AC_PATH_MAGIC],
2152
+[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2153
+if test -z "$lt_cv_path_MAGIC_CMD"; then
2154
+ if test -n "$ac_tool_prefix"; then
2155
+ AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2165
+# find the pathname to the GNU or non-GNU linker
2166
+AC_DEFUN([AC_PROG_LD],
2167
+[AC_ARG_WITH([gnu-ld],
2168
+ [AC_HELP_STRING([--with-gnu-ld],
2169
+ [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2170
+ [test "$withval" = no || with_gnu_ld=yes],
2172
+AC_REQUIRE([LT_AC_PROG_SED])dnl
2173
+AC_REQUIRE([AC_PROG_CC])dnl
2174
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
2175
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2177
+if test "$GCC" = yes; then
2178
+ # Check if gcc -print-prog-name=ld gives a path.
2179
+ AC_MSG_CHECKING([for ld used by $CC])
2182
+ # gcc leaves a trailing carriage return which upsets mingw
2183
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2185
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2188
+ # Accept absolute paths.
2189
+ [[\\/]]* | ?:[[\\/]]*)
2190
+ re_direlt='/[[^/]][[^/]]*/\.\./'
2191
+ # Canonicalize the pathname of ld
2192
+ ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2193
+ while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2194
+ ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2196
+ test -z "$LD" && LD="$ac_prog"
2199
+ # If it fails, then pretend we aren't using GCC.
2203
+ # If it is relative, then search for the first ld in PATH.
2204
+ with_gnu_ld=unknown
2207
+elif test "$with_gnu_ld" = yes; then
2208
+ AC_MSG_CHECKING([for GNU ld])
2210
+ AC_MSG_CHECKING([for non-GNU ld])
2212
+AC_CACHE_VAL(lt_cv_path_LD,
2213
+[if test -z "$LD"; then
2214
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2215
+ for ac_dir in $PATH; do
2216
+ IFS="$lt_save_ifs"
2217
+ test -z "$ac_dir" && ac_dir=.
2218
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2219
+ lt_cv_path_LD="$ac_dir/$ac_prog"
2220
+ # Check to see if the program is GNU ld. I'd rather use --version,
2221
+ # but apparently some variants of GNU ld only accept -v.
2222
+ # Break only if it was the GNU/non-GNU ld that we prefer.
2223
+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2224
+ *GNU* | *'with BFD'*)
2225
+ test "$with_gnu_ld" != no && break
2228
+ test "$with_gnu_ld" != yes && break
2233
+ IFS="$lt_save_ifs"
2235
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
2237
+LD="$lt_cv_path_LD"
2238
+if test -n "$LD"; then
2239
+ AC_MSG_RESULT($LD)
2243
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2250
+AC_DEFUN([AC_PROG_LD_GNU],
2251
+[AC_REQUIRE([AC_PROG_EGREP])dnl
2252
+AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2253
+[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2254
+case `$LD -v 2>&1 </dev/null` in
2255
+*GNU* | *'with BFD'*)
2256
+ lt_cv_prog_gnu_ld=yes
2259
+ lt_cv_prog_gnu_ld=no
2262
+with_gnu_ld=$lt_cv_prog_gnu_ld
2266
+# AC_PROG_LD_RELOAD_FLAG
2267
+# ----------------------
2268
+# find reload flag for linker
2269
+# -- PORTME Some linkers may need a different reload flag.
2270
+AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2271
+[AC_CACHE_CHECK([for $LD option to reload object files],
2272
+ lt_cv_ld_reload_flag,
2273
+ [lt_cv_ld_reload_flag='-r'])
2274
+reload_flag=$lt_cv_ld_reload_flag
2275
+case $reload_flag in
2277
+*) reload_flag=" $reload_flag" ;;
2279
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
2282
+ if test "$GCC" = yes; then
2283
+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2285
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
2289
+])# AC_PROG_LD_RELOAD_FLAG
2292
+# AC_DEPLIBS_CHECK_METHOD
2293
+# -----------------------
2294
+# how to check for library dependencies
2295
+# -- PORTME fill in with the dynamic library characteristics
2296
+AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2297
+[AC_CACHE_CHECK([how to recognise dependent libraries],
2298
+lt_cv_deplibs_check_method,
2299
+[lt_cv_file_magic_cmd='$MAGIC_CMD'
2300
+lt_cv_file_magic_test_file=
2301
+lt_cv_deplibs_check_method='unknown'
2302
+# Need to set the preceding variable on all platforms that support
2303
+# interlibrary dependencies.
2304
+# 'none' -- dependencies not supported.
2305
+# `unknown' -- same as none, but documents that we really don't know.
2306
+# 'pass_all' -- all dependencies passed with no checks.
2307
+# 'test_compile' -- check by making test program.
2308
+# 'file_magic [[regex]]' -- check by looking for files in library path
2309
+# which responds to the $file_magic_cmd with a given extended regex.
2310
+# If you have `file' or equivalent on your system and you're not sure
2311
+# whether `pass_all' will *always* work, you probably want this one.
2315
+ lt_cv_deplibs_check_method=pass_all
2319
+ lt_cv_deplibs_check_method=pass_all
2323
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2324
+ lt_cv_file_magic_cmd='/usr/bin/file -L'
2325
+ lt_cv_file_magic_test_file=/shlib/libc.so
2329
+ # func_win32_libid is a shell function defined in ltmain.sh
2330
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2331
+ lt_cv_file_magic_cmd='func_win32_libid'
2335
+ # Base MSYS/MinGW do not provide the 'file' command needed by
2336
+ # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2337
+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2338
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
2341
+darwin* | rhapsody*)
2342
+ lt_cv_deplibs_check_method=pass_all
2345
+freebsd* | dragonfly*)
2346
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2349
+ # Not sure whether the presence of OpenBSD here was a mistake.
2350
+ # Let's accept both of them until this is cleared up.
2351
+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2352
+ lt_cv_file_magic_cmd=/usr/bin/file
2353
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2357
+ lt_cv_deplibs_check_method=pass_all
2362
+ lt_cv_deplibs_check_method=pass_all
2365
+hpux10.20* | hpux11*)
2366
+ lt_cv_file_magic_cmd=/usr/bin/file
2369
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2370
+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2373
+ [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]']
2374
+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2377
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2378
+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
2384
+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2385
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2388
+irix5* | irix6* | nonstopux*)
2390
+ *-32|*"-32 ") libmagic=32-bit;;
2391
+ *-n32|*"-n32 ") libmagic=N32;;
2392
+ *-64|*"-64 ") libmagic=64-bit;;
2393
+ *) libmagic=never-match;;
2395
+ lt_cv_deplibs_check_method=pass_all
2398
+# This must be Linux ELF.
2399
+linux* | k*bsd*-gnu)
2400
+ lt_cv_deplibs_check_method=pass_all
2403
+netbsd* | netbsdelf*-gnu)
2404
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2405
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2407
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2412
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2413
+ lt_cv_file_magic_cmd=/usr/bin/file
2414
+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
2418
+ lt_cv_deplibs_check_method=unknown
2422
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2423
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2425
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2429
+osf3* | osf4* | osf5*)
2430
+ lt_cv_deplibs_check_method=pass_all
2434
+ lt_cv_deplibs_check_method=pass_all
2438
+ case $host_vendor in
2440
+ 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]]'
2441
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2444
+ lt_cv_deplibs_check_method=pass_all
2447
+ lt_cv_file_magic_cmd='/bin/file'
2448
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2451
+ lt_cv_file_magic_cmd='/bin/file'
2452
+ lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2453
+ lt_cv_file_magic_test_file=/lib/libc.so
2456
+ lt_cv_deplibs_check_method=pass_all
2459
+ lt_cv_deplibs_check_method=pass_all
2464
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2465
+ lt_cv_deplibs_check_method=pass_all
2469
+file_magic_cmd=$lt_cv_file_magic_cmd
2470
+deplibs_check_method=$lt_cv_deplibs_check_method
2471
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
2472
+])# AC_DEPLIBS_CHECK_METHOD
2477
+# find the pathname to a BSD-compatible name lister
2478
+AC_DEFUN([AC_PROG_NM],
2479
+[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2480
+[if test -n "$NM"; then
2481
+ # Let the user override the test.
2482
+ lt_cv_path_NM="$NM"
2484
+ lt_nm_to_check="${ac_tool_prefix}nm"
2485
+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2486
+ lt_nm_to_check="$lt_nm_to_check nm"
2488
+ for lt_tmp_nm in $lt_nm_to_check; do
2489
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2490
+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2491
+ IFS="$lt_save_ifs"
2492
+ test -z "$ac_dir" && ac_dir=.
2493
+ tmp_nm="$ac_dir/$lt_tmp_nm"
2494
+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2495
+ # Check to see if the nm accepts a BSD-compat flag.
2496
+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2497
+ # nm: unknown option "B" ignored
2498
+ # Tru64's nm complains that /dev/null is an invalid object file
2499
+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2500
+ */dev/null* | *'Invalid file or object type'*)
2501
+ lt_cv_path_NM="$tmp_nm -B"
2505
+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2507
+ lt_cv_path_NM="$tmp_nm -p"
2511
+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2512
+ continue # so that we can try to find one that supports BSD flags
2519
+ IFS="$lt_save_ifs"
2521
+ test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2523
+NM="$lt_cv_path_NM"
2529
+# check for math library
2530
+AC_DEFUN([AC_CHECK_LIBM],
2531
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2534
+*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2535
+ # These system don't have libm, or don't need it
2538
+ AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2539
+ AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2542
+ AC_CHECK_LIB(m, cos, LIBM="-lm")
2548
+# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2549
+# -----------------------------------
2550
+# sets LIBLTDL to the link flags for the libltdl convenience library and
2551
+# LTDLINCL to the include flags for the libltdl header and adds
2552
+# --enable-ltdl-convenience to the configure arguments. Note that
2553
+# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2554
+# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2555
+# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2556
+# (note the single quotes!). If your package is not flat and you're not
2557
+# using automake, define top_builddir and top_srcdir appropriately in
2559
+AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2560
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2561
+ case $enable_ltdl_convenience in
2562
+ no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2563
+ "") enable_ltdl_convenience=yes
2564
+ ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2566
+ LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2567
+ LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2568
+ # For backwards non-gettext consistent compatibility...
2569
+ INCLTDL="$LTDLINCL"
2570
+])# AC_LIBLTDL_CONVENIENCE
2573
+# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2574
+# -----------------------------------
2575
+# sets LIBLTDL to the link flags for the libltdl installable library and
2576
+# LTDLINCL to the include flags for the libltdl header and adds
2577
+# --enable-ltdl-install to the configure arguments. Note that
2578
+# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2579
+# and an installed libltdl is not found, it is assumed to be `libltdl'.
2580
+# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2581
+# '${top_srcdir}/' (note the single quotes!). If your package is not
2582
+# flat and you're not using automake, define top_builddir and top_srcdir
2583
+# appropriately in the Makefiles.
2584
+# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2585
+AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2586
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2587
+ AC_CHECK_LIB(ltdl, lt_dlinit,
2588
+ [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2589
+ [if test x"$enable_ltdl_install" = xno; then
2590
+ AC_MSG_WARN([libltdl not installed, but installation disabled])
2592
+ enable_ltdl_install=yes
2595
+ if test x"$enable_ltdl_install" = x"yes"; then
2596
+ ac_configure_args="$ac_configure_args --enable-ltdl-install"
2597
+ LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2598
+ LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2600
+ ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2604
+ # For backwards non-gettext consistent compatibility...
2605
+ INCLTDL="$LTDLINCL"
2606
+])# AC_LIBLTDL_INSTALLABLE
2611
+# enable support for C++ libraries
2612
+AC_DEFUN([AC_LIBTOOL_CXX],
2613
+[AC_REQUIRE([_LT_AC_LANG_CXX])
2619
+AC_DEFUN([_LT_AC_LANG_CXX],
2620
+[AC_REQUIRE([AC_PROG_CXX])
2621
+AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2622
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2623
+])# _LT_AC_LANG_CXX
2625
+# _LT_AC_PROG_CXXCPP
2626
+# ------------------
2627
+AC_DEFUN([_LT_AC_PROG_CXXCPP],
2629
+AC_REQUIRE([AC_PROG_CXX])
2630
+if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2631
+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2632
+ (test "X$CXX" != "Xg++"))) ; then
2635
+])# _LT_AC_PROG_CXXCPP
2639
+# enable support for Fortran 77 libraries
2640
+AC_DEFUN([AC_LIBTOOL_F77],
2641
+[AC_REQUIRE([_LT_AC_LANG_F77])
2647
+AC_DEFUN([_LT_AC_LANG_F77],
2648
+[AC_REQUIRE([AC_PROG_F77])
2649
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2650
+])# _LT_AC_LANG_F77
2655
+# enable support for GCJ libraries
2656
+AC_DEFUN([AC_LIBTOOL_GCJ],
2657
+[AC_REQUIRE([_LT_AC_LANG_GCJ])
2663
+AC_DEFUN([_LT_AC_LANG_GCJ],
2664
+[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2665
+ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2666
+ [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2667
+ [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2668
+ [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2669
+ [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2670
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2671
+])# _LT_AC_LANG_GCJ
2676
+# enable support for Windows resource files
2677
+AC_DEFUN([AC_LIBTOOL_RC],
2678
+[AC_REQUIRE([LT_AC_PROG_RC])
2679
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2683
+# AC_LIBTOOL_LANG_C_CONFIG
2684
+# ------------------------
2685
+# Ensure that the configuration vars for the C compiler are
2686
+# suitably defined. Those variables are subsequently used by
2687
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2688
+AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2689
+AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2693
+# Source file extension for C test sources.
2696
+# Object file extension for compiled C test sources.
2698
+_LT_AC_TAGVAR(objext, $1)=$objext
2700
+# Code to be used in simple compile tests
2701
+lt_simple_compile_test_code="int some_variable = 0;\n"
2703
+# Code to be used in simple link tests
2704
+lt_simple_link_test_code='int main(){return(0);}\n'
2706
+_LT_AC_SYS_COMPILER
2708
+# save warnings/boilerplate of simple test code
2709
+_LT_COMPILER_BOILERPLATE
2710
+_LT_LINKER_BOILERPLATE
2712
+AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2713
+AC_LIBTOOL_PROG_COMPILER_PIC($1)
2714
+AC_LIBTOOL_PROG_CC_C_O($1)
2715
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2716
+AC_LIBTOOL_PROG_LD_SHLIBS($1)
2717
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2718
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2719
+AC_LIBTOOL_SYS_LIB_STRIP
2720
+AC_LIBTOOL_DLOPEN_SELF
2722
+# Report which library types will actually be built
2723
+AC_MSG_CHECKING([if libtool supports shared libraries])
2724
+AC_MSG_RESULT([$can_build_shared])
2726
+AC_MSG_CHECKING([whether to build shared libraries])
2727
+test "$can_build_shared" = "no" && enable_shared=no
2729
+# On AIX, shared libraries and static libraries use the same namespace, and
2730
+# are all built from PIC.
2733
+ test "$enable_shared" = yes && enable_static=no
2734
+ if test -n "$RANLIB"; then
2735
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
2736
+ postinstall_cmds='$RANLIB $lib'
2741
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2742
+ test "$enable_shared" = yes && enable_static=no
2746
+AC_MSG_RESULT([$enable_shared])
2748
+AC_MSG_CHECKING([whether to build static libraries])
2749
+# Make sure either enable_shared or enable_static is yes.
2750
+test "$enable_shared" = yes || enable_static=yes
2751
+AC_MSG_RESULT([$enable_static])
2753
+AC_LIBTOOL_CONFIG($1)
2757
+])# AC_LIBTOOL_LANG_C_CONFIG
2760
+# AC_LIBTOOL_LANG_CXX_CONFIG
2761
+# --------------------------
2762
+# Ensure that the configuration vars for the C compiler are
2763
+# suitably defined. Those variables are subsequently used by
2764
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2765
+AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2766
+AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2768
+AC_REQUIRE([AC_PROG_CXX])
2769
+AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2771
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2772
+_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2773
+_LT_AC_TAGVAR(always_export_symbols, $1)=no
2774
+_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2775
+_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2776
+_LT_AC_TAGVAR(hardcode_direct, $1)=no
2777
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2778
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2779
+_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2780
+_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2781
+_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2782
+_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2783
+_LT_AC_TAGVAR(module_cmds, $1)=
2784
+_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2785
+_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2786
+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2787
+_LT_AC_TAGVAR(no_undefined_flag, $1)=
2788
+_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2789
+_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2791
+# Dependencies to place before and after the object being linked:
2792
+_LT_AC_TAGVAR(predep_objects, $1)=
2793
+_LT_AC_TAGVAR(postdep_objects, $1)=
2794
+_LT_AC_TAGVAR(predeps, $1)=
2795
+_LT_AC_TAGVAR(postdeps, $1)=
2796
+_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2798
+# Source file extension for C++ test sources.
2801
+# Object file extension for compiled C++ test sources.
2803
+_LT_AC_TAGVAR(objext, $1)=$objext
2805
+# Code to be used in simple compile tests
2806
+lt_simple_compile_test_code="int some_variable = 0;\n"
2808
+# Code to be used in simple link tests
2809
+lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2811
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2812
+_LT_AC_SYS_COMPILER
2814
+# save warnings/boilerplate of simple test code
2815
+_LT_COMPILER_BOILERPLATE
2816
+_LT_LINKER_BOILERPLATE
2818
+# Allow CC to be a program name with arguments.
2823
+lt_save_with_gnu_ld=$with_gnu_ld
2824
+lt_save_path_LD=$lt_cv_path_LD
2825
+if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2826
+ lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2828
+ $as_unset lt_cv_prog_gnu_ld
2830
+if test -n "${lt_cv_path_LDCXX+set}"; then
2831
+ lt_cv_path_LD=$lt_cv_path_LDCXX
2833
+ $as_unset lt_cv_path_LD
2835
+test -z "${LDCXX+set}" || LD=$LDCXX
2838
+_LT_AC_TAGVAR(compiler, $1)=$CC
2839
+_LT_CC_BASENAME([$compiler])
2841
+# We don't want -fno-exception wen compiling C++ code, so set the
2842
+# no_builtin_flag separately
2843
+if test "$GXX" = yes; then
2844
+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2846
+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2849
+if test "$GXX" = yes; then
2850
+ # Set up default GNU C++ configuration
2854
+ # Check if GNU C++ uses GNU ld as the underlying linker, since the
2855
+ # archiving commands below assume that GNU ld is being used.
2856
+ if test "$with_gnu_ld" = yes; then
2857
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2858
+ _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'
2860
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2861
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2863
+ # If archive_cmds runs LD, not CC, wlarc should be empty
2864
+ # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2865
+ # investigate it a little bit more. (MM)
2868
+ # ancient GNU ld didn't support --whole-archive et. al.
2869
+ if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2870
+ grep 'no-whole-archive' > /dev/null; then
2871
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2873
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2879
+ # A generic and very simple default shared library creation
2880
+ # command for GNU C++ for the case where it uses the native
2881
+ # linker, instead of GNU ld. If possible, this setting should
2882
+ # overridden to take advantage of the native linker features on
2883
+ # the platform it is being used on.
2884
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2887
+ # Commands to make compiler produce verbose output that lists
2888
+ # what "hidden" libraries, object files and flags are used when
2889
+ # linking a shared library.
2890
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2898
+# PORTME: fill in a description of your system's C++ link characteristics
2899
+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2900
+_LT_AC_TAGVAR(ld_shlibs, $1)=yes
2903
+ # FIXME: insert proper C++ library support
2904
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
2907
+ if test "$host_cpu" = ia64; then
2908
+ # On IA64, the linker does run time linking by default, so we don't
2909
+ # have to do anything special.
2910
+ aix_use_runtimelinking=no
2911
+ exp_sym_flag='-Bexport'
2914
+ aix_use_runtimelinking=no
2916
+ # Test if we are trying to use run time linking or normal
2917
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2918
+ # need to do runtime linking.
2919
+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2920
+ for ld_flag in $LDFLAGS; do
2923
+ aix_use_runtimelinking=yes
2931
+ exp_sym_flag='-bexport'
2932
+ no_entry_flag='-bnoentry'
2935
+ # When large executables or shared objects are built, AIX ld can
2936
+ # have problems creating the table of contents. If linking a library
2937
+ # or program results in "error TOC overflow" add -mminimal-toc to
2938
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2939
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2941
+ _LT_AC_TAGVAR(archive_cmds, $1)=''
2942
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2943
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2944
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2946
+ if test "$GXX" = yes; then
2947
+ case $host_os in aix4.[[012]]|aix4.[[012]].*)
2948
+ # We only want to do this on AIX 4.2 and lower, the check
2949
+ # below for broken collect2 doesn't work under 4.3+
2950
+ collect2name=`${CC} -print-prog-name=collect2`
2951
+ if test -f "$collect2name" && \
2952
+ strings "$collect2name" | grep resolve_lib_name >/dev/null
2954
+ # We have reworked collect2
2955
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2957
+ # We have old collect2
2958
+ _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2959
+ # It fails to find uninstalled libraries when the uninstalled
2960
+ # path is not listed in the libpath. Setting hardcode_minus_L
2961
+ # to unsupported forces relinking
2962
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2963
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2964
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2968
+ shared_flag='-shared'
2969
+ if test "$aix_use_runtimelinking" = yes; then
2970
+ shared_flag="$shared_flag "'${wl}-G'
2974
+ if test "$host_cpu" = ia64; then
2975
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
2976
+ # chokes on -Wl,-G. The following line is correct:
2979
+ if test "$aix_use_runtimelinking" = yes; then
2980
+ shared_flag='${wl}-G'
2982
+ shared_flag='${wl}-bM:SRE'
2987
+ # It seems that -bexpall does not export symbols beginning with
2988
+ # underscore (_), so it is better to generate a list of symbols to export.
2989
+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2990
+ if test "$aix_use_runtimelinking" = yes; then
2991
+ # Warning - without using the other runtime loading flags (-brtl),
2992
+ # -berok will link without error, but may produce a broken library.
2993
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2994
+ # Determine the default libpath from the value encoded in an empty executable.
2995
+ _LT_AC_SYS_LIBPATH_AIX
2996
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2998
+ _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"
3000
+ if test "$host_cpu" = ia64; then
3001
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3002
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3003
+ _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"
3005
+ # Determine the default libpath from the value encoded in an empty executable.
3006
+ _LT_AC_SYS_LIBPATH_AIX
3007
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3008
+ # Warning - without using the other run time loading flags,
3009
+ # -berok will link without error, but may produce a broken library.
3010
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3011
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3012
+ # Exported symbols can be pulled into shared objects from archives
3013
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3014
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3015
+ # This is similar to how AIX traditionally builds its shared libraries.
3016
+ _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'
3022
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3023
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3024
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3025
+ # support --undefined. This deserves some investigation. FIXME
3026
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3028
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3033
+ case $cc_basename in
3035
+ # FIXME: insert proper C++ library support
3036
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3041
+ cygwin* | mingw* | pw32*)
3042
+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3043
+ # as there is no search path for DLLs.
3044
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3045
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3046
+ _LT_AC_TAGVAR(always_export_symbols, $1)=no
3047
+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3049
+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3050
+ _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'
3051
+ # If the export-symbols file already is a .def file (1st line
3052
+ # is EXPORTS), use it as is; otherwise, prepend...
3053
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3054
+ cp $export_symbols $output_objdir/$soname.def;
3056
+ echo EXPORTS > $output_objdir/$soname.def;
3057
+ cat $export_symbols >> $output_objdir/$soname.def;
3059
+ $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'
3061
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3064
+ darwin* | rhapsody*)
3066
+ rhapsody* | darwin1.[[012]])
3067
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3069
+ *) # Darwin 1.3 on
3070
+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3071
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3073
+ case ${MACOSX_DEPLOYMENT_TARGET} in
3075
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3078
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3084
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3085
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
3086
+ _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3087
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3088
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3089
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3091
+ if test "$GXX" = yes ; then
3092
+ lt_int_apple_cc_single_mod=no
3093
+ output_verbose_link_cmd='echo'
3094
+ if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3095
+ lt_int_apple_cc_single_mod=yes
3097
+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3098
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3100
+ _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'
3102
+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3103
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3104
+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3105
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3107
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3109
+ _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}'
3111
+ case $cc_basename in
3113
+ output_verbose_link_cmd='echo'
3114
+ _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` $verstring'
3115
+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3116
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3117
+ _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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3118
+ _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}'
3121
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3128
+ case $cc_basename in
3130
+ # FIXME: insert proper C++ library support
3131
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3134
+ # Green Hills C++ Compiler
3135
+ # FIXME: insert proper C++ library support
3136
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3139
+ # FIXME: insert proper C++ library support
3140
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3145
+ # C++ shared libraries reported to be fairly broken before switch to ELF
3146
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3149
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3151
+ freebsd* | dragonfly*)
3152
+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3154
+ _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3159
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3160
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3161
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3162
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3163
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3164
+ # but as the default
3165
+ # location of the library.
3167
+ case $cc_basename in
3169
+ # FIXME: insert proper C++ library support
3170
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3173
+ _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'
3174
+ # Commands to make compiler produce verbose output that lists
3175
+ # what "hidden" libraries, object files and flags are used when
3176
+ # linking a shared library.
3178
+ # There doesn't appear to be a way to prevent this compiler from
3179
+ # explicitly linking system object files so we need to strip them
3180
+ # from the output so that they don't get included in the library
3182
+ 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'
3185
+ if test "$GXX" = yes; then
3186
+ _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'
3188
+ # FIXME: insert proper C++ library support
3189
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3195
+ if test $with_gnu_ld = no; then
3196
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3197
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3201
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3204
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3210
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
3211
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3214
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3215
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3216
+ # but as the default
3217
+ # location of the library.
3221
+ case $cc_basename in
3223
+ # FIXME: insert proper C++ library support
3224
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3229
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3232
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3235
+ _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'
3238
+ # Commands to make compiler produce verbose output that lists
3239
+ # what "hidden" libraries, object files and flags are used when
3240
+ # linking a shared library.
3242
+ # There doesn't appear to be a way to prevent this compiler from
3243
+ # explicitly linking system object files so we need to strip them
3244
+ # from the output so that they don't get included in the library
3246
+ 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'
3249
+ if test "$GXX" = yes; then
3250
+ if test $with_gnu_ld = no; then
3253
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3256
+ _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'
3259
+ _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'
3264
+ # FIXME: insert proper C++ library support
3265
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3271
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
3272
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3273
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3274
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3275
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3276
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
3277
+ # default) and relocated if they conflict, which is a slow very memory
3278
+ # consuming and fragmenting process. To avoid this, we pick a random,
3279
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3280
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3281
+ _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'
3282
+ _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'
3285
+ case $cc_basename in
3288
+ _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'
3290
+ # Archives containing C++ object files must be created using
3291
+ # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3292
+ # necessary to make sure instantiated templates are included
3294
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3297
+ if test "$GXX" = yes; then
3298
+ if test "$with_gnu_ld" = no; then
3299
+ _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'
3301
+ _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'
3304
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3307
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3308
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3310
+ linux* | k*bsd*-gnu)
3311
+ case $cc_basename in
3313
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
3315
+ # KCC will only create a shared library if the output file
3316
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
3317
+ # to its proper name (with version) after linking.
3318
+ _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'
3319
+ _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'
3320
+ # Commands to make compiler produce verbose output that lists
3321
+ # what "hidden" libraries, object files and flags are used when
3322
+ # linking a shared library.
3324
+ # There doesn't appear to be a way to prevent this compiler from
3325
+ # explicitly linking system object files so we need to strip them
3326
+ # from the output so that they don't get included in the library
3328
+ 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'
3330
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3331
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3333
+ # Archives containing C++ object files must be created using
3334
+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3335
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3340
+ # version 8.0 and above of icpc choke on multiply defined symbols
3341
+ # if we add $predep_objects and $postdep_objects, however 7.1 and
3342
+ # earlier do not add the objects themselves.
3343
+ case `$CC -V 2>&1` in
3345
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3346
+ _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'
3348
+ *) # Version 8.0 or newer
3351
+ ia64*) tmp_idyn=' -i_dynamic';;
3353
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3354
+ _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'
3357
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3358
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3359
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3360
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3363
+ # Portland Group C++ compiler
3364
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3365
+ _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'
3367
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3368
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3369
+ _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'
3373
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3374
+ _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'
3376
+ runpath_var=LD_RUN_PATH
3377
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3378
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3380
+ # Commands to make compiler produce verbose output that lists
3381
+ # what "hidden" libraries, object files and flags are used when
3382
+ # linking a shared library.
3384
+ # There doesn't appear to be a way to prevent this compiler from
3385
+ # explicitly linking system object files so we need to strip them
3386
+ # from the output so that they don't get included in the library
3388
+ 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'
3393
+ # FIXME: insert proper C++ library support
3394
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3397
+ # FIXME: insert proper C++ library support
3398
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3401
+ case $cc_basename in
3403
+ # FIXME: insert proper C++ library support
3404
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3407
+ # FIXME: insert proper C++ library support
3408
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3412
+ netbsd* | netbsdelf*-gnu)
3413
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3414
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3416
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3417
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3418
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3420
+ # Workaround some broken pre-1.5 toolchains
3421
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3424
+ # C++ shared libraries are fairly broken
3425
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3428
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3429
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3430
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3431
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3432
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3433
+ _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'
3434
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3435
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3437
+ output_verbose_link_cmd='echo'
3440
+ case $cc_basename in
3442
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
3444
+ # KCC will only create a shared library if the output file
3445
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
3446
+ # to its proper name (with version) after linking.
3447
+ _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'
3449
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3450
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3452
+ # Archives containing C++ object files must be created using
3453
+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3454
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3458
+ # Rational C++ 2.4.1
3459
+ # FIXME: insert proper C++ library support
3460
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3463
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3464
+ _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'
3466
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3467
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3469
+ # Commands to make compiler produce verbose output that lists
3470
+ # what "hidden" libraries, object files and flags are used when
3471
+ # linking a shared library.
3473
+ # There doesn't appear to be a way to prevent this compiler from
3474
+ # explicitly linking system object files so we need to strip them
3475
+ # from the output so that they don't get included in the library
3477
+ 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'
3480
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3481
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3482
+ _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'
3484
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3485
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3487
+ # Commands to make compiler produce verbose output that lists
3488
+ # what "hidden" libraries, object files and flags are used when
3489
+ # linking a shared library.
3490
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3493
+ # FIXME: insert proper C++ library support
3494
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3500
+ case $cc_basename in
3502
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
3504
+ # KCC will only create a shared library if the output file
3505
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
3506
+ # to its proper name (with version) after linking.
3507
+ _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'
3509
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3510
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3512
+ # Archives containing C++ object files must be created using
3513
+ # the KAI C++ compiler.
3514
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3517
+ # Rational C++ 2.4.1
3518
+ # FIXME: insert proper C++ library support
3519
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3522
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3523
+ _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'
3524
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3525
+ echo "-hidden">> $lib.exp~
3526
+ $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~
3529
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3530
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3532
+ # Commands to make compiler produce verbose output that lists
3533
+ # what "hidden" libraries, object files and flags are used when
3534
+ # linking a shared library.
3536
+ # There doesn't appear to be a way to prevent this compiler from
3537
+ # explicitly linking system object files so we need to strip them
3538
+ # from the output so that they don't get included in the library
3540
+ 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'
3543
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3544
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3545
+ _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'
3547
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3548
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3550
+ # Commands to make compiler produce verbose output that lists
3551
+ # what "hidden" libraries, object files and flags are used when
3552
+ # linking a shared library.
3553
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3556
+ # FIXME: insert proper C++ library support
3557
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3563
+ # FIXME: insert proper C++ library support
3564
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3567
+ case $cc_basename in
3570
+ # FIXME: insert proper C++ library support
3571
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3575
+ # FIXME: insert proper C++ library support
3576
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3579
+ # FIXME: insert proper C++ library support
3580
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3585
+ case $cc_basename in
3587
+ # Sun C++ 4.2, 5.x and Centerline C++
3588
+ _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3589
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3590
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3591
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3592
+ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3594
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3595
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3597
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3599
+ # The C++ compiler is used as linker so we must use $wl
3600
+ # flag to pass the commands to the underlying system
3601
+ # linker. We must also pass each convience library through
3602
+ # to the system linker between allextract/defaultextract.
3603
+ # The C++ compiler will combine linker options so we
3604
+ # cannot just pass the convience library names through
3606
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
3607
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3610
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3612
+ output_verbose_link_cmd='echo'
3614
+ # Archives containing C++ object files must be created using
3615
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
3616
+ # necessary to make sure instantiated templates are included
3618
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3621
+ # Green Hills C++ Compiler
3622
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3624
+ # The C++ compiler must be used to create the archive.
3625
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3628
+ # GNU C++ compiler with Solaris linker
3629
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3630
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3631
+ if $CC --version | grep -v '^2\.7' > /dev/null; then
3632
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3633
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3634
+ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3636
+ # Commands to make compiler produce verbose output that lists
3637
+ # what "hidden" libraries, object files and flags are used when
3638
+ # linking a shared library.
3639
+ output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3641
+ # g++ 2.7 appears to require `-G' NOT `-shared' on this
3643
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3644
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3645
+ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3647
+ # Commands to make compiler produce verbose output that lists
3648
+ # what "hidden" libraries, object files and flags are used when
3649
+ # linking a shared library.
3650
+ output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3653
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3658
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3659
+ _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3660
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3661
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3662
+ runpath_var='LD_RUN_PATH'
3664
+ case $cc_basename in
3666
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3667
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3670
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3671
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3675
+ sysv5* | sco3.2v5* | sco5v6*)
3676
+ # Note: We can NOT use -z defs as we might desire, because we do not
3677
+ # link with -lc, and that would cause any symbols used from libc to
3678
+ # always be unresolved, which means just about no library would
3679
+ # ever link correctly. If we're not using GNU ld we use -z text
3680
+ # though, which does catch some bad symbols but isn't as heavy-handed
3682
+ # For security reasons, it is highly recommended that you always
3683
+ # use absolute paths for naming shared libraries, and exclude the
3684
+ # DT_RUNPATH tag from executables and libraries. But doing so
3685
+ # requires that you compile everything twice, which is a pain.
3686
+ # So that behaviour is only enabled if SCOABSPATH is set to a
3687
+ # non-empty value in the environment. Most likely only useful for
3688
+ # creating official distributions of packages.
3689
+ # This is a hack until libtool officially supports absolute path
3690
+ # names for shared libraries.
3691
+ _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3692
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3693
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3694
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3695
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3696
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3697
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3698
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3699
+ runpath_var='LD_RUN_PATH'
3701
+ case $cc_basename in
3703
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3704
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3707
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3708
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3713
+ case $cc_basename in
3715
+ # NonStop-UX NCC 3.20
3716
+ # FIXME: insert proper C++ library support
3717
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3720
+ # FIXME: insert proper C++ library support
3721
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3726
+ # FIXME: insert proper C++ library support
3727
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3730
+ # FIXME: insert proper C++ library support
3731
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
3734
+AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3735
+test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3737
+_LT_AC_TAGVAR(GCC, $1)="$GXX"
3738
+_LT_AC_TAGVAR(LD, $1)="$LD"
3740
+AC_LIBTOOL_POSTDEP_PREDEP($1)
3741
+AC_LIBTOOL_PROG_COMPILER_PIC($1)
3742
+AC_LIBTOOL_PROG_CC_C_O($1)
3743
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3744
+AC_LIBTOOL_PROG_LD_SHLIBS($1)
3745
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3746
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3748
+AC_LIBTOOL_CONFIG($1)
3755
+with_gnu_ldcxx=$with_gnu_ld
3756
+with_gnu_ld=$lt_save_with_gnu_ld
3757
+lt_cv_path_LDCXX=$lt_cv_path_LD
3758
+lt_cv_path_LD=$lt_save_path_LD
3759
+lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3760
+lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3761
+])# AC_LIBTOOL_LANG_CXX_CONFIG
3763
+# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3764
+# ------------------------------------
3765
+# Figure out "hidden" library dependencies from verbose
3766
+# compiler output when linking a shared library.
3767
+# Parse the compiler output and extract the necessary
3768
+# objects, libraries and library flags.
3769
+AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3770
+dnl we can't use the lt_simple_compile_test_code here,
3771
+dnl because it contains code intended for an executable,
3772
+dnl not a library. It's possible we should let each
3773
+dnl tag define a new lt_????_link_test_code variable,
3774
+dnl but it's only used here...
3775
+ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3777
+void foo (void) { a = 0; }
3779
+],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3783
+ Foo (void) { a = 0; }
3788
+],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3796
+],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3799
+ public void bar (void) {
3805
+dnl Parse the compiler output and extract the necessary
3806
+dnl objects, libraries and library flags.
3807
+if AC_TRY_EVAL(ac_compile); then
3808
+ # Parse the compiler output and extract the necessary
3809
+ # objects, libraries and library flags.
3811
+ # Sentinel used to keep track of whether or not we are before
3812
+ # the conftest object file.
3813
+ pre_test_object_deps_done=no
3815
+ # The `*' in the case matches for architectures that use `case' in
3816
+ # $output_verbose_cmd can trigger glob expansion during the loop
3817
+ # eval without this substitution.
3818
+ output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3820
+ for p in `eval $output_verbose_link_cmd`; do
3824
+ # Some compilers place space between "-{L,R}" and the path.
3825
+ # Remove the space.
3826
+ if test $p = "-L" \
3827
+ || test $p = "-R"; then
3834
+ if test "$pre_test_object_deps_done" = no; then
3837
+ # Internal compiler library paths should come after those
3838
+ # provided the user. The postdeps already come after the
3839
+ # user supplied libs so there is no need to process them.
3840
+ if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3841
+ _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3843
+ _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3846
+ # The "-l" case would never come before the object being
3847
+ # linked, so don't bother handling this case.
3850
+ if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3851
+ _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3853
+ _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3859
+ # This assumes that the test object file only shows up
3860
+ # once in the compiler output.
3861
+ if test "$p" = "conftest.$objext"; then
3862
+ pre_test_object_deps_done=yes
3866
+ if test "$pre_test_object_deps_done" = no; then
3867
+ if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3868
+ _LT_AC_TAGVAR(predep_objects, $1)="$p"
3870
+ _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3873
+ if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3874
+ _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3876
+ _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3881
+ *) ;; # Ignore the rest.
3889
+ echo "libtool.m4: error: problem compiling $1 test program"
3892
+$rm -f confest.$objext
3894
+# PORTME: override above test on systems where it is broken
3898
+ # Interix 3.5 installs completely hosed .la files for C++, so rather than
3899
+ # hack all around it, let's just trust "g++" to DTRT.
3900
+ _LT_AC_TAGVAR(predep_objects,$1)=
3901
+ _LT_AC_TAGVAR(postdep_objects,$1)=
3902
+ _LT_AC_TAGVAR(postdeps,$1)=
3906
+ case $cc_basename in
3908
+ # Adding this requires a known-good setup of shared libraries for
3909
+ # Sun compiler versions before 5.6, else PIC objects from an old
3910
+ # archive will be linked into the output, leading to subtle bugs.
3911
+ _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3918
+case " $_LT_AC_TAGVAR(postdeps, $1) " in
3919
+*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3921
+])# AC_LIBTOOL_POSTDEP_PREDEP
3923
+# AC_LIBTOOL_LANG_F77_CONFIG
3924
+# --------------------------
3925
+# Ensure that the configuration vars for the C compiler are
3926
+# suitably defined. Those variables are subsequently used by
3927
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3928
+AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
3929
+AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
3930
+[AC_REQUIRE([AC_PROG_F77])
3931
+AC_LANG_PUSH(Fortran 77)
3933
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3934
+_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3935
+_LT_AC_TAGVAR(always_export_symbols, $1)=no
3936
+_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3937
+_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3938
+_LT_AC_TAGVAR(hardcode_direct, $1)=no
3939
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3940
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3941
+_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3942
+_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3943
+_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3944
+_LT_AC_TAGVAR(module_cmds, $1)=
3945
+_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3946
+_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3947
+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3948
+_LT_AC_TAGVAR(no_undefined_flag, $1)=
3949
+_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3950
+_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3952
+# Source file extension for f77 test sources.
3955
+# Object file extension for compiled f77 test sources.
3957
+_LT_AC_TAGVAR(objext, $1)=$objext
3959
+# Code to be used in simple compile tests
3960
+lt_simple_compile_test_code=" subroutine t\n return\n end\n"
3962
+# Code to be used in simple link tests
3963
+lt_simple_link_test_code=" program t\n end\n"
3965
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3966
+_LT_AC_SYS_COMPILER
3968
+# save warnings/boilerplate of simple test code
3969
+_LT_COMPILER_BOILERPLATE
3970
+_LT_LINKER_BOILERPLATE
3972
+# Allow CC to be a program name with arguments.
3976
+_LT_AC_TAGVAR(compiler, $1)=$CC
3977
+_LT_CC_BASENAME([$compiler])
3979
+AC_MSG_CHECKING([if libtool supports shared libraries])
3980
+AC_MSG_RESULT([$can_build_shared])
3982
+AC_MSG_CHECKING([whether to build shared libraries])
3983
+test "$can_build_shared" = "no" && enable_shared=no
3985
+# On AIX, shared libraries and static libraries use the same namespace, and
3986
+# are all built from PIC.