Deleted Added
full compact
aclocal.m4 (186691) aclocal.m4 (192350)
1# generated automatically by aclocal 1.10 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4# 2005, 2006 Free Software Foundation, Inc.
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8

--- 4 unchanged lines hidden (view full) ---

13
14m4_if(m4_PACKAGE_VERSION, [2.61],,
15[m4_fatal([this file was generated for autoconf 2.61.
16You have another version of autoconf. If you want to use that,
17you should regenerate the build system entirely.], [63])])
18
19# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
20
1# generated automatically by aclocal 1.10 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4# 2005, 2006 Free Software Foundation, Inc.
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8

--- 4 unchanged lines hidden (view full) ---

13
14m4_if(m4_PACKAGE_VERSION, [2.61],,
15[m4_fatal([this file was generated for autoconf 2.61.
16You have another version of autoconf. If you want to use that,
17you should regenerate the build system entirely.], [63])])
18
19# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
20
21# serial 47 AC_PROG_LIBTOOL
21# serial 52 AC_PROG_LIBTOOL
22
23
24# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
25# -----------------------------------------------------------
26# If this macro is not defined by Autoconf, define it here.
27m4_ifdef([AC_PROVIDE_IFELSE],
28 [],
29 [m4_define([AC_PROVIDE_IFELSE],

--- 71 unchanged lines hidden (view full) ---

101AC_REQUIRE([AC_PROG_NM])dnl
102
103AC_REQUIRE([AC_PROG_LN_S])dnl
104AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
105# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
106AC_REQUIRE([AC_OBJEXT])dnl
107AC_REQUIRE([AC_EXEEXT])dnl
108dnl
22
23
24# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
25# -----------------------------------------------------------
26# If this macro is not defined by Autoconf, define it here.
27m4_ifdef([AC_PROVIDE_IFELSE],
28 [],
29 [m4_define([AC_PROVIDE_IFELSE],

--- 71 unchanged lines hidden (view full) ---

101AC_REQUIRE([AC_PROG_NM])dnl
102
103AC_REQUIRE([AC_PROG_LN_S])dnl
104AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
105# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
106AC_REQUIRE([AC_OBJEXT])dnl
107AC_REQUIRE([AC_EXEEXT])dnl
108dnl
109
110AC_LIBTOOL_SYS_MAX_CMD_LEN
111AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
112AC_LIBTOOL_OBJDIR
113
114AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
115_LT_AC_PROG_ECHO_BACKSLASH
116
117case $host_os in

--- 25 unchanged lines hidden (view full) ---

143
144# Constants:
145rm="rm -f"
146
147# Global variables:
148default_ofile=libtool
149can_build_shared=yes
150
109AC_LIBTOOL_SYS_MAX_CMD_LEN
110AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
111AC_LIBTOOL_OBJDIR
112
113AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
114_LT_AC_PROG_ECHO_BACKSLASH
115
116case $host_os in

--- 25 unchanged lines hidden (view full) ---

142
143# Constants:
144rm="rm -f"
145
146# Global variables:
147default_ofile=libtool
148can_build_shared=yes
149
151# All known linkers require a `.a' archive for static linking (except M$VC,
150# All known linkers require a `.a' archive for static linking (except MSVC,
152# which needs '.lib').
153libext=a
154ltmain="$ac_aux_dir/ltmain.sh"
155ofile="$default_ofile"
156with_gnu_ld="$lt_cv_prog_gnu_ld"
157
158AC_CHECK_TOOL(AR, ar, false)
159AC_CHECK_TOOL(RANLIB, ranlib, :)
160AC_CHECK_TOOL(STRIP, strip, :)
161
162old_CC="$CC"
163old_CFLAGS="$CFLAGS"
164
165# Set sane defaults for various variables
166test -z "$AR" && AR=ar
167test -z "$AR_FLAGS" && AR_FLAGS=cru
168test -z "$AS" && AS=as
169test -z "$CC" && CC=cc
170test -z "$LTCC" && LTCC=$CC
151# which needs '.lib').
152libext=a
153ltmain="$ac_aux_dir/ltmain.sh"
154ofile="$default_ofile"
155with_gnu_ld="$lt_cv_prog_gnu_ld"
156
157AC_CHECK_TOOL(AR, ar, false)
158AC_CHECK_TOOL(RANLIB, ranlib, :)
159AC_CHECK_TOOL(STRIP, strip, :)
160
161old_CC="$CC"
162old_CFLAGS="$CFLAGS"
163
164# Set sane defaults for various variables
165test -z "$AR" && AR=ar
166test -z "$AR_FLAGS" && AR_FLAGS=cru
167test -z "$AS" && AS=as
168test -z "$CC" && CC=cc
169test -z "$LTCC" && LTCC=$CC
170test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
171test -z "$DLLTOOL" && DLLTOOL=dlltool
172test -z "$LD" && LD=ld
173test -z "$LN_S" && LN_S="ln -s"
174test -z "$MAGIC_CMD" && MAGIC_CMD=file
175test -z "$NM" && NM=nm
176test -z "$SED" && SED=sed
177test -z "$OBJDUMP" && OBJDUMP=objdump
178test -z "$RANLIB" && RANLIB=:
179test -z "$STRIP" && STRIP=:
180test -z "$ac_objext" && ac_objext=o
181
182# Determine commands to create old-style static archives.
171test -z "$DLLTOOL" && DLLTOOL=dlltool
172test -z "$LD" && LD=ld
173test -z "$LN_S" && LN_S="ln -s"
174test -z "$MAGIC_CMD" && MAGIC_CMD=file
175test -z "$NM" && NM=nm
176test -z "$SED" && SED=sed
177test -z "$OBJDUMP" && OBJDUMP=objdump
178test -z "$RANLIB" && RANLIB=:
179test -z "$STRIP" && STRIP=:
180test -z "$ac_objext" && ac_objext=o
181
182# Determine commands to create old-style static archives.
183old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
183old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
184old_postinstall_cmds='chmod 644 $oldlib'
185old_postuninstall_cmds=
186
187if test -n "$RANLIB"; then
188 case $host_os in
189 openbsd*)
184old_postinstall_cmds='chmod 644 $oldlib'
185old_postuninstall_cmds=
186
187if test -n "$RANLIB"; then
188 case $host_os in
189 openbsd*)
190 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
190 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
191 ;;
192 *)
191 ;;
192 *)
193 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
193 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
194 ;;
195 esac
196 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
197fi
198
199_LT_CC_BASENAME([$compiler])
200
201# Only perform the check for file, if the check method requires it
202case $deplibs_check_method in
203file_magic*)
204 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
205 AC_PATH_MAGIC
206 fi
207 ;;
208esac
209
194 ;;
195 esac
196 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
197fi
198
199_LT_CC_BASENAME([$compiler])
200
201# Only perform the check for file, if the check method requires it
202case $deplibs_check_method in
203file_magic*)
204 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
205 AC_PATH_MAGIC
206 fi
207 ;;
208esac
209
210_LT_REQUIRED_DARWIN_CHECKS
211
210AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
211AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
212enable_win32_dll=yes, enable_win32_dll=no)
213
214AC_ARG_ENABLE([libtool-lock],
215 [AC_HELP_STRING([--disable-libtool-lock],
216 [avoid locking (might break parallel builds)])])
217test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

--- 15 unchanged lines hidden (view full) ---

233# _LT_AC_SYS_COMPILER
234# -------------------
235AC_DEFUN([_LT_AC_SYS_COMPILER],
236[AC_REQUIRE([AC_PROG_CC])dnl
237
238# If no C compiler was specified, use CC.
239LTCC=${LTCC-"$CC"}
240
212AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
213AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
214enable_win32_dll=yes, enable_win32_dll=no)
215
216AC_ARG_ENABLE([libtool-lock],
217 [AC_HELP_STRING([--disable-libtool-lock],
218 [avoid locking (might break parallel builds)])])
219test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

--- 15 unchanged lines hidden (view full) ---

235# _LT_AC_SYS_COMPILER
236# -------------------
237AC_DEFUN([_LT_AC_SYS_COMPILER],
238[AC_REQUIRE([AC_PROG_CC])dnl
239
240# If no C compiler was specified, use CC.
241LTCC=${LTCC-"$CC"}
242
243# If no C compiler flags were specified, use CFLAGS.
244LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
245
241# Allow CC to be a program name with arguments.
242compiler=$CC
243])# _LT_AC_SYS_COMPILER
244
245
246# _LT_CC_BASENAME(CC)
247# -------------------
248# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.

--- 10 unchanged lines hidden (view full) ---

259])
260
261
262# _LT_COMPILER_BOILERPLATE
263# ------------------------
264# Check for compiler boilerplate output or warnings with
265# the simple compiler test code.
266AC_DEFUN([_LT_COMPILER_BOILERPLATE],
246# Allow CC to be a program name with arguments.
247compiler=$CC
248])# _LT_AC_SYS_COMPILER
249
250
251# _LT_CC_BASENAME(CC)
252# -------------------
253# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.

--- 10 unchanged lines hidden (view full) ---

264])
265
266
267# _LT_COMPILER_BOILERPLATE
268# ------------------------
269# Check for compiler boilerplate output or warnings with
270# the simple compiler test code.
271AC_DEFUN([_LT_COMPILER_BOILERPLATE],
267[ac_outfile=conftest.$ac_objext
268printf "$lt_simple_compile_test_code" >conftest.$ac_ext
269eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
272[AC_REQUIRE([LT_AC_PROG_SED])dnl
273ac_outfile=conftest.$ac_objext
274echo "$lt_simple_compile_test_code" >conftest.$ac_ext
275eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
270_lt_compiler_boilerplate=`cat conftest.err`
271$rm conftest*
272])# _LT_COMPILER_BOILERPLATE
273
274
275# _LT_LINKER_BOILERPLATE
276# ----------------------
277# Check for linker boilerplate output or warnings with
278# the simple link test code.
279AC_DEFUN([_LT_LINKER_BOILERPLATE],
276_lt_compiler_boilerplate=`cat conftest.err`
277$rm conftest*
278])# _LT_COMPILER_BOILERPLATE
279
280
281# _LT_LINKER_BOILERPLATE
282# ----------------------
283# Check for linker boilerplate output or warnings with
284# the simple link test code.
285AC_DEFUN([_LT_LINKER_BOILERPLATE],
280[ac_outfile=conftest.$ac_objext
281printf "$lt_simple_link_test_code" >conftest.$ac_ext
282eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
286[AC_REQUIRE([LT_AC_PROG_SED])dnl
287ac_outfile=conftest.$ac_objext
288echo "$lt_simple_link_test_code" >conftest.$ac_ext
289eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
283_lt_linker_boilerplate=`cat conftest.err`
290_lt_linker_boilerplate=`cat conftest.err`
284$rm conftest*
291$rm -r conftest*
285])# _LT_LINKER_BOILERPLATE
286
292])# _LT_LINKER_BOILERPLATE
293
294# _LT_REQUIRED_DARWIN_CHECKS
295# --------------------------
296# Check for some things on darwin
297AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
298 case $host_os in
299 rhapsody* | darwin*)
300 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
301 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
287
302
303 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
304 [lt_cv_apple_cc_single_mod=no
305 if test -z "${LT_MULTI_MODULE}"; then
306 # By default we will add the -single_module flag. You can override
307 # by either setting the environment variable LT_MULTI_MODULE
308 # non-empty at configure time, or by adding -multi_module to the
309 # link flags.
310 echo "int foo(void){return 1;}" > conftest.c
311 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
312 -dynamiclib ${wl}-single_module conftest.c
313 if test -f libconftest.dylib; then
314 lt_cv_apple_cc_single_mod=yes
315 rm -rf libconftest.dylib*
316 fi
317 rm conftest.c
318 fi])
319 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
320 [lt_cv_ld_exported_symbols_list],
321 [lt_cv_ld_exported_symbols_list=no
322 save_LDFLAGS=$LDFLAGS
323 echo "_main" > conftest.sym
324 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
325 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
326 [lt_cv_ld_exported_symbols_list=yes],
327 [lt_cv_ld_exported_symbols_list=no])
328 LDFLAGS="$save_LDFLAGS"
329 ])
330 case $host_os in
331 rhapsody* | darwin1.[[0123]])
332 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
333 darwin1.*)
334 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
335 darwin*)
336 # if running on 10.5 or later, the deployment target defaults
337 # to the OS version, if on x86, and 10.4, the deployment
338 # target defaults to 10.4. Don't you love it?
339 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
340 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
341 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
342 10.[[012]]*)
343 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
344 10.*)
345 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
346 esac
347 ;;
348 esac
349 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
350 _lt_dar_single_mod='$single_module'
351 fi
352 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
353 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
354 else
355 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
356 fi
357 if test "$DSYMUTIL" != ":"; then
358 _lt_dsymutil="~$DSYMUTIL \$lib || :"
359 else
360 _lt_dsymutil=
361 fi
362 ;;
363 esac
364])
365
288# _LT_AC_SYS_LIBPATH_AIX
289# ----------------------
290# Links a minimal program and checks the executable
291# for the system default hardcoded library path. In most cases,
292# this is /usr/lib:/lib, but when the MPI compilers are used
293# the location of the communication and MPI libs are included too.
294# If we don't find anything, use the default library path according
295# to the aix ld manual.
296AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
366# _LT_AC_SYS_LIBPATH_AIX
367# ----------------------
368# Links a minimal program and checks the executable
369# for the system default hardcoded library path. In most cases,
370# this is /usr/lib:/lib, but when the MPI compilers are used
371# the location of the communication and MPI libs are included too.
372# If we don't find anything, use the default library path according
373# to the aix ld manual.
374AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
297[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
298aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
299}'`
375[AC_REQUIRE([LT_AC_PROG_SED])dnl
376AC_LINK_IFELSE(AC_LANG_PROGRAM,[
377lt_aix_libpath_sed='
378 /Import File Strings/,/^$/ {
379 /^0/ {
380 s/^0 *\(.*\)$/\1/
381 p
382 }
383 }'
384aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
300# Check for a 64-bit object if we didn't find anything.
385# Check for a 64-bit object if we didn't find anything.
301if 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; }
302}'`; fi],[])
386if test -z "$aix_libpath"; then
387 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
388fi],[])
303if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
304])# _LT_AC_SYS_LIBPATH_AIX
305
306
307# _LT_AC_SHELL_INIT(ARG)
308# ----------------------
309AC_DEFUN([_LT_AC_SHELL_INIT],
310[ifdef([AC_DIVERSION_NOTICE],

--- 48 unchanged lines hidden (view full) ---

359# if CDPATH is set.
360(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
361
362if test -z "$ECHO"; then
363if test "X${echo_test_string+set}" != Xset; then
364# find a string as large as possible, as long as the shell can cope with it
365 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
366 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
389if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
390])# _LT_AC_SYS_LIBPATH_AIX
391
392
393# _LT_AC_SHELL_INIT(ARG)
394# ----------------------
395AC_DEFUN([_LT_AC_SHELL_INIT],
396[ifdef([AC_DIVERSION_NOTICE],

--- 48 unchanged lines hidden (view full) ---

445# if CDPATH is set.
446(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
447
448if test -z "$ECHO"; then
449if test "X${echo_test_string+set}" != Xset; then
450# find a string as large as possible, as long as the shell can cope with it
451 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
452 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
367 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
368 echo_test_string="`eval $cmd`" &&
453 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
454 echo_test_string=`eval $cmd` &&
369 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
370 then
371 break
372 fi
373 done
374fi
375
376if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&

--- 148 unchanged lines hidden (view full) ---

525 LD="${LD-ld} -64"
526 ;;
527 esac
528 fi
529 fi
530 rm -rf conftest*
531 ;;
532
455 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
456 then
457 break
458 fi
459 done
460fi
461
462if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&

--- 148 unchanged lines hidden (view full) ---

611 LD="${LD-ld} -64"
612 ;;
613 esac
614 fi
615 fi
616 rm -rf conftest*
617 ;;
618
533x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
619x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
620s390*-*linux*|sparc*-*linux*)
534 # Find out which ABI we are using.
535 echo 'int i;' > conftest.$ac_ext
536 if AC_TRY_EVAL(ac_compile); then
621 # Find out which ABI we are using.
622 echo 'int i;' > conftest.$ac_ext
623 if AC_TRY_EVAL(ac_compile); then
537 case "`/usr/bin/file conftest.o`" in
624 case `/usr/bin/file conftest.o` in
538 *32-bit*)
539 case $host in
625 *32-bit*)
626 case $host in
627 x86_64-*kfreebsd*-gnu)
628 LD="${LD-ld} -m elf_i386_fbsd"
629 ;;
540 x86_64-*linux*)
541 LD="${LD-ld} -m elf_i386"
542 ;;
543 ppc64-*linux*|powerpc64-*linux*)
544 LD="${LD-ld} -m elf32ppclinux"
545 ;;
546 s390x-*linux*)
547 LD="${LD-ld} -m elf_s390"
548 ;;
549 sparc64-*linux*)
550 LD="${LD-ld} -m elf32_sparc"
551 ;;
552 esac
553 ;;
554 *64-bit*)
555 case $host in
630 x86_64-*linux*)
631 LD="${LD-ld} -m elf_i386"
632 ;;
633 ppc64-*linux*|powerpc64-*linux*)
634 LD="${LD-ld} -m elf32ppclinux"
635 ;;
636 s390x-*linux*)
637 LD="${LD-ld} -m elf_s390"
638 ;;
639 sparc64-*linux*)
640 LD="${LD-ld} -m elf32_sparc"
641 ;;
642 esac
643 ;;
644 *64-bit*)
645 case $host in
646 x86_64-*kfreebsd*-gnu)
647 LD="${LD-ld} -m elf_x86_64_fbsd"
648 ;;
556 x86_64-*linux*)
557 LD="${LD-ld} -m elf_x86_64"
558 ;;
559 ppc*-*linux*|powerpc*-*linux*)
560 LD="${LD-ld} -m elf64ppc"
561 ;;
562 s390*-*linux*)
563 LD="${LD-ld} -m elf64_s390"

--- 16 unchanged lines hidden (view full) ---

580 [AC_LANG_PUSH(C)
581 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
582 AC_LANG_POP])
583 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
584 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
585 CFLAGS="$SAVE_CFLAGS"
586 fi
587 ;;
649 x86_64-*linux*)
650 LD="${LD-ld} -m elf_x86_64"
651 ;;
652 ppc*-*linux*|powerpc*-*linux*)
653 LD="${LD-ld} -m elf64ppc"
654 ;;
655 s390*-*linux*)
656 LD="${LD-ld} -m elf64_s390"

--- 16 unchanged lines hidden (view full) ---

673 [AC_LANG_PUSH(C)
674 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
675 AC_LANG_POP])
676 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
677 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
678 CFLAGS="$SAVE_CFLAGS"
679 fi
680 ;;
681sparc*-*solaris*)
682 # Find out which ABI we are using.
683 echo 'int i;' > conftest.$ac_ext
684 if AC_TRY_EVAL(ac_compile); then
685 case `/usr/bin/file conftest.o` in
686 *64-bit*)
687 case $lt_cv_prog_gnu_ld in
688 yes*) LD="${LD-ld} -m elf64_sparc" ;;
689 *)
690 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
691 LD="${LD-ld} -64"
692 fi
693 ;;
694 esac
695 ;;
696 esac
697 fi
698 rm -rf conftest*
699 ;;
700
588AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
589[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
590 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
591 AC_CHECK_TOOL(AS, as, false)
592 AC_CHECK_TOOL(OBJDUMP, objdump, false)
593 ;;
594 ])
595esac

--- 7 unchanged lines hidden (view full) ---

603# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
604# ----------------------------------------------------------------
605# Check whether the given compiler option works
606AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
607[AC_REQUIRE([LT_AC_PROG_SED])
608AC_CACHE_CHECK([$1], [$2],
609 [$2=no
610 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
701AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
702[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
703 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
704 AC_CHECK_TOOL(AS, as, false)
705 AC_CHECK_TOOL(OBJDUMP, objdump, false)
706 ;;
707 ])
708esac

--- 7 unchanged lines hidden (view full) ---

716# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
717# ----------------------------------------------------------------
718# Check whether the given compiler option works
719AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
720[AC_REQUIRE([LT_AC_PROG_SED])
721AC_CACHE_CHECK([$1], [$2],
722 [$2=no
723 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
611 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
612 lt_compiler_flag="$3"
613 # Insert the option either (1) after the last *FLAGS variable, or
614 # (2) before a word containing "conftest.", or (3) at the end.
615 # Note that $ac_compile itself does not contain backslashes and begins
616 # with a dollar sign (not a hyphen), so the echo should work correctly.
617 # The option is referenced via a variable to avoid confusing sed.
618 lt_compile=`echo "$ac_compile" | $SED \
725 lt_compiler_flag="$3"
726 # Insert the option either (1) after the last *FLAGS variable, or
727 # (2) before a word containing "conftest.", or (3) at the end.
728 # Note that $ac_compile itself does not contain backslashes and begins
729 # with a dollar sign (not a hyphen), so the echo should work correctly.
730 # The option is referenced via a variable to avoid confusing sed.
731 lt_compile=`echo "$ac_compile" | $SED \
619 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
620 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
621 -e 's:$: $lt_compiler_flag:'`
622 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
623 (eval "$lt_compile" 2>conftest.err)
624 ac_status=$?
625 cat conftest.err >&AS_MESSAGE_LOG_FD
626 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
627 if (exit $ac_status) && test -s "$ac_outfile"; then
628 # The compiler can only warn and ignore the option if not recognized
629 # So say no if there are warnings other than the usual output.
733 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
734 -e 's:$: $lt_compiler_flag:'`
735 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
736 (eval "$lt_compile" 2>conftest.err)
737 ac_status=$?
738 cat conftest.err >&AS_MESSAGE_LOG_FD
739 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
740 if (exit $ac_status) && test -s "$ac_outfile"; then
741 # The compiler can only warn and ignore the option if not recognized
742 # So say no if there are warnings other than the usual output.
630 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
631 $SED '/^$/d' conftest.err >conftest.er2
632 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
743 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
745 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
633 $2=yes
634 fi
635 fi
636 $rm conftest*
637])
638
639if test x"[$]$2" = xyes; then
640 ifelse([$5], , :, [$5])
641else
642 ifelse([$6], , :, [$6])
643fi
644])# AC_LIBTOOL_COMPILER_OPTION
645
646
647# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
648# [ACTION-SUCCESS], [ACTION-FAILURE])
649# ------------------------------------------------------------
650# Check whether the given compiler option works
651AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
746 $2=yes
747 fi
748 fi
749 $rm conftest*
750])
751
752if test x"[$]$2" = xyes; then
753 ifelse([$5], , :, [$5])
754else
755 ifelse([$6], , :, [$6])
756fi
757])# AC_LIBTOOL_COMPILER_OPTION
758
759
760# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
761# [ACTION-SUCCESS], [ACTION-FAILURE])
762# ------------------------------------------------------------
763# Check whether the given compiler option works
764AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
652[AC_CACHE_CHECK([$1], [$2],
765[AC_REQUIRE([LT_AC_PROG_SED])dnl
766AC_CACHE_CHECK([$1], [$2],
653 [$2=no
654 save_LDFLAGS="$LDFLAGS"
655 LDFLAGS="$LDFLAGS $3"
767 [$2=no
768 save_LDFLAGS="$LDFLAGS"
769 LDFLAGS="$LDFLAGS $3"
656 printf "$lt_simple_link_test_code" > conftest.$ac_ext
770 echo "$lt_simple_link_test_code" > conftest.$ac_ext
657 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
771 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
658 # The compiler can only warn and ignore the option if not recognized
772 # The linker can only warn and ignore the option if not recognized
659 # So say no if there are warnings
660 if test -s conftest.err; then
661 # Append any errors to the config.log.
662 cat conftest.err 1>&AS_MESSAGE_LOG_FD
773 # So say no if there are warnings
774 if test -s conftest.err; then
775 # Append any errors to the config.log.
776 cat conftest.err 1>&AS_MESSAGE_LOG_FD
663 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
664 $SED '/^$/d' conftest.err >conftest.er2
777 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
665 if diff conftest.exp conftest.er2 >/dev/null; then
666 $2=yes
667 fi
668 else
669 $2=yes
670 fi
671 fi
779 if diff conftest.exp conftest.er2 >/dev/null; then
780 $2=yes
781 fi
782 else
783 $2=yes
784 fi
785 fi
672 $rm conftest*
786 $rm -r conftest*
673 LDFLAGS="$save_LDFLAGS"
674])
675
676if test x"[$]$2" = xyes; then
677 ifelse([$4], , :, [$4])
678else
679 ifelse([$5], , :, [$5])
680fi

--- 44 unchanged lines hidden (view full) ---

725
726 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
727 # This has been around since 386BSD, at least. Likely further.
728 if test -x /sbin/sysctl; then
729 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
730 elif test -x /usr/sbin/sysctl; then
731 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
732 else
787 LDFLAGS="$save_LDFLAGS"
788])
789
790if test x"[$]$2" = xyes; then
791 ifelse([$4], , :, [$4])
792else
793 ifelse([$5], , :, [$5])
794fi

--- 44 unchanged lines hidden (view full) ---

839
840 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
841 # This has been around since 386BSD, at least. Likely further.
842 if test -x /sbin/sysctl; then
843 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
844 elif test -x /usr/sbin/sysctl; then
845 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
846 else
733 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
847 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
734 fi
735 # And add a safety zone
736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
738 ;;
848 fi
849 # And add a safety zone
850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
852 ;;
853
854 interix*)
855 # We know the value 262144 and hardcode it with a safety zone (like BSD)
856 lt_cv_sys_max_cmd_len=196608
857 ;;
858
739 osf*)
740 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
741 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
742 # nice to cause kernel panics so lets avoid the loop below.
743 # First set a reasonable default.
744 lt_cv_sys_max_cmd_len=16384
859 osf*)
860 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
861 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
862 # nice to cause kernel panics so lets avoid the loop below.
863 # First set a reasonable default.
864 lt_cv_sys_max_cmd_len=16384
745 #
865 #
746 if test -x /sbin/sysconfig; then
747 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
748 *1*) lt_cv_sys_max_cmd_len=-1 ;;
749 esac
750 fi
751 ;;
866 if test -x /sbin/sysconfig; then
867 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
868 *1*) lt_cv_sys_max_cmd_len=-1 ;;
869 esac
870 fi
871 ;;
872 sco3.2v5*)
873 lt_cv_sys_max_cmd_len=102400
874 ;;
875 sysv5* | sco5v6* | sysv4.2uw2*)
876 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
877 if test -n "$kargmax"; then
878 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
879 else
880 lt_cv_sys_max_cmd_len=32768
881 fi
882 ;;
752 *)
883 *)
753 # If test is not a shell built-in, we'll probably end up computing a
754 # maximum length that is only half of the actual maximum length, but
755 # we can't tell.
756 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
757 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
884 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
885 if test -n "$lt_cv_sys_max_cmd_len"; then
886 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
887 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
888 else
889 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
890 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
758 = "XX$teststring") >/dev/null 2>&1 &&
891 = "XX$teststring") >/dev/null 2>&1 &&
759 new_result=`expr "X$teststring" : ".*" 2>&1` &&
760 lt_cv_sys_max_cmd_len=$new_result &&
761 test $i != 17 # 1/2 MB should be enough
762 do
763 i=`expr $i + 1`
764 teststring=$teststring$teststring
765 done
766 teststring=
767 # Add a significant safety factor because C++ compilers can tack on massive
768 # amounts of additional arguments before passing them to the linker.
769 # It appears as though 1/2 is a usable value.
770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
892 new_result=`expr "X$teststring" : ".*" 2>&1` &&
893 lt_cv_sys_max_cmd_len=$new_result &&
894 test $i != 17 # 1/2 MB should be enough
895 do
896 i=`expr $i + 1`
897 teststring=$teststring$teststring
898 done
899 teststring=
900 # Add a significant safety factor because C++ compilers can tack on massive
901 # amounts of additional arguments before passing them to the linker.
902 # It appears as though 1/2 is a usable value.
903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
904 fi
771 ;;
772 esac
773])
774if test -n $lt_cv_sys_max_cmd_len ; then
775 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
776else
777 AC_MSG_RESULT(none)
778fi
779])# AC_LIBTOOL_SYS_MAX_CMD_LEN
780
781
782# _LT_AC_CHECK_DLFCN
905 ;;
906 esac
907])
908if test -n $lt_cv_sys_max_cmd_len ; then
909 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
910else
911 AC_MSG_RESULT(none)
912fi
913])# AC_LIBTOOL_SYS_MAX_CMD_LEN
914
915
916# _LT_AC_CHECK_DLFCN
783# --------------------
917# ------------------
784AC_DEFUN([_LT_AC_CHECK_DLFCN],
785[AC_CHECK_HEADERS(dlfcn.h)dnl
786])# _LT_AC_CHECK_DLFCN
787
788
789# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
790# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
918AC_DEFUN([_LT_AC_CHECK_DLFCN],
919[AC_CHECK_HEADERS(dlfcn.h)dnl
920])# _LT_AC_CHECK_DLFCN
921
922
923# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
924# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
791# ------------------------------------------------------------------
925# ---------------------------------------------------------------------
792AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
793[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
794if test "$cross_compiling" = yes; then :
795 [$4]
796else
797 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
798 lt_status=$lt_dlunknown
799 cat > conftest.$ac_ext <<EOF

--- 49 unchanged lines hidden (view full) ---

849 int status = $lt_dlunknown;
850
851 if (self)
852 {
853 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
854 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
855 /* dlclose (self); */
856 }
926AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
927[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
928if test "$cross_compiling" = yes; then :
929 [$4]
930else
931 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
932 lt_status=$lt_dlunknown
933 cat > conftest.$ac_ext <<EOF

--- 49 unchanged lines hidden (view full) ---

983 int status = $lt_dlunknown;
984
985 if (self)
986 {
987 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
988 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
989 /* dlclose (self); */
990 }
991 else
992 puts (dlerror ());
857
858 exit (status);
859}]
860EOF
861 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
993
994 exit (status);
995}]
996EOF
997 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
862 (./conftest; exit; ) 2>/dev/null
998 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
863 lt_status=$?
864 case x$lt_status in
865 x$lt_dlno_uscore) $1 ;;
866 x$lt_dlneed_uscore) $2 ;;
999 lt_status=$?
1000 case x$lt_status in
1001 x$lt_dlno_uscore) $1 ;;
1002 x$lt_dlneed_uscore) $2 ;;
867 x$lt_unknown|x*) $3 ;;
1003 x$lt_dlunknown|x*) $3 ;;
868 esac
869 else :
870 # compilation failed
871 $3
872 fi
873fi
874rm -fr conftest*
875])# _LT_AC_TRY_DLOPEN_SELF
876
877
878# AC_LIBTOOL_DLOPEN_SELF
1004 esac
1005 else :
1006 # compilation failed
1007 $3
1008 fi
1009fi
1010rm -fr conftest*
1011])# _LT_AC_TRY_DLOPEN_SELF
1012
1013
1014# AC_LIBTOOL_DLOPEN_SELF
879# -------------------
1015# ----------------------
880AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
881[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
882if test "x$enable_dlopen" != xyes; then
883 enable_dlopen=unknown
884 enable_dlopen_self=unknown
885 enable_dlopen_self_static=unknown
886else
887 lt_cv_dlopen=no

--- 25 unchanged lines hidden (view full) ---

913 lt_cv_dlopen_self=yes
914 ])
915 ;;
916
917 *)
918 AC_CHECK_FUNC([shl_load],
919 [lt_cv_dlopen="shl_load"],
920 [AC_CHECK_LIB([dld], [shl_load],
1016AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1017[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1018if test "x$enable_dlopen" != xyes; then
1019 enable_dlopen=unknown
1020 enable_dlopen_self=unknown
1021 enable_dlopen_self_static=unknown
1022else
1023 lt_cv_dlopen=no

--- 25 unchanged lines hidden (view full) ---

1049 lt_cv_dlopen_self=yes
1050 ])
1051 ;;
1052
1053 *)
1054 AC_CHECK_FUNC([shl_load],
1055 [lt_cv_dlopen="shl_load"],
1056 [AC_CHECK_LIB([dld], [shl_load],
921 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1057 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
922 [AC_CHECK_FUNC([dlopen],
923 [lt_cv_dlopen="dlopen"],
924 [AC_CHECK_LIB([dl], [dlopen],
925 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
926 [AC_CHECK_LIB([svld], [dlopen],
927 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
928 [AC_CHECK_LIB([dld], [dld_link],
1058 [AC_CHECK_FUNC([dlopen],
1059 [lt_cv_dlopen="dlopen"],
1060 [AC_CHECK_LIB([dl], [dlopen],
1061 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1062 [AC_CHECK_LIB([svld], [dlopen],
1063 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1064 [AC_CHECK_LIB([dld], [dld_link],
929 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1065 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
930 ])
931 ])
932 ])
933 ])
934 ])
935 ;;
936 esac
937

--- 4 unchanged lines hidden (view full) ---

942 fi
943
944 case $lt_cv_dlopen in
945 dlopen)
946 save_CPPFLAGS="$CPPFLAGS"
947 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
948
949 save_LDFLAGS="$LDFLAGS"
1066 ])
1067 ])
1068 ])
1069 ])
1070 ])
1071 ;;
1072 esac
1073

--- 4 unchanged lines hidden (view full) ---

1078 fi
1079
1080 case $lt_cv_dlopen in
1081 dlopen)
1082 save_CPPFLAGS="$CPPFLAGS"
1083 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1084
1085 save_LDFLAGS="$LDFLAGS"
950 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1086 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
951
952 save_LIBS="$LIBS"
953 LIBS="$lt_cv_dlopen_libs $LIBS"
954
955 AC_CACHE_CHECK([whether a program can dlopen itself],
956 lt_cv_dlopen_self, [dnl
957 _LT_AC_TRY_DLOPEN_SELF(
958 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
959 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
960 ])
961
962 if test "x$lt_cv_dlopen_self" = xyes; then
1087
1088 save_LIBS="$LIBS"
1089 LIBS="$lt_cv_dlopen_libs $LIBS"
1090
1091 AC_CACHE_CHECK([whether a program can dlopen itself],
1092 lt_cv_dlopen_self, [dnl
1093 _LT_AC_TRY_DLOPEN_SELF(
1094 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1095 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1096 ])
1097
1098 if test "x$lt_cv_dlopen_self" = xyes; then
963 LDFLAGS="$LDFLAGS $link_static_flag"
1099 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
964 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
965 lt_cv_dlopen_self_static, [dnl
966 _LT_AC_TRY_DLOPEN_SELF(
967 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
968 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
969 ])
970 fi
971

--- 15 unchanged lines hidden (view full) ---

987fi
988])# AC_LIBTOOL_DLOPEN_SELF
989
990
991# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
992# ---------------------------------
993# Check to see if options -c and -o are simultaneously supported by compiler
994AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1100 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1101 lt_cv_dlopen_self_static, [dnl
1102 _LT_AC_TRY_DLOPEN_SELF(
1103 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1104 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1105 ])
1106 fi
1107

--- 15 unchanged lines hidden (view full) ---

1123fi
1124])# AC_LIBTOOL_DLOPEN_SELF
1125
1126
1127# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1128# ---------------------------------
1129# Check to see if options -c and -o are simultaneously supported by compiler
1130AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
995[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1131[AC_REQUIRE([LT_AC_PROG_SED])dnl
1132AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
996AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
997 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
998 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
999 $rm -r conftest 2>/dev/null
1000 mkdir conftest
1001 cd conftest
1002 mkdir out
1133AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1134 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1135 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1136 $rm -r conftest 2>/dev/null
1137 mkdir conftest
1138 cd conftest
1139 mkdir out
1003 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1004
1005 lt_compiler_flag="-o out/conftest2.$ac_objext"
1006 # Insert the option either (1) after the last *FLAGS variable, or
1007 # (2) before a word containing "conftest.", or (3) at the end.
1008 # Note that $ac_compile itself does not contain backslashes and begins
1009 # with a dollar sign (not a hyphen), so the echo should work correctly.
1010 lt_compile=`echo "$ac_compile" | $SED \
1141
1142 lt_compiler_flag="-o out/conftest2.$ac_objext"
1143 # Insert the option either (1) after the last *FLAGS variable, or
1144 # (2) before a word containing "conftest.", or (3) at the end.
1145 # Note that $ac_compile itself does not contain backslashes and begins
1146 # with a dollar sign (not a hyphen), so the echo should work correctly.
1147 lt_compile=`echo "$ac_compile" | $SED \
1011 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1012 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1013 -e 's:$: $lt_compiler_flag:'`
1014 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1015 (eval "$lt_compile" 2>out/conftest.err)
1016 ac_status=$?
1017 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1018 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1019 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1020 then
1021 # The compiler can only warn and ignore the option if not recognized
1022 # So say no if there are warnings
1149 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1150 -e 's:$: $lt_compiler_flag:'`
1151 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1152 (eval "$lt_compile" 2>out/conftest.err)
1153 ac_status=$?
1154 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1155 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1156 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1157 then
1158 # The compiler can only warn and ignore the option if not recognized
1159 # So say no if there are warnings
1023 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1024 $SED '/^$/d' out/conftest.err >out/conftest.er2
1025 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1160 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1161 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1162 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1026 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1027 fi
1028 fi
1163 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1164 fi
1165 fi
1029 chmod u+w .
1166 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1030 $rm conftest*
1031 # SGI C++ compiler will create directory out/ii_files/ for
1032 # template instantiation
1033 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1034 $rm out/* && rmdir out
1035 cd ..
1036 rmdir conftest
1037 $rm conftest*

--- 97 unchanged lines hidden (view full) ---

1135 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1136 AC_MSG_RESULT([yes])
1137else
1138# FIXME - insert some real tests, host_os isn't really good enough
1139 case $host_os in
1140 darwin*)
1141 if test -n "$STRIP" ; then
1142 striplib="$STRIP -x"
1167 $rm conftest*
1168 # SGI C++ compiler will create directory out/ii_files/ for
1169 # template instantiation
1170 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1171 $rm out/* && rmdir out
1172 cd ..
1173 rmdir conftest
1174 $rm conftest*

--- 97 unchanged lines hidden (view full) ---

1272 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1273 AC_MSG_RESULT([yes])
1274else
1275# FIXME - insert some real tests, host_os isn't really good enough
1276 case $host_os in
1277 darwin*)
1278 if test -n "$STRIP" ; then
1279 striplib="$STRIP -x"
1280 old_striplib="$STRIP -S"
1143 AC_MSG_RESULT([yes])
1144 else
1145 AC_MSG_RESULT([no])
1146fi
1147 ;;
1148 *)
1149 AC_MSG_RESULT([no])
1150 ;;
1151 esac
1152fi
1153])# AC_LIBTOOL_SYS_LIB_STRIP
1154
1155
1156# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1157# -----------------------------
1158# PORTME Fill in your ld.so characteristics
1159AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1281 AC_MSG_RESULT([yes])
1282 else
1283 AC_MSG_RESULT([no])
1284fi
1285 ;;
1286 *)
1287 AC_MSG_RESULT([no])
1288 ;;
1289 esac
1290fi
1291])# AC_LIBTOOL_SYS_LIB_STRIP
1292
1293
1294# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1295# -----------------------------
1296# PORTME Fill in your ld.so characteristics
1297AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1160[AC_MSG_CHECKING([dynamic linker characteristics])
1298[AC_REQUIRE([LT_AC_PROG_SED])dnl
1299AC_MSG_CHECKING([dynamic linker characteristics])
1161library_names_spec=
1162libname_spec='lib$name'
1163soname_spec=
1164shrext_cmds=".so"
1165postinstall_cmds=
1166postuninstall_cmds=
1167finish_cmds=
1168finish_eval=
1169shlibpath_var=
1170shlibpath_overrides_runpath=unknown
1171version_type=none
1172dynamic_linker="$host_os ld.so"
1173sys_lib_dlsearch_path_spec="/lib /usr/lib"
1300library_names_spec=
1301libname_spec='lib$name'
1302soname_spec=
1303shrext_cmds=".so"
1304postinstall_cmds=
1305postuninstall_cmds=
1306finish_cmds=
1307finish_eval=
1308shlibpath_var=
1309shlibpath_overrides_runpath=unknown
1310version_type=none
1311dynamic_linker="$host_os ld.so"
1312sys_lib_dlsearch_path_spec="/lib /usr/lib"
1313m4_if($1,[],[
1174if test "$GCC" = yes; then
1314if test "$GCC" = yes; then
1175 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1176 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1315 case $host_os in
1316 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1317 *) lt_awk_arg="/^libraries:/" ;;
1318 esac
1319 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1320 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1177 # if the path contains ";" then we assume it to be the separator
1178 # otherwise default to the standard path separator (i.e. ":") - it is
1179 # assumed that no part of a normal pathname contains ";" but that should
1180 # okay in the real world where ";" in dirpaths is itself problematic.
1321 # if the path contains ";" then we assume it to be the separator
1322 # otherwise default to the standard path separator (i.e. ":") - it is
1323 # assumed that no part of a normal pathname contains ";" but that should
1324 # okay in the real world where ";" in dirpaths is itself problematic.
1181 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1325 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1182 else
1326 else
1183 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1327 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1184 fi
1328 fi
1329 # Ok, now we have the path, separated by spaces, we can step through it
1330 # and add multilib dir if necessary.
1331 lt_tmp_lt_search_path_spec=
1332 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1333 for lt_sys_path in $lt_search_path_spec; do
1334 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1335 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1336 else
1337 test -d "$lt_sys_path" && \
1338 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1339 fi
1340 done
1341 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1342BEGIN {RS=" "; FS="/|\n";} {
1343 lt_foo="";
1344 lt_count=0;
1345 for (lt_i = NF; lt_i > 0; lt_i--) {
1346 if ($lt_i != "" && $lt_i != ".") {
1347 if ($lt_i == "..") {
1348 lt_count++;
1349 } else {
1350 if (lt_count == 0) {
1351 lt_foo="/" $lt_i lt_foo;
1352 } else {
1353 lt_count--;
1354 }
1355 }
1356 }
1357 }
1358 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1359 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1360}'`
1361 sys_lib_search_path_spec=`echo $lt_search_path_spec`
1185else
1186 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1362else
1363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1187fi
1364fi])
1188need_lib_prefix=unknown
1189hardcode_into_libs=no
1190
1191# when you set need_version to no, make sure it does not cause -set_version
1192# flags to be left without arguments
1193need_version=unknown
1194
1195case $host_os in
1196aix3*)
1197 version_type=linux
1198 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1199 shlibpath_var=LIBPATH
1200
1201 # AIX 3 has no versioning support, so we append a major version to the name.
1202 soname_spec='${libname}${release}${shared_ext}$major'
1203 ;;
1204
1365need_lib_prefix=unknown
1366hardcode_into_libs=no
1367
1368# when you set need_version to no, make sure it does not cause -set_version
1369# flags to be left without arguments
1370need_version=unknown
1371
1372case $host_os in
1373aix3*)
1374 version_type=linux
1375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1376 shlibpath_var=LIBPATH
1377
1378 # AIX 3 has no versioning support, so we append a major version to the name.
1379 soname_spec='${libname}${release}${shared_ext}$major'
1380 ;;
1381
1205aix4* | aix5*)
1382aix[[4-9]]*)
1206 version_type=linux
1207 need_lib_prefix=no
1208 need_version=no
1209 hardcode_into_libs=yes
1210 if test "$host_cpu" = ia64; then
1211 # AIX 5 supports IA64
1212 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1213 shlibpath_var=LD_LIBRARY_PATH

--- 67 unchanged lines hidden (view full) ---

1281 case $GCC,$host_os in
1282 yes,cygwin* | yes,mingw* | yes,pw32*)
1283 library_names_spec='$libname.dll.a'
1284 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1285 postinstall_cmds='base_file=`basename \${file}`~
1286 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1287 dldir=$destdir/`dirname \$dlpath`~
1288 test -d \$dldir || mkdir -p \$dldir~
1383 version_type=linux
1384 need_lib_prefix=no
1385 need_version=no
1386 hardcode_into_libs=yes
1387 if test "$host_cpu" = ia64; then
1388 # AIX 5 supports IA64
1389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1390 shlibpath_var=LD_LIBRARY_PATH

--- 67 unchanged lines hidden (view full) ---

1458 case $GCC,$host_os in
1459 yes,cygwin* | yes,mingw* | yes,pw32*)
1460 library_names_spec='$libname.dll.a'
1461 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1462 postinstall_cmds='base_file=`basename \${file}`~
1463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1464 dldir=$destdir/`dirname \$dlpath`~
1465 test -d \$dldir || mkdir -p \$dldir~
1289 $install_prog $dir/$dlname \$dldir/$dlname'
1466 $install_prog $dir/$dlname \$dldir/$dlname~
1467 chmod a+x \$dldir/$dlname'
1290 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1291 dlpath=$dir/\$dldll~
1292 $rm \$dlpath'
1293 shlibpath_overrides_runpath=yes
1294
1295 case $host_os in
1296 cygwin*)
1297 # Cygwin DLLs use 'cyg' prefix rather than 'lib'

--- 36 unchanged lines hidden (view full) ---

1334 dynamic_linker="$host_os dyld"
1335 version_type=darwin
1336 need_lib_prefix=no
1337 need_version=no
1338 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1339 soname_spec='${libname}${release}${major}$shared_ext'
1340 shlibpath_overrides_runpath=yes
1341 shlibpath_var=DYLD_LIBRARY_PATH
1468 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1469 dlpath=$dir/\$dldll~
1470 $rm \$dlpath'
1471 shlibpath_overrides_runpath=yes
1472
1473 case $host_os in
1474 cygwin*)
1475 # Cygwin DLLs use 'cyg' prefix rather than 'lib'

--- 36 unchanged lines hidden (view full) ---

1512 dynamic_linker="$host_os dyld"
1513 version_type=darwin
1514 need_lib_prefix=no
1515 need_version=no
1516 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1517 soname_spec='${libname}${release}${major}$shared_ext'
1518 shlibpath_overrides_runpath=yes
1519 shlibpath_var=DYLD_LIBRARY_PATH
1342 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
1343 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1344 if test "$GCC" = yes; then
1345 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"`
1346 else
1347 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1348 fi
1520 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1521 m4_if([$1], [],[
1522 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1349 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1350 ;;
1351
1352dgux*)
1353 version_type=linux
1354 need_lib_prefix=no
1355 need_version=no
1356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1357 soname_spec='${libname}${release}${shared_ext}$major'
1358 shlibpath_var=LD_LIBRARY_PATH
1359 ;;
1360
1361freebsd1*)
1362 dynamic_linker=no
1363 ;;
1364
1523 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1524 ;;
1525
1526dgux*)
1527 version_type=linux
1528 need_lib_prefix=no
1529 need_version=no
1530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1531 soname_spec='${libname}${release}${shared_ext}$major'
1532 shlibpath_var=LD_LIBRARY_PATH
1533 ;;
1534
1535freebsd1*)
1536 dynamic_linker=no
1537 ;;
1538
1365kfreebsd*-gnu)
1366 version_type=linux
1367 need_lib_prefix=no
1368 need_version=no
1369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1370 soname_spec='${libname}${release}${shared_ext}$major'
1371 shlibpath_var=LD_LIBRARY_PATH
1372 shlibpath_overrides_runpath=no
1373 hardcode_into_libs=yes
1374 dynamic_linker='GNU ld.so'
1375 ;;
1376
1377freebsd* | dragonfly*)
1378 # DragonFly does not have aout. When/if they implement a new
1379 # versioning mechanism, adjust this.
1539freebsd* | dragonfly*)
1540 # DragonFly does not have aout. When/if they implement a new
1541 # versioning mechanism, adjust this.
1380 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
1542 if test -x /usr/bin/objformat; then
1543 objformat=`/usr/bin/objformat`
1544 else
1545 case $host_os in
1546 freebsd[[123]]*) objformat=aout ;;
1547 *) objformat=elf ;;
1548 esac
1549 fi
1381 version_type=freebsd-$objformat
1382 case $version_type in
1383 freebsd-elf*)
1384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1385 need_version=no
1386 need_lib_prefix=no
1387 ;;
1388 freebsd-*)

--- 5 unchanged lines hidden (view full) ---

1394 case $host_os in
1395 freebsd2*)
1396 shlibpath_overrides_runpath=yes
1397 ;;
1398 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1399 shlibpath_overrides_runpath=yes
1400 hardcode_into_libs=yes
1401 ;;
1550 version_type=freebsd-$objformat
1551 case $version_type in
1552 freebsd-elf*)
1553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1554 need_version=no
1555 need_lib_prefix=no
1556 ;;
1557 freebsd-*)

--- 5 unchanged lines hidden (view full) ---

1563 case $host_os in
1564 freebsd2*)
1565 shlibpath_overrides_runpath=yes
1566 ;;
1567 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1568 shlibpath_overrides_runpath=yes
1569 hardcode_into_libs=yes
1570 ;;
1402 *) # from 3.2 on
1571 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1572 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1403 shlibpath_overrides_runpath=no
1404 hardcode_into_libs=yes
1405 ;;
1573 shlibpath_overrides_runpath=no
1574 hardcode_into_libs=yes
1575 ;;
1576 *) # from 4.6 on, and DragonFly
1577 shlibpath_overrides_runpath=yes
1578 hardcode_into_libs=yes
1579 ;;
1406 esac
1407 ;;
1408
1409gnu*)
1410 version_type=linux
1411 need_lib_prefix=no
1412 need_version=no
1413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1414 soname_spec='${libname}${release}${shared_ext}$major'
1415 shlibpath_var=LD_LIBRARY_PATH
1416 hardcode_into_libs=yes
1417 ;;
1418
1419hpux9* | hpux10* | hpux11*)
1420 # Give a soname corresponding to the major version so that dld.sl refuses to
1421 # link against other versions.
1422 version_type=sunos
1423 need_lib_prefix=no
1424 need_version=no
1580 esac
1581 ;;
1582
1583gnu*)
1584 version_type=linux
1585 need_lib_prefix=no
1586 need_version=no
1587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1588 soname_spec='${libname}${release}${shared_ext}$major'
1589 shlibpath_var=LD_LIBRARY_PATH
1590 hardcode_into_libs=yes
1591 ;;
1592
1593hpux9* | hpux10* | hpux11*)
1594 # Give a soname corresponding to the major version so that dld.sl refuses to
1595 # link against other versions.
1596 version_type=sunos
1597 need_lib_prefix=no
1598 need_version=no
1425 case "$host_cpu" in
1599 case $host_cpu in
1426 ia64*)
1427 shrext_cmds='.so'
1428 hardcode_into_libs=yes
1429 dynamic_linker="$host_os dld.so"
1430 shlibpath_var=LD_LIBRARY_PATH
1431 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1433 soname_spec='${libname}${release}${shared_ext}$major'

--- 23 unchanged lines hidden (view full) ---

1457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1458 soname_spec='${libname}${release}${shared_ext}$major'
1459 ;;
1460 esac
1461 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1462 postinstall_cmds='chmod 555 $lib'
1463 ;;
1464
1600 ia64*)
1601 shrext_cmds='.so'
1602 hardcode_into_libs=yes
1603 dynamic_linker="$host_os dld.so"
1604 shlibpath_var=LD_LIBRARY_PATH
1605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1607 soname_spec='${libname}${release}${shared_ext}$major'

--- 23 unchanged lines hidden (view full) ---

1631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1632 soname_spec='${libname}${release}${shared_ext}$major'
1633 ;;
1634 esac
1635 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1636 postinstall_cmds='chmod 555 $lib'
1637 ;;
1638
1639interix[[3-9]]*)
1640 version_type=linux
1641 need_lib_prefix=no
1642 need_version=no
1643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1644 soname_spec='${libname}${release}${shared_ext}$major'
1645 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1646 shlibpath_var=LD_LIBRARY_PATH
1647 shlibpath_overrides_runpath=no
1648 hardcode_into_libs=yes
1649 ;;
1650
1465irix5* | irix6* | nonstopux*)
1466 case $host_os in
1467 nonstopux*) version_type=nonstopux ;;
1468 *)
1469 if test "$lt_cv_prog_gnu_ld" = yes; then
1470 version_type=linux
1471 else
1472 version_type=irix

--- 27 unchanged lines hidden (view full) ---

1500 ;;
1501
1502# No shared lib support for Linux oldld, aout, or coff.
1503linux*oldld* | linux*aout* | linux*coff*)
1504 dynamic_linker=no
1505 ;;
1506
1507# This must be Linux ELF.
1651irix5* | irix6* | nonstopux*)
1652 case $host_os in
1653 nonstopux*) version_type=nonstopux ;;
1654 *)
1655 if test "$lt_cv_prog_gnu_ld" = yes; then
1656 version_type=linux
1657 else
1658 version_type=irix

--- 27 unchanged lines hidden (view full) ---

1686 ;;
1687
1688# No shared lib support for Linux oldld, aout, or coff.
1689linux*oldld* | linux*aout* | linux*coff*)
1690 dynamic_linker=no
1691 ;;
1692
1693# This must be Linux ELF.
1508linux*)
1694linux* | k*bsd*-gnu)
1509 version_type=linux
1510 need_lib_prefix=no
1511 need_version=no
1512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1513 soname_spec='${libname}${release}${shared_ext}$major'
1514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1515 shlibpath_var=LD_LIBRARY_PATH
1516 shlibpath_overrides_runpath=no
1517 # This implies no fast_install, which is unacceptable.
1518 # Some rework will be needed to allow for fast_install
1519 # before this can be enabled.
1520 hardcode_into_libs=yes
1521
1522 # Append ld.so.conf contents to the search path
1523 if test -f /etc/ld.so.conf; then
1695 version_type=linux
1696 need_lib_prefix=no
1697 need_version=no
1698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1699 soname_spec='${libname}${release}${shared_ext}$major'
1700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1701 shlibpath_var=LD_LIBRARY_PATH
1702 shlibpath_overrides_runpath=no
1703 # This implies no fast_install, which is unacceptable.
1704 # Some rework will be needed to allow for fast_install
1705 # before this can be enabled.
1706 hardcode_into_libs=yes
1707
1708 # Append ld.so.conf contents to the search path
1709 if test -f /etc/ld.so.conf; then
1524 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' ' '`
1710 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1525 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1526 fi
1527
1528 # We used to test for /lib/ld.so.1 and disable shared libraries on
1529 # powerpc, because MkLinux only supported shared libraries with the
1530 # GNU dynamic linker. Since this was broken with cross compilers,
1531 # most powerpc-linux boxes support dynamic linking these days and
1532 # people can always --disable-shared, the test was removed, and we
1533 # assume the GNU/Linux dynamic linker is in use.
1534 dynamic_linker='GNU/Linux ld.so'
1535 ;;
1536
1711 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1712 fi
1713
1714 # We used to test for /lib/ld.so.1 and disable shared libraries on
1715 # powerpc, because MkLinux only supported shared libraries with the
1716 # GNU dynamic linker. Since this was broken with cross compilers,
1717 # most powerpc-linux boxes support dynamic linking these days and
1718 # people can always --disable-shared, the test was removed, and we
1719 # assume the GNU/Linux dynamic linker is in use.
1720 dynamic_linker='GNU/Linux ld.so'
1721 ;;
1722
1537knetbsd*-gnu)
1538 version_type=linux
1539 need_lib_prefix=no
1540 need_version=no
1541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1542 soname_spec='${libname}${release}${shared_ext}$major'
1543 shlibpath_var=LD_LIBRARY_PATH
1544 shlibpath_overrides_runpath=no
1545 hardcode_into_libs=yes
1546 dynamic_linker='GNU ld.so'
1547 ;;
1548
1549netbsd*)
1550 version_type=sunos
1551 need_lib_prefix=no
1552 need_version=no
1553 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1556 dynamic_linker='NetBSD (a.out) ld.so'

--- 21 unchanged lines hidden (view full) ---

1578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1579 soname_spec='${libname}${release}${shared_ext}$major'
1580 shlibpath_var=LD_LIBRARY_PATH
1581 shlibpath_overrides_runpath=yes
1582 ;;
1583
1584openbsd*)
1585 version_type=sunos
1723netbsd*)
1724 version_type=sunos
1725 need_lib_prefix=no
1726 need_version=no
1727 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1730 dynamic_linker='NetBSD (a.out) ld.so'

--- 21 unchanged lines hidden (view full) ---

1752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1753 soname_spec='${libname}${release}${shared_ext}$major'
1754 shlibpath_var=LD_LIBRARY_PATH
1755 shlibpath_overrides_runpath=yes
1756 ;;
1757
1758openbsd*)
1759 version_type=sunos
1760 sys_lib_dlsearch_path_spec="/usr/lib"
1586 need_lib_prefix=no
1587 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1588 case $host_os in
1589 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1590 *) need_version=no ;;
1591 esac
1592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'

--- 27 unchanged lines hidden (view full) ---

1621 need_version=no
1622 soname_spec='${libname}${release}${shared_ext}$major'
1623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1624 shlibpath_var=LD_LIBRARY_PATH
1625 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1626 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1627 ;;
1628
1761 need_lib_prefix=no
1762 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1763 case $host_os in
1764 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1765 *) need_version=no ;;
1766 esac
1767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'

--- 27 unchanged lines hidden (view full) ---

1796 need_version=no
1797 soname_spec='${libname}${release}${shared_ext}$major'
1798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1799 shlibpath_var=LD_LIBRARY_PATH
1800 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1801 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1802 ;;
1803
1629sco3.2v5*)
1630 version_type=osf
1631 soname_spec='${libname}${release}${shared_ext}$major'
1632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1633 shlibpath_var=LD_LIBRARY_PATH
1804rdos*)
1805 dynamic_linker=no
1634 ;;
1635
1636solaris*)
1637 version_type=linux
1638 need_lib_prefix=no
1639 need_version=no
1640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1641 soname_spec='${libname}${release}${shared_ext}$major'

--- 11 unchanged lines hidden (view full) ---

1653 shlibpath_var=LD_LIBRARY_PATH
1654 shlibpath_overrides_runpath=yes
1655 if test "$with_gnu_ld" = yes; then
1656 need_lib_prefix=no
1657 fi
1658 need_version=yes
1659 ;;
1660
1806 ;;
1807
1808solaris*)
1809 version_type=linux
1810 need_lib_prefix=no
1811 need_version=no
1812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1813 soname_spec='${libname}${release}${shared_ext}$major'

--- 11 unchanged lines hidden (view full) ---

1825 shlibpath_var=LD_LIBRARY_PATH
1826 shlibpath_overrides_runpath=yes
1827 if test "$with_gnu_ld" = yes; then
1828 need_lib_prefix=no
1829 fi
1830 need_version=yes
1831 ;;
1832
1661sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1833sysv4 | sysv4.3*)
1662 version_type=linux
1663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1664 soname_spec='${libname}${release}${shared_ext}$major'
1665 shlibpath_var=LD_LIBRARY_PATH
1666 case $host_vendor in
1667 sni)
1668 shlibpath_overrides_runpath=no
1669 need_lib_prefix=no

--- 16 unchanged lines hidden (view full) ---

1686 if test -d /usr/nec ;then
1687 version_type=linux
1688 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1689 soname_spec='$libname${shared_ext}.$major'
1690 shlibpath_var=LD_LIBRARY_PATH
1691 fi
1692 ;;
1693
1834 version_type=linux
1835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1836 soname_spec='${libname}${release}${shared_ext}$major'
1837 shlibpath_var=LD_LIBRARY_PATH
1838 case $host_vendor in
1839 sni)
1840 shlibpath_overrides_runpath=no
1841 need_lib_prefix=no

--- 16 unchanged lines hidden (view full) ---

1858 if test -d /usr/nec ;then
1859 version_type=linux
1860 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1861 soname_spec='$libname${shared_ext}.$major'
1862 shlibpath_var=LD_LIBRARY_PATH
1863 fi
1864 ;;
1865
1866sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1867 version_type=freebsd-elf
1868 need_lib_prefix=no
1869 need_version=no
1870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1871 soname_spec='${libname}${release}${shared_ext}$major'
1872 shlibpath_var=LD_LIBRARY_PATH
1873 hardcode_into_libs=yes
1874 if test "$with_gnu_ld" = yes; then
1875 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1876 shlibpath_overrides_runpath=no
1877 else
1878 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1879 shlibpath_overrides_runpath=yes
1880 case $host_os in
1881 sco3.2v5*)
1882 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1883 ;;
1884 esac
1885 fi
1886 sys_lib_dlsearch_path_spec='/usr/lib'
1887 ;;
1888
1694uts4*)
1695 version_type=linux
1696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1697 soname_spec='${libname}${release}${shared_ext}$major'
1698 shlibpath_var=LD_LIBRARY_PATH
1699 ;;
1700
1701*)
1702 dynamic_linker=no
1703 ;;
1704esac
1705AC_MSG_RESULT([$dynamic_linker])
1706test "$dynamic_linker" = no && can_build_shared=no
1889uts4*)
1890 version_type=linux
1891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1892 soname_spec='${libname}${release}${shared_ext}$major'
1893 shlibpath_var=LD_LIBRARY_PATH
1894 ;;
1895
1896*)
1897 dynamic_linker=no
1898 ;;
1899esac
1900AC_MSG_RESULT([$dynamic_linker])
1901test "$dynamic_linker" = no && can_build_shared=no
1902
1903AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
1904[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
1905sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1906AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
1907[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
1908sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1909
1910variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1911if test "$GCC" = yes; then
1912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1913fi
1707])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1708
1709
1710# _LT_AC_TAGCONFIG
1711# ----------------
1712AC_DEFUN([_LT_AC_TAGCONFIG],
1914])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1915
1916
1917# _LT_AC_TAGCONFIG
1918# ----------------
1919AC_DEFUN([_LT_AC_TAGCONFIG],
1713[AC_ARG_WITH([tags],
1920[AC_REQUIRE([LT_AC_PROG_SED])dnl
1921AC_ARG_WITH([tags],
1714 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1715 [include additional configurations @<:@automatic@:>@])],
1716 [tagnames="$withval"])
1717
1718if test -f "$ltmain" && test -n "$tagnames"; then
1719 if test ! -f "${ofile}"; then
1720 AC_MSG_WARN([output file `$ofile' does not exist])
1721 fi
1722
1723 if test -z "$LTCC"; then
1724 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1725 if test -z "$LTCC"; then
1726 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1727 else
1728 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1729 fi
1730 fi
1922 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1923 [include additional configurations @<:@automatic@:>@])],
1924 [tagnames="$withval"])
1925
1926if test -f "$ltmain" && test -n "$tagnames"; then
1927 if test ! -f "${ofile}"; then
1928 AC_MSG_WARN([output file `$ofile' does not exist])
1929 fi
1930
1931 if test -z "$LTCC"; then
1932 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1933 if test -z "$LTCC"; then
1934 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1935 else
1936 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1937 fi
1938 fi
1939 if test -z "$LTCFLAGS"; then
1940 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1941 fi
1731
1732 # Extract list of available tagged configurations in $ofile.
1733 # Note that this assumes the entire list is on one line.
1734 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1735
1736 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1737 for tagname in $tagnames; do
1738 IFS="$lt_save_ifs"

--- 74 unchanged lines hidden (view full) ---

1813# enable checks for dlopen support
1814AC_DEFUN([AC_LIBTOOL_DLOPEN],
1815 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1816])# AC_LIBTOOL_DLOPEN
1817
1818
1819# AC_LIBTOOL_WIN32_DLL
1820# --------------------
1942
1943 # Extract list of available tagged configurations in $ofile.
1944 # Note that this assumes the entire list is on one line.
1945 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1946
1947 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1948 for tagname in $tagnames; do
1949 IFS="$lt_save_ifs"

--- 74 unchanged lines hidden (view full) ---

2024# enable checks for dlopen support
2025AC_DEFUN([AC_LIBTOOL_DLOPEN],
2026 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2027])# AC_LIBTOOL_DLOPEN
2028
2029
2030# AC_LIBTOOL_WIN32_DLL
2031# --------------------
1821# declare package support for building win32 dll's
2032# declare package support for building win32 DLLs
1822AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1823[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1824])# AC_LIBTOOL_WIN32_DLL
1825
1826
1827# AC_ENABLE_SHARED([DEFAULT])
1828# ---------------------------
1829# implement the --enable-shared flag

--- 21 unchanged lines hidden (view full) ---

1851 ;;
1852 esac],
1853 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1854])# AC_ENABLE_SHARED
1855
1856
1857# AC_DISABLE_SHARED
1858# -----------------
2033AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2034[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2035])# AC_LIBTOOL_WIN32_DLL
2036
2037
2038# AC_ENABLE_SHARED([DEFAULT])
2039# ---------------------------
2040# implement the --enable-shared flag

--- 21 unchanged lines hidden (view full) ---

2062 ;;
2063 esac],
2064 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2065])# AC_ENABLE_SHARED
2066
2067
2068# AC_DISABLE_SHARED
2069# -----------------
1859#- set the default shared flag to --disable-shared
2070# set the default shared flag to --disable-shared
1860AC_DEFUN([AC_DISABLE_SHARED],
1861[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1862AC_ENABLE_SHARED(no)
1863])# AC_DISABLE_SHARED
1864
1865
1866# AC_ENABLE_STATIC([DEFAULT])
1867# ---------------------------

--- 95 unchanged lines hidden (view full) ---

1963 fi])
1964 EGREP=$ac_cv_prog_egrep
1965 AC_SUBST([EGREP])
1966])])
1967
1968
1969# AC_PATH_TOOL_PREFIX
1970# -------------------
2071AC_DEFUN([AC_DISABLE_SHARED],
2072[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2073AC_ENABLE_SHARED(no)
2074])# AC_DISABLE_SHARED
2075
2076
2077# AC_ENABLE_STATIC([DEFAULT])
2078# ---------------------------

--- 95 unchanged lines hidden (view full) ---

2174 fi])
2175 EGREP=$ac_cv_prog_egrep
2176 AC_SUBST([EGREP])
2177])])
2178
2179
2180# AC_PATH_TOOL_PREFIX
2181# -------------------
1971# find a file program which can recognise shared library
2182# find a file program which can recognize shared library
1972AC_DEFUN([AC_PATH_TOOL_PREFIX],
1973[AC_REQUIRE([AC_PROG_EGREP])dnl
1974AC_MSG_CHECKING([for $1])
1975AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
1976[case $MAGIC_CMD in
1977[[\\/*] | ?:[\\/]*])
1978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1979 ;;

--- 7 unchanged lines hidden (view full) ---

1987 for ac_dir in $ac_dummy; do
1988 IFS="$lt_save_ifs"
1989 test -z "$ac_dir" && ac_dir=.
1990 if test -f $ac_dir/$1; then
1991 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
1992 if test -n "$file_magic_test_file"; then
1993 case $deplibs_check_method in
1994 "file_magic "*)
2183AC_DEFUN([AC_PATH_TOOL_PREFIX],
2184[AC_REQUIRE([AC_PROG_EGREP])dnl
2185AC_MSG_CHECKING([for $1])
2186AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2187[case $MAGIC_CMD in
2188[[\\/*] | ?:[\\/]*])
2189 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2190 ;;

--- 7 unchanged lines hidden (view full) ---

2198 for ac_dir in $ac_dummy; do
2199 IFS="$lt_save_ifs"
2200 test -z "$ac_dir" && ac_dir=.
2201 if test -f $ac_dir/$1; then
2202 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2203 if test -n "$file_magic_test_file"; then
2204 case $deplibs_check_method in
2205 "file_magic "*)
1995 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2206 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1997 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1998 $EGREP "$file_magic_regex" > /dev/null; then
1999 :
2000 else
2001 cat <<EOF 1>&2
2002
2003*** Warning: the command libtool uses to detect shared libraries,

--- 22 unchanged lines hidden (view full) ---

2026else
2027 AC_MSG_RESULT(no)
2028fi
2029])# AC_PATH_TOOL_PREFIX
2030
2031
2032# AC_PATH_MAGIC
2033# -------------
2207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2209 $EGREP "$file_magic_regex" > /dev/null; then
2210 :
2211 else
2212 cat <<EOF 1>&2
2213
2214*** Warning: the command libtool uses to detect shared libraries,

--- 22 unchanged lines hidden (view full) ---

2237else
2238 AC_MSG_RESULT(no)
2239fi
2240])# AC_PATH_TOOL_PREFIX
2241
2242
2243# AC_PATH_MAGIC
2244# -------------
2034# find a file program which can recognise a shared library
2245# find a file program which can recognize a shared library
2035AC_DEFUN([AC_PATH_MAGIC],
2036[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2037if test -z "$lt_cv_path_MAGIC_CMD"; then
2038 if test -n "$ac_tool_prefix"; then
2039 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2040 else
2041 MAGIC_CMD=:
2042 fi

--- 54 unchanged lines hidden (view full) ---

2097[if test -z "$LD"; then
2098 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2099 for ac_dir in $PATH; do
2100 IFS="$lt_save_ifs"
2101 test -z "$ac_dir" && ac_dir=.
2102 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2103 lt_cv_path_LD="$ac_dir/$ac_prog"
2104 # Check to see if the program is GNU ld. I'd rather use --version,
2246AC_DEFUN([AC_PATH_MAGIC],
2247[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2248if test -z "$lt_cv_path_MAGIC_CMD"; then
2249 if test -n "$ac_tool_prefix"; then
2250 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2251 else
2252 MAGIC_CMD=:
2253 fi

--- 54 unchanged lines hidden (view full) ---

2308[if test -z "$LD"; then
2309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2310 for ac_dir in $PATH; do
2311 IFS="$lt_save_ifs"
2312 test -z "$ac_dir" && ac_dir=.
2313 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2314 lt_cv_path_LD="$ac_dir/$ac_prog"
2315 # Check to see if the program is GNU ld. I'd rather use --version,
2105 # but apparently some GNU ld's only accept -v.
2316 # but apparently some variants of GNU ld only accept -v.
2106 # Break only if it was the GNU/non-GNU ld that we prefer.
2107 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2108 *GNU* | *'with BFD'*)
2109 test "$with_gnu_ld" != no && break
2110 ;;
2111 *)
2112 test "$with_gnu_ld" != yes && break
2113 ;;

--- 15 unchanged lines hidden (view full) ---

2129])# AC_PROG_LD
2130
2131
2132# AC_PROG_LD_GNU
2133# --------------
2134AC_DEFUN([AC_PROG_LD_GNU],
2135[AC_REQUIRE([AC_PROG_EGREP])dnl
2136AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2317 # Break only if it was the GNU/non-GNU ld that we prefer.
2318 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2319 *GNU* | *'with BFD'*)
2320 test "$with_gnu_ld" != no && break
2321 ;;
2322 *)
2323 test "$with_gnu_ld" != yes && break
2324 ;;

--- 15 unchanged lines hidden (view full) ---

2340])# AC_PROG_LD
2341
2342
2343# AC_PROG_LD_GNU
2344# --------------
2345AC_DEFUN([AC_PROG_LD_GNU],
2346[AC_REQUIRE([AC_PROG_EGREP])dnl
2347AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2137[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2348[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2138case `$LD -v 2>&1 </dev/null` in
2139*GNU* | *'with BFD'*)
2140 lt_cv_prog_gnu_ld=yes
2141 ;;
2142*)
2143 lt_cv_prog_gnu_ld=no
2144 ;;
2145esac])

--- 13 unchanged lines hidden (view full) ---

2159case $reload_flag in
2160"" | " "*) ;;
2161*) reload_flag=" $reload_flag" ;;
2162esac
2163reload_cmds='$LD$reload_flag -o $output$reload_objs'
2164case $host_os in
2165 darwin*)
2166 if test "$GCC" = yes; then
2349case `$LD -v 2>&1 </dev/null` in
2350*GNU* | *'with BFD'*)
2351 lt_cv_prog_gnu_ld=yes
2352 ;;
2353*)
2354 lt_cv_prog_gnu_ld=no
2355 ;;
2356esac])

--- 13 unchanged lines hidden (view full) ---

2370case $reload_flag in
2371"" | " "*) ;;
2372*) reload_flag=" $reload_flag" ;;
2373esac
2374reload_cmds='$LD$reload_flag -o $output$reload_objs'
2375case $host_os in
2376 darwin*)
2377 if test "$GCC" = yes; then
2167 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2378 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2168 else
2169 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2170 fi
2171 ;;
2172esac
2173])# AC_PROG_LD_RELOAD_FLAG
2174
2175
2176# AC_DEPLIBS_CHECK_METHOD
2177# -----------------------
2178# how to check for library dependencies
2179# -- PORTME fill in with the dynamic library characteristics
2180AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2379 else
2380 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2381 fi
2382 ;;
2383esac
2384])# AC_PROG_LD_RELOAD_FLAG
2385
2386
2387# AC_DEPLIBS_CHECK_METHOD
2388# -----------------------
2389# how to check for library dependencies
2390# -- PORTME fill in with the dynamic library characteristics
2391AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2181[AC_CACHE_CHECK([how to recognise dependent libraries],
2392[AC_CACHE_CHECK([how to recognize dependent libraries],
2182lt_cv_deplibs_check_method,
2183[lt_cv_file_magic_cmd='$MAGIC_CMD'
2184lt_cv_file_magic_test_file=
2185lt_cv_deplibs_check_method='unknown'
2186# Need to set the preceding variable on all platforms that support
2187# interlibrary dependencies.
2188# 'none' -- dependencies not supported.
2189# `unknown' -- same as none, but documents that we really don't know.
2190# 'pass_all' -- all dependencies passed with no checks.
2191# 'test_compile' -- check by making test program.
2192# 'file_magic [[regex]]' -- check by looking for files in library path
2193# which responds to the $file_magic_cmd with a given extended regex.
2194# If you have `file' or equivalent on your system and you're not sure
2195# whether `pass_all' will *always* work, you probably want this one.
2196
2197case $host_os in
2393lt_cv_deplibs_check_method,
2394[lt_cv_file_magic_cmd='$MAGIC_CMD'
2395lt_cv_file_magic_test_file=
2396lt_cv_deplibs_check_method='unknown'
2397# Need to set the preceding variable on all platforms that support
2398# interlibrary dependencies.
2399# 'none' -- dependencies not supported.
2400# `unknown' -- same as none, but documents that we really don't know.
2401# 'pass_all' -- all dependencies passed with no checks.
2402# 'test_compile' -- check by making test program.
2403# 'file_magic [[regex]]' -- check by looking for files in library path
2404# which responds to the $file_magic_cmd with a given extended regex.
2405# If you have `file' or equivalent on your system and you're not sure
2406# whether `pass_all' will *always* work, you probably want this one.
2407
2408case $host_os in
2198aix4* | aix5*)
2409aix[[4-9]]*)
2199 lt_cv_deplibs_check_method=pass_all
2200 ;;
2201
2202beos*)
2203 lt_cv_deplibs_check_method=pass_all
2204 ;;
2205
2206bsdi[[45]]*)

--- 5 unchanged lines hidden (view full) ---

2212cygwin*)
2213 # func_win32_libid is a shell function defined in ltmain.sh
2214 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2215 lt_cv_file_magic_cmd='func_win32_libid'
2216 ;;
2217
2218mingw* | pw32*)
2219 # Base MSYS/MinGW do not provide the 'file' command needed by
2410 lt_cv_deplibs_check_method=pass_all
2411 ;;
2412
2413beos*)
2414 lt_cv_deplibs_check_method=pass_all
2415 ;;
2416
2417bsdi[[45]]*)

--- 5 unchanged lines hidden (view full) ---

2423cygwin*)
2424 # func_win32_libid is a shell function defined in ltmain.sh
2425 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2426 lt_cv_file_magic_cmd='func_win32_libid'
2427 ;;
2428
2429mingw* | pw32*)
2430 # Base MSYS/MinGW do not provide the 'file' command needed by
2220 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2221 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2222 lt_cv_file_magic_cmd='$OBJDUMP -f'
2431 # func_win32_libid shell function, so use a weaker test based on 'objdump',
2432 # unless we find 'file', for example because we are cross-compiling.
2433 if ( file / ) >/dev/null 2>&1; then
2434 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2435 lt_cv_file_magic_cmd='func_win32_libid'
2436 else
2437 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2438 lt_cv_file_magic_cmd='$OBJDUMP -f'
2439 fi
2223 ;;
2224
2225darwin* | rhapsody*)
2226 lt_cv_deplibs_check_method=pass_all
2227 ;;
2228
2440 ;;
2441
2442darwin* | rhapsody*)
2443 lt_cv_deplibs_check_method=pass_all
2444 ;;
2445
2229freebsd* | kfreebsd*-gnu | dragonfly*)
2446freebsd* | dragonfly*)
2230 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2231 case $host_cpu in
2232 i*86 )
2233 # Not sure whether the presence of OpenBSD here was a mistake.
2234 # Let's accept both of them until this is cleared up.
2235 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2236 lt_cv_file_magic_cmd=/usr/bin/file
2237 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`

--- 5 unchanged lines hidden (view full) ---

2243 ;;
2244
2245gnu*)
2246 lt_cv_deplibs_check_method=pass_all
2247 ;;
2248
2249hpux10.20* | hpux11*)
2250 lt_cv_file_magic_cmd=/usr/bin/file
2447 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2448 case $host_cpu in
2449 i*86 )
2450 # Not sure whether the presence of OpenBSD here was a mistake.
2451 # Let's accept both of them until this is cleared up.
2452 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2453 lt_cv_file_magic_cmd=/usr/bin/file
2454 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`

--- 5 unchanged lines hidden (view full) ---

2460 ;;
2461
2462gnu*)
2463 lt_cv_deplibs_check_method=pass_all
2464 ;;
2465
2466hpux10.20* | hpux11*)
2467 lt_cv_file_magic_cmd=/usr/bin/file
2251 case "$host_cpu" in
2468 case $host_cpu in
2252 ia64*)
2253 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2254 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2255 ;;
2256 hppa*64*)
2257 [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]']
2258 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2259 ;;
2260 *)
2261 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2262 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2263 ;;
2264 esac
2265 ;;
2266
2469 ia64*)
2470 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2471 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2472 ;;
2473 hppa*64*)
2474 [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]']
2475 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2476 ;;
2477 *)
2478 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2479 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2480 ;;
2481 esac
2482 ;;
2483
2484interix[[3-9]]*)
2485 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2486 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2487 ;;
2488
2267irix5* | irix6* | nonstopux*)
2268 case $LD in
2269 *-32|*"-32 ") libmagic=32-bit;;
2270 *-n32|*"-n32 ") libmagic=N32;;
2271 *-64|*"-64 ") libmagic=64-bit;;
2272 *) libmagic=never-match;;
2273 esac
2274 lt_cv_deplibs_check_method=pass_all
2275 ;;
2276
2277# This must be Linux ELF.
2489irix5* | irix6* | nonstopux*)
2490 case $LD in
2491 *-32|*"-32 ") libmagic=32-bit;;
2492 *-n32|*"-n32 ") libmagic=N32;;
2493 *-64|*"-64 ") libmagic=64-bit;;
2494 *) libmagic=never-match;;
2495 esac
2496 lt_cv_deplibs_check_method=pass_all
2497 ;;
2498
2499# This must be Linux ELF.
2278linux*)
2500linux* | k*bsd*-gnu)
2279 lt_cv_deplibs_check_method=pass_all
2280 ;;
2281
2282netbsd*)
2283 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2284 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2285 else
2286 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'

--- 17 unchanged lines hidden (view full) ---

2304 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2305 fi
2306 ;;
2307
2308osf3* | osf4* | osf5*)
2309 lt_cv_deplibs_check_method=pass_all
2310 ;;
2311
2501 lt_cv_deplibs_check_method=pass_all
2502 ;;
2503
2504netbsd*)
2505 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2506 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2507 else
2508 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'

--- 17 unchanged lines hidden (view full) ---

2526 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2527 fi
2528 ;;
2529
2530osf3* | osf4* | osf5*)
2531 lt_cv_deplibs_check_method=pass_all
2532 ;;
2533
2312sco3.2v5*)
2534rdos*)
2313 lt_cv_deplibs_check_method=pass_all
2314 ;;
2315
2316solaris*)
2317 lt_cv_deplibs_check_method=pass_all
2318 ;;
2319
2535 lt_cv_deplibs_check_method=pass_all
2536 ;;
2537
2538solaris*)
2539 lt_cv_deplibs_check_method=pass_all
2540 ;;
2541
2320sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2542sysv4 | sysv4.3*)
2321 case $host_vendor in
2322 motorola)
2323 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]]'
2324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2325 ;;
2326 ncr)
2327 lt_cv_deplibs_check_method=pass_all
2328 ;;

--- 4 unchanged lines hidden (view full) ---

2333 sni)
2334 lt_cv_file_magic_cmd='/bin/file'
2335 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2336 lt_cv_file_magic_test_file=/lib/libc.so
2337 ;;
2338 siemens)
2339 lt_cv_deplibs_check_method=pass_all
2340 ;;
2543 case $host_vendor in
2544 motorola)
2545 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]]'
2546 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2547 ;;
2548 ncr)
2549 lt_cv_deplibs_check_method=pass_all
2550 ;;

--- 4 unchanged lines hidden (view full) ---

2555 sni)
2556 lt_cv_file_magic_cmd='/bin/file'
2557 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2558 lt_cv_file_magic_test_file=/lib/libc.so
2559 ;;
2560 siemens)
2561 lt_cv_deplibs_check_method=pass_all
2562 ;;
2563 pc)
2564 lt_cv_deplibs_check_method=pass_all
2565 ;;
2341 esac
2342 ;;
2343
2566 esac
2567 ;;
2568
2344sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
2569sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2345 lt_cv_deplibs_check_method=pass_all
2346 ;;
2347esac
2348])
2349file_magic_cmd=$lt_cv_file_magic_cmd
2350deplibs_check_method=$lt_cv_deplibs_check_method
2351test -z "$deplibs_check_method" && deplibs_check_method=unknown
2352])# AC_DEPLIBS_CHECK_METHOD
2353
2354
2355# AC_PROG_NM
2356# ----------
2357# find the pathname to a BSD-compatible name lister
2358AC_DEFUN([AC_PROG_NM],
2359[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2360[if test -n "$NM"; then
2361 # Let the user override the test.
2362 lt_cv_path_NM="$NM"
2363else
2570 lt_cv_deplibs_check_method=pass_all
2571 ;;
2572esac
2573])
2574file_magic_cmd=$lt_cv_file_magic_cmd
2575deplibs_check_method=$lt_cv_deplibs_check_method
2576test -z "$deplibs_check_method" && deplibs_check_method=unknown
2577])# AC_DEPLIBS_CHECK_METHOD
2578
2579
2580# AC_PROG_NM
2581# ----------
2582# find the pathname to a BSD-compatible name lister
2583AC_DEFUN([AC_PROG_NM],
2584[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2585[if test -n "$NM"; then
2586 # Let the user override the test.
2587 lt_cv_path_NM="$NM"
2588else
2364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2365 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2366 IFS="$lt_save_ifs"
2367 test -z "$ac_dir" && ac_dir=.
2368 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2369 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2370 # Check to see if the nm accepts a BSD-compat flag.
2371 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2372 # nm: unknown option "B" ignored
2373 # Tru64's nm complains that /dev/null is an invalid object file
2374 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2375 */dev/null* | *'Invalid file or object type'*)
2376 lt_cv_path_NM="$tmp_nm -B"
2377 break
2378 ;;
2379 *)
2380 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2381 */dev/null*)
2382 lt_cv_path_NM="$tmp_nm -p"
2589 lt_nm_to_check="${ac_tool_prefix}nm"
2590 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2591 lt_nm_to_check="$lt_nm_to_check nm"
2592 fi
2593 for lt_tmp_nm in $lt_nm_to_check; do
2594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2595 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2596 IFS="$lt_save_ifs"
2597 test -z "$ac_dir" && ac_dir=.
2598 tmp_nm="$ac_dir/$lt_tmp_nm"
2599 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2600 # Check to see if the nm accepts a BSD-compat flag.
2601 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2602 # nm: unknown option "B" ignored
2603 # Tru64's nm complains that /dev/null is an invalid object file
2604 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2605 */dev/null* | *'Invalid file or object type'*)
2606 lt_cv_path_NM="$tmp_nm -B"
2383 break
2384 ;;
2385 *)
2607 break
2608 ;;
2609 *)
2386 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2387 continue # so that we can try to find one that supports BSD flags
2610 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2611 */dev/null*)
2612 lt_cv_path_NM="$tmp_nm -p"
2613 break
2614 ;;
2615 *)
2616 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2617 continue # so that we can try to find one that supports BSD flags
2618 ;;
2619 esac
2388 ;;
2389 esac
2620 ;;
2621 esac
2390 esac
2391 fi
2622 fi
2623 done
2624 IFS="$lt_save_ifs"
2392 done
2625 done
2393 IFS="$lt_save_ifs"
2394 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2395fi])
2396NM="$lt_cv_path_NM"
2397])# AC_PROG_NM
2398
2399
2400# AC_CHECK_LIBM
2401# -------------

--- 15 unchanged lines hidden (view full) ---

2417esac
2418])# AC_CHECK_LIBM
2419
2420
2421# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2422# -----------------------------------
2423# sets LIBLTDL to the link flags for the libltdl convenience library and
2424# LTDLINCL to the include flags for the libltdl header and adds
2626 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2627fi])
2628NM="$lt_cv_path_NM"
2629])# AC_PROG_NM
2630
2631
2632# AC_CHECK_LIBM
2633# -------------

--- 15 unchanged lines hidden (view full) ---

2649esac
2650])# AC_CHECK_LIBM
2651
2652
2653# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2654# -----------------------------------
2655# sets LIBLTDL to the link flags for the libltdl convenience library and
2656# LTDLINCL to the include flags for the libltdl header and adds
2425# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
2426# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2427# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
2428# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2429# '${top_srcdir}/' (note the single quotes!). If your package is not
2430# flat and you're not using automake, define top_builddir and
2431# top_srcdir appropriately in the Makefiles.
2657# --enable-ltdl-convenience to the configure arguments. Note that
2658# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2659# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2660# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2661# (note the single quotes!). If your package is not flat and you're not
2662# using automake, define top_builddir and top_srcdir appropriately in
2663# the Makefiles.
2432AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2433[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2434 case $enable_ltdl_convenience in
2435 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2436 "") enable_ltdl_convenience=yes
2437 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2438 esac
2439 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2440 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2441 # For backwards non-gettext consistent compatibility...
2442 INCLTDL="$LTDLINCL"
2443])# AC_LIBLTDL_CONVENIENCE
2444
2445
2446# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2447# -----------------------------------
2448# sets LIBLTDL to the link flags for the libltdl installable library and
2449# LTDLINCL to the include flags for the libltdl header and adds
2664AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2665[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2666 case $enable_ltdl_convenience in
2667 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2668 "") enable_ltdl_convenience=yes
2669 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2670 esac
2671 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2672 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2673 # For backwards non-gettext consistent compatibility...
2674 INCLTDL="$LTDLINCL"
2675])# AC_LIBLTDL_CONVENIENCE
2676
2677
2678# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2679# -----------------------------------
2680# sets LIBLTDL to the link flags for the libltdl installable library and
2681# LTDLINCL to the include flags for the libltdl header and adds
2450# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
2451# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2452# DIRECTORY is not provided and an installed libltdl is not found, it is
2453# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
2454# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
2455# quotes!). If your package is not flat and you're not using automake,
2456# define top_builddir and top_srcdir appropriately in the Makefiles.
2682# --enable-ltdl-install to the configure arguments. Note that
2683# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2684# and an installed libltdl is not found, it is assumed to be `libltdl'.
2685# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2686# '${top_srcdir}/' (note the single quotes!). If your package is not
2687# flat and you're not using automake, define top_builddir and top_srcdir
2688# appropriately in the Makefiles.
2457# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2458AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2459[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2460 AC_CHECK_LIB(ltdl, lt_dlinit,
2461 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2462 [if test x"$enable_ltdl_install" = xno; then
2463 AC_MSG_WARN([libltdl not installed, but installation disabled])
2464 else

--- 26 unchanged lines hidden (view full) ---

2491# ---------------
2492AC_DEFUN([_LT_AC_LANG_CXX],
2493[AC_REQUIRE([AC_PROG_CXX])
2494AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2495_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2496])# _LT_AC_LANG_CXX
2497
2498# _LT_AC_PROG_CXXCPP
2689# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2690AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2691[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2692 AC_CHECK_LIB(ltdl, lt_dlinit,
2693 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2694 [if test x"$enable_ltdl_install" = xno; then
2695 AC_MSG_WARN([libltdl not installed, but installation disabled])
2696 else

--- 26 unchanged lines hidden (view full) ---

2723# ---------------
2724AC_DEFUN([_LT_AC_LANG_CXX],
2725[AC_REQUIRE([AC_PROG_CXX])
2726AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2727_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2728])# _LT_AC_LANG_CXX
2729
2730# _LT_AC_PROG_CXXCPP
2499# ---------------
2731# ------------------
2500AC_DEFUN([_LT_AC_PROG_CXXCPP],
2501[
2502AC_REQUIRE([AC_PROG_CXX])
2503if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2504 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2505 (test "X$CXX" != "Xg++"))) ; then
2506 AC_PROG_CXXCPP
2507fi

--- 32 unchanged lines hidden (view full) ---

2540 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2541 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2542 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2543_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2544])# _LT_AC_LANG_GCJ
2545
2546
2547# AC_LIBTOOL_RC
2732AC_DEFUN([_LT_AC_PROG_CXXCPP],
2733[
2734AC_REQUIRE([AC_PROG_CXX])
2735if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2736 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2737 (test "X$CXX" != "Xg++"))) ; then
2738 AC_PROG_CXXCPP
2739fi

--- 32 unchanged lines hidden (view full) ---

2772 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2773 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2774 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2775_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2776])# _LT_AC_LANG_GCJ
2777
2778
2779# AC_LIBTOOL_RC
2548# --------------
2780# -------------
2549# enable support for Windows resource files
2550AC_DEFUN([AC_LIBTOOL_RC],
2551[AC_REQUIRE([LT_AC_PROG_RC])
2552_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2553])# AC_LIBTOOL_RC
2554
2555
2556# AC_LIBTOOL_LANG_C_CONFIG

--- 9 unchanged lines hidden (view full) ---

2566# Source file extension for C test sources.
2567ac_ext=c
2568
2569# Object file extension for compiled C test sources.
2570objext=o
2571_LT_AC_TAGVAR(objext, $1)=$objext
2572
2573# Code to be used in simple compile tests
2781# enable support for Windows resource files
2782AC_DEFUN([AC_LIBTOOL_RC],
2783[AC_REQUIRE([LT_AC_PROG_RC])
2784_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2785])# AC_LIBTOOL_RC
2786
2787
2788# AC_LIBTOOL_LANG_C_CONFIG

--- 9 unchanged lines hidden (view full) ---

2798# Source file extension for C test sources.
2799ac_ext=c
2800
2801# Object file extension for compiled C test sources.
2802objext=o
2803_LT_AC_TAGVAR(objext, $1)=$objext
2804
2805# Code to be used in simple compile tests
2574lt_simple_compile_test_code="int some_variable = 0;\n"
2806lt_simple_compile_test_code="int some_variable = 0;"
2575
2576# Code to be used in simple link tests
2807
2808# Code to be used in simple link tests
2577lt_simple_link_test_code='int main(){return(0);}\n'
2809lt_simple_link_test_code='int main(){return(0);}'
2578
2579_LT_AC_SYS_COMPILER
2580
2581# save warnings/boilerplate of simple test code
2582_LT_COMPILER_BOILERPLATE
2583_LT_LINKER_BOILERPLATE
2584
2810
2811_LT_AC_SYS_COMPILER
2812
2813# save warnings/boilerplate of simple test code
2814_LT_COMPILER_BOILERPLATE
2815_LT_LINKER_BOILERPLATE
2816
2585#
2586# Check for any special shared library compilation flags.
2587#
2588_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2589if test "$GCC" = no; then
2590 case $host_os in
2591 sco3.2v5*)
2592 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2593 ;;
2594 esac
2595fi
2596if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2597 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2598 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2599 else
2600 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2601 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2602 fi
2603fi
2604
2605
2606#
2607# Check to make sure the static flag actually works.
2608#
2609AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2610 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2611 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2612 [],
2613 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2614
2615
2616AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2617AC_LIBTOOL_PROG_COMPILER_PIC($1)
2618AC_LIBTOOL_PROG_CC_C_O($1)
2619AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2620AC_LIBTOOL_PROG_LD_SHLIBS($1)
2621AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2622AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2623AC_LIBTOOL_SYS_LIB_STRIP
2817AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2818AC_LIBTOOL_PROG_COMPILER_PIC($1)
2819AC_LIBTOOL_PROG_CC_C_O($1)
2820AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2821AC_LIBTOOL_PROG_LD_SHLIBS($1)
2822AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2823AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2824AC_LIBTOOL_SYS_LIB_STRIP
2624AC_LIBTOOL_DLOPEN_SELF($1)
2825AC_LIBTOOL_DLOPEN_SELF
2625
2826
2626# Report which librarie types wil actually be built
2827# Report which library types will actually be built
2627AC_MSG_CHECKING([if libtool supports shared libraries])
2628AC_MSG_RESULT([$can_build_shared])
2629
2630AC_MSG_CHECKING([whether to build shared libraries])
2631test "$can_build_shared" = "no" && enable_shared=no
2632
2633# On AIX, shared libraries and static libraries use the same namespace, and
2634# are all built from PIC.
2828AC_MSG_CHECKING([if libtool supports shared libraries])
2829AC_MSG_RESULT([$can_build_shared])
2830
2831AC_MSG_CHECKING([whether to build shared libraries])
2832test "$can_build_shared" = "no" && enable_shared=no
2833
2834# On AIX, shared libraries and static libraries use the same namespace, and
2835# are all built from PIC.
2635case "$host_os" in
2836case $host_os in
2636aix3*)
2637 test "$enable_shared" = yes && enable_static=no
2638 if test -n "$RANLIB"; then
2639 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2640 postinstall_cmds='$RANLIB $lib'
2641 fi
2642 ;;
2643
2837aix3*)
2838 test "$enable_shared" = yes && enable_static=no
2839 if test -n "$RANLIB"; then
2840 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2841 postinstall_cmds='$RANLIB $lib'
2842 fi
2843 ;;
2844
2644aix4* | aix5*)
2845aix[[4-9]]*)
2645 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2646 test "$enable_shared" = yes && enable_static=no
2647 fi
2648 ;;
2649esac
2650AC_MSG_RESULT([$enable_shared])
2651
2652AC_MSG_CHECKING([whether to build static libraries])

--- 24 unchanged lines hidden (view full) ---

2677_LT_AC_TAGVAR(always_export_symbols, $1)=no
2678_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2679_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2680_LT_AC_TAGVAR(hardcode_direct, $1)=no
2681_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2682_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2683_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2684_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2846 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2847 test "$enable_shared" = yes && enable_static=no
2848 fi
2849 ;;
2850esac
2851AC_MSG_RESULT([$enable_shared])
2852
2853AC_MSG_CHECKING([whether to build static libraries])

--- 24 unchanged lines hidden (view full) ---

2878_LT_AC_TAGVAR(always_export_symbols, $1)=no
2879_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2880_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2881_LT_AC_TAGVAR(hardcode_direct, $1)=no
2882_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2883_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2884_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2885_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2886_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2685_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2686_LT_AC_TAGVAR(module_cmds, $1)=
2687_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2688_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2689_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2690_LT_AC_TAGVAR(no_undefined_flag, $1)=
2691_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2692_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2693
2694# Dependencies to place before and after the object being linked:
2695_LT_AC_TAGVAR(predep_objects, $1)=
2696_LT_AC_TAGVAR(postdep_objects, $1)=
2697_LT_AC_TAGVAR(predeps, $1)=
2698_LT_AC_TAGVAR(postdeps, $1)=
2699_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2887_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2888_LT_AC_TAGVAR(module_cmds, $1)=
2889_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2890_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2891_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2892_LT_AC_TAGVAR(no_undefined_flag, $1)=
2893_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2894_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2895
2896# Dependencies to place before and after the object being linked:
2897_LT_AC_TAGVAR(predep_objects, $1)=
2898_LT_AC_TAGVAR(postdep_objects, $1)=
2899_LT_AC_TAGVAR(predeps, $1)=
2900_LT_AC_TAGVAR(postdeps, $1)=
2901_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2902_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2700
2701# Source file extension for C++ test sources.
2903
2904# Source file extension for C++ test sources.
2702ac_ext=cc
2905ac_ext=cpp
2703
2704# Object file extension for compiled C++ test sources.
2705objext=o
2706_LT_AC_TAGVAR(objext, $1)=$objext
2707
2708# Code to be used in simple compile tests
2906
2907# Object file extension for compiled C++ test sources.
2908objext=o
2909_LT_AC_TAGVAR(objext, $1)=$objext
2910
2911# Code to be used in simple compile tests
2709lt_simple_compile_test_code="int some_variable = 0;\n"
2912lt_simple_compile_test_code="int some_variable = 0;"
2710
2711# Code to be used in simple link tests
2913
2914# Code to be used in simple link tests
2712lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
2915lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2713
2714# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2715_LT_AC_SYS_COMPILER
2716
2717# save warnings/boilerplate of simple test code
2718_LT_COMPILER_BOILERPLATE
2719_LT_LINKER_BOILERPLATE
2720
2721# Allow CC to be a program name with arguments.
2722lt_save_CC=$CC
2723lt_save_LD=$LD
2724lt_save_GCC=$GCC
2725GCC=$GXX
2726lt_save_with_gnu_ld=$with_gnu_ld
2727lt_save_path_LD=$lt_cv_path_LD
2728if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2729 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2730else
2916
2917# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2918_LT_AC_SYS_COMPILER
2919
2920# save warnings/boilerplate of simple test code
2921_LT_COMPILER_BOILERPLATE
2922_LT_LINKER_BOILERPLATE
2923
2924# Allow CC to be a program name with arguments.
2925lt_save_CC=$CC
2926lt_save_LD=$LD
2927lt_save_GCC=$GCC
2928GCC=$GXX
2929lt_save_with_gnu_ld=$with_gnu_ld
2930lt_save_path_LD=$lt_cv_path_LD
2931if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2932 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2933else
2731 unset lt_cv_prog_gnu_ld
2934 $as_unset lt_cv_prog_gnu_ld
2732fi
2733if test -n "${lt_cv_path_LDCXX+set}"; then
2734 lt_cv_path_LD=$lt_cv_path_LDCXX
2735else
2935fi
2936if test -n "${lt_cv_path_LDCXX+set}"; then
2937 lt_cv_path_LD=$lt_cv_path_LDCXX
2938else
2736 unset lt_cv_path_LD
2939 $as_unset lt_cv_path_LD
2737fi
2738test -z "${LDCXX+set}" || LD=$LDCXX
2739CC=${CXX-"c++"}
2740compiler=$CC
2741_LT_AC_TAGVAR(compiler, $1)=$CC
2742_LT_CC_BASENAME([$compiler])
2743
2744# We don't want -fno-exception wen compiling C++ code, so set the

--- 56 unchanged lines hidden (view full) ---

2801# PORTME: fill in a description of your system's C++ link characteristics
2802AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2803_LT_AC_TAGVAR(ld_shlibs, $1)=yes
2804case $host_os in
2805 aix3*)
2806 # FIXME: insert proper C++ library support
2807 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2808 ;;
2940fi
2941test -z "${LDCXX+set}" || LD=$LDCXX
2942CC=${CXX-"c++"}
2943compiler=$CC
2944_LT_AC_TAGVAR(compiler, $1)=$CC
2945_LT_CC_BASENAME([$compiler])
2946
2947# We don't want -fno-exception wen compiling C++ code, so set the

--- 56 unchanged lines hidden (view full) ---

3004# PORTME: fill in a description of your system's C++ link characteristics
3005AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3006_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3007case $host_os in
3008 aix3*)
3009 # FIXME: insert proper C++ library support
3010 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3011 ;;
2809 aix4* | aix5*)
3012 aix[[4-9]]*)
2810 if test "$host_cpu" = ia64; then
2811 # On IA64, the linker does run time linking by default, so we don't
2812 # have to do anything special.
2813 aix_use_runtimelinking=no
2814 exp_sym_flag='-Bexport'
2815 no_entry_flag=""
2816 else
2817 aix_use_runtimelinking=no
2818
2819 # Test if we are trying to use run time linking or normal
2820 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2821 # need to do runtime linking.
3013 if test "$host_cpu" = ia64; then
3014 # On IA64, the linker does run time linking by default, so we don't
3015 # have to do anything special.
3016 aix_use_runtimelinking=no
3017 exp_sym_flag='-Bexport'
3018 no_entry_flag=""
3019 else
3020 aix_use_runtimelinking=no
3021
3022 # Test if we are trying to use run time linking or normal
3023 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3024 # need to do runtime linking.
2822 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3025 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
2823 for ld_flag in $LDFLAGS; do
2824 case $ld_flag in
2825 *-brtl*)
2826 aix_use_runtimelinking=yes
2827 break
2828 ;;
2829 esac
2830 done
3026 for ld_flag in $LDFLAGS; do
3027 case $ld_flag in
3028 *-brtl*)
3029 aix_use_runtimelinking=yes
3030 break
3031 ;;
3032 esac
3033 done
3034 ;;
2831 esac
2832
2833 exp_sym_flag='-bexport'
2834 no_entry_flag='-bnoentry'
2835 fi
2836
2837 # When large executables or shared objects are built, AIX ld can
2838 # have problems creating the table of contents. If linking a library

--- 10 unchanged lines hidden (view full) ---

2849 case $host_os in aix4.[[012]]|aix4.[[012]].*)
2850 # We only want to do this on AIX 4.2 and lower, the check
2851 # below for broken collect2 doesn't work under 4.3+
2852 collect2name=`${CC} -print-prog-name=collect2`
2853 if test -f "$collect2name" && \
2854 strings "$collect2name" | grep resolve_lib_name >/dev/null
2855 then
2856 # We have reworked collect2
3035 esac
3036
3037 exp_sym_flag='-bexport'
3038 no_entry_flag='-bnoentry'
3039 fi
3040
3041 # When large executables or shared objects are built, AIX ld can
3042 # have problems creating the table of contents. If linking a library

--- 10 unchanged lines hidden (view full) ---

3053 case $host_os in aix4.[[012]]|aix4.[[012]].*)
3054 # We only want to do this on AIX 4.2 and lower, the check
3055 # below for broken collect2 doesn't work under 4.3+
3056 collect2name=`${CC} -print-prog-name=collect2`
3057 if test -f "$collect2name" && \
3058 strings "$collect2name" | grep resolve_lib_name >/dev/null
3059 then
3060 # We have reworked collect2
2857 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3061 :
2858 else
2859 # We have old collect2
2860 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2861 # It fails to find uninstalled libraries when the uninstalled
2862 # path is not listed in the libpath. Setting hardcode_minus_L
2863 # to unsupported forces relinking
2864 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2865 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2866 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2867 fi
3062 else
3063 # We have old collect2
3064 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3065 # It fails to find uninstalled libraries when the uninstalled
3066 # path is not listed in the libpath. Setting hardcode_minus_L
3067 # to unsupported forces relinking
3068 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3069 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3070 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3071 fi
3072 ;;
2868 esac
2869 shared_flag='-shared'
2870 if test "$aix_use_runtimelinking" = yes; then
2871 shared_flag="$shared_flag "'${wl}-G'
2872 fi
2873 else
2874 # not using gcc
2875 if test "$host_cpu" = ia64; then

--- 15 unchanged lines hidden (view full) ---

2891 if test "$aix_use_runtimelinking" = yes; then
2892 # Warning - without using the other runtime loading flags (-brtl),
2893 # -berok will link without error, but may produce a broken library.
2894 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2895 # Determine the default libpath from the value encoded in an empty executable.
2896 _LT_AC_SYS_LIBPATH_AIX
2897 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2898
3073 esac
3074 shared_flag='-shared'
3075 if test "$aix_use_runtimelinking" = yes; then
3076 shared_flag="$shared_flag "'${wl}-G'
3077 fi
3078 else
3079 # not using gcc
3080 if test "$host_cpu" = ia64; then

--- 15 unchanged lines hidden (view full) ---

3096 if test "$aix_use_runtimelinking" = yes; then
3097 # Warning - without using the other runtime loading flags (-brtl),
3098 # -berok will link without error, but may produce a broken library.
3099 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3100 # Determine the default libpath from the value encoded in an empty executable.
3101 _LT_AC_SYS_LIBPATH_AIX
3102 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3103
2899 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3104 _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"
2900 else
2901 if test "$host_cpu" = ia64; then
2902 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2903 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3105 else
3106 if test "$host_cpu" = ia64; then
3107 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3108 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2904 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3109 _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"
2905 else
2906 # Determine the default libpath from the value encoded in an empty executable.
2907 _LT_AC_SYS_LIBPATH_AIX
2908 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2909 # Warning - without using the other run time loading flags,
2910 # -berok will link without error, but may produce a broken library.
2911 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2912 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3110 else
3111 # Determine the default libpath from the value encoded in an empty executable.
3112 _LT_AC_SYS_LIBPATH_AIX
3113 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3114 # Warning - without using the other run time loading flags,
3115 # -berok will link without error, but may produce a broken library.
3116 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3117 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2913 # -bexpall does not export symbols beginning with underscore (_)
2914 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2915 # Exported symbols can be pulled into shared objects from archives
3118 # Exported symbols can be pulled into shared objects from archives
2916 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3119 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2917 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3120 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2918 # This is similar to how AIX traditionally builds it's shared libraries.
2919 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3121 # This is similar to how AIX traditionally builds its shared libraries.
3122 _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'
2920 fi
2921 fi
2922 ;;
3123 fi
3124 fi
3125 ;;
3126
3127 beos*)
3128 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3129 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3130 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3131 # support --undefined. This deserves some investigation. FIXME
3132 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3133 else
3134 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3135 fi
3136 ;;
3137
2923 chorus*)
2924 case $cc_basename in
2925 *)
2926 # FIXME: insert proper C++ library support
2927 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2928 ;;
2929 esac
2930 ;;
2931
3138 chorus*)
3139 case $cc_basename in
3140 *)
3141 # FIXME: insert proper C++ library support
3142 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3143 ;;
3144 esac
3145 ;;
3146
2932
2933 cygwin* | mingw* | pw32*)
2934 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2935 # as there is no search path for DLLs.
2936 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2937 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2938 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2939 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2940
2941 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3147 cygwin* | mingw* | pw32*)
3148 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3149 # as there is no search path for DLLs.
3150 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3151 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3152 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3153 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3154
3155 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2942 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3156 _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'
2943 # If the export-symbols file already is a .def file (1st line
2944 # is EXPORTS), use it as is; otherwise, prepend...
2945 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2946 cp $export_symbols $output_objdir/$soname.def;
2947 else
2948 echo EXPORTS > $output_objdir/$soname.def;
2949 cat $export_symbols >> $output_objdir/$soname.def;
2950 fi~
3157 # If the export-symbols file already is a .def file (1st line
3158 # is EXPORTS), use it as is; otherwise, prepend...
3159 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3160 cp $export_symbols $output_objdir/$soname.def;
3161 else
3162 echo EXPORTS > $output_objdir/$soname.def;
3163 cat $export_symbols >> $output_objdir/$soname.def;
3164 fi~
2951 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3165 $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'
2952 else
2953 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2954 fi
2955 ;;
2956 darwin* | rhapsody*)
3166 else
3167 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3168 fi
3169 ;;
3170 darwin* | rhapsody*)
2957 case "$host_os" in
2958 rhapsody* | darwin1.[[012]])
2959 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
2960 ;;
2961 *) # Darwin 1.3 on
2962 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2963 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2964 else
2965 case ${MACOSX_DEPLOYMENT_TARGET} in
2966 10.[[012]])
2967 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2968 ;;
2969 10.*)
2970 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
2971 ;;
2972 esac
2973 fi
2974 ;;
2975 esac
2976 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2977 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2978 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2979 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2980 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
2981 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3171 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3172 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3173 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3174 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3175 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3176 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2982
2983 if test "$GXX" = yes ; then
2984 lt_int_apple_cc_single_mod=no
3177 _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3178 if test "$GXX" = yes ; then
2985 output_verbose_link_cmd='echo'
3179 output_verbose_link_cmd='echo'
2986 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
2987 lt_int_apple_cc_single_mod=yes
3180 _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3181 _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3182 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3183 _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3184 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3185 _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3186 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
2988 fi
3187 fi
2989 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2990 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2991 else
3188 else
2992 _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'
2993 fi
2994 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2995 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2996 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2997 _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}'
2998 else
2999 _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}'
3000 fi
3001 _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}'
3002 else
3003 case $cc_basename in
3004 xlc*)
3005 output_verbose_link_cmd='echo'
3189 case $cc_basename in
3190 xlc*)
3191 output_verbose_link_cmd='echo'
3006 _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'
3192 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3007 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3193 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3008 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3009 _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}'
3194 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3195 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3010 _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}'
3011 ;;
3012 *)
3013 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3014 ;;
3015 esac
3016 fi
3017 ;;

--- 17 unchanged lines hidden (view full) ---

3035 ;;
3036 freebsd[[12]]*)
3037 # C++ shared libraries reported to be fairly broken before switch to ELF
3038 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3039 ;;
3040 freebsd-elf*)
3041 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3042 ;;
3196 _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}'
3197 ;;
3198 *)
3199 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3200 ;;
3201 esac
3202 fi
3203 ;;

--- 17 unchanged lines hidden (view full) ---

3221 ;;
3222 freebsd[[12]]*)
3223 # C++ shared libraries reported to be fairly broken before switch to ELF
3224 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3225 ;;
3226 freebsd-elf*)
3227 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3228 ;;
3043 freebsd* | kfreebsd*-gnu | dragonfly*)
3229 freebsd* | dragonfly*)
3044 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3045 # conventions
3046 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3047 ;;
3048 gnu*)
3049 ;;
3050 hpux9*)
3051 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'

--- 28 unchanged lines hidden (view full) ---

3080 # FIXME: insert proper C++ library support
3081 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3082 fi
3083 ;;
3084 esac
3085 ;;
3086 hpux10*|hpux11*)
3087 if test $with_gnu_ld = no; then
3230 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3231 # conventions
3232 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3233 ;;
3234 gnu*)
3235 ;;
3236 hpux9*)
3237 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'

--- 28 unchanged lines hidden (view full) ---

3266 # FIXME: insert proper C++ library support
3267 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3268 fi
3269 ;;
3270 esac
3271 ;;
3272 hpux10*|hpux11*)
3273 if test $with_gnu_ld = no; then
3088 case "$host_cpu" in
3089 hppa*64*)
3090 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3091 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3092 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3093 ;;
3094 ia64*)
3095 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3096 ;;
3274 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3275 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3276
3277 case $host_cpu in
3278 hppa*64*|ia64*) ;;
3097 *)
3279 *)
3098 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3099 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3100 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3101 ;;
3102 esac
3103 fi
3280 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3281 ;;
3282 esac
3283 fi
3104 case "$host_cpu" in
3105 hppa*64*)
3284 case $host_cpu in
3285 hppa*64*|ia64*)
3106 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3107 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3108 ;;
3286 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3287 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3288 ;;
3109 ia64*)
3110 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3111 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3112 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3113 # but as the default
3114 # location of the library.
3115 ;;
3116 *)
3117 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3118 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3119 # but as the default
3120 # location of the library.
3121 ;;
3122 esac
3123
3124 case $cc_basename in
3125 CC*)
3126 # FIXME: insert proper C++ library support
3127 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3128 ;;
3129 aCC*)
3289 *)
3290 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3291 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3292 # but as the default
3293 # location of the library.
3294 ;;
3295 esac
3296
3297 case $cc_basename in
3298 CC*)
3299 # FIXME: insert proper C++ library support
3300 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3301 ;;
3302 aCC*)
3130 case "$host_cpu" in
3131 hppa*64*|ia64*)
3132 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3303 case $host_cpu in
3304 hppa*64*)
3305 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3133 ;;
3306 ;;
3307 ia64*)
3308 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3309 ;;
3134 *)
3135 _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'
3136 ;;
3137 esac
3138 # Commands to make compiler produce verbose output that lists
3139 # what "hidden" libraries, object files and flags are used when
3140 # linking a shared library.
3141 #
3142 # There doesn't appear to be a way to prevent this compiler from
3143 # explicitly linking system object files so we need to strip them
3144 # from the output so that they don't get included in the library
3145 # dependencies.
3146 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'
3147 ;;
3148 *)
3149 if test "$GXX" = yes; then
3150 if test $with_gnu_ld = no; then
3310 *)
3311 _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'
3312 ;;
3313 esac
3314 # Commands to make compiler produce verbose output that lists
3315 # what "hidden" libraries, object files and flags are used when
3316 # linking a shared library.
3317 #
3318 # There doesn't appear to be a way to prevent this compiler from
3319 # explicitly linking system object files so we need to strip them
3320 # from the output so that they don't get included in the library
3321 # dependencies.
3322 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'
3323 ;;
3324 *)
3325 if test "$GXX" = yes; then
3326 if test $with_gnu_ld = no; then
3151 case "$host_cpu" in
3152 ia64*|hppa*64*)
3153 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3327 case $host_cpu in
3328 hppa*64*)
3329 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3154 ;;
3330 ;;
3331 ia64*)
3332 _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'
3333 ;;
3155 *)
3156 _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'
3157 ;;
3158 esac
3159 fi
3160 else
3161 # FIXME: insert proper C++ library support
3162 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3163 fi
3164 ;;
3165 esac
3166 ;;
3334 *)
3335 _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'
3336 ;;
3337 esac
3338 fi
3339 else
3340 # FIXME: insert proper C++ library support
3341 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3342 fi
3343 ;;
3344 esac
3345 ;;
3346 interix[[3-9]]*)
3347 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3348 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3349 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3350 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3351 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3352 # Instead, shared libraries are loaded at an image base (0x10000000 by
3353 # default) and relocated if they conflict, which is a slow very memory
3354 # consuming and fragmenting process. To avoid this, we pick a random,
3355 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3356 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3357 _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'
3358 _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'
3359 ;;
3167 irix5* | irix6*)
3168 case $cc_basename in
3169 CC*)
3170 # SGI C++
3171 _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'
3172
3173 # Archives containing C++ object files must be created using
3174 # "CC -ar", where "CC" is the IRIX C++ compiler. This is

--- 10 unchanged lines hidden (view full) ---

3185 fi
3186 fi
3187 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3188 ;;
3189 esac
3190 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3191 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3192 ;;
3360 irix5* | irix6*)
3361 case $cc_basename in
3362 CC*)
3363 # SGI C++
3364 _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'
3365
3366 # Archives containing C++ object files must be created using
3367 # "CC -ar", where "CC" is the IRIX C++ compiler. This is

--- 10 unchanged lines hidden (view full) ---

3378 fi
3379 fi
3380 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3381 ;;
3382 esac
3383 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3384 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3385 ;;
3193 linux*)
3386 linux* | k*bsd*-gnu)
3194 case $cc_basename in
3195 KCC*)
3196 # Kuck and Associates, Inc. (KAI) C++ Compiler
3197
3198 # KCC will only create a shared library if the output file
3199 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3200 # to its proper name (with version) after linking.
3201 _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'

--- 35 unchanged lines hidden (view full) ---

3237 _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'
3238 ;;
3239 esac
3240 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3241 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3242 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3243 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3244 ;;
3387 case $cc_basename in
3388 KCC*)
3389 # Kuck and Associates, Inc. (KAI) C++ Compiler
3390
3391 # KCC will only create a shared library if the output file
3392 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3393 # to its proper name (with version) after linking.
3394 _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'

--- 35 unchanged lines hidden (view full) ---

3430 _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'
3431 ;;
3432 esac
3433 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3434 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3435 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3436 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3437 ;;
3245 pgCC*)
3438 pgCC* | pgcpp*)
3246 # Portland Group C++ compiler
3247 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3248 _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'
3249
3250 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3251 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3439 # Portland Group C++ compiler
3440 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3441 _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'
3442
3443 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3444 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3252 _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'
3445 _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'
3253 ;;
3254 cxx*)
3255 # Compaq C++
3256 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3257 _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'
3258
3259 runpath_var=LD_RUN_PATH
3260 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'

--- 4 unchanged lines hidden (view full) ---

3265 # linking a shared library.
3266 #
3267 # There doesn't appear to be a way to prevent this compiler from
3268 # explicitly linking system object files so we need to strip them
3269 # from the output so that they don't get included in the library
3270 # dependencies.
3271 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'
3272 ;;
3446 ;;
3447 cxx*)
3448 # Compaq C++
3449 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3450 _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'
3451
3452 runpath_var=LD_RUN_PATH
3453 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'

--- 4 unchanged lines hidden (view full) ---

3458 # linking a shared library.
3459 #
3460 # There doesn't appear to be a way to prevent this compiler from
3461 # explicitly linking system object files so we need to strip them
3462 # from the output so that they don't get included in the library
3463 # dependencies.
3464 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'
3465 ;;
3466 *)
3467 case `$CC -V 2>&1 | sed 5q` in
3468 *Sun\ C*)
3469 # Sun C++ 5.9
3470 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3471 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3472 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3473 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3474 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3475
3476 # Not sure whether something based on
3477 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3478 # would be better.
3479 output_verbose_link_cmd='echo'
3480
3481 # Archives containing C++ object files must be created using
3482 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3483 # necessary to make sure instantiated templates are included
3484 # in the archive.
3485 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3486 ;;
3487 esac
3488 ;;
3273 esac
3274 ;;
3275 lynxos*)
3276 # FIXME: insert proper C++ library support
3277 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3278 ;;
3279 m88k*)
3280 # FIXME: insert proper C++ library support

--- 22 unchanged lines hidden (view full) ---

3303 # Workaround some broken pre-1.5 toolchains
3304 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3305 ;;
3306 openbsd2*)
3307 # C++ shared libraries are fairly broken
3308 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3309 ;;
3310 openbsd*)
3489 esac
3490 ;;
3491 lynxos*)
3492 # FIXME: insert proper C++ library support
3493 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3494 ;;
3495 m88k*)
3496 # FIXME: insert proper C++ library support

--- 22 unchanged lines hidden (view full) ---

3519 # Workaround some broken pre-1.5 toolchains
3520 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3521 ;;
3522 openbsd2*)
3523 # C++ shared libraries are fairly broken
3524 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3525 ;;
3526 openbsd*)
3311 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3312 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3313 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3314 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3315 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3316 _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'
3317 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3318 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3527 if test -f /usr/libexec/ld.so; then
3528 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3529 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3530 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3531 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3532 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3533 _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'
3534 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3535 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3536 fi
3537 output_verbose_link_cmd='echo'
3538 else
3539 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3319 fi
3540 fi
3320 output_verbose_link_cmd='echo'
3321 ;;
3322 osf3*)
3323 case $cc_basename in
3324 KCC*)
3325 # Kuck and Associates, Inc. (KAI) C++ Compiler
3326
3327 # KCC will only create a shared library if the output file
3328 # ends with ".so" (or ".sl" for HP-UX), so rename the library

--- 112 unchanged lines hidden (view full) ---

3441 fi
3442 ;;
3443 esac
3444 ;;
3445 psos*)
3446 # FIXME: insert proper C++ library support
3447 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3448 ;;
3541 ;;
3542 osf3*)
3543 case $cc_basename in
3544 KCC*)
3545 # Kuck and Associates, Inc. (KAI) C++ Compiler
3546
3547 # KCC will only create a shared library if the output file
3548 # ends with ".so" (or ".sl" for HP-UX), so rename the library

--- 112 unchanged lines hidden (view full) ---

3661 fi
3662 ;;
3663 esac
3664 ;;
3665 psos*)
3666 # FIXME: insert proper C++ library support
3667 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3668 ;;
3449 sco*)
3450 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3451 case $cc_basename in
3452 CC*)
3453 # FIXME: insert proper C++ library support
3454 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3455 ;;
3456 *)
3457 # FIXME: insert proper C++ library support
3458 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3459 ;;
3460 esac
3461 ;;
3462 sunos4*)
3463 case $cc_basename in
3464 CC*)
3465 # Sun C++ 4.x
3466 # FIXME: insert proper C++ library support
3467 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3468 ;;
3469 lcc*)

--- 6 unchanged lines hidden (view full) ---

3476 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3477 ;;
3478 esac
3479 ;;
3480 solaris*)
3481 case $cc_basename in
3482 CC*)
3483 # Sun C++ 4.2, 5.x and Centerline C++
3669 sunos4*)
3670 case $cc_basename in
3671 CC*)
3672 # Sun C++ 4.x
3673 # FIXME: insert proper C++ library support
3674 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3675 ;;
3676 lcc*)

--- 6 unchanged lines hidden (view full) ---

3683 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3684 ;;
3685 esac
3686 ;;
3687 solaris*)
3688 case $cc_basename in
3689 CC*)
3690 # Sun C++ 4.2, 5.x and Centerline C++
3691 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3484 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3692 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3485 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3693 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3486 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3694 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3487 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3695 $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'
3488
3489 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3490 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3491 case $host_os in
3492 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3493 *)
3696
3697 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3698 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3699 case $host_os in
3700 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3701 *)
3494 # The C++ compiler is used as linker so we must use $wl
3495 # flag to pass the commands to the underlying system
3496 # linker. We must also pass each convience library through
3497 # to the system linker between allextract/defaultextract.
3498 # The C++ compiler will combine linker options so we
3499 # cannot just pass the convience library names through
3500 # without $wl.
3702 # The compiler driver will combine and reorder linker options,
3703 # but understands `-z linker_flag'.
3501 # Supported since Solaris 2.6 (maybe 2.5.1?)
3704 # Supported since Solaris 2.6 (maybe 2.5.1?)
3502 _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'
3705 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3503 ;;
3504 esac
3505 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3506
3706 ;;
3707 esac
3708 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3709
3507 # Commands to make compiler produce verbose output that lists
3508 # what "hidden" libraries, object files and flags are used when
3509 # linking a shared library.
3510 #
3511 # There doesn't appear to be a way to prevent this compiler from
3512 # explicitly linking system object files so we need to strip them
3513 # from the output so that they don't get included in the library
3514 # dependencies.
3515 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3710 output_verbose_link_cmd='echo'
3516
3517 # Archives containing C++ object files must be created using
3518 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3519 # necessary to make sure instantiated templates are included
3520 # in the archive.
3521 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3522 ;;
3523 gcx*)

--- 25 unchanged lines hidden (view full) ---

3549
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 -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3554 fi
3555
3556 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3711
3712 # Archives containing C++ object files must be created using
3713 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3714 # necessary to make sure instantiated templates are included
3715 # in the archive.
3716 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3717 ;;
3718 gcx*)

--- 25 unchanged lines hidden (view full) ---

3744
3745 # Commands to make compiler produce verbose output that lists
3746 # what "hidden" libraries, object files and flags are used when
3747 # linking a shared library.
3748 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3749 fi
3750
3751 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3752 case $host_os in
3753 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3754 *)
3755 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3756 ;;
3757 esac
3557 fi
3558 ;;
3559 esac
3560 ;;
3758 fi
3759 ;;
3760 esac
3761 ;;
3561 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3762 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3763 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3562 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3764 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3765 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3766 runpath_var='LD_RUN_PATH'
3767
3768 case $cc_basename in
3769 CC*)
3770 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3771 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3772 ;;
3773 *)
3774 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3775 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3776 ;;
3777 esac
3563 ;;
3778 ;;
3779 sysv5* | sco3.2v5* | sco5v6*)
3780 # Note: We can NOT use -z defs as we might desire, because we do not
3781 # link with -lc, and that would cause any symbols used from libc to
3782 # always be unresolved, which means just about no library would
3783 # ever link correctly. If we're not using GNU ld we use -z text
3784 # though, which does catch some bad symbols but isn't as heavy-handed
3785 # as -z defs.
3786 # For security reasons, it is highly recommended that you always
3787 # use absolute paths for naming shared libraries, and exclude the
3788 # DT_RUNPATH tag from executables and libraries. But doing so
3789 # requires that you compile everything twice, which is a pain.
3790 # So that behaviour is only enabled if SCOABSPATH is set to a
3791 # non-empty value in the environment. Most likely only useful for
3792 # creating official distributions of packages.
3793 # This is a hack until libtool officially supports absolute path
3794 # names for shared libraries.
3795 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3796 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3797 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3798 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3799 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3800 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3801 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3802 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3803 runpath_var='LD_RUN_PATH'
3804
3805 case $cc_basename in
3806 CC*)
3807 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3808 _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'
3809 ;;
3810 *)
3811 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3812 _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'
3813 ;;
3814 esac
3815 ;;
3564 tandem*)
3565 case $cc_basename in
3566 NCC*)
3567 # NonStop-UX NCC 3.20
3568 # FIXME: insert proper C++ library support
3569 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3570 ;;
3571 *)

--- 19 unchanged lines hidden (view full) ---

3591
3592AC_LIBTOOL_POSTDEP_PREDEP($1)
3593AC_LIBTOOL_PROG_COMPILER_PIC($1)
3594AC_LIBTOOL_PROG_CC_C_O($1)
3595AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3596AC_LIBTOOL_PROG_LD_SHLIBS($1)
3597AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3598AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3816 tandem*)
3817 case $cc_basename in
3818 NCC*)
3819 # NonStop-UX NCC 3.20
3820 # FIXME: insert proper C++ library support
3821 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3822 ;;
3823 *)

--- 19 unchanged lines hidden (view full) ---

3843
3844AC_LIBTOOL_POSTDEP_PREDEP($1)
3845AC_LIBTOOL_PROG_COMPILER_PIC($1)
3846AC_LIBTOOL_PROG_CC_C_O($1)
3847AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3848AC_LIBTOOL_PROG_LD_SHLIBS($1)
3849AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3850AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3599AC_LIBTOOL_SYS_LIB_STRIP
3600AC_LIBTOOL_DLOPEN_SELF($1)
3601
3602AC_LIBTOOL_CONFIG($1)
3603
3604AC_LANG_POP
3605CC=$lt_save_CC
3606LDCXX=$LD
3607LD=$lt_save_LD
3608GCC=$lt_save_GCC
3609with_gnu_ldcxx=$with_gnu_ld
3610with_gnu_ld=$lt_save_with_gnu_ld
3611lt_cv_path_LDCXX=$lt_cv_path_LD
3612lt_cv_path_LD=$lt_save_path_LD
3613lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3614lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3615])# AC_LIBTOOL_LANG_CXX_CONFIG
3616
3617# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3851
3852AC_LIBTOOL_CONFIG($1)
3853
3854AC_LANG_POP
3855CC=$lt_save_CC
3856LDCXX=$LD
3857LD=$lt_save_LD
3858GCC=$lt_save_GCC
3859with_gnu_ldcxx=$with_gnu_ld
3860with_gnu_ld=$lt_save_with_gnu_ld
3861lt_cv_path_LDCXX=$lt_cv_path_LD
3862lt_cv_path_LD=$lt_save_path_LD
3863lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3864lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3865])# AC_LIBTOOL_LANG_CXX_CONFIG
3866
3867# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3618# ------------------------
3868# ------------------------------------
3619# Figure out "hidden" library dependencies from verbose
3620# compiler output when linking a shared library.
3621# Parse the compiler output and extract the necessary
3622# objects, libraries and library flags.
3869# Figure out "hidden" library dependencies from verbose
3870# compiler output when linking a shared library.
3871# Parse the compiler output and extract the necessary
3872# objects, libraries and library flags.
3623AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3873AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3874[AC_REQUIRE([LT_AC_PROG_SED])dnl
3624dnl we can't use the lt_simple_compile_test_code here,
3625dnl because it contains code intended for an executable,
3626dnl not a library. It's possible we should let each
3627dnl tag define a new lt_????_link_test_code variable,
3628dnl but it's only used here...
3629ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3630int a;
3631void foo (void) { a = 0; }

--- 32 unchanged lines hidden (view full) ---

3664
3665 # Sentinel used to keep track of whether or not we are before
3666 # the conftest object file.
3667 pre_test_object_deps_done=no
3668
3669 # The `*' in the case matches for architectures that use `case' in
3670 # $output_verbose_cmd can trigger glob expansion during the loop
3671 # eval without this substitution.
3875dnl we can't use the lt_simple_compile_test_code here,
3876dnl because it contains code intended for an executable,
3877dnl not a library. It's possible we should let each
3878dnl tag define a new lt_????_link_test_code variable,
3879dnl but it's only used here...
3880ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3881int a;
3882void foo (void) { a = 0; }

--- 32 unchanged lines hidden (view full) ---

3915
3916 # Sentinel used to keep track of whether or not we are before
3917 # the conftest object file.
3918 pre_test_object_deps_done=no
3919
3920 # The `*' in the case matches for architectures that use `case' in
3921 # $output_verbose_cmd can trigger glob expansion during the loop
3922 # eval without this substitution.
3672 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
3923 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3673
3674 for p in `eval $output_verbose_link_cmd`; do
3675 case $p in
3676
3677 -L* | -R* | -l*)
3678 # Some compilers place space between "-{L,R}" and the path.
3679 # Remove the space.
3680 if test $p = "-L" \

--- 59 unchanged lines hidden (view full) ---

3740 # Clean up.
3741 rm -f a.out a.exe
3742else
3743 echo "libtool.m4: error: problem compiling $1 test program"
3744fi
3745
3746$rm -f confest.$objext
3747
3924
3925 for p in `eval $output_verbose_link_cmd`; do
3926 case $p in
3927
3928 -L* | -R* | -l*)
3929 # Some compilers place space between "-{L,R}" and the path.
3930 # Remove the space.
3931 if test $p = "-L" \

--- 59 unchanged lines hidden (view full) ---

3991 # Clean up.
3992 rm -f a.out a.exe
3993else
3994 echo "libtool.m4: error: problem compiling $1 test program"
3995fi
3996
3997$rm -f confest.$objext
3998
3999_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4000if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4001 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4002fi
4003
4004# PORTME: override above test on systems where it is broken
4005ifelse([$1],[CXX],
4006[case $host_os in
4007interix[[3-9]]*)
4008 # Interix 3.5 installs completely hosed .la files for C++, so rather than
4009 # hack all around it, let's just trust "g++" to DTRT.
4010 _LT_AC_TAGVAR(predep_objects,$1)=
4011 _LT_AC_TAGVAR(postdep_objects,$1)=
4012 _LT_AC_TAGVAR(postdeps,$1)=
4013 ;;
4014
4015linux*)
4016 case `$CC -V 2>&1 | sed 5q` in
4017 *Sun\ C*)
4018 # Sun C++ 5.9
4019 #
4020 # The more standards-conforming stlport4 library is
4021 # incompatible with the Cstd library. Avoid specifying
4022 # it if it's in CXXFLAGS. Ignore libCrun as
4023 # -library=stlport4 depends on it.
4024 case " $CXX $CXXFLAGS " in
4025 *" -library=stlport4 "*)
4026 solaris_use_stlport4=yes
4027 ;;
4028 esac
4029 if test "$solaris_use_stlport4" != yes; then
4030 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4031 fi
4032 ;;
4033 esac
4034 ;;
4035
4036solaris*)
4037 case $cc_basename in
4038 CC*)
4039 # The more standards-conforming stlport4 library is
4040 # incompatible with the Cstd library. Avoid specifying
4041 # it if it's in CXXFLAGS. Ignore libCrun as
4042 # -library=stlport4 depends on it.
4043 case " $CXX $CXXFLAGS " in
4044 *" -library=stlport4 "*)
4045 solaris_use_stlport4=yes
4046 ;;
4047 esac
4048
4049 # Adding this requires a known-good setup of shared libraries for
4050 # Sun compiler versions before 5.6, else PIC objects from an old
4051 # archive will be linked into the output, leading to subtle bugs.
4052 if test "$solaris_use_stlport4" != yes; then
4053 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4054 fi
4055 ;;
4056 esac
4057 ;;
4058esac
4059])
3748case " $_LT_AC_TAGVAR(postdeps, $1) " in
3749*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3750esac
3751])# AC_LIBTOOL_POSTDEP_PREDEP
3752
3753# AC_LIBTOOL_LANG_F77_CONFIG
4060case " $_LT_AC_TAGVAR(postdeps, $1) " in
4061*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4062esac
4063])# AC_LIBTOOL_POSTDEP_PREDEP
4064
4065# AC_LIBTOOL_LANG_F77_CONFIG
3754# ------------------------
4066# --------------------------
3755# Ensure that the configuration vars for the C compiler are
3756# suitably defined. Those variables are subsequently used by
3757# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3758AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
3759AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
3760[AC_REQUIRE([AC_PROG_F77])
3761AC_LANG_PUSH(Fortran 77)
3762

--- 19 unchanged lines hidden (view full) ---

3782# Source file extension for f77 test sources.
3783ac_ext=f
3784
3785# Object file extension for compiled f77 test sources.
3786objext=o
3787_LT_AC_TAGVAR(objext, $1)=$objext
3788
3789# Code to be used in simple compile tests
4067# Ensure that the configuration vars for the C compiler are
4068# suitably defined. Those variables are subsequently used by
4069# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4070AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4071AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4072[AC_REQUIRE([AC_PROG_F77])
4073AC_LANG_PUSH(Fortran 77)
4074

--- 19 unchanged lines hidden (view full) ---

4094# Source file extension for f77 test sources.
4095ac_ext=f
4096
4097# Object file extension for compiled f77 test sources.
4098objext=o
4099_LT_AC_TAGVAR(objext, $1)=$objext
4100
4101# Code to be used in simple compile tests
3790lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4102lt_simple_compile_test_code="\
4103 subroutine t
4104 return
4105 end
4106"
3791
3792# Code to be used in simple link tests
4107
4108# Code to be used in simple link tests
3793lt_simple_link_test_code=" program t\n end\n"
4109lt_simple_link_test_code="\
4110 program t
4111 end
4112"
3794
3795# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3796_LT_AC_SYS_COMPILER
3797
3798# save warnings/boilerplate of simple test code
3799_LT_COMPILER_BOILERPLATE
3800_LT_LINKER_BOILERPLATE
3801

--- 7 unchanged lines hidden (view full) ---

3809AC_MSG_CHECKING([if libtool supports shared libraries])
3810AC_MSG_RESULT([$can_build_shared])
3811
3812AC_MSG_CHECKING([whether to build shared libraries])
3813test "$can_build_shared" = "no" && enable_shared=no
3814
3815# On AIX, shared libraries and static libraries use the same namespace, and
3816# are all built from PIC.
4113
4114# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4115_LT_AC_SYS_COMPILER
4116
4117# save warnings/boilerplate of simple test code
4118_LT_COMPILER_BOILERPLATE
4119_LT_LINKER_BOILERPLATE
4120

--- 7 unchanged lines hidden (view full) ---

4128AC_MSG_CHECKING([if libtool supports shared libraries])
4129AC_MSG_RESULT([$can_build_shared])
4130
4131AC_MSG_CHECKING([whether to build shared libraries])
4132test "$can_build_shared" = "no" && enable_shared=no
4133
4134# On AIX, shared libraries and static libraries use the same namespace, and
4135# are all built from PIC.
3817case "$host_os" in
4136case $host_os in
3818aix3*)
3819 test "$enable_shared" = yes && enable_static=no
3820 if test -n "$RANLIB"; then
3821 archive_cmds="$archive_cmds~\$RANLIB \$lib"
3822 postinstall_cmds='$RANLIB $lib'
3823 fi
3824 ;;
4137aix3*)
4138 test "$enable_shared" = yes && enable_static=no
4139 if test -n "$RANLIB"; then
4140 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4141 postinstall_cmds='$RANLIB $lib'
4142 fi
4143 ;;
3825aix4* | aix5*)
4144aix[[4-9]]*)
3826 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3827 test "$enable_shared" = yes && enable_static=no
3828 fi
3829 ;;
3830esac
3831AC_MSG_RESULT([$enable_shared])
3832
3833AC_MSG_CHECKING([whether to build static libraries])
3834# Make sure either enable_shared or enable_static is yes.
3835test "$enable_shared" = yes || enable_static=yes
3836AC_MSG_RESULT([$enable_static])
3837
4145 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4146 test "$enable_shared" = yes && enable_static=no
4147 fi
4148 ;;
4149esac
4150AC_MSG_RESULT([$enable_shared])
4151
4152AC_MSG_CHECKING([whether to build static libraries])
4153# Make sure either enable_shared or enable_static is yes.
4154test "$enable_shared" = yes || enable_static=yes
4155AC_MSG_RESULT([$enable_static])
4156
3838test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3839
3840_LT_AC_TAGVAR(GCC, $1)="$G77"
3841_LT_AC_TAGVAR(LD, $1)="$LD"
3842
3843AC_LIBTOOL_PROG_COMPILER_PIC($1)
3844AC_LIBTOOL_PROG_CC_C_O($1)
3845AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3846AC_LIBTOOL_PROG_LD_SHLIBS($1)
3847AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3848AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4157_LT_AC_TAGVAR(GCC, $1)="$G77"
4158_LT_AC_TAGVAR(LD, $1)="$LD"
4159
4160AC_LIBTOOL_PROG_COMPILER_PIC($1)
4161AC_LIBTOOL_PROG_CC_C_O($1)
4162AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4163AC_LIBTOOL_PROG_LD_SHLIBS($1)
4164AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4165AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3849AC_LIBTOOL_SYS_LIB_STRIP
3850
4166
3851
3852AC_LIBTOOL_CONFIG($1)
3853
3854AC_LANG_POP
3855CC="$lt_save_CC"
3856])# AC_LIBTOOL_LANG_F77_CONFIG
3857
3858
3859# AC_LIBTOOL_LANG_GCJ_CONFIG

--- 8 unchanged lines hidden (view full) ---

3868# Source file extension for Java test sources.
3869ac_ext=java
3870
3871# Object file extension for compiled Java test sources.
3872objext=o
3873_LT_AC_TAGVAR(objext, $1)=$objext
3874
3875# Code to be used in simple compile tests
4167AC_LIBTOOL_CONFIG($1)
4168
4169AC_LANG_POP
4170CC="$lt_save_CC"
4171])# AC_LIBTOOL_LANG_F77_CONFIG
4172
4173
4174# AC_LIBTOOL_LANG_GCJ_CONFIG

--- 8 unchanged lines hidden (view full) ---

4183# Source file extension for Java test sources.
4184ac_ext=java
4185
4186# Object file extension for compiled Java test sources.
4187objext=o
4188_LT_AC_TAGVAR(objext, $1)=$objext
4189
4190# Code to be used in simple compile tests
3876lt_simple_compile_test_code="class foo {}\n"
4191lt_simple_compile_test_code="class foo {}"
3877
3878# Code to be used in simple link tests
4192
4193# Code to be used in simple link tests
3879lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4194lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
3880
3881# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3882_LT_AC_SYS_COMPILER
3883
3884# save warnings/boilerplate of simple test code
3885_LT_COMPILER_BOILERPLATE
3886_LT_LINKER_BOILERPLATE
3887

--- 11 unchanged lines hidden (view full) ---

3899
3900AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3901AC_LIBTOOL_PROG_COMPILER_PIC($1)
3902AC_LIBTOOL_PROG_CC_C_O($1)
3903AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3904AC_LIBTOOL_PROG_LD_SHLIBS($1)
3905AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3906AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4195
4196# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4197_LT_AC_SYS_COMPILER
4198
4199# save warnings/boilerplate of simple test code
4200_LT_COMPILER_BOILERPLATE
4201_LT_LINKER_BOILERPLATE
4202

--- 11 unchanged lines hidden (view full) ---

4214
4215AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4216AC_LIBTOOL_PROG_COMPILER_PIC($1)
4217AC_LIBTOOL_PROG_CC_C_O($1)
4218AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4219AC_LIBTOOL_PROG_LD_SHLIBS($1)
4220AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4221AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3907AC_LIBTOOL_SYS_LIB_STRIP
3908AC_LIBTOOL_DLOPEN_SELF($1)
3909
3910AC_LIBTOOL_CONFIG($1)
3911
3912AC_LANG_RESTORE
3913CC="$lt_save_CC"
3914])# AC_LIBTOOL_LANG_GCJ_CONFIG
3915
3916
3917# AC_LIBTOOL_LANG_RC_CONFIG
4222
4223AC_LIBTOOL_CONFIG($1)
4224
4225AC_LANG_RESTORE
4226CC="$lt_save_CC"
4227])# AC_LIBTOOL_LANG_GCJ_CONFIG
4228
4229
4230# AC_LIBTOOL_LANG_RC_CONFIG
3918# --------------------------
4231# -------------------------
3919# Ensure that the configuration vars for the Windows resource compiler are
3920# suitably defined. Those variables are subsequently used by
3921# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3922AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
3923AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
3924[AC_LANG_SAVE
3925
3926# Source file extension for RC test sources.
3927ac_ext=rc
3928
3929# Object file extension for compiled RC test sources.
3930objext=o
3931_LT_AC_TAGVAR(objext, $1)=$objext
3932
3933# Code to be used in simple compile tests
4232# Ensure that the configuration vars for the Windows resource compiler are
4233# suitably defined. Those variables are subsequently used by
4234# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4235AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4236AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4237[AC_LANG_SAVE
4238
4239# Source file extension for RC test sources.
4240ac_ext=rc
4241
4242# Object file extension for compiled RC test sources.
4243objext=o
4244_LT_AC_TAGVAR(objext, $1)=$objext
4245
4246# Code to be used in simple compile tests
3934lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4247lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
3935
3936# Code to be used in simple link tests
3937lt_simple_link_test_code="$lt_simple_compile_test_code"
3938
3939# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3940_LT_AC_SYS_COMPILER
3941
3942# save warnings/boilerplate of simple test code

--- 30 unchanged lines hidden (view full) ---

3973 # See if we are running on zsh, and set the options which allow our commands through
3974 # without removal of \ escapes.
3975 if test -n "${ZSH_VERSION+set}" ; then
3976 setopt NO_GLOB_SUBST
3977 fi
3978 # Now quote all the things that may contain metacharacters while being
3979 # careful not to overquote the AC_SUBSTed values. We take copies of the
3980 # variables and quote the copies for generation of the libtool script.
4248
4249# Code to be used in simple link tests
4250lt_simple_link_test_code="$lt_simple_compile_test_code"
4251
4252# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4253_LT_AC_SYS_COMPILER
4254
4255# save warnings/boilerplate of simple test code

--- 30 unchanged lines hidden (view full) ---

4286 # See if we are running on zsh, and set the options which allow our commands through
4287 # without removal of \ escapes.
4288 if test -n "${ZSH_VERSION+set}" ; then
4289 setopt NO_GLOB_SUBST
4290 fi
4291 # Now quote all the things that may contain metacharacters while being
4292 # careful not to overquote the AC_SUBSTed values. We take copies of the
4293 # variables and quote the copies for generation of the libtool script.
3981 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
4294 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
3982 SED SHELL STRIP \
3983 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
3984 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
3985 deplibs_check_method reload_flag reload_cmds need_locks \
3986 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
3987 lt_cv_sys_global_symbol_to_c_name_address \
3988 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
3989 old_postinstall_cmds old_postuninstall_cmds \

--- 10 unchanged lines hidden (view full) ---

4000 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4001 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4002 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4003 _LT_AC_TAGVAR(predep_objects, $1) \
4004 _LT_AC_TAGVAR(postdep_objects, $1) \
4005 _LT_AC_TAGVAR(predeps, $1) \
4006 _LT_AC_TAGVAR(postdeps, $1) \
4007 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4295 SED SHELL STRIP \
4296 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4297 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4298 deplibs_check_method reload_flag reload_cmds need_locks \
4299 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4300 lt_cv_sys_global_symbol_to_c_name_address \
4301 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4302 old_postinstall_cmds old_postuninstall_cmds \

--- 10 unchanged lines hidden (view full) ---

4313 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4314 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4315 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4316 _LT_AC_TAGVAR(predep_objects, $1) \
4317 _LT_AC_TAGVAR(postdep_objects, $1) \
4318 _LT_AC_TAGVAR(predeps, $1) \
4319 _LT_AC_TAGVAR(postdeps, $1) \
4320 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4321 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4008 _LT_AC_TAGVAR(archive_cmds, $1) \
4009 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4010 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4011 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4012 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4013 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4014 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4015 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4016 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4017 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4018 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4019 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4020 _LT_AC_TAGVAR(module_cmds, $1) \
4021 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4022 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4322 _LT_AC_TAGVAR(archive_cmds, $1) \
4323 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4324 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4325 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4326 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4327 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4328 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4329 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4330 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4331 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4332 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4333 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4334 _LT_AC_TAGVAR(module_cmds, $1) \
4335 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4336 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4337 _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4023 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4024 _LT_AC_TAGVAR(include_expsyms, $1); do
4025
4026 case $var in
4027 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4028 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4029 _LT_AC_TAGVAR(archive_cmds, $1) | \
4030 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \

--- 30 unchanged lines hidden (view full) ---

4061 cat <<__EOF__ >> "$cfgfile"
4062ifelse([$1], [],
4063[#! $SHELL
4064
4065# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4066# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4067# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4068#
4338 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4339 _LT_AC_TAGVAR(include_expsyms, $1); do
4340
4341 case $var in
4342 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4343 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4344 _LT_AC_TAGVAR(archive_cmds, $1) | \
4345 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \

--- 30 unchanged lines hidden (view full) ---

4376 cat <<__EOF__ >> "$cfgfile"
4377ifelse([$1], [],
4378[#! $SHELL
4379
4380# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4381# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4382# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4383#
4069# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4384# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4070# Free Software Foundation, Inc.
4071#
4072# This file is part of GNU Libtool:
4073# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4074#
4075# This program is free software; you can redistribute it and/or modify
4076# it under the terms of the GNU General Public License as published by
4077# the Free Software Foundation; either version 2 of the License, or

--- 64 unchanged lines hidden (view full) ---

4142
4143# The archiver.
4144AR=$lt_AR
4145AR_FLAGS=$lt_AR_FLAGS
4146
4147# A C compiler.
4148LTCC=$lt_LTCC
4149
4385# Free Software Foundation, Inc.
4386#
4387# This file is part of GNU Libtool:
4388# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4389#
4390# This program is free software; you can redistribute it and/or modify
4391# it under the terms of the GNU General Public License as published by
4392# the Free Software Foundation; either version 2 of the License, or

--- 64 unchanged lines hidden (view full) ---

4457
4458# The archiver.
4459AR=$lt_AR
4460AR_FLAGS=$lt_AR_FLAGS
4461
4462# A C compiler.
4463LTCC=$lt_LTCC
4464
4465# LTCC compiler flags.
4466LTCFLAGS=$lt_LTCFLAGS
4467
4150# A language-specific compiler.
4151CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4152
4153# Is the compiler the GNU C compiler?
4154with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4155
4156# An ERE matcher.
4157EGREP=$lt_EGREP

--- 137 unchanged lines hidden (view full) ---

4295# Dependencies to place before the objects being linked to create a
4296# shared library.
4297predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4298
4299# Dependencies to place after the objects being linked to create a
4300# shared library.
4301postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4302
4468# A language-specific compiler.
4469CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4470
4471# Is the compiler the GNU C compiler?
4472with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4473
4474# An ERE matcher.
4475EGREP=$lt_EGREP

--- 137 unchanged lines hidden (view full) ---

4613# Dependencies to place before the objects being linked to create a
4614# shared library.
4615predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4616
4617# Dependencies to place after the objects being linked to create a
4618# shared library.
4619postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4620
4621# The directories searched by this compiler when creating a shared
4622# library
4623compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4624
4303# The library search path used internally by the compiler when linking
4304# a shared library.
4305compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4306
4307# Method to check whether dependent libraries are shared objects.
4308deplibs_check_method=$lt_deplibs_check_method
4309
4310# Command to use when deplibs_check_method == file_magic.

--- 72 unchanged lines hidden (view full) ---

4383
4384# Compile-time system search path for libraries
4385sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4386
4387# Run-time system search path for libraries
4388sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4389
4390# Fix the shell variable \$srcfile for the compiler.
4625# The library search path used internally by the compiler when linking
4626# a shared library.
4627compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4628
4629# Method to check whether dependent libraries are shared objects.
4630deplibs_check_method=$lt_deplibs_check_method
4631
4632# Command to use when deplibs_check_method == file_magic.

--- 72 unchanged lines hidden (view full) ---

4705
4706# Compile-time system search path for libraries
4707sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4708
4709# Run-time system search path for libraries
4710sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4711
4712# Fix the shell variable \$srcfile for the compiler.
4391fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4713fix_srcfile_path=$lt_fix_srcfile_path
4392
4393# Set to yes if exported symbols are required.
4394always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4395
4396# The commands to list exported symbols.
4397export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4398
4399# The commands to extract the exported symbol list from a shared archive.

--- 66 unchanged lines hidden (view full) ---

4466fi
4467])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4468
4469
4470# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4471# ---------------------------------
4472AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4473[AC_REQUIRE([AC_CANONICAL_HOST])
4714
4715# Set to yes if exported symbols are required.
4716always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4717
4718# The commands to list exported symbols.
4719export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4720
4721# The commands to extract the exported symbol list from a shared archive.

--- 66 unchanged lines hidden (view full) ---

4788fi
4789])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4790
4791
4792# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4793# ---------------------------------
4794AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4795[AC_REQUIRE([AC_CANONICAL_HOST])
4796AC_REQUIRE([LT_AC_PROG_SED])
4474AC_REQUIRE([AC_PROG_NM])
4475AC_REQUIRE([AC_OBJEXT])
4476# Check for command to grab the raw symbol name followed by C symbol from nm.
4477AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4478AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4479[
4480# These are sane defaults that work on at least a few old systems.
4481# [They come from Ultrix. What could be older than Ultrix?!! ;)]

--- 20 unchanged lines hidden (view full) ---

4502 ;;
4503hpux*) # Its linker distinguishes data from code symbols
4504 if test "$host_cpu" = ia64; then
4505 symcode='[[ABCDEGRST]]'
4506 fi
4507 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4508 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4509 ;;
4797AC_REQUIRE([AC_PROG_NM])
4798AC_REQUIRE([AC_OBJEXT])
4799# Check for command to grab the raw symbol name followed by C symbol from nm.
4800AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4801AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4802[
4803# These are sane defaults that work on at least a few old systems.
4804# [They come from Ultrix. What could be older than Ultrix?!! ;)]

--- 20 unchanged lines hidden (view full) ---

4825 ;;
4826hpux*) # Its linker distinguishes data from code symbols
4827 if test "$host_cpu" = ia64; then
4828 symcode='[[ABCDEGRST]]'
4829 fi
4830 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4831 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4832 ;;
4510linux*)
4833linux* | k*bsd*-gnu)
4511 if test "$host_cpu" = ia64; then
4512 symcode='[[ABCDGIRSTW]]'
4513 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4514 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4515 fi
4516 ;;
4517irix* | nonstopux*)
4518 symcode='[[BCDEGRST]]'
4519 ;;
4520osf*)
4521 symcode='[[BCDEGQRST]]'
4522 ;;
4834 if test "$host_cpu" = ia64; then
4835 symcode='[[ABCDGIRSTW]]'
4836 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4837 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4838 fi
4839 ;;
4840irix* | nonstopux*)
4841 symcode='[[BCDEGRST]]'
4842 ;;
4843osf*)
4844 symcode='[[BCDEGQRST]]'
4845 ;;
4523solaris* | sysv5*)
4846solaris*)
4524 symcode='[[BDRT]]'
4525 ;;
4847 symcode='[[BDRT]]'
4848 ;;
4849sco3.2v5*)
4850 symcode='[[DT]]'
4851 ;;
4852sysv4.2uw2*)
4853 symcode='[[DT]]'
4854 ;;
4855sysv5* | sco5v6* | unixware* | OpenUNIX*)
4856 symcode='[[ABDT]]'
4857 ;;
4526sysv4)
4527 symcode='[[DFNSTU]]'
4528 ;;
4529esac
4530
4531# Handle CRLF in mingw tool chain
4532opt_cr=
4533case $build_os in

--- 100 unchanged lines hidden (view full) ---

4634 fi
4635 else
4636 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4637 fi
4638 else
4639 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4640 cat conftest.$ac_ext >&5
4641 fi
4858sysv4)
4859 symcode='[[DFNSTU]]'
4860 ;;
4861esac
4862
4863# Handle CRLF in mingw tool chain
4864opt_cr=
4865case $build_os in

--- 100 unchanged lines hidden (view full) ---

4966 fi
4967 else
4968 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4969 fi
4970 else
4971 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4972 cat conftest.$ac_ext >&5
4973 fi
4642 rm -f conftest* conftst*
4974 rm -rf conftest* conftst*
4643
4644 # Do not use the global_symbol_pipe unless it works.
4645 if test "$pipe_works" = yes; then
4646 break
4647 else
4648 lt_cv_sys_global_symbol_pipe=
4649 fi
4650done

--- 32 unchanged lines hidden (view full) ---

4683 fi
4684 ;;
4685 amigaos*)
4686 # FIXME: we need at least 68020 code to build shared libraries, but
4687 # adding the `-m68020' flag to GCC prevents building anything better,
4688 # like `-m68040'.
4689 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4690 ;;
4975
4976 # Do not use the global_symbol_pipe unless it works.
4977 if test "$pipe_works" = yes; then
4978 break
4979 else
4980 lt_cv_sys_global_symbol_pipe=
4981 fi
4982done

--- 32 unchanged lines hidden (view full) ---

5015 fi
5016 ;;
5017 amigaos*)
5018 # FIXME: we need at least 68020 code to build shared libraries, but
5019 # adding the `-m68020' flag to GCC prevents building anything better,
5020 # like `-m68040'.
5021 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5022 ;;
4691 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5023 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4692 # PIC is the default for these OSes.
4693 ;;
5024 # PIC is the default for these OSes.
5025 ;;
4694 mingw* | os2* | pw32*)
5026 mingw* | cygwin* | os2* | pw32*)
4695 # This hack is so that the source file can tell whether it is being
4696 # built for inclusion in a dll (and should export symbols for example).
5027 # This hack is so that the source file can tell whether it is being
5028 # built for inclusion in a dll (and should export symbols for example).
4697 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5029 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5030 # (--disable-auto-import) libraries
5031 m4_if([$1], [GCJ], [],
5032 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4698 ;;
4699 darwin* | rhapsody*)
4700 # PIC is the default on this platform
4701 # Common symbols not allowed in MH_DYLIB files
4702 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4703 ;;
4704 *djgpp*)
4705 # DJGPP does not support shared libraries at all
4706 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4707 ;;
5033 ;;
5034 darwin* | rhapsody*)
5035 # PIC is the default on this platform
5036 # Common symbols not allowed in MH_DYLIB files
5037 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5038 ;;
5039 *djgpp*)
5040 # DJGPP does not support shared libraries at all
5041 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5042 ;;
5043 interix[[3-9]]*)
5044 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5045 # Instead, we relocate shared libraries at runtime.
5046 ;;
4708 sysv4*MP*)
4709 if test -d /usr/nec; then
4710 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4711 fi
4712 ;;
4713 hpux*)
4714 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4715 # not for PA HP-UX.
5047 sysv4*MP*)
5048 if test -d /usr/nec; then
5049 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5050 fi
5051 ;;
5052 hpux*)
5053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5054 # not for PA HP-UX.
4716 case "$host_cpu" in
5055 case $host_cpu in
4717 hppa*64*|ia64*)
4718 ;;
4719 *)
4720 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4721 ;;
4722 esac
4723 ;;
4724 *)
4725 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4726 ;;
4727 esac
4728 else
4729 case $host_os in
5056 hppa*64*|ia64*)
5057 ;;
5058 *)
5059 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5060 ;;
5061 esac
5062 ;;
5063 *)
5064 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5065 ;;
5066 esac
5067 else
5068 case $host_os in
4730 aix4* | aix5*)
5069 aix[[4-9]]*)
4731 # All AIX code is PIC.
4732 if test "$host_cpu" = ia64; then
4733 # AIX 5 now supports IA64 processor
4734 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4735 else
4736 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4737 fi
4738 ;;

--- 23 unchanged lines hidden (view full) ---

4762 ghcx*)
4763 # Green Hills C++ Compiler
4764 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4765 ;;
4766 *)
4767 ;;
4768 esac
4769 ;;
5070 # All AIX code is PIC.
5071 if test "$host_cpu" = ia64; then
5072 # AIX 5 now supports IA64 processor
5073 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5074 else
5075 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5076 fi
5077 ;;

--- 23 unchanged lines hidden (view full) ---

5101 ghcx*)
5102 # Green Hills C++ Compiler
5103 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5104 ;;
5105 *)
5106 ;;
5107 esac
5108 ;;
4770 freebsd* | kfreebsd*-gnu | dragonfly*)
5109 freebsd* | dragonfly*)
4771 # FreeBSD uses GNU C++
4772 ;;
4773 hpux9* | hpux10* | hpux11*)
4774 case $cc_basename in
4775 CC*)
4776 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5110 # FreeBSD uses GNU C++
5111 ;;
5112 hpux9* | hpux10* | hpux11*)
5113 case $cc_basename in
5114 CC*)
5115 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4777 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5116 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4778 if test "$host_cpu" != ia64; then
4779 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4780 fi
4781 ;;
4782 aCC*)
4783 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5117 if test "$host_cpu" != ia64; then
5118 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5119 fi
5120 ;;
5121 aCC*)
5122 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4784 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4785 case "$host_cpu" in
5123 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5124 case $host_cpu in
4786 hppa*64*|ia64*)
4787 # +Z the default
4788 ;;
4789 *)
4790 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4791 ;;
4792 esac
4793 ;;
4794 *)
4795 ;;
4796 esac
4797 ;;
5125 hppa*64*|ia64*)
5126 # +Z the default
5127 ;;
5128 *)
5129 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5130 ;;
5131 esac
5132 ;;
5133 *)
5134 ;;
5135 esac
5136 ;;
5137 interix*)
5138 # This is c89, which is MS Visual C++ (no shared libs)
5139 # Anyone wants to do a port?
5140 ;;
4798 irix5* | irix6* | nonstopux*)
4799 case $cc_basename in
4800 CC*)
4801 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4802 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4803 # CC pic flag -KPIC is the default.
4804 ;;
4805 *)
4806 ;;
4807 esac
4808 ;;
5141 irix5* | irix6* | nonstopux*)
5142 case $cc_basename in
5143 CC*)
5144 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5145 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5146 # CC pic flag -KPIC is the default.
5147 ;;
5148 *)
5149 ;;
5150 esac
5151 ;;
4809 linux*)
5152 linux* | k*bsd*-gnu)
4810 case $cc_basename in
4811 KCC*)
4812 # KAI C++ Compiler
4813 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4814 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4815 ;;
4816 icpc* | ecpc*)
4817 # Intel C++
4818 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4819 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4820 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4821 ;;
5153 case $cc_basename in
5154 KCC*)
5155 # KAI C++ Compiler
5156 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5157 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5158 ;;
5159 icpc* | ecpc*)
5160 # Intel C++
5161 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5162 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5163 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5164 ;;
4822 pgCC*)
5165 pgCC* | pgcpp*)
4823 # Portland Group C++ compiler.
4824 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4825 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5166 # Portland Group C++ compiler.
5167 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5168 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4826 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5169 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4827 ;;
4828 cxx*)
4829 # Compaq C++
4830 # Make sure the PIC flag is empty. It appears that all Alpha
4831 # Linux and Compaq Tru64 Unix objects are PIC.
4832 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4833 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4834 ;;
4835 *)
5170 ;;
5171 cxx*)
5172 # Compaq C++
5173 # Make sure the PIC flag is empty. It appears that all Alpha
5174 # Linux and Compaq Tru64 Unix objects are PIC.
5175 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5176 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5177 ;;
5178 *)
5179 case `$CC -V 2>&1 | sed 5q` in
5180 *Sun\ C*)
5181 # Sun C++ 5.9
5182 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5183 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5184 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5185 ;;
5186 esac
4836 ;;
4837 esac
4838 ;;
4839 lynxos*)
4840 ;;
4841 m88k*)
4842 ;;
4843 mvs*)

--- 25 unchanged lines hidden (view full) ---

4869 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4870 ;;
4871 *)
4872 ;;
4873 esac
4874 ;;
4875 psos*)
4876 ;;
5187 ;;
5188 esac
5189 ;;
5190 lynxos*)
5191 ;;
5192 m88k*)
5193 ;;
5194 mvs*)

--- 25 unchanged lines hidden (view full) ---

5220 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5221 ;;
5222 *)
5223 ;;
5224 esac
5225 ;;
5226 psos*)
5227 ;;
4877 sco*)
4878 case $cc_basename in
4879 CC*)
4880 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4881 ;;
4882 *)
4883 ;;
4884 esac
4885 ;;
4886 solaris*)
4887 case $cc_basename in
4888 CC*)
4889 # Sun C++ 4.2, 5.x and Centerline C++
4890 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4891 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4892 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4893 ;;

--- 25 unchanged lines hidden (view full) ---

4919 NCC*)
4920 # NonStop-UX NCC 3.20
4921 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4922 ;;
4923 *)
4924 ;;
4925 esac
4926 ;;
5228 solaris*)
5229 case $cc_basename in
5230 CC*)
5231 # Sun C++ 4.2, 5.x and Centerline C++
5232 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5233 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5234 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5235 ;;

--- 25 unchanged lines hidden (view full) ---

5261 NCC*)
5262 # NonStop-UX NCC 3.20
5263 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5264 ;;
5265 *)
5266 ;;
5267 esac
5268 ;;
4927 unixware*)
5269 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5270 case $cc_basename in
5271 CC*)
5272 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5273 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5274 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5275 ;;
5276 esac
4928 ;;
4929 vxworks*)
4930 ;;
4931 *)
4932 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4933 ;;
4934 esac
4935 fi

--- 14 unchanged lines hidden (view full) ---

4950
4951 amigaos*)
4952 # FIXME: we need at least 68020 code to build shared libraries, but
4953 # adding the `-m68020' flag to GCC prevents building anything better,
4954 # like `-m68040'.
4955 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4956 ;;
4957
5277 ;;
5278 vxworks*)
5279 ;;
5280 *)
5281 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5282 ;;
5283 esac
5284 fi

--- 14 unchanged lines hidden (view full) ---

5299
5300 amigaos*)
5301 # FIXME: we need at least 68020 code to build shared libraries, but
5302 # adding the `-m68020' flag to GCC prevents building anything better,
5303 # like `-m68040'.
5304 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5305 ;;
5306
4958 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5307 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4959 # PIC is the default for these OSes.
4960 ;;
4961
5308 # PIC is the default for these OSes.
5309 ;;
5310
4962 mingw* | pw32* | os2*)
5311 mingw* | cygwin* | pw32* | os2*)
4963 # This hack is so that the source file can tell whether it is being
4964 # built for inclusion in a dll (and should export symbols for example).
5312 # This hack is so that the source file can tell whether it is being
5313 # built for inclusion in a dll (and should export symbols for example).
4965 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5314 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5315 # (--disable-auto-import) libraries
5316 m4_if([$1], [GCJ], [],
5317 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4966 ;;
4967
4968 darwin* | rhapsody*)
4969 # PIC is the default on this platform
4970 # Common symbols not allowed in MH_DYLIB files
4971 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4972 ;;
4973
5318 ;;
5319
5320 darwin* | rhapsody*)
5321 # PIC is the default on this platform
5322 # Common symbols not allowed in MH_DYLIB files
5323 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5324 ;;
5325
5326 interix[[3-9]]*)
5327 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5328 # Instead, we relocate shared libraries at runtime.
5329 ;;
5330
4974 msdosdjgpp*)
4975 # Just because we use GCC doesn't mean we suddenly get shared libraries
4976 # on systems that don't support them.
4977 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4978 enable_shared=no
4979 ;;
4980
4981 sysv4*MP*)
4982 if test -d /usr/nec; then
4983 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4984 fi
4985 ;;
4986
4987 hpux*)
4988 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4989 # not for PA HP-UX.
5331 msdosdjgpp*)
5332 # Just because we use GCC doesn't mean we suddenly get shared libraries
5333 # on systems that don't support them.
5334 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5335 enable_shared=no
5336 ;;
5337
5338 sysv4*MP*)
5339 if test -d /usr/nec; then
5340 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5341 fi
5342 ;;
5343
5344 hpux*)
5345 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5346 # not for PA HP-UX.
4990 case "$host_cpu" in
5347 case $host_cpu in
4991 hppa*64*|ia64*)
4992 # +Z the default
4993 ;;
4994 *)
4995 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4996 ;;
4997 esac
4998 ;;

--- 20 unchanged lines hidden (view full) ---

5019 case $cc_basename in
5020 xlc*)
5021 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5022 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5023 ;;
5024 esac
5025 ;;
5026
5348 hppa*64*|ia64*)
5349 # +Z the default
5350 ;;
5351 *)
5352 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5353 ;;
5354 esac
5355 ;;

--- 20 unchanged lines hidden (view full) ---

5376 case $cc_basename in
5377 xlc*)
5378 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5379 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5380 ;;
5381 esac
5382 ;;
5383
5027 mingw* | pw32* | os2*)
5384 mingw* | cygwin* | pw32* | os2*)
5028 # This hack is so that the source file can tell whether it is being
5029 # built for inclusion in a dll (and should export symbols for example).
5385 # This hack is so that the source file can tell whether it is being
5386 # built for inclusion in a dll (and should export symbols for example).
5030 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5387 m4_if([$1], [GCJ], [],
5388 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5031 ;;
5032
5033 hpux9* | hpux10* | hpux11*)
5034 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5035 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5036 # not for PA HP-UX.
5389 ;;
5390
5391 hpux9* | hpux10* | hpux11*)
5392 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5393 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5394 # not for PA HP-UX.
5037 case "$host_cpu" in
5395 case $host_cpu in
5038 hppa*64*|ia64*)
5039 # +Z the default
5040 ;;
5041 *)
5042 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5043 ;;
5044 esac
5045 # Is there a better lt_prog_compiler_static that works with the bundled CC?

--- 6 unchanged lines hidden (view full) ---

5052 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5053 ;;
5054
5055 newsos6)
5056 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5057 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5058 ;;
5059
5396 hppa*64*|ia64*)
5397 # +Z the default
5398 ;;
5399 *)
5400 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5401 ;;
5402 esac
5403 # Is there a better lt_prog_compiler_static that works with the bundled CC?

--- 6 unchanged lines hidden (view full) ---

5410 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5411 ;;
5412
5413 newsos6)
5414 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5415 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5416 ;;
5417
5060 linux*)
5418 linux* | k*bsd*-gnu)
5061 case $cc_basename in
5062 icc* | ecc*)
5063 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5064 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5065 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5066 ;;
5419 case $cc_basename in
5420 icc* | ecc*)
5421 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5422 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5423 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5424 ;;
5067 pgcc* | pgf77* | pgf90*)
5425 pgcc* | pgf77* | pgf90* | pgf95*)
5068 # Portland Group compilers (*not* the Pentium gcc compiler,
5069 # which looks to be a dead project)
5070 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5071 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5426 # Portland Group compilers (*not* the Pentium gcc compiler,
5427 # which looks to be a dead project)
5428 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5429 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5072 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5430 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5073 ;;
5074 ccc*)
5075 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5076 # All Alpha code is PIC.
5077 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5078 ;;
5431 ;;
5432 ccc*)
5433 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5434 # All Alpha code is PIC.
5435 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5436 ;;
5437 *)
5438 case `$CC -V 2>&1 | sed 5q` in
5439 *Sun\ C*)
5440 # Sun C 5.9
5441 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5442 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5443 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5444 ;;
5445 *Sun\ F*)
5446 # Sun Fortran 8.3 passes all unrecognized flags to the linker
5447 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5448 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5449 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5450 ;;
5451 esac
5452 ;;
5079 esac
5080 ;;
5081
5082 osf3* | osf4* | osf5*)
5083 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5084 # All OSF/1 code is PIC.
5085 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5086 ;;
5087
5453 esac
5454 ;;
5455
5456 osf3* | osf4* | osf5*)
5457 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5458 # All OSF/1 code is PIC.
5459 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5460 ;;
5461
5088 sco3.2v5*)
5089 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5090 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5462 rdos*)
5463 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5091 ;;
5092
5093 solaris*)
5094 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5095 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5096 case $cc_basename in
5097 f77* | f90* | f95*)
5098 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5099 *)
5100 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5101 esac
5102 ;;
5103
5104 sunos4*)
5105 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5106 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5107 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5108 ;;
5109
5464 ;;
5465
5466 solaris*)
5467 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5468 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5469 case $cc_basename in
5470 f77* | f90* | f95*)
5471 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5472 *)
5473 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5474 esac
5475 ;;
5476
5477 sunos4*)
5478 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5479 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5480 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5481 ;;
5482
5110 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5483 sysv4 | sysv4.2uw2* | sysv4.3*)
5111 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5112 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5113 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5114 ;;
5115
5116 sysv4*MP*)
5117 if test -d /usr/nec ;then
5118 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5119 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5120 fi
5121 ;;
5122
5484 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5485 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5486 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5487 ;;
5488
5489 sysv4*MP*)
5490 if test -d /usr/nec ;then
5491 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5492 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5493 fi
5494 ;;
5495
5496 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5497 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5498 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5499 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5500 ;;
5501
5123 unicos*)
5124 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5125 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5126 ;;
5127
5128 uts4*)
5129 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5130 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'

--- 7 unchanged lines hidden (view full) ---

5138])
5139AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5140
5141#
5142# Check to make sure the PIC flag actually works.
5143#
5144if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5145 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5502 unicos*)
5503 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5504 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5505 ;;
5506
5507 uts4*)
5508 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5509 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'

--- 7 unchanged lines hidden (view full) ---

5517])
5518AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5519
5520#
5521# Check to make sure the PIC flag actually works.
5522#
5523if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5524 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5146 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5525 _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5147 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5148 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5149 "" | " "*) ;;
5150 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5151 esac],
5152 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5153 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5154fi
5526 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5527 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5528 "" | " "*) ;;
5529 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5530 esac],
5531 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5532 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5533fi
5155case "$host_os" in
5534case $host_os in
5156 # For platforms which do not support PIC, -DPIC is meaningless:
5157 *djgpp*)
5158 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5159 ;;
5160 *)
5161 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5162 ;;
5163esac
5535 # For platforms which do not support PIC, -DPIC is meaningless:
5536 *djgpp*)
5537 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5538 ;;
5539 *)
5540 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5541 ;;
5542esac
5543
5544#
5545# Check to make sure the static flag actually works.
5546#
5547wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5548AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5549 _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5550 $lt_tmp_static_flag,
5551 [],
5552 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5164])
5165
5166
5167# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5168# ------------------------------------
5169# See if the linker supports building shared libraries.
5170AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5553])
5554
5555
5556# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5557# ------------------------------------
5558# See if the linker supports building shared libraries.
5559AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5171[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5560[AC_REQUIRE([LT_AC_PROG_SED])dnl
5561AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5172ifelse([$1],[CXX],[
5173 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5174 case $host_os in
5562ifelse([$1],[CXX],[
5563 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5564 case $host_os in
5175 aix4* | aix5*)
5565 aix[[4-9]]*)
5176 # If we're using GNU nm, then we don't want the "-C" option.
5177 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5178 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5179 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5180 else
5181 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5182 fi
5183 ;;
5184 pw32*)
5185 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5186 ;;
5187 cygwin* | mingw*)
5566 # If we're using GNU nm, then we don't want the "-C" option.
5567 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5568 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5569 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5570 else
5571 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5572 fi
5573 ;;
5574 pw32*)
5575 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5576 ;;
5577 cygwin* | mingw*)
5188 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5578 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5189 ;;
5190 *)
5191 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5192 ;;
5193 esac
5579 ;;
5580 *)
5581 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5582 ;;
5583 esac
5584 _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5194],[
5195 runpath_var=
5196 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5197 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5198 _LT_AC_TAGVAR(archive_cmds, $1)=
5199 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5200 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5201 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=

--- 14 unchanged lines hidden (view full) ---

5216 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5217 # include_expsyms should be a list of space-separated symbols to be *always*
5218 # included in the symbol list
5219 _LT_AC_TAGVAR(include_expsyms, $1)=
5220 # exclude_expsyms can be an extended regexp of symbols to exclude
5221 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5222 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5223 # as well as any symbol that contains `d'.
5585],[
5586 runpath_var=
5587 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5588 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5589 _LT_AC_TAGVAR(archive_cmds, $1)=
5590 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5591 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5592 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=

--- 14 unchanged lines hidden (view full) ---

5607 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5608 # include_expsyms should be a list of space-separated symbols to be *always*
5609 # included in the symbol list
5610 _LT_AC_TAGVAR(include_expsyms, $1)=
5611 # exclude_expsyms can be an extended regexp of symbols to exclude
5612 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5613 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5614 # as well as any symbol that contains `d'.
5224 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5615 _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5225 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5226 # platforms (ab)use it in PIC code, but their linkers get confused if
5227 # the symbol is explicitly referenced. Since portable code cannot
5228 # rely on this symbol name, it's probably fine to never include it in
5229 # preloaded symbol tables.
5616 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5617 # platforms (ab)use it in PIC code, but their linkers get confused if
5618 # the symbol is explicitly referenced. Since portable code cannot
5619 # rely on this symbol name, it's probably fine to never include it in
5620 # preloaded symbol tables.
5621 # Exclude shared library initialization/finalization symbols.
5622dnl Note also adjust exclude_expsyms for C++ above.
5230 extract_expsyms_cmds=
5231 # Just being paranoid about ensuring that cc_basename is set.
5232 _LT_CC_BASENAME([$compiler])
5233 case $host_os in
5234 cygwin* | mingw* | pw32*)
5235 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5236 # When not using gcc, we currently assume that we are using
5237 # Microsoft Visual C++.
5238 if test "$GCC" != yes; then
5239 with_gnu_ld=no
5240 fi
5241 ;;
5623 extract_expsyms_cmds=
5624 # Just being paranoid about ensuring that cc_basename is set.
5625 _LT_CC_BASENAME([$compiler])
5626 case $host_os in
5627 cygwin* | mingw* | pw32*)
5628 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5629 # When not using gcc, we currently assume that we are using
5630 # Microsoft Visual C++.
5631 if test "$GCC" != yes; then
5632 with_gnu_ld=no
5633 fi
5634 ;;
5635 interix*)
5636 # we just hope/assume this is gcc and not c89 (= MSVC++)
5637 with_gnu_ld=yes
5638 ;;
5242 openbsd*)
5243 with_gnu_ld=no
5244 ;;
5245 esac
5246
5247 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5248 if test "$with_gnu_ld" = yes; then
5249 # If archive_cmds runs LD, not CC, wlarc should be empty
5250 wlarc='${wl}'
5639 openbsd*)
5640 with_gnu_ld=no
5641 ;;
5642 esac
5643
5644 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5645 if test "$with_gnu_ld" = yes; then
5646 # If archive_cmds runs LD, not CC, wlarc should be empty
5647 wlarc='${wl}'
5251
5648
5252 # Set some defaults for GNU ld with shared library support. These
5253 # are reset later if shared libraries are not supported. Putting them
5254 # here allows them to be overridden if necessary.
5255 runpath_var=LD_RUN_PATH
5256 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5257 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5258 # ancient GNU ld didn't support --whole-archive et. al.
5259 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then

--- 4 unchanged lines hidden (view full) ---

5264 supports_anon_versioning=no
5265 case `$LD -v 2>/dev/null` in
5266 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5267 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5268 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5269 *\ 2.11.*) ;; # other 2.11 versions
5270 *) supports_anon_versioning=yes ;;
5271 esac
5649 # Set some defaults for GNU ld with shared library support. These
5650 # are reset later if shared libraries are not supported. Putting them
5651 # here allows them to be overridden if necessary.
5652 runpath_var=LD_RUN_PATH
5653 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5654 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5655 # ancient GNU ld didn't support --whole-archive et. al.
5656 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then

--- 4 unchanged lines hidden (view full) ---

5661 supports_anon_versioning=no
5662 case `$LD -v 2>/dev/null` in
5663 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5664 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5665 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5666 *\ 2.11.*) ;; # other 2.11 versions
5667 *) supports_anon_versioning=yes ;;
5668 esac
5272
5669
5273 # See if GNU ld supports shared libraries.
5274 case $host_os in
5670 # See if GNU ld supports shared libraries.
5671 case $host_os in
5275 aix3* | aix4* | aix5*)
5672 aix[[3-9]]*)
5276 # On AIX/PPC, the GNU linker is very broken
5277 if test "$host_cpu" != ia64; then
5278 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5279 cat <<EOF 1>&2
5280
5281*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5282*** to be unable to reliably create shared libraries on AIX.
5283*** Therefore, libtool is disabling shared libraries support. If you

--- 31 unchanged lines hidden (view full) ---

5315
5316 cygwin* | mingw* | pw32*)
5317 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5318 # as there is no search path for DLLs.
5319 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5320 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5321 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5322 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5673 # On AIX/PPC, the GNU linker is very broken
5674 if test "$host_cpu" != ia64; then
5675 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5676 cat <<EOF 1>&2
5677
5678*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5679*** to be unable to reliably create shared libraries on AIX.
5680*** Therefore, libtool is disabling shared libraries support. If you

--- 31 unchanged lines hidden (view full) ---

5712
5713 cygwin* | mingw* | pw32*)
5714 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5715 # as there is no search path for DLLs.
5716 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5717 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5718 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5719 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5323 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5720 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5324
5325 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5721
5722 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5326 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5723 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5327 # If the export-symbols file already is a .def file (1st line
5328 # is EXPORTS), use it as is; otherwise, prepend...
5329 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5330 cp $export_symbols $output_objdir/$soname.def;
5331 else
5332 echo EXPORTS > $output_objdir/$soname.def;
5333 cat $export_symbols >> $output_objdir/$soname.def;
5334 fi~
5724 # If the export-symbols file already is a .def file (1st line
5725 # is EXPORTS), use it as is; otherwise, prepend...
5726 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5727 cp $export_symbols $output_objdir/$soname.def;
5728 else
5729 echo EXPORTS > $output_objdir/$soname.def;
5730 cat $export_symbols >> $output_objdir/$soname.def;
5731 fi~
5335 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5732 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5336 else
5337 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5338 fi
5339 ;;
5340
5733 else
5734 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5735 fi
5736 ;;
5737
5341 linux*)
5738 interix[[3-9]]*)
5739 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5740 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5741 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5742 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5743 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5744 # Instead, shared libraries are loaded at an image base (0x10000000 by
5745 # default) and relocated if they conflict, which is a slow very memory
5746 # consuming and fragmenting process. To avoid this, we pick a random,
5747 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5748 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5749 _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'
5750 _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'
5751 ;;
5752
5753 gnu* | linux* | k*bsd*-gnu)
5342 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5343 tmp_addflag=
5344 case $cc_basename,$host_cpu in
5345 pgcc*) # Portland Group C compiler
5754 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5755 tmp_addflag=
5756 case $cc_basename,$host_cpu in
5757 pgcc*) # Portland Group C compiler
5346 _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'
5758 _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'
5347 tmp_addflag=' $pic_flag'
5348 ;;
5759 tmp_addflag=' $pic_flag'
5760 ;;
5349 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
5350 _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'
5761 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5762 _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'
5351 tmp_addflag=' $pic_flag -Mnomain' ;;
5352 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5353 tmp_addflag=' -i_dynamic' ;;
5354 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5355 tmp_addflag=' -i_dynamic -nofor_main' ;;
5356 ifc* | ifort*) # Intel Fortran compiler
5357 tmp_addflag=' -nofor_main' ;;
5358 esac
5763 tmp_addflag=' $pic_flag -Mnomain' ;;
5764 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5765 tmp_addflag=' -i_dynamic' ;;
5766 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5767 tmp_addflag=' -i_dynamic -nofor_main' ;;
5768 ifc* | ifort*) # Intel Fortran compiler
5769 tmp_addflag=' -nofor_main' ;;
5770 esac
5359 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5771 case `$CC -V 2>&1 | sed 5q` in
5772 *Sun\ C*) # Sun C 5.9
5773 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5774 tmp_sharedflag='-G' ;;
5775 *Sun\ F*) # Sun Fortran 8.3
5776 tmp_sharedflag='-G' ;;
5777 *)
5778 tmp_sharedflag='-shared' ;;
5779 esac
5780 _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5360
5361 if test $supports_anon_versioning = yes; then
5362 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5363 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5364 $echo "local: *; };" >> $output_objdir/$libname.ver~
5781
5782 if test $supports_anon_versioning = yes; then
5783 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5785 $echo "local: *; };" >> $output_objdir/$libname.ver~
5365 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5786 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5366 fi
5367 else
5368 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5369 fi
5370 ;;
5371
5372 netbsd*)
5373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5374 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5375 wlarc=
5376 else
5377 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5378 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5379 fi
5380 ;;
5381
5787 fi
5788 else
5789 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5790 fi
5791 ;;
5792
5793 netbsd*)
5794 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5795 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5796 wlarc=
5797 else
5798 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5799 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5800 fi
5801 ;;
5802
5382 solaris* | sysv5*)
5803 solaris*)
5383 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5384 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5385 cat <<EOF 1>&2
5386
5387*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5388*** create shared libraries on Solaris systems. Therefore, libtool
5389*** is disabling shared libraries support. We urge you to upgrade GNU
5390*** binutils to release 2.9.1 or newer. Another option is to modify

--- 4 unchanged lines hidden (view full) ---

5395 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5396 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5397 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5398 else
5399 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5400 fi
5401 ;;
5402
5804 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5805 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5806 cat <<EOF 1>&2
5807
5808*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5809*** create shared libraries on Solaris systems. Therefore, libtool
5810*** is disabling shared libraries support. We urge you to upgrade GNU
5811*** binutils to release 2.9.1 or newer. Another option is to modify

--- 4 unchanged lines hidden (view full) ---

5816 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5817 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5818 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5819 else
5820 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5821 fi
5822 ;;
5823
5824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5825 case `$LD -v 2>&1` in
5826 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5827 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5828 cat <<_LT_EOF 1>&2
5829
5830*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5831*** reliably create shared libraries on SCO systems. Therefore, libtool
5832*** is disabling shared libraries support. We urge you to upgrade GNU
5833*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5834*** your PATH or compiler configuration so that the native linker is
5835*** used, and then restart.
5836
5837_LT_EOF
5838 ;;
5839 *)
5840 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5841 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5842 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5843 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
5844 else
5845 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5846 fi
5847 ;;
5848 esac
5849 ;;
5850
5403 sunos4*)
5404 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5405 wlarc=
5406 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5407 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5408 ;;
5409
5410 *)

--- 17 unchanged lines hidden (view full) ---

5428 case $host_os in
5429 aix3*)
5430 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5431 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5432 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5433 # Note: this linker hardcodes the directories in LIBPATH if there
5434 # are no directories specified by -L.
5435 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5851 sunos4*)
5852 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5853 wlarc=
5854 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5855 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5856 ;;
5857
5858 *)

--- 17 unchanged lines hidden (view full) ---

5876 case $host_os in
5877 aix3*)
5878 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5879 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5880 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5881 # Note: this linker hardcodes the directories in LIBPATH if there
5882 # are no directories specified by -L.
5883 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5436 if test "$GCC" = yes && test -z "$link_static_flag"; then
5884 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5437 # Neither direct hardcoding nor static linking is supported with a
5438 # broken collect2.
5439 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5440 fi
5441 ;;
5442
5885 # Neither direct hardcoding nor static linking is supported with a
5886 # broken collect2.
5887 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5888 fi
5889 ;;
5890
5443 aix4* | aix5*)
5891 aix[[4-9]]*)
5444 if test "$host_cpu" = ia64; then
5445 # On IA64, the linker does run time linking by default, so we don't
5446 # have to do anything special.
5447 aix_use_runtimelinking=no
5448 exp_sym_flag='-Bexport'
5449 no_entry_flag=""
5450 else
5451 # If we're using GNU nm, then we don't want the "-C" option.
5452 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5453 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5454 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5455 else
5456 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5457 fi
5458 aix_use_runtimelinking=no
5459
5460 # Test if we are trying to use run time linking or normal
5461 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5462 # need to do runtime linking.
5892 if test "$host_cpu" = ia64; then
5893 # On IA64, the linker does run time linking by default, so we don't
5894 # have to do anything special.
5895 aix_use_runtimelinking=no
5896 exp_sym_flag='-Bexport'
5897 no_entry_flag=""
5898 else
5899 # If we're using GNU nm, then we don't want the "-C" option.
5900 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5901 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5902 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5903 else
5904 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5905 fi
5906 aix_use_runtimelinking=no
5907
5908 # Test if we are trying to use run time linking or normal
5909 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5910 # need to do runtime linking.
5463 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5911 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5464 for ld_flag in $LDFLAGS; do
5465 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5466 aix_use_runtimelinking=yes
5467 break
5468 fi
5469 done
5912 for ld_flag in $LDFLAGS; do
5913 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5914 aix_use_runtimelinking=yes
5915 break
5916 fi
5917 done
5918 ;;
5470 esac
5471
5472 exp_sym_flag='-bexport'
5473 no_entry_flag='-bnoentry'
5474 fi
5475
5476 # When large executables or shared objects are built, AIX ld can
5477 # have problems creating the table of contents. If linking a library

--- 10 unchanged lines hidden (view full) ---

5488 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5489 # We only want to do this on AIX 4.2 and lower, the check
5490 # below for broken collect2 doesn't work under 4.3+
5491 collect2name=`${CC} -print-prog-name=collect2`
5492 if test -f "$collect2name" && \
5493 strings "$collect2name" | grep resolve_lib_name >/dev/null
5494 then
5495 # We have reworked collect2
5919 esac
5920
5921 exp_sym_flag='-bexport'
5922 no_entry_flag='-bnoentry'
5923 fi
5924
5925 # When large executables or shared objects are built, AIX ld can
5926 # have problems creating the table of contents. If linking a library

--- 10 unchanged lines hidden (view full) ---

5937 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5938 # We only want to do this on AIX 4.2 and lower, the check
5939 # below for broken collect2 doesn't work under 4.3+
5940 collect2name=`${CC} -print-prog-name=collect2`
5941 if test -f "$collect2name" && \
5942 strings "$collect2name" | grep resolve_lib_name >/dev/null
5943 then
5944 # We have reworked collect2
5496 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5945 :
5497 else
5498 # We have old collect2
5499 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5500 # It fails to find uninstalled libraries when the uninstalled
5501 # path is not listed in the libpath. Setting hardcode_minus_L
5502 # to unsupported forces relinking
5503 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5504 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5505 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5506 fi
5946 else
5947 # We have old collect2
5948 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5949 # It fails to find uninstalled libraries when the uninstalled
5950 # path is not listed in the libpath. Setting hardcode_minus_L
5951 # to unsupported forces relinking
5952 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5953 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5954 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5955 fi
5956 ;;
5507 esac
5508 shared_flag='-shared'
5509 if test "$aix_use_runtimelinking" = yes; then
5510 shared_flag="$shared_flag "'${wl}-G'
5511 fi
5512 else
5513 # not using gcc
5514 if test "$host_cpu" = ia64; then
5515 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5516 # chokes on -Wl,-G. The following line is correct:
5517 shared_flag='-G'
5518 else
5957 esac
5958 shared_flag='-shared'
5959 if test "$aix_use_runtimelinking" = yes; then
5960 shared_flag="$shared_flag "'${wl}-G'
5961 fi
5962 else
5963 # not using gcc
5964 if test "$host_cpu" = ia64; then
5965 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5966 # chokes on -Wl,-G. The following line is correct:
5967 shared_flag='-G'
5968 else
5519 if test "$aix_use_runtimelinking" = yes; then
5969 if test "$aix_use_runtimelinking" = yes; then
5520 shared_flag='${wl}-G'
5521 else
5522 shared_flag='${wl}-bM:SRE'
5970 shared_flag='${wl}-G'
5971 else
5972 shared_flag='${wl}-bM:SRE'
5523 fi
5973 fi
5524 fi
5525 fi
5526
5527 # It seems that -bexpall does not export symbols beginning with
5528 # underscore (_), so it is better to generate a list of symbols to export.
5529 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5530 if test "$aix_use_runtimelinking" = yes; then
5531 # Warning - without using the other runtime loading flags (-brtl),
5532 # -berok will link without error, but may produce a broken library.
5533 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5534 # Determine the default libpath from the value encoded in an empty executable.
5535 _LT_AC_SYS_LIBPATH_AIX
5536 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5974 fi
5975 fi
5976
5977 # It seems that -bexpall does not export symbols beginning with
5978 # underscore (_), so it is better to generate a list of symbols to export.
5979 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5980 if test "$aix_use_runtimelinking" = yes; then
5981 # Warning - without using the other runtime loading flags (-brtl),
5982 # -berok will link without error, but may produce a broken library.
5983 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5984 # Determine the default libpath from the value encoded in an empty executable.
5985 _LT_AC_SYS_LIBPATH_AIX
5986 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5537 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5987 _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"
5538 else
5539 if test "$host_cpu" = ia64; then
5540 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5541 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5988 else
5989 if test "$host_cpu" = ia64; then
5990 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5991 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5542 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5992 _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"
5543 else
5544 # Determine the default libpath from the value encoded in an empty executable.
5545 _LT_AC_SYS_LIBPATH_AIX
5546 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5547 # Warning - without using the other run time loading flags,
5548 # -berok will link without error, but may produce a broken library.
5549 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5550 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5993 else
5994 # Determine the default libpath from the value encoded in an empty executable.
5995 _LT_AC_SYS_LIBPATH_AIX
5996 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5997 # Warning - without using the other run time loading flags,
5998 # -berok will link without error, but may produce a broken library.
5999 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6000 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5551 # -bexpall does not export symbols beginning with underscore (_)
5552 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5553 # Exported symbols can be pulled into shared objects from archives
6001 # Exported symbols can be pulled into shared objects from archives
5554 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6002 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5555 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6003 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5556 # This is similar to how AIX traditionally builds it's shared libraries.
5557 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6004 # This is similar to how AIX traditionally builds its shared libraries.
6005 _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'
5558 fi
5559 fi
5560 ;;
5561
5562 amigaos*)
5563 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5564 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5565 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes

--- 16 unchanged lines hidden (view full) ---

5582 libext=lib
5583 # Tell ltmain to make .dll files, not .so files.
5584 shrext_cmds=".dll"
5585 # FIXME: Setting linknames here is a bad hack.
5586 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5587 # The linker will automatically build a .lib file if we build a DLL.
5588 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5589 # FIXME: Should let the user specify the lib program.
6006 fi
6007 fi
6008 ;;
6009
6010 amigaos*)
6011 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6012 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6013 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes

--- 16 unchanged lines hidden (view full) ---

6030 libext=lib
6031 # Tell ltmain to make .dll files, not .so files.
6032 shrext_cmds=".dll"
6033 # FIXME: Setting linknames here is a bad hack.
6034 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6035 # The linker will automatically build a .lib file if we build a DLL.
6036 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6037 # FIXME: Should let the user specify the lib program.
5590 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6038 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5591 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5592 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5593 ;;
5594
5595 darwin* | rhapsody*)
6039 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6040 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6041 ;;
6042
6043 darwin* | rhapsody*)
5596 case "$host_os" in
6044 case $host_os in
5597 rhapsody* | darwin1.[[012]])
5598 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5599 ;;
5600 *) # Darwin 1.3 on
5601 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5602 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5603 else
5604 case ${MACOSX_DEPLOYMENT_TARGET} in

--- 10 unchanged lines hidden (view full) ---

5615 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5616 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5617 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5618 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5619 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5620 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5621 if test "$GCC" = yes ; then
5622 output_verbose_link_cmd='echo'
6045 rhapsody* | darwin1.[[012]])
6046 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6047 ;;
6048 *) # Darwin 1.3 on
6049 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6050 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6051 else
6052 case ${MACOSX_DEPLOYMENT_TARGET} in

--- 10 unchanged lines hidden (view full) ---

6063 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6064 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6065 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6066 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6067 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6068 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6069 if test "$GCC" = yes ; then
6070 output_verbose_link_cmd='echo'
5623 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5624 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5625 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5626 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5627 _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}'
6071 _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
6072 _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6073 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
6074 _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
5628 else
5629 case $cc_basename in
5630 xlc*)
5631 output_verbose_link_cmd='echo'
6075 else
6076 case $cc_basename in
6077 xlc*)
6078 output_verbose_link_cmd='echo'
5632 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6079 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5633 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6080 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5634 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5635 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6081 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6082 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5636 _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}'
5637 ;;
5638 *)
5639 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5640 ;;
5641 esac
5642 fi
5643 ;;

--- 23 unchanged lines hidden (view full) ---

5667 freebsd2*)
5668 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5669 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5670 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5671 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5672 ;;
5673
5674 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6083 _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}'
6084 ;;
6085 *)
6086 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6087 ;;
6088 esac
6089 fi
6090 ;;

--- 23 unchanged lines hidden (view full) ---

6114 freebsd2*)
6115 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6116 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6117 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6118 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6119 ;;
6120
6121 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5675 freebsd* | kfreebsd*-gnu | dragonfly*)
6122 freebsd* | dragonfly*)
5676 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5677 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5678 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5679 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5680 ;;
5681
5682 hpux9*)
5683 if test "$GCC" = yes; then

--- 6 unchanged lines hidden (view full) ---

5690 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5691
5692 # hardcode_minus_L: Not really in the search PATH,
5693 # but as the default location of the library.
5694 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5695 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5696 ;;
5697
6123 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6124 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6125 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6126 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6127 ;;
6128
6129 hpux9*)
6130 if test "$GCC" = yes; then

--- 6 unchanged lines hidden (view full) ---

6137 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6138
6139 # hardcode_minus_L: Not really in the search PATH,
6140 # but as the default location of the library.
6141 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6142 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6143 ;;
6144
5698 hpux10* | hpux11*)
6145 hpux10*)
5699 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6146 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5700 case "$host_cpu" in
5701 hppa*64*|ia64*)
6147 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6148 else
6149 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6150 fi
6151 if test "$with_gnu_ld" = no; then
6152 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6153 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6154
6155 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6156 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6157
6158 # hardcode_minus_L: Not really in the search PATH,
6159 # but as the default location of the library.
6160 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6161 fi
6162 ;;
6163
6164 hpux11*)
6165 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6166 case $host_cpu in
6167 hppa*64*)
5702 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5703 ;;
6168 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6169 ;;
6170 ia64*)
6171 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6172 ;;
5704 *)
5705 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5706 ;;
5707 esac
5708 else
6173 *)
6174 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6175 ;;
6176 esac
6177 else
5709 case "$host_cpu" in
5710 hppa*64*|ia64*)
5711 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6178 case $host_cpu in
6179 hppa*64*)
6180 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5712 ;;
6181 ;;
6182 ia64*)
6183 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6184 ;;
5713 *)
6185 *)
5714 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6186 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5715 ;;
5716 esac
5717 fi
5718 if test "$with_gnu_ld" = no; then
6187 ;;
6188 esac
6189 fi
6190 if test "$with_gnu_ld" = no; then
5719 case "$host_cpu" in
5720 hppa*64*)
5721 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6191 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6192 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6193
6194 case $host_cpu in
6195 hppa*64*|ia64*)
5722 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6196 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5723 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5724 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5725 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5726 ;;
6197 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6198 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6199 ;;
5727 ia64*)
5728 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5729 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5730 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5731
5732 # hardcode_minus_L: Not really in the search PATH,
5733 # but as the default location of the library.
5734 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5735 ;;
5736 *)
6200 *)
5737 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5738 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5739 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5740 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5741
5742 # hardcode_minus_L: Not really in the search PATH,
5743 # but as the default location of the library.
5744 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5745 ;;
5746 esac

--- 27 unchanged lines hidden (view full) ---

5774 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5775 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5776 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5777 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5778 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5779 ;;
5780
5781 openbsd*)
6201 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6202 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6203
6204 # hardcode_minus_L: Not really in the search PATH,
6205 # but as the default location of the library.
6206 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6207 ;;
6208 esac

--- 27 unchanged lines hidden (view full) ---

6236 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6237 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6238 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6239 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6240 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6241 ;;
6242
6243 openbsd*)
5782 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5783 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5784 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5785 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5786 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5787 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5788 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6244 if test -f /usr/libexec/ld.so; then
6245 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6246 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6247 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6248 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6249 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6250 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6251 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6252 else
6253 case $host_os in
6254 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6255 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6256 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6257 ;;
6258 *)
6259 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6260 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6261 ;;
6262 esac
6263 fi
5789 else
6264 else
5790 case $host_os in
5791 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5792 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5793 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5794 ;;
5795 *)
5796 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5797 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5798 ;;
5799 esac
6265 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5800 fi
5801 ;;
5802
5803 os2*)
5804 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5805 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5806 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5807 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'

--- 24 unchanged lines hidden (view full) ---

5832 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
5833
5834 # Both c and cxx compiler support -rpath directly
5835 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5836 fi
5837 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5838 ;;
5839
6266 fi
6267 ;;
6268
6269 os2*)
6270 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6271 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6272 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6273 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'

--- 24 unchanged lines hidden (view full) ---

6298 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6299
6300 # Both c and cxx compiler support -rpath directly
6301 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6302 fi
6303 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6304 ;;
6305
5840 sco3.2v5*)
5841 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5842 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5843 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5844 runpath_var=LD_RUN_PATH
5845 hardcode_runpath_var=yes
5846 ;;
5847
5848 solaris*)
5849 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5850 if test "$GCC" = yes; then
5851 wlarc='${wl}'
5852 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5853 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5854 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5855 else
5856 wlarc=''
5857 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5858 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5859 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5860 fi
5861 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5862 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5863 case $host_os in
5864 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5865 *)
6306 solaris*)
6307 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6308 if test "$GCC" = yes; then
6309 wlarc='${wl}'
6310 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6311 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6312 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6313 else
6314 wlarc=''
6315 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6316 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6317 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6318 fi
6319 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6320 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6321 case $host_os in
6322 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6323 *)
5866 # The compiler driver will combine linker options so we
5867 # cannot just pass the convience library names through
5868 # without $wl, iff we do not link with $LD.
5869 # Luckily, gcc supports the same syntax we need for Sun Studio.
6324 # The compiler driver will combine and reorder linker options,
6325 # but understands `-z linker_flag'. GCC discards it without `$wl',
6326 # but is careful enough not to reorder.
5870 # Supported since Solaris 2.6 (maybe 2.5.1?)
6327 # Supported since Solaris 2.6 (maybe 2.5.1?)
5871 case $wlarc in
5872 '')
5873 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
5874 *)
5875 _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' ;;
5876 esac ;;
6328 if test "$GCC" = yes; then
6329 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6330 else
6331 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6332 fi
6333 ;;
5877 esac
5878 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5879 ;;
5880
5881 sunos4*)
5882 if test "x$host_vendor" = xsequent; then
5883 # Use $CC to link under sequent, because it throws in some extra .o
5884 # files that make .init and .fini sections work.

--- 40 unchanged lines hidden (view full) ---

5925 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5926 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5927 runpath_var=LD_RUN_PATH
5928 hardcode_runpath_var=yes
5929 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5930 fi
5931 ;;
5932
6334 esac
6335 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6336 ;;
6337
6338 sunos4*)
6339 if test "x$host_vendor" = xsequent; then
6340 # Use $CC to link under sequent, because it throws in some extra .o
6341 # files that make .init and .fini sections work.

--- 40 unchanged lines hidden (view full) ---

6382 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6383 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6384 runpath_var=LD_RUN_PATH
6385 hardcode_runpath_var=yes
6386 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6387 fi
6388 ;;
6389
5933 sysv4.2uw2*)
5934 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5935 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5936 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6390 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6391 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6392 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5937 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6393 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5938 hardcode_runpath_var=yes
5939 runpath_var=LD_RUN_PATH
5940 ;;
6394 runpath_var='LD_RUN_PATH'
5941
6395
5942 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5943 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5944 if test "$GCC" = yes; then
6396 if test "$GCC" = yes; then
5945 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6397 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6398 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5946 else
6399 else
5947 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6400 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6401 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5948 fi
6402 fi
5949 runpath_var='LD_RUN_PATH'
5950 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5951 ;;
5952
6403 ;;
6404
5953 sysv5*)
5954 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5955 # $CC -shared without GNU ld will not create a library from C++
5956 # object files and a static libstdc++, better avoid it by now
5957 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5958 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5959 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5960 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6405 sysv5* | sco3.2v5* | sco5v6*)
6406 # Note: We can NOT use -z defs as we might desire, because we do not
6407 # link with -lc, and that would cause any symbols used from libc to
6408 # always be unresolved, which means just about no library would
6409 # ever link correctly. If we're not using GNU ld we use -z text
6410 # though, which does catch some bad symbols but isn't as heavy-handed
6411 # as -z defs.
6412 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6413 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6414 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5961 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6415 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6416 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6417 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6418 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6419 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5962 runpath_var='LD_RUN_PATH'
6420 runpath_var='LD_RUN_PATH'
6421
6422 if test "$GCC" = yes; then
6423 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6424 _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'
6425 else
6426 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6427 _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'
6428 fi
5963 ;;
5964
5965 uts4*)
5966 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5967 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5968 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5969 ;;
5970
5971 *)
5972 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5973 ;;
5974 esac
5975 fi
5976])
5977AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5978test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5979
6429 ;;
6430
6431 uts4*)
6432 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6433 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6434 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6435 ;;
6436
6437 *)
6438 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6439 ;;
6440 esac
6441 fi
6442])
6443AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6444test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6445
5980variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5981if test "$GCC" = yes; then
5982 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5983fi
5984
5985#
5986# Do we need to explicitly link libc?
5987#
5988case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
5989x|xyes)
5990 # Assume -lc should be added
5991 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5992
5993 if test "$enable_shared" = yes && test "$GCC" = yes; then
5994 case $_LT_AC_TAGVAR(archive_cmds, $1) in
5995 *'~'*)
5996 # FIXME: we may have to deal with multi-command sequences.
5997 ;;
5998 '$CC '*)
5999 # Test whether the compiler implicitly links with -lc since on some
6000 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6001 # to ld, don't add -lc before -lgcc.
6002 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6003 $rm conftest*
6446#
6447# Do we need to explicitly link libc?
6448#
6449case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6450x|xyes)
6451 # Assume -lc should be added
6452 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6453
6454 if test "$enable_shared" = yes && test "$GCC" = yes; then
6455 case $_LT_AC_TAGVAR(archive_cmds, $1) in
6456 *'~'*)
6457 # FIXME: we may have to deal with multi-command sequences.
6458 ;;
6459 '$CC '*)
6460 # Test whether the compiler implicitly links with -lc since on some
6461 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6462 # to ld, don't add -lc before -lgcc.
6463 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6464 $rm conftest*
6004 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6005
6006 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6007 soname=conftest
6008 lib=conftest
6009 libobjs=conftest.$ac_objext
6010 deplibs=
6011 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6466
6467 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6468 soname=conftest
6469 lib=conftest
6470 libobjs=conftest.$ac_objext
6471 deplibs=
6472 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6473 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6012 compiler_flags=-v
6013 linker_flags=-v
6014 verstring=
6015 output_objdir=.
6016 libname=conftest
6017 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6018 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6019 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)

--- 78 unchanged lines hidden (view full) ---

6098 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6099 AC_SUBST(GCJFLAGS)
6100])
6101
6102AC_DEFUN([LT_AC_PROG_RC],
6103[AC_CHECK_TOOL(RC, windres, no)
6104])
6105
6474 compiler_flags=-v
6475 linker_flags=-v
6476 verstring=
6477 output_objdir=.
6478 libname=conftest
6479 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6480 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6481 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)

--- 78 unchanged lines hidden (view full) ---

6560 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6561 AC_SUBST(GCJFLAGS)
6562])
6563
6564AC_DEFUN([LT_AC_PROG_RC],
6565[AC_CHECK_TOOL(RC, windres, no)
6566])
6567
6568
6569# Cheap backport of AS_EXECUTABLE_P and required macros
6570# from Autoconf 2.59; we should not use $as_executable_p directly.
6571
6572# _AS_TEST_PREPARE
6573# ----------------
6574m4_ifndef([_AS_TEST_PREPARE],
6575[m4_defun([_AS_TEST_PREPARE],
6576[if test -x / >/dev/null 2>&1; then
6577 as_executable_p='test -x'
6578else
6579 as_executable_p='test -f'
6580fi
6581])])# _AS_TEST_PREPARE
6582
6583# AS_EXECUTABLE_P
6584# ---------------
6585# Check whether a file is executable.
6586m4_ifndef([AS_EXECUTABLE_P],
6587[m4_defun([AS_EXECUTABLE_P],
6588[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6589$as_executable_p $1[]dnl
6590])])# AS_EXECUTABLE_P
6591
6106# NOTE: This macro has been submitted for inclusion into #
6107# GNU Autoconf as AC_PROG_SED. When it is available in #
6108# a released version of Autoconf we should remove this #
6109# macro and use it instead. #
6110# LT_AC_PROG_SED
6111# --------------
6112# Check for a fully-functional sed program, that truncates
6113# as few characters as possible. Prefer GNU sed if found.

--- 4 unchanged lines hidden (view full) ---

6118# Then use that list of sed's as ones to test for truncation.
6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for lt_ac_prog in sed gsed; do
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6592# NOTE: This macro has been submitted for inclusion into #
6593# GNU Autoconf as AC_PROG_SED. When it is available in #
6594# a released version of Autoconf we should remove this #
6595# macro and use it instead. #
6596# LT_AC_PROG_SED
6597# --------------
6598# Check for a fully-functional sed program, that truncates
6599# as few characters as possible. Prefer GNU sed if found.

--- 4 unchanged lines hidden (view full) ---

6604# Then use that list of sed's as ones to test for truncation.
6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606for as_dir in $PATH
6607do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for lt_ac_prog in sed gsed; do
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6612 if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6127 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6128 fi
6129 done
6130 done
6131done
6613 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6614 fi
6615 done
6616 done
6617done
6618IFS=$as_save_IFS
6132lt_ac_max=0
6133lt_ac_count=0
6134# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6135# along with /bin/sed that truncates output.
6136for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6137 test ! -f $lt_ac_sed && continue
6138 cat /dev/null > conftest.in
6139 lt_ac_count=0

--- 16 unchanged lines hidden (view full) ---

6156 if test $lt_ac_count -gt $lt_ac_max; then
6157 lt_ac_max=$lt_ac_count
6158 lt_cv_path_SED=$lt_ac_sed
6159 fi
6160 done
6161done
6162])
6163SED=$lt_cv_path_SED
6619lt_ac_max=0
6620lt_ac_count=0
6621# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6622# along with /bin/sed that truncates output.
6623for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6624 test ! -f $lt_ac_sed && continue
6625 cat /dev/null > conftest.in
6626 lt_ac_count=0

--- 16 unchanged lines hidden (view full) ---

6643 if test $lt_ac_count -gt $lt_ac_max; then
6644 lt_ac_max=$lt_ac_count
6645 lt_cv_path_SED=$lt_ac_sed
6646 fi
6647 done
6648done
6649])
6650SED=$lt_cv_path_SED
6651AC_SUBST([SED])
6164AC_MSG_RESULT([$SED])
6165])
6166
6167# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
6168#
6169# This file is free software; the Free Software Foundation
6170# gives unlimited permission to copy and/or distribute it,
6171# with or without modifications, as long as this notice is preserved.

--- 886 unchanged lines hidden ---
6652AC_MSG_RESULT([$SED])
6653])
6654
6655# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
6656#
6657# This file is free software; the Free Software Foundation
6658# gives unlimited permission to copy and/or distribute it,
6659# with or without modifications, as long as this notice is preserved.

--- 886 unchanged lines hidden ---