~ubuntu-branches/ubuntu/jaunty/ghostscript/jaunty-updates

« back to all changes in this revision

Viewing changes to jasper/aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2009-01-20 16:40:45 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090120164045-lnfhi0n30o5lwhwa
Tags: 8.64.dfsg.1~svn9377-0ubuntu1
* New upstream release (SVN rev 9377)
   o Fixes many bugs concerning PDF rendering, to make the PDF printing
     workflow correctly working.
   o Fixes long-standing bugs in many drivers, like input paper tray and
     duplex options not working for the built-in PCL 4, 5, 5c, 5e, and
     6/XL drivers, PDF input not working for bjc600, bjc800, and cups
     output devices, several options not working and uninitialized
     memory with cups output device.
   o Merged nearly all patches of the Ubuntu and Debian packages upstream.
   o Fixes LP: #317810, LP: #314439, LP: #314018.
* debian/patches/03_libpaper_support.dpatch,
  debian/patches/11_gs-cjk_font_glyph_handling_fix.dpatch,
  debian/patches/12_gs-cjk_vertical_writing_metrics_fix.dpatch,
  debian/patches/13_gs-cjk_cjkps_examples.dpatch,
  debian/patches/20_bbox_segv_fix.dpatch,
  debian/patches/21_brother_7x0_gdi_fix.dpatch,
  debian/patches/22_epsn_margin_workaround.dpatch,
  debian/patches/24_gs_man_fix.dpatch,
  debian/patches/25_toolbin_insecure_tmp_usage_fix.dpatch,
  debian/patches/26_assorted_script_fixes.dpatch,
  debian/patches/29_gs_css_fix.dpatch,
  debian/patches/30_ps2pdf_man_improvement.dpatch,
  debian/patches/31_fix-gc-sigbus.dpatch,
  debian/patches/34_ftbfs-on-hurd-fix.dpatch,
  debian/patches/35_disable_libcairo.dpatch,
  debian/patches/38_pxl-duplex.dpatch,
  debian/patches/39_pxl-resolution.dpatch,
  debian/patches/42_gs-init-ps-delaybind-fix.dpatch,
  debian/patches/45_bjc600-bjc800-pdf-input.dpatch,
  debian/patches/48_cups-output-device-pdf-duplex-uninitialized-memory-fix.dpatch,
  debian/patches/50_lips4-floating-point-exception.dpatch,
  debian/patches/52_cups-device-logging.dpatch,
  debian/patches/55_pcl-input-slot-fix.dpatch,
  debian/patches/57_pxl-input-slot-fix.dpatch,
  debian/patches/60_pxl-cups-driver-pdf.dpatch,
  debian/patches/62_onebitcmyk-pdf.dpatch,
  debian/patches/65_too-big-temp-files-1.dpatch,
  debian/patches/67_too-big-temp-files-2.dpatch,
  debian/patches/70_take-into-account-data-in-stream-buffer-before-refill.dpatch:
  Removed, applied upstream.
* debian/patches/01_docdir_fix_for_debian.dpatch,
  debian/patches/02_gs_man_fix_debian.dpatch,
  debian/patches/01_docdir-fix-for-debian.dpatch,
  debian/patches/02_docdir-fix-for-debian.dpatch: Renamed patches to
  make merging with Debian easier.
* debian/patches/32_improve-handling-of-media-size-changes-from-gv.dpatch, 
  debian/patches/33_bad-params-to-xinitimage-on-large-bitmaps.dpatch:
  regenerated for new source directory structure.
* debian/rules: Corrected paths to remove cidfmap (it is in Resource/Init/
  in GS 8.64) and to install headers (source paths are psi/ and base/ now).
* debian/rules: Remove all fontmaps, as DeFoMa replaces them.
* debian/local/pdftoraster/pdftoraster.c,
  debian/local/pdftoraster/pdftoraster.convs, debian/rules: Removed
  added pdftoraster filter and use the one which comes with Ghostscript.
* debian/ghostscript.links: s/8.63/8.64/

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
4
# 2005  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
14
 
m4_ifndef([AC_AUTOCONF_VERSION],
15
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
 
[m4_warning([this file was generated for autoconf 2.61.
18
 
You have another version of autoconf.  It may work, but is not guaranteed to.
19
 
If you have problems, you may need to regenerate the build system entirely.
20
 
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
 
 
22
14
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
23
15
 
24
 
# serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL
 
16
# serial 47 AC_PROG_LIBTOOL
 
17
# Debian $Rev: 214 $
25
18
 
26
19
 
27
20
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
109
102
AC_REQUIRE([AC_OBJEXT])dnl
110
103
AC_REQUIRE([AC_EXEEXT])dnl
111
104
dnl
 
105
 
112
106
AC_LIBTOOL_SYS_MAX_CMD_LEN
113
107
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
114
108
AC_LIBTOOL_OBJDIR
130
124
 
131
125
# Sed substitution that helps us do robust quoting.  It backslashifies
132
126
# metacharacters that are still active within double-quoted strings.
133
 
Xsed='sed -e 1s/^X//'
 
127
Xsed='sed -e s/^X//'
134
128
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
135
129
 
136
130
# Same as above, but do not quote variable references.
150
144
default_ofile=libtool
151
145
can_build_shared=yes
152
146
 
153
 
# All known linkers require a `.a' archive for static linking (except MSVC,
 
147
# All known linkers require a `.a' archive for static linking (except M$VC,
154
148
# which needs '.lib').
155
149
libext=a
156
150
ltmain="$ac_aux_dir/ltmain.sh"
170
164
test -z "$AS" && AS=as
171
165
test -z "$CC" && CC=cc
172
166
test -z "$LTCC" && LTCC=$CC
173
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
174
167
test -z "$DLLTOOL" && DLLTOOL=dlltool
175
168
test -z "$LD" && LD=ld
176
169
test -z "$LN_S" && LN_S="ln -s"
183
176
test -z "$ac_objext" && ac_objext=o
184
177
 
185
178
# Determine commands to create old-style static archives.
186
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
179
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
187
180
old_postinstall_cmds='chmod 644 $oldlib'
188
181
old_postuninstall_cmds=
189
182
 
190
183
if test -n "$RANLIB"; then
191
184
  case $host_os in
192
185
  openbsd*)
193
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
186
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
194
187
    ;;
195
188
  *)
196
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
189
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
197
190
    ;;
198
191
  esac
199
192
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
200
193
fi
201
194
 
202
 
_LT_CC_BASENAME([$compiler])
203
 
 
204
195
# Only perform the check for file, if the check method requires it
205
196
case $deplibs_check_method in
206
197
file_magic*)
210
201
  ;;
211
202
esac
212
203
 
213
 
_LT_REQUIRED_DARWIN_CHECKS
214
 
 
215
204
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
216
205
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
217
206
enable_win32_dll=yes, enable_win32_dll=no)
243
232
# If no C compiler was specified, use CC.
244
233
LTCC=${LTCC-"$CC"}
245
234
 
246
 
# If no C compiler flags were specified, use CFLAGS.
247
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
248
 
 
249
235
# Allow CC to be a program name with arguments.
250
236
compiler=$CC
251
237
])# _LT_AC_SYS_COMPILER
252
238
 
253
239
 
254
 
# _LT_CC_BASENAME(CC)
255
 
# -------------------
256
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
257
 
AC_DEFUN([_LT_CC_BASENAME],
258
 
[for cc_temp in $1""; do
259
 
  case $cc_temp in
260
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
261
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
262
 
    \-*) ;;
263
 
    *) break;;
264
 
  esac
265
 
done
266
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
267
 
])
268
 
 
269
 
 
270
 
# _LT_COMPILER_BOILERPLATE
271
 
# ------------------------
272
 
# Check for compiler boilerplate output or warnings with
273
 
# the simple compiler test code.
274
 
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
275
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
276
 
ac_outfile=conftest.$ac_objext
277
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
278
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
279
 
_lt_compiler_boilerplate=`cat conftest.err`
280
 
$rm conftest*
281
 
])# _LT_COMPILER_BOILERPLATE
282
 
 
283
 
 
284
 
# _LT_LINKER_BOILERPLATE
285
 
# ----------------------
286
 
# Check for linker boilerplate output or warnings with
287
 
# the simple link test code.
288
 
AC_DEFUN([_LT_LINKER_BOILERPLATE],
289
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
290
 
ac_outfile=conftest.$ac_objext
291
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
292
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
293
 
_lt_linker_boilerplate=`cat conftest.err`
294
 
$rm -r conftest*
295
 
])# _LT_LINKER_BOILERPLATE
296
 
 
297
 
# _LT_REQUIRED_DARWIN_CHECKS
298
 
# --------------------------
299
 
# Check for some things on darwin
300
 
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
301
 
  case $host_os in
302
 
    rhapsody* | darwin*)
303
 
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
304
 
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
305
 
 
306
 
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
307
 
      [lt_cv_apple_cc_single_mod=no
308
 
      if test -z "${LT_MULTI_MODULE}"; then
309
 
   # By default we will add the -single_module flag. You can override
310
 
   # by either setting the environment variable LT_MULTI_MODULE
311
 
   # non-empty at configure time, or by adding -multi_module to the
312
 
   # link flags.
313
 
   echo "int foo(void){return 1;}" > conftest.c
314
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
315
 
     -dynamiclib ${wl}-single_module conftest.c
316
 
   if test -f libconftest.dylib; then
317
 
     lt_cv_apple_cc_single_mod=yes
318
 
     rm -rf libconftest.dylib*
319
 
   fi
320
 
   rm conftest.c
321
 
      fi])
322
 
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
323
 
      [lt_cv_ld_exported_symbols_list],
324
 
      [lt_cv_ld_exported_symbols_list=no
325
 
      save_LDFLAGS=$LDFLAGS
326
 
      echo "_main" > conftest.sym
327
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
328
 
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
329
 
   [lt_cv_ld_exported_symbols_list=yes],
330
 
   [lt_cv_ld_exported_symbols_list=no])
331
 
   LDFLAGS="$save_LDFLAGS"
332
 
    ])
333
 
    case $host_os in
334
 
    rhapsody* | darwin1.[[0123]])
335
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
336
 
    darwin1.*)
337
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
338
 
    darwin*)
339
 
      # if running on 10.5 or later, the deployment target defaults
340
 
      # to the OS version, if on x86, and 10.4, the deployment
341
 
      # target defaults to 10.4. Don't you love it?
342
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
343
 
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
344
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
345
 
   10.[[012]]*)
346
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
347
 
   10.*)
348
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
349
 
      esac
350
 
    ;;
351
 
  esac
352
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
353
 
      _lt_dar_single_mod='$single_module'
354
 
    fi
355
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
356
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
357
 
    else
358
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
359
 
    fi
360
 
    if test "$DSYMUTIL" != ":"; then
361
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
362
 
    else
363
 
      _lt_dsymutil=
364
 
    fi
365
 
    ;;
366
 
  esac
367
 
])
368
 
 
369
240
# _LT_AC_SYS_LIBPATH_AIX
370
241
# ----------------------
371
242
# Links a minimal program and checks the executable
375
246
# If we don't find anything, use the default library path according
376
247
# to the aix ld manual.
377
248
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
378
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
379
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
380
 
lt_aix_libpath_sed='
381
 
    /Import File Strings/,/^$/ {
382
 
        /^0/ {
383
 
            s/^0  *\(.*\)$/\1/
384
 
            p
385
 
        }
386
 
    }'
387
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
249
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
250
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
251
}'`
388
252
# Check for a 64-bit object if we didn't find anything.
389
 
if test -z "$aix_libpath"; then
390
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
391
 
fi],[])
 
253
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
254
}'`; fi],[])
392
255
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
393
256
])# _LT_AC_SYS_LIBPATH_AIX
394
257
 
446
309
 
447
310
# The HP-UX ksh and POSIX shell print the target directory to stdout
448
311
# if CDPATH is set.
449
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
312
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
450
313
 
451
314
if test -z "$ECHO"; then
452
315
if test "X${echo_test_string+set}" != Xset; then
453
316
# find a string as large as possible, as long as the shell can cope with it
454
317
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
455
318
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
456
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
457
 
       echo_test_string=`eval $cmd` &&
 
319
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
320
       echo_test_string="`eval $cmd`" &&
458
321
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
459
322
    then
460
323
      break
619
482
  rm -rf conftest*
620
483
  ;;
621
484
 
622
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
623
 
s390*-*linux*|sparc*-*linux*)
 
485
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
624
486
  # Find out which ABI we are using.
625
487
  echo 'int i;' > conftest.$ac_ext
626
488
  if AC_TRY_EVAL(ac_compile); then
627
 
    case `/usr/bin/file conftest.o` in
 
489
    case "`/usr/bin/file conftest.o`" in
628
490
    *32-bit*)
629
491
      case $host in
630
 
        x86_64-*kfreebsd*-gnu)
631
 
          LD="${LD-ld} -m elf_i386_fbsd"
632
 
          ;;
633
492
        x86_64-*linux*)
634
493
          LD="${LD-ld} -m elf_i386"
635
494
          ;;
646
505
      ;;
647
506
    *64-bit*)
648
507
      case $host in
649
 
        x86_64-*kfreebsd*-gnu)
650
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
651
 
          ;;
652
508
        x86_64-*linux*)
653
509
          LD="${LD-ld} -m elf_x86_64"
654
510
          ;;
681
537
    CFLAGS="$SAVE_CFLAGS"
682
538
  fi
683
539
  ;;
684
 
sparc*-*solaris*)
685
 
  # Find out which ABI we are using.
686
 
  echo 'int i;' > conftest.$ac_ext
687
 
  if AC_TRY_EVAL(ac_compile); then
688
 
    case `/usr/bin/file conftest.o` in
689
 
    *64-bit*)
690
 
      case $lt_cv_prog_gnu_ld in
691
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
692
 
      *)
693
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
694
 
          LD="${LD-ld} -64"
695
 
        fi
696
 
        ;;
697
 
      esac
698
 
      ;;
699
 
    esac
700
 
  fi
701
 
  rm -rf conftest*
702
 
  ;;
703
 
 
704
540
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
705
541
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
706
542
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
724
560
AC_CACHE_CHECK([$1], [$2],
725
561
  [$2=no
726
562
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
727
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
563
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
728
564
   lt_compiler_flag="$3"
729
565
   # Insert the option either (1) after the last *FLAGS variable, or
730
566
   # (2) before a word containing "conftest.", or (3) at the end.
732
568
   # with a dollar sign (not a hyphen), so the echo should work correctly.
733
569
   # The option is referenced via a variable to avoid confusing sed.
734
570
   lt_compile=`echo "$ac_compile" | $SED \
735
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
571
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
736
572
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
737
573
   -e 's:$: $lt_compiler_flag:'`
738
574
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
742
578
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
743
579
   if (exit $ac_status) && test -s "$ac_outfile"; then
744
580
     # The compiler can only warn and ignore the option if not recognized
745
 
     # So say no if there are warnings other than the usual output.
746
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
747
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
748
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
581
     # So say no if there are warnings
 
582
     if test ! -s conftest.err; then
749
583
       $2=yes
750
584
     fi
751
585
   fi
765
599
# ------------------------------------------------------------
766
600
# Check whether the given compiler option works
767
601
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
768
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
769
 
AC_CACHE_CHECK([$1], [$2],
 
602
[AC_CACHE_CHECK([$1], [$2],
770
603
  [$2=no
771
604
   save_LDFLAGS="$LDFLAGS"
772
605
   LDFLAGS="$LDFLAGS $3"
773
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
606
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
774
607
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
775
 
     # The linker can only warn and ignore the option if not recognized
 
608
     # The compiler can only warn and ignore the option if not recognized
776
609
     # So say no if there are warnings
777
610
     if test -s conftest.err; then
778
611
       # Append any errors to the config.log.
779
612
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
780
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
781
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
782
 
       if diff conftest.exp conftest.er2 >/dev/null; then
783
 
         $2=yes
784
 
       fi
785
613
     else
786
614
       $2=yes
787
615
     fi
788
616
   fi
789
 
   $rm -r conftest*
 
617
   $rm conftest*
790
618
   LDFLAGS="$save_LDFLAGS"
791
619
])
792
620
 
840
668
    lt_cv_sys_max_cmd_len=8192;
841
669
    ;;
842
670
 
843
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
844
 
    # This has been around since 386BSD, at least.  Likely further.
845
 
    if test -x /sbin/sysctl; then
846
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
847
 
    elif test -x /usr/sbin/sysctl; then
848
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
849
 
    else
850
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
851
 
    fi
852
 
    # And add a safety zone
853
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
854
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
855
 
    ;;
856
 
 
857
 
  interix*)
858
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
859
 
    lt_cv_sys_max_cmd_len=196608
860
 
    ;;
861
 
 
862
 
  osf*)
863
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
864
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
865
 
    # nice to cause kernel panics so lets avoid the loop below.
866
 
    # First set a reasonable default.
867
 
    lt_cv_sys_max_cmd_len=16384
868
 
    #
869
 
    if test -x /sbin/sysconfig; then
870
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
871
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
872
 
      esac
873
 
    fi
874
 
    ;;
875
 
  sco3.2v5*)
876
 
    lt_cv_sys_max_cmd_len=102400
877
 
    ;;
878
 
  sysv5* | sco5v6* | sysv4.2uw2*)
879
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
880
 
    if test -n "$kargmax"; then
881
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
882
 
    else
883
 
      lt_cv_sys_max_cmd_len=32768
884
 
    fi
885
 
    ;;
886
 
  *)
887
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
888
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
889
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
890
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
891
 
    else
892
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
893
 
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
671
 *)
 
672
    # If test is not a shell built-in, we'll probably end up computing a
 
673
    # maximum length that is only half of the actual maximum length, but
 
674
    # we can't tell.
 
675
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
894
676
               = "XX$teststring") >/dev/null 2>&1 &&
895
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
896
 
              lt_cv_sys_max_cmd_len=$new_result &&
897
 
              test $i != 17 # 1/2 MB should be enough
898
 
      do
899
 
        i=`expr $i + 1`
900
 
        teststring=$teststring$teststring
901
 
      done
902
 
      teststring=
903
 
      # Add a significant safety factor because C++ compilers can tack on massive
904
 
      # amounts of additional arguments before passing them to the linker.
905
 
      # It appears as though 1/2 is a usable value.
906
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
907
 
    fi
 
677
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
678
            lt_cv_sys_max_cmd_len=$new_result &&
 
679
            test $i != 17 # 1/2 MB should be enough
 
680
    do
 
681
      i=`expr $i + 1`
 
682
      teststring=$teststring$teststring
 
683
    done
 
684
    teststring=
 
685
    # Add a significant safety factor because C++ compilers can tack on massive
 
686
    # amounts of additional arguments before passing them to the linker.
 
687
    # It appears as though 1/2 is a usable value.
 
688
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
908
689
    ;;
909
690
  esac
910
691
])
917
698
 
918
699
 
919
700
# _LT_AC_CHECK_DLFCN
920
 
# ------------------
 
701
# --------------------
921
702
AC_DEFUN([_LT_AC_CHECK_DLFCN],
922
703
[AC_CHECK_HEADERS(dlfcn.h)dnl
923
704
])# _LT_AC_CHECK_DLFCN
925
706
 
926
707
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
927
708
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
928
 
# ---------------------------------------------------------------------
 
709
# ------------------------------------------------------------------
929
710
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
930
711
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
931
712
if test "$cross_compiling" = yes; then :
991
772
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
992
773
      /* dlclose (self); */
993
774
    }
994
 
  else
995
 
    puts (dlerror ());
996
775
 
997
776
    exit (status);
998
777
}]
999
778
EOF
1000
779
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1001
 
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
 
780
    (./conftest; exit; ) 2>/dev/null
1002
781
    lt_status=$?
1003
782
    case x$lt_status in
1004
783
      x$lt_dlno_uscore) $1 ;;
1005
784
      x$lt_dlneed_uscore) $2 ;;
1006
 
      x$lt_dlunknown|x*) $3 ;;
 
785
      x$lt_unknown|x*) $3 ;;
1007
786
    esac
1008
787
  else :
1009
788
    # compilation failed
1015
794
 
1016
795
 
1017
796
# AC_LIBTOOL_DLOPEN_SELF
1018
 
# ----------------------
 
797
# -------------------
1019
798
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1020
799
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1021
800
if test "x$enable_dlopen" != xyes; then
1057
836
    AC_CHECK_FUNC([shl_load],
1058
837
          [lt_cv_dlopen="shl_load"],
1059
838
      [AC_CHECK_LIB([dld], [shl_load],
1060
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
 
839
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1061
840
        [AC_CHECK_FUNC([dlopen],
1062
841
              [lt_cv_dlopen="dlopen"],
1063
842
          [AC_CHECK_LIB([dl], [dlopen],
1065
844
            [AC_CHECK_LIB([svld], [dlopen],
1066
845
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1067
846
              [AC_CHECK_LIB([dld], [dld_link],
1068
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
 
847
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1069
848
              ])
1070
849
            ])
1071
850
          ])
1086
865
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1087
866
 
1088
867
    save_LDFLAGS="$LDFLAGS"
1089
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
868
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1090
869
 
1091
870
    save_LIBS="$LIBS"
1092
871
    LIBS="$lt_cv_dlopen_libs $LIBS"
1099
878
    ])
1100
879
 
1101
880
    if test "x$lt_cv_dlopen_self" = xyes; then
1102
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
881
      LDFLAGS="$LDFLAGS $link_static_flag"
1103
882
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1104
883
          lt_cv_dlopen_self_static, [dnl
1105
884
          _LT_AC_TRY_DLOPEN_SELF(
1131
910
# ---------------------------------
1132
911
# Check to see if options -c and -o are simultaneously supported by compiler
1133
912
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1134
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1135
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
913
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1136
914
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1137
915
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1138
916
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1140
918
   mkdir conftest
1141
919
   cd conftest
1142
920
   mkdir out
1143
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
921
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1144
922
 
1145
923
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1146
924
   # Insert the option either (1) after the last *FLAGS variable, or
1148
926
   # Note that $ac_compile itself does not contain backslashes and begins
1149
927
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1150
928
   lt_compile=`echo "$ac_compile" | $SED \
1151
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
929
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1152
930
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1153
931
   -e 's:$: $lt_compiler_flag:'`
1154
932
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1160
938
   then
1161
939
     # The compiler can only warn and ignore the option if not recognized
1162
940
     # So say no if there are warnings
1163
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1164
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1165
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
941
     if test ! -s out/conftest.err; then
1166
942
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1167
943
     fi
1168
944
   fi
1169
 
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
 
945
   chmod u+w .
1170
946
   $rm conftest*
1171
947
   # SGI C++ compiler will create directory out/ii_files/ for
1172
948
   # template instantiation
1230
1006
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1231
1007
_LT_AC_TAGVAR(hardcode_action, $1)=
1232
1008
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1233
 
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1234
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
1009
   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
 
1010
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
1235
1011
 
1236
1012
  # We can hardcode non-existant directories.
1237
1013
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1280
1056
   darwin*)
1281
1057
       if test -n "$STRIP" ; then
1282
1058
         striplib="$STRIP -x"
1283
 
         old_striplib="$STRIP -S"
1284
1059
         AC_MSG_RESULT([yes])
1285
1060
       else
1286
1061
  AC_MSG_RESULT([no])
1298
1073
# -----------------------------
1299
1074
# PORTME Fill in your ld.so characteristics
1300
1075
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1301
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1302
 
AC_MSG_CHECKING([dynamic linker characteristics])
 
1076
[AC_MSG_CHECKING([dynamic linker characteristics])
1303
1077
library_names_spec=
1304
1078
libname_spec='lib$name'
1305
1079
soname_spec=
1313
1087
version_type=none
1314
1088
dynamic_linker="$host_os ld.so"
1315
1089
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1316
 
m4_if($1,[],[
1317
1090
if test "$GCC" = yes; then
1318
 
  case $host_os in
1319
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1320
 
    *) lt_awk_arg="/^libraries:/" ;;
1321
 
  esac
1322
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1323
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
1091
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1092
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1324
1093
    # if the path contains ";" then we assume it to be the separator
1325
1094
    # otherwise default to the standard path separator (i.e. ":") - it is
1326
1095
    # assumed that no part of a normal pathname contains ";" but that should
1327
1096
    # okay in the real world where ";" in dirpaths is itself problematic.
1328
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
1097
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1329
1098
  else
1330
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1099
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1331
1100
  fi
1332
 
  # Ok, now we have the path, separated by spaces, we can step through it
1333
 
  # and add multilib dir if necessary.
1334
 
  lt_tmp_lt_search_path_spec=
1335
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1336
 
  for lt_sys_path in $lt_search_path_spec; do
1337
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1338
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1339
 
    else
1340
 
      test -d "$lt_sys_path" && \
1341
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1342
 
    fi
1343
 
  done
1344
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1345
 
BEGIN {RS=" "; FS="/|\n";} {
1346
 
  lt_foo="";
1347
 
  lt_count=0;
1348
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
1349
 
    if ($lt_i != "" && $lt_i != ".") {
1350
 
      if ($lt_i == "..") {
1351
 
        lt_count++;
1352
 
      } else {
1353
 
        if (lt_count == 0) {
1354
 
          lt_foo="/" $lt_i lt_foo;
1355
 
        } else {
1356
 
          lt_count--;
1357
 
        }
1358
 
      }
1359
 
    }
1360
 
  }
1361
 
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1362
 
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1363
 
}'`
1364
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1365
1101
else
1366
1102
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1367
 
fi])
 
1103
fi
1368
1104
need_lib_prefix=unknown
1369
1105
hardcode_into_libs=no
1370
1106
 
1382
1118
  soname_spec='${libname}${release}${shared_ext}$major'
1383
1119
  ;;
1384
1120
 
1385
 
aix[[4-9]]*)
 
1121
aix4* | aix5*)
1386
1122
  version_type=linux
1387
1123
  need_lib_prefix=no
1388
1124
  need_version=no
1438
1174
  shlibpath_var=LIBRARY_PATH
1439
1175
  ;;
1440
1176
 
1441
 
bsdi[[45]]*)
 
1177
bsdi4*)
1442
1178
  version_type=linux
1443
1179
  need_version=no
1444
1180
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1466
1202
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1467
1203
      dldir=$destdir/`dirname \$dlpath`~
1468
1204
      test -d \$dldir || mkdir -p \$dldir~
1469
 
      $install_prog $dir/$dlname \$dldir/$dlname~
1470
 
      chmod a+x \$dldir/$dlname'
 
1205
      $install_prog $dir/$dlname \$dldir/$dlname'
1471
1206
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1472
1207
      dlpath=$dir/\$dldll~
1473
1208
       $rm \$dlpath'
1497
1232
      ;;
1498
1233
    pw32*)
1499
1234
      # pw32 DLLs use 'pw' prefix rather than 'lib'
1500
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
1235
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1501
1236
      ;;
1502
1237
    esac
1503
1238
    ;;
1520
1255
  soname_spec='${libname}${release}${major}$shared_ext'
1521
1256
  shlibpath_overrides_runpath=yes
1522
1257
  shlibpath_var=DYLD_LIBRARY_PATH
1523
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1524
 
  m4_if([$1], [],[
1525
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
 
1258
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
1259
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
1260
  if test "$GCC" = yes; then
 
1261
    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"`
 
1262
  else
 
1263
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
1264
  fi
1526
1265
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1527
1266
  ;;
1528
1267
 
1539
1278
  dynamic_linker=no
1540
1279
  ;;
1541
1280
 
1542
 
freebsd* | dragonfly*)
1543
 
  # DragonFly does not have aout.  When/if they implement a new
1544
 
  # versioning mechanism, adjust this.
1545
 
  if test -x /usr/bin/objformat; then
1546
 
    objformat=`/usr/bin/objformat`
1547
 
  else
1548
 
    case $host_os in
1549
 
    freebsd[[123]]*) objformat=aout ;;
1550
 
    *) objformat=elf ;;
1551
 
    esac
1552
 
  fi
 
1281
kfreebsd*-gnu)
 
1282
  version_type=linux
 
1283
  need_lib_prefix=no
 
1284
  need_version=no
 
1285
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1286
  soname_spec='${libname}${release}${shared_ext}$major'
 
1287
  shlibpath_var=LD_LIBRARY_PATH
 
1288
  shlibpath_overrides_runpath=no
 
1289
  hardcode_into_libs=yes
 
1290
  dynamic_linker='GNU ld.so'
 
1291
  ;;
 
1292
 
 
1293
freebsd*)
 
1294
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
1553
1295
  version_type=freebsd-$objformat
1554
1296
  case $version_type in
1555
1297
    freebsd-elf*)
1567
1309
  freebsd2*)
1568
1310
    shlibpath_overrides_runpath=yes
1569
1311
    ;;
1570
 
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
 
1312
  freebsd3.[01]* | freebsdelf3.[01]*)
1571
1313
    shlibpath_overrides_runpath=yes
1572
1314
    hardcode_into_libs=yes
1573
1315
    ;;
1574
 
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1575
 
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
 
1316
  *) # from 3.2 on
1576
1317
    shlibpath_overrides_runpath=no
1577
1318
    hardcode_into_libs=yes
1578
1319
    ;;
1579
 
  *) # from 4.6 on, and DragonFly
1580
 
    shlibpath_overrides_runpath=yes
1581
 
    hardcode_into_libs=yes
1582
 
    ;;
1583
1320
  esac
1584
1321
  ;;
1585
1322
 
1599
1336
  version_type=sunos
1600
1337
  need_lib_prefix=no
1601
1338
  need_version=no
1602
 
  case $host_cpu in
 
1339
  case "$host_cpu" in
1603
1340
  ia64*)
1604
1341
    shrext_cmds='.so'
1605
1342
    hardcode_into_libs=yes
1639
1376
  postinstall_cmds='chmod 555 $lib'
1640
1377
  ;;
1641
1378
 
1642
 
interix[[3-9]]*)
1643
 
  version_type=linux
1644
 
  need_lib_prefix=no
1645
 
  need_version=no
1646
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1647
 
  soname_spec='${libname}${release}${shared_ext}$major'
1648
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1649
 
  shlibpath_var=LD_LIBRARY_PATH
1650
 
  shlibpath_overrides_runpath=no
1651
 
  hardcode_into_libs=yes
1652
 
  ;;
1653
 
 
1654
1379
irix5* | irix6* | nonstopux*)
1655
1380
  case $host_os in
1656
1381
    nonstopux*) version_type=nonstopux ;;
1694
1419
  ;;
1695
1420
 
1696
1421
# This must be Linux ELF.
1697
 
linux* | k*bsd*-gnu)
 
1422
linux*)
1698
1423
  version_type=linux
1699
1424
  need_lib_prefix=no
1700
1425
  need_version=no
1710
1435
 
1711
1436
  # Append ld.so.conf contents to the search path
1712
1437
  if test -f /etc/ld.so.conf; then
1713
 
    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' ' '`
 
1438
    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
1714
1439
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1715
1440
  fi
1716
1441
 
1735
1460
  dynamic_linker='NetBSD ld.elf_so'
1736
1461
  ;;
1737
1462
 
 
1463
knetbsd*-gnu)
 
1464
  version_type=linux
 
1465
  need_lib_prefix=no
 
1466
  need_version=no
 
1467
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1468
  soname_spec='${libname}${release}${shared_ext}$major'
 
1469
  shlibpath_var=LD_LIBRARY_PATH
 
1470
  shlibpath_overrides_runpath=no
 
1471
  hardcode_into_libs=yes
 
1472
  dynamic_linker='GNU ld.so'
 
1473
  ;;
 
1474
 
1738
1475
netbsd*)
1739
1476
  version_type=sunos
1740
1477
  need_lib_prefix=no
1772
1509
 
1773
1510
openbsd*)
1774
1511
  version_type=sunos
1775
 
  sys_lib_dlsearch_path_spec="/usr/lib"
1776
1512
  need_lib_prefix=no
1777
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1778
 
  case $host_os in
1779
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1780
 
    *)                         need_version=no  ;;
1781
 
  esac
 
1513
  need_version=yes
1782
1514
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1783
1515
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1784
1516
  shlibpath_var=LD_LIBRARY_PATH
1816
1548
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1817
1549
  ;;
1818
1550
 
1819
 
rdos*)
1820
 
  dynamic_linker=no
 
1551
sco3.2v5*)
 
1552
  version_type=osf
 
1553
  soname_spec='${libname}${release}${shared_ext}$major'
 
1554
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1555
  shlibpath_var=LD_LIBRARY_PATH
1821
1556
  ;;
1822
1557
 
1823
1558
solaris*)
1845
1580
  need_version=yes
1846
1581
  ;;
1847
1582
 
1848
 
sysv4 | sysv4.3*)
 
1583
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1849
1584
  version_type=linux
1850
1585
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1851
1586
  soname_spec='${libname}${release}${shared_ext}$major'
1878
1613
  fi
1879
1614
  ;;
1880
1615
 
1881
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1882
 
  version_type=freebsd-elf
1883
 
  need_lib_prefix=no
1884
 
  need_version=no
1885
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1886
 
  soname_spec='${libname}${release}${shared_ext}$major'
1887
 
  shlibpath_var=LD_LIBRARY_PATH
1888
 
  hardcode_into_libs=yes
1889
 
  if test "$with_gnu_ld" = yes; then
1890
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1891
 
    shlibpath_overrides_runpath=no
1892
 
  else
1893
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1894
 
    shlibpath_overrides_runpath=yes
1895
 
    case $host_os in
1896
 
      sco3.2v5*)
1897
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1898
 
        ;;
1899
 
    esac
1900
 
  fi
1901
 
  sys_lib_dlsearch_path_spec='/usr/lib'
1902
 
  ;;
1903
 
 
1904
1616
uts4*)
1905
1617
  version_type=linux
1906
1618
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1914
1626
esac
1915
1627
AC_MSG_RESULT([$dynamic_linker])
1916
1628
test "$dynamic_linker" = no && can_build_shared=no
1917
 
 
1918
 
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
1919
 
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
1920
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1921
 
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
1922
 
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
1923
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1924
 
 
1925
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1926
 
if test "$GCC" = yes; then
1927
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1928
 
fi
1929
1629
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1930
1630
 
1931
1631
 
1932
1632
# _LT_AC_TAGCONFIG
1933
1633
# ----------------
1934
1634
AC_DEFUN([_LT_AC_TAGCONFIG],
1935
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1936
 
AC_ARG_WITH([tags],
 
1635
[AC_ARG_WITH([tags],
1937
1636
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1938
1637
        [include additional configurations @<:@automatic@:>@])],
1939
1638
    [tagnames="$withval"])
1951
1650
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1952
1651
    fi
1953
1652
  fi
1954
 
  if test -z "$LTCFLAGS"; then
1955
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1956
 
  fi
1957
1653
 
1958
1654
  # Extract list of available tagged configurations in $ofile.
1959
1655
  # Note that this assumes the entire list is on one line.
1980
1676
 
1981
1677
      case $tagname in
1982
1678
      CXX)
1983
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1984
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1985
 
            (test "X$CXX" != "Xg++"))) ; then
 
1679
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
1986
1680
          AC_LIBTOOL_LANG_CXX_CONFIG
1987
1681
        else
1988
1682
          tagname=""
2044
1738
 
2045
1739
# AC_LIBTOOL_WIN32_DLL
2046
1740
# --------------------
2047
 
# declare package support for building win32 DLLs
 
1741
# declare package support for building win32 dll's
2048
1742
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2049
1743
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2050
1744
])# AC_LIBTOOL_WIN32_DLL
2082
1776
 
2083
1777
# AC_DISABLE_SHARED
2084
1778
# -----------------
2085
 
# set the default shared flag to --disable-shared
 
1779
#- set the default shared flag to --disable-shared
2086
1780
AC_DEFUN([AC_DISABLE_SHARED],
2087
1781
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2088
1782
AC_ENABLE_SHARED(no)
2194
1888
 
2195
1889
# AC_PATH_TOOL_PREFIX
2196
1890
# -------------------
2197
 
# find a file program which can recognize shared library
 
1891
# find a file program which can recognise shared library
2198
1892
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2199
1893
[AC_REQUIRE([AC_PROG_EGREP])dnl
2200
1894
AC_MSG_CHECKING([for $1])
2218
1912
      if test -n "$file_magic_test_file"; then
2219
1913
        case $deplibs_check_method in
2220
1914
        "file_magic "*)
2221
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
1915
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2222
1916
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2223
1917
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2224
1918
            $EGREP "$file_magic_regex" > /dev/null; then
2257
1951
 
2258
1952
# AC_PATH_MAGIC
2259
1953
# -------------
2260
 
# find a file program which can recognize a shared library
 
1954
# find a file program which can recognise a shared library
2261
1955
AC_DEFUN([AC_PATH_MAGIC],
2262
1956
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2263
1957
if test -z "$lt_cv_path_MAGIC_CMD"; then
2328
2022
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2329
2023
      lt_cv_path_LD="$ac_dir/$ac_prog"
2330
2024
      # Check to see if the program is GNU ld.  I'd rather use --version,
2331
 
      # but apparently some variants of GNU ld only accept -v.
 
2025
      # but apparently some GNU ld's only accept -v.
2332
2026
      # Break only if it was the GNU/non-GNU ld that we prefer.
2333
2027
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2334
2028
      *GNU* | *'with BFD'*)
2360
2054
AC_DEFUN([AC_PROG_LD_GNU],
2361
2055
[AC_REQUIRE([AC_PROG_EGREP])dnl
2362
2056
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2363
 
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
 
2057
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2364
2058
case `$LD -v 2>&1 </dev/null` in
2365
2059
*GNU* | *'with BFD'*)
2366
2060
  lt_cv_prog_gnu_ld=yes
2387
2081
*) reload_flag=" $reload_flag" ;;
2388
2082
esac
2389
2083
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2390
 
case $host_os in
2391
 
  darwin*)
2392
 
    if test "$GCC" = yes; then
2393
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2394
 
    else
2395
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
2396
 
    fi
2397
 
    ;;
2398
 
esac
2399
2084
])# AC_PROG_LD_RELOAD_FLAG
2400
2085
 
2401
2086
 
2404
2089
# how to check for library dependencies
2405
2090
#  -- PORTME fill in with the dynamic library characteristics
2406
2091
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2407
 
[AC_CACHE_CHECK([how to recognize dependent libraries],
 
2092
[AC_CACHE_CHECK([how to recognise dependent libraries],
2408
2093
lt_cv_deplibs_check_method,
2409
2094
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2410
2095
lt_cv_file_magic_test_file=
2421
2106
# whether `pass_all' will *always* work, you probably want this one.
2422
2107
 
2423
2108
case $host_os in
2424
 
aix[[4-9]]*)
 
2109
aix4* | aix5*)
2425
2110
  lt_cv_deplibs_check_method=pass_all
2426
2111
  ;;
2427
2112
 
2429
2114
  lt_cv_deplibs_check_method=pass_all
2430
2115
  ;;
2431
2116
 
2432
 
bsdi[[45]]*)
 
2117
bsdi4*)
2433
2118
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2434
2119
  lt_cv_file_magic_cmd='/usr/bin/file -L'
2435
2120
  lt_cv_file_magic_test_file=/shlib/libc.so
2443
2128
 
2444
2129
mingw* | pw32*)
2445
2130
  # Base MSYS/MinGW do not provide the 'file' command needed by
2446
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
2447
 
  # unless we find 'file', for example because we are cross-compiling.
2448
 
  if ( file / ) >/dev/null 2>&1; then
2449
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2450
 
    lt_cv_file_magic_cmd='func_win32_libid'
2451
 
  else
2452
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2453
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
2454
 
  fi
 
2131
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
2132
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2133
  lt_cv_file_magic_cmd='$OBJDUMP -f'
2455
2134
  ;;
2456
2135
 
2457
2136
darwin* | rhapsody*)
2458
2137
  lt_cv_deplibs_check_method=pass_all
2459
2138
  ;;
2460
2139
 
2461
 
freebsd* | dragonfly*)
 
2140
freebsd* | kfreebsd*-gnu)
2462
2141
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2463
2142
    case $host_cpu in
2464
2143
    i*86 )
2465
2144
      # Not sure whether the presence of OpenBSD here was a mistake.
2466
2145
      # Let's accept both of them until this is cleared up.
2467
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
 
2146
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
2468
2147
      lt_cv_file_magic_cmd=/usr/bin/file
2469
2148
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2470
2149
      ;;
2480
2159
 
2481
2160
hpux10.20* | hpux11*)
2482
2161
  lt_cv_file_magic_cmd=/usr/bin/file
2483
 
  case $host_cpu in
 
2162
  case "$host_cpu" in
2484
2163
  ia64*)
2485
2164
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2486
2165
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2496
2175
  esac
2497
2176
  ;;
2498
2177
 
2499
 
interix[[3-9]]*)
2500
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2501
 
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2502
 
  ;;
2503
 
 
2504
2178
irix5* | irix6* | nonstopux*)
2505
2179
  case $LD in
2506
2180
  *-32|*"-32 ") libmagic=32-bit;;
2512
2186
  ;;
2513
2187
 
2514
2188
# This must be Linux ELF.
2515
 
linux* | k*bsd*-gnu)
 
2189
linux*)
2516
2190
  lt_cv_deplibs_check_method=pass_all
2517
2191
  ;;
2518
2192
 
2519
 
netbsd* | netbsdelf*-gnu)
 
2193
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
2520
2194
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2521
2195
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2522
2196
  else
2535
2209
  ;;
2536
2210
 
2537
2211
openbsd*)
 
2212
  lt_cv_file_magic_cmd=/usr/bin/file
 
2213
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2538
2214
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2539
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
 
2215
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
2540
2216
  else
2541
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 
2217
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2542
2218
  fi
2543
2219
  ;;
2544
2220
 
2546
2222
  lt_cv_deplibs_check_method=pass_all
2547
2223
  ;;
2548
2224
 
2549
 
rdos*)
 
2225
sco3.2v5*)
2550
2226
  lt_cv_deplibs_check_method=pass_all
2551
2227
  ;;
2552
2228
 
2554
2230
  lt_cv_deplibs_check_method=pass_all
2555
2231
  ;;
2556
2232
 
2557
 
sysv4 | sysv4.3*)
 
2233
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2558
2234
  case $host_vendor in
2559
2235
  motorola)
2560
2236
    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]]'
2575
2251
  siemens)
2576
2252
    lt_cv_deplibs_check_method=pass_all
2577
2253
    ;;
2578
 
  pc)
2579
 
    lt_cv_deplibs_check_method=pass_all
2580
 
    ;;
2581
2254
  esac
2582
2255
  ;;
2583
2256
 
2584
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
2257
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
2585
2258
  lt_cv_deplibs_check_method=pass_all
2586
2259
  ;;
2587
2260
esac
2601
2274
  # Let the user override the test.
2602
2275
  lt_cv_path_NM="$NM"
2603
2276
else
2604
 
  lt_nm_to_check="${ac_tool_prefix}nm"
2605
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2606
 
    lt_nm_to_check="$lt_nm_to_check nm"
2607
 
  fi
2608
 
  for lt_tmp_nm in $lt_nm_to_check; do
2609
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2610
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2611
 
      IFS="$lt_save_ifs"
2612
 
      test -z "$ac_dir" && ac_dir=.
2613
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
2614
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2615
 
        # Check to see if the nm accepts a BSD-compat flag.
2616
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2617
 
        #   nm: unknown option "B" ignored
2618
 
        # Tru64's nm complains that /dev/null is an invalid object file
2619
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2620
 
        */dev/null* | *'Invalid file or object type'*)
2621
 
          lt_cv_path_NM="$tmp_nm -B"
 
2277
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2278
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
2279
    IFS="$lt_save_ifs"
 
2280
    test -z "$ac_dir" && ac_dir=.
 
2281
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
2282
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
2283
      # Check to see if the nm accepts a BSD-compat flag.
 
2284
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2285
      #   nm: unknown option "B" ignored
 
2286
      # Tru64's nm complains that /dev/null is an invalid object file
 
2287
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2288
      */dev/null* | *'Invalid file or object type'*)
 
2289
        lt_cv_path_NM="$tmp_nm -B"
 
2290
        break
 
2291
        ;;
 
2292
      *)
 
2293
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2294
        */dev/null*)
 
2295
          lt_cv_path_NM="$tmp_nm -p"
2622
2296
          break
2623
2297
          ;;
2624
2298
        *)
2625
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2626
 
          */dev/null*)
2627
 
            lt_cv_path_NM="$tmp_nm -p"
2628
 
            break
2629
 
            ;;
2630
 
          *)
2631
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2632
 
            continue # so that we can try to find one that supports BSD flags
2633
 
            ;;
2634
 
          esac
 
2299
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2300
          continue # so that we can try to find one that supports BSD flags
2635
2301
          ;;
2636
2302
        esac
2637
 
      fi
2638
 
    done
2639
 
    IFS="$lt_save_ifs"
 
2303
      esac
 
2304
    fi
2640
2305
  done
 
2306
  IFS="$lt_save_ifs"
2641
2307
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2642
2308
fi])
2643
2309
NM="$lt_cv_path_NM"
2669
2335
# -----------------------------------
2670
2336
# sets LIBLTDL to the link flags for the libltdl convenience library and
2671
2337
# LTDLINCL to the include flags for the libltdl header and adds
2672
 
# --enable-ltdl-convenience to the configure arguments.  Note that
2673
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2674
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
2675
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2676
 
# (note the single quotes!).  If your package is not flat and you're not
2677
 
# using automake, define top_builddir and top_srcdir appropriately in
2678
 
# the Makefiles.
 
2338
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
 
2339
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
 
2340
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
 
2341
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
 
2342
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
2343
# flat and you're not using automake, define top_builddir and
 
2344
# top_srcdir appropriately in the Makefiles.
2679
2345
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2680
2346
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2681
2347
  case $enable_ltdl_convenience in
2694
2360
# -----------------------------------
2695
2361
# sets LIBLTDL to the link flags for the libltdl installable library and
2696
2362
# LTDLINCL to the include flags for the libltdl header and adds
2697
 
# --enable-ltdl-install to the configure arguments.  Note that
2698
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2699
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2700
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2701
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
2702
 
# flat and you're not using automake, define top_builddir and top_srcdir
2703
 
# appropriately in the Makefiles.
 
2363
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
 
2364
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
 
2365
# DIRECTORY is not provided and an installed libltdl is not found, it is
 
2366
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
 
2367
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
 
2368
# quotes!).  If your package is not flat and you're not using automake,
 
2369
# define top_builddir and top_srcdir appropriately in the Makefiles.
2704
2370
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2705
2371
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2706
2372
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2738
2404
# ---------------
2739
2405
AC_DEFUN([_LT_AC_LANG_CXX],
2740
2406
[AC_REQUIRE([AC_PROG_CXX])
2741
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
2407
AC_REQUIRE([AC_PROG_CXXCPP])
2742
2408
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2743
2409
])# _LT_AC_LANG_CXX
2744
2410
 
2745
 
# _LT_AC_PROG_CXXCPP
2746
 
# ------------------
2747
 
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2748
 
[
2749
 
AC_REQUIRE([AC_PROG_CXX])
2750
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2751
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2752
 
    (test "X$CXX" != "Xg++"))) ; then
2753
 
  AC_PROG_CXXCPP
2754
 
fi
2755
 
])# _LT_AC_PROG_CXXCPP
2756
2411
 
2757
2412
# AC_LIBTOOL_F77
2758
2413
# --------------
2792
2447
 
2793
2448
 
2794
2449
# AC_LIBTOOL_RC
2795
 
# -------------
 
2450
# --------------
2796
2451
# enable support for Windows resource files
2797
2452
AC_DEFUN([AC_LIBTOOL_RC],
2798
2453
[AC_REQUIRE([LT_AC_PROG_RC])
2818
2473
_LT_AC_TAGVAR(objext, $1)=$objext
2819
2474
 
2820
2475
# Code to be used in simple compile tests
2821
 
lt_simple_compile_test_code="int some_variable = 0;"
 
2476
lt_simple_compile_test_code="int some_variable = 0;\n"
2822
2477
 
2823
2478
# Code to be used in simple link tests
2824
 
lt_simple_link_test_code='int main(){return(0);}'
 
2479
lt_simple_link_test_code='int main(){return(0);}\n'
2825
2480
 
2826
2481
_LT_AC_SYS_COMPILER
2827
2482
 
2828
 
# save warnings/boilerplate of simple test code
2829
 
_LT_COMPILER_BOILERPLATE
2830
 
_LT_LINKER_BOILERPLATE
 
2483
#
 
2484
# Check for any special shared library compilation flags.
 
2485
#
 
2486
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
 
2487
if test "$GCC" = no; then
 
2488
  case $host_os in
 
2489
  sco3.2v5*)
 
2490
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
 
2491
    ;;
 
2492
  esac
 
2493
fi
 
2494
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
 
2495
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
 
2496
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
 
2497
  else
 
2498
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
 
2499
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
 
2500
  fi
 
2501
fi
 
2502
 
 
2503
 
 
2504
#
 
2505
# Check to make sure the static flag actually works.
 
2506
#
 
2507
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
 
2508
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
2509
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
 
2510
  [],
 
2511
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 
2512
 
2831
2513
 
2832
2514
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2833
2515
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2837
2519
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2838
2520
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2839
2521
AC_LIBTOOL_SYS_LIB_STRIP
2840
 
AC_LIBTOOL_DLOPEN_SELF
 
2522
AC_LIBTOOL_DLOPEN_SELF($1)
2841
2523
 
2842
 
# Report which library types will actually be built
 
2524
# Report which librarie types wil actually be built
2843
2525
AC_MSG_CHECKING([if libtool supports shared libraries])
2844
2526
AC_MSG_RESULT([$can_build_shared])
2845
2527
 
2848
2530
 
2849
2531
# On AIX, shared libraries and static libraries use the same namespace, and
2850
2532
# are all built from PIC.
2851
 
case $host_os in
 
2533
case "$host_os" in
2852
2534
aix3*)
2853
2535
  test "$enable_shared" = yes && enable_static=no
2854
2536
  if test -n "$RANLIB"; then
2857
2539
  fi
2858
2540
  ;;
2859
2541
 
2860
 
aix[[4-9]]*)
 
2542
aix4* | aix5*)
2861
2543
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2862
2544
    test "$enable_shared" = yes && enable_static=no
2863
2545
  fi
 
2546
  ;;
 
2547
  darwin* | rhapsody*)
 
2548
  if test "$GCC" = yes; then
 
2549
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
2550
    case "$host_os" in
 
2551
    rhapsody* | darwin1.[[012]])
 
2552
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
 
2553
      ;;
 
2554
    *) # Darwin 1.3 on
 
2555
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
2556
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
2557
      else
 
2558
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
2559
          10.[[012]])
 
2560
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
2561
            ;;
 
2562
          10.*)
 
2563
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
 
2564
            ;;
 
2565
        esac
 
2566
      fi
 
2567
      ;;
 
2568
    esac
 
2569
    output_verbose_link_cmd='echo'
 
2570
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
2571
    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
2572
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
2573
    _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}'
 
2574
    _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}'
 
2575
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
2576
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
2577
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
2578
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
 
2579
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
2580
  else
 
2581
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
2582
  fi
2864
2583
    ;;
2865
2584
esac
2866
2585
AC_MSG_RESULT([$enable_shared])
2886
2605
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2887
2606
[AC_LANG_PUSH(C++)
2888
2607
AC_REQUIRE([AC_PROG_CXX])
2889
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
2608
AC_REQUIRE([AC_PROG_CXXCPP])
2890
2609
 
2891
2610
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2892
2611
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2898
2617
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2899
2618
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2900
2619
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2901
 
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2902
2620
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2903
2621
_LT_AC_TAGVAR(module_cmds, $1)=
2904
2622
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2914
2632
_LT_AC_TAGVAR(predeps, $1)=
2915
2633
_LT_AC_TAGVAR(postdeps, $1)=
2916
2634
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2917
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2918
2635
 
2919
2636
# Source file extension for C++ test sources.
2920
 
ac_ext=cpp
 
2637
ac_ext=cc
2921
2638
 
2922
2639
# Object file extension for compiled C++ test sources.
2923
2640
objext=o
2924
2641
_LT_AC_TAGVAR(objext, $1)=$objext
2925
2642
 
2926
2643
# Code to be used in simple compile tests
2927
 
lt_simple_compile_test_code="int some_variable = 0;"
 
2644
lt_simple_compile_test_code="int some_variable = 0;\n"
2928
2645
 
2929
2646
# Code to be used in simple link tests
2930
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
2647
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
2931
2648
 
2932
2649
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2933
2650
_LT_AC_SYS_COMPILER
2934
2651
 
2935
 
# save warnings/boilerplate of simple test code
2936
 
_LT_COMPILER_BOILERPLATE
2937
 
_LT_LINKER_BOILERPLATE
2938
 
 
2939
2652
# Allow CC to be a program name with arguments.
2940
2653
lt_save_CC=$CC
2941
2654
lt_save_LD=$LD
2946
2659
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2947
2660
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2948
2661
else
2949
 
  $as_unset lt_cv_prog_gnu_ld
 
2662
  unset lt_cv_prog_gnu_ld
2950
2663
fi
2951
2664
if test -n "${lt_cv_path_LDCXX+set}"; then
2952
2665
  lt_cv_path_LD=$lt_cv_path_LDCXX
2953
2666
else
2954
 
  $as_unset lt_cv_path_LD
 
2667
  unset lt_cv_path_LD
2955
2668
fi
2956
2669
test -z "${LDCXX+set}" || LD=$LDCXX
2957
2670
CC=${CXX-"c++"}
2958
2671
compiler=$CC
2959
2672
_LT_AC_TAGVAR(compiler, $1)=$CC
2960
 
_LT_CC_BASENAME([$compiler])
 
2673
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
2961
2674
 
2962
2675
# We don't want -fno-exception wen compiling C++ code, so set the
2963
2676
# no_builtin_flag separately
3024
2737
    # FIXME: insert proper C++ library support
3025
2738
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3026
2739
    ;;
3027
 
  aix[[4-9]]*)
 
2740
  aix4* | aix5*)
3028
2741
    if test "$host_cpu" = ia64; then
3029
2742
      # On IA64, the linker does run time linking by default, so we don't
3030
2743
      # have to do anything special.
3037
2750
      # Test if we are trying to use run time linking or normal
3038
2751
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3039
2752
      # need to do runtime linking.
3040
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
2753
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3041
2754
        for ld_flag in $LDFLAGS; do
3042
2755
          case $ld_flag in
3043
2756
          *-brtl*)
3046
2759
            ;;
3047
2760
          esac
3048
2761
        done
3049
 
        ;;
3050
2762
      esac
3051
2763
 
3052
2764
      exp_sym_flag='-bexport'
3065
2777
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3066
2778
 
3067
2779
    if test "$GXX" = yes; then
3068
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
2780
      case $host_os in aix4.[012]|aix4.[012].*)
3069
2781
      # We only want to do this on AIX 4.2 and lower, the check
3070
2782
      # below for broken collect2 doesn't work under 4.3+
3071
2783
        collect2name=`${CC} -print-prog-name=collect2`
3073
2785
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3074
2786
        then
3075
2787
          # We have reworked collect2
3076
 
          :
 
2788
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3077
2789
        else
3078
2790
          # We have old collect2
3079
2791
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3084
2796
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3085
2797
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3086
2798
        fi
3087
 
        ;;
3088
2799
      esac
3089
2800
      shared_flag='-shared'
3090
 
      if test "$aix_use_runtimelinking" = yes; then
3091
 
        shared_flag="$shared_flag "'${wl}-G'
3092
 
      fi
3093
2801
    else
3094
2802
      # not using gcc
3095
2803
      if test "$host_cpu" = ia64; then
3116
2824
      _LT_AC_SYS_LIBPATH_AIX
3117
2825
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3118
2826
 
3119
 
      _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"
 
2827
      _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"
3120
2828
     else
3121
2829
      if test "$host_cpu" = ia64; then
3122
2830
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3123
2831
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3124
 
        _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"
 
2832
        _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"
3125
2833
      else
3126
2834
        # Determine the default libpath from the value encoded in an empty executable.
3127
2835
        _LT_AC_SYS_LIBPATH_AIX
3130
2838
        # -berok will link without error, but may produce a broken library.
3131
2839
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3132
2840
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
2841
        # -bexpall does not export symbols beginning with underscore (_)
 
2842
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3133
2843
        # Exported symbols can be pulled into shared objects from archives
3134
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
2844
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3135
2845
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3136
 
        # This is similar to how AIX traditionally builds its shared libraries.
3137
 
        _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'
 
2846
        # This is similar to how AIX traditionally builds it's shared libraries.
 
2847
        _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'
3138
2848
      fi
3139
2849
    fi
3140
2850
    ;;
3141
 
 
3142
 
  beos*)
3143
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3144
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3145
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3146
 
      # support --undefined.  This deserves some investigation.  FIXME
3147
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3148
 
    else
3149
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3150
 
    fi
3151
 
    ;;
3152
 
 
3153
2851
  chorus*)
3154
2852
    case $cc_basename in
3155
2853
      *)
3168
2866
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3169
2867
 
3170
2868
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3171
 
      _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'
 
2869
      _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'
3172
2870
      # If the export-symbols file already is a .def file (1st line
3173
2871
      # is EXPORTS), use it as is; otherwise, prepend...
3174
2872
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3177
2875
        echo EXPORTS > $output_objdir/$soname.def;
3178
2876
        cat $export_symbols >> $output_objdir/$soname.def;
3179
2877
      fi~
3180
 
      $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'
 
2878
      $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'
3181
2879
    else
3182
2880
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3183
2881
    fi
3184
2882
  ;;
3185
 
      darwin* | rhapsody*)
3186
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3187
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3188
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3189
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3190
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3191
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3192
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3193
 
      if test "$GXX" = yes ; then
3194
 
      output_verbose_link_cmd='echo'
3195
 
      _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}"
3196
 
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3197
 
      _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}"
3198
 
      _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}"
3199
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3200
 
        _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}"
3201
 
        _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}"
3202
 
      fi
 
2883
 
 
2884
  darwin* | rhapsody*)
 
2885
  if test "$GXX" = yes; then
 
2886
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
2887
    case "$host_os" in
 
2888
    rhapsody* | darwin1.[[012]])
 
2889
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
 
2890
      ;;
 
2891
    *) # Darwin 1.3 on
 
2892
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
2893
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3203
2894
      else
3204
 
      case $cc_basename in
3205
 
        xlc*)
3206
 
         output_verbose_link_cmd='echo'
3207
 
          _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'
3208
 
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3209
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3210
 
          _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}'
3211
 
          _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}'
3212
 
          ;;
3213
 
       *)
3214
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3215
 
          ;;
3216
 
      esac
 
2895
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
2896
          10.[[012]])
 
2897
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
2898
            ;;
 
2899
          10.*)
 
2900
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
 
2901
            ;;
 
2902
        esac
3217
2903
      fi
3218
 
        ;;
 
2904
      ;;
 
2905
    esac
 
2906
    lt_int_apple_cc_single_mod=no
 
2907
    output_verbose_link_cmd='echo'
 
2908
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
2909
      lt_int_apple_cc_single_mod=yes
 
2910
    fi
 
2911
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
2912
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
2913
    else
 
2914
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
2915
    fi
 
2916
    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
2917
 
 
2918
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
2919
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
2920
      _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}'
 
2921
    else
 
2922
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
2923
    fi
 
2924
    _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}'
 
2925
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
2926
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
2927
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
2928
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
 
2929
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
2930
  else
 
2931
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
2932
  fi
 
2933
    ;;
3219
2934
 
3220
2935
  dgux*)
3221
2936
    case $cc_basename in
3222
 
      ec++*)
 
2937
      ec++)
3223
2938
        # FIXME: insert proper C++ library support
3224
2939
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3225
2940
        ;;
3226
 
      ghcx*)
 
2941
      ghcx)
3227
2942
        # Green Hills C++ Compiler
3228
2943
        # FIXME: insert proper C++ library support
3229
2944
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3234
2949
        ;;
3235
2950
    esac
3236
2951
    ;;
3237
 
  freebsd[[12]]*)
 
2952
  freebsd[12]*)
3238
2953
    # C++ shared libraries reported to be fairly broken before switch to ELF
3239
2954
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3240
2955
    ;;
3241
2956
  freebsd-elf*)
3242
2957
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3243
2958
    ;;
3244
 
  freebsd* | dragonfly*)
 
2959
  freebsd* | kfreebsd*-gnu)
3245
2960
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3246
2961
    # conventions
3247
2962
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3258
2973
                                # location of the library.
3259
2974
 
3260
2975
    case $cc_basename in
3261
 
    CC*)
 
2976
    CC)
3262
2977
      # FIXME: insert proper C++ library support
3263
2978
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3264
2979
      ;;
3265
 
    aCC*)
 
2980
    aCC)
3266
2981
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3267
2982
      # Commands to make compiler produce verbose output that lists
3268
2983
      # what "hidden" libraries, object files and flags are used when
3272
2987
      # explicitly linking system object files so we need to strip them
3273
2988
      # from the output so that they don't get included in the library
3274
2989
      # dependencies.
3275
 
      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'
 
2990
      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'
3276
2991
      ;;
3277
2992
    *)
3278
2993
      if test "$GXX" = yes; then
3286
3001
    ;;
3287
3002
  hpux10*|hpux11*)
3288
3003
    if test $with_gnu_ld = no; then
3289
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3290
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3291
 
 
3292
 
      case $host_cpu in
3293
 
      hppa*64*|ia64*) ;;
 
3004
      case "$host_cpu" in
 
3005
      hppa*64*)
 
3006
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3007
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
3008
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3009
        ;;
 
3010
      ia64*)
 
3011
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
3012
        ;;
3294
3013
      *)
 
3014
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3015
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3295
3016
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3296
3017
        ;;
3297
3018
      esac
3298
3019
    fi
3299
 
    case $host_cpu in
3300
 
    hppa*64*|ia64*)
3301
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3302
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3020
    case "$host_cpu" in
 
3021
    hppa*64*)
 
3022
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3023
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3024
      ;;
 
3025
    ia64*)
 
3026
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3027
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3028
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
3029
                                              # but as the default
 
3030
                                              # location of the library.
3303
3031
      ;;
3304
3032
    *)
3305
3033
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3310
3038
    esac
3311
3039
 
3312
3040
    case $cc_basename in
3313
 
      CC*)
 
3041
      CC)
3314
3042
        # FIXME: insert proper C++ library support
3315
3043
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3316
3044
        ;;
3317
 
      aCC*)
3318
 
        case $host_cpu in
3319
 
        hppa*64*)
3320
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3321
 
          ;;
3322
 
        ia64*)
3323
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3045
      aCC)
 
3046
        case "$host_cpu" in
 
3047
        hppa*64*|ia64*)
 
3048
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3324
3049
          ;;
3325
3050
        *)
3326
3051
          _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'
3339
3064
      *)
3340
3065
        if test "$GXX" = yes; then
3341
3066
          if test $with_gnu_ld = no; then
3342
 
            case $host_cpu in
3343
 
            hppa*64*)
3344
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3345
 
              ;;
3346
 
            ia64*)
3347
 
              _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'
 
3067
            case "$host_cpu" in
 
3068
            ia64*|hppa*64*)
 
3069
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3348
3070
              ;;
3349
3071
            *)
3350
3072
              _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'
3358
3080
        ;;
3359
3081
    esac
3360
3082
    ;;
3361
 
  interix[[3-9]]*)
3362
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3363
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3364
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3365
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3366
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3367
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
3368
 
    # default) and relocated if they conflict, which is a slow very memory
3369
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
3370
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3371
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
3372
 
    _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'
3373
 
    _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'
3374
 
    ;;
3375
3083
  irix5* | irix6*)
3376
3084
    case $cc_basename in
3377
 
      CC*)
 
3085
      CC)
3378
3086
        # SGI C++
3379
 
        _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'
 
3087
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3380
3088
 
3381
3089
        # Archives containing C++ object files must be created using
3382
3090
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
3387
3095
      *)
3388
3096
        if test "$GXX" = yes; then
3389
3097
          if test "$with_gnu_ld" = no; then
3390
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
3098
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3391
3099
          else
3392
3100
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3393
3101
          fi
3398
3106
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3399
3107
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3400
3108
    ;;
3401
 
  linux* | k*bsd*-gnu)
 
3109
  linux*)
3402
3110
    case $cc_basename in
3403
 
      KCC*)
 
3111
      KCC)
3404
3112
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3405
3113
 
3406
3114
        # KCC will only create a shared library if the output file
3425
3133
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3426
3134
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3427
3135
        ;;
3428
 
      icpc*)
 
3136
      icpc)
3429
3137
        # Intel C++
3430
3138
        with_gnu_ld=yes
3431
 
        # version 8.0 and above of icpc choke on multiply defined symbols
3432
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
3433
 
        # earlier do not add the objects themselves.
3434
 
        case `$CC -V 2>&1` in
3435
 
        *"Version 7."*)
3436
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3437
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3438
 
          ;;
3439
 
        *)  # Version 8.0 or newer
3440
 
          tmp_idyn=
3441
 
          case $host_cpu in
3442
 
            ia64*) tmp_idyn=' -i_dynamic';;
3443
 
          esac
3444
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3445
 
          _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'
3446
 
          ;;
3447
 
        esac
3448
3139
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3140
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3141
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3449
3142
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3450
3143
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3451
3144
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3452
3145
        ;;
3453
 
      pgCC* | pgcpp*)
3454
 
        # Portland Group C++ compiler
3455
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3456
 
        _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'
3457
 
 
3458
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3459
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3460
 
        _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'
3461
 
        ;;
3462
 
      cxx*)
 
3146
      cxx)
3463
3147
        # Compaq C++
3464
3148
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3465
3149
        _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'
3478
3162
        # dependencies.
3479
3163
        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'
3480
3164
        ;;
3481
 
      *)
3482
 
        case `$CC -V 2>&1 | sed 5q` in
3483
 
        *Sun\ C*)
3484
 
          # Sun C++ 5.9
3485
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3486
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3487
 
          _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'
3488
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3489
 
          _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'
3490
 
 
3491
 
          # Not sure whether something based on
3492
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3493
 
          # would be better.
3494
 
          output_verbose_link_cmd='echo'
3495
 
 
3496
 
          # Archives containing C++ object files must be created using
3497
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3498
 
          # necessary to make sure instantiated templates are included
3499
 
          # in the archive.
3500
 
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3501
 
          ;;
3502
 
        esac
3503
 
        ;;
3504
3165
    esac
3505
3166
    ;;
3506
3167
  lynxos*)
3513
3174
    ;;
3514
3175
  mvs*)
3515
3176
    case $cc_basename in
3516
 
      cxx*)
 
3177
      cxx)
3517
3178
        # FIXME: insert proper C++ library support
3518
3179
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3519
3180
        ;;
3523
3184
        ;;
3524
3185
    esac
3525
3186
    ;;
3526
 
  netbsd* | netbsdelf*-gnu)
 
3187
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3527
3188
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3528
3189
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3529
3190
      wlarc=
3534
3195
    # Workaround some broken pre-1.5 toolchains
3535
3196
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3536
3197
    ;;
3537
 
  openbsd2*)
3538
 
    # C++ shared libraries are fairly broken
3539
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3540
 
    ;;
3541
 
  openbsd*)
3542
 
    if test -f /usr/libexec/ld.so; then
3543
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3544
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3545
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3546
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3547
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3548
 
        _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'
3549
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3550
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3551
 
      fi
3552
 
      output_verbose_link_cmd='echo'
3553
 
    else
3554
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3555
 
    fi
3556
 
    ;;
3557
3198
  osf3*)
3558
3199
    case $cc_basename in
3559
 
      KCC*)
 
3200
      KCC)
3560
3201
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3561
3202
 
3562
3203
        # KCC will only create a shared library if the output file
3572
3213
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3573
3214
 
3574
3215
        ;;
3575
 
      RCC*)
 
3216
      RCC)
3576
3217
        # Rational C++ 2.4.1
3577
3218
        # FIXME: insert proper C++ library support
3578
3219
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3579
3220
        ;;
3580
 
      cxx*)
 
3221
      cxx)
3581
3222
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3582
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
3223
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3583
3224
 
3584
3225
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3585
3226
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3597
3238
      *)
3598
3239
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3599
3240
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3600
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
3241
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3601
3242
 
3602
3243
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3603
3244
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3616
3257
    ;;
3617
3258
  osf4* | osf5*)
3618
3259
    case $cc_basename in
3619
 
      KCC*)
 
3260
      KCC)
3620
3261
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3621
3262
 
3622
3263
        # KCC will only create a shared library if the output file
3631
3272
        # the KAI C++ compiler.
3632
3273
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3633
3274
        ;;
3634
 
      RCC*)
 
3275
      RCC)
3635
3276
        # Rational C++ 2.4.1
3636
3277
        # FIXME: insert proper C++ library support
3637
3278
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3638
3279
        ;;
3639
 
      cxx*)
 
3280
      cxx)
3640
3281
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3641
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
3282
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3642
3283
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3643
3284
          echo "-hidden">> $lib.exp~
3644
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
3285
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
3645
3286
          $rm $lib.exp'
3646
3287
 
3647
3288
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3660
3301
      *)
3661
3302
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3662
3303
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3663
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
3304
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3664
3305
 
3665
3306
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3666
3307
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3681
3322
    # FIXME: insert proper C++ library support
3682
3323
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3683
3324
    ;;
 
3325
  sco*)
 
3326
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3327
    case $cc_basename in
 
3328
      CC)
 
3329
        # FIXME: insert proper C++ library support
 
3330
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3331
        ;;
 
3332
      *)
 
3333
        # FIXME: insert proper C++ library support
 
3334
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3335
        ;;
 
3336
    esac
 
3337
    ;;
3684
3338
  sunos4*)
3685
3339
    case $cc_basename in
3686
 
      CC*)
 
3340
      CC)
3687
3341
        # Sun C++ 4.x
3688
3342
        # FIXME: insert proper C++ library support
3689
3343
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3690
3344
        ;;
3691
 
      lcc*)
 
3345
      lcc)
3692
3346
        # Lucid
3693
3347
        # FIXME: insert proper C++ library support
3694
3348
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3701
3355
    ;;
3702
3356
  solaris*)
3703
3357
    case $cc_basename in
3704
 
      CC*)
 
3358
      CC)
3705
3359
        # Sun C++ 4.2, 5.x and Centerline C++
3706
 
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3707
3360
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3708
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3361
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3709
3362
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3710
 
        $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'
 
3363
        $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'
3711
3364
 
3712
3365
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3713
3366
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3714
3367
        case $host_os in
3715
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3368
          solaris2.[0-5] | solaris2.[0-5].*) ;;
3716
3369
          *)
3717
 
            # The compiler driver will combine and reorder linker options,
3718
 
            # but understands `-z linker_flag'.
 
3370
            # The C++ compiler is used as linker so we must use $wl
 
3371
            # flag to pass the commands to the underlying system
 
3372
            # linker.
3719
3373
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3720
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
3374
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3721
3375
            ;;
3722
3376
        esac
3723
3377
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3724
3378
 
3725
 
        output_verbose_link_cmd='echo'
 
3379
        # Commands to make compiler produce verbose output that lists
 
3380
        # what "hidden" libraries, object files and flags are used when
 
3381
        # linking a shared library.
 
3382
        #
 
3383
        # There doesn't appear to be a way to prevent this compiler from
 
3384
        # explicitly linking system object files so we need to strip them
 
3385
        # from the output so that they don't get included in the library
 
3386
        # dependencies.
 
3387
        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'
3726
3388
 
3727
3389
        # Archives containing C++ object files must be created using
3728
3390
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3730
3392
        # in the archive.
3731
3393
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3732
3394
        ;;
3733
 
      gcx*)
 
3395
      gcx)
3734
3396
        # Green Hills C++ Compiler
3735
3397
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3736
3398
 
3764
3426
          fi
3765
3427
 
3766
3428
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3767
 
          case $host_os in
3768
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3769
 
          *)
3770
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3771
 
            ;;
3772
 
          esac
3773
3429
        fi
3774
3430
        ;;
3775
3431
    esac
3776
3432
    ;;
3777
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3778
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3779
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3780
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3781
 
    runpath_var='LD_RUN_PATH'
3782
 
 
3783
 
    case $cc_basename in
3784
 
      CC*)
3785
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3786
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3787
 
        ;;
3788
 
      *)
3789
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3790
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3791
 
        ;;
3792
 
    esac
3793
 
    ;;
3794
 
  sysv5* | sco3.2v5* | sco5v6*)
3795
 
    # Note: We can NOT use -z defs as we might desire, because we do not
3796
 
    # link with -lc, and that would cause any symbols used from libc to
3797
 
    # always be unresolved, which means just about no library would
3798
 
    # ever link correctly.  If we're not using GNU ld we use -z text
3799
 
    # though, which does catch some bad symbols but isn't as heavy-handed
3800
 
    # as -z defs.
3801
 
    # For security reasons, it is highly recommended that you always
3802
 
    # use absolute paths for naming shared libraries, and exclude the
3803
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
3804
 
    # requires that you compile everything twice, which is a pain.
3805
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
3806
 
    # non-empty value in the environment.  Most likely only useful for
3807
 
    # creating official distributions of packages.
3808
 
    # This is a hack until libtool officially supports absolute path
3809
 
    # names for shared libraries.
3810
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3811
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3812
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3813
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3814
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3815
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3816
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3817
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3818
 
    runpath_var='LD_RUN_PATH'
3819
 
 
3820
 
    case $cc_basename in
3821
 
      CC*)
3822
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3823
 
        _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'
3824
 
        ;;
3825
 
      *)
3826
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3827
 
        _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'
3828
 
        ;;
3829
 
    esac
 
3433
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
 
3434
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3830
3435
    ;;
3831
3436
  tandem*)
3832
3437
    case $cc_basename in
3833
 
      NCC*)
 
3438
      NCC)
3834
3439
        # NonStop-UX NCC 3.20
3835
3440
        # FIXME: insert proper C++ library support
3836
3441
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3863
3468
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3864
3469
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3865
3470
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
3471
AC_LIBTOOL_SYS_LIB_STRIP
 
3472
AC_LIBTOOL_DLOPEN_SELF($1)
3866
3473
 
3867
3474
AC_LIBTOOL_CONFIG($1)
3868
3475
 
3880
3487
])# AC_LIBTOOL_LANG_CXX_CONFIG
3881
3488
 
3882
3489
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3883
 
# ------------------------------------
 
3490
# ------------------------
3884
3491
# Figure out "hidden" library dependencies from verbose
3885
3492
# compiler output when linking a shared library.
3886
3493
# Parse the compiler output and extract the necessary
3887
3494
# objects, libraries and library flags.
3888
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3889
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
3495
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3890
3496
dnl we can't use the lt_simple_compile_test_code here,
3891
3497
dnl because it contains code intended for an executable,
3892
3498
dnl not a library.  It's possible we should let each
3935
3541
  # The `*' in the case matches for architectures that use `case' in
3936
3542
  # $output_verbose_cmd can trigger glob expansion during the loop
3937
3543
  # eval without this substitution.
3938
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
3544
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
3939
3545
 
3940
3546
  for p in `eval $output_verbose_link_cmd`; do
3941
3547
    case $p in
4011
3617
 
4012
3618
$rm -f confest.$objext
4013
3619
 
4014
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4015
 
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4016
 
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4017
 
fi
4018
 
 
4019
 
# PORTME: override above test on systems where it is broken
4020
 
ifelse([$1],[CXX],
4021
 
[case $host_os in
4022
 
interix[[3-9]]*)
4023
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4024
 
  # hack all around it, let's just trust "g++" to DTRT.
4025
 
  _LT_AC_TAGVAR(predep_objects,$1)=
4026
 
  _LT_AC_TAGVAR(postdep_objects,$1)=
4027
 
  _LT_AC_TAGVAR(postdeps,$1)=
4028
 
  ;;
4029
 
 
4030
 
linux*)
4031
 
  case `$CC -V 2>&1 | sed 5q` in
4032
 
  *Sun\ C*)
4033
 
    # Sun C++ 5.9
4034
 
    #
4035
 
    # The more standards-conforming stlport4 library is
4036
 
    # incompatible with the Cstd library. Avoid specifying
4037
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4038
 
    # -library=stlport4 depends on it.
4039
 
    case " $CXX $CXXFLAGS " in
4040
 
    *" -library=stlport4 "*)
4041
 
      solaris_use_stlport4=yes
4042
 
      ;;
4043
 
    esac
4044
 
    if test "$solaris_use_stlport4" != yes; then
4045
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4046
 
    fi
4047
 
    ;;
4048
 
  esac
4049
 
  ;;
4050
 
 
4051
 
solaris*)
4052
 
  case $cc_basename in
4053
 
  CC*)
4054
 
    # The more standards-conforming stlport4 library is
4055
 
    # incompatible with the Cstd library. Avoid specifying
4056
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4057
 
    # -library=stlport4 depends on it.
4058
 
    case " $CXX $CXXFLAGS " in
4059
 
    *" -library=stlport4 "*)
4060
 
      solaris_use_stlport4=yes
4061
 
      ;;
4062
 
    esac
4063
 
 
4064
 
    # Adding this requires a known-good setup of shared libraries for
4065
 
    # Sun compiler versions before 5.6, else PIC objects from an old
4066
 
    # archive will be linked into the output, leading to subtle bugs.
4067
 
    if test "$solaris_use_stlport4" != yes; then
4068
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4069
 
    fi
4070
 
    ;;
4071
 
  esac
4072
 
  ;;
4073
 
esac
4074
 
])
4075
3620
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4076
3621
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4077
3622
esac
4078
3623
])# AC_LIBTOOL_POSTDEP_PREDEP
4079
3624
 
4080
3625
# AC_LIBTOOL_LANG_F77_CONFIG
4081
 
# --------------------------
 
3626
# ------------------------
4082
3627
# Ensure that the configuration vars for the C compiler are
4083
3628
# suitably defined.  Those variables are subsequently used by
4084
3629
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4114
3659
_LT_AC_TAGVAR(objext, $1)=$objext
4115
3660
 
4116
3661
# Code to be used in simple compile tests
4117
 
lt_simple_compile_test_code="\
4118
 
      subroutine t
4119
 
      return
4120
 
      end
4121
 
"
 
3662
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
4122
3663
 
4123
3664
# Code to be used in simple link tests
4124
 
lt_simple_link_test_code="\
4125
 
      program t
4126
 
      end
4127
 
"
 
3665
lt_simple_link_test_code="      program t\n      end\n"
4128
3666
 
4129
3667
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4130
3668
_LT_AC_SYS_COMPILER
4131
3669
 
4132
 
# save warnings/boilerplate of simple test code
4133
 
_LT_COMPILER_BOILERPLATE
4134
 
_LT_LINKER_BOILERPLATE
4135
 
 
4136
3670
# Allow CC to be a program name with arguments.
4137
3671
lt_save_CC="$CC"
4138
3672
CC=${F77-"f77"}
4139
3673
compiler=$CC
4140
3674
_LT_AC_TAGVAR(compiler, $1)=$CC
4141
 
_LT_CC_BASENAME([$compiler])
 
3675
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
4142
3676
 
4143
3677
AC_MSG_CHECKING([if libtool supports shared libraries])
4144
3678
AC_MSG_RESULT([$can_build_shared])
4148
3682
 
4149
3683
# On AIX, shared libraries and static libraries use the same namespace, and
4150
3684
# are all built from PIC.
4151
 
case $host_os in
 
3685
case "$host_os" in
4152
3686
aix3*)
4153
3687
  test "$enable_shared" = yes && enable_static=no
4154
3688
  if test -n "$RANLIB"; then
4156
3690
    postinstall_cmds='$RANLIB $lib'
4157
3691
  fi
4158
3692
  ;;
4159
 
aix[[4-9]]*)
4160
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4161
 
    test "$enable_shared" = yes && enable_static=no
4162
 
  fi
 
3693
aix4* | aix5*)
 
3694
  test "$enable_shared" = yes && enable_static=no
4163
3695
  ;;
4164
3696
esac
4165
3697
AC_MSG_RESULT([$enable_shared])
4169
3701
test "$enable_shared" = yes || enable_static=yes
4170
3702
AC_MSG_RESULT([$enable_static])
4171
3703
 
 
3704
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
3705
 
4172
3706
_LT_AC_TAGVAR(GCC, $1)="$G77"
4173
3707
_LT_AC_TAGVAR(LD, $1)="$LD"
4174
3708
 
4178
3712
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4179
3713
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4180
3714
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
3715
AC_LIBTOOL_SYS_LIB_STRIP
 
3716
 
4181
3717
 
4182
3718
AC_LIBTOOL_CONFIG($1)
4183
3719
 
4203
3739
_LT_AC_TAGVAR(objext, $1)=$objext
4204
3740
 
4205
3741
# Code to be used in simple compile tests
4206
 
lt_simple_compile_test_code="class foo {}"
 
3742
lt_simple_compile_test_code="class foo {}\n"
4207
3743
 
4208
3744
# Code to be used in simple link tests
4209
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
3745
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
4210
3746
 
4211
3747
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4212
3748
_LT_AC_SYS_COMPILER
4213
3749
 
4214
 
# save warnings/boilerplate of simple test code
4215
 
_LT_COMPILER_BOILERPLATE
4216
 
_LT_LINKER_BOILERPLATE
4217
 
 
4218
3750
# Allow CC to be a program name with arguments.
4219
3751
lt_save_CC="$CC"
4220
3752
CC=${GCJ-"gcj"}
4221
3753
compiler=$CC
4222
3754
_LT_AC_TAGVAR(compiler, $1)=$CC
4223
 
_LT_CC_BASENAME([$compiler])
4224
3755
 
4225
3756
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4226
3757
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4227
3758
 
4228
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4229
 
 
4230
3759
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4231
3760
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4232
3761
AC_LIBTOOL_PROG_CC_C_O($1)
4234
3763
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4235
3764
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4236
3765
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
3766
AC_LIBTOOL_SYS_LIB_STRIP
 
3767
AC_LIBTOOL_DLOPEN_SELF($1)
4237
3768
 
4238
3769
AC_LIBTOOL_CONFIG($1)
4239
3770
 
4243
3774
 
4244
3775
 
4245
3776
# AC_LIBTOOL_LANG_RC_CONFIG
4246
 
# -------------------------
 
3777
# --------------------------
4247
3778
# Ensure that the configuration vars for the Windows resource compiler are
4248
3779
# suitably defined.  Those variables are subsequently used by
4249
3780
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4259
3790
_LT_AC_TAGVAR(objext, $1)=$objext
4260
3791
 
4261
3792
# Code to be used in simple compile tests
4262
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
3793
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4263
3794
 
4264
3795
# Code to be used in simple link tests
4265
3796
lt_simple_link_test_code="$lt_simple_compile_test_code"
4267
3798
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4268
3799
_LT_AC_SYS_COMPILER
4269
3800
 
4270
 
# save warnings/boilerplate of simple test code
4271
 
_LT_COMPILER_BOILERPLATE
4272
 
_LT_LINKER_BOILERPLATE
4273
 
 
4274
3801
# Allow CC to be a program name with arguments.
4275
3802
lt_save_CC="$CC"
4276
3803
CC=${RC-"windres"}
4277
3804
compiler=$CC
4278
3805
_LT_AC_TAGVAR(compiler, $1)=$CC
4279
 
_LT_CC_BASENAME([$compiler])
4280
3806
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4281
3807
 
4282
3808
AC_LIBTOOL_CONFIG($1)
4306
3832
  # Now quote all the things that may contain metacharacters while being
4307
3833
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4308
3834
  # variables and quote the copies for generation of the libtool script.
4309
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
3835
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
4310
3836
    SED SHELL STRIP \
4311
3837
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4312
3838
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4333
3859
    _LT_AC_TAGVAR(predeps, $1) \
4334
3860
    _LT_AC_TAGVAR(postdeps, $1) \
4335
3861
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4336
 
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4337
3862
    _LT_AC_TAGVAR(archive_cmds, $1) \
4338
3863
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4339
3864
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4349
3874
    _LT_AC_TAGVAR(module_cmds, $1) \
4350
3875
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4351
3876
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4352
 
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4353
3877
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4354
3878
    _LT_AC_TAGVAR(include_expsyms, $1); do
4355
3879
 
4396
3920
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4397
3921
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4398
3922
#
4399
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
3923
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4400
3924
# Free Software Foundation, Inc.
4401
3925
#
4402
3926
# This file is part of GNU Libtool:
4414
3938
#
4415
3939
# You should have received a copy of the GNU General Public License
4416
3940
# along with this program; if not, write to the Free Software
4417
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
3941
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4418
3942
#
4419
3943
# As a special exception to the GNU General Public License, if you
4420
3944
# distribute this file as part of a program that contains a
4425
3949
SED=$lt_SED
4426
3950
 
4427
3951
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4428
 
Xsed="$SED -e 1s/^X//"
 
3952
Xsed="$SED -e s/^X//"
4429
3953
 
4430
3954
# The HP-UX ksh and POSIX shell print the target directory to stdout
4431
3955
# if CDPATH is set.
4432
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
3956
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4433
3957
 
4434
3958
# The names of the tagged configurations supported by this script.
4435
3959
available_tags=
4460
3984
# The host system.
4461
3985
host_alias=$host_alias
4462
3986
host=$host
4463
 
host_os=$host_os
4464
 
 
4465
 
# The build system.
4466
 
build_alias=$build_alias
4467
 
build=$build
4468
 
build_os=$build_os
4469
3987
 
4470
3988
# An echo program that does not interpret backslashes.
4471
3989
echo=$lt_echo
4477
3995
# A C compiler.
4478
3996
LTCC=$lt_LTCC
4479
3997
 
4480
 
# LTCC compiler flags.
4481
 
LTCFLAGS=$lt_LTCFLAGS
4482
 
 
4483
3998
# A language-specific compiler.
4484
3999
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4485
4000
 
4545
4060
# Does compiler simultaneously support -c and -o options?
4546
4061
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4547
4062
 
4548
 
# Must we lock files when doing compilation?
 
4063
# Must we lock files when doing compilation ?
4549
4064
need_locks=$lt_need_locks
4550
4065
 
4551
4066
# Do we need the lib prefix for modules?
4633
4148
# shared library.
4634
4149
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4635
4150
 
4636
 
# The directories searched by this compiler when creating a shared
4637
 
# library
4638
 
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4639
 
 
4640
4151
# The library search path used internally by the compiler when linking
4641
4152
# a shared library.
4642
4153
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4725
4236
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4726
4237
 
4727
4238
# Fix the shell variable \$srcfile for the compiler.
4728
 
fix_srcfile_path=$lt_fix_srcfile_path
 
4239
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4729
4240
 
4730
4241
# Set to yes if exported symbols are required.
4731
4242
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4808
4319
# ---------------------------------
4809
4320
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4810
4321
[AC_REQUIRE([AC_CANONICAL_HOST])
4811
 
AC_REQUIRE([LT_AC_PROG_SED])
4812
4322
AC_REQUIRE([AC_PROG_NM])
4813
4323
AC_REQUIRE([AC_OBJEXT])
4814
4324
# Check for command to grab the raw symbol name followed by C symbol from nm.
4824
4334
# Regexp to match symbols that can be accessed directly from C.
4825
4335
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4826
4336
 
 
4337
# Transform the above into a raw symbol and a C symbol.
 
4338
symxfrm='\1 \2\3 \3'
 
4339
 
4827
4340
# Transform an extracted symbol line into a proper C declaration
4828
4341
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4829
4342
 
4845
4358
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4846
4359
  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'"
4847
4360
  ;;
4848
 
linux* | k*bsd*-gnu)
4849
 
  if test "$host_cpu" = ia64; then
4850
 
    symcode='[[ABCDGIRSTW]]'
4851
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4852
 
    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'"
4853
 
  fi
4854
 
  ;;
4855
4361
irix* | nonstopux*)
4856
4362
  symcode='[[BCDEGRST]]'
4857
4363
  ;;
4858
4364
osf*)
4859
4365
  symcode='[[BCDEGQRST]]'
4860
4366
  ;;
4861
 
solaris*)
 
4367
solaris* | sysv5*)
4862
4368
  symcode='[[BDRT]]'
4863
4369
  ;;
4864
 
sco3.2v5*)
4865
 
  symcode='[[DT]]'
4866
 
  ;;
4867
 
sysv4.2uw2*)
4868
 
  symcode='[[DT]]'
4869
 
  ;;
4870
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4871
 
  symcode='[[ABDT]]'
4872
 
  ;;
4873
4370
sysv4)
4874
4371
  symcode='[[DFNSTU]]'
4875
4372
  ;;
4892
4389
# Try without a prefix undercore, then with it.
4893
4390
for ac_symprfx in "" "_"; do
4894
4391
 
4895
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4896
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4897
 
 
4898
4392
  # Write the raw and C identifiers.
4899
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4393
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4900
4394
 
4901
4395
  # Check to see that the pipe works correctly.
4902
4396
  pipe_works=no
4986
4480
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4987
4481
    cat conftest.$ac_ext >&5
4988
4482
  fi
4989
 
  rm -rf conftest* conftst*
 
4483
  rm -f conftest* conftst*
4990
4484
 
4991
4485
  # Do not use the global_symbol_pipe unless it works.
4992
4486
  if test "$pipe_works" = yes; then
5035
4529
      # like `-m68040'.
5036
4530
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5037
4531
      ;;
5038
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4532
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5039
4533
      # PIC is the default for these OSes.
5040
4534
      ;;
5041
 
    mingw* | cygwin* | os2* | pw32*)
 
4535
    mingw* | os2* | pw32*)
5042
4536
      # This hack is so that the source file can tell whether it is being
5043
4537
      # built for inclusion in a dll (and should export symbols for example).
5044
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5045
 
      # (--disable-auto-import) libraries
5046
 
      m4_if([$1], [GCJ], [],
5047
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4538
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5048
4539
      ;;
5049
4540
    darwin* | rhapsody*)
5050
4541
      # PIC is the default on this platform
5055
4546
      # DJGPP does not support shared libraries at all
5056
4547
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5057
4548
      ;;
5058
 
    interix[[3-9]]*)
5059
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5060
 
      # Instead, we relocate shared libraries at runtime.
5061
 
      ;;
5062
4549
    sysv4*MP*)
5063
4550
      if test -d /usr/nec; then
5064
4551
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5067
4554
    hpux*)
5068
4555
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5069
4556
      # not for PA HP-UX.
5070
 
      case $host_cpu in
 
4557
      case "$host_cpu" in
5071
4558
      hppa*64*|ia64*)
5072
4559
        ;;
5073
4560
      *)
5081
4568
    esac
5082
4569
  else
5083
4570
    case $host_os in
5084
 
      aix[[4-9]]*)
 
4571
      aix4* | aix5*)
5085
4572
        # All AIX code is PIC.
5086
4573
        if test "$host_cpu" = ia64; then
5087
4574
          # AIX 5 now supports IA64 processor
5092
4579
        ;;
5093
4580
      chorus*)
5094
4581
        case $cc_basename in
5095
 
        cxch68*)
 
4582
        cxch68)
5096
4583
          # Green Hills C++ Compiler
5097
4584
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5098
4585
          ;;
5099
4586
        esac
5100
4587
        ;;
5101
 
       darwin*)
5102
 
         # PIC is the default on this platform
5103
 
         # Common symbols not allowed in MH_DYLIB files
5104
 
         case $cc_basename in
5105
 
           xlc*)
5106
 
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5107
 
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5108
 
           ;;
5109
 
         esac
5110
 
       ;;
5111
4588
      dgux*)
5112
4589
        case $cc_basename in
5113
 
          ec++*)
 
4590
          ec++)
5114
4591
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5115
4592
            ;;
5116
 
          ghcx*)
 
4593
          ghcx)
5117
4594
            # Green Hills C++ Compiler
5118
4595
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5119
4596
            ;;
5121
4598
            ;;
5122
4599
        esac
5123
4600
        ;;
5124
 
      freebsd* | dragonfly*)
 
4601
      freebsd* | kfreebsd*-gnu)
5125
4602
        # FreeBSD uses GNU C++
5126
4603
        ;;
5127
4604
      hpux9* | hpux10* | hpux11*)
5128
4605
        case $cc_basename in
5129
 
          CC*)
 
4606
          CC)
5130
4607
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5131
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4608
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5132
4609
            if test "$host_cpu" != ia64; then
5133
4610
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5134
4611
            fi
5135
4612
            ;;
5136
 
          aCC*)
 
4613
          aCC)
5137
4614
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5138
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5139
 
            case $host_cpu in
 
4615
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
4616
            case "$host_cpu" in
5140
4617
            hppa*64*|ia64*)
5141
4618
              # +Z the default
5142
4619
              ;;
5149
4626
            ;;
5150
4627
        esac
5151
4628
        ;;
5152
 
      interix*)
5153
 
        # This is c89, which is MS Visual C++ (no shared libs)
5154
 
        # Anyone wants to do a port?
5155
 
        ;;
5156
4629
      irix5* | irix6* | nonstopux*)
5157
4630
        case $cc_basename in
5158
 
          CC*)
 
4631
          CC)
5159
4632
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5160
4633
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5161
4634
            # CC pic flag -KPIC is the default.
5164
4637
            ;;
5165
4638
        esac
5166
4639
        ;;
5167
 
      linux* | k*bsd*-gnu)
 
4640
      linux*)
5168
4641
        case $cc_basename in
5169
 
          KCC*)
 
4642
          KCC)
5170
4643
            # KAI C++ Compiler
5171
4644
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5172
4645
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5173
4646
            ;;
5174
 
          icpc* | ecpc*)
 
4647
          icpc)
5175
4648
            # Intel C++
5176
4649
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5177
4650
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5178
4651
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5179
4652
            ;;
5180
 
          pgCC* | pgcpp*)
5181
 
            # Portland Group C++ compiler.
5182
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5183
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5184
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5185
 
            ;;
5186
 
          cxx*)
 
4653
          cxx)
5187
4654
            # Compaq C++
5188
4655
            # Make sure the PIC flag is empty.  It appears that all Alpha
5189
4656
            # Linux and Compaq Tru64 Unix objects are PIC.
5191
4658
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5192
4659
            ;;
5193
4660
          *)
5194
 
            case `$CC -V 2>&1 | sed 5q` in
5195
 
            *Sun\ C*)
5196
 
              # Sun C++ 5.9
5197
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5198
 
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5199
 
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5200
 
              ;;
5201
 
            esac
5202
4661
            ;;
5203
4662
        esac
5204
4663
        ;;
5208
4667
        ;;
5209
4668
      mvs*)
5210
4669
        case $cc_basename in
5211
 
          cxx*)
 
4670
          cxx)
5212
4671
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5213
4672
            ;;
5214
4673
          *)
5215
4674
            ;;
5216
4675
        esac
5217
4676
        ;;
5218
 
      netbsd* | netbsdelf*-gnu)
 
4677
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5219
4678
        ;;
5220
4679
      osf3* | osf4* | osf5*)
5221
4680
        case $cc_basename in
5222
 
          KCC*)
 
4681
          KCC)
5223
4682
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5224
4683
            ;;
5225
 
          RCC*)
 
4684
          RCC)
5226
4685
            # Rational C++ 2.4.1
5227
4686
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5228
4687
            ;;
5229
 
          cxx*)
 
4688
          cxx)
5230
4689
            # Digital/Compaq C++
5231
4690
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5232
4691
            # Make sure the PIC flag is empty.  It appears that all Alpha
5240
4699
        ;;
5241
4700
      psos*)
5242
4701
        ;;
 
4702
      sco*)
 
4703
        case $cc_basename in
 
4704
          CC)
 
4705
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4706
            ;;
 
4707
          *)
 
4708
            ;;
 
4709
        esac
 
4710
        ;;
5243
4711
      solaris*)
5244
4712
        case $cc_basename in
5245
 
          CC*)
 
4713
          CC)
5246
4714
            # Sun C++ 4.2, 5.x and Centerline C++
5247
4715
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5248
4716
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5249
4717
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5250
4718
            ;;
5251
 
          gcx*)
 
4719
          gcx)
5252
4720
            # Green Hills C++ Compiler
5253
4721
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5254
4722
            ;;
5258
4726
        ;;
5259
4727
      sunos4*)
5260
4728
        case $cc_basename in
5261
 
          CC*)
 
4729
          CC)
5262
4730
            # Sun C++ 4.x
5263
4731
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5264
4732
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5265
4733
            ;;
5266
 
          lcc*)
 
4734
          lcc)
5267
4735
            # Lucid
5268
4736
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5269
4737
            ;;
5273
4741
        ;;
5274
4742
      tandem*)
5275
4743
        case $cc_basename in
5276
 
          NCC*)
 
4744
          NCC)
5277
4745
            # NonStop-UX NCC 3.20
5278
4746
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5279
4747
            ;;
5281
4749
            ;;
5282
4750
        esac
5283
4751
        ;;
5284
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5285
 
        case $cc_basename in
5286
 
          CC*)
5287
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5288
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5289
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5290
 
            ;;
5291
 
        esac
 
4752
      unixware*)
5292
4753
        ;;
5293
4754
      vxworks*)
5294
4755
        ;;
5319
4780
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5320
4781
      ;;
5321
4782
 
5322
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4783
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5323
4784
      # PIC is the default for these OSes.
5324
4785
      ;;
5325
4786
 
5326
 
    mingw* | cygwin* | pw32* | os2*)
 
4787
    mingw* | pw32* | os2*)
5327
4788
      # This hack is so that the source file can tell whether it is being
5328
4789
      # built for inclusion in a dll (and should export symbols for example).
5329
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5330
 
      # (--disable-auto-import) libraries
5331
 
      m4_if([$1], [GCJ], [],
5332
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4790
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5333
4791
      ;;
5334
4792
 
5335
4793
    darwin* | rhapsody*)
5338
4796
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5339
4797
      ;;
5340
4798
 
5341
 
    interix[[3-9]]*)
5342
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5343
 
      # Instead, we relocate shared libraries at runtime.
5344
 
      ;;
5345
 
 
5346
4799
    msdosdjgpp*)
5347
4800
      # Just because we use GCC doesn't mean we suddenly get shared libraries
5348
4801
      # on systems that don't support them.
5359
4812
    hpux*)
5360
4813
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5361
4814
      # not for PA HP-UX.
5362
 
      case $host_cpu in
 
4815
      case "$host_cpu" in
5363
4816
      hppa*64*|ia64*)
5364
4817
        # +Z the default
5365
4818
        ;;
5385
4838
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5386
4839
      fi
5387
4840
      ;;
5388
 
      darwin*)
5389
 
        # PIC is the default on this platform
5390
 
        # Common symbols not allowed in MH_DYLIB files
5391
 
       case $cc_basename in
5392
 
         xlc*)
5393
 
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5394
 
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5395
 
         ;;
5396
 
       esac
5397
 
       ;;
5398
4841
 
5399
 
    mingw* | cygwin* | pw32* | os2*)
 
4842
    mingw* | pw32* | os2*)
5400
4843
      # This hack is so that the source file can tell whether it is being
5401
4844
      # built for inclusion in a dll (and should export symbols for example).
5402
 
      m4_if([$1], [GCJ], [],
5403
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4845
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5404
4846
      ;;
5405
4847
 
5406
4848
    hpux9* | hpux10* | hpux11*)
5407
4849
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5408
4850
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5409
4851
      # not for PA HP-UX.
5410
 
      case $host_cpu in
 
4852
      case "$host_cpu" in
5411
4853
      hppa*64*|ia64*)
5412
4854
        # +Z the default
5413
4855
        ;;
5430
4872
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5431
4873
      ;;
5432
4874
 
5433
 
    linux* | k*bsd*-gnu)
5434
 
      case $cc_basename in
 
4875
    linux*)
 
4876
      case $CC in
5435
4877
      icc* | ecc*)
5436
4878
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5437
4879
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5438
4880
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5439
4881
        ;;
5440
 
      pgcc* | pgf77* | pgf90* | pgf95*)
5441
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
5442
 
        # which looks to be a dead project)
5443
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5444
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5445
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5446
 
        ;;
5447
4882
      ccc*)
5448
4883
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5449
4884
        # All Alpha code is PIC.
5450
4885
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5451
4886
        ;;
5452
 
      *)
5453
 
        case `$CC -V 2>&1 | sed 5q` in
5454
 
        *Sun\ C*)
5455
 
          # Sun C 5.9
5456
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5457
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5458
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5459
 
          ;;
5460
 
        *Sun\ F*)
5461
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5462
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5463
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5464
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5465
 
          ;;
5466
 
        esac
5467
 
        ;;
5468
4887
      esac
5469
4888
      ;;
5470
4889
 
5474
4893
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5475
4894
      ;;
5476
4895
 
5477
 
    rdos*)
5478
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4896
    sco3.2v5*)
 
4897
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
 
4898
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5479
4899
      ;;
5480
4900
 
5481
4901
    solaris*)
 
4902
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5482
4903
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5483
4904
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5484
 
      case $cc_basename in
5485
 
      f77* | f90* | f95*)
5486
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5487
 
      *)
5488
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5489
 
      esac
5490
4905
      ;;
5491
4906
 
5492
4907
    sunos4*)
5495
4910
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5496
4911
      ;;
5497
4912
 
5498
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
4913
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5499
4914
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5500
4915
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5501
4916
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5508
4923
      fi
5509
4924
      ;;
5510
4925
 
5511
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5512
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5513
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5514
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5515
 
      ;;
5516
 
 
5517
 
    unicos*)
5518
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5519
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5520
 
      ;;
5521
 
 
5522
4926
    uts4*)
5523
4927
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5524
4928
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5537
4941
#
5538
4942
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5539
4943
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5540
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
 
4944
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5541
4945
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5542
4946
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5543
4947
     "" | " "*) ;;
5546
4950
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5547
4951
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5548
4952
fi
5549
 
case $host_os in
 
4953
case "$host_os" in
5550
4954
  # For platforms which do not support PIC, -DPIC is meaningless:
5551
4955
  *djgpp*)
5552
4956
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5555
4959
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5556
4960
    ;;
5557
4961
esac
5558
 
 
5559
 
#
5560
 
# Check to make sure the static flag actually works.
5561
 
#
5562
 
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5563
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5564
 
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5565
 
  $lt_tmp_static_flag,
5566
 
  [],
5567
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5568
4962
])
5569
4963
 
5570
4964
 
5572
4966
# ------------------------------------
5573
4967
# See if the linker supports building shared libraries.
5574
4968
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5575
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5576
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
4969
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5577
4970
ifelse([$1],[CXX],[
5578
4971
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5579
4972
  case $host_os in
5580
 
  aix[[4-9]]*)
 
4973
  aix4* | aix5*)
5581
4974
    # If we're using GNU nm, then we don't want the "-C" option.
5582
4975
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5583
4976
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5590
4983
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5591
4984
  ;;
5592
4985
  cygwin* | mingw*)
5593
 
    _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'
 
4986
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5594
4987
  ;;
5595
 
  linux* | k*bsd*-gnu)
 
4988
  linux*)
5596
4989
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5597
4990
  ;;
5598
4991
  *)
5599
4992
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5600
4993
  ;;
5601
4994
  esac
5602
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5603
4995
],[
5604
4996
  runpath_var=
5605
4997
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5630
5022
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5631
5023
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5632
5024
  # as well as any symbol that contains `d'.
5633
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
5025
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5634
5026
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5635
5027
  # platforms (ab)use it in PIC code, but their linkers get confused if
5636
5028
  # the symbol is explicitly referenced.  Since portable code cannot
5637
5029
  # rely on this symbol name, it's probably fine to never include it in
5638
5030
  # preloaded symbol tables.
5639
 
  # Exclude shared library initialization/finalization symbols.
5640
 
dnl Note also adjust exclude_expsyms for C++ above.
5641
5031
  extract_expsyms_cmds=
5642
 
  # Just being paranoid about ensuring that cc_basename is set.
5643
 
  _LT_CC_BASENAME([$compiler])
 
5032
 
5644
5033
  case $host_os in
5645
5034
  cygwin* | mingw* | pw32*)
5646
5035
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5650
5039
      with_gnu_ld=no
5651
5040
    fi
5652
5041
    ;;
5653
 
  interix*)
5654
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
5655
 
    with_gnu_ld=yes
5656
 
    ;;
5657
5042
  openbsd*)
5658
5043
    with_gnu_ld=no
5659
5044
    ;;
5664
5049
    # If archive_cmds runs LD, not CC, wlarc should be empty
5665
5050
    wlarc='${wl}'
5666
5051
 
5667
 
    # Set some defaults for GNU ld with shared library support. These
5668
 
    # are reset later if shared libraries are not supported. Putting them
5669
 
    # here allows them to be overridden if necessary.
5670
 
    runpath_var=LD_RUN_PATH
5671
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5672
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5673
 
    # ancient GNU ld didn't support --whole-archive et. al.
5674
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5675
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5676
 
      else
5677
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5678
 
    fi
5679
 
    supports_anon_versioning=no
5680
 
    case `$LD -v 2>/dev/null` in
5681
 
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5682
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5683
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5684
 
      *\ 2.11.*) ;; # other 2.11 versions
5685
 
      *) supports_anon_versioning=yes ;;
5686
 
    esac
5687
 
 
5688
5052
    # See if GNU ld supports shared libraries.
5689
5053
    case $host_os in
5690
 
    aix[[3-9]]*)
 
5054
    aix3* | aix4* | aix5*)
5691
5055
      # On AIX/PPC, the GNU linker is very broken
5692
5056
      if test "$host_cpu" != ia64; then
5693
5057
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5735
5099
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5736
5100
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5737
5101
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5738
 
      _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'
 
5102
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5739
5103
 
5740
5104
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5741
 
        _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'
 
5105
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5742
5106
        # If the export-symbols file already is a .def file (1st line
5743
5107
        # is EXPORTS), use it as is; otherwise, prepend...
5744
5108
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5747
5111
          echo EXPORTS > $output_objdir/$soname.def;
5748
5112
          cat $export_symbols >> $output_objdir/$soname.def;
5749
5113
        fi~
5750
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5751
 
      else
5752
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5753
 
      fi
5754
 
      ;;
5755
 
 
5756
 
    interix[[3-9]]*)
5757
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5758
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5759
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5760
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5761
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5762
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
5763
 
      # default) and relocated if they conflict, which is a slow very memory
5764
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
5765
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5766
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5767
 
      _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'
5768
 
      _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'
5769
 
      ;;
5770
 
 
5771
 
    gnu* | linux* | k*bsd*-gnu)
5772
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5773
 
        tmp_addflag=
5774
 
        case $cc_basename,$host_cpu in
5775
 
        pgcc*)                          # Portland Group C compiler
5776
 
          _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'
5777
 
          tmp_addflag=' $pic_flag'
5778
 
          ;;
5779
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
5780
 
          _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'
5781
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
5782
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
5783
 
          tmp_addflag=' -i_dynamic' ;;
5784
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
5785
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
5786
 
        ifc* | ifort*)                  # Intel Fortran compiler
5787
 
          tmp_addflag=' -nofor_main' ;;
5788
 
        esac
5789
 
        case `$CC -V 2>&1 | sed 5q` in
5790
 
        *Sun\ C*)                       # Sun C 5.9
5791
 
          _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'
5792
 
          tmp_sharedflag='-G' ;;
5793
 
        *Sun\ F*)                       # Sun Fortran 8.3
5794
 
          tmp_sharedflag='-G' ;;
5795
 
        *)
5796
 
          tmp_sharedflag='-shared' ;;
5797
 
        esac
5798
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5799
 
 
5800
 
        if test $supports_anon_versioning = yes; then
5801
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5802
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5803
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5804
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5805
 
        fi
5806
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5807
 
      else
5808
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5809
 
      fi
5810
 
      ;;
5811
 
 
5812
 
    netbsd* | netbsdelf*-gnu)
 
5114
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
5115
      else
 
5116
        ld_shlibs=no
 
5117
      fi
 
5118
      ;;
 
5119
 
 
5120
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5813
5121
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5814
5122
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5815
5123
        wlarc=
5819
5127
      fi
5820
5128
      ;;
5821
5129
 
5822
 
    solaris*)
 
5130
    solaris* | sysv5*)
5823
5131
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5824
5132
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5825
5133
        cat <<EOF 1>&2
5840
5148
      fi
5841
5149
      ;;
5842
5150
 
5843
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5844
 
      case `$LD -v 2>&1` in
5845
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5846
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5847
 
        cat <<_LT_EOF 1>&2
5848
 
 
5849
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5850
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
5851
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
5852
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
5853
 
*** your PATH or compiler configuration so that the native linker is
5854
 
*** used, and then restart.
5855
 
 
5856
 
_LT_EOF
5857
 
        ;;
5858
 
        *)
5859
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5860
 
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5861
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5862
 
            _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'
5863
 
          else
5864
 
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
5865
 
          fi
5866
 
        ;;
5867
 
      esac
5868
 
      ;;
5869
 
 
5870
5151
    sunos4*)
5871
5152
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5872
5153
      wlarc=
5874
5155
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5875
5156
      ;;
5876
5157
 
 
5158
  linux*)
 
5159
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5160
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5161
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
 
5162
      supports_anon_versioning=no
 
5163
      case `$LD -v 2>/dev/null` in
 
5164
        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
5165
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
5166
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
5167
        *\ 2.11.*) ;; # other 2.11 versions
 
5168
        *) supports_anon_versioning=yes ;;
 
5169
      esac
 
5170
      if test $supports_anon_versioning = yes; then
 
5171
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
5172
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5173
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
5174
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5175
      else
 
5176
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
 
5177
      fi
 
5178
      _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
5179
    else
 
5180
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5181
    fi
 
5182
    ;;
 
5183
 
5877
5184
    *)
5878
5185
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5879
5186
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5884
5191
      ;;
5885
5192
    esac
5886
5193
 
5887
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5888
 
      runpath_var=
5889
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5890
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5891
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5194
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
 
5195
      runpath_var=LD_RUN_PATH
 
5196
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
5197
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5198
      # ancient GNU ld didn't support --whole-archive et. al.
 
5199
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
5200
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5201
      else
 
5202
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5203
      fi
5892
5204
    fi
5893
5205
  else
5894
5206
    # PORTME fill in a description of your system's linker (not GNU ld)
5900
5212
      # Note: this linker hardcodes the directories in LIBPATH if there
5901
5213
      # are no directories specified by -L.
5902
5214
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5903
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
5215
      if test "$GCC" = yes && test -z "$link_static_flag"; then
5904
5216
        # Neither direct hardcoding nor static linking is supported with a
5905
5217
        # broken collect2.
5906
5218
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5907
5219
      fi
5908
5220
      ;;
5909
5221
 
5910
 
    aix[[4-9]]*)
 
5222
    aix4* | aix5*)
5911
5223
      if test "$host_cpu" = ia64; then
5912
5224
        # On IA64, the linker does run time linking by default, so we don't
5913
5225
        # have to do anything special.
5927
5239
        # Test if we are trying to use run time linking or normal
5928
5240
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5929
5241
        # need to do runtime linking.
5930
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
5242
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5931
5243
          for ld_flag in $LDFLAGS; do
5932
5244
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5933
5245
            aix_use_runtimelinking=yes
5934
5246
            break
5935
5247
          fi
5936
5248
          done
5937
 
          ;;
5938
5249
        esac
5939
5250
 
5940
5251
        exp_sym_flag='-bexport'
5953
5264
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5954
5265
 
5955
5266
      if test "$GCC" = yes; then
5956
 
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
5267
        case $host_os in aix4.[012]|aix4.[012].*)
5957
5268
        # We only want to do this on AIX 4.2 and lower, the check
5958
5269
        # below for broken collect2 doesn't work under 4.3+
5959
5270
          collect2name=`${CC} -print-prog-name=collect2`
5961
5272
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5962
5273
          then
5963
5274
          # We have reworked collect2
5964
 
          :
 
5275
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5965
5276
          else
5966
5277
          # We have old collect2
5967
5278
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5972
5283
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5973
5284
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5974
5285
          fi
5975
 
          ;;
5976
5286
        esac
5977
5287
        shared_flag='-shared'
5978
 
        if test "$aix_use_runtimelinking" = yes; then
5979
 
          shared_flag="$shared_flag "'${wl}-G'
5980
 
        fi
5981
5288
      else
5982
5289
        # not using gcc
5983
5290
        if test "$host_cpu" = ia64; then
5985
5292
        # chokes on -Wl,-G. The following line is correct:
5986
5293
          shared_flag='-G'
5987
5294
        else
5988
 
          if test "$aix_use_runtimelinking" = yes; then
 
5295
        if test "$aix_use_runtimelinking" = yes; then
5989
5296
            shared_flag='${wl}-G'
5990
5297
          else
5991
5298
            shared_flag='${wl}-bM:SRE'
5992
 
          fi
 
5299
        fi
5993
5300
        fi
5994
5301
      fi
5995
5302
 
6003
5310
       # Determine the default libpath from the value encoded in an empty executable.
6004
5311
       _LT_AC_SYS_LIBPATH_AIX
6005
5312
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6006
 
        _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"
 
5313
        _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"
6007
5314
       else
6008
5315
        if test "$host_cpu" = ia64; then
6009
5316
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6010
5317
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6011
 
          _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"
 
5318
          _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"
6012
5319
        else
6013
5320
         # Determine the default libpath from the value encoded in an empty executable.
6014
5321
         _LT_AC_SYS_LIBPATH_AIX
6017
5324
          # -berok will link without error, but may produce a broken library.
6018
5325
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6019
5326
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
5327
          # -bexpall does not export symbols beginning with underscore (_)
 
5328
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6020
5329
          # Exported symbols can be pulled into shared objects from archives
6021
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5330
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6022
5331
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6023
 
          # This is similar to how AIX traditionally builds its shared libraries.
6024
 
          _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'
 
5332
          # This is similar to how AIX traditionally builds it's shared libraries.
 
5333
          _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'
6025
5334
        fi
6026
5335
      fi
6027
5336
      ;;
6034
5343
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6035
5344
      ;;
6036
5345
 
6037
 
    bsdi[[45]]*)
 
5346
    bsdi4*)
6038
5347
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6039
5348
      ;;
6040
5349
 
6054
5363
      # The linker will automatically build a .lib file if we build a DLL.
6055
5364
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6056
5365
      # FIXME: Should let the user specify the lib program.
6057
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6058
 
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
5366
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
5367
      fix_srcfile_path='`cygpath -w "$srcfile"`'
6059
5368
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6060
5369
      ;;
6061
5370
 
6062
5371
    darwin* | rhapsody*)
6063
 
      case $host_os in
6064
 
        rhapsody* | darwin1.[[012]])
6065
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6066
 
         ;;
6067
 
       *) # Darwin 1.3 on
6068
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6069
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6070
 
         else
6071
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
6072
 
             10.[[012]])
6073
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6074
 
               ;;
6075
 
             10.*)
6076
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6077
 
               ;;
6078
 
           esac
6079
 
         fi
6080
 
         ;;
 
5372
    if test "$GXX" = yes ; then
 
5373
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5374
      case "$host_os" in
 
5375
      rhapsody* | darwin1.[[012]])
 
5376
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
 
5377
        ;;
 
5378
      *) # Darwin 1.3 on
 
5379
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
5380
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
5381
      else
 
5382
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
5383
          10.[[012]])
 
5384
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
5385
            ;;
 
5386
          10.*)
 
5387
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
 
5388
            ;;
 
5389
        esac
 
5390
      fi
 
5391
        ;;
6081
5392
      esac
6082
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6083
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6084
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6085
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6086
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6087
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6088
 
    if test "$GCC" = yes ; then
 
5393
        lt_int_apple_cc_single_mod=no
6089
5394
        output_verbose_link_cmd='echo'
6090
 
        _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}"
6091
 
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6092
 
        _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}"
6093
 
        _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}"
 
5395
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
5396
          lt_int_apple_cc_single_mod=yes
 
5397
        fi
 
5398
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
5399
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
5400
        else
 
5401
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
5402
      fi
 
5403
      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5404
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
5405
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
5406
          _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}'
 
5407
        else
 
5408
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
5409
        fi
 
5410
          _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}'
 
5411
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5412
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
5413
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5414
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
 
5415
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6094
5416
    else
6095
 
      case $cc_basename in
6096
 
        xlc*)
6097
 
         output_verbose_link_cmd='echo'
6098
 
         _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'
6099
 
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6100
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6101
 
         _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}'
6102
 
          _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}'
6103
 
          ;;
6104
 
       *)
6105
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6106
 
          ;;
6107
 
      esac
 
5417
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6108
5418
    fi
6109
5419
      ;;
6110
5420
 
6138
5448
      ;;
6139
5449
 
6140
5450
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6141
 
    freebsd* | dragonfly*)
 
5451
    freebsd* | kfreebsd*-gnu)
6142
5452
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6143
5453
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6144
5454
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6161
5471
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6162
5472
      ;;
6163
5473
 
6164
 
    hpux10*)
6165
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6166
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6167
 
      else
6168
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6169
 
      fi
6170
 
      if test "$with_gnu_ld" = no; then
6171
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6172
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6173
 
 
6174
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6175
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6176
 
 
6177
 
        # hardcode_minus_L: Not really in the search PATH,
6178
 
        # but as the default location of the library.
6179
 
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6180
 
      fi
6181
 
      ;;
6182
 
 
6183
 
    hpux11*)
6184
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6185
 
        case $host_cpu in
6186
 
        hppa*64*)
 
5474
    hpux10* | hpux11*)
 
5475
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5476
        case "$host_cpu" in
 
5477
        hppa*64*|ia64*)
6187
5478
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6188
5479
          ;;
6189
 
        ia64*)
6190
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6191
 
          ;;
6192
5480
        *)
6193
5481
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6194
5482
          ;;
6195
5483
        esac
6196
5484
      else
6197
 
        case $host_cpu in
6198
 
        hppa*64*)
6199
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6200
 
          ;;
6201
 
        ia64*)
6202
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5485
        case "$host_cpu" in
 
5486
        hppa*64*|ia64*)
 
5487
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6203
5488
          ;;
6204
5489
        *)
6205
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5490
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6206
5491
          ;;
6207
5492
        esac
6208
5493
      fi
6209
5494
      if test "$with_gnu_ld" = no; then
6210
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6211
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6212
 
 
6213
 
        case $host_cpu in
6214
 
        hppa*64*|ia64*)
 
5495
        case "$host_cpu" in
 
5496
        hppa*64*)
 
5497
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6215
5498
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6216
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6217
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5499
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5500
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5501
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5502
          ;;
 
5503
        ia64*)
 
5504
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5505
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5506
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5507
 
 
5508
          # hardcode_minus_L: Not really in the search PATH,
 
5509
          # but as the default location of the library.
 
5510
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6218
5511
          ;;
6219
5512
        *)
 
5513
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5514
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6220
5515
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6221
5516
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6222
5517
 
6240
5535
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6241
5536
      ;;
6242
5537
 
6243
 
    netbsd* | netbsdelf*-gnu)
 
5538
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6244
5539
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6245
5540
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6246
5541
      else
6260
5555
      ;;
6261
5556
 
6262
5557
    openbsd*)
6263
 
      if test -f /usr/libexec/ld.so; then
6264
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6265
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6266
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6267
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6268
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6269
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6270
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6271
 
        else
6272
 
          case $host_os in
6273
 
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6274
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6275
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6276
 
             ;;
6277
 
           *)
6278
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6279
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6280
 
             ;;
6281
 
          esac
6282
 
        fi
 
5558
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5559
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5560
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5561
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5562
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5563
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6283
5564
      else
6284
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5565
       case $host_os in
 
5566
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
5567
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5568
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5569
           ;;
 
5570
         *)
 
5571
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5572
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5573
           ;;
 
5574
       esac
6285
5575
      fi
6286
5576
      ;;
6287
5577
 
6314
5604
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6315
5605
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6316
5606
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6317
 
        $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'
 
5607
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6318
5608
 
6319
5609
        # Both c and cxx compiler support -rpath directly
6320
5610
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6322
5612
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6323
5613
      ;;
6324
5614
 
 
5615
    sco3.2v5*)
 
5616
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5617
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5618
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
5619
      runpath_var=LD_RUN_PATH
 
5620
      hardcode_runpath_var=yes
 
5621
      ;;
 
5622
 
6325
5623
    solaris*)
6326
5624
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6327
5625
      if test "$GCC" = yes; then
6328
 
        wlarc='${wl}'
6329
5626
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6330
5627
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6331
5628
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6332
5629
      else
6333
 
        wlarc=''
6334
5630
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6335
5631
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6336
5632
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6339
5635
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6340
5636
      case $host_os in
6341
5637
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6342
 
      *)
6343
 
        # The compiler driver will combine and reorder linker options,
6344
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
6345
 
        # but is careful enough not to reorder.
6346
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6347
 
        if test "$GCC" = yes; then
6348
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6349
 
        else
6350
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6351
 
        fi
6352
 
        ;;
 
5638
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5639
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6353
5640
      esac
6354
5641
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6355
5642
      ;;
6406
5693
      fi
6407
5694
      ;;
6408
5695
 
6409
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6410
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6411
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6412
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6413
 
      runpath_var='LD_RUN_PATH'
6414
 
 
6415
 
      if test "$GCC" = yes; then
6416
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6417
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6418
 
      else
6419
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6420
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6421
 
      fi
6422
 
      ;;
6423
 
 
6424
 
    sysv5* | sco3.2v5* | sco5v6*)
6425
 
      # Note: We can NOT use -z defs as we might desire, because we do not
6426
 
      # link with -lc, and that would cause any symbols used from libc to
6427
 
      # always be unresolved, which means just about no library would
6428
 
      # ever link correctly.  If we're not using GNU ld we use -z text
6429
 
      # though, which does catch some bad symbols but isn't as heavy-handed
6430
 
      # as -z defs.
6431
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6432
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6433
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6434
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6435
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6436
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6437
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6438
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6439
 
      runpath_var='LD_RUN_PATH'
6440
 
 
6441
 
      if test "$GCC" = yes; then
6442
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6443
 
        _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'
6444
 
      else
6445
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6446
 
        _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'
6447
 
      fi
 
5696
    sysv4.2uw2*)
 
5697
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
5698
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5699
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
5700
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5701
      hardcode_runpath_var=yes
 
5702
      runpath_var=LD_RUN_PATH
 
5703
      ;;
 
5704
 
 
5705
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
 
5706
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
 
5707
      if test "$GCC" = yes; then
 
5708
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5709
      else
 
5710
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5711
      fi
 
5712
      runpath_var='LD_RUN_PATH'
 
5713
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5714
      ;;
 
5715
 
 
5716
    sysv5*)
 
5717
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
5718
      # $CC -shared without GNU ld will not create a library from C++
 
5719
      # object files and a static libstdc++, better avoid it by now
 
5720
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5721
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
5722
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
5723
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5724
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5725
      runpath_var='LD_RUN_PATH'
6448
5726
      ;;
6449
5727
 
6450
5728
    uts4*)
6462
5740
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6463
5741
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6464
5742
 
 
5743
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
5744
if test "$GCC" = yes; then
 
5745
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
5746
fi
 
5747
 
6465
5748
#
6466
5749
# Do we need to explicitly link libc?
6467
5750
#
6481
5764
      # to ld, don't add -lc before -lgcc.
6482
5765
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6483
5766
      $rm conftest*
6484
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5767
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6485
5768
 
6486
5769
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6487
5770
        soname=conftest
6489
5772
        libobjs=conftest.$ac_objext
6490
5773
        deplibs=
6491
5774
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6492
 
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6493
5775
        compiler_flags=-v
6494
5776
        linker_flags=-v
6495
5777
        verstring=
6584
5866
[AC_CHECK_TOOL(RC, windres, no)
6585
5867
])
6586
5868
 
6587
 
 
6588
 
# Cheap backport of AS_EXECUTABLE_P and required macros
6589
 
# from Autoconf 2.59; we should not use $as_executable_p directly.
6590
 
 
6591
 
# _AS_TEST_PREPARE
6592
 
# ----------------
6593
 
m4_ifndef([_AS_TEST_PREPARE],
6594
 
[m4_defun([_AS_TEST_PREPARE],
6595
 
[if test -x / >/dev/null 2>&1; then
6596
 
  as_executable_p='test -x'
6597
 
else
6598
 
  as_executable_p='test -f'
6599
 
fi
6600
 
])])# _AS_TEST_PREPARE
6601
 
 
6602
 
# AS_EXECUTABLE_P
6603
 
# ---------------
6604
 
# Check whether a file is executable.
6605
 
m4_ifndef([AS_EXECUTABLE_P],
6606
 
[m4_defun([AS_EXECUTABLE_P],
6607
 
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6608
 
$as_executable_p $1[]dnl
6609
 
])])# AS_EXECUTABLE_P
6610
 
 
6611
5869
# NOTE: This macro has been submitted for inclusion into   #
6612
5870
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6613
5871
#  a released version of Autoconf we should remove this    #
6628
5886
  test -z "$as_dir" && as_dir=.
6629
5887
  for lt_ac_prog in sed gsed; do
6630
5888
    for ac_exec_ext in '' $ac_executable_extensions; do
6631
 
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
 
5889
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6632
5890
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6633
5891
      fi
6634
5892
    done
6635
5893
  done
6636
5894
done
6637
 
IFS=$as_save_IFS
6638
5895
lt_ac_max=0
6639
5896
lt_ac_count=0
6640
5897
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6641
5898
# along with /bin/sed that truncates output.
6642
5899
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6643
 
  test ! -f $lt_ac_sed && continue
 
5900
  test ! -f $lt_ac_sed && break
6644
5901
  cat /dev/null > conftest.in
6645
5902
  lt_ac_count=0
6646
5903
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6665
5922
    fi
6666
5923
  done
6667
5924
done
6668
 
])
6669
5925
SED=$lt_cv_path_SED
6670
 
AC_SUBST([SED])
 
5926
])
6671
5927
AC_MSG_RESULT([$SED])
6672
5928
])
6673
5929
 
6674
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
 
5930
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
6675
5931
#
6676
5932
# This file is free software; the Free Software Foundation
6677
5933
# gives unlimited permission to copy and/or distribute it,
6681
5937
# ----------------------------
6682
5938
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6683
5939
# generated from the m4 files accompanying Automake X.Y.
6684
 
# (This private macro should not be called outside this file.)
6685
 
AC_DEFUN([AM_AUTOMAKE_VERSION],
6686
 
[am__api_version='1.10'
6687
 
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6688
 
dnl require some minimum version.  Point them to the right macro.
6689
 
m4_if([$1], [1.10.1], [],
6690
 
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6691
 
])
6692
 
 
6693
 
# _AM_AUTOCONF_VERSION(VERSION)
6694
 
# -----------------------------
6695
 
# aclocal traces this macro to find the Autoconf version.
6696
 
# This is a private macro too.  Using m4_define simplifies
6697
 
# the logic in aclocal, which can simply ignore this definition.
6698
 
m4_define([_AM_AUTOCONF_VERSION], [])
 
5940
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6699
5941
 
6700
5942
# AM_SET_CURRENT_AUTOMAKE_VERSION
6701
5943
# -------------------------------
6702
 
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
5944
# Call AM_AUTOMAKE_VERSION so it can be traced.
6703
5945
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6704
5946
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6705
 
[AM_AUTOMAKE_VERSION([1.10.1])dnl
6706
 
m4_ifndef([AC_AUTOCONF_VERSION],
6707
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
6708
 
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
 
5947
         [AM_AUTOMAKE_VERSION([1.9.5])])
6709
5948
 
6710
5949
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6711
5950
 
6762
6001
 
6763
6002
# AM_CONDITIONAL                                            -*- Autoconf -*-
6764
6003
 
6765
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
6004
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6766
6005
# Free Software Foundation, Inc.
6767
6006
#
6768
6007
# This file is free software; the Free Software Foundation
6769
6008
# gives unlimited permission to copy and/or distribute it,
6770
6009
# with or without modifications, as long as this notice is preserved.
6771
6010
 
6772
 
# serial 8
 
6011
# serial 7
6773
6012
 
6774
6013
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6775
6014
# -------------------------------------
6778
6017
[AC_PREREQ(2.52)dnl
6779
6018
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
6780
6019
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6781
 
AC_SUBST([$1_TRUE])dnl
6782
 
AC_SUBST([$1_FALSE])dnl
6783
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
6784
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
6020
AC_SUBST([$1_TRUE])
 
6021
AC_SUBST([$1_FALSE])
6785
6022
if $2; then
6786
6023
  $1_TRUE=
6787
6024
  $1_FALSE='#'
6795
6032
Usually this means the macro was only invoked conditionally.]])
6796
6033
fi])])
6797
6034
 
6798
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
6035
 
 
6036
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6799
6037
# Free Software Foundation, Inc.
6800
6038
#
6801
6039
# This file is free software; the Free Software Foundation
6802
6040
# gives unlimited permission to copy and/or distribute it,
6803
6041
# with or without modifications, as long as this notice is preserved.
6804
6042
 
6805
 
# serial 9
 
6043
# serial 8
6806
6044
 
6807
6045
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6808
6046
# written in clear, in which case automake, when reading aclocal.m4,
6830
6068
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
6831
6069
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
6832
6070
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6833
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
6834
6071
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
6835
6072
                   [depcc="$$1"   am_compiler_list=])
6836
6073
 
6896
6133
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6897
6134
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6898
6135
         >/dev/null 2>conftest.err &&
6899
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6900
6136
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6901
6137
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6902
6138
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6949
6185
  AMDEPBACKSLASH='\'
6950
6186
fi
6951
6187
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6952
 
AC_SUBST([AMDEPBACKSLASH])dnl
6953
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
6188
AC_SUBST([AMDEPBACKSLASH])
6954
6189
])
6955
6190
 
6956
6191
# Generate code to set up dependency tracking.              -*- Autoconf -*-
6975
6210
  # some people rename them; so instead we look at the file content.
6976
6211
  # Grep'ing the first line is not enough: some people post-process
6977
6212
  # each Makefile.in and add a new line on top of each file to say so.
6978
 
  # Grep'ing the whole file is not good either: AIX grep has a line
6979
 
  # limit of 2048, but all sed's we know have understand at least 4000.
6980
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
6213
  # So let's grep whole file.
 
6214
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6981
6215
    dirpart=`AS_DIRNAME("$mf")`
6982
6216
  else
6983
6217
    continue
7036
6270
 
7037
6271
# Do all the work for Automake.                             -*- Autoconf -*-
7038
6272
 
7039
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7040
 
# 2005, 2006, 2008 Free Software Foundation, Inc.
 
6273
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6274
# Free Software Foundation, Inc.
7041
6275
#
7042
6276
# This file is free software; the Free Software Foundation
7043
6277
# gives unlimited permission to copy and/or distribute it,
7044
6278
# with or without modifications, as long as this notice is preserved.
7045
6279
 
7046
 
# serial 13
 
6280
# serial 12
7047
6281
 
7048
6282
# This macro actually does too much.  Some checks are only needed if
7049
6283
# your package does certain things.  But this isn't really a big deal.
7060
6294
# arguments mandatory, and then we can depend on a new Autoconf
7061
6295
# release and drop the old call support.
7062
6296
AC_DEFUN([AM_INIT_AUTOMAKE],
7063
 
[AC_PREREQ([2.60])dnl
 
6297
[AC_PREREQ([2.58])dnl
7064
6298
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
7065
6299
dnl the ones we care about.
7066
6300
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7067
6301
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7068
6302
AC_REQUIRE([AC_PROG_INSTALL])dnl
7069
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
7070
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7071
 
  # is not polluted with repeated "-I."
7072
 
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7073
 
  # test to see if srcdir already configured
7074
 
  if test -f $srcdir/config.status; then
7075
 
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7076
 
  fi
 
6303
# test to see if srcdir already configured
 
6304
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
6305
   test -f $srcdir/config.status; then
 
6306
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7077
6307
fi
7078
6308
 
7079
6309
# test whether we have cygpath
7093
6323
 AC_SUBST([PACKAGE], [$1])dnl
7094
6324
 AC_SUBST([VERSION], [$2])],
7095
6325
[_AM_SET_OPTIONS([$1])dnl
7096
 
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
7097
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
7098
 
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
7099
6326
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7100
6327
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7101
6328
 
7131
6358
                  [_AM_DEPENDENCIES(CXX)],
7132
6359
                  [define([AC_PROG_CXX],
7133
6360
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7134
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
7135
 
                  [_AM_DEPENDENCIES(OBJC)],
7136
 
                  [define([AC_PROG_OBJC],
7137
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
7138
6361
])
7139
6362
])
7140
6363
 
7148
6371
# our stamp files there.
7149
6372
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7150
6373
[# Compute $1's index in $config_headers.
7151
 
_am_arg=$1
7152
6374
_am_stamp_count=1
7153
6375
for _am_header in $config_headers :; do
7154
6376
  case $_am_header in
7155
 
    $_am_arg | $_am_arg:* )
 
6377
    $1 | $1:* )
7156
6378
      break ;;
7157
6379
    * )
7158
6380
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7159
6381
  esac
7160
6382
done
7161
 
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
6383
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
7162
6384
 
7163
6385
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
7164
6386
#
7171
6393
# Define $install_sh.
7172
6394
AC_DEFUN([AM_PROG_INSTALL_SH],
7173
6395
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7174
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
6396
install_sh=${install_sh-"$am_aux_dir/install-sh"}
7175
6397
AC_SUBST(install_sh)])
7176
6398
 
7177
6399
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
7247
6469
rm -f confinc confmf
7248
6470
])
7249
6471
 
7250
 
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
7251
 
# Free Software Foundation, Inc.
7252
 
#
7253
 
# This file is free software; the Free Software Foundation
7254
 
# gives unlimited permission to copy and/or distribute it,
7255
 
# with or without modifications, as long as this notice is preserved.
7256
 
 
7257
 
# serial 5
7258
 
 
7259
 
# AM_PROG_CC_C_O
7260
 
# --------------
7261
 
# Like AC_PROG_CC_C_O, but changed for automake.
7262
 
AC_DEFUN([AM_PROG_CC_C_O],
7263
 
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
7264
 
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7265
 
AC_REQUIRE_AUX_FILE([compile])dnl
7266
 
# FIXME: we rely on the cache variable name because
7267
 
# there is no other way.
7268
 
set dummy $CC
7269
 
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
7270
 
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
7271
 
   # Losing compiler, so override with the script.
7272
 
   # FIXME: It is wrong to rewrite CC.
7273
 
   # But if we don't then we get into trouble of one sort or another.
7274
 
   # A longer-term fix would be to have automake use am__CC in this case,
7275
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7276
 
   CC="$am_aux_dir/compile $CC"
7277
 
fi
7278
 
dnl Make sure AC_PROG_CC is never called again, or it will override our
7279
 
dnl setting of CC.
7280
 
m4_define([AC_PROG_CC],
7281
 
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
7282
 
])
7283
 
 
7284
6472
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
7285
6473
 
7286
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
6474
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7287
6475
# Free Software Foundation, Inc.
7288
6476
#
7289
6477
# This file is free software; the Free Software Foundation
7290
6478
# gives unlimited permission to copy and/or distribute it,
7291
6479
# with or without modifications, as long as this notice is preserved.
7292
6480
 
7293
 
# serial 5
 
6481
# serial 4
7294
6482
 
7295
6483
# AM_MISSING_PROG(NAME, PROGRAM)
7296
6484
# ------------------------------
7306
6494
# If it does, set am_missing_run to use it, otherwise, to nothing.
7307
6495
AC_DEFUN([AM_MISSING_HAS_RUN],
7308
6496
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7309
 
AC_REQUIRE_AUX_FILE([missing])dnl
7310
6497
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7311
6498
# Use eval to expand $SHELL
7312
6499
if eval "$MISSING --run true"; then
7317
6504
fi
7318
6505
])
7319
6506
 
7320
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
6507
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
7321
6508
#
7322
6509
# This file is free software; the Free Software Foundation
7323
6510
# gives unlimited permission to copy and/or distribute it,
7325
6512
 
7326
6513
# AM_PROG_MKDIR_P
7327
6514
# ---------------
7328
 
# Check for `mkdir -p'.
 
6515
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
 
6516
#
 
6517
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
 
6518
# created by `make install' are always world readable, even if the
 
6519
# installer happens to have an overly restrictive umask (e.g. 077).
 
6520
# This was a mistake.  There are at least two reasons why we must not
 
6521
# use `-m 0755':
 
6522
#   - it causes special bits like SGID to be ignored,
 
6523
#   - it may be too restrictive (some setups expect 775 directories).
 
6524
#
 
6525
# Do not use -m 0755 and let people choose whatever they expect by
 
6526
# setting umask.
 
6527
#
 
6528
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
 
6529
# Some implementations (such as Solaris 8's) are not thread-safe: if a
 
6530
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
 
6531
# concurrently, both version can detect that a/ is missing, but only
 
6532
# one can create it and the other will error out.  Consequently we
 
6533
# restrict ourselves to GNU make (using the --version option ensures
 
6534
# this.)
7329
6535
AC_DEFUN([AM_PROG_MKDIR_P],
7330
 
[AC_PREREQ([2.60])dnl
7331
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7332
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
7333
 
dnl while keeping a definition of mkdir_p for backward compatibility.
7334
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7335
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7336
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
7337
 
dnl adjustment using top_builddir (which is defined more often than
7338
 
dnl MKDIR_P).
7339
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7340
 
case $mkdir_p in
7341
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
7342
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7343
 
esac
7344
 
])
 
6536
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
6537
  # We used to keeping the `.' as first argument, in order to
 
6538
  # allow $(mkdir_p) to be used without argument.  As in
 
6539
  #   $(mkdir_p) $(somedir)
 
6540
  # where $(somedir) is conditionally defined.  However this is wrong
 
6541
  # for two reasons:
 
6542
  #  1. if the package is installed by a user who cannot write `.'
 
6543
  #     make install will fail,
 
6544
  #  2. the above comment should most certainly read
 
6545
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
6546
  #     so it does not work when $(somedir) is undefined and
 
6547
  #     $(DESTDIR) is not.
 
6548
  #  To support the latter case, we have to write
 
6549
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
6550
  #  so the `.' trick is pointless.
 
6551
  mkdir_p='mkdir -p --'
 
6552
else
 
6553
  # On NextStep and OpenStep, the `mkdir' command does not
 
6554
  # recognize any option.  It will interpret all options as
 
6555
  # directories to create, and then abort because `.' already
 
6556
  # exists.
 
6557
  for d in ./-p ./--version;
 
6558
  do
 
6559
    test -d $d && rmdir $d
 
6560
  done
 
6561
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
6562
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
6563
    mkdir_p='$(mkinstalldirs)'
 
6564
  else
 
6565
    mkdir_p='$(install_sh) -d'
 
6566
  fi
 
6567
fi
 
6568
AC_SUBST([mkdir_p])])
7345
6569
 
7346
6570
# Helper functions for option handling.                     -*- Autoconf -*-
7347
6571
 
7453
6677
if test "$cross_compiling" != no; then
7454
6678
  AC_CHECK_TOOL([STRIP], [strip], :)
7455
6679
fi
7456
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
6680
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7457
6681
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7458
6682
 
7459
 
# Copyright (C) 2006  Free Software Foundation, Inc.
7460
 
#
7461
 
# This file is free software; the Free Software Foundation
7462
 
# gives unlimited permission to copy and/or distribute it,
7463
 
# with or without modifications, as long as this notice is preserved.
7464
 
 
7465
 
# _AM_SUBST_NOTMAKE(VARIABLE)
7466
 
# ---------------------------
7467
 
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
7468
 
# This macro is traced by Automake.
7469
 
AC_DEFUN([_AM_SUBST_NOTMAKE])
7470
 
 
7471
6683
# Check how to create a tarball.                            -*- Autoconf -*-
7472
6684
 
7473
6685
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.