~ubuntu-branches/ubuntu/vivid/libspectre/vivid-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

Tags: upstream-0.2.3
ImportĀ upstreamĀ versionĀ 0.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009  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_if(m4_PACKAGE_VERSION, [2.61],,
15
 
[m4_fatal([this file was generated for autoconf 2.61.
16
 
You have another version of autoconf.  If you want to use that,
17
 
you should regenerate the build system entirely.], [63])])
 
14
m4_ifndef([AC_AUTOCONF_VERSION],
 
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
 
17
[m4_warning([this file was generated for autoconf 2.63.
 
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'.])])
18
21
 
19
 
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
 
22
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
20
23
#
21
24
# This file is free software; the Free Software Foundation
22
25
# gives unlimited permission to copy and/or distribute it,
28
31
# generated from the m4 files accompanying Automake X.Y.
29
32
# (This private macro should not be called outside this file.)
30
33
AC_DEFUN([AM_AUTOMAKE_VERSION],
31
 
[am__api_version='1.10'
 
34
[am__api_version='1.11'
32
35
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
33
36
dnl require some minimum version.  Point them to the right macro.
34
 
m4_if([$1], [1.10], [],
 
37
m4_if([$1], [1.11], [],
35
38
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
36
39
])
37
40
 
45
48
# AM_SET_CURRENT_AUTOMAKE_VERSION
46
49
# -------------------------------
47
50
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
48
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
51
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
49
52
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
50
 
[AM_AUTOMAKE_VERSION([1.10])dnl
51
 
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
 
53
[AM_AUTOMAKE_VERSION([1.11])dnl
 
54
m4_ifndef([AC_AUTOCONF_VERSION],
 
55
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
56
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
52
57
 
53
58
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
54
59
 
105
110
 
106
111
# AM_CONDITIONAL                                            -*- Autoconf -*-
107
112
 
108
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
113
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
109
114
# Free Software Foundation, Inc.
110
115
#
111
116
# This file is free software; the Free Software Foundation
112
117
# gives unlimited permission to copy and/or distribute it,
113
118
# with or without modifications, as long as this notice is preserved.
114
119
 
115
 
# serial 8
 
120
# serial 9
116
121
 
117
122
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
118
123
# -------------------------------------
125
130
AC_SUBST([$1_FALSE])dnl
126
131
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
127
132
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
133
m4_define([_AM_COND_VALUE_$1], [$2])dnl
128
134
if $2; then
129
135
  $1_TRUE=
130
136
  $1_FALSE='#'
138
144
Usually this means the macro was only invoked conditionally.]])
139
145
fi])])
140
146
 
141
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
147
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
142
148
# Free Software Foundation, Inc.
143
149
#
144
150
# This file is free software; the Free Software Foundation
145
151
# gives unlimited permission to copy and/or distribute it,
146
152
# with or without modifications, as long as this notice is preserved.
147
153
 
148
 
# serial 9
 
154
# serial 10
149
155
 
150
156
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
151
157
# written in clear, in which case automake, when reading aclocal.m4,
202
208
  if test "$am_compiler_list" = ""; then
203
209
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
204
210
  fi
 
211
  am__universal=false
 
212
  m4_case([$1], [CC],
 
213
    [case " $depcc " in #(
 
214
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
215
     esac],
 
216
    [CXX],
 
217
    [case " $depcc " in #(
 
218
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
219
     esac])
 
220
 
205
221
  for depmode in $am_compiler_list; do
206
222
    # Setup a source with many dependencies, because some compilers
207
223
    # like to wrap large dependency lists on column 80 (with \), and
219
235
    done
220
236
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
221
237
 
 
238
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
239
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
240
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
241
    # versions had trouble with output in subdirs
 
242
    am__obj=sub/conftest.${OBJEXT-o}
 
243
    am__minus_obj="-o $am__obj"
222
244
    case $depmode in
 
245
    gcc)
 
246
      # This depmode causes a compiler race in universal mode.
 
247
      test "$am__universal" = false || continue
 
248
      ;;
223
249
    nosideeffect)
224
250
      # after this tag, mechanisms are not by side-effect, so they'll
225
251
      # only be used when explicitly requested
229
255
        break
230
256
      fi
231
257
      ;;
 
258
    msvisualcpp | msvcmsys)
 
259
      # This compiler won't grok `-c -o', but also, the minuso test has
 
260
      # not run yet.  These depmodes are late enough in the game, and
 
261
      # so weak that their functioning should not be impacted.
 
262
      am__obj=conftest.${OBJEXT-o}
 
263
      am__minus_obj=
 
264
      ;;
232
265
    none) break ;;
233
266
    esac
234
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
235
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
236
 
    # handle `-M -o', and we need to detect this.
237
267
    if depmode=$depmode \
238
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
268
       source=sub/conftest.c object=$am__obj \
239
269
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
240
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
270
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
241
271
         >/dev/null 2>conftest.err &&
242
272
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
243
273
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
244
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
274
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
245
275
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
246
276
      # icc doesn't choke on unknown options, it will just issue warnings
247
277
      # or remarks (even with -Werror).  So we grep stderr for any message
298
328
 
299
329
# Generate code to set up dependency tracking.              -*- Autoconf -*-
300
330
 
301
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
331
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
302
332
# Free Software Foundation, Inc.
303
333
#
304
334
# This file is free software; the Free Software Foundation
305
335
# gives unlimited permission to copy and/or distribute it,
306
336
# with or without modifications, as long as this notice is preserved.
307
337
 
308
 
#serial 3
 
338
#serial 5
309
339
 
310
340
# _AM_OUTPUT_DEPENDENCY_COMMANDS
311
341
# ------------------------------
312
342
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
313
 
[for mf in $CONFIG_FILES; do
314
 
  # Strip MF so we end up with the name of the file.
315
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
316
 
  # Check whether this is an Automake generated Makefile or not.
317
 
  # We used to match only the files named `Makefile.in', but
318
 
  # some people rename them; so instead we look at the file content.
319
 
  # Grep'ing the first line is not enough: some people post-process
320
 
  # each Makefile.in and add a new line on top of each file to say so.
321
 
  # Grep'ing the whole file is not good either: AIX grep has a line
322
 
  # limit of 2048, but all sed's we know have understand at least 4000.
323
 
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
324
 
    dirpart=`AS_DIRNAME("$mf")`
325
 
  else
326
 
    continue
327
 
  fi
328
 
  # Extract the definition of DEPDIR, am__include, and am__quote
329
 
  # from the Makefile without running `make'.
330
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
331
 
  test -z "$DEPDIR" && continue
332
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
333
 
  test -z "am__include" && continue
334
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
335
 
  # When using ansi2knr, U may be empty or an underscore; expand it
336
 
  U=`sed -n 's/^U = //p' < "$mf"`
337
 
  # Find all dependency output files, they are included files with
338
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
339
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
340
 
  # expansion.
341
 
  for file in `sed -n "
342
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
343
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
344
 
    # Make sure the directory exists.
345
 
    test -f "$dirpart/$file" && continue
346
 
    fdir=`AS_DIRNAME(["$file"])`
347
 
    AS_MKDIR_P([$dirpart/$fdir])
348
 
    # echo "creating $dirpart/$file"
349
 
    echo '# dummy' > "$dirpart/$file"
 
343
[{
 
344
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
345
  # are listed without --file.  Let's play safe and only enable the eval
 
346
  # if we detect the quoting.
 
347
  case $CONFIG_FILES in
 
348
  *\'*) eval set x "$CONFIG_FILES" ;;
 
349
  *)   set x $CONFIG_FILES ;;
 
350
  esac
 
351
  shift
 
352
  for mf
 
353
  do
 
354
    # Strip MF so we end up with the name of the file.
 
355
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
356
    # Check whether this is an Automake generated Makefile or not.
 
357
    # We used to match only the files named `Makefile.in', but
 
358
    # some people rename them; so instead we look at the file content.
 
359
    # Grep'ing the first line is not enough: some people post-process
 
360
    # each Makefile.in and add a new line on top of each file to say so.
 
361
    # Grep'ing the whole file is not good either: AIX grep has a line
 
362
    # limit of 2048, but all sed's we know have understand at least 4000.
 
363
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
364
      dirpart=`AS_DIRNAME("$mf")`
 
365
    else
 
366
      continue
 
367
    fi
 
368
    # Extract the definition of DEPDIR, am__include, and am__quote
 
369
    # from the Makefile without running `make'.
 
370
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
371
    test -z "$DEPDIR" && continue
 
372
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
373
    test -z "am__include" && continue
 
374
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
375
    # When using ansi2knr, U may be empty or an underscore; expand it
 
376
    U=`sed -n 's/^U = //p' < "$mf"`
 
377
    # Find all dependency output files, they are included files with
 
378
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
379
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
380
    # expansion.
 
381
    for file in `sed -n "
 
382
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
383
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
384
      # Make sure the directory exists.
 
385
      test -f "$dirpart/$file" && continue
 
386
      fdir=`AS_DIRNAME(["$file"])`
 
387
      AS_MKDIR_P([$dirpart/$fdir])
 
388
      # echo "creating $dirpart/$file"
 
389
      echo '# dummy' > "$dirpart/$file"
 
390
    done
350
391
  done
351
 
done
 
392
}
352
393
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
353
394
 
354
395
 
368
409
# Do all the work for Automake.                             -*- Autoconf -*-
369
410
 
370
411
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
371
 
# 2005, 2006 Free Software Foundation, Inc.
 
412
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
372
413
#
373
414
# This file is free software; the Free Software Foundation
374
415
# gives unlimited permission to copy and/or distribute it,
375
416
# with or without modifications, as long as this notice is preserved.
376
417
 
377
 
# serial 12
 
418
# serial 16
378
419
 
379
420
# This macro actually does too much.  Some checks are only needed if
380
421
# your package does certain things.  But this isn't really a big deal.
391
432
# arguments mandatory, and then we can depend on a new Autoconf
392
433
# release and drop the old call support.
393
434
AC_DEFUN([AM_INIT_AUTOMAKE],
394
 
[AC_PREREQ([2.60])dnl
 
435
[AC_PREREQ([2.62])dnl
395
436
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
396
437
dnl the ones we care about.
397
438
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
442
483
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
443
484
AM_MISSING_PROG(AUTOHEADER, autoheader)
444
485
AM_MISSING_PROG(MAKEINFO, makeinfo)
445
 
AM_PROG_INSTALL_SH
446
 
AM_PROG_INSTALL_STRIP
 
486
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
487
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
447
488
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
448
489
# We need awk for the "check" target.  The system "awk" is bad on
449
490
# some platforms.
451
492
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
452
493
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
453
494
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
454
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
455
 
                             [_AM_PROG_TAR([v7])])])
 
495
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
496
                             [_AM_PROG_TAR([v7])])])
456
497
_AM_IF_OPTION([no-dependencies],,
457
498
[AC_PROVIDE_IFELSE([AC_PROG_CC],
458
 
                  [_AM_DEPENDENCIES(CC)],
459
 
                  [define([AC_PROG_CC],
460
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
499
                  [_AM_DEPENDENCIES(CC)],
 
500
                  [define([AC_PROG_CC],
 
501
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
461
502
AC_PROVIDE_IFELSE([AC_PROG_CXX],
462
 
                  [_AM_DEPENDENCIES(CXX)],
463
 
                  [define([AC_PROG_CXX],
464
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
503
                  [_AM_DEPENDENCIES(CXX)],
 
504
                  [define([AC_PROG_CXX],
 
505
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
465
506
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
466
 
                  [_AM_DEPENDENCIES(OBJC)],
467
 
                  [define([AC_PROG_OBJC],
468
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
469
 
])
470
 
])
 
507
                  [_AM_DEPENDENCIES(OBJC)],
 
508
                  [define([AC_PROG_OBJC],
 
509
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
510
])
 
511
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
512
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
513
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
514
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
515
AC_CONFIG_COMMANDS_PRE(dnl
 
516
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
517
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
518
])
 
519
 
 
520
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
521
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
522
dnl mangled by Autoconf and run in a shell conditional statement.
 
523
m4_define([_AC_COMPILER_EXEEXT],
 
524
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
471
525
 
472
526
 
473
527
# When config.status generates a header, we must update the stamp-h file.
479
533
# our stamp files there.
480
534
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
481
535
[# Compute $1's index in $config_headers.
 
536
_am_arg=$1
482
537
_am_stamp_count=1
483
538
for _am_header in $config_headers :; do
484
539
  case $_am_header in
485
 
    $1 | $1:* )
 
540
    $_am_arg | $_am_arg:* )
486
541
      break ;;
487
542
    * )
488
543
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
489
544
  esac
490
545
done
491
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
546
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
492
547
 
493
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
548
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
494
549
#
495
550
# This file is free software; the Free Software Foundation
496
551
# gives unlimited permission to copy and/or distribute it,
501
556
# Define $install_sh.
502
557
AC_DEFUN([AM_PROG_INSTALL_SH],
503
558
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
504
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
559
if test x"${install_sh}" != xset; then
 
560
  case $am_aux_dir in
 
561
  *\ * | *\     *)
 
562
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
563
  *)
 
564
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
565
  esac
 
566
fi
505
567
AC_SUBST(install_sh)])
506
568
 
507
569
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
528
590
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
529
591
# From Jim Meyering
530
592
 
531
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
593
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
532
594
# Free Software Foundation, Inc.
533
595
#
534
596
# This file is free software; the Free Software Foundation
535
597
# gives unlimited permission to copy and/or distribute it,
536
598
# with or without modifications, as long as this notice is preserved.
537
599
 
538
 
# serial 4
 
600
# serial 5
539
601
 
 
602
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
603
# ----------------------------------
 
604
# Control maintainer-specific portions of Makefiles.
 
605
# Default is to disable them, unless `enable' is passed literally.
 
606
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
607
# can override the default with the --enable/--disable switch.
540
608
AC_DEFUN([AM_MAINTAINER_MODE],
541
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
542
 
  dnl maintainer-mode is disabled by default
543
 
  AC_ARG_ENABLE(maintainer-mode,
544
 
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
609
[m4_case(m4_default([$1], [disable]),
 
610
       [enable], [m4_define([am_maintainer_other], [disable])],
 
611
       [disable], [m4_define([am_maintainer_other], [enable])],
 
612
       [m4_define([am_maintainer_other], [enable])
 
613
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
614
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
615
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
616
  AC_ARG_ENABLE([maintainer-mode],
 
617
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
545
618
                          (and sometimes confusing) to the casual installer],
546
 
      USE_MAINTAINER_MODE=$enableval,
547
 
      USE_MAINTAINER_MODE=no)
 
619
      [USE_MAINTAINER_MODE=$enableval],
 
620
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
548
621
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
549
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
622
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
550
623
  MAINT=$MAINTAINER_MODE_TRUE
551
 
  AC_SUBST(MAINT)dnl
 
624
  AC_SUBST([MAINT])dnl
552
625
]
553
626
)
554
627
 
556
629
 
557
630
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
558
631
 
559
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
632
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
560
633
#
561
634
# This file is free software; the Free Software Foundation
562
635
# gives unlimited permission to copy and/or distribute it,
563
636
# with or without modifications, as long as this notice is preserved.
564
637
 
565
 
# serial 3
 
638
# serial 4
566
639
 
567
640
# AM_MAKE_INCLUDE()
568
641
# -----------------
571
644
[am_make=${MAKE-make}
572
645
cat > confinc << 'END'
573
646
am__doit:
574
 
        @echo done
 
647
        @echo this is the am__doit target
575
648
.PHONY: am__doit
576
649
END
577
650
# If we don't find an include directive, just comment out the code.
581
654
_am_result=none
582
655
# First try GNU make style include.
583
656
echo "include confinc" > confmf
584
 
# We grep out `Entering directory' and `Leaving directory'
585
 
# messages which can occur if `w' ends up in MAKEFLAGS.
586
 
# In particular we don't look at `^make:' because GNU make might
587
 
# be invoked under some other name (usually "gmake"), in which
588
 
# case it prints its new name instead of `make'.
589
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
590
 
   am__include=include
591
 
   am__quote=
592
 
   _am_result=GNU
593
 
fi
 
657
# Ignore all kinds of additional output from `make'.
 
658
case `$am_make -s -f confmf 2> /dev/null` in #(
 
659
*the\ am__doit\ target*)
 
660
  am__include=include
 
661
  am__quote=
 
662
  _am_result=GNU
 
663
  ;;
 
664
esac
594
665
# Now try BSD make style include.
595
666
if test "$am__include" = "#"; then
596
667
   echo '.include "confinc"' > confmf
597
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
598
 
      am__include=.include
599
 
      am__quote="\""
600
 
      _am_result=BSD
601
 
   fi
 
668
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
669
   *the\ am__doit\ target*)
 
670
     am__include=.include
 
671
     am__quote="\""
 
672
     _am_result=BSD
 
673
     ;;
 
674
   esac
602
675
fi
603
676
AC_SUBST([am__include])
604
677
AC_SUBST([am__quote])
608
681
 
609
682
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
610
683
 
611
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
684
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
612
685
# Free Software Foundation, Inc.
613
686
#
614
687
# This file is free software; the Free Software Foundation
615
688
# gives unlimited permission to copy and/or distribute it,
616
689
# with or without modifications, as long as this notice is preserved.
617
690
 
618
 
# serial 5
 
691
# serial 6
619
692
 
620
693
# AM_MISSING_PROG(NAME, PROGRAM)
621
694
# ------------------------------
632
705
AC_DEFUN([AM_MISSING_HAS_RUN],
633
706
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
634
707
AC_REQUIRE_AUX_FILE([missing])dnl
635
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
708
if test x"${MISSING+set}" != xset; then
 
709
  case $am_aux_dir in
 
710
  *\ * | *\     *)
 
711
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
712
  *)
 
713
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
714
  esac
 
715
fi
636
716
# Use eval to expand $SHELL
637
717
if eval "$MISSING --run true"; then
638
718
  am_missing_run="$MISSING --run "
670
750
 
671
751
# Helper functions for option handling.                     -*- Autoconf -*-
672
752
 
673
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
753
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
674
754
#
675
755
# This file is free software; the Free Software Foundation
676
756
# gives unlimited permission to copy and/or distribute it,
677
757
# with or without modifications, as long as this notice is preserved.
678
758
 
679
 
# serial 3
 
759
# serial 4
680
760
 
681
761
# _AM_MANGLE_OPTION(NAME)
682
762
# -----------------------
693
773
# ----------------------------------
694
774
# OPTIONS is a space-separated list of Automake options.
695
775
AC_DEFUN([_AM_SET_OPTIONS],
696
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
776
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
697
777
 
698
778
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
699
779
# -------------------------------------------
703
783
 
704
784
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
705
785
 
706
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
786
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
707
787
# Free Software Foundation, Inc.
708
788
#
709
789
# This file is free software; the Free Software Foundation
710
790
# gives unlimited permission to copy and/or distribute it,
711
791
# with or without modifications, as long as this notice is preserved.
712
792
 
713
 
# serial 4
 
793
# serial 5
714
794
 
715
795
# AM_SANITY_CHECK
716
796
# ---------------
719
799
# Just in case
720
800
sleep 1
721
801
echo timestamp > conftest.file
 
802
# Reject unsafe characters in $srcdir or the absolute working directory
 
803
# name.  Accept space and tab only in the latter.
 
804
am_lf='
 
805
'
 
806
case `pwd` in
 
807
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
808
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
809
esac
 
810
case $srcdir in
 
811
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
812
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
813
esac
 
814
 
722
815
# Do `set' in a subshell so we don't clobber the current shell's
723
816
# arguments.  Must try -L first in case configure is actually a
724
817
# symlink; some systems play weird games with the mod time of symlinks
725
818
# (eg FreeBSD returns the mod time of the symlink's containing
726
819
# directory).
727
820
if (
728
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
821
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
729
822
   if test "$[*]" = "X"; then
730
823
      # -L didn't work.
731
 
      set X `ls -t $srcdir/configure conftest.file`
 
824
      set X `ls -t "$srcdir/configure" conftest.file`
732
825
   fi
733
826
   rm -f conftest.file
734
827
   if test "$[*]" != "X $srcdir/configure conftest.file" \
781
874
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
782
875
AC_SUBST([INSTALL_STRIP_PROGRAM])])
783
876
 
784
 
# Copyright (C) 2006  Free Software Foundation, Inc.
 
877
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
785
878
#
786
879
# This file is free software; the Free Software Foundation
787
880
# gives unlimited permission to copy and/or distribute it,
788
881
# with or without modifications, as long as this notice is preserved.
789
882
 
 
883
# serial 2
 
884
 
790
885
# _AM_SUBST_NOTMAKE(VARIABLE)
791
886
# ---------------------------
792
 
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
 
887
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
793
888
# This macro is traced by Automake.
794
889
AC_DEFUN([_AM_SUBST_NOTMAKE])
795
890
 
 
891
# AM_SUBST_NOTMAKE(VARIABLE)
 
892
# ---------------------------
 
893
# Public sister of _AM_SUBST_NOTMAKE.
 
894
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
895
 
796
896
# Check how to create a tarball.                            -*- Autoconf -*-
797
897
 
798
898
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
915
1015
)
916
1016
 
917
1017
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
918
 
 
919
 
# serial 48 AC_PROG_LIBTOOL
920
 
 
921
 
 
922
 
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
923
 
# -----------------------------------------------------------
924
 
# If this macro is not defined by Autoconf, define it here.
925
 
m4_ifdef([AC_PROVIDE_IFELSE],
926
 
         [],
927
 
         [m4_define([AC_PROVIDE_IFELSE],
928
 
                 [m4_ifdef([AC_PROVIDE_$1],
929
 
                           [$2], [$3])])])
930
 
 
931
 
 
932
 
# AC_PROG_LIBTOOL
933
 
# ---------------
934
 
AC_DEFUN([AC_PROG_LIBTOOL],
935
 
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
936
 
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
937
 
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
938
 
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
939
 
    [AC_LIBTOOL_CXX],
940
 
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
941
 
  ])])
942
 
dnl And a similar setup for Fortran 77 support
943
 
  AC_PROVIDE_IFELSE([AC_PROG_F77],
944
 
    [AC_LIBTOOL_F77],
945
 
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
946
 
])])
947
 
 
948
 
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
949
 
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
950
 
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
951
 
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
952
 
    [AC_LIBTOOL_GCJ],
953
 
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
954
 
      [AC_LIBTOOL_GCJ],
955
 
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
956
 
        [AC_LIBTOOL_GCJ],
957
 
      [ifdef([AC_PROG_GCJ],
958
 
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
959
 
       ifdef([A][M_PROG_GCJ],
960
 
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
961
 
       ifdef([LT_AC_PROG_GCJ],
962
 
             [define([LT_AC_PROG_GCJ],
963
 
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
964
 
])])# AC_PROG_LIBTOOL
965
 
 
966
 
 
967
 
# _AC_PROG_LIBTOOL
968
 
# ----------------
969
 
AC_DEFUN([_AC_PROG_LIBTOOL],
970
 
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
971
 
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
972
 
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
973
 
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
 
1018
#
 
1019
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
1020
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
1021
#   Written by Gordon Matzigkeit, 1996
 
1022
#
 
1023
# This file is free software; the Free Software Foundation gives
 
1024
# unlimited permission to copy and/or distribute it, with or without
 
1025
# modifications, as long as this notice is preserved.
 
1026
 
 
1027
m4_define([_LT_COPYING], [dnl
 
1028
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
1029
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
1030
#   Written by Gordon Matzigkeit, 1996
 
1031
#
 
1032
#   This file is part of GNU Libtool.
 
1033
#
 
1034
# GNU Libtool is free software; you can redistribute it and/or
 
1035
# modify it under the terms of the GNU General Public License as
 
1036
# published by the Free Software Foundation; either version 2 of
 
1037
# the License, or (at your option) any later version.
 
1038
#
 
1039
# As a special exception to the GNU General Public License,
 
1040
# if you distribute this file as part of a program or library that
 
1041
# is built using GNU Libtool, you may include this file under the
 
1042
# same distribution terms that you use for the rest of that program.
 
1043
#
 
1044
# GNU Libtool is distributed in the hope that it will be useful,
 
1045
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
1046
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
1047
# GNU General Public License for more details.
 
1048
#
 
1049
# You should have received a copy of the GNU General Public License
 
1050
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
1051
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
1052
# obtained by writing to the Free Software Foundation, Inc.,
 
1053
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
1054
])
 
1055
 
 
1056
# serial 56 LT_INIT
 
1057
 
 
1058
 
 
1059
# LT_PREREQ(VERSION)
 
1060
# ------------------
 
1061
# Complain and exit if this libtool version is less that VERSION.
 
1062
m4_defun([LT_PREREQ],
 
1063
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
 
1064
       [m4_default([$3],
 
1065
                   [m4_fatal([Libtool version $1 or higher is required],
 
1066
                             63)])],
 
1067
       [$2])])
 
1068
 
 
1069
 
 
1070
# _LT_CHECK_BUILDDIR
 
1071
# ------------------
 
1072
# Complain if the absolute build directory name contains unusual characters
 
1073
m4_defun([_LT_CHECK_BUILDDIR],
 
1074
[case `pwd` in
 
1075
  *\ * | *\     *)
 
1076
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
 
1077
esac
 
1078
])
 
1079
 
 
1080
 
 
1081
# LT_INIT([OPTIONS])
 
1082
# ------------------
 
1083
AC_DEFUN([LT_INIT],
 
1084
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
1085
AC_BEFORE([$0], [LT_LANG])dnl
 
1086
AC_BEFORE([$0], [LT_OUTPUT])dnl
 
1087
AC_BEFORE([$0], [LTDL_INIT])dnl
 
1088
m4_require([_LT_CHECK_BUILDDIR])dnl
 
1089
 
 
1090
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
 
1091
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
 
1092
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
 
1093
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
 
1094
dnl unless we require an AC_DEFUNed macro:
 
1095
AC_REQUIRE([LTOPTIONS_VERSION])dnl
 
1096
AC_REQUIRE([LTSUGAR_VERSION])dnl
 
1097
AC_REQUIRE([LTVERSION_VERSION])dnl
 
1098
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
 
1099
m4_require([_LT_PROG_LTMAIN])dnl
 
1100
 
 
1101
dnl Parse OPTIONS
 
1102
_LT_SET_OPTIONS([$0], [$1])
974
1103
 
975
1104
# This can be used to rebuild libtool when needed
976
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
1105
LIBTOOL_DEPS="$ltmain"
977
1106
 
978
1107
# Always use our own libtool.
979
1108
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
980
1109
AC_SUBST(LIBTOOL)dnl
981
1110
 
982
 
# Prevent multiple expansion
983
 
define([AC_PROG_LIBTOOL], [])
984
 
])# _AC_PROG_LIBTOOL
985
 
 
986
 
 
987
 
# AC_LIBTOOL_SETUP
988
 
# ----------------
989
 
AC_DEFUN([AC_LIBTOOL_SETUP],
990
 
[AC_PREREQ(2.50)dnl
991
 
AC_REQUIRE([AC_ENABLE_SHARED])dnl
992
 
AC_REQUIRE([AC_ENABLE_STATIC])dnl
993
 
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
994
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
1111
_LT_SETUP
 
1112
 
 
1113
# Only expand once:
 
1114
m4_define([LT_INIT])
 
1115
])# LT_INIT
 
1116
 
 
1117
# Old names:
 
1118
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
 
1119
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
 
1120
dnl aclocal-1.4 backwards compatibility:
 
1121
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
 
1122
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
 
1123
 
 
1124
 
 
1125
# _LT_CC_BASENAME(CC)
 
1126
# -------------------
 
1127
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
1128
m4_defun([_LT_CC_BASENAME],
 
1129
[for cc_temp in $1""; do
 
1130
  case $cc_temp in
 
1131
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
1132
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
1133
    \-*) ;;
 
1134
    *) break;;
 
1135
  esac
 
1136
done
 
1137
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
1138
])
 
1139
 
 
1140
 
 
1141
# _LT_FILEUTILS_DEFAULTS
 
1142
# ----------------------
 
1143
# It is okay to use these file commands and assume they have been set
 
1144
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
 
1145
m4_defun([_LT_FILEUTILS_DEFAULTS],
 
1146
[: ${CP="cp -f"}
 
1147
: ${MV="mv -f"}
 
1148
: ${RM="rm -f"}
 
1149
])# _LT_FILEUTILS_DEFAULTS
 
1150
 
 
1151
 
 
1152
# _LT_SETUP
 
1153
# ---------
 
1154
m4_defun([_LT_SETUP],
 
1155
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
995
1156
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
1157
_LT_DECL([], [host_alias], [0], [The host system])dnl
 
1158
_LT_DECL([], [host], [0])dnl
 
1159
_LT_DECL([], [host_os], [0])dnl
 
1160
dnl
 
1161
_LT_DECL([], [build_alias], [0], [The build system])dnl
 
1162
_LT_DECL([], [build], [0])dnl
 
1163
_LT_DECL([], [build_os], [0])dnl
 
1164
dnl
996
1165
AC_REQUIRE([AC_PROG_CC])dnl
997
 
AC_REQUIRE([AC_PROG_LD])dnl
998
 
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
999
 
AC_REQUIRE([AC_PROG_NM])dnl
1000
 
 
 
1166
AC_REQUIRE([LT_PATH_LD])dnl
 
1167
AC_REQUIRE([LT_PATH_NM])dnl
 
1168
dnl
1001
1169
AC_REQUIRE([AC_PROG_LN_S])dnl
1002
 
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1003
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1004
 
AC_REQUIRE([AC_OBJEXT])dnl
1005
 
AC_REQUIRE([AC_EXEEXT])dnl
1006
 
dnl
1007
 
 
1008
 
AC_LIBTOOL_SYS_MAX_CMD_LEN
1009
 
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1010
 
AC_LIBTOOL_OBJDIR
1011
 
 
1012
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1013
 
_LT_AC_PROG_ECHO_BACKSLASH
 
1170
test -z "$LN_S" && LN_S="ln -s"
 
1171
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
 
1172
dnl
 
1173
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
 
1174
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
 
1175
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
 
1176
dnl
 
1177
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1178
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
1179
m4_require([_LT_CMD_RELOAD])dnl
 
1180
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
1181
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
 
1182
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
1183
 
 
1184
_LT_CONFIG_LIBTOOL_INIT([
 
1185
# See if we are running on zsh, and set the options which allow our
 
1186
# commands through without removal of \ escapes INIT.
 
1187
if test -n "\${ZSH_VERSION+set}" ; then
 
1188
   setopt NO_GLOB_SUBST
 
1189
fi
 
1190
])
 
1191
if test -n "${ZSH_VERSION+set}" ; then
 
1192
   setopt NO_GLOB_SUBST
 
1193
fi
 
1194
 
 
1195
_LT_CHECK_OBJDIR
 
1196
 
 
1197
m4_require([_LT_TAG_COMPILER])dnl
 
1198
_LT_PROG_ECHO_BACKSLASH
1014
1199
 
1015
1200
case $host_os in
1016
1201
aix3*)
1026
1211
 
1027
1212
# Sed substitution that helps us do robust quoting.  It backslashifies
1028
1213
# metacharacters that are still active within double-quoted strings.
1029
 
Xsed='sed -e 1s/^X//'
1030
 
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
1214
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1031
1215
 
1032
1216
# Same as above, but do not quote variable references.
1033
 
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
1217
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1034
1218
 
1035
1219
# Sed substitution to delay expansion of an escaped shell variable in a
1036
1220
# double_quote_subst'ed string.
1037
1221
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1038
1222
 
 
1223
# Sed substitution to delay expansion of an escaped single quote.
 
1224
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
1225
 
1039
1226
# Sed substitution to avoid accidental globbing in evaled expressions
1040
1227
no_glob_subst='s/\*/\\\*/g'
1041
1228
 
1042
 
# Constants:
1043
 
rm="rm -f"
1044
 
 
1045
1229
# Global variables:
1046
 
default_ofile=libtool
 
1230
ofile=libtool
1047
1231
can_build_shared=yes
1048
1232
 
1049
1233
# All known linkers require a `.a' archive for static linking (except MSVC,
1050
1234
# which needs '.lib').
1051
1235
libext=a
1052
 
ltmain="$ac_aux_dir/ltmain.sh"
1053
 
ofile="$default_ofile"
 
1236
 
1054
1237
with_gnu_ld="$lt_cv_prog_gnu_ld"
1055
1238
 
1056
 
AC_CHECK_TOOL(AR, ar, false)
1057
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
1058
 
AC_CHECK_TOOL(STRIP, strip, :)
1059
 
 
1060
1239
old_CC="$CC"
1061
1240
old_CFLAGS="$CFLAGS"
1062
1241
 
1063
1242
# Set sane defaults for various variables
1064
 
test -z "$AR" && AR=ar
1065
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
1066
 
test -z "$AS" && AS=as
1067
1243
test -z "$CC" && CC=cc
1068
1244
test -z "$LTCC" && LTCC=$CC
1069
1245
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1070
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
1071
1246
test -z "$LD" && LD=ld
1072
 
test -z "$LN_S" && LN_S="ln -s"
1073
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1074
 
test -z "$NM" && NM=nm
1075
 
test -z "$SED" && SED=sed
1076
 
test -z "$OBJDUMP" && OBJDUMP=objdump
1077
 
test -z "$RANLIB" && RANLIB=:
1078
 
test -z "$STRIP" && STRIP=:
1079
1247
test -z "$ac_objext" && ac_objext=o
1080
1248
 
1081
 
# Determine commands to create old-style static archives.
1082
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1083
 
old_postinstall_cmds='chmod 644 $oldlib'
1084
 
old_postuninstall_cmds=
1085
 
 
1086
 
if test -n "$RANLIB"; then
1087
 
  case $host_os in
1088
 
  openbsd*)
1089
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1090
 
    ;;
1091
 
  *)
1092
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1093
 
    ;;
1094
 
  esac
1095
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1096
 
fi
1097
 
 
1098
1249
_LT_CC_BASENAME([$compiler])
1099
1250
 
1100
1251
# Only perform the check for file, if the check method requires it
 
1252
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1101
1253
case $deplibs_check_method in
1102
1254
file_magic*)
1103
1255
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1104
 
    AC_PATH_MAGIC
 
1256
    _LT_PATH_MAGIC
1105
1257
  fi
1106
1258
  ;;
1107
1259
esac
1108
1260
 
1109
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1110
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1111
 
enable_win32_dll=yes, enable_win32_dll=no)
1112
 
 
1113
 
AC_ARG_ENABLE([libtool-lock],
1114
 
    [AC_HELP_STRING([--disable-libtool-lock],
1115
 
        [avoid locking (might break parallel builds)])])
1116
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1117
 
 
1118
 
AC_ARG_WITH([pic],
1119
 
    [AC_HELP_STRING([--with-pic],
1120
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1121
 
    [pic_mode="$withval"],
1122
 
    [pic_mode=default])
1123
 
test -z "$pic_mode" && pic_mode=default
1124
 
 
1125
1261
# Use C for the default configuration in the libtool script
1126
 
tagname=
1127
 
AC_LIBTOOL_LANG_C_CONFIG
1128
 
_LT_AC_TAGCONFIG
1129
 
])# AC_LIBTOOL_SETUP
1130
 
 
1131
 
 
1132
 
# _LT_AC_SYS_COMPILER
 
1262
LT_SUPPORTED_TAG([CC])
 
1263
_LT_LANG_C_CONFIG
 
1264
_LT_LANG_DEFAULT_CONFIG
 
1265
_LT_CONFIG_COMMANDS
 
1266
])# _LT_SETUP
 
1267
 
 
1268
 
 
1269
# _LT_PROG_LTMAIN
 
1270
# ---------------
 
1271
# Note that this code is called both from `configure', and `config.status'
 
1272
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
 
1273
# `config.status' has no value for ac_aux_dir unless we are using Automake,
 
1274
# so we pass a copy along to make sure it has a sensible value anyway.
 
1275
m4_defun([_LT_PROG_LTMAIN],
 
1276
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
 
1277
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
 
1278
ltmain="$ac_aux_dir/ltmain.sh"
 
1279
])# _LT_PROG_LTMAIN
 
1280
 
 
1281
 
 
1282
 
 
1283
# So that we can recreate a full libtool script including additional
 
1284
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
 
1285
# in macros and then make a single call at the end using the `libtool'
 
1286
# label.
 
1287
 
 
1288
 
 
1289
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
 
1290
# ----------------------------------------
 
1291
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
1292
m4_define([_LT_CONFIG_LIBTOOL_INIT],
 
1293
[m4_ifval([$1],
 
1294
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
 
1295
                     [$1
 
1296
])])])
 
1297
 
 
1298
# Initialize.
 
1299
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
 
1300
 
 
1301
 
 
1302
# _LT_CONFIG_LIBTOOL([COMMANDS])
 
1303
# ------------------------------
 
1304
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
1305
m4_define([_LT_CONFIG_LIBTOOL],
 
1306
[m4_ifval([$1],
 
1307
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
 
1308
                     [$1
 
1309
])])])
 
1310
 
 
1311
# Initialize.
 
1312
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
 
1313
 
 
1314
 
 
1315
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
 
1316
# -----------------------------------------------------
 
1317
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
 
1318
[_LT_CONFIG_LIBTOOL([$1])
 
1319
_LT_CONFIG_LIBTOOL_INIT([$2])
 
1320
])
 
1321
 
 
1322
 
 
1323
# _LT_FORMAT_COMMENT([COMMENT])
 
1324
# -----------------------------
 
1325
# Add leading comment marks to the start of each line, and a trailing
 
1326
# full-stop to the whole comment if one is not present already.
 
1327
m4_define([_LT_FORMAT_COMMENT],
 
1328
[m4_ifval([$1], [
 
1329
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
 
1330
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
 
1331
)])
 
1332
 
 
1333
 
 
1334
 
 
1335
 
 
1336
 
 
1337
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
 
1338
# -------------------------------------------------------------------
 
1339
# CONFIGNAME is the name given to the value in the libtool script.
 
1340
# VARNAME is the (base) name used in the configure script.
 
1341
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
 
1342
# VARNAME.  Any other value will be used directly.
 
1343
m4_define([_LT_DECL],
 
1344
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
 
1345
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
 
1346
        [m4_ifval([$1], [$1], [$2])])
 
1347
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
 
1348
    m4_ifval([$4],
 
1349
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
 
1350
    lt_dict_add_subkey([lt_decl_dict], [$2],
 
1351
        [tagged?], [m4_ifval([$5], [yes], [no])])])
 
1352
])
 
1353
 
 
1354
 
 
1355
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
 
1356
# --------------------------------------------------------
 
1357
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
 
1358
 
 
1359
 
 
1360
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
 
1361
# ------------------------------------------------
 
1362
m4_define([lt_decl_tag_varnames],
 
1363
[_lt_decl_filter([tagged?], [yes], $@)])
 
1364
 
 
1365
 
 
1366
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
 
1367
# ---------------------------------------------------------
 
1368
m4_define([_lt_decl_filter],
 
1369
[m4_case([$#],
 
1370
  [0], [m4_fatal([$0: too few arguments: $#])],
 
1371
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
 
1372
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
 
1373
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
 
1374
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
 
1375
])
 
1376
 
 
1377
 
 
1378
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
 
1379
# --------------------------------------------------
 
1380
m4_define([lt_decl_quote_varnames],
 
1381
[_lt_decl_filter([value], [1], $@)])
 
1382
 
 
1383
 
 
1384
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
 
1385
# ---------------------------------------------------
 
1386
m4_define([lt_decl_dquote_varnames],
 
1387
[_lt_decl_filter([value], [2], $@)])
 
1388
 
 
1389
 
 
1390
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
 
1391
# ---------------------------------------------------
 
1392
m4_define([lt_decl_varnames_tagged],
 
1393
[m4_assert([$# <= 2])dnl
 
1394
_$0(m4_quote(m4_default([$1], [[, ]])),
 
1395
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
 
1396
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
 
1397
m4_define([_lt_decl_varnames_tagged],
 
1398
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
 
1399
 
 
1400
 
 
1401
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
 
1402
# ------------------------------------------------
 
1403
m4_define([lt_decl_all_varnames],
 
1404
[_$0(m4_quote(m4_default([$1], [[, ]])),
 
1405
     m4_if([$2], [],
 
1406
           m4_quote(lt_decl_varnames),
 
1407
        m4_quote(m4_shift($@))))[]dnl
 
1408
])
 
1409
m4_define([_lt_decl_all_varnames],
 
1410
[lt_join($@, lt_decl_varnames_tagged([$1],
 
1411
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
 
1412
])
 
1413
 
 
1414
 
 
1415
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
 
1416
# ------------------------------------
 
1417
# Quote a variable value, and forward it to `config.status' so that its
 
1418
# declaration there will have the same value as in `configure'.  VARNAME
 
1419
# must have a single quote delimited value for this to work.
 
1420
m4_define([_LT_CONFIG_STATUS_DECLARE],
 
1421
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
1422
 
 
1423
 
 
1424
# _LT_CONFIG_STATUS_DECLARATIONS
 
1425
# ------------------------------
 
1426
# We delimit libtool config variables with single quotes, so when
 
1427
# we write them to config.status, we have to be sure to quote all
 
1428
# embedded single quotes properly.  In configure, this macro expands
 
1429
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
 
1430
#
 
1431
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
1432
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
 
1433
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
 
1434
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
 
1435
 
 
1436
 
 
1437
# _LT_LIBTOOL_TAGS
 
1438
# ----------------
 
1439
# Output comment and list of tags supported by the script
 
1440
m4_defun([_LT_LIBTOOL_TAGS],
 
1441
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
 
1442
available_tags="_LT_TAGS"dnl
 
1443
])
 
1444
 
 
1445
 
 
1446
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
 
1447
# -----------------------------------
 
1448
# Extract the dictionary values for VARNAME (optionally with TAG) and
 
1449
# expand to a commented shell variable setting:
 
1450
#
 
1451
#    # Some comment about what VAR is for.
 
1452
#    visible_name=$lt_internal_name
 
1453
m4_define([_LT_LIBTOOL_DECLARE],
 
1454
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
 
1455
                                           [description])))[]dnl
 
1456
m4_pushdef([_libtool_name],
 
1457
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
 
1458
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
 
1459
    [0], [_libtool_name=[$]$1],
 
1460
    [1], [_libtool_name=$lt_[]$1],
 
1461
    [2], [_libtool_name=$lt_[]$1],
 
1462
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
 
1463
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
 
1464
])
 
1465
 
 
1466
 
 
1467
# _LT_LIBTOOL_CONFIG_VARS
 
1468
# -----------------------
 
1469
# Produce commented declarations of non-tagged libtool config variables
 
1470
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
 
1471
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
 
1472
# section) are produced by _LT_LIBTOOL_TAG_VARS.
 
1473
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
 
1474
[m4_foreach([_lt_var],
 
1475
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
 
1476
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
 
1477
 
 
1478
 
 
1479
# _LT_LIBTOOL_TAG_VARS(TAG)
 
1480
# -------------------------
 
1481
m4_define([_LT_LIBTOOL_TAG_VARS],
 
1482
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
 
1483
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
 
1484
 
 
1485
 
 
1486
# _LT_TAGVAR(VARNAME, [TAGNAME])
 
1487
# ------------------------------
 
1488
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
 
1489
 
 
1490
 
 
1491
# _LT_CONFIG_COMMANDS
1133
1492
# -------------------
1134
 
AC_DEFUN([_LT_AC_SYS_COMPILER],
 
1493
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
 
1494
# variables for single and double quote escaping we saved from calls
 
1495
# to _LT_DECL, we can put quote escaped variables declarations
 
1496
# into `config.status', and then the shell code to quote escape them in
 
1497
# for loops in `config.status'.  Finally, any additional code accumulated
 
1498
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
 
1499
m4_defun([_LT_CONFIG_COMMANDS],
 
1500
[AC_PROVIDE_IFELSE([LT_OUTPUT],
 
1501
        dnl If the libtool generation code has been placed in $CONFIG_LT,
 
1502
        dnl instead of duplicating it all over again into config.status,
 
1503
        dnl then we will have config.status run $CONFIG_LT later, so it
 
1504
        dnl needs to know what name is stored there:
 
1505
        [AC_CONFIG_COMMANDS([libtool],
 
1506
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
 
1507
    dnl If the libtool generation code is destined for config.status,
 
1508
    dnl expand the accumulated commands and init code now:
 
1509
    [AC_CONFIG_COMMANDS([libtool],
 
1510
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
 
1511
])#_LT_CONFIG_COMMANDS
 
1512
 
 
1513
 
 
1514
# Initialize.
 
1515
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
 
1516
[
 
1517
 
 
1518
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
1519
# if CDPATH is set.
 
1520
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
1521
 
 
1522
sed_quote_subst='$sed_quote_subst'
 
1523
double_quote_subst='$double_quote_subst'
 
1524
delay_variable_subst='$delay_variable_subst'
 
1525
_LT_CONFIG_STATUS_DECLARATIONS
 
1526
LTCC='$LTCC'
 
1527
LTCFLAGS='$LTCFLAGS'
 
1528
compiler='$compiler_DEFAULT'
 
1529
 
 
1530
# Quote evaled strings.
 
1531
for var in lt_decl_all_varnames([[ \
 
1532
]], lt_decl_quote_varnames); do
 
1533
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1534
    *[[\\\\\\\`\\"\\\$]]*)
 
1535
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
1536
      ;;
 
1537
    *)
 
1538
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1539
      ;;
 
1540
    esac
 
1541
done
 
1542
 
 
1543
# Double-quote double-evaled strings.
 
1544
for var in lt_decl_all_varnames([[ \
 
1545
]], lt_decl_dquote_varnames); do
 
1546
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1547
    *[[\\\\\\\`\\"\\\$]]*)
 
1548
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
1549
      ;;
 
1550
    *)
 
1551
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1552
      ;;
 
1553
    esac
 
1554
done
 
1555
 
 
1556
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
1557
case \$lt_ECHO in
 
1558
*'\\\[$]0 --fallback-echo"')dnl "
 
1559
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
 
1560
  ;;
 
1561
esac
 
1562
 
 
1563
_LT_OUTPUT_LIBTOOL_INIT
 
1564
])
 
1565
 
 
1566
 
 
1567
# LT_OUTPUT
 
1568
# ---------
 
1569
# This macro allows early generation of the libtool script (before
 
1570
# AC_OUTPUT is called), incase it is used in configure for compilation
 
1571
# tests.
 
1572
AC_DEFUN([LT_OUTPUT],
 
1573
[: ${CONFIG_LT=./config.lt}
 
1574
AC_MSG_NOTICE([creating $CONFIG_LT])
 
1575
cat >"$CONFIG_LT" <<_LTEOF
 
1576
#! $SHELL
 
1577
# Generated by $as_me.
 
1578
# Run this file to recreate a libtool stub with the current configuration.
 
1579
 
 
1580
lt_cl_silent=false
 
1581
SHELL=\${CONFIG_SHELL-$SHELL}
 
1582
_LTEOF
 
1583
 
 
1584
cat >>"$CONFIG_LT" <<\_LTEOF
 
1585
AS_SHELL_SANITIZE
 
1586
_AS_PREPARE
 
1587
 
 
1588
exec AS_MESSAGE_FD>&1
 
1589
exec AS_MESSAGE_LOG_FD>>config.log
 
1590
{
 
1591
  echo
 
1592
  AS_BOX([Running $as_me.])
 
1593
} >&AS_MESSAGE_LOG_FD
 
1594
 
 
1595
lt_cl_help="\
 
1596
\`$as_me' creates a local libtool stub from the current configuration,
 
1597
for use in further configure time tests before the real libtool is
 
1598
generated.
 
1599
 
 
1600
Usage: $[0] [[OPTIONS]]
 
1601
 
 
1602
  -h, --help      print this help, then exit
 
1603
  -V, --version   print version number, then exit
 
1604
  -q, --quiet     do not print progress messages
 
1605
  -d, --debug     don't remove temporary files
 
1606
 
 
1607
Report bugs to <bug-libtool@gnu.org>."
 
1608
 
 
1609
lt_cl_version="\
 
1610
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
 
1611
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
 
1612
configured by $[0], generated by m4_PACKAGE_STRING.
 
1613
 
 
1614
Copyright (C) 2008 Free Software Foundation, Inc.
 
1615
This config.lt script is free software; the Free Software Foundation
 
1616
gives unlimited permision to copy, distribute and modify it."
 
1617
 
 
1618
while test $[#] != 0
 
1619
do
 
1620
  case $[1] in
 
1621
    --version | --v* | -V )
 
1622
      echo "$lt_cl_version"; exit 0 ;;
 
1623
    --help | --h* | -h )
 
1624
      echo "$lt_cl_help"; exit 0 ;;
 
1625
    --debug | --d* | -d )
 
1626
      debug=: ;;
 
1627
    --quiet | --q* | --silent | --s* | -q )
 
1628
      lt_cl_silent=: ;;
 
1629
 
 
1630
    -*) AC_MSG_ERROR([unrecognized option: $[1]
 
1631
Try \`$[0] --help' for more information.]) ;;
 
1632
 
 
1633
    *) AC_MSG_ERROR([unrecognized argument: $[1]
 
1634
Try \`$[0] --help' for more information.]) ;;
 
1635
  esac
 
1636
  shift
 
1637
done
 
1638
 
 
1639
if $lt_cl_silent; then
 
1640
  exec AS_MESSAGE_FD>/dev/null
 
1641
fi
 
1642
_LTEOF
 
1643
 
 
1644
cat >>"$CONFIG_LT" <<_LTEOF
 
1645
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
 
1646
_LTEOF
 
1647
 
 
1648
cat >>"$CONFIG_LT" <<\_LTEOF
 
1649
AC_MSG_NOTICE([creating $ofile])
 
1650
_LT_OUTPUT_LIBTOOL_COMMANDS
 
1651
AS_EXIT(0)
 
1652
_LTEOF
 
1653
chmod +x "$CONFIG_LT"
 
1654
 
 
1655
# configure is writing to config.log, but config.lt does its own redirection,
 
1656
# appending to config.log, which fails on DOS, as config.log is still kept
 
1657
# open by configure.  Here we exec the FD to /dev/null, effectively closing
 
1658
# config.log, so it can be properly (re)opened and appended to by config.lt.
 
1659
if test "$no_create" != yes; then
 
1660
  lt_cl_success=:
 
1661
  test "$silent" = yes &&
 
1662
    lt_config_lt_args="$lt_config_lt_args --quiet"
 
1663
  exec AS_MESSAGE_LOG_FD>/dev/null
 
1664
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
1665
  exec AS_MESSAGE_LOG_FD>>config.log
 
1666
  $lt_cl_success || AS_EXIT(1)
 
1667
fi
 
1668
])# LT_OUTPUT
 
1669
 
 
1670
 
 
1671
# _LT_CONFIG(TAG)
 
1672
# ---------------
 
1673
# If TAG is the built-in tag, create an initial libtool script with a
 
1674
# default configuration from the untagged config vars.  Otherwise add code
 
1675
# to config.status for appending the configuration named by TAG from the
 
1676
# matching tagged config vars.
 
1677
m4_defun([_LT_CONFIG],
 
1678
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1679
_LT_CONFIG_SAVE_COMMANDS([
 
1680
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
 
1681
  m4_if(_LT_TAG, [C], [
 
1682
    # See if we are running on zsh, and set the options which allow our
 
1683
    # commands through without removal of \ escapes.
 
1684
    if test -n "${ZSH_VERSION+set}" ; then
 
1685
      setopt NO_GLOB_SUBST
 
1686
    fi
 
1687
 
 
1688
    cfgfile="${ofile}T"
 
1689
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
1690
    $RM "$cfgfile"
 
1691
 
 
1692
    cat <<_LT_EOF >> "$cfgfile"
 
1693
#! $SHELL
 
1694
 
 
1695
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
1696
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
1697
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
1698
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
1699
#
 
1700
_LT_COPYING
 
1701
_LT_LIBTOOL_TAGS
 
1702
 
 
1703
# ### BEGIN LIBTOOL CONFIG
 
1704
_LT_LIBTOOL_CONFIG_VARS
 
1705
_LT_LIBTOOL_TAG_VARS
 
1706
# ### END LIBTOOL CONFIG
 
1707
 
 
1708
_LT_EOF
 
1709
 
 
1710
  case $host_os in
 
1711
  aix3*)
 
1712
    cat <<\_LT_EOF >> "$cfgfile"
 
1713
# AIX sometimes has problems with the GCC collect2 program.  For some
 
1714
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
1715
# vanish in a puff of smoke.
 
1716
if test "X${COLLECT_NAMES+set}" != Xset; then
 
1717
  COLLECT_NAMES=
 
1718
  export COLLECT_NAMES
 
1719
fi
 
1720
_LT_EOF
 
1721
    ;;
 
1722
  esac
 
1723
 
 
1724
  _LT_PROG_LTMAIN
 
1725
 
 
1726
  # We use sed instead of cat because bash on DJGPP gets confused if
 
1727
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
1728
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
1729
  # is reportedly fixed, but why not run on old versions too?
 
1730
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
1731
    || (rm -f "$cfgfile"; exit 1)
 
1732
 
 
1733
  _LT_PROG_XSI_SHELLFNS
 
1734
 
 
1735
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
1736
    || (rm -f "$cfgfile"; exit 1)
 
1737
 
 
1738
  mv -f "$cfgfile" "$ofile" ||
 
1739
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
1740
  chmod +x "$ofile"
 
1741
],
 
1742
[cat <<_LT_EOF >> "$ofile"
 
1743
 
 
1744
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
 
1745
dnl in a comment (ie after a #).
 
1746
# ### BEGIN LIBTOOL TAG CONFIG: $1
 
1747
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
 
1748
# ### END LIBTOOL TAG CONFIG: $1
 
1749
_LT_EOF
 
1750
])dnl /m4_if
 
1751
],
 
1752
[m4_if([$1], [], [
 
1753
    PACKAGE='$PACKAGE'
 
1754
    VERSION='$VERSION'
 
1755
    TIMESTAMP='$TIMESTAMP'
 
1756
    RM='$RM'
 
1757
    ofile='$ofile'], [])
 
1758
])dnl /_LT_CONFIG_SAVE_COMMANDS
 
1759
])# _LT_CONFIG
 
1760
 
 
1761
 
 
1762
# LT_SUPPORTED_TAG(TAG)
 
1763
# ---------------------
 
1764
# Trace this macro to discover what tags are supported by the libtool
 
1765
# --tag option, using:
 
1766
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
 
1767
AC_DEFUN([LT_SUPPORTED_TAG], [])
 
1768
 
 
1769
 
 
1770
# C support is built-in for now
 
1771
m4_define([_LT_LANG_C_enabled], [])
 
1772
m4_define([_LT_TAGS], [])
 
1773
 
 
1774
 
 
1775
# LT_LANG(LANG)
 
1776
# -------------
 
1777
# Enable libtool support for the given language if not already enabled.
 
1778
AC_DEFUN([LT_LANG],
 
1779
[AC_BEFORE([$0], [LT_OUTPUT])dnl
 
1780
m4_case([$1],
 
1781
  [C],                  [_LT_LANG(C)],
 
1782
  [C++],                [_LT_LANG(CXX)],
 
1783
  [Java],               [_LT_LANG(GCJ)],
 
1784
  [Fortran 77],         [_LT_LANG(F77)],
 
1785
  [Fortran],            [_LT_LANG(FC)],
 
1786
  [Windows Resource],   [_LT_LANG(RC)],
 
1787
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
 
1788
    [_LT_LANG($1)],
 
1789
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
 
1790
])# LT_LANG
 
1791
 
 
1792
 
 
1793
# _LT_LANG(LANGNAME)
 
1794
# ------------------
 
1795
m4_defun([_LT_LANG],
 
1796
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
 
1797
  [LT_SUPPORTED_TAG([$1])dnl
 
1798
  m4_append([_LT_TAGS], [$1 ])dnl
 
1799
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
 
1800
  _LT_LANG_$1_CONFIG($1)])dnl
 
1801
])# _LT_LANG
 
1802
 
 
1803
 
 
1804
# _LT_LANG_DEFAULT_CONFIG
 
1805
# -----------------------
 
1806
m4_defun([_LT_LANG_DEFAULT_CONFIG],
 
1807
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
1808
  [LT_LANG(CXX)],
 
1809
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
 
1810
 
 
1811
AC_PROVIDE_IFELSE([AC_PROG_F77],
 
1812
  [LT_LANG(F77)],
 
1813
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
 
1814
 
 
1815
AC_PROVIDE_IFELSE([AC_PROG_FC],
 
1816
  [LT_LANG(FC)],
 
1817
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
 
1818
 
 
1819
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
 
1820
dnl pulling things in needlessly.
 
1821
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
1822
  [LT_LANG(GCJ)],
 
1823
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
1824
    [LT_LANG(GCJ)],
 
1825
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
 
1826
      [LT_LANG(GCJ)],
 
1827
      [m4_ifdef([AC_PROG_GCJ],
 
1828
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
 
1829
       m4_ifdef([A][M_PROG_GCJ],
 
1830
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
 
1831
       m4_ifdef([LT_PROG_GCJ],
 
1832
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
 
1833
 
 
1834
AC_PROVIDE_IFELSE([LT_PROG_RC],
 
1835
  [LT_LANG(RC)],
 
1836
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
 
1837
])# _LT_LANG_DEFAULT_CONFIG
 
1838
 
 
1839
# Obsolete macros:
 
1840
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
 
1841
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
 
1842
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
 
1843
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
1844
dnl aclocal-1.4 backwards compatibility:
 
1845
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
 
1846
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
 
1847
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
 
1848
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
1849
 
 
1850
 
 
1851
# _LT_TAG_COMPILER
 
1852
# ----------------
 
1853
m4_defun([_LT_TAG_COMPILER],
1135
1854
[AC_REQUIRE([AC_PROG_CC])dnl
1136
1855
 
 
1856
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
 
1857
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
 
1858
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
 
1859
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
 
1860
 
1137
1861
# If no C compiler was specified, use CC.
1138
1862
LTCC=${LTCC-"$CC"}
1139
1863
 
1142
1866
 
1143
1867
# Allow CC to be a program name with arguments.
1144
1868
compiler=$CC
1145
 
])# _LT_AC_SYS_COMPILER
1146
 
 
1147
 
 
1148
 
# _LT_CC_BASENAME(CC)
1149
 
# -------------------
1150
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
1151
 
AC_DEFUN([_LT_CC_BASENAME],
1152
 
[for cc_temp in $1""; do
1153
 
  case $cc_temp in
1154
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1155
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1156
 
    \-*) ;;
1157
 
    *) break;;
1158
 
  esac
1159
 
done
1160
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1161
 
])
 
1869
])# _LT_TAG_COMPILER
1162
1870
 
1163
1871
 
1164
1872
# _LT_COMPILER_BOILERPLATE
1165
1873
# ------------------------
1166
1874
# Check for compiler boilerplate output or warnings with
1167
1875
# the simple compiler test code.
1168
 
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1169
 
[ac_outfile=conftest.$ac_objext
1170
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
1876
m4_defun([_LT_COMPILER_BOILERPLATE],
 
1877
[m4_require([_LT_DECL_SED])dnl
 
1878
ac_outfile=conftest.$ac_objext
 
1879
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1171
1880
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1172
1881
_lt_compiler_boilerplate=`cat conftest.err`
1173
 
$rm conftest*
 
1882
$RM conftest*
1174
1883
])# _LT_COMPILER_BOILERPLATE
1175
1884
 
1176
1885
 
1178
1887
# ----------------------
1179
1888
# Check for linker boilerplate output or warnings with
1180
1889
# the simple link test code.
1181
 
AC_DEFUN([_LT_LINKER_BOILERPLATE],
1182
 
[ac_outfile=conftest.$ac_objext
1183
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
1890
m4_defun([_LT_LINKER_BOILERPLATE],
 
1891
[m4_require([_LT_DECL_SED])dnl
 
1892
ac_outfile=conftest.$ac_objext
 
1893
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1184
1894
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1185
1895
_lt_linker_boilerplate=`cat conftest.err`
1186
 
$rm conftest*
 
1896
$RM -r conftest*
1187
1897
])# _LT_LINKER_BOILERPLATE
1188
1898
 
1189
 
 
1190
 
# _LT_AC_SYS_LIBPATH_AIX
1191
 
# ----------------------
 
1899
# _LT_REQUIRED_DARWIN_CHECKS
 
1900
# -------------------------
 
1901
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
 
1902
  case $host_os in
 
1903
    rhapsody* | darwin*)
 
1904
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
1905
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
1906
    AC_CHECK_TOOL([LIPO], [lipo], [:])
 
1907
    AC_CHECK_TOOL([OTOOL], [otool], [:])
 
1908
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 
1909
    _LT_DECL([], [DSYMUTIL], [1],
 
1910
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 
1911
    _LT_DECL([], [NMEDIT], [1],
 
1912
      [Tool to change global to local symbols on Mac OS X])
 
1913
    _LT_DECL([], [LIPO], [1],
 
1914
      [Tool to manipulate fat objects and archives on Mac OS X])
 
1915
    _LT_DECL([], [OTOOL], [1],
 
1916
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 
1917
    _LT_DECL([], [OTOOL64], [1],
 
1918
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
 
1919
 
 
1920
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
1921
      [lt_cv_apple_cc_single_mod=no
 
1922
      if test -z "${LT_MULTI_MODULE}"; then
 
1923
        # By default we will add the -single_module flag. You can override
 
1924
        # by either setting the environment variable LT_MULTI_MODULE
 
1925
        # non-empty at configure time, or by adding -multi_module to the
 
1926
        # link flags.
 
1927
        rm -rf libconftest.dylib*
 
1928
        echo "int foo(void){return 1;}" > conftest.c
 
1929
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1930
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 
1931
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1932
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
1933
        _lt_result=$?
 
1934
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
1935
          lt_cv_apple_cc_single_mod=yes
 
1936
        else
 
1937
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
1938
        fi
 
1939
        rm -rf libconftest.dylib*
 
1940
        rm -f conftest.*
 
1941
      fi])
 
1942
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
1943
      [lt_cv_ld_exported_symbols_list],
 
1944
      [lt_cv_ld_exported_symbols_list=no
 
1945
      save_LDFLAGS=$LDFLAGS
 
1946
      echo "_main" > conftest.sym
 
1947
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
1948
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
1949
        [lt_cv_ld_exported_symbols_list=yes],
 
1950
        [lt_cv_ld_exported_symbols_list=no])
 
1951
        LDFLAGS="$save_LDFLAGS"
 
1952
    ])
 
1953
    case $host_os in
 
1954
    rhapsody* | darwin1.[[012]])
 
1955
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
1956
    darwin1.*)
 
1957
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1958
    darwin*) # darwin 5.x on
 
1959
      # if running on 10.5 or later, the deployment target defaults
 
1960
      # to the OS version, if on x86, and 10.4, the deployment
 
1961
      # target defaults to 10.4. Don't you love it?
 
1962
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
1963
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
1964
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1965
        10.[[012]]*)
 
1966
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1967
        10.*)
 
1968
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1969
      esac
 
1970
    ;;
 
1971
  esac
 
1972
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
1973
      _lt_dar_single_mod='$single_module'
 
1974
    fi
 
1975
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
1976
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
1977
    else
 
1978
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
1979
    fi
 
1980
    if test "$DSYMUTIL" != ":"; then
 
1981
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
1982
    else
 
1983
      _lt_dsymutil=
 
1984
    fi
 
1985
    ;;
 
1986
  esac
 
1987
])
 
1988
 
 
1989
 
 
1990
# _LT_DARWIN_LINKER_FEATURES
 
1991
# --------------------------
 
1992
# Checks for linker and compiler features on darwin
 
1993
m4_defun([_LT_DARWIN_LINKER_FEATURES],
 
1994
[
 
1995
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 
1996
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
1997
  _LT_TAGVAR(hardcode_direct, $1)=no
 
1998
  _LT_TAGVAR(hardcode_automatic, $1)=yes
 
1999
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
2000
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
2001
  _LT_TAGVAR(link_all_deplibs, $1)=yes
 
2002
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
2003
  case $cc_basename in
 
2004
     ifort*) _lt_dar_can_shared=yes ;;
 
2005
     *) _lt_dar_can_shared=$GCC ;;
 
2006
  esac
 
2007
  if test "$_lt_dar_can_shared" = "yes"; then
 
2008
    output_verbose_link_cmd=echo
 
2009
    _LT_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}"
 
2010
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
2011
    _LT_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}"
 
2012
    _LT_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}"
 
2013
    m4_if([$1], [CXX],
 
2014
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
2015
      _LT_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}"
 
2016
      _LT_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}"
 
2017
    fi
 
2018
],[])
 
2019
  else
 
2020
  _LT_TAGVAR(ld_shlibs, $1)=no
 
2021
  fi
 
2022
])
 
2023
 
 
2024
# _LT_SYS_MODULE_PATH_AIX
 
2025
# -----------------------
1192
2026
# Links a minimal program and checks the executable
1193
2027
# for the system default hardcoded library path. In most cases,
1194
2028
# this is /usr/lib:/lib, but when the MPI compilers are used
1195
2029
# the location of the communication and MPI libs are included too.
1196
2030
# If we don't find anything, use the default library path according
1197
2031
# to the aix ld manual.
1198
 
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1199
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1200
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
1201
 
}'`
 
2032
m4_defun([_LT_SYS_MODULE_PATH_AIX],
 
2033
[m4_require([_LT_DECL_SED])dnl
 
2034
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
2035
lt_aix_libpath_sed='
 
2036
    /Import File Strings/,/^$/ {
 
2037
        /^0/ {
 
2038
            s/^0  *\(.*\)$/\1/
 
2039
            p
 
2040
        }
 
2041
    }'
 
2042
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1202
2043
# Check for a 64-bit object if we didn't find anything.
1203
 
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; }
1204
 
}'`; fi],[])
 
2044
if test -z "$aix_libpath"; then
 
2045
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
2046
fi],[])
1205
2047
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1206
 
])# _LT_AC_SYS_LIBPATH_AIX
1207
 
 
1208
 
 
1209
 
# _LT_AC_SHELL_INIT(ARG)
1210
 
# ----------------------
1211
 
AC_DEFUN([_LT_AC_SHELL_INIT],
 
2048
])# _LT_SYS_MODULE_PATH_AIX
 
2049
 
 
2050
 
 
2051
# _LT_SHELL_INIT(ARG)
 
2052
# -------------------
 
2053
m4_define([_LT_SHELL_INIT],
1212
2054
[ifdef([AC_DIVERSION_NOTICE],
1213
2055
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1214
2056
         [AC_DIVERT_PUSH(NOTICE)])
1215
2057
$1
1216
2058
AC_DIVERT_POP
1217
 
])# _LT_AC_SHELL_INIT
1218
 
 
1219
 
 
1220
 
# _LT_AC_PROG_ECHO_BACKSLASH
1221
 
# --------------------------
 
2059
])# _LT_SHELL_INIT
 
2060
 
 
2061
 
 
2062
# _LT_PROG_ECHO_BACKSLASH
 
2063
# -----------------------
1222
2064
# Add some code to the start of the generated configure script which
1223
2065
# will find an echo command which doesn't interpret backslashes.
1224
 
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1225
 
[_LT_AC_SHELL_INIT([
 
2066
m4_defun([_LT_PROG_ECHO_BACKSLASH],
 
2067
[_LT_SHELL_INIT([
1226
2068
# Check that we are running under the correct shell.
1227
2069
SHELL=${CONFIG_SHELL-/bin/sh}
1228
2070
 
1229
 
case X$ECHO in
 
2071
case X$lt_ECHO in
1230
2072
X*--fallback-echo)
1231
2073
  # Remove one level of quotation (which was required for Make).
1232
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
2074
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1233
2075
  ;;
1234
2076
esac
1235
2077
 
1236
 
echo=${ECHO-echo}
 
2078
ECHO=${lt_ECHO-echo}
1237
2079
if test "X[$]1" = X--no-reexec; then
1238
2080
  # Discard the --no-reexec flag, and continue.
1239
2081
  shift
1240
2082
elif test "X[$]1" = X--fallback-echo; then
1241
2083
  # Avoid inline document here, it may be left over
1242
2084
  :
1243
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1244
 
  # Yippee, $echo works!
 
2085
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
2086
  # Yippee, $ECHO works!
1245
2087
  :
1246
2088
else
1247
2089
  # Restart under the correct shell.
1251
2093
if test "X[$]1" = X--fallback-echo; then
1252
2094
  # used as fallback echo
1253
2095
  shift
1254
 
  cat <<EOF
 
2096
  cat <<_LT_EOF
1255
2097
[$]*
1256
 
EOF
 
2098
_LT_EOF
1257
2099
  exit 0
1258
2100
fi
1259
2101
 
1261
2103
# if CDPATH is set.
1262
2104
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1263
2105
 
1264
 
if test -z "$ECHO"; then
1265
 
if test "X${echo_test_string+set}" != Xset; then
1266
 
# find a string as large as possible, as long as the shell can cope with it
1267
 
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1268
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1269
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1270
 
       echo_test_string=`eval $cmd` &&
1271
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1272
 
    then
1273
 
      break
1274
 
    fi
1275
 
  done
1276
 
fi
1277
 
 
1278
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1279
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1280
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
1281
 
  :
1282
 
else
1283
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
1284
 
  # backslashes.  This makes it impossible to quote backslashes using
1285
 
  #   echo "$something" | sed 's/\\/\\\\/g'
1286
 
  #
1287
 
  # So, first we look for a working echo in the user's PATH.
1288
 
 
1289
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1290
 
  for dir in $PATH /usr/ucb; do
 
2106
if test -z "$lt_ECHO"; then
 
2107
  if test "X${echo_test_string+set}" != Xset; then
 
2108
    # find a string as large as possible, as long as the shell can cope with it
 
2109
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
2110
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
2111
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
2112
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
2113
      then
 
2114
        break
 
2115
      fi
 
2116
    done
 
2117
  fi
 
2118
 
 
2119
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
2120
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
2121
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
2122
    :
 
2123
  else
 
2124
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
2125
    # backslashes.  This makes it impossible to quote backslashes using
 
2126
    #   echo "$something" | sed 's/\\/\\\\/g'
 
2127
    #
 
2128
    # So, first we look for a working echo in the user's PATH.
 
2129
 
 
2130
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2131
    for dir in $PATH /usr/ucb; do
 
2132
      IFS="$lt_save_ifs"
 
2133
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
2134
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
2135
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
2136
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
2137
        ECHO="$dir/echo"
 
2138
        break
 
2139
      fi
 
2140
    done
1291
2141
    IFS="$lt_save_ifs"
1292
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1293
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1294
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1295
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
1296
 
      echo="$dir/echo"
1297
 
      break
1298
 
    fi
1299
 
  done
1300
 
  IFS="$lt_save_ifs"
1301
2142
 
1302
 
  if test "X$echo" = Xecho; then
1303
 
    # We didn't find a better echo, so look for alternatives.
1304
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1305
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1306
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
1307
 
      # This shell has a builtin print -r that does the trick.
1308
 
      echo='print -r'
1309
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1310
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
1311
 
      # If we have ksh, try running configure again with it.
1312
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1313
 
      export ORIGINAL_CONFIG_SHELL
1314
 
      CONFIG_SHELL=/bin/ksh
1315
 
      export CONFIG_SHELL
1316
 
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1317
 
    else
1318
 
      # Try using printf.
1319
 
      echo='printf %s\n'
1320
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1321
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1322
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1323
 
        # Cool, printf works
1324
 
        :
1325
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1326
 
           test "X$echo_testing_string" = 'X\t' &&
1327
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1328
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1329
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1330
 
        export CONFIG_SHELL
1331
 
        SHELL="$CONFIG_SHELL"
1332
 
        export SHELL
1333
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
1334
 
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1335
 
           test "X$echo_testing_string" = 'X\t' &&
1336
 
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1337
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1338
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
2143
    if test "X$ECHO" = Xecho; then
 
2144
      # We didn't find a better echo, so look for alternatives.
 
2145
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
2146
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
2147
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
2148
        # This shell has a builtin print -r that does the trick.
 
2149
        ECHO='print -r'
 
2150
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
2151
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
2152
        # If we have ksh, try running configure again with it.
 
2153
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
2154
        export ORIGINAL_CONFIG_SHELL
 
2155
        CONFIG_SHELL=/bin/ksh
 
2156
        export CONFIG_SHELL
 
2157
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1339
2158
      else
1340
 
        # maybe with a smaller string...
1341
 
        prev=:
1342
 
 
1343
 
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1344
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1345
 
          then
1346
 
            break
 
2159
        # Try using printf.
 
2160
        ECHO='printf %s\n'
 
2161
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
2162
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
2163
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
2164
          # Cool, printf works
 
2165
          :
 
2166
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2167
             test "X$echo_testing_string" = 'X\t' &&
 
2168
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2169
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2170
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
2171
          export CONFIG_SHELL
 
2172
          SHELL="$CONFIG_SHELL"
 
2173
          export SHELL
 
2174
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2175
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2176
             test "X$echo_testing_string" = 'X\t' &&
 
2177
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2178
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2179
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2180
        else
 
2181
          # maybe with a smaller string...
 
2182
          prev=:
 
2183
 
 
2184
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
2185
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
2186
            then
 
2187
              break
 
2188
            fi
 
2189
            prev="$cmd"
 
2190
          done
 
2191
 
 
2192
          if test "$prev" != 'sed 50q "[$]0"'; then
 
2193
            echo_test_string=`eval $prev`
 
2194
            export echo_test_string
 
2195
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
2196
          else
 
2197
            # Oops.  We lost completely, so just stick with echo.
 
2198
            ECHO=echo
1347
2199
          fi
1348
 
          prev="$cmd"
1349
 
        done
1350
 
 
1351
 
        if test "$prev" != 'sed 50q "[$]0"'; then
1352
 
          echo_test_string=`eval $prev`
1353
 
          export echo_test_string
1354
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1355
 
        else
1356
 
          # Oops.  We lost completely, so just stick with echo.
1357
 
          echo=echo
1358
 
        fi
 
2200
        fi
1359
2201
      fi
1360
2202
    fi
1361
2203
  fi
1362
2204
fi
1363
 
fi
1364
2205
 
1365
2206
# Copy echo and quote the copy suitably for passing to libtool from
1366
2207
# the Makefile, instead of quoting the original, which is used later.
1367
 
ECHO=$echo
1368
 
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1369
 
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
2208
lt_ECHO=$ECHO
 
2209
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
2210
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1370
2211
fi
1371
2212
 
1372
 
AC_SUBST(ECHO)
1373
 
])])# _LT_AC_PROG_ECHO_BACKSLASH
1374
 
 
1375
 
 
1376
 
# _LT_AC_LOCK
1377
 
# -----------
1378
 
AC_DEFUN([_LT_AC_LOCK],
 
2213
AC_SUBST(lt_ECHO)
 
2214
])
 
2215
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 
2216
_LT_DECL([], [ECHO], [1],
 
2217
    [An echo program that does not interpret backslashes])
 
2218
])# _LT_PROG_ECHO_BACKSLASH
 
2219
 
 
2220
 
 
2221
# _LT_ENABLE_LOCK
 
2222
# ---------------
 
2223
m4_defun([_LT_ENABLE_LOCK],
1379
2224
[AC_ARG_ENABLE([libtool-lock],
1380
 
    [AC_HELP_STRING([--disable-libtool-lock],
1381
 
        [avoid locking (might break parallel builds)])])
 
2225
  [AS_HELP_STRING([--disable-libtool-lock],
 
2226
    [avoid locking (might break parallel builds)])])
1382
2227
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1383
2228
 
1384
2229
# Some flags need to be propagated to the compiler or linker for good
1389
2234
  echo 'int i;' > conftest.$ac_ext
1390
2235
  if AC_TRY_EVAL(ac_compile); then
1391
2236
    case `/usr/bin/file conftest.$ac_objext` in
1392
 
    *ELF-32*)
1393
 
      HPUX_IA64_MODE="32"
1394
 
      ;;
1395
 
    *ELF-64*)
1396
 
      HPUX_IA64_MODE="64"
1397
 
      ;;
 
2237
      *ELF-32*)
 
2238
        HPUX_IA64_MODE="32"
 
2239
        ;;
 
2240
      *ELF-64*)
 
2241
        HPUX_IA64_MODE="64"
 
2242
        ;;
1398
2243
    esac
1399
2244
  fi
1400
2245
  rm -rf conftest*
1403
2248
  # Find out which ABI we are using.
1404
2249
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1405
2250
  if AC_TRY_EVAL(ac_compile); then
1406
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
1407
 
    case `/usr/bin/file conftest.$ac_objext` in
1408
 
    *32-bit*)
1409
 
      LD="${LD-ld} -melf32bsmip"
1410
 
      ;;
1411
 
    *N32*)
1412
 
      LD="${LD-ld} -melf32bmipn32"
1413
 
      ;;
1414
 
    *64-bit*)
1415
 
      LD="${LD-ld} -melf64bmip"
1416
 
      ;;
1417
 
    esac
1418
 
   else
1419
 
    case `/usr/bin/file conftest.$ac_objext` in
1420
 
    *32-bit*)
1421
 
      LD="${LD-ld} -32"
1422
 
      ;;
1423
 
    *N32*)
1424
 
      LD="${LD-ld} -n32"
1425
 
      ;;
1426
 
    *64-bit*)
1427
 
      LD="${LD-ld} -64"
1428
 
      ;;
1429
 
    esac
1430
 
   fi
 
2251
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
2252
      case `/usr/bin/file conftest.$ac_objext` in
 
2253
        *32-bit*)
 
2254
          LD="${LD-ld} -melf32bsmip"
 
2255
          ;;
 
2256
        *N32*)
 
2257
          LD="${LD-ld} -melf32bmipn32"
 
2258
          ;;
 
2259
        *64-bit*)
 
2260
          LD="${LD-ld} -melf64bmip"
 
2261
        ;;
 
2262
      esac
 
2263
    else
 
2264
      case `/usr/bin/file conftest.$ac_objext` in
 
2265
        *32-bit*)
 
2266
          LD="${LD-ld} -32"
 
2267
          ;;
 
2268
        *N32*)
 
2269
          LD="${LD-ld} -n32"
 
2270
          ;;
 
2271
        *64-bit*)
 
2272
          LD="${LD-ld} -64"
 
2273
          ;;
 
2274
      esac
 
2275
    fi
1431
2276
  fi
1432
2277
  rm -rf conftest*
1433
2278
  ;;
1434
2279
 
1435
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
2280
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
2281
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1436
2282
  # Find out which ABI we are using.
1437
2283
  echo 'int i;' > conftest.$ac_ext
1438
2284
  if AC_TRY_EVAL(ac_compile); then
1439
2285
    case `/usr/bin/file conftest.o` in
1440
 
    *32-bit*)
1441
 
      case $host in
1442
 
        x86_64-*linux*)
1443
 
          LD="${LD-ld} -m elf_i386"
1444
 
          ;;
1445
 
        ppc64-*linux*|powerpc64-*linux*)
1446
 
          LD="${LD-ld} -m elf32ppclinux"
1447
 
          ;;
1448
 
        s390x-*linux*)
1449
 
          LD="${LD-ld} -m elf_s390"
1450
 
          ;;
1451
 
        sparc64-*linux*)
1452
 
          LD="${LD-ld} -m elf32_sparc"
1453
 
          ;;
1454
 
      esac
1455
 
      ;;
1456
 
    *64-bit*)
1457
 
      case $host in
1458
 
        x86_64-*linux*)
1459
 
          LD="${LD-ld} -m elf_x86_64"
1460
 
          ;;
1461
 
        ppc*-*linux*|powerpc*-*linux*)
1462
 
          LD="${LD-ld} -m elf64ppc"
1463
 
          ;;
1464
 
        s390*-*linux*)
1465
 
          LD="${LD-ld} -m elf64_s390"
1466
 
          ;;
1467
 
        sparc*-*linux*)
1468
 
          LD="${LD-ld} -m elf64_sparc"
1469
 
          ;;
1470
 
      esac
1471
 
      ;;
 
2286
      *32-bit*)
 
2287
        case $host in
 
2288
          x86_64-*kfreebsd*-gnu)
 
2289
            LD="${LD-ld} -m elf_i386_fbsd"
 
2290
            ;;
 
2291
          x86_64-*linux*)
 
2292
            LD="${LD-ld} -m elf_i386"
 
2293
            ;;
 
2294
          ppc64-*linux*|powerpc64-*linux*)
 
2295
            LD="${LD-ld} -m elf32ppclinux"
 
2296
            ;;
 
2297
          s390x-*linux*)
 
2298
            LD="${LD-ld} -m elf_s390"
 
2299
            ;;
 
2300
          sparc64-*linux*)
 
2301
            LD="${LD-ld} -m elf32_sparc"
 
2302
            ;;
 
2303
        esac
 
2304
        ;;
 
2305
      *64-bit*)
 
2306
        case $host in
 
2307
          x86_64-*kfreebsd*-gnu)
 
2308
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
2309
            ;;
 
2310
          x86_64-*linux*)
 
2311
            LD="${LD-ld} -m elf_x86_64"
 
2312
            ;;
 
2313
          ppc*-*linux*|powerpc*-*linux*)
 
2314
            LD="${LD-ld} -m elf64ppc"
 
2315
            ;;
 
2316
          s390*-*linux*|s390*-*tpf*)
 
2317
            LD="${LD-ld} -m elf64_s390"
 
2318
            ;;
 
2319
          sparc*-*linux*)
 
2320
            LD="${LD-ld} -m elf64_sparc"
 
2321
            ;;
 
2322
        esac
 
2323
        ;;
1472
2324
    esac
1473
2325
  fi
1474
2326
  rm -rf conftest*
1480
2332
  CFLAGS="$CFLAGS -belf"
1481
2333
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1482
2334
    [AC_LANG_PUSH(C)
1483
 
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
2335
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1484
2336
     AC_LANG_POP])
1485
2337
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1486
2338
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1495
2347
    *64-bit*)
1496
2348
      case $lt_cv_prog_gnu_ld in
1497
2349
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1498
 
      *)    LD="${LD-ld} -64" ;;
 
2350
      *)
 
2351
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
2352
          LD="${LD-ld} -64"
 
2353
        fi
 
2354
        ;;
1499
2355
      esac
1500
2356
      ;;
1501
2357
    esac
1502
2358
  fi
1503
2359
  rm -rf conftest*
1504
2360
  ;;
1505
 
 
1506
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1507
 
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1508
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1509
 
  AC_CHECK_TOOL(AS, as, false)
1510
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
1511
 
  ;;
1512
 
  ])
1513
2361
esac
1514
2362
 
1515
2363
need_locks="$enable_libtool_lock"
1516
 
 
1517
 
])# _LT_AC_LOCK
1518
 
 
1519
 
 
1520
 
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2364
])# _LT_ENABLE_LOCK
 
2365
 
 
2366
 
 
2367
# _LT_CMD_OLD_ARCHIVE
 
2368
# -------------------
 
2369
m4_defun([_LT_CMD_OLD_ARCHIVE],
 
2370
[AC_CHECK_TOOL(AR, ar, false)
 
2371
test -z "$AR" && AR=ar
 
2372
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
2373
_LT_DECL([], [AR], [1], [The archiver])
 
2374
_LT_DECL([], [AR_FLAGS], [1])
 
2375
 
 
2376
AC_CHECK_TOOL(STRIP, strip, :)
 
2377
test -z "$STRIP" && STRIP=:
 
2378
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
 
2379
 
 
2380
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
2381
test -z "$RANLIB" && RANLIB=:
 
2382
_LT_DECL([], [RANLIB], [1],
 
2383
    [Commands used to install an old-style archive])
 
2384
 
 
2385
# Determine commands to create old-style static archives.
 
2386
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
2387
old_postinstall_cmds='chmod 644 $oldlib'
 
2388
old_postuninstall_cmds=
 
2389
 
 
2390
if test -n "$RANLIB"; then
 
2391
  case $host_os in
 
2392
  openbsd*)
 
2393
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
2394
    ;;
 
2395
  *)
 
2396
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
2397
    ;;
 
2398
  esac
 
2399
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
2400
fi
 
2401
_LT_DECL([], [old_postinstall_cmds], [2])
 
2402
_LT_DECL([], [old_postuninstall_cmds], [2])
 
2403
_LT_TAGDECL([], [old_archive_cmds], [2],
 
2404
    [Commands used to build an old-style archive])
 
2405
])# _LT_CMD_OLD_ARCHIVE
 
2406
 
 
2407
 
 
2408
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1521
2409
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1522
2410
# ----------------------------------------------------------------
1523
2411
# Check whether the given compiler option works
1524
 
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1525
 
[AC_REQUIRE([LT_AC_PROG_SED])
 
2412
AC_DEFUN([_LT_COMPILER_OPTION],
 
2413
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2414
m4_require([_LT_DECL_SED])dnl
1526
2415
AC_CACHE_CHECK([$1], [$2],
1527
2416
  [$2=no
1528
 
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1529
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
2417
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
2418
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1530
2419
   lt_compiler_flag="$3"
1531
2420
   # Insert the option either (1) after the last *FLAGS variable, or
1532
2421
   # (2) before a word containing "conftest.", or (3) at the end.
1545
2434
   if (exit $ac_status) && test -s "$ac_outfile"; then
1546
2435
     # The compiler can only warn and ignore the option if not recognized
1547
2436
     # So say no if there are warnings other than the usual output.
1548
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
2437
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1549
2438
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1550
2439
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1551
2440
       $2=yes
1552
2441
     fi
1553
2442
   fi
1554
 
   $rm conftest*
 
2443
   $RM conftest*
1555
2444
])
1556
2445
 
1557
2446
if test x"[$]$2" = xyes; then
1558
 
    ifelse([$5], , :, [$5])
 
2447
    m4_if([$5], , :, [$5])
1559
2448
else
1560
 
    ifelse([$6], , :, [$6])
 
2449
    m4_if([$6], , :, [$6])
1561
2450
fi
1562
 
])# AC_LIBTOOL_COMPILER_OPTION
1563
 
 
1564
 
 
1565
 
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1566
 
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
1567
 
# ------------------------------------------------------------
1568
 
# Check whether the given compiler option works
1569
 
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1570
 
[AC_CACHE_CHECK([$1], [$2],
 
2451
])# _LT_COMPILER_OPTION
 
2452
 
 
2453
# Old name:
 
2454
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 
2455
dnl aclocal-1.4 backwards compatibility:
 
2456
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 
2457
 
 
2458
 
 
2459
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2460
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
 
2461
# ----------------------------------------------------
 
2462
# Check whether the given linker option works
 
2463
AC_DEFUN([_LT_LINKER_OPTION],
 
2464
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2465
m4_require([_LT_DECL_SED])dnl
 
2466
AC_CACHE_CHECK([$1], [$2],
1571
2467
  [$2=no
1572
2468
   save_LDFLAGS="$LDFLAGS"
1573
2469
   LDFLAGS="$LDFLAGS $3"
1574
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
2470
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1575
2471
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1576
2472
     # The linker can only warn and ignore the option if not recognized
1577
2473
     # So say no if there are warnings
1578
2474
     if test -s conftest.err; then
1579
2475
       # Append any errors to the config.log.
1580
2476
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1581
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
2477
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1582
2478
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1583
2479
       if diff conftest.exp conftest.er2 >/dev/null; then
1584
2480
         $2=yes
1587
2483
       $2=yes
1588
2484
     fi
1589
2485
   fi
1590
 
   $rm conftest*
 
2486
   $RM -r conftest*
1591
2487
   LDFLAGS="$save_LDFLAGS"
1592
2488
])
1593
2489
 
1594
2490
if test x"[$]$2" = xyes; then
1595
 
    ifelse([$4], , :, [$4])
 
2491
    m4_if([$4], , :, [$4])
1596
2492
else
1597
 
    ifelse([$5], , :, [$5])
 
2493
    m4_if([$5], , :, [$5])
1598
2494
fi
1599
 
])# AC_LIBTOOL_LINKER_OPTION
1600
 
 
1601
 
 
1602
 
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1603
 
# --------------------------
1604
 
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1605
 
[# find the maximum length of command line arguments
 
2495
])# _LT_LINKER_OPTION
 
2496
 
 
2497
# Old name:
 
2498
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 
2499
dnl aclocal-1.4 backwards compatibility:
 
2500
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 
2501
 
 
2502
 
 
2503
# LT_CMD_MAX_LEN
 
2504
#---------------
 
2505
AC_DEFUN([LT_CMD_MAX_LEN],
 
2506
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2507
# find the maximum length of command line arguments
1606
2508
AC_MSG_CHECKING([the maximum length of command line arguments])
1607
2509
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1608
2510
  i=0
1624
2526
    lt_cv_sys_max_cmd_len=-1;
1625
2527
    ;;
1626
2528
 
1627
 
  cygwin* | mingw*)
 
2529
  cygwin* | mingw* | cegcc*)
1628
2530
    # On Win9x/ME, this test blows up -- it succeeds, but takes
1629
2531
    # about 5 minutes as the teststring grows exponentially.
1630
2532
    # Worse, since 9x/ME are not pre-emptively multitasking,
1679
2581
  sysv5* | sco5v6* | sysv4.2uw2*)
1680
2582
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1681
2583
    if test -n "$kargmax"; then
1682
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
2584
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
1683
2585
    else
1684
2586
      lt_cv_sys_max_cmd_len=32768
1685
2587
    fi
1686
2588
    ;;
1687
2589
  *)
1688
 
    # If test is not a shell built-in, we'll probably end up computing a
1689
 
    # maximum length that is only half of the actual maximum length, but
1690
 
    # we can't tell.
1691
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1692
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1693
 
               = "XX$teststring") >/dev/null 2>&1 &&
1694
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
1695
 
            lt_cv_sys_max_cmd_len=$new_result &&
1696
 
            test $i != 17 # 1/2 MB should be enough
1697
 
    do
1698
 
      i=`expr $i + 1`
1699
 
      teststring=$teststring$teststring
1700
 
    done
1701
 
    teststring=
1702
 
    # Add a significant safety factor because C++ compilers can tack on massive
1703
 
    # amounts of additional arguments before passing them to the linker.
1704
 
    # It appears as though 1/2 is a usable value.
1705
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
2590
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
2591
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
2592
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
2593
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
2594
    else
 
2595
      # Make teststring a little bigger before we do anything with it.
 
2596
      # a 1K string should be a reasonable start.
 
2597
      for i in 1 2 3 4 5 6 7 8 ; do
 
2598
        teststring=$teststring$teststring
 
2599
      done
 
2600
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
2601
      # If test is not a shell built-in, we'll probably end up computing a
 
2602
      # maximum length that is only half of the actual maximum length, but
 
2603
      # we can't tell.
 
2604
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
2605
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
2606
              test $i != 17 # 1/2 MB should be enough
 
2607
      do
 
2608
        i=`expr $i + 1`
 
2609
        teststring=$teststring$teststring
 
2610
      done
 
2611
      # Only check the string length outside the loop.
 
2612
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
2613
      teststring=
 
2614
      # Add a significant safety factor because C++ compilers can tack on
 
2615
      # massive amounts of additional arguments before passing them to the
 
2616
      # linker.  It appears as though 1/2 is a usable value.
 
2617
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
2618
    fi
1706
2619
    ;;
1707
2620
  esac
1708
2621
])
1711
2624
else
1712
2625
  AC_MSG_RESULT(none)
1713
2626
fi
1714
 
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1715
 
 
1716
 
 
1717
 
# _LT_AC_CHECK_DLFCN
1718
 
# ------------------
1719
 
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1720
 
[AC_CHECK_HEADERS(dlfcn.h)dnl
1721
 
])# _LT_AC_CHECK_DLFCN
1722
 
 
1723
 
 
1724
 
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1725
 
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1726
 
# ---------------------------------------------------------------------
1727
 
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1728
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
2627
max_cmd_len=$lt_cv_sys_max_cmd_len
 
2628
_LT_DECL([], [max_cmd_len], [0],
 
2629
    [What is the maximum length of a command?])
 
2630
])# LT_CMD_MAX_LEN
 
2631
 
 
2632
# Old name:
 
2633
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 
2634
dnl aclocal-1.4 backwards compatibility:
 
2635
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 
2636
 
 
2637
 
 
2638
# _LT_HEADER_DLFCN
 
2639
# ----------------
 
2640
m4_defun([_LT_HEADER_DLFCN],
 
2641
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 
2642
])# _LT_HEADER_DLFCN
 
2643
 
 
2644
 
 
2645
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
2646
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
2647
# ----------------------------------------------------------------
 
2648
m4_defun([_LT_TRY_DLOPEN_SELF],
 
2649
[m4_require([_LT_HEADER_DLFCN])dnl
1729
2650
if test "$cross_compiling" = yes; then :
1730
2651
  [$4]
1731
2652
else
1732
2653
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1733
2654
  lt_status=$lt_dlunknown
1734
 
  cat > conftest.$ac_ext <<EOF
 
2655
  cat > conftest.$ac_ext <<_LT_EOF
1735
2656
[#line __oline__ "configure"
1736
2657
#include "confdefs.h"
1737
2658
 
1773
2694
#  endif
1774
2695
#endif
1775
2696
 
1776
 
#ifdef __cplusplus
1777
 
extern "C" void exit (int);
1778
 
#endif
1779
 
 
1780
2697
void fnord() { int i=42;}
1781
2698
int main ()
1782
2699
{
1792
2709
  else
1793
2710
    puts (dlerror ());
1794
2711
 
1795
 
    exit (status);
 
2712
  return status;
1796
2713
}]
1797
 
EOF
 
2714
_LT_EOF
1798
2715
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1799
2716
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1800
2717
    lt_status=$?
1809
2726
  fi
1810
2727
fi
1811
2728
rm -fr conftest*
1812
 
])# _LT_AC_TRY_DLOPEN_SELF
1813
 
 
1814
 
 
1815
 
# AC_LIBTOOL_DLOPEN_SELF
1816
 
# ----------------------
1817
 
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1818
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
2729
])# _LT_TRY_DLOPEN_SELF
 
2730
 
 
2731
 
 
2732
# LT_SYS_DLOPEN_SELF
 
2733
# ------------------
 
2734
AC_DEFUN([LT_SYS_DLOPEN_SELF],
 
2735
[m4_require([_LT_HEADER_DLFCN])dnl
1819
2736
if test "x$enable_dlopen" != xyes; then
1820
2737
  enable_dlopen=unknown
1821
2738
  enable_dlopen_self=unknown
1831
2748
    lt_cv_dlopen_self=yes
1832
2749
    ;;
1833
2750
 
1834
 
  mingw* | pw32*)
 
2751
  mingw* | pw32* | cegcc*)
1835
2752
    lt_cv_dlopen="LoadLibrary"
1836
2753
    lt_cv_dlopen_libs=
1837
 
   ;;
 
2754
    ;;
1838
2755
 
1839
2756
  cygwin*)
1840
2757
    lt_cv_dlopen="dlopen"
1841
2758
    lt_cv_dlopen_libs=
1842
 
   ;;
 
2759
    ;;
1843
2760
 
1844
2761
  darwin*)
1845
2762
  # if libdl is installed we need to link against it
1849
2766
    lt_cv_dlopen_libs=
1850
2767
    lt_cv_dlopen_self=yes
1851
2768
    ])
1852
 
   ;;
 
2769
    ;;
1853
2770
 
1854
2771
  *)
1855
2772
    AC_CHECK_FUNC([shl_load],
1856
2773
          [lt_cv_dlopen="shl_load"],
1857
2774
      [AC_CHECK_LIB([dld], [shl_load],
1858
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
2775
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1859
2776
        [AC_CHECK_FUNC([dlopen],
1860
2777
              [lt_cv_dlopen="dlopen"],
1861
2778
          [AC_CHECK_LIB([dl], [dlopen],
1863
2780
            [AC_CHECK_LIB([svld], [dlopen],
1864
2781
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1865
2782
              [AC_CHECK_LIB([dld], [dld_link],
1866
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
2783
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1867
2784
              ])
1868
2785
            ])
1869
2786
          ])
1891
2808
 
1892
2809
    AC_CACHE_CHECK([whether a program can dlopen itself],
1893
2810
          lt_cv_dlopen_self, [dnl
1894
 
          _LT_AC_TRY_DLOPEN_SELF(
 
2811
          _LT_TRY_DLOPEN_SELF(
1895
2812
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1896
2813
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1897
2814
    ])
1899
2816
    if test "x$lt_cv_dlopen_self" = xyes; then
1900
2817
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1901
2818
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1902
 
          lt_cv_dlopen_self_static, [dnl
1903
 
          _LT_AC_TRY_DLOPEN_SELF(
 
2819
          lt_cv_dlopen_self_static, [dnl
 
2820
          _LT_TRY_DLOPEN_SELF(
1904
2821
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1905
2822
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
1906
2823
      ])
1922
2839
  *) enable_dlopen_self_static=unknown ;;
1923
2840
  esac
1924
2841
fi
1925
 
])# AC_LIBTOOL_DLOPEN_SELF
1926
 
 
1927
 
 
1928
 
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1929
 
# ---------------------------------
1930
 
# Check to see if options -c and -o are simultaneously supported by compiler
1931
 
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1932
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
2842
_LT_DECL([dlopen_support], [enable_dlopen], [0],
 
2843
         [Whether dlopen is supported])
 
2844
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 
2845
         [Whether dlopen of programs is supported])
 
2846
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 
2847
         [Whether dlopen of statically linked programs is supported])
 
2848
])# LT_SYS_DLOPEN_SELF
 
2849
 
 
2850
# Old name:
 
2851
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 
2852
dnl aclocal-1.4 backwards compatibility:
 
2853
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 
2854
 
 
2855
 
 
2856
# _LT_COMPILER_C_O([TAGNAME])
 
2857
# ---------------------------
 
2858
# Check to see if options -c and -o are simultaneously supported by compiler.
 
2859
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
 
2860
m4_defun([_LT_COMPILER_C_O],
 
2861
[m4_require([_LT_DECL_SED])dnl
 
2862
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2863
m4_require([_LT_TAG_COMPILER])dnl
1933
2864
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1934
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1935
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1936
 
   $rm -r conftest 2>/dev/null
 
2865
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
2866
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
2867
   $RM -r conftest 2>/dev/null
1937
2868
   mkdir conftest
1938
2869
   cd conftest
1939
2870
   mkdir out
1940
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
2871
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1941
2872
 
1942
2873
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1943
2874
   # Insert the option either (1) after the last *FLAGS variable, or
1957
2888
   then
1958
2889
     # The compiler can only warn and ignore the option if not recognized
1959
2890
     # So say no if there are warnings
1960
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2891
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1961
2892
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1962
2893
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1963
 
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
2894
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1964
2895
     fi
1965
2896
   fi
1966
2897
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1967
 
   $rm conftest*
 
2898
   $RM conftest*
1968
2899
   # SGI C++ compiler will create directory out/ii_files/ for
1969
2900
   # template instantiation
1970
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1971
 
   $rm out/* && rmdir out
 
2901
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
2902
   $RM out/* && rmdir out
1972
2903
   cd ..
1973
 
   rmdir conftest
1974
 
   $rm conftest*
 
2904
   $RM -r conftest
 
2905
   $RM conftest*
1975
2906
])
1976
 
])# AC_LIBTOOL_PROG_CC_C_O
1977
 
 
1978
 
 
1979
 
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1980
 
# -----------------------------------------
 
2907
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 
2908
        [Does compiler simultaneously support -c and -o options?])
 
2909
])# _LT_COMPILER_C_O
 
2910
 
 
2911
 
 
2912
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
 
2913
# ----------------------------------
1981
2914
# Check to see if we can do hard links to lock some files if needed
1982
 
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1983
 
[AC_REQUIRE([_LT_AC_LOCK])dnl
 
2915
m4_defun([_LT_COMPILER_FILE_LOCKS],
 
2916
[m4_require([_LT_ENABLE_LOCK])dnl
 
2917
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2918
_LT_COMPILER_C_O([$1])
1984
2919
 
1985
2920
hard_links="nottested"
1986
 
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
2921
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1987
2922
  # do not overwrite the value of need_locks provided by the user
1988
2923
  AC_MSG_CHECKING([if we can lock with hard links])
1989
2924
  hard_links=yes
1990
 
  $rm conftest*
 
2925
  $RM conftest*
1991
2926
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1992
2927
  touch conftest.a
1993
2928
  ln conftest.a conftest.b 2>&5 || hard_links=no
2000
2935
else
2001
2936
  need_locks=no
2002
2937
fi
2003
 
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2004
 
 
2005
 
 
2006
 
# AC_LIBTOOL_OBJDIR
2007
 
# -----------------
2008
 
AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
2938
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 
2939
])# _LT_COMPILER_FILE_LOCKS
 
2940
 
 
2941
 
 
2942
# _LT_CHECK_OBJDIR
 
2943
# ----------------
 
2944
m4_defun([_LT_CHECK_OBJDIR],
2009
2945
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2010
2946
[rm -f .libs 2>/dev/null
2011
2947
mkdir .libs 2>/dev/null
2017
2953
fi
2018
2954
rmdir .libs 2>/dev/null])
2019
2955
objdir=$lt_cv_objdir
2020
 
])# AC_LIBTOOL_OBJDIR
2021
 
 
2022
 
 
2023
 
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2024
 
# ----------------------------------------------
 
2956
_LT_DECL([], [objdir], [0],
 
2957
         [The name of the directory that contains temporary libtool files])dnl
 
2958
m4_pattern_allow([LT_OBJDIR])dnl
 
2959
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
 
2960
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
 
2961
])# _LT_CHECK_OBJDIR
 
2962
 
 
2963
 
 
2964
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 
2965
# --------------------------------------
2025
2966
# Check hardcoding attributes.
2026
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
2967
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2027
2968
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2028
 
_LT_AC_TAGVAR(hardcode_action, $1)=
2029
 
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2030
 
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2031
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
2969
_LT_TAGVAR(hardcode_action, $1)=
 
2970
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 
2971
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 
2972
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2032
2973
 
2033
 
  # We can hardcode non-existant directories.
2034
 
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 
2974
  # We can hardcode non-existent directories.
 
2975
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2035
2976
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2036
2977
     # have to relink, otherwise we might link with an installed library
2037
2978
     # when we should be linking with a yet-to-be-installed one
2038
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2039
 
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 
2979
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
2980
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2040
2981
    # Linking always hardcodes the temporary library directory.
2041
 
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
 
2982
    _LT_TAGVAR(hardcode_action, $1)=relink
2042
2983
  else
2043
2984
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
2044
 
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 
2985
    _LT_TAGVAR(hardcode_action, $1)=immediate
2045
2986
  fi
2046
2987
else
2047
2988
  # We cannot hardcode anything, or else we can only hardcode existing
2048
2989
  # directories.
2049
 
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
2990
  _LT_TAGVAR(hardcode_action, $1)=unsupported
2050
2991
fi
2051
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
2992
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2052
2993
 
2053
 
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
2994
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
 
2995
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2054
2996
  # Fast installation is not supported
2055
2997
  enable_fast_install=no
2056
2998
elif test "$shlibpath_overrides_runpath" = yes ||
2058
3000
  # Fast installation is not necessary
2059
3001
  enable_fast_install=needless
2060
3002
fi
2061
 
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2062
 
 
2063
 
 
2064
 
# AC_LIBTOOL_SYS_LIB_STRIP
2065
 
# ------------------------
2066
 
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2067
 
[striplib=
 
3003
_LT_TAGDECL([], [hardcode_action], [0],
 
3004
    [How to hardcode a shared library path into an executable])
 
3005
])# _LT_LINKER_HARDCODE_LIBPATH
 
3006
 
 
3007
 
 
3008
# _LT_CMD_STRIPLIB
 
3009
# ----------------
 
3010
m4_defun([_LT_CMD_STRIPLIB],
 
3011
[m4_require([_LT_DECL_EGREP])
 
3012
striplib=
2068
3013
old_striplib=
2069
3014
AC_MSG_CHECKING([whether stripping libraries is possible])
2070
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
3015
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2071
3016
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2072
3017
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2073
3018
  AC_MSG_RESULT([yes])
2074
3019
else
2075
3020
# FIXME - insert some real tests, host_os isn't really good enough
2076
3021
  case $host_os in
2077
 
   darwin*)
2078
 
       if test -n "$STRIP" ; then
2079
 
         striplib="$STRIP -x"
2080
 
         AC_MSG_RESULT([yes])
2081
 
       else
2082
 
  AC_MSG_RESULT([no])
2083
 
fi
2084
 
       ;;
2085
 
   *)
2086
 
  AC_MSG_RESULT([no])
 
3022
  darwin*)
 
3023
    if test -n "$STRIP" ; then
 
3024
      striplib="$STRIP -x"
 
3025
      old_striplib="$STRIP -S"
 
3026
      AC_MSG_RESULT([yes])
 
3027
    else
 
3028
      AC_MSG_RESULT([no])
 
3029
    fi
 
3030
    ;;
 
3031
  *)
 
3032
    AC_MSG_RESULT([no])
2087
3033
    ;;
2088
3034
  esac
2089
3035
fi
2090
 
])# AC_LIBTOOL_SYS_LIB_STRIP
2091
 
 
2092
 
 
2093
 
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
3036
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 
3037
_LT_DECL([], [striplib], [1])
 
3038
])# _LT_CMD_STRIPLIB
 
3039
 
 
3040
 
 
3041
# _LT_SYS_DYNAMIC_LINKER([TAG])
2094
3042
# -----------------------------
2095
3043
# PORTME Fill in your ld.so characteristics
2096
 
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2097
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
3044
m4_defun([_LT_SYS_DYNAMIC_LINKER],
 
3045
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3046
m4_require([_LT_DECL_EGREP])dnl
 
3047
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
3048
m4_require([_LT_DECL_OBJDUMP])dnl
 
3049
m4_require([_LT_DECL_SED])dnl
 
3050
AC_MSG_CHECKING([dynamic linker characteristics])
 
3051
m4_if([$1],
 
3052
        [], [
 
3053
if test "$GCC" = yes; then
 
3054
  case $host_os in
 
3055
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
3056
    *) lt_awk_arg="/^libraries:/" ;;
 
3057
  esac
 
3058
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
3059
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
3060
    # if the path contains ";" then we assume it to be the separator
 
3061
    # otherwise default to the standard path separator (i.e. ":") - it is
 
3062
    # assumed that no part of a normal pathname contains ";" but that should
 
3063
    # okay in the real world where ";" in dirpaths is itself problematic.
 
3064
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
3065
  else
 
3066
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3067
  fi
 
3068
  # Ok, now we have the path, separated by spaces, we can step through it
 
3069
  # and add multilib dir if necessary.
 
3070
  lt_tmp_lt_search_path_spec=
 
3071
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
3072
  for lt_sys_path in $lt_search_path_spec; do
 
3073
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
3074
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
3075
    else
 
3076
      test -d "$lt_sys_path" && \
 
3077
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
3078
    fi
 
3079
  done
 
3080
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
3081
BEGIN {RS=" "; FS="/|\n";} {
 
3082
  lt_foo="";
 
3083
  lt_count=0;
 
3084
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
3085
    if ($lt_i != "" && $lt_i != ".") {
 
3086
      if ($lt_i == "..") {
 
3087
        lt_count++;
 
3088
      } else {
 
3089
        if (lt_count == 0) {
 
3090
          lt_foo="/" $lt_i lt_foo;
 
3091
        } else {
 
3092
          lt_count--;
 
3093
        }
 
3094
      }
 
3095
    }
 
3096
  }
 
3097
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
3098
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
3099
}'`
 
3100
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
3101
else
 
3102
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
3103
fi])
2098
3104
library_names_spec=
2099
3105
libname_spec='lib$name'
2100
3106
soname_spec=
2108
3114
version_type=none
2109
3115
dynamic_linker="$host_os ld.so"
2110
3116
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2111
 
if test "$GCC" = yes; then
2112
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2113
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2114
 
    # if the path contains ";" then we assume it to be the separator
2115
 
    # otherwise default to the standard path separator (i.e. ":") - it is
2116
 
    # assumed that no part of a normal pathname contains ";" but that should
2117
 
    # okay in the real world where ";" in dirpaths is itself problematic.
2118
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2119
 
  else
2120
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2121
 
  fi
2122
 
else
2123
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2124
 
fi
2125
3117
need_lib_prefix=unknown
2126
3118
hardcode_into_libs=no
2127
3119
 
2139
3131
  soname_spec='${libname}${release}${shared_ext}$major'
2140
3132
  ;;
2141
3133
 
2142
 
aix4* | aix5*)
 
3134
aix[[4-9]]*)
2143
3135
  version_type=linux
2144
3136
  need_lib_prefix=no
2145
3137
  need_version=no
2158
3150
      aix4 | aix4.[[01]] | aix4.[[01]].*)
2159
3151
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2160
3152
           echo ' yes '
2161
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
3153
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2162
3154
        :
2163
3155
      else
2164
3156
        can_build_shared=no
2184
3176
  ;;
2185
3177
 
2186
3178
amigaos*)
2187
 
  library_names_spec='$libname.ixlibrary $libname.a'
2188
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
2189
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
3179
  case $host_cpu in
 
3180
  powerpc)
 
3181
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
3182
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
3183
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3184
    ;;
 
3185
  m68k)
 
3186
    library_names_spec='$libname.ixlibrary $libname.a'
 
3187
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
3188
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
3189
    ;;
 
3190
  esac
2190
3191
  ;;
2191
3192
 
2192
3193
beos*)
2209
3210
  # libtool to hard-code these into programs
2210
3211
  ;;
2211
3212
 
2212
 
cygwin* | mingw* | pw32*)
 
3213
cygwin* | mingw* | pw32* | cegcc*)
2213
3214
  version_type=windows
2214
3215
  shrext_cmds=".dll"
2215
3216
  need_version=no
2216
3217
  need_lib_prefix=no
2217
3218
 
2218
3219
  case $GCC,$host_os in
2219
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
3220
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2220
3221
    library_names_spec='$libname.dll.a'
2221
3222
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2222
3223
    postinstall_cmds='base_file=`basename \${file}`~
2223
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
3224
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2224
3225
      dldir=$destdir/`dirname \$dlpath`~
2225
3226
      test -d \$dldir || mkdir -p \$dldir~
2226
3227
      $install_prog $dir/$dlname \$dldir/$dlname~
2227
 
      chmod a+x \$dldir/$dlname'
 
3228
      chmod a+x \$dldir/$dlname~
 
3229
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
3230
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
3231
      fi'
2228
3232
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2229
3233
      dlpath=$dir/\$dldll~
2230
 
       $rm \$dlpath'
 
3234
       $RM \$dlpath'
2231
3235
    shlibpath_overrides_runpath=yes
2232
3236
 
2233
3237
    case $host_os in
2236
3240
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2237
3241
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2238
3242
      ;;
2239
 
    mingw*)
 
3243
    mingw* | cegcc*)
2240
3244
      # MinGW DLLs use traditional 'lib' prefix
2241
3245
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2242
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2243
 
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
3246
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
3247
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2244
3248
        # It is most probably a Windows format PATH printed by
2245
3249
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2246
3250
        # path with ; separators, and with drive letters. We can handle the
2247
3251
        # drive letters (cygwin fileutils understands them), so leave them,
2248
3252
        # especially as we might pass files found there to a mingw objdump,
2249
3253
        # which wouldn't understand a cygwinified path. Ahh.
2250
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
3254
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2251
3255
      else
2252
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3256
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2253
3257
      fi
2254
3258
      ;;
2255
3259
    pw32*)
2273
3277
  version_type=darwin
2274
3278
  need_lib_prefix=no
2275
3279
  need_version=no
2276
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
3280
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2277
3281
  soname_spec='${libname}${release}${major}$shared_ext'
2278
3282
  shlibpath_overrides_runpath=yes
2279
3283
  shlibpath_var=DYLD_LIBRARY_PATH
2280
3284
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2281
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2282
 
  if test "$GCC" = yes; then
2283
 
    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"`
2284
 
  else
2285
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2286
 
  fi
 
3285
m4_if([$1], [],[
 
3286
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2287
3287
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2288
3288
  ;;
2289
3289
 
2300
3300
  dynamic_linker=no
2301
3301
  ;;
2302
3302
 
2303
 
kfreebsd*-gnu)
2304
 
  version_type=linux
2305
 
  need_lib_prefix=no
2306
 
  need_version=no
2307
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2308
 
  soname_spec='${libname}${release}${shared_ext}$major'
2309
 
  shlibpath_var=LD_LIBRARY_PATH
2310
 
  shlibpath_overrides_runpath=no
2311
 
  hardcode_into_libs=yes
2312
 
  dynamic_linker='GNU ld.so'
2313
 
  ;;
2314
 
 
2315
3303
freebsd* | dragonfly*)
2316
3304
  # DragonFly does not have aout.  When/if they implement a new
2317
3305
  # versioning mechanism, adjust this.
2349
3337
    shlibpath_overrides_runpath=no
2350
3338
    hardcode_into_libs=yes
2351
3339
    ;;
2352
 
  freebsd*) # from 4.6 on
 
3340
  *) # from 4.6 on, and DragonFly
2353
3341
    shlibpath_overrides_runpath=yes
2354
3342
    hardcode_into_libs=yes
2355
3343
    ;;
2388
3376
    fi
2389
3377
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2390
3378
    ;;
2391
 
   hppa*64*)
2392
 
     shrext_cmds='.sl'
2393
 
     hardcode_into_libs=yes
2394
 
     dynamic_linker="$host_os dld.sl"
2395
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2396
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2397
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2398
 
     soname_spec='${libname}${release}${shared_ext}$major'
2399
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2400
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2401
 
     ;;
2402
 
   *)
 
3379
  hppa*64*)
 
3380
    shrext_cmds='.sl'
 
3381
    hardcode_into_libs=yes
 
3382
    dynamic_linker="$host_os dld.sl"
 
3383
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
3384
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
3385
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3386
    soname_spec='${libname}${release}${shared_ext}$major'
 
3387
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
3388
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
3389
    ;;
 
3390
  *)
2403
3391
    shrext_cmds='.sl'
2404
3392
    dynamic_linker="$host_os dld.sl"
2405
3393
    shlibpath_var=SHLIB_PATH
2412
3400
  postinstall_cmds='chmod 555 $lib'
2413
3401
  ;;
2414
3402
 
2415
 
interix3*)
 
3403
interix[[3-9]]*)
2416
3404
  version_type=linux
2417
3405
  need_lib_prefix=no
2418
3406
  need_version=no
2467
3455
  ;;
2468
3456
 
2469
3457
# This must be Linux ELF.
2470
 
linux*)
 
3458
linux* | k*bsd*-gnu)
2471
3459
  version_type=linux
2472
3460
  need_lib_prefix=no
2473
3461
  need_version=no
2476
3464
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2477
3465
  shlibpath_var=LD_LIBRARY_PATH
2478
3466
  shlibpath_overrides_runpath=no
 
3467
  # Some binutils ld are patched to set DT_RUNPATH
 
3468
  save_LDFLAGS=$LDFLAGS
 
3469
  save_libdir=$libdir
 
3470
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
3471
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
3472
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
3473
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
3474
       [shlibpath_overrides_runpath=yes])])
 
3475
  LDFLAGS=$save_LDFLAGS
 
3476
  libdir=$save_libdir
 
3477
 
2479
3478
  # This implies no fast_install, which is unacceptable.
2480
3479
  # Some rework will be needed to allow for fast_install
2481
3480
  # before this can be enabled.
2482
3481
  hardcode_into_libs=yes
2483
3482
 
2484
 
  # find out which ABI we are using
2485
 
  libsuff=
2486
 
  case "$host_cpu" in
2487
 
  x86_64*|s390x*|powerpc64*)
2488
 
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2489
 
    if AC_TRY_EVAL(ac_compile); then
2490
 
      case `/usr/bin/file conftest.$ac_objext` in
2491
 
      *64-bit*)
2492
 
        libsuff=64
2493
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
2494
 
        ;;
2495
 
      esac
2496
 
    fi
2497
 
    rm -rf conftest*
2498
 
    ;;
2499
 
  esac
2500
 
 
2501
3483
  # Append ld.so.conf contents to the search path
2502
3484
  if test -f /etc/ld.so.conf; then
2503
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2504
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
3485
    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' ' '`
 
3486
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2505
3487
  fi
2506
3488
 
2507
3489
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2513
3495
  dynamic_linker='GNU/Linux ld.so'
2514
3496
  ;;
2515
3497
 
2516
 
knetbsd*-gnu)
2517
 
  version_type=linux
2518
 
  need_lib_prefix=no
2519
 
  need_version=no
2520
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2521
 
  soname_spec='${libname}${release}${shared_ext}$major'
2522
 
  shlibpath_var=LD_LIBRARY_PATH
2523
 
  shlibpath_overrides_runpath=no
2524
 
  hardcode_into_libs=yes
2525
 
  dynamic_linker='GNU ld.so'
2526
 
  ;;
2527
 
 
2528
3498
netbsd*)
2529
3499
  version_type=sunos
2530
3500
  need_lib_prefix=no
2531
3501
  need_version=no
2532
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
3502
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2533
3503
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2534
3504
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2535
3505
    dynamic_linker='NetBSD (a.out) ld.so'
2550
3520
  shlibpath_overrides_runpath=yes
2551
3521
  ;;
2552
3522
 
2553
 
nto-qnx*)
2554
 
  version_type=linux
 
3523
*nto* | *qnx*)
 
3524
  version_type=qnx
2555
3525
  need_lib_prefix=no
2556
3526
  need_version=no
2557
3527
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2558
3528
  soname_spec='${libname}${release}${shared_ext}$major'
2559
3529
  shlibpath_var=LD_LIBRARY_PATH
2560
 
  shlibpath_overrides_runpath=yes
 
3530
  shlibpath_overrides_runpath=no
 
3531
  hardcode_into_libs=yes
 
3532
  dynamic_linker='ldqnx.so'
2561
3533
  ;;
2562
3534
 
2563
3535
openbsd*)
2566
3538
  need_lib_prefix=no
2567
3539
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2568
3540
  case $host_os in
2569
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2570
 
    *)                         need_version=no  ;;
 
3541
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
3542
    *)                          need_version=no  ;;
2571
3543
  esac
2572
3544
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2573
3545
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2574
3546
  shlibpath_var=LD_LIBRARY_PATH
2575
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3547
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2576
3548
    case $host_os in
2577
3549
      openbsd2.[[89]] | openbsd2.[[89]].*)
2578
3550
        shlibpath_overrides_runpath=no
2606
3578
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2607
3579
  ;;
2608
3580
 
 
3581
rdos*)
 
3582
  dynamic_linker=no
 
3583
  ;;
 
3584
 
2609
3585
solaris*)
2610
3586
  version_type=linux
2611
3587
  need_lib_prefix=no
2640
3616
    sni)
2641
3617
      shlibpath_overrides_runpath=no
2642
3618
      need_lib_prefix=no
2643
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
2644
3619
      runpath_var=LD_RUN_PATH
2645
3620
      ;;
2646
3621
    siemens)
2671
3646
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2672
3647
  soname_spec='${libname}${release}${shared_ext}$major'
2673
3648
  shlibpath_var=LD_LIBRARY_PATH
 
3649
  shlibpath_overrides_runpath=yes
2674
3650
  hardcode_into_libs=yes
2675
3651
  if test "$with_gnu_ld" = yes; then
2676
3652
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2677
 
    shlibpath_overrides_runpath=no
2678
3653
  else
2679
3654
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2680
 
    shlibpath_overrides_runpath=yes
2681
3655
    case $host_os in
2682
3656
      sco3.2v5*)
2683
3657
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2687
3661
  sys_lib_dlsearch_path_spec='/usr/lib'
2688
3662
  ;;
2689
3663
 
 
3664
tpf*)
 
3665
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
3666
  version_type=linux
 
3667
  need_lib_prefix=no
 
3668
  need_version=no
 
3669
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3670
  shlibpath_var=LD_LIBRARY_PATH
 
3671
  shlibpath_overrides_runpath=no
 
3672
  hardcode_into_libs=yes
 
3673
  ;;
 
3674
 
2690
3675
uts4*)
2691
3676
  version_type=linux
2692
3677
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2705
3690
if test "$GCC" = yes; then
2706
3691
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2707
3692
fi
2708
 
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2709
 
 
2710
 
 
2711
 
# _LT_AC_TAGCONFIG
2712
 
# ----------------
2713
 
AC_DEFUN([_LT_AC_TAGCONFIG],
2714
 
[AC_ARG_WITH([tags],
2715
 
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2716
 
        [include additional configurations @<:@automatic@:>@])],
2717
 
    [tagnames="$withval"])
2718
 
 
2719
 
if test -f "$ltmain" && test -n "$tagnames"; then
2720
 
  if test ! -f "${ofile}"; then
2721
 
    AC_MSG_WARN([output file `$ofile' does not exist])
2722
 
  fi
2723
 
 
2724
 
  if test -z "$LTCC"; then
2725
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2726
 
    if test -z "$LTCC"; then
2727
 
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2728
 
    else
2729
 
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2730
 
    fi
2731
 
  fi
2732
 
  if test -z "$LTCFLAGS"; then
2733
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2734
 
  fi
2735
 
 
2736
 
  # Extract list of available tagged configurations in $ofile.
2737
 
  # Note that this assumes the entire list is on one line.
2738
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2739
 
 
2740
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2741
 
  for tagname in $tagnames; do
2742
 
    IFS="$lt_save_ifs"
2743
 
    # Check whether tagname contains only valid characters
2744
 
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2745
 
    "") ;;
2746
 
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
2747
 
        ;;
2748
 
    esac
2749
 
 
2750
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2751
 
    then
2752
 
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
2753
 
    fi
2754
 
 
2755
 
    # Update the list of available tags.
2756
 
    if test -n "$tagname"; then
2757
 
      echo appending configuration tag \"$tagname\" to $ofile
2758
 
 
2759
 
      case $tagname in
2760
 
      CXX)
2761
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2762
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2763
 
            (test "X$CXX" != "Xg++"))) ; then
2764
 
          AC_LIBTOOL_LANG_CXX_CONFIG
2765
 
        else
2766
 
          tagname=""
2767
 
        fi
2768
 
        ;;
2769
 
 
2770
 
      F77)
2771
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
2772
 
          AC_LIBTOOL_LANG_F77_CONFIG
2773
 
        else
2774
 
          tagname=""
2775
 
        fi
2776
 
        ;;
2777
 
 
2778
 
      GCJ)
2779
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2780
 
          AC_LIBTOOL_LANG_GCJ_CONFIG
2781
 
        else
2782
 
          tagname=""
2783
 
        fi
2784
 
        ;;
2785
 
 
2786
 
      RC)
2787
 
        AC_LIBTOOL_LANG_RC_CONFIG
2788
 
        ;;
2789
 
 
2790
 
      *)
2791
 
        AC_MSG_ERROR([Unsupported tag name: $tagname])
2792
 
        ;;
2793
 
      esac
2794
 
 
2795
 
      # Append the new tag name to the list of available tags.
2796
 
      if test -n "$tagname" ; then
2797
 
      available_tags="$available_tags $tagname"
2798
 
    fi
2799
 
    fi
2800
 
  done
2801
 
  IFS="$lt_save_ifs"
2802
 
 
2803
 
  # Now substitute the updated list of available tags.
2804
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2805
 
    mv "${ofile}T" "$ofile"
2806
 
    chmod +x "$ofile"
2807
 
  else
2808
 
    rm -f "${ofile}T"
2809
 
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
2810
 
  fi
2811
 
fi
2812
 
])# _LT_AC_TAGCONFIG
2813
 
 
2814
 
 
2815
 
# AC_LIBTOOL_DLOPEN
2816
 
# -----------------
2817
 
# enable checks for dlopen support
2818
 
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2819
 
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2820
 
])# AC_LIBTOOL_DLOPEN
2821
 
 
2822
 
 
2823
 
# AC_LIBTOOL_WIN32_DLL
2824
 
# --------------------
2825
 
# declare package support for building win32 DLLs
2826
 
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2827
 
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2828
 
])# AC_LIBTOOL_WIN32_DLL
2829
 
 
2830
 
 
2831
 
# AC_ENABLE_SHARED([DEFAULT])
2832
 
# ---------------------------
2833
 
# implement the --enable-shared flag
2834
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2835
 
AC_DEFUN([AC_ENABLE_SHARED],
2836
 
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2837
 
AC_ARG_ENABLE([shared],
2838
 
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2839
 
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2840
 
    [p=${PACKAGE-default}
2841
 
    case $enableval in
2842
 
    yes) enable_shared=yes ;;
2843
 
    no) enable_shared=no ;;
2844
 
    *)
2845
 
      enable_shared=no
2846
 
      # Look at the argument we got.  We use all the common list separators.
2847
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2848
 
      for pkg in $enableval; do
2849
 
        IFS="$lt_save_ifs"
2850
 
        if test "X$pkg" = "X$p"; then
2851
 
          enable_shared=yes
2852
 
        fi
2853
 
      done
2854
 
      IFS="$lt_save_ifs"
2855
 
      ;;
2856
 
    esac],
2857
 
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2858
 
])# AC_ENABLE_SHARED
2859
 
 
2860
 
 
2861
 
# AC_DISABLE_SHARED
2862
 
# -----------------
2863
 
# set the default shared flag to --disable-shared
2864
 
AC_DEFUN([AC_DISABLE_SHARED],
2865
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2866
 
AC_ENABLE_SHARED(no)
2867
 
])# AC_DISABLE_SHARED
2868
 
 
2869
 
 
2870
 
# AC_ENABLE_STATIC([DEFAULT])
2871
 
# ---------------------------
2872
 
# implement the --enable-static flag
2873
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2874
 
AC_DEFUN([AC_ENABLE_STATIC],
2875
 
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2876
 
AC_ARG_ENABLE([static],
2877
 
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2878
 
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2879
 
    [p=${PACKAGE-default}
2880
 
    case $enableval in
2881
 
    yes) enable_static=yes ;;
2882
 
    no) enable_static=no ;;
2883
 
    *)
2884
 
     enable_static=no
2885
 
      # Look at the argument we got.  We use all the common list separators.
2886
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2887
 
      for pkg in $enableval; do
2888
 
        IFS="$lt_save_ifs"
2889
 
        if test "X$pkg" = "X$p"; then
2890
 
          enable_static=yes
2891
 
        fi
2892
 
      done
2893
 
      IFS="$lt_save_ifs"
2894
 
      ;;
2895
 
    esac],
2896
 
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2897
 
])# AC_ENABLE_STATIC
2898
 
 
2899
 
 
2900
 
# AC_DISABLE_STATIC
2901
 
# -----------------
2902
 
# set the default static flag to --disable-static
2903
 
AC_DEFUN([AC_DISABLE_STATIC],
2904
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2905
 
AC_ENABLE_STATIC(no)
2906
 
])# AC_DISABLE_STATIC
2907
 
 
2908
 
 
2909
 
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2910
 
# ---------------------------------
2911
 
# implement the --enable-fast-install flag
2912
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2913
 
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2914
 
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2915
 
AC_ARG_ENABLE([fast-install],
2916
 
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2917
 
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2918
 
    [p=${PACKAGE-default}
2919
 
    case $enableval in
2920
 
    yes) enable_fast_install=yes ;;
2921
 
    no) enable_fast_install=no ;;
2922
 
    *)
2923
 
      enable_fast_install=no
2924
 
      # Look at the argument we got.  We use all the common list separators.
2925
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2926
 
      for pkg in $enableval; do
2927
 
        IFS="$lt_save_ifs"
2928
 
        if test "X$pkg" = "X$p"; then
2929
 
          enable_fast_install=yes
2930
 
        fi
2931
 
      done
2932
 
      IFS="$lt_save_ifs"
2933
 
      ;;
2934
 
    esac],
2935
 
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2936
 
])# AC_ENABLE_FAST_INSTALL
2937
 
 
2938
 
 
2939
 
# AC_DISABLE_FAST_INSTALL
2940
 
# -----------------------
2941
 
# set the default to --disable-fast-install
2942
 
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2943
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2944
 
AC_ENABLE_FAST_INSTALL(no)
2945
 
])# AC_DISABLE_FAST_INSTALL
2946
 
 
2947
 
 
2948
 
# AC_LIBTOOL_PICMODE([MODE])
 
3693
 
 
3694
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
3695
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
3696
fi
 
3697
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
3698
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
3699
fi
 
3700
 
 
3701
_LT_DECL([], [variables_saved_for_relink], [1],
 
3702
    [Variables whose values should be saved in libtool wrapper scripts and
 
3703
    restored at link time])
 
3704
_LT_DECL([], [need_lib_prefix], [0],
 
3705
    [Do we need the "lib" prefix for modules?])
 
3706
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 
3707
_LT_DECL([], [version_type], [0], [Library versioning type])
 
3708
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 
3709
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 
3710
_LT_DECL([], [shlibpath_overrides_runpath], [0],
 
3711
    [Is shlibpath searched before the hard-coded library search path?])
 
3712
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 
3713
_LT_DECL([], [library_names_spec], [1],
 
3714
    [[List of archive names.  First name is the real one, the rest are links.
 
3715
    The last name is the one that the linker finds with -lNAME]])
 
3716
_LT_DECL([], [soname_spec], [1],
 
3717
    [[The coded name of the library, if different from the real name]])
 
3718
_LT_DECL([], [postinstall_cmds], [2],
 
3719
    [Command to use after installation of a shared archive])
 
3720
_LT_DECL([], [postuninstall_cmds], [2],
 
3721
    [Command to use after uninstallation of a shared archive])
 
3722
_LT_DECL([], [finish_cmds], [2],
 
3723
    [Commands used to finish a libtool library installation in a directory])
 
3724
_LT_DECL([], [finish_eval], [1],
 
3725
    [[As "finish_cmds", except a single script fragment to be evaled but
 
3726
    not shown]])
 
3727
_LT_DECL([], [hardcode_into_libs], [0],
 
3728
    [Whether we should hardcode library paths into libraries])
 
3729
_LT_DECL([], [sys_lib_search_path_spec], [2],
 
3730
    [Compile-time system search path for libraries])
 
3731
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
 
3732
    [Run-time system search path for libraries])
 
3733
])# _LT_SYS_DYNAMIC_LINKER
 
3734
 
 
3735
 
 
3736
# _LT_PATH_TOOL_PREFIX(TOOL)
2949
3737
# --------------------------
2950
 
# implement the --with-pic flag
2951
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
2952
 
AC_DEFUN([AC_LIBTOOL_PICMODE],
2953
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2954
 
pic_mode=ifelse($#,1,$1,default)
2955
 
])# AC_LIBTOOL_PICMODE
2956
 
 
2957
 
 
2958
 
# AC_PROG_EGREP
2959
 
# -------------
2960
 
# This is predefined starting with Autoconf 2.54, so this conditional
2961
 
# definition can be removed once we require Autoconf 2.54 or later.
2962
 
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2963
 
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2964
 
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2965
 
    then ac_cv_prog_egrep='grep -E'
2966
 
    else ac_cv_prog_egrep='egrep'
2967
 
    fi])
2968
 
 EGREP=$ac_cv_prog_egrep
2969
 
 AC_SUBST([EGREP])
2970
 
])])
2971
 
 
2972
 
 
2973
 
# AC_PATH_TOOL_PREFIX
2974
 
# -------------------
2975
 
# find a file program which can recognise shared library
2976
 
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2977
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
3738
# find a file program which can recognize shared library
 
3739
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 
3740
[m4_require([_LT_DECL_EGREP])dnl
2978
3741
AC_MSG_CHECKING([for $1])
2979
3742
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2980
3743
[case $MAGIC_CMD in
2987
3750
dnl $ac_dummy forces splitting on constant user-supplied paths.
2988
3751
dnl POSIX.2 word splitting is done only on the output of word expansions,
2989
3752
dnl not every word.  This closes a longstanding sh security hole.
2990
 
  ac_dummy="ifelse([$2], , $PATH, [$2])"
 
3753
  ac_dummy="m4_if([$2], , $PATH, [$2])"
2991
3754
  for ac_dir in $ac_dummy; do
2992
3755
    IFS="$lt_save_ifs"
2993
3756
    test -z "$ac_dir" && ac_dir=.
3002
3765
            $EGREP "$file_magic_regex" > /dev/null; then
3003
3766
            :
3004
3767
          else
3005
 
            cat <<EOF 1>&2
 
3768
            cat <<_LT_EOF 1>&2
3006
3769
 
3007
3770
*** Warning: the command libtool uses to detect shared libraries,
3008
3771
*** $file_magic_cmd, produces output that libtool cannot recognize.
3013
3776
*** may want to report the problem to your system manager and/or to
3014
3777
*** bug-libtool@gnu.org
3015
3778
 
3016
 
EOF
 
3779
_LT_EOF
3017
3780
          fi ;;
3018
3781
        esac
3019
3782
      fi
3030
3793
else
3031
3794
  AC_MSG_RESULT(no)
3032
3795
fi
3033
 
])# AC_PATH_TOOL_PREFIX
3034
 
 
3035
 
 
3036
 
# AC_PATH_MAGIC
3037
 
# -------------
3038
 
# find a file program which can recognise a shared library
3039
 
AC_DEFUN([AC_PATH_MAGIC],
3040
 
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
3796
_LT_DECL([], [MAGIC_CMD], [0],
 
3797
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 
3798
])# _LT_PATH_TOOL_PREFIX
 
3799
 
 
3800
# Old name:
 
3801
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 
3802
dnl aclocal-1.4 backwards compatibility:
 
3803
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 
3804
 
 
3805
 
 
3806
# _LT_PATH_MAGIC
 
3807
# --------------
 
3808
# find a file program which can recognize a shared library
 
3809
m4_defun([_LT_PATH_MAGIC],
 
3810
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3041
3811
if test -z "$lt_cv_path_MAGIC_CMD"; then
3042
3812
  if test -n "$ac_tool_prefix"; then
3043
 
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
3813
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3044
3814
  else
3045
3815
    MAGIC_CMD=:
3046
3816
  fi
3047
3817
fi
3048
 
])# AC_PATH_MAGIC
3049
 
 
3050
 
 
3051
 
# AC_PROG_LD
 
3818
])# _LT_PATH_MAGIC
 
3819
 
 
3820
 
 
3821
# LT_PATH_LD
3052
3822
# ----------
3053
3823
# find the pathname to the GNU or non-GNU linker
3054
 
AC_DEFUN([AC_PROG_LD],
3055
 
[AC_ARG_WITH([gnu-ld],
3056
 
    [AC_HELP_STRING([--with-gnu-ld],
 
3824
AC_DEFUN([LT_PATH_LD],
 
3825
[AC_REQUIRE([AC_PROG_CC])dnl
 
3826
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3827
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
3828
m4_require([_LT_DECL_SED])dnl
 
3829
m4_require([_LT_DECL_EGREP])dnl
 
3830
 
 
3831
AC_ARG_WITH([gnu-ld],
 
3832
    [AS_HELP_STRING([--with-gnu-ld],
3057
3833
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3058
3834
    [test "$withval" = no || with_gnu_ld=yes],
3059
 
    [with_gnu_ld=no])
3060
 
AC_REQUIRE([LT_AC_PROG_SED])dnl
3061
 
AC_REQUIRE([AC_PROG_CC])dnl
3062
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3063
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
3835
    [with_gnu_ld=no])dnl
 
3836
 
3064
3837
ac_prog=ld
3065
3838
if test "$GCC" = yes; then
3066
3839
  # Check if gcc -print-prog-name=ld gives a path.
3077
3850
    [[\\/]]* | ?:[[\\/]]*)
3078
3851
      re_direlt='/[[^/]][[^/]]*/\.\./'
3079
3852
      # Canonicalize the pathname of ld
3080
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3081
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3082
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3853
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
3854
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
3855
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3083
3856
      done
3084
3857
      test -z "$LD" && LD="$ac_prog"
3085
3858
      ;;
3129
3902
  AC_MSG_RESULT(no)
3130
3903
fi
3131
3904
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3132
 
AC_PROG_LD_GNU
3133
 
])# AC_PROG_LD
3134
 
 
3135
 
 
3136
 
# AC_PROG_LD_GNU
3137
 
# --------------
3138
 
AC_DEFUN([AC_PROG_LD_GNU],
3139
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
3140
 
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
3905
_LT_PATH_LD_GNU
 
3906
AC_SUBST([LD])
 
3907
 
 
3908
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 
3909
])# LT_PATH_LD
 
3910
 
 
3911
# Old names:
 
3912
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 
3913
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 
3914
dnl aclocal-1.4 backwards compatibility:
 
3915
dnl AC_DEFUN([AM_PROG_LD], [])
 
3916
dnl AC_DEFUN([AC_PROG_LD], [])
 
3917
 
 
3918
 
 
3919
# _LT_PATH_LD_GNU
 
3920
#- --------------
 
3921
m4_defun([_LT_PATH_LD_GNU],
 
3922
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3141
3923
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3142
3924
case `$LD -v 2>&1 </dev/null` in
3143
3925
*GNU* | *'with BFD'*)
3148
3930
  ;;
3149
3931
esac])
3150
3932
with_gnu_ld=$lt_cv_prog_gnu_ld
3151
 
])# AC_PROG_LD_GNU
3152
 
 
3153
 
 
3154
 
# AC_PROG_LD_RELOAD_FLAG
3155
 
# ----------------------
 
3933
])# _LT_PATH_LD_GNU
 
3934
 
 
3935
 
 
3936
# _LT_CMD_RELOAD
 
3937
# --------------
3156
3938
# find reload flag for linker
3157
3939
#   -- PORTME Some linkers may need a different reload flag.
3158
 
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 
3940
m4_defun([_LT_CMD_RELOAD],
3159
3941
[AC_CACHE_CHECK([for $LD option to reload object files],
3160
3942
  lt_cv_ld_reload_flag,
3161
3943
  [lt_cv_ld_reload_flag='-r'])
3174
3956
    fi
3175
3957
    ;;
3176
3958
esac
3177
 
])# AC_PROG_LD_RELOAD_FLAG
3178
 
 
3179
 
 
3180
 
# AC_DEPLIBS_CHECK_METHOD
3181
 
# -----------------------
 
3959
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
3960
_LT_DECL([], [reload_cmds], [2])dnl
 
3961
])# _LT_CMD_RELOAD
 
3962
 
 
3963
 
 
3964
# _LT_CHECK_MAGIC_METHOD
 
3965
# ----------------------
3182
3966
# how to check for library dependencies
3183
3967
#  -- PORTME fill in with the dynamic library characteristics
3184
 
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3185
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
3968
m4_defun([_LT_CHECK_MAGIC_METHOD],
 
3969
[m4_require([_LT_DECL_EGREP])
 
3970
m4_require([_LT_DECL_OBJDUMP])
 
3971
AC_CACHE_CHECK([how to recognize dependent libraries],
3186
3972
lt_cv_deplibs_check_method,
3187
3973
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3188
3974
lt_cv_file_magic_test_file=
3199
3985
# whether `pass_all' will *always* work, you probably want this one.
3200
3986
 
3201
3987
case $host_os in
3202
 
aix4* | aix5*)
 
3988
aix[[4-9]]*)
3203
3989
  lt_cv_deplibs_check_method=pass_all
3204
3990
  ;;
3205
3991
 
3221
4007
 
3222
4008
mingw* | pw32*)
3223
4009
  # Base MSYS/MinGW do not provide the 'file' command needed by
3224
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3225
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4010
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4011
  # unless we find 'file', for example because we are cross-compiling.
 
4012
  if ( file / ) >/dev/null 2>&1; then
 
4013
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4014
    lt_cv_file_magic_cmd='func_win32_libid'
 
4015
  else
 
4016
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4017
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4018
  fi
 
4019
  ;;
 
4020
 
 
4021
cegcc)
 
4022
  # use the weaker test based on 'objdump'. See mingw*.
 
4023
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3226
4024
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3227
4025
  ;;
3228
4026
 
3230
4028
  lt_cv_deplibs_check_method=pass_all
3231
4029
  ;;
3232
4030
 
3233
 
freebsd* | kfreebsd*-gnu | dragonfly*)
3234
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4031
freebsd* | dragonfly*)
 
4032
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3235
4033
    case $host_cpu in
3236
4034
    i*86 )
3237
4035
      # Not sure whether the presence of OpenBSD here was a mistake.
3268
4066
  esac
3269
4067
  ;;
3270
4068
 
3271
 
interix3*)
 
4069
interix[[3-9]]*)
3272
4070
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3273
4071
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3274
4072
  ;;
3284
4082
  ;;
3285
4083
 
3286
4084
# This must be Linux ELF.
3287
 
linux*)
 
4085
linux* | k*bsd*-gnu)
3288
4086
  lt_cv_deplibs_check_method=pass_all
3289
4087
  ;;
3290
4088
 
3291
4089
netbsd*)
3292
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4090
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3293
4091
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3294
4092
  else
3295
4093
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3302
4100
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3303
4101
  ;;
3304
4102
 
3305
 
nto-qnx*)
3306
 
  lt_cv_deplibs_check_method=unknown
 
4103
*nto* | *qnx*)
 
4104
  lt_cv_deplibs_check_method=pass_all
3307
4105
  ;;
3308
4106
 
3309
4107
openbsd*)
3310
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4108
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3311
4109
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3312
4110
  else
3313
4111
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3318
4116
  lt_cv_deplibs_check_method=pass_all
3319
4117
  ;;
3320
4118
 
 
4119
rdos*)
 
4120
  lt_cv_deplibs_check_method=pass_all
 
4121
  ;;
 
4122
 
3321
4123
solaris*)
3322
4124
  lt_cv_deplibs_check_method=pass_all
3323
4125
  ;;
3324
4126
 
 
4127
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4128
  lt_cv_deplibs_check_method=pass_all
 
4129
  ;;
 
4130
 
3325
4131
sysv4 | sysv4.3*)
3326
4132
  case $host_vendor in
3327
4133
  motorola)
3349
4155
  esac
3350
4156
  ;;
3351
4157
 
3352
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4158
tpf*)
3353
4159
  lt_cv_deplibs_check_method=pass_all
3354
4160
  ;;
3355
4161
esac
3357
4163
file_magic_cmd=$lt_cv_file_magic_cmd
3358
4164
deplibs_check_method=$lt_cv_deplibs_check_method
3359
4165
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3360
 
])# AC_DEPLIBS_CHECK_METHOD
3361
 
 
3362
 
 
3363
 
# AC_PROG_NM
 
4166
 
 
4167
_LT_DECL([], [deplibs_check_method], [1],
 
4168
    [Method to check whether dependent libraries are shared objects])
 
4169
_LT_DECL([], [file_magic_cmd], [1],
 
4170
    [Command to use when deplibs_check_method == "file_magic"])
 
4171
])# _LT_CHECK_MAGIC_METHOD
 
4172
 
 
4173
 
 
4174
# LT_PATH_NM
3364
4175
# ----------
3365
 
# find the pathname to a BSD-compatible name lister
3366
 
AC_DEFUN([AC_PROG_NM],
3367
 
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 
4176
# find the pathname to a BSD- or MS-compatible name lister
 
4177
AC_DEFUN([LT_PATH_NM],
 
4178
[AC_REQUIRE([AC_PROG_CC])dnl
 
4179
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3368
4180
[if test -n "$NM"; then
3369
4181
  # Let the user override the test.
3370
4182
  lt_cv_path_NM="$NM"
3371
4183
else
3372
4184
  lt_nm_to_check="${ac_tool_prefix}nm"
3373
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
4185
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3374
4186
    lt_nm_to_check="$lt_nm_to_check nm"
3375
4187
  fi
3376
4188
  for lt_tmp_nm in $lt_nm_to_check; do
3406
4218
    done
3407
4219
    IFS="$lt_save_ifs"
3408
4220
  done
3409
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4221
  : ${lt_cv_path_NM=no}
3410
4222
fi])
3411
 
NM="$lt_cv_path_NM"
3412
 
])# AC_PROG_NM
3413
 
 
3414
 
 
3415
 
# AC_CHECK_LIBM
3416
 
# -------------
 
4223
if test "$lt_cv_path_NM" != "no"; then
 
4224
  NM="$lt_cv_path_NM"
 
4225
else
 
4226
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4227
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
4228
  AC_SUBST([DUMPBIN])
 
4229
  if test "$DUMPBIN" != ":"; then
 
4230
    NM="$DUMPBIN"
 
4231
  fi
 
4232
fi
 
4233
test -z "$NM" && NM=nm
 
4234
AC_SUBST([NM])
 
4235
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 
4236
 
 
4237
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 
4238
  [lt_cv_nm_interface="BSD nm"
 
4239
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4240
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
4241
  (eval "$ac_compile" 2>conftest.err)
 
4242
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4243
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
4244
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4245
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4246
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
4247
  cat conftest.out >&AS_MESSAGE_LOG_FD
 
4248
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4249
    lt_cv_nm_interface="MS dumpbin"
 
4250
  fi
 
4251
  rm -f conftest*])
 
4252
])# LT_PATH_NM
 
4253
 
 
4254
# Old names:
 
4255
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 
4256
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 
4257
dnl aclocal-1.4 backwards compatibility:
 
4258
dnl AC_DEFUN([AM_PROG_NM], [])
 
4259
dnl AC_DEFUN([AC_PROG_NM], [])
 
4260
 
 
4261
 
 
4262
# LT_LIB_M
 
4263
# --------
3417
4264
# check for math library
3418
 
AC_DEFUN([AC_CHECK_LIBM],
 
4265
AC_DEFUN([LT_LIB_M],
3419
4266
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3420
4267
LIBM=
3421
4268
case $host in
3430
4277
  AC_CHECK_LIB(m, cos, LIBM="-lm")
3431
4278
  ;;
3432
4279
esac
3433
 
])# AC_CHECK_LIBM
3434
 
 
3435
 
 
3436
 
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3437
 
# -----------------------------------
3438
 
# sets LIBLTDL to the link flags for the libltdl convenience library and
3439
 
# LTDLINCL to the include flags for the libltdl header and adds
3440
 
# --enable-ltdl-convenience to the configure arguments.  Note that
3441
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3442
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
3443
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3444
 
# (note the single quotes!).  If your package is not flat and you're not
3445
 
# using automake, define top_builddir and top_srcdir appropriately in
3446
 
# the Makefiles.
3447
 
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3448
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3449
 
  case $enable_ltdl_convenience in
3450
 
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3451
 
  "") enable_ltdl_convenience=yes
3452
 
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3453
 
  esac
3454
 
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3455
 
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3456
 
  # For backwards non-gettext consistent compatibility...
3457
 
  INCLTDL="$LTDLINCL"
3458
 
])# AC_LIBLTDL_CONVENIENCE
3459
 
 
3460
 
 
3461
 
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3462
 
# -----------------------------------
3463
 
# sets LIBLTDL to the link flags for the libltdl installable library and
3464
 
# LTDLINCL to the include flags for the libltdl header and adds
3465
 
# --enable-ltdl-install to the configure arguments.  Note that
3466
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3467
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3468
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3469
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
3470
 
# flat and you're not using automake, define top_builddir and top_srcdir
3471
 
# appropriately in the Makefiles.
3472
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3473
 
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3474
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3475
 
  AC_CHECK_LIB(ltdl, lt_dlinit,
3476
 
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3477
 
  [if test x"$enable_ltdl_install" = xno; then
3478
 
     AC_MSG_WARN([libltdl not installed, but installation disabled])
3479
 
   else
3480
 
     enable_ltdl_install=yes
3481
 
   fi
3482
 
  ])
3483
 
  if test x"$enable_ltdl_install" = x"yes"; then
3484
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
3485
 
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3486
 
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3487
 
  else
3488
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3489
 
    LIBLTDL="-lltdl"
3490
 
    LTDLINCL=
3491
 
  fi
3492
 
  # For backwards non-gettext consistent compatibility...
3493
 
  INCLTDL="$LTDLINCL"
3494
 
])# AC_LIBLTDL_INSTALLABLE
3495
 
 
3496
 
 
3497
 
# AC_LIBTOOL_CXX
3498
 
# --------------
3499
 
# enable support for C++ libraries
3500
 
AC_DEFUN([AC_LIBTOOL_CXX],
3501
 
[AC_REQUIRE([_LT_AC_LANG_CXX])
3502
 
])# AC_LIBTOOL_CXX
3503
 
 
3504
 
 
3505
 
# _LT_AC_LANG_CXX
3506
 
# ---------------
3507
 
AC_DEFUN([_LT_AC_LANG_CXX],
3508
 
[AC_REQUIRE([AC_PROG_CXX])
3509
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3510
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3511
 
])# _LT_AC_LANG_CXX
3512
 
 
3513
 
# _LT_AC_PROG_CXXCPP
3514
 
# ------------------
3515
 
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3516
 
[
3517
 
AC_REQUIRE([AC_PROG_CXX])
3518
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3519
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3520
 
    (test "X$CXX" != "Xg++"))) ; then
3521
 
  AC_PROG_CXXCPP
3522
 
fi
3523
 
])# _LT_AC_PROG_CXXCPP
3524
 
 
3525
 
# AC_LIBTOOL_F77
3526
 
# --------------
3527
 
# enable support for Fortran 77 libraries
3528
 
AC_DEFUN([AC_LIBTOOL_F77],
3529
 
[AC_REQUIRE([_LT_AC_LANG_F77])
3530
 
])# AC_LIBTOOL_F77
3531
 
 
3532
 
 
3533
 
# _LT_AC_LANG_F77
3534
 
# ---------------
3535
 
AC_DEFUN([_LT_AC_LANG_F77],
3536
 
[AC_REQUIRE([AC_PROG_F77])
3537
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3538
 
])# _LT_AC_LANG_F77
3539
 
 
3540
 
 
3541
 
# AC_LIBTOOL_GCJ
3542
 
# --------------
3543
 
# enable support for GCJ libraries
3544
 
AC_DEFUN([AC_LIBTOOL_GCJ],
3545
 
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3546
 
])# AC_LIBTOOL_GCJ
3547
 
 
3548
 
 
3549
 
# _LT_AC_LANG_GCJ
3550
 
# ---------------
3551
 
AC_DEFUN([_LT_AC_LANG_GCJ],
3552
 
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3553
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3554
 
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3555
 
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3556
 
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3557
 
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3558
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3559
 
])# _LT_AC_LANG_GCJ
3560
 
 
3561
 
 
3562
 
# AC_LIBTOOL_RC
3563
 
# -------------
3564
 
# enable support for Windows resource files
3565
 
AC_DEFUN([AC_LIBTOOL_RC],
3566
 
[AC_REQUIRE([LT_AC_PROG_RC])
3567
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3568
 
])# AC_LIBTOOL_RC
3569
 
 
3570
 
 
3571
 
# AC_LIBTOOL_LANG_C_CONFIG
3572
 
# ------------------------
3573
 
# Ensure that the configuration vars for the C compiler are
3574
 
# suitably defined.  Those variables are subsequently used by
3575
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3576
 
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3577
 
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3578
 
[lt_save_CC="$CC"
3579
 
AC_LANG_PUSH(C)
3580
 
 
3581
 
# Source file extension for C test sources.
3582
 
ac_ext=c
3583
 
 
3584
 
# Object file extension for compiled C test sources.
3585
 
objext=o
3586
 
_LT_AC_TAGVAR(objext, $1)=$objext
3587
 
 
3588
 
# Code to be used in simple compile tests
3589
 
lt_simple_compile_test_code="int some_variable = 0;\n"
3590
 
 
3591
 
# Code to be used in simple link tests
3592
 
lt_simple_link_test_code='int main(){return(0);}\n'
3593
 
 
3594
 
_LT_AC_SYS_COMPILER
3595
 
 
3596
 
# save warnings/boilerplate of simple test code
3597
 
_LT_COMPILER_BOILERPLATE
3598
 
_LT_LINKER_BOILERPLATE
3599
 
 
3600
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3601
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3602
 
AC_LIBTOOL_PROG_CC_C_O($1)
3603
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3604
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3605
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3606
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3607
 
AC_LIBTOOL_SYS_LIB_STRIP
3608
 
AC_LIBTOOL_DLOPEN_SELF
3609
 
 
3610
 
# Report which library types will actually be built
3611
 
AC_MSG_CHECKING([if libtool supports shared libraries])
3612
 
AC_MSG_RESULT([$can_build_shared])
3613
 
 
3614
 
AC_MSG_CHECKING([whether to build shared libraries])
3615
 
test "$can_build_shared" = "no" && enable_shared=no
3616
 
 
3617
 
# On AIX, shared libraries and static libraries use the same namespace, and
3618
 
# are all built from PIC.
3619
 
case $host_os in
3620
 
aix3*)
3621
 
  test "$enable_shared" = yes && enable_static=no
3622
 
  if test -n "$RANLIB"; then
3623
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
3624
 
    postinstall_cmds='$RANLIB $lib'
3625
 
  fi
3626
 
  ;;
3627
 
 
3628
 
aix4* | aix5*)
3629
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3630
 
    test "$enable_shared" = yes && enable_static=no
3631
 
  fi
3632
 
    ;;
3633
 
esac
3634
 
AC_MSG_RESULT([$enable_shared])
3635
 
 
3636
 
AC_MSG_CHECKING([whether to build static libraries])
3637
 
# Make sure either enable_shared or enable_static is yes.
3638
 
test "$enable_shared" = yes || enable_static=yes
3639
 
AC_MSG_RESULT([$enable_static])
3640
 
 
3641
 
AC_LIBTOOL_CONFIG($1)
3642
 
 
3643
 
AC_LANG_POP
3644
 
CC="$lt_save_CC"
3645
 
])# AC_LIBTOOL_LANG_C_CONFIG
3646
 
 
3647
 
 
3648
 
# AC_LIBTOOL_LANG_CXX_CONFIG
3649
 
# --------------------------
3650
 
# Ensure that the configuration vars for the C compiler are
3651
 
# suitably defined.  Those variables are subsequently used by
3652
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3653
 
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3654
 
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3655
 
[AC_LANG_PUSH(C++)
3656
 
AC_REQUIRE([AC_PROG_CXX])
3657
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3658
 
 
3659
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3660
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3661
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3662
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3663
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3664
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3665
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3666
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3667
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3668
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3669
 
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3670
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3671
 
_LT_AC_TAGVAR(module_cmds, $1)=
3672
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3673
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3674
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3675
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3676
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3677
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3678
 
 
3679
 
# Dependencies to place before and after the object being linked:
3680
 
_LT_AC_TAGVAR(predep_objects, $1)=
3681
 
_LT_AC_TAGVAR(postdep_objects, $1)=
3682
 
_LT_AC_TAGVAR(predeps, $1)=
3683
 
_LT_AC_TAGVAR(postdeps, $1)=
3684
 
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3685
 
 
3686
 
# Source file extension for C++ test sources.
3687
 
ac_ext=cpp
3688
 
 
3689
 
# Object file extension for compiled C++ test sources.
3690
 
objext=o
3691
 
_LT_AC_TAGVAR(objext, $1)=$objext
3692
 
 
3693
 
# Code to be used in simple compile tests
3694
 
lt_simple_compile_test_code="int some_variable = 0;\n"
3695
 
 
3696
 
# Code to be used in simple link tests
3697
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
3698
 
 
3699
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3700
 
_LT_AC_SYS_COMPILER
3701
 
 
3702
 
# save warnings/boilerplate of simple test code
3703
 
_LT_COMPILER_BOILERPLATE
3704
 
_LT_LINKER_BOILERPLATE
3705
 
 
3706
 
# Allow CC to be a program name with arguments.
3707
 
lt_save_CC=$CC
3708
 
lt_save_LD=$LD
3709
 
lt_save_GCC=$GCC
3710
 
GCC=$GXX
3711
 
lt_save_with_gnu_ld=$with_gnu_ld
3712
 
lt_save_path_LD=$lt_cv_path_LD
3713
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3714
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3715
 
else
3716
 
  $as_unset lt_cv_prog_gnu_ld
3717
 
fi
3718
 
if test -n "${lt_cv_path_LDCXX+set}"; then
3719
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
3720
 
else
3721
 
  $as_unset lt_cv_path_LD
3722
 
fi
3723
 
test -z "${LDCXX+set}" || LD=$LDCXX
3724
 
CC=${CXX-"c++"}
3725
 
compiler=$CC
3726
 
_LT_AC_TAGVAR(compiler, $1)=$CC
3727
 
_LT_CC_BASENAME([$compiler])
3728
 
 
3729
 
# We don't want -fno-exception wen compiling C++ code, so set the
3730
 
# no_builtin_flag separately
3731
 
if test "$GXX" = yes; then
3732
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3733
 
else
3734
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3735
 
fi
3736
 
 
3737
 
if test "$GXX" = yes; then
3738
 
  # Set up default GNU C++ configuration
3739
 
 
3740
 
  AC_PROG_LD
3741
 
 
3742
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
3743
 
  # archiving commands below assume that GNU ld is being used.
3744
 
  if test "$with_gnu_ld" = yes; then
3745
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3746
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3747
 
 
3748
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3749
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3750
 
 
3751
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
3752
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3753
 
    #     investigate it a little bit more. (MM)
3754
 
    wlarc='${wl}'
3755
 
 
3756
 
    # ancient GNU ld didn't support --whole-archive et. al.
3757
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3758
 
        grep 'no-whole-archive' > /dev/null; then
3759
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3760
 
    else
3761
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3762
 
    fi
3763
 
  else
3764
 
    with_gnu_ld=no
3765
 
    wlarc=
3766
 
 
3767
 
    # A generic and very simple default shared library creation
3768
 
    # command for GNU C++ for the case where it uses the native
3769
 
    # linker, instead of GNU ld.  If possible, this setting should
3770
 
    # overridden to take advantage of the native linker features on
3771
 
    # the platform it is being used on.
3772
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3773
 
  fi
3774
 
 
3775
 
  # Commands to make compiler produce verbose output that lists
3776
 
  # what "hidden" libraries, object files and flags are used when
3777
 
  # linking a shared library.
3778
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3779
 
 
3780
 
else
3781
 
  GXX=no
3782
 
  with_gnu_ld=no
3783
 
  wlarc=
3784
 
fi
3785
 
 
3786
 
# PORTME: fill in a description of your system's C++ link characteristics
3787
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3788
 
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3789
 
case $host_os in
3790
 
  aix3*)
3791
 
    # FIXME: insert proper C++ library support
3792
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3793
 
    ;;
3794
 
  aix4* | aix5*)
3795
 
    if test "$host_cpu" = ia64; then
3796
 
      # On IA64, the linker does run time linking by default, so we don't
3797
 
      # have to do anything special.
3798
 
      aix_use_runtimelinking=no
3799
 
      exp_sym_flag='-Bexport'
3800
 
      no_entry_flag=""
3801
 
    else
3802
 
      aix_use_runtimelinking=no
3803
 
 
3804
 
      # Test if we are trying to use run time linking or normal
3805
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3806
 
      # need to do runtime linking.
3807
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3808
 
        for ld_flag in $LDFLAGS; do
3809
 
          case $ld_flag in
3810
 
          *-brtl*)
3811
 
            aix_use_runtimelinking=yes
3812
 
            break
3813
 
            ;;
3814
 
          esac
3815
 
        done
3816
 
        ;;
3817
 
      esac
3818
 
 
3819
 
      exp_sym_flag='-bexport'
3820
 
      no_entry_flag='-bnoentry'
3821
 
    fi
3822
 
 
3823
 
    # When large executables or shared objects are built, AIX ld can
3824
 
    # have problems creating the table of contents.  If linking a library
3825
 
    # or program results in "error TOC overflow" add -mminimal-toc to
3826
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3827
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3828
 
 
3829
 
    _LT_AC_TAGVAR(archive_cmds, $1)=''
3830
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3831
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3832
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3833
 
 
3834
 
    if test "$GXX" = yes; then
3835
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
3836
 
      # We only want to do this on AIX 4.2 and lower, the check
3837
 
      # below for broken collect2 doesn't work under 4.3+
3838
 
        collect2name=`${CC} -print-prog-name=collect2`
3839
 
        if test -f "$collect2name" && \
3840
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3841
 
        then
3842
 
          # We have reworked collect2
3843
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3844
 
        else
3845
 
          # We have old collect2
3846
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3847
 
          # It fails to find uninstalled libraries when the uninstalled
3848
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
3849
 
          # to unsupported forces relinking
3850
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3851
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3852
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3853
 
        fi
3854
 
        ;;
3855
 
      esac
3856
 
      shared_flag='-shared'
3857
 
      if test "$aix_use_runtimelinking" = yes; then
3858
 
        shared_flag="$shared_flag "'${wl}-G'
3859
 
      fi
3860
 
    else
3861
 
      # not using gcc
3862
 
      if test "$host_cpu" = ia64; then
3863
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3864
 
        # chokes on -Wl,-G. The following line is correct:
3865
 
        shared_flag='-G'
3866
 
      else
3867
 
        if test "$aix_use_runtimelinking" = yes; then
3868
 
          shared_flag='${wl}-G'
3869
 
        else
3870
 
          shared_flag='${wl}-bM:SRE'
3871
 
        fi
3872
 
      fi
3873
 
    fi
3874
 
 
3875
 
    # It seems that -bexpall does not export symbols beginning with
3876
 
    # underscore (_), so it is better to generate a list of symbols to export.
3877
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3878
 
    if test "$aix_use_runtimelinking" = yes; then
3879
 
      # Warning - without using the other runtime loading flags (-brtl),
3880
 
      # -berok will link without error, but may produce a broken library.
3881
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3882
 
      # Determine the default libpath from the value encoded in an empty executable.
3883
 
      _LT_AC_SYS_LIBPATH_AIX
3884
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3885
 
 
3886
 
      _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"
3887
 
     else
3888
 
      if test "$host_cpu" = ia64; then
3889
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3890
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3891
 
        _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"
3892
 
      else
3893
 
        # Determine the default libpath from the value encoded in an empty executable.
3894
 
        _LT_AC_SYS_LIBPATH_AIX
3895
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3896
 
        # Warning - without using the other run time loading flags,
3897
 
        # -berok will link without error, but may produce a broken library.
3898
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3899
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3900
 
        # Exported symbols can be pulled into shared objects from archives
3901
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3902
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3903
 
        # This is similar to how AIX traditionally builds its shared libraries.
3904
 
        _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'
3905
 
      fi
3906
 
    fi
3907
 
    ;;
3908
 
 
3909
 
  beos*)
3910
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3911
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3912
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3913
 
      # support --undefined.  This deserves some investigation.  FIXME
3914
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3915
 
    else
3916
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3917
 
    fi
3918
 
    ;;
3919
 
 
3920
 
  chorus*)
3921
 
    case $cc_basename in
3922
 
      *)
3923
 
        # FIXME: insert proper C++ library support
3924
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3925
 
        ;;
3926
 
    esac
3927
 
    ;;
3928
 
 
3929
 
  cygwin* | mingw* | pw32*)
3930
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3931
 
    # as there is no search path for DLLs.
3932
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3933
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3934
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
3935
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3936
 
 
3937
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3938
 
      _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'
3939
 
      # If the export-symbols file already is a .def file (1st line
3940
 
      # is EXPORTS), use it as is; otherwise, prepend...
3941
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3942
 
        cp $export_symbols $output_objdir/$soname.def;
3943
 
      else
3944
 
        echo EXPORTS > $output_objdir/$soname.def;
3945
 
        cat $export_symbols >> $output_objdir/$soname.def;
3946
 
      fi~
3947
 
      $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'
3948
 
    else
3949
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3950
 
    fi
3951
 
  ;;
3952
 
      darwin* | rhapsody*)
3953
 
        case $host_os in
3954
 
        rhapsody* | darwin1.[[012]])
3955
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3956
 
         ;;
3957
 
       *) # Darwin 1.3 on
3958
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3959
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3960
 
         else
3961
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
3962
 
             10.[[012]])
3963
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3964
 
               ;;
3965
 
             10.*)
3966
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3967
 
               ;;
3968
 
           esac
3969
 
         fi
3970
 
         ;;
3971
 
        esac
3972
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3973
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3974
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3975
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3976
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3977
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3978
 
 
3979
 
    if test "$GXX" = yes ; then
3980
 
      lt_int_apple_cc_single_mod=no
3981
 
      output_verbose_link_cmd='echo'
3982
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3983
 
       lt_int_apple_cc_single_mod=yes
3984
 
      fi
3985
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3986
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3987
 
      else
3988
 
          _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'
3989
 
        fi
3990
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3991
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3992
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3993
 
            _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}'
3994
 
          else
3995
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3996
 
          fi
3997
 
            _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}'
3998
 
      else
3999
 
      case $cc_basename in
4000
 
        xlc*)
4001
 
         output_verbose_link_cmd='echo'
4002
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
4003
 
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4004
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4005
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4006
 
          _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}'
4007
 
          ;;
4008
 
       *)
4009
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4010
 
          ;;
4011
 
      esac
4012
 
      fi
4013
 
        ;;
4014
 
 
4015
 
  dgux*)
4016
 
    case $cc_basename in
4017
 
      ec++*)
4018
 
        # FIXME: insert proper C++ library support
4019
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4020
 
        ;;
4021
 
      ghcx*)
4022
 
        # Green Hills C++ Compiler
4023
 
        # FIXME: insert proper C++ library support
4024
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4025
 
        ;;
4026
 
      *)
4027
 
        # FIXME: insert proper C++ library support
4028
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4029
 
        ;;
4030
 
    esac
4031
 
    ;;
4032
 
  freebsd[[12]]*)
4033
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
4034
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4035
 
    ;;
4036
 
  freebsd-elf*)
4037
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4038
 
    ;;
4039
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
4040
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4041
 
    # conventions
4042
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4043
 
    ;;
4044
 
  gnu*)
4045
 
    ;;
4046
 
  hpux9*)
4047
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4048
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4049
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4050
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4051
 
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4052
 
                                # but as the default
4053
 
                                # location of the library.
4054
 
 
4055
 
    case $cc_basename in
4056
 
    CC*)
4057
 
      # FIXME: insert proper C++ library support
4058
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4059
 
      ;;
4060
 
    aCC*)
4061
 
      _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'
4062
 
      # Commands to make compiler produce verbose output that lists
4063
 
      # what "hidden" libraries, object files and flags are used when
4064
 
      # linking a shared library.
4065
 
      #
4066
 
      # There doesn't appear to be a way to prevent this compiler from
4067
 
      # explicitly linking system object files so we need to strip them
4068
 
      # from the output so that they don't get included in the library
4069
 
      # dependencies.
4070
 
      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'
4071
 
      ;;
4072
 
    *)
4073
 
      if test "$GXX" = yes; then
4074
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4075
 
      else
4076
 
        # FIXME: insert proper C++ library support
4077
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4078
 
      fi
4079
 
      ;;
4080
 
    esac
4081
 
    ;;
4082
 
  hpux10*|hpux11*)
4083
 
    if test $with_gnu_ld = no; then
4084
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4085
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4086
 
 
4087
 
      case $host_cpu in
4088
 
      hppa*64*|ia64*)
4089
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4090
 
        ;;
4091
 
      *)
4092
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4093
 
        ;;
4094
 
      esac
4095
 
    fi
4096
 
    case $host_cpu in
4097
 
    hppa*64*|ia64*)
4098
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4099
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4100
 
      ;;
4101
 
    *)
4102
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4103
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4104
 
                                              # but as the default
4105
 
                                              # location of the library.
4106
 
      ;;
4107
 
    esac
4108
 
 
4109
 
    case $cc_basename in
4110
 
      CC*)
4111
 
        # FIXME: insert proper C++ library support
4112
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4113
 
        ;;
4114
 
      aCC*)
4115
 
        case $host_cpu in
4116
 
        hppa*64*)
4117
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4118
 
          ;;
4119
 
        ia64*)
4120
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4121
 
          ;;
4122
 
        *)
4123
 
          _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'
4124
 
          ;;
4125
 
        esac
4126
 
        # Commands to make compiler produce verbose output that lists
4127
 
        # what "hidden" libraries, object files and flags are used when
4128
 
        # linking a shared library.
4129
 
        #
4130
 
        # There doesn't appear to be a way to prevent this compiler from
4131
 
        # explicitly linking system object files so we need to strip them
4132
 
        # from the output so that they don't get included in the library
4133
 
        # dependencies.
4134
 
        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'
4135
 
        ;;
4136
 
      *)
4137
 
        if test "$GXX" = yes; then
4138
 
          if test $with_gnu_ld = no; then
4139
 
            case $host_cpu in
4140
 
            hppa*64*)
4141
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4142
 
              ;;
4143
 
            ia64*)
4144
 
              _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'
4145
 
              ;;
4146
 
            *)
4147
 
              _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'
4148
 
              ;;
4149
 
            esac
4150
 
          fi
4151
 
        else
4152
 
          # FIXME: insert proper C++ library support
4153
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4154
 
        fi
4155
 
        ;;
4156
 
    esac
4157
 
    ;;
4158
 
  interix3*)
4159
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
4160
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4161
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4162
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4163
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4164
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
4165
 
    # default) and relocated if they conflict, which is a slow very memory
4166
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
4167
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4168
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
4169
 
    _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'
4170
 
    _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'
4171
 
    ;;
4172
 
  irix5* | irix6*)
4173
 
    case $cc_basename in
4174
 
      CC*)
4175
 
        # SGI C++
4176
 
        _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'
4177
 
 
4178
 
        # Archives containing C++ object files must be created using
4179
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
4180
 
        # necessary to make sure instantiated templates are included
4181
 
        # in the archive.
4182
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4183
 
        ;;
4184
 
      *)
4185
 
        if test "$GXX" = yes; then
4186
 
          if test "$with_gnu_ld" = no; then
4187
 
            _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'
4188
 
          else
4189
 
            _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'
4190
 
          fi
4191
 
        fi
4192
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4193
 
        ;;
4194
 
    esac
4195
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4196
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4197
 
    ;;
4198
 
  linux*)
4199
 
    case $cc_basename in
4200
 
      KCC*)
4201
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4202
 
 
4203
 
        # KCC will only create a shared library if the output file
4204
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4205
 
        # to its proper name (with version) after linking.
4206
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4207
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
4208
 
        # Commands to make compiler produce verbose output that lists
4209
 
        # what "hidden" libraries, object files and flags are used when
4210
 
        # linking a shared library.
4211
 
        #
4212
 
        # There doesn't appear to be a way to prevent this compiler from
4213
 
        # explicitly linking system object files so we need to strip them
4214
 
        # from the output so that they don't get included in the library
4215
 
        # dependencies.
4216
 
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4217
 
 
4218
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4219
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4220
 
 
4221
 
        # Archives containing C++ object files must be created using
4222
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4223
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4224
 
        ;;
4225
 
      icpc*)
4226
 
        # Intel C++
4227
 
        with_gnu_ld=yes
4228
 
        # version 8.0 and above of icpc choke on multiply defined symbols
4229
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
4230
 
        # earlier do not add the objects themselves.
4231
 
        case `$CC -V 2>&1` in
4232
 
        *"Version 7."*)
4233
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4234
 
          _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'
4235
 
          ;;
4236
 
        *)  # Version 8.0 or newer
4237
 
          tmp_idyn=
4238
 
          case $host_cpu in
4239
 
            ia64*) tmp_idyn=' -i_dynamic';;
4240
 
          esac
4241
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4242
 
          _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'
4243
 
          ;;
4244
 
        esac
4245
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4246
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4247
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4248
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4249
 
        ;;
4250
 
      pgCC*)
4251
 
        # Portland Group C++ compiler
4252
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4253
 
        _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'
4254
 
 
4255
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4256
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4257
 
        _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'
4258
 
        ;;
4259
 
      cxx*)
4260
 
        # Compaq C++
4261
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4262
 
        _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'
4263
 
 
4264
 
        runpath_var=LD_RUN_PATH
4265
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4266
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4267
 
 
4268
 
        # Commands to make compiler produce verbose output that lists
4269
 
        # what "hidden" libraries, object files and flags are used when
4270
 
        # linking a shared library.
4271
 
        #
4272
 
        # There doesn't appear to be a way to prevent this compiler from
4273
 
        # explicitly linking system object files so we need to strip them
4274
 
        # from the output so that they don't get included in the library
4275
 
        # dependencies.
4276
 
        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'
4277
 
        ;;
4278
 
    esac
4279
 
    ;;
4280
 
  lynxos*)
4281
 
    # FIXME: insert proper C++ library support
4282
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4283
 
    ;;
4284
 
  m88k*)
4285
 
    # FIXME: insert proper C++ library support
4286
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4287
 
    ;;
4288
 
  mvs*)
4289
 
    case $cc_basename in
4290
 
      cxx*)
4291
 
        # FIXME: insert proper C++ library support
4292
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4293
 
        ;;
4294
 
      *)
4295
 
        # FIXME: insert proper C++ library support
4296
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4297
 
        ;;
4298
 
    esac
4299
 
    ;;
4300
 
  netbsd*)
4301
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4302
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4303
 
      wlarc=
4304
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4305
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4306
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4307
 
    fi
4308
 
    # Workaround some broken pre-1.5 toolchains
4309
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4310
 
    ;;
4311
 
  openbsd2*)
4312
 
    # C++ shared libraries are fairly broken
4313
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4314
 
    ;;
4315
 
  openbsd*)
4316
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4317
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4318
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4319
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4320
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4321
 
      _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'
4322
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4323
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4324
 
    fi
4325
 
    output_verbose_link_cmd='echo'
4326
 
    ;;
4327
 
  osf3*)
4328
 
    case $cc_basename in
4329
 
      KCC*)
4330
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4331
 
 
4332
 
        # KCC will only create a shared library if the output file
4333
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4334
 
        # to its proper name (with version) after linking.
4335
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4336
 
 
4337
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4338
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4339
 
 
4340
 
        # Archives containing C++ object files must be created using
4341
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4342
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4343
 
 
4344
 
        ;;
4345
 
      RCC*)
4346
 
        # Rational C++ 2.4.1
4347
 
        # FIXME: insert proper C++ library support
4348
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4349
 
        ;;
4350
 
      cxx*)
4351
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4352
 
        _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'
4353
 
 
4354
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4355
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4356
 
 
4357
 
        # Commands to make compiler produce verbose output that lists
4358
 
        # what "hidden" libraries, object files and flags are used when
4359
 
        # linking a shared library.
4360
 
        #
4361
 
        # There doesn't appear to be a way to prevent this compiler from
4362
 
        # explicitly linking system object files so we need to strip them
4363
 
        # from the output so that they don't get included in the library
4364
 
        # dependencies.
4365
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4366
 
        ;;
4367
 
      *)
4368
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4369
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4370
 
          _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'
4371
 
 
4372
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4373
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4374
 
 
4375
 
          # Commands to make compiler produce verbose output that lists
4376
 
          # what "hidden" libraries, object files and flags are used when
4377
 
          # linking a shared library.
4378
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4379
 
 
4380
 
        else
4381
 
          # FIXME: insert proper C++ library support
4382
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4383
 
        fi
4384
 
        ;;
4385
 
    esac
4386
 
    ;;
4387
 
  osf4* | osf5*)
4388
 
    case $cc_basename in
4389
 
      KCC*)
4390
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4391
 
 
4392
 
        # KCC will only create a shared library if the output file
4393
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4394
 
        # to its proper name (with version) after linking.
4395
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4396
 
 
4397
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4398
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4399
 
 
4400
 
        # Archives containing C++ object files must be created using
4401
 
        # the KAI C++ compiler.
4402
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4403
 
        ;;
4404
 
      RCC*)
4405
 
        # Rational C++ 2.4.1
4406
 
        # FIXME: insert proper C++ library support
4407
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4408
 
        ;;
4409
 
      cxx*)
4410
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4411
 
        _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'
4412
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4413
 
          echo "-hidden">> $lib.exp~
4414
 
          $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~
4415
 
          $rm $lib.exp'
4416
 
 
4417
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4418
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4419
 
 
4420
 
        # Commands to make compiler produce verbose output that lists
4421
 
        # what "hidden" libraries, object files and flags are used when
4422
 
        # linking a shared library.
4423
 
        #
4424
 
        # There doesn't appear to be a way to prevent this compiler from
4425
 
        # explicitly linking system object files so we need to strip them
4426
 
        # from the output so that they don't get included in the library
4427
 
        # dependencies.
4428
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4429
 
        ;;
4430
 
      *)
4431
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4432
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4433
 
         _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'
4434
 
 
4435
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4436
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4437
 
 
4438
 
          # Commands to make compiler produce verbose output that lists
4439
 
          # what "hidden" libraries, object files and flags are used when
4440
 
          # linking a shared library.
4441
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4442
 
 
4443
 
        else
4444
 
          # FIXME: insert proper C++ library support
4445
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4446
 
        fi
4447
 
        ;;
4448
 
    esac
4449
 
    ;;
4450
 
  psos*)
4451
 
    # FIXME: insert proper C++ library support
4452
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4453
 
    ;;
4454
 
  sunos4*)
4455
 
    case $cc_basename in
4456
 
      CC*)
4457
 
        # Sun C++ 4.x
4458
 
        # FIXME: insert proper C++ library support
4459
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4460
 
        ;;
4461
 
      lcc*)
4462
 
        # Lucid
4463
 
        # FIXME: insert proper C++ library support
4464
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4465
 
        ;;
4466
 
      *)
4467
 
        # FIXME: insert proper C++ library support
4468
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4469
 
        ;;
4470
 
    esac
4471
 
    ;;
4472
 
  solaris*)
4473
 
    case $cc_basename in
4474
 
      CC*)
4475
 
        # Sun C++ 4.2, 5.x and Centerline C++
4476
 
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4477
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4478
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4479
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4480
 
        $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'
4481
 
 
4482
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4483
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4484
 
        case $host_os in
4485
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4486
 
          *)
4487
 
            # The C++ compiler is used as linker so we must use $wl
4488
 
            # flag to pass the commands to the underlying system
4489
 
            # linker. We must also pass each convience library through
4490
 
            # to the system linker between allextract/defaultextract.
4491
 
            # The C++ compiler will combine linker options so we
4492
 
            # cannot just pass the convience library names through
4493
 
            # without $wl.
4494
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4495
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
4496
 
            ;;
4497
 
        esac
4498
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4499
 
 
4500
 
        output_verbose_link_cmd='echo'
4501
 
 
4502
 
        # Archives containing C++ object files must be created using
4503
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4504
 
        # necessary to make sure instantiated templates are included
4505
 
        # in the archive.
4506
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4507
 
        ;;
4508
 
      gcx*)
4509
 
        # Green Hills C++ Compiler
4510
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4511
 
 
4512
 
        # The C++ compiler must be used to create the archive.
4513
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4514
 
        ;;
4515
 
      *)
4516
 
        # GNU C++ compiler with Solaris linker
4517
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4518
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4519
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
4520
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4521
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4522
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4523
 
 
4524
 
            # Commands to make compiler produce verbose output that lists
4525
 
            # what "hidden" libraries, object files and flags are used when
4526
 
            # linking a shared library.
4527
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4528
 
          else
4529
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
4530
 
            # platform.
4531
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4532
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4533
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4534
 
 
4535
 
            # Commands to make compiler produce verbose output that lists
4536
 
            # what "hidden" libraries, object files and flags are used when
4537
 
            # linking a shared library.
4538
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4539
 
          fi
4540
 
 
4541
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4542
 
        fi
4543
 
        ;;
4544
 
    esac
4545
 
    ;;
4546
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4547
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4548
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4549
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4550
 
    runpath_var='LD_RUN_PATH'
4551
 
 
4552
 
    case $cc_basename in
4553
 
      CC*)
4554
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4555
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4556
 
        ;;
4557
 
      *)
4558
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4559
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4560
 
        ;;
4561
 
    esac
4562
 
    ;;
4563
 
  sysv5* | sco3.2v5* | sco5v6*)
4564
 
    # Note: We can NOT use -z defs as we might desire, because we do not
4565
 
    # link with -lc, and that would cause any symbols used from libc to
4566
 
    # always be unresolved, which means just about no library would
4567
 
    # ever link correctly.  If we're not using GNU ld we use -z text
4568
 
    # though, which does catch some bad symbols but isn't as heavy-handed
4569
 
    # as -z defs.
4570
 
    # For security reasons, it is highly recommended that you always
4571
 
    # use absolute paths for naming shared libraries, and exclude the
4572
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
4573
 
    # requires that you compile everything twice, which is a pain.
4574
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
4575
 
    # non-empty value in the environment.  Most likely only useful for
4576
 
    # creating official distributions of packages.
4577
 
    # This is a hack until libtool officially supports absolute path
4578
 
    # names for shared libraries.
4579
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4580
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4581
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4582
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4583
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4584
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4585
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4586
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4587
 
    runpath_var='LD_RUN_PATH'
4588
 
 
4589
 
    case $cc_basename in
4590
 
      CC*)
4591
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4592
 
        _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'
4593
 
        ;;
4594
 
      *)
4595
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4596
 
        _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'
4597
 
        ;;
4598
 
    esac
4599
 
    ;;
4600
 
  tandem*)
4601
 
    case $cc_basename in
4602
 
      NCC*)
4603
 
        # NonStop-UX NCC 3.20
4604
 
        # FIXME: insert proper C++ library support
4605
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4606
 
        ;;
4607
 
      *)
4608
 
        # FIXME: insert proper C++ library support
4609
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4610
 
        ;;
4611
 
    esac
4612
 
    ;;
4613
 
  vxworks*)
4614
 
    # FIXME: insert proper C++ library support
4615
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4616
 
    ;;
4617
 
  *)
4618
 
    # FIXME: insert proper C++ library support
4619
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4620
 
    ;;
4621
 
esac
4622
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4623
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4624
 
 
4625
 
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4626
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4627
 
 
4628
 
AC_LIBTOOL_POSTDEP_PREDEP($1)
4629
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4630
 
AC_LIBTOOL_PROG_CC_C_O($1)
4631
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4632
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4633
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4634
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4635
 
 
4636
 
AC_LIBTOOL_CONFIG($1)
4637
 
 
4638
 
AC_LANG_POP
4639
 
CC=$lt_save_CC
4640
 
LDCXX=$LD
4641
 
LD=$lt_save_LD
4642
 
GCC=$lt_save_GCC
4643
 
with_gnu_ldcxx=$with_gnu_ld
4644
 
with_gnu_ld=$lt_save_with_gnu_ld
4645
 
lt_cv_path_LDCXX=$lt_cv_path_LD
4646
 
lt_cv_path_LD=$lt_save_path_LD
4647
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4648
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4649
 
])# AC_LIBTOOL_LANG_CXX_CONFIG
4650
 
 
4651
 
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4652
 
# ------------------------------------
4653
 
# Figure out "hidden" library dependencies from verbose
4654
 
# compiler output when linking a shared library.
4655
 
# Parse the compiler output and extract the necessary
4656
 
# objects, libraries and library flags.
4657
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4658
 
dnl we can't use the lt_simple_compile_test_code here,
4659
 
dnl because it contains code intended for an executable,
4660
 
dnl not a library.  It's possible we should let each
4661
 
dnl tag define a new lt_????_link_test_code variable,
4662
 
dnl but it's only used here...
4663
 
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4664
 
int a;
4665
 
void foo (void) { a = 0; }
4666
 
EOF
4667
 
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4668
 
class Foo
4669
 
{
4670
 
public:
4671
 
  Foo (void) { a = 0; }
4672
 
private:
4673
 
  int a;
4674
 
};
4675
 
EOF
4676
 
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4677
 
      subroutine foo
4678
 
      implicit none
4679
 
      integer*4 a
4680
 
      a=0
4681
 
      return
4682
 
      end
4683
 
EOF
4684
 
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4685
 
public class foo {
4686
 
  private int a;
4687
 
  public void bar (void) {
4688
 
    a = 0;
4689
 
  }
4690
 
};
4691
 
EOF
4692
 
])
4693
 
dnl Parse the compiler output and extract the necessary
4694
 
dnl objects, libraries and library flags.
4695
 
if AC_TRY_EVAL(ac_compile); then
4696
 
  # Parse the compiler output and extract the necessary
4697
 
  # objects, libraries and library flags.
4698
 
 
4699
 
  # Sentinel used to keep track of whether or not we are before
4700
 
  # the conftest object file.
4701
 
  pre_test_object_deps_done=no
4702
 
 
4703
 
  # The `*' in the case matches for architectures that use `case' in
4704
 
  # $output_verbose_cmd can trigger glob expansion during the loop
4705
 
  # eval without this substitution.
4706
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4707
 
 
4708
 
  for p in `eval $output_verbose_link_cmd`; do
4709
 
    case $p in
4710
 
 
4711
 
    -L* | -R* | -l*)
4712
 
       # Some compilers place space between "-{L,R}" and the path.
4713
 
       # Remove the space.
4714
 
       if test $p = "-L" \
4715
 
          || test $p = "-R"; then
4716
 
         prev=$p
4717
 
         continue
4718
 
       else
4719
 
         prev=
4720
 
       fi
4721
 
 
4722
 
       if test "$pre_test_object_deps_done" = no; then
4723
 
         case $p in
4724
 
         -L* | -R*)
4725
 
           # Internal compiler library paths should come after those
4726
 
           # provided the user.  The postdeps already come after the
4727
 
           # user supplied libs so there is no need to process them.
4728
 
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4729
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4730
 
           else
4731
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4732
 
           fi
4733
 
           ;;
4734
 
         # The "-l" case would never come before the object being
4735
 
         # linked, so don't bother handling this case.
4736
 
         esac
4737
 
       else
4738
 
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4739
 
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4740
 
         else
4741
 
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4742
 
         fi
4743
 
       fi
4744
 
       ;;
4745
 
 
4746
 
    *.$objext)
4747
 
       # This assumes that the test object file only shows up
4748
 
       # once in the compiler output.
4749
 
       if test "$p" = "conftest.$objext"; then
4750
 
         pre_test_object_deps_done=yes
4751
 
         continue
4752
 
       fi
4753
 
 
4754
 
       if test "$pre_test_object_deps_done" = no; then
4755
 
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4756
 
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
4757
 
         else
4758
 
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4759
 
         fi
4760
 
       else
4761
 
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4762
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4763
 
         else
4764
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4765
 
         fi
4766
 
       fi
4767
 
       ;;
4768
 
 
4769
 
    *) ;; # Ignore the rest.
4770
 
 
4771
 
    esac
4772
 
  done
4773
 
 
4774
 
  # Clean up.
4775
 
  rm -f a.out a.exe
4776
 
else
4777
 
  echo "libtool.m4: error: problem compiling $1 test program"
4778
 
fi
4779
 
 
4780
 
$rm -f confest.$objext
4781
 
 
4782
 
# PORTME: override above test on systems where it is broken
4783
 
ifelse([$1],[CXX],
4784
 
[case $host_os in
4785
 
interix3*)
4786
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4787
 
  # hack all around it, let's just trust "g++" to DTRT.
4788
 
  _LT_AC_TAGVAR(predep_objects,$1)=
4789
 
  _LT_AC_TAGVAR(postdep_objects,$1)=
4790
 
  _LT_AC_TAGVAR(postdeps,$1)=
4791
 
  ;;
4792
 
 
4793
 
solaris*)
4794
 
  case $cc_basename in
4795
 
  CC*)
4796
 
    # Adding this requires a known-good setup of shared libraries for
4797
 
    # Sun compiler versions before 5.6, else PIC objects from an old
4798
 
    # archive will be linked into the output, leading to subtle bugs.
4799
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4800
 
    ;;
4801
 
  esac
4802
 
  ;;
4803
 
esac
4804
 
])
4805
 
 
4806
 
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4807
 
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4808
 
esac
4809
 
])# AC_LIBTOOL_POSTDEP_PREDEP
4810
 
 
4811
 
# AC_LIBTOOL_LANG_F77_CONFIG
4812
 
# --------------------------
4813
 
# Ensure that the configuration vars for the C compiler are
4814
 
# suitably defined.  Those variables are subsequently used by
4815
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4816
 
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4817
 
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4818
 
[AC_REQUIRE([AC_PROG_F77])
4819
 
AC_LANG_PUSH(Fortran 77)
4820
 
 
4821
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4822
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4823
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4824
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4825
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4826
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4827
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4828
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4829
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4830
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4831
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4832
 
_LT_AC_TAGVAR(module_cmds, $1)=
4833
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4834
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4835
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4836
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4837
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4838
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4839
 
 
4840
 
# Source file extension for f77 test sources.
4841
 
ac_ext=f
4842
 
 
4843
 
# Object file extension for compiled f77 test sources.
4844
 
objext=o
4845
 
_LT_AC_TAGVAR(objext, $1)=$objext
4846
 
 
4847
 
# Code to be used in simple compile tests
4848
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
4849
 
 
4850
 
# Code to be used in simple link tests
4851
 
lt_simple_link_test_code="      program t\n      end\n"
4852
 
 
4853
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4854
 
_LT_AC_SYS_COMPILER
4855
 
 
4856
 
# save warnings/boilerplate of simple test code
4857
 
_LT_COMPILER_BOILERPLATE
4858
 
_LT_LINKER_BOILERPLATE
4859
 
 
4860
 
# Allow CC to be a program name with arguments.
4861
 
lt_save_CC="$CC"
4862
 
CC=${F77-"f77"}
4863
 
compiler=$CC
4864
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4865
 
_LT_CC_BASENAME([$compiler])
4866
 
 
4867
 
AC_MSG_CHECKING([if libtool supports shared libraries])
4868
 
AC_MSG_RESULT([$can_build_shared])
4869
 
 
4870
 
AC_MSG_CHECKING([whether to build shared libraries])
4871
 
test "$can_build_shared" = "no" && enable_shared=no
4872
 
 
4873
 
# On AIX, shared libraries and static libraries use the same namespace, and
4874
 
# are all built from PIC.
4875
 
case $host_os in
4876
 
aix3*)
4877
 
  test "$enable_shared" = yes && enable_static=no
4878
 
  if test -n "$RANLIB"; then
4879
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
4880
 
    postinstall_cmds='$RANLIB $lib'
4881
 
  fi
4882
 
  ;;
4883
 
aix4* | aix5*)
4884
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4885
 
    test "$enable_shared" = yes && enable_static=no
4886
 
  fi
4887
 
  ;;
4888
 
esac
4889
 
AC_MSG_RESULT([$enable_shared])
4890
 
 
4891
 
AC_MSG_CHECKING([whether to build static libraries])
4892
 
# Make sure either enable_shared or enable_static is yes.
4893
 
test "$enable_shared" = yes || enable_static=yes
4894
 
AC_MSG_RESULT([$enable_static])
4895
 
 
4896
 
_LT_AC_TAGVAR(GCC, $1)="$G77"
4897
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4898
 
 
4899
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4900
 
AC_LIBTOOL_PROG_CC_C_O($1)
4901
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4902
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4903
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4904
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4905
 
 
4906
 
AC_LIBTOOL_CONFIG($1)
4907
 
 
4908
 
AC_LANG_POP
4909
 
CC="$lt_save_CC"
4910
 
])# AC_LIBTOOL_LANG_F77_CONFIG
4911
 
 
4912
 
 
4913
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
4914
 
# --------------------------
4915
 
# Ensure that the configuration vars for the C compiler are
4916
 
# suitably defined.  Those variables are subsequently used by
4917
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4918
 
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4919
 
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4920
 
[AC_LANG_SAVE
4921
 
 
4922
 
# Source file extension for Java test sources.
4923
 
ac_ext=java
4924
 
 
4925
 
# Object file extension for compiled Java test sources.
4926
 
objext=o
4927
 
_LT_AC_TAGVAR(objext, $1)=$objext
4928
 
 
4929
 
# Code to be used in simple compile tests
4930
 
lt_simple_compile_test_code="class foo {}\n"
4931
 
 
4932
 
# Code to be used in simple link tests
4933
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4934
 
 
4935
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4936
 
_LT_AC_SYS_COMPILER
4937
 
 
4938
 
# save warnings/boilerplate of simple test code
4939
 
_LT_COMPILER_BOILERPLATE
4940
 
_LT_LINKER_BOILERPLATE
4941
 
 
4942
 
# Allow CC to be a program name with arguments.
4943
 
lt_save_CC="$CC"
4944
 
CC=${GCJ-"gcj"}
4945
 
compiler=$CC
4946
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4947
 
_LT_CC_BASENAME([$compiler])
4948
 
 
4949
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4950
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4951
 
 
4952
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4953
 
 
4954
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4955
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4956
 
AC_LIBTOOL_PROG_CC_C_O($1)
4957
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4958
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4959
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4960
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4961
 
 
4962
 
AC_LIBTOOL_CONFIG($1)
4963
 
 
4964
 
AC_LANG_RESTORE
4965
 
CC="$lt_save_CC"
4966
 
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4967
 
 
4968
 
 
4969
 
# AC_LIBTOOL_LANG_RC_CONFIG
4970
 
# -------------------------
4971
 
# Ensure that the configuration vars for the Windows resource compiler are
4972
 
# suitably defined.  Those variables are subsequently used by
4973
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4974
 
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4975
 
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4976
 
[AC_LANG_SAVE
4977
 
 
4978
 
# Source file extension for RC test sources.
4979
 
ac_ext=rc
4980
 
 
4981
 
# Object file extension for compiled RC test sources.
4982
 
objext=o
4983
 
_LT_AC_TAGVAR(objext, $1)=$objext
4984
 
 
4985
 
# Code to be used in simple compile tests
4986
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4987
 
 
4988
 
# Code to be used in simple link tests
4989
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
4990
 
 
4991
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4992
 
_LT_AC_SYS_COMPILER
4993
 
 
4994
 
# save warnings/boilerplate of simple test code
4995
 
_LT_COMPILER_BOILERPLATE
4996
 
_LT_LINKER_BOILERPLATE
4997
 
 
4998
 
# Allow CC to be a program name with arguments.
4999
 
lt_save_CC="$CC"
5000
 
CC=${RC-"windres"}
5001
 
compiler=$CC
5002
 
_LT_AC_TAGVAR(compiler, $1)=$CC
5003
 
_LT_CC_BASENAME([$compiler])
5004
 
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5005
 
 
5006
 
AC_LIBTOOL_CONFIG($1)
5007
 
 
5008
 
AC_LANG_RESTORE
5009
 
CC="$lt_save_CC"
5010
 
])# AC_LIBTOOL_LANG_RC_CONFIG
5011
 
 
5012
 
 
5013
 
# AC_LIBTOOL_CONFIG([TAGNAME])
5014
 
# ----------------------------
5015
 
# If TAGNAME is not passed, then create an initial libtool script
5016
 
# with a default configuration from the untagged config vars.  Otherwise
5017
 
# add code to config.status for appending the configuration named by
5018
 
# TAGNAME from the matching tagged config vars.
5019
 
AC_DEFUN([AC_LIBTOOL_CONFIG],
5020
 
[# The else clause should only fire when bootstrapping the
5021
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
5022
 
# with your package, and you will get complaints that there are
5023
 
# no rules to generate ltmain.sh.
5024
 
if test -f "$ltmain"; then
5025
 
  # See if we are running on zsh, and set the options which allow our commands through
5026
 
  # without removal of \ escapes.
5027
 
  if test -n "${ZSH_VERSION+set}" ; then
5028
 
    setopt NO_GLOB_SUBST
5029
 
  fi
5030
 
  # Now quote all the things that may contain metacharacters while being
5031
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
5032
 
  # variables and quote the copies for generation of the libtool script.
5033
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5034
 
    SED SHELL STRIP \
5035
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5036
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5037
 
    deplibs_check_method reload_flag reload_cmds need_locks \
5038
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5039
 
    lt_cv_sys_global_symbol_to_c_name_address \
5040
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5041
 
    old_postinstall_cmds old_postuninstall_cmds \
5042
 
    _LT_AC_TAGVAR(compiler, $1) \
5043
 
    _LT_AC_TAGVAR(CC, $1) \
5044
 
    _LT_AC_TAGVAR(LD, $1) \
5045
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5046
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5047
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5048
 
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5049
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5050
 
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5051
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5052
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5053
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
5054
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5055
 
    _LT_AC_TAGVAR(predep_objects, $1) \
5056
 
    _LT_AC_TAGVAR(postdep_objects, $1) \
5057
 
    _LT_AC_TAGVAR(predeps, $1) \
5058
 
    _LT_AC_TAGVAR(postdeps, $1) \
5059
 
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5060
 
    _LT_AC_TAGVAR(archive_cmds, $1) \
5061
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5062
 
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
5063
 
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
5064
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5065
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
5066
 
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
5067
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
5068
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5069
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5070
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5071
 
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
5072
 
    _LT_AC_TAGVAR(module_cmds, $1) \
5073
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
5074
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5075
 
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
5076
 
    _LT_AC_TAGVAR(include_expsyms, $1); do
5077
 
 
5078
 
    case $var in
5079
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
5080
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5081
 
    _LT_AC_TAGVAR(archive_cmds, $1) | \
5082
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5083
 
    _LT_AC_TAGVAR(module_cmds, $1) | \
5084
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5085
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5086
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5087
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
5088
 
    postinstall_cmds | postuninstall_cmds | \
5089
 
    old_postinstall_cmds | old_postuninstall_cmds | \
5090
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5091
 
      # Double-quote double-evaled strings.
5092
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5093
 
      ;;
5094
 
    *)
5095
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5096
 
      ;;
5097
 
    esac
5098
 
  done
5099
 
 
5100
 
  case $lt_echo in
5101
 
  *'\[$]0 --fallback-echo"')
5102
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5103
 
    ;;
5104
 
  esac
5105
 
 
5106
 
ifelse([$1], [],
5107
 
  [cfgfile="${ofile}T"
5108
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5109
 
  $rm -f "$cfgfile"
5110
 
  AC_MSG_NOTICE([creating $ofile])],
5111
 
  [cfgfile="$ofile"])
5112
 
 
5113
 
  cat <<__EOF__ >> "$cfgfile"
5114
 
ifelse([$1], [],
5115
 
[#! $SHELL
5116
 
 
5117
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5118
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5119
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5120
 
#
5121
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5122
 
# Free Software Foundation, Inc.
5123
 
#
5124
 
# This file is part of GNU Libtool:
5125
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5126
 
#
5127
 
# This program is free software; you can redistribute it and/or modify
5128
 
# it under the terms of the GNU General Public License as published by
5129
 
# the Free Software Foundation; either version 2 of the License, or
5130
 
# (at your option) any later version.
5131
 
#
5132
 
# This program is distributed in the hope that it will be useful, but
5133
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
5134
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
5135
 
# General Public License for more details.
5136
 
#
5137
 
# You should have received a copy of the GNU General Public License
5138
 
# along with this program; if not, write to the Free Software
5139
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5140
 
#
5141
 
# As a special exception to the GNU General Public License, if you
5142
 
# distribute this file as part of a program that contains a
5143
 
# configuration script generated by Autoconf, you may include it under
5144
 
# the same distribution terms that you use for the rest of that program.
5145
 
 
5146
 
# A sed program that does not truncate output.
5147
 
SED=$lt_SED
5148
 
 
5149
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5150
 
Xsed="$SED -e 1s/^X//"
5151
 
 
5152
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
5153
 
# if CDPATH is set.
5154
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5155
 
 
5156
 
# The names of the tagged configurations supported by this script.
5157
 
available_tags=
5158
 
 
5159
 
# ### BEGIN LIBTOOL CONFIG],
5160
 
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5161
 
 
5162
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5163
 
 
5164
 
# Shell to use when invoking shell scripts.
5165
 
SHELL=$lt_SHELL
5166
 
 
5167
 
# Whether or not to build shared libraries.
5168
 
build_libtool_libs=$enable_shared
5169
 
 
5170
 
# Whether or not to build static libraries.
5171
 
build_old_libs=$enable_static
5172
 
 
5173
 
# Whether or not to add -lc for building shared libraries.
5174
 
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5175
 
 
5176
 
# Whether or not to disallow shared libs when runtime libs are static
5177
 
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5178
 
 
5179
 
# Whether or not to optimize for fast installation.
5180
 
fast_install=$enable_fast_install
5181
 
 
5182
 
# The host system.
5183
 
host_alias=$host_alias
5184
 
host=$host
5185
 
host_os=$host_os
5186
 
 
5187
 
# The build system.
5188
 
build_alias=$build_alias
5189
 
build=$build
5190
 
build_os=$build_os
5191
 
 
5192
 
# An echo program that does not interpret backslashes.
5193
 
echo=$lt_echo
5194
 
 
5195
 
# The archiver.
5196
 
AR=$lt_AR
5197
 
AR_FLAGS=$lt_AR_FLAGS
5198
 
 
5199
 
# A C compiler.
5200
 
LTCC=$lt_LTCC
5201
 
 
5202
 
# LTCC compiler flags.
5203
 
LTCFLAGS=$lt_LTCFLAGS
5204
 
 
5205
 
# A language-specific compiler.
5206
 
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5207
 
 
5208
 
# Is the compiler the GNU C compiler?
5209
 
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5210
 
 
5211
 
# An ERE matcher.
5212
 
EGREP=$lt_EGREP
5213
 
 
5214
 
# The linker used to build libraries.
5215
 
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5216
 
 
5217
 
# Whether we need hard or soft links.
5218
 
LN_S=$lt_LN_S
5219
 
 
5220
 
# A BSD-compatible nm program.
5221
 
NM=$lt_NM
5222
 
 
5223
 
# A symbol stripping program
5224
 
STRIP=$lt_STRIP
5225
 
 
5226
 
# Used to examine libraries when file_magic_cmd begins "file"
5227
 
MAGIC_CMD=$MAGIC_CMD
5228
 
 
5229
 
# Used on cygwin: DLL creation program.
5230
 
DLLTOOL="$DLLTOOL"
5231
 
 
5232
 
# Used on cygwin: object dumper.
5233
 
OBJDUMP="$OBJDUMP"
5234
 
 
5235
 
# Used on cygwin: assembler.
5236
 
AS="$AS"
5237
 
 
5238
 
# The name of the directory that contains temporary libtool files.
5239
 
objdir=$objdir
5240
 
 
5241
 
# How to create reloadable object files.
5242
 
reload_flag=$lt_reload_flag
5243
 
reload_cmds=$lt_reload_cmds
5244
 
 
5245
 
# How to pass a linker flag through the compiler.
5246
 
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5247
 
 
5248
 
# Object file suffix (normally "o").
5249
 
objext="$ac_objext"
5250
 
 
5251
 
# Old archive suffix (normally "a").
5252
 
libext="$libext"
5253
 
 
5254
 
# Shared library suffix (normally ".so").
5255
 
shrext_cmds='$shrext_cmds'
5256
 
 
5257
 
# Executable file suffix (normally "").
5258
 
exeext="$exeext"
5259
 
 
5260
 
# Additional compiler flags for building library objects.
5261
 
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5262
 
pic_mode=$pic_mode
5263
 
 
5264
 
# What is the maximum length of a command?
5265
 
max_cmd_len=$lt_cv_sys_max_cmd_len
5266
 
 
5267
 
# Does compiler simultaneously support -c and -o options?
5268
 
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5269
 
 
5270
 
# Must we lock files when doing compilation?
5271
 
need_locks=$lt_need_locks
5272
 
 
5273
 
# Do we need the lib prefix for modules?
5274
 
need_lib_prefix=$need_lib_prefix
5275
 
 
5276
 
# Do we need a version for libraries?
5277
 
need_version=$need_version
5278
 
 
5279
 
# Whether dlopen is supported.
5280
 
dlopen_support=$enable_dlopen
5281
 
 
5282
 
# Whether dlopen of programs is supported.
5283
 
dlopen_self=$enable_dlopen_self
5284
 
 
5285
 
# Whether dlopen of statically linked programs is supported.
5286
 
dlopen_self_static=$enable_dlopen_self_static
5287
 
 
5288
 
# Compiler flag to prevent dynamic linking.
5289
 
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5290
 
 
5291
 
# Compiler flag to turn off builtin functions.
5292
 
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5293
 
 
5294
 
# Compiler flag to allow reflexive dlopens.
5295
 
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5296
 
 
5297
 
# Compiler flag to generate shared objects directly from archives.
5298
 
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5299
 
 
5300
 
# Compiler flag to generate thread-safe objects.
5301
 
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5302
 
 
5303
 
# Library versioning type.
5304
 
version_type=$version_type
5305
 
 
5306
 
# Format of library name prefix.
5307
 
libname_spec=$lt_libname_spec
5308
 
 
5309
 
# List of archive names.  First name is the real one, the rest are links.
5310
 
# The last name is the one that the linker finds with -lNAME.
5311
 
library_names_spec=$lt_library_names_spec
5312
 
 
5313
 
# The coded name of the library, if different from the real name.
5314
 
soname_spec=$lt_soname_spec
5315
 
 
5316
 
# Commands used to build and install an old-style archive.
5317
 
RANLIB=$lt_RANLIB
5318
 
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5319
 
old_postinstall_cmds=$lt_old_postinstall_cmds
5320
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5321
 
 
5322
 
# Create an old-style archive from a shared archive.
5323
 
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5324
 
 
5325
 
# Create a temporary old-style archive to link instead of a shared archive.
5326
 
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5327
 
 
5328
 
# Commands used to build and install a shared archive.
5329
 
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5330
 
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5331
 
postinstall_cmds=$lt_postinstall_cmds
5332
 
postuninstall_cmds=$lt_postuninstall_cmds
5333
 
 
5334
 
# Commands used to build a loadable module (assumed same as above if empty)
5335
 
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5336
 
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5337
 
 
5338
 
# Commands to strip libraries.
5339
 
old_striplib=$lt_old_striplib
5340
 
striplib=$lt_striplib
5341
 
 
5342
 
# Dependencies to place before the objects being linked to create a
5343
 
# shared library.
5344
 
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5345
 
 
5346
 
# Dependencies to place after the objects being linked to create a
5347
 
# shared library.
5348
 
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5349
 
 
5350
 
# Dependencies to place before the objects being linked to create a
5351
 
# shared library.
5352
 
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5353
 
 
5354
 
# Dependencies to place after the objects being linked to create a
5355
 
# shared library.
5356
 
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5357
 
 
5358
 
# The library search path used internally by the compiler when linking
5359
 
# a shared library.
5360
 
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5361
 
 
5362
 
# Method to check whether dependent libraries are shared objects.
5363
 
deplibs_check_method=$lt_deplibs_check_method
5364
 
 
5365
 
# Command to use when deplibs_check_method == file_magic.
5366
 
file_magic_cmd=$lt_file_magic_cmd
5367
 
 
5368
 
# Flag that allows shared libraries with undefined symbols to be built.
5369
 
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5370
 
 
5371
 
# Flag that forces no undefined symbols.
5372
 
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5373
 
 
5374
 
# Commands used to finish a libtool library installation in a directory.
5375
 
finish_cmds=$lt_finish_cmds
5376
 
 
5377
 
# Same as above, but a single script fragment to be evaled but not shown.
5378
 
finish_eval=$lt_finish_eval
5379
 
 
5380
 
# Take the output of nm and produce a listing of raw symbols and C names.
5381
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5382
 
 
5383
 
# Transform the output of nm in a proper C declaration
5384
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5385
 
 
5386
 
# Transform the output of nm in a C name address pair
5387
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5388
 
 
5389
 
# This is the shared library runtime path variable.
5390
 
runpath_var=$runpath_var
5391
 
 
5392
 
# This is the shared library path variable.
5393
 
shlibpath_var=$shlibpath_var
5394
 
 
5395
 
# Is shlibpath searched before the hard-coded library search path?
5396
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5397
 
 
5398
 
# How to hardcode a shared library path into an executable.
5399
 
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5400
 
 
5401
 
# Whether we should hardcode library paths into libraries.
5402
 
hardcode_into_libs=$hardcode_into_libs
5403
 
 
5404
 
# Flag to hardcode \$libdir into a binary during linking.
5405
 
# This must work even if \$libdir does not exist.
5406
 
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5407
 
 
5408
 
# If ld is used when linking, flag to hardcode \$libdir into
5409
 
# a binary during linking. This must work even if \$libdir does
5410
 
# not exist.
5411
 
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5412
 
 
5413
 
# Whether we need a single -rpath flag with a separated argument.
5414
 
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5415
 
 
5416
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5417
 
# resulting binary.
5418
 
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5419
 
 
5420
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5421
 
# resulting binary.
5422
 
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5423
 
 
5424
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5425
 
# the resulting binary.
5426
 
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5427
 
 
5428
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
5429
 
# and all subsequent libraries and executables linked against it.
5430
 
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5431
 
 
5432
 
# Variables whose values should be saved in libtool wrapper scripts and
5433
 
# restored at relink time.
5434
 
variables_saved_for_relink="$variables_saved_for_relink"
5435
 
 
5436
 
# Whether libtool must link a program against all its dependency libraries.
5437
 
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5438
 
 
5439
 
# Compile-time system search path for libraries
5440
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5441
 
 
5442
 
# Run-time system search path for libraries
5443
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5444
 
 
5445
 
# Fix the shell variable \$srcfile for the compiler.
5446
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5447
 
 
5448
 
# Set to yes if exported symbols are required.
5449
 
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5450
 
 
5451
 
# The commands to list exported symbols.
5452
 
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5453
 
 
5454
 
# The commands to extract the exported symbol list from a shared archive.
5455
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5456
 
 
5457
 
# Symbols that should not be listed in the preloaded symbols.
5458
 
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5459
 
 
5460
 
# Symbols that must always be exported.
5461
 
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5462
 
 
5463
 
ifelse([$1],[],
5464
 
[# ### END LIBTOOL CONFIG],
5465
 
[# ### END LIBTOOL TAG CONFIG: $tagname])
5466
 
 
5467
 
__EOF__
5468
 
 
5469
 
ifelse([$1],[], [
5470
 
  case $host_os in
5471
 
  aix3*)
5472
 
    cat <<\EOF >> "$cfgfile"
5473
 
 
5474
 
# AIX sometimes has problems with the GCC collect2 program.  For some
5475
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
5476
 
# vanish in a puff of smoke.
5477
 
if test "X${COLLECT_NAMES+set}" != Xset; then
5478
 
  COLLECT_NAMES=
5479
 
  export COLLECT_NAMES
5480
 
fi
5481
 
EOF
5482
 
    ;;
5483
 
  esac
5484
 
 
5485
 
  # We use sed instead of cat because bash on DJGPP gets confused if
5486
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
5487
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
5488
 
  # is reportedly fixed, but why not run on old versions too?
5489
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5490
 
 
5491
 
  mv -f "$cfgfile" "$ofile" || \
5492
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5493
 
  chmod +x "$ofile"
5494
 
])
5495
 
else
5496
 
  # If there is no Makefile yet, we rely on a make rule to execute
5497
 
  # `config.status --recheck' to rerun these tests and create the
5498
 
  # libtool script then.
5499
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5500
 
  if test -f "$ltmain_in"; then
5501
 
    test -f Makefile && make "$ltmain"
5502
 
  fi
5503
 
fi
5504
 
])# AC_LIBTOOL_CONFIG
5505
 
 
5506
 
 
5507
 
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5508
 
# -------------------------------------------
5509
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5510
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5511
 
 
5512
 
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
4280
AC_SUBST([LIBM])
 
4281
])# LT_LIB_M
 
4282
 
 
4283
# Old name:
 
4284
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 
4285
dnl aclocal-1.4 backwards compatibility:
 
4286
dnl AC_DEFUN([AC_CHECK_LIBM], [])
 
4287
 
 
4288
 
 
4289
# _LT_COMPILER_NO_RTTI([TAGNAME])
 
4290
# -------------------------------
 
4291
m4_defun([_LT_COMPILER_NO_RTTI],
 
4292
[m4_require([_LT_TAG_COMPILER])dnl
 
4293
 
 
4294
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5513
4295
 
5514
4296
if test "$GCC" = yes; then
5515
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
4297
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5516
4298
 
5517
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
4299
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5518
4300
    lt_cv_prog_compiler_rtti_exceptions,
5519
4301
    [-fno-rtti -fno-exceptions], [],
5520
 
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
4302
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5521
4303
fi
5522
 
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5523
 
 
5524
 
 
5525
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5526
 
# ---------------------------------
5527
 
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5528
 
[AC_REQUIRE([AC_CANONICAL_HOST])
5529
 
AC_REQUIRE([AC_PROG_NM])
5530
 
AC_REQUIRE([AC_OBJEXT])
 
4304
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 
4305
        [Compiler flag to turn off builtin functions])
 
4306
])# _LT_COMPILER_NO_RTTI
 
4307
 
 
4308
 
 
4309
# _LT_CMD_GLOBAL_SYMBOLS
 
4310
# ----------------------
 
4311
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 
4312
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
4313
AC_REQUIRE([AC_PROG_CC])dnl
 
4314
AC_REQUIRE([LT_PATH_NM])dnl
 
4315
AC_REQUIRE([LT_PATH_LD])dnl
 
4316
m4_require([_LT_DECL_SED])dnl
 
4317
m4_require([_LT_DECL_EGREP])dnl
 
4318
m4_require([_LT_TAG_COMPILER])dnl
 
4319
 
5531
4320
# Check for command to grab the raw symbol name followed by C symbol from nm.
5532
4321
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5533
4322
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5541
4330
# Regexp to match symbols that can be accessed directly from C.
5542
4331
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5543
4332
 
5544
 
# Transform an extracted symbol line into a proper C declaration
5545
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5546
 
 
5547
 
# Transform an extracted symbol line into symbol name and symbol address
5548
 
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'"
5549
 
 
5550
4333
# Define system-specific variables.
5551
4334
case $host_os in
5552
4335
aix*)
5553
4336
  symcode='[[BCDT]]'
5554
4337
  ;;
5555
 
cygwin* | mingw* | pw32*)
 
4338
cygwin* | mingw* | pw32* | cegcc*)
5556
4339
  symcode='[[ABCDGISTW]]'
5557
4340
  ;;
5558
 
hpux*) # Its linker distinguishes data from code symbols
 
4341
hpux*)
5559
4342
  if test "$host_cpu" = ia64; then
5560
4343
    symcode='[[ABCDEGRST]]'
5561
4344
  fi
5562
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5563
 
  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'"
5564
 
  ;;
5565
 
linux*)
5566
 
  if test "$host_cpu" = ia64; then
5567
 
    symcode='[[ABCDGIRSTW]]'
5568
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5569
 
    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'"
5570
 
  fi
5571
4345
  ;;
5572
4346
irix* | nonstopux*)
5573
4347
  symcode='[[BCDEGRST]]'
5592
4366
  ;;
5593
4367
esac
5594
4368
 
 
4369
# If we're using GNU nm, then use its standard symbol codes.
 
4370
case `$NM -V 2>&1` in
 
4371
*GNU* | *'with BFD'*)
 
4372
  symcode='[[ABCDGIRSTW]]' ;;
 
4373
esac
 
4374
 
 
4375
# Transform an extracted symbol line into a proper C declaration.
 
4376
# Some systems (esp. on ia64) link data and code symbols differently,
 
4377
# so use this general approach.
 
4378
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4379
 
 
4380
# Transform an extracted symbol line into symbol name and symbol address
 
4381
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4382
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
4383
 
5595
4384
# Handle CRLF in mingw tool chain
5596
4385
opt_cr=
5597
4386
case $build_os in
5598
4387
mingw*)
5599
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
4388
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5600
4389
  ;;
5601
4390
esac
5602
4391
 
5603
 
# If we're using GNU nm, then use its standard symbol codes.
5604
 
case `$NM -V 2>&1` in
5605
 
*GNU* | *'with BFD'*)
5606
 
  symcode='[[ABCDGIRSTW]]' ;;
5607
 
esac
5608
 
 
5609
 
# Try without a prefix undercore, then with it.
 
4392
# Try without a prefix underscore, then with it.
5610
4393
for ac_symprfx in "" "_"; do
5611
4394
 
5612
4395
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5613
4396
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5614
4397
 
5615
4398
  # Write the raw and C identifiers.
5616
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4399
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4400
    # Fake it for dumpbin and say T for any non-static function
 
4401
    # and D for any global variable.
 
4402
    # Also find C++ and __fastcall symbols from MSVC++,
 
4403
    # which start with @ or ?.
 
4404
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
 
4405
"     {last_section=section; section=\$ 3};"\
 
4406
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
4407
"     \$ 0!~/External *\|/{next};"\
 
4408
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
4409
"     {if(hide[section]) next};"\
 
4410
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
4411
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
4412
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
4413
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
4414
"     ' prfx=^$ac_symprfx]"
 
4415
  else
 
4416
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4417
  fi
5617
4418
 
5618
4419
  # Check to see that the pipe works correctly.
5619
4420
  pipe_works=no
5620
4421
 
5621
4422
  rm -f conftest*
5622
 
  cat > conftest.$ac_ext <<EOF
 
4423
  cat > conftest.$ac_ext <<_LT_EOF
5623
4424
#ifdef __cplusplus
5624
4425
extern "C" {
5625
4426
#endif
5626
4427
char nm_test_var;
5627
 
void nm_test_func(){}
 
4428
void nm_test_func(void);
 
4429
void nm_test_func(void){}
5628
4430
#ifdef __cplusplus
5629
4431
}
5630
4432
#endif
5631
4433
int main(){nm_test_var='a';nm_test_func();return(0);}
5632
 
EOF
 
4434
_LT_EOF
5633
4435
 
5634
4436
  if AC_TRY_EVAL(ac_compile); then
5635
4437
    # Now try to grab the symbols.
5643
4445
      fi
5644
4446
 
5645
4447
      # Make sure that we snagged all the symbols we need.
5646
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5647
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5648
 
          cat <<EOF > conftest.$ac_ext
 
4448
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
4449
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
4450
          cat <<_LT_EOF > conftest.$ac_ext
5649
4451
#ifdef __cplusplus
5650
4452
extern "C" {
5651
4453
#endif
5652
4454
 
5653
 
EOF
 
4455
_LT_EOF
5654
4456
          # Now generate the symbol file.
5655
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5656
 
 
5657
 
          cat <<EOF >> conftest.$ac_ext
5658
 
#if defined (__STDC__) && __STDC__
5659
 
# define lt_ptr_t void *
5660
 
#else
5661
 
# define lt_ptr_t char *
5662
 
# define const
5663
 
#endif
5664
 
 
5665
 
/* The mapping between symbol names and symbols. */
 
4457
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
4458
 
 
4459
          cat <<_LT_EOF >> conftest.$ac_ext
 
4460
 
 
4461
/* The mapping between symbol names and symbols.  */
5666
4462
const struct {
5667
4463
  const char *name;
5668
 
  lt_ptr_t address;
 
4464
  void       *address;
5669
4465
}
5670
 
lt_preloaded_symbols[[]] =
 
4466
lt__PROGRAM__LTX_preloaded_symbols[[]] =
5671
4467
{
5672
 
EOF
5673
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5674
 
          cat <<\EOF >> conftest.$ac_ext
5675
 
  {0, (lt_ptr_t) 0}
 
4468
  { "@PROGRAM@", (void *) 0 },
 
4469
_LT_EOF
 
4470
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
4471
          cat <<\_LT_EOF >> conftest.$ac_ext
 
4472
  {0, (void *) 0}
5676
4473
};
5677
4474
 
 
4475
/* This works around a problem in FreeBSD linker */
 
4476
#ifdef FREEBSD_WORKAROUND
 
4477
static const void *lt_preloaded_setup() {
 
4478
  return lt__PROGRAM__LTX_preloaded_symbols;
 
4479
}
 
4480
#endif
 
4481
 
5678
4482
#ifdef __cplusplus
5679
4483
}
5680
4484
#endif
5681
 
EOF
 
4485
_LT_EOF
5682
4486
          # Now try linking the two files.
5683
4487
          mv conftest.$ac_objext conftstm.$ac_objext
5684
4488
          lt_save_LIBS="$LIBS"
5685
4489
          lt_save_CFLAGS="$CFLAGS"
5686
4490
          LIBS="conftstm.$ac_objext"
5687
 
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
4491
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5688
4492
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5689
4493
            pipe_works=yes
5690
4494
          fi
5703
4507
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5704
4508
    cat conftest.$ac_ext >&5
5705
4509
  fi
5706
 
  rm -f conftest* conftst*
 
4510
  rm -rf conftest* conftst*
5707
4511
 
5708
4512
  # Do not use the global_symbol_pipe unless it works.
5709
4513
  if test "$pipe_works" = yes; then
5721
4525
else
5722
4526
  AC_MSG_RESULT(ok)
5723
4527
fi
5724
 
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5725
 
 
5726
 
 
5727
 
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5728
 
# ---------------------------------------
5729
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5730
 
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5731
 
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5732
 
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 
4528
 
 
4529
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 
4530
    [Take the output of nm and produce a listing of raw symbols and C names])
 
4531
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 
4532
    [Transform the output of nm in a proper C declaration])
 
4533
_LT_DECL([global_symbol_to_c_name_address],
 
4534
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
 
4535
    [Transform the output of nm in a C name address pair])
 
4536
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 
4537
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 
4538
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
4539
]) # _LT_CMD_GLOBAL_SYMBOLS
 
4540
 
 
4541
 
 
4542
# _LT_COMPILER_PIC([TAGNAME])
 
4543
# ---------------------------
 
4544
m4_defun([_LT_COMPILER_PIC],
 
4545
[m4_require([_LT_TAG_COMPILER])dnl
 
4546
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
 
4547
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4548
_LT_TAGVAR(lt_prog_compiler_static, $1)=
5733
4549
 
5734
4550
AC_MSG_CHECKING([for $compiler option to produce PIC])
5735
 
 ifelse([$1],[CXX],[
 
4551
m4_if([$1], [CXX], [
5736
4552
  # C++ specific cases for pic, static, wl, etc.
5737
4553
  if test "$GXX" = yes; then
5738
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5739
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4554
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4555
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5740
4556
 
5741
4557
    case $host_os in
5742
4558
    aix*)
5743
4559
      # All AIX code is PIC.
5744
4560
      if test "$host_cpu" = ia64; then
5745
4561
        # AIX 5 now supports IA64 processor
5746
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4562
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5747
4563
      fi
5748
4564
      ;;
 
4565
 
5749
4566
    amigaos*)
5750
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5751
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5752
 
      # like `-m68040'.
5753
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4567
      case $host_cpu in
 
4568
      powerpc)
 
4569
            # see comment about AmigaOS4 .so support
 
4570
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4571
        ;;
 
4572
      m68k)
 
4573
            # FIXME: we need at least 68020 code to build shared libraries, but
 
4574
            # adding the `-m68020' flag to GCC prevents building anything better,
 
4575
            # like `-m68040'.
 
4576
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4577
        ;;
 
4578
      esac
5754
4579
      ;;
5755
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4580
 
 
4581
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5756
4582
      # PIC is the default for these OSes.
5757
4583
      ;;
5758
 
    mingw* | os2* | pw32*)
 
4584
    mingw* | cygwin* | os2* | pw32* | cegcc*)
5759
4585
      # This hack is so that the source file can tell whether it is being
5760
4586
      # built for inclusion in a dll (and should export symbols for example).
5761
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
4587
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
4588
      # (--disable-auto-import) libraries
 
4589
      m4_if([$1], [GCJ], [],
 
4590
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5762
4591
      ;;
5763
4592
    darwin* | rhapsody*)
5764
4593
      # PIC is the default on this platform
5765
4594
      # Common symbols not allowed in MH_DYLIB files
5766
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4595
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5767
4596
      ;;
5768
4597
    *djgpp*)
5769
4598
      # DJGPP does not support shared libraries at all
5770
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
4599
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5771
4600
      ;;
5772
 
    interix3*)
 
4601
    interix[[3-9]]*)
5773
4602
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5774
4603
      # Instead, we relocate shared libraries at runtime.
5775
4604
      ;;
5776
4605
    sysv4*MP*)
5777
4606
      if test -d /usr/nec; then
5778
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
4607
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5779
4608
      fi
5780
4609
      ;;
5781
4610
    hpux*)
5782
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5783
 
      # not for PA HP-UX.
 
4611
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
4612
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
4613
      # sets the default TLS model and affects inlining.
5784
4614
      case $host_cpu in
5785
 
      hppa*64*|ia64*)
 
4615
      hppa*64*)
5786
4616
        ;;
5787
4617
      *)
5788
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4618
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5789
4619
        ;;
5790
4620
      esac
5791
4621
      ;;
 
4622
    *qnx* | *nto*)
 
4623
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4624
      # it will coredump.
 
4625
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4626
      ;;
5792
4627
    *)
5793
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4628
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5794
4629
      ;;
5795
4630
    esac
5796
4631
  else
5797
4632
    case $host_os in
5798
 
      aix4* | aix5*)
 
4633
      aix[[4-9]]*)
5799
4634
        # All AIX code is PIC.
5800
4635
        if test "$host_cpu" = ia64; then
5801
4636
          # AIX 5 now supports IA64 processor
5802
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4637
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5803
4638
        else
5804
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
4639
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5805
4640
        fi
5806
4641
        ;;
5807
4642
      chorus*)
5808
4643
        case $cc_basename in
5809
4644
        cxch68*)
5810
4645
          # Green Hills C++ Compiler
5811
 
          # _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"
 
4646
          # _LT_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"
5812
4647
          ;;
5813
4648
        esac
5814
4649
        ;;
5815
 
       darwin*)
5816
 
         # PIC is the default on this platform
5817
 
         # Common symbols not allowed in MH_DYLIB files
5818
 
         case $cc_basename in
5819
 
           xlc*)
5820
 
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5821
 
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5822
 
           ;;
5823
 
         esac
5824
 
       ;;
5825
4650
      dgux*)
5826
4651
        case $cc_basename in
5827
4652
          ec++*)
5828
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4653
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5829
4654
            ;;
5830
4655
          ghcx*)
5831
4656
            # Green Hills C++ Compiler
5832
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4657
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5833
4658
            ;;
5834
4659
          *)
5835
4660
            ;;
5836
4661
        esac
5837
4662
        ;;
5838
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
4663
      freebsd* | dragonfly*)
5839
4664
        # FreeBSD uses GNU C++
5840
4665
        ;;
5841
4666
      hpux9* | hpux10* | hpux11*)
5842
4667
        case $cc_basename in
5843
4668
          CC*)
5844
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5845
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4669
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4670
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5846
4671
            if test "$host_cpu" != ia64; then
5847
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4672
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5848
4673
            fi
5849
4674
            ;;
5850
4675
          aCC*)
5851
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5852
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4676
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4677
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5853
4678
            case $host_cpu in
5854
4679
            hppa*64*|ia64*)
5855
4680
              # +Z the default
5856
4681
              ;;
5857
4682
            *)
5858
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4683
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5859
4684
              ;;
5860
4685
            esac
5861
4686
            ;;
5870
4695
      irix5* | irix6* | nonstopux*)
5871
4696
        case $cc_basename in
5872
4697
          CC*)
5873
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5874
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4698
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4699
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5875
4700
            # CC pic flag -KPIC is the default.
5876
4701
            ;;
5877
4702
          *)
5878
4703
            ;;
5879
4704
        esac
5880
4705
        ;;
5881
 
      linux*)
 
4706
      linux* | k*bsd*-gnu)
5882
4707
        case $cc_basename in
5883
4708
          KCC*)
5884
4709
            # KAI C++ Compiler
5885
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5886
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5887
 
            ;;
5888
 
          icpc* | ecpc*)
5889
 
            # Intel C++
5890
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5891
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5892
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5893
 
            ;;
5894
 
          pgCC*)
5895
 
            # Portland Group C++ compiler.
5896
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5897
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5898
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4710
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4711
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4712
            ;;
 
4713
          ecpc* )
 
4714
            # old Intel C++ for x86_64 which still supported -KPIC.
 
4715
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4716
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4717
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4718
            ;;
 
4719
          icpc* )
 
4720
            # Intel C++, used to be incompatible with GCC.
 
4721
            # ICC 10 doesn't accept -KPIC any more.
 
4722
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4723
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4724
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4725
            ;;
 
4726
          pgCC* | pgcpp*)
 
4727
            # Portland Group C++ compiler
 
4728
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4729
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4730
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5899
4731
            ;;
5900
4732
          cxx*)
5901
4733
            # Compaq C++
5902
4734
            # Make sure the PIC flag is empty.  It appears that all Alpha
5903
4735
            # Linux and Compaq Tru64 Unix objects are PIC.
5904
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5905
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4736
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4737
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4738
            ;;
 
4739
          xlc* | xlC*)
 
4740
            # IBM XL 8.0 on PPC
 
4741
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4742
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
4743
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5906
4744
            ;;
5907
4745
          *)
 
4746
            case `$CC -V 2>&1 | sed 5q` in
 
4747
            *Sun\ C*)
 
4748
              # Sun C++ 5.9
 
4749
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4750
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4751
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4752
              ;;
 
4753
            esac
5908
4754
            ;;
5909
4755
        esac
5910
4756
        ;;
5915
4761
      mvs*)
5916
4762
        case $cc_basename in
5917
4763
          cxx*)
5918
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
4764
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5919
4765
            ;;
5920
4766
          *)
5921
4767
            ;;
5923
4769
        ;;
5924
4770
      netbsd*)
5925
4771
        ;;
 
4772
      *qnx* | *nto*)
 
4773
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4774
        # it will coredump.
 
4775
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4776
        ;;
5926
4777
      osf3* | osf4* | osf5*)
5927
4778
        case $cc_basename in
5928
4779
          KCC*)
5929
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4780
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5930
4781
            ;;
5931
4782
          RCC*)
5932
4783
            # Rational C++ 2.4.1
5933
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4784
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5934
4785
            ;;
5935
4786
          cxx*)
5936
4787
            # Digital/Compaq C++
5937
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4788
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5938
4789
            # Make sure the PIC flag is empty.  It appears that all Alpha
5939
4790
            # Linux and Compaq Tru64 Unix objects are PIC.
5940
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5941
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4791
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4792
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5942
4793
            ;;
5943
4794
          *)
5944
4795
            ;;
5950
4801
        case $cc_basename in
5951
4802
          CC*)
5952
4803
            # Sun C++ 4.2, 5.x and Centerline C++
5953
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5954
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5955
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4804
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4805
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4806
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5956
4807
            ;;
5957
4808
          gcx*)
5958
4809
            # Green Hills C++ Compiler
5959
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4810
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5960
4811
            ;;
5961
4812
          *)
5962
4813
            ;;
5966
4817
        case $cc_basename in
5967
4818
          CC*)
5968
4819
            # Sun C++ 4.x
5969
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5970
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4820
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4821
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5971
4822
            ;;
5972
4823
          lcc*)
5973
4824
            # Lucid
5974
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4825
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5975
4826
            ;;
5976
4827
          *)
5977
4828
            ;;
5978
4829
        esac
5979
4830
        ;;
 
4831
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
4832
        case $cc_basename in
 
4833
          CC*)
 
4834
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4835
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4836
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4837
            ;;
 
4838
        esac
 
4839
        ;;
5980
4840
      tandem*)
5981
4841
        case $cc_basename in
5982
4842
          NCC*)
5983
4843
            # NonStop-UX NCC 3.20
5984
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4844
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5985
4845
            ;;
5986
4846
          *)
5987
4847
            ;;
5988
4848
        esac
5989
4849
        ;;
5990
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5991
 
        case $cc_basename in
5992
 
          CC*)
5993
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5994
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5995
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5996
 
            ;;
5997
 
        esac
5998
 
        ;;
5999
4850
      vxworks*)
6000
4851
        ;;
6001
4852
      *)
6002
 
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4853
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6003
4854
        ;;
6004
4855
    esac
6005
4856
  fi
6006
4857
],
6007
4858
[
6008
4859
  if test "$GCC" = yes; then
6009
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6010
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4860
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4861
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6011
4862
 
6012
4863
    case $host_os in
6013
4864
      aix*)
6014
4865
      # All AIX code is PIC.
6015
4866
      if test "$host_cpu" = ia64; then
6016
4867
        # AIX 5 now supports IA64 processor
6017
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4868
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6018
4869
      fi
6019
4870
      ;;
6020
4871
 
6021
4872
    amigaos*)
6022
 
      # FIXME: we need at least 68020 code to build shared libraries, but
6023
 
      # adding the `-m68020' flag to GCC prevents building anything better,
6024
 
      # like `-m68040'.
6025
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4873
      case $host_cpu in
 
4874
      powerpc)
 
4875
            # see comment about AmigaOS4 .so support
 
4876
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4877
        ;;
 
4878
      m68k)
 
4879
            # FIXME: we need at least 68020 code to build shared libraries, but
 
4880
            # adding the `-m68020' flag to GCC prevents building anything better,
 
4881
            # like `-m68040'.
 
4882
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4883
        ;;
 
4884
      esac
6026
4885
      ;;
6027
4886
 
6028
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4887
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6029
4888
      # PIC is the default for these OSes.
6030
4889
      ;;
6031
4890
 
6032
 
    mingw* | pw32* | os2*)
 
4891
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6033
4892
      # This hack is so that the source file can tell whether it is being
6034
4893
      # built for inclusion in a dll (and should export symbols for example).
6035
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
4894
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
4895
      # (--disable-auto-import) libraries
 
4896
      m4_if([$1], [GCJ], [],
 
4897
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6036
4898
      ;;
6037
4899
 
6038
4900
    darwin* | rhapsody*)
6039
4901
      # PIC is the default on this platform
6040
4902
      # Common symbols not allowed in MH_DYLIB files
6041
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6042
 
      ;;
6043
 
 
6044
 
    interix3*)
 
4903
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4904
      ;;
 
4905
 
 
4906
    hpux*)
 
4907
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
4908
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
4909
      # sets the default TLS model and affects inlining.
 
4910
      case $host_cpu in
 
4911
      hppa*64*)
 
4912
        # +Z the default
 
4913
        ;;
 
4914
      *)
 
4915
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4916
        ;;
 
4917
      esac
 
4918
      ;;
 
4919
 
 
4920
    interix[[3-9]]*)
6045
4921
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6046
4922
      # Instead, we relocate shared libraries at runtime.
6047
4923
      ;;
6049
4925
    msdosdjgpp*)
6050
4926
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6051
4927
      # on systems that don't support them.
6052
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4928
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6053
4929
      enable_shared=no
6054
4930
      ;;
6055
4931
 
 
4932
    *nto* | *qnx*)
 
4933
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4934
      # it will coredump.
 
4935
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4936
      ;;
 
4937
 
6056
4938
    sysv4*MP*)
6057
4939
      if test -d /usr/nec; then
6058
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
4940
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6059
4941
      fi
6060
4942
      ;;
6061
4943
 
6062
 
    hpux*)
6063
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6064
 
      # not for PA HP-UX.
6065
 
      case $host_cpu in
6066
 
      hppa*64*|ia64*)
6067
 
        # +Z the default
6068
 
        ;;
6069
 
      *)
6070
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6071
 
        ;;
6072
 
      esac
6073
 
      ;;
6074
 
 
6075
4944
    *)
6076
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4945
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6077
4946
      ;;
6078
4947
    esac
6079
4948
  else
6080
4949
    # PORTME Check for flag to pass linker flags through the system compiler.
6081
4950
    case $host_os in
6082
4951
    aix*)
6083
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4952
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6084
4953
      if test "$host_cpu" = ia64; then
6085
4954
        # AIX 5 now supports IA64 processor
6086
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4955
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6087
4956
      else
6088
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
4957
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6089
4958
      fi
6090
4959
      ;;
6091
 
      darwin*)
6092
 
        # PIC is the default on this platform
6093
 
        # Common symbols not allowed in MH_DYLIB files
6094
 
       case $cc_basename in
6095
 
         xlc*)
6096
 
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6097
 
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6098
 
         ;;
6099
 
       esac
6100
 
       ;;
6101
4960
 
6102
 
    mingw* | pw32* | os2*)
 
4961
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6103
4962
      # This hack is so that the source file can tell whether it is being
6104
4963
      # built for inclusion in a dll (and should export symbols for example).
6105
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
4964
      m4_if([$1], [GCJ], [],
 
4965
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6106
4966
      ;;
6107
4967
 
6108
4968
    hpux9* | hpux10* | hpux11*)
6109
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4969
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6110
4970
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6111
4971
      # not for PA HP-UX.
6112
4972
      case $host_cpu in
6114
4974
        # +Z the default
6115
4975
        ;;
6116
4976
      *)
6117
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4977
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6118
4978
        ;;
6119
4979
      esac
6120
4980
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6121
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4981
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6122
4982
      ;;
6123
4983
 
6124
4984
    irix5* | irix6* | nonstopux*)
6125
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4985
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6126
4986
      # PIC (with -KPIC) is the default.
6127
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6128
 
      ;;
6129
 
 
6130
 
    newsos6)
6131
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6132
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6133
 
      ;;
6134
 
 
6135
 
    linux*)
 
4987
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4988
      ;;
 
4989
 
 
4990
    linux* | k*bsd*-gnu)
6136
4991
      case $cc_basename in
6137
 
      icc* | ecc*)
6138
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6139
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6140
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6141
 
        ;;
 
4992
      # old Intel for x86_64 which still supported -KPIC.
 
4993
      ecc*)
 
4994
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4995
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4996
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4997
        ;;
 
4998
      # icc used to be incompatible with GCC.
 
4999
      # ICC 10 doesn't accept -KPIC any more.
 
5000
      icc* | ifort*)
 
5001
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5002
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5003
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5004
        ;;
 
5005
      # Lahey Fortran 8.1.
 
5006
      lf95*)
 
5007
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5008
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 
5009
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 
5010
        ;;
6142
5011
      pgcc* | pgf77* | pgf90* | pgf95*)
6143
5012
        # Portland Group compilers (*not* the Pentium gcc compiler,
6144
5013
        # which looks to be a dead project)
6145
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6146
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6147
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5014
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5015
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5016
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6148
5017
        ;;
6149
5018
      ccc*)
6150
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5019
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6151
5020
        # All Alpha code is PIC.
6152
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5021
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6153
5022
        ;;
 
5023
      xl*)
 
5024
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
5025
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5026
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
5027
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
5028
        ;;
 
5029
      *)
 
5030
        case `$CC -V 2>&1 | sed 5q` in
 
5031
        *Sun\ C*)
 
5032
          # Sun C 5.9
 
5033
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5034
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5035
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5036
          ;;
 
5037
        *Sun\ F*)
 
5038
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5039
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5040
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5041
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5042
          ;;
 
5043
        esac
 
5044
        ;;
6154
5045
      esac
6155
5046
      ;;
6156
5047
 
 
5048
    newsos6)
 
5049
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5050
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5051
      ;;
 
5052
 
 
5053
    *nto* | *qnx*)
 
5054
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
5055
      # it will coredump.
 
5056
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
5057
      ;;
 
5058
 
6157
5059
    osf3* | osf4* | osf5*)
6158
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5060
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6159
5061
      # All OSF/1 code is PIC.
6160
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5062
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5063
      ;;
 
5064
 
 
5065
    rdos*)
 
5066
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6161
5067
      ;;
6162
5068
 
6163
5069
    solaris*)
6164
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6165
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5070
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5071
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6166
5072
      case $cc_basename in
6167
5073
      f77* | f90* | f95*)
6168
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
5074
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6169
5075
      *)
6170
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
5076
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6171
5077
      esac
6172
5078
      ;;
6173
5079
 
6174
5080
    sunos4*)
6175
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6176
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6177
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5081
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5082
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5083
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6178
5084
      ;;
6179
5085
 
6180
5086
    sysv4 | sysv4.2uw2* | sysv4.3*)
6181
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6182
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6183
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5087
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5088
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5089
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6184
5090
      ;;
6185
5091
 
6186
5092
    sysv4*MP*)
6187
5093
      if test -d /usr/nec ;then
6188
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6189
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5094
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
5095
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6190
5096
      fi
6191
5097
      ;;
6192
5098
 
6193
5099
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6194
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6195
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6196
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5100
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5101
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5102
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6197
5103
      ;;
6198
5104
 
6199
5105
    unicos*)
6200
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6201
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5106
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5107
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6202
5108
      ;;
6203
5109
 
6204
5110
    uts4*)
6205
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6206
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5111
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5112
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6207
5113
      ;;
6208
5114
 
6209
5115
    *)
6210
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5116
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6211
5117
      ;;
6212
5118
    esac
6213
5119
  fi
6214
5120
])
6215
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
5121
case $host_os in
 
5122
  # For platforms which do not support PIC, -DPIC is meaningless:
 
5123
  *djgpp*)
 
5124
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5125
    ;;
 
5126
  *)
 
5127
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 
5128
    ;;
 
5129
esac
 
5130
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
5131
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
5132
        [How to pass a linker flag through the compiler])
6216
5133
 
6217
5134
#
6218
5135
# Check to make sure the PIC flag actually works.
6219
5136
#
6220
 
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6221
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6222
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6223
 
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6224
 
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
5137
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
5138
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 
5139
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 
5140
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 
5141
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
6225
5142
     "" | " "*) ;;
6226
 
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
5143
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6227
5144
     esac],
6228
 
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6229
 
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
5145
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5146
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6230
5147
fi
6231
 
case $host_os in
6232
 
  # For platforms which do not support PIC, -DPIC is meaningless:
6233
 
  *djgpp*)
6234
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6235
 
    ;;
6236
 
  *)
6237
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6238
 
    ;;
6239
 
esac
 
5148
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 
5149
        [Additional compiler flags for building library objects])
6240
5150
 
6241
5151
#
6242
5152
# Check to make sure the static flag actually works.
6243
5153
#
6244
 
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6245
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6246
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5154
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 
5155
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5156
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6247
5157
  $lt_tmp_static_flag,
6248
5158
  [],
6249
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6250
 
])
6251
 
 
6252
 
 
6253
 
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6254
 
# ------------------------------------
 
5159
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 
5160
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 
5161
        [Compiler flag to prevent dynamic linking])
 
5162
])# _LT_COMPILER_PIC
 
5163
 
 
5164
 
 
5165
# _LT_LINKER_SHLIBS([TAGNAME])
 
5166
# ----------------------------
6255
5167
# See if the linker supports building shared libraries.
6256
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6257
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6258
 
ifelse([$1],[CXX],[
6259
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5168
m4_defun([_LT_LINKER_SHLIBS],
 
5169
[AC_REQUIRE([LT_PATH_LD])dnl
 
5170
AC_REQUIRE([LT_PATH_NM])dnl
 
5171
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5172
m4_require([_LT_DECL_EGREP])dnl
 
5173
m4_require([_LT_DECL_SED])dnl
 
5174
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
5175
m4_require([_LT_TAG_COMPILER])dnl
 
5176
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5177
m4_if([$1], [CXX], [
 
5178
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6260
5179
  case $host_os in
6261
 
  aix4* | aix5*)
 
5180
  aix[[4-9]]*)
6262
5181
    # If we're using GNU nm, then we don't want the "-C" option.
6263
5182
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
6264
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6265
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5183
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
5184
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6266
5185
    else
6267
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5186
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6268
5187
    fi
6269
5188
    ;;
6270
5189
  pw32*)
6271
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
5190
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6272
5191
  ;;
6273
 
  cygwin* | mingw*)
6274
 
    _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'
 
5192
  cygwin* | mingw* | cegcc*)
 
5193
    _LT_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'
6275
5194
  ;;
6276
5195
  *)
6277
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5196
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6278
5197
  ;;
6279
5198
  esac
6280
 
],[
 
5199
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
5200
], [
6281
5201
  runpath_var=
6282
 
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6283
 
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6284
 
  _LT_AC_TAGVAR(archive_cmds, $1)=
6285
 
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6286
 
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6287
 
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6288
 
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6289
 
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6290
 
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6291
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6292
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6293
 
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6294
 
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
6295
 
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6296
 
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6297
 
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6298
 
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
6299
 
  _LT_AC_TAGVAR(module_cmds, $1)=
6300
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
6301
 
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
6302
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5202
  _LT_TAGVAR(allow_undefined_flag, $1)=
 
5203
  _LT_TAGVAR(always_export_symbols, $1)=no
 
5204
  _LT_TAGVAR(archive_cmds, $1)=
 
5205
  _LT_TAGVAR(archive_expsym_cmds, $1)=
 
5206
  _LT_TAGVAR(compiler_needs_object, $1)=no
 
5207
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5208
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5209
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5210
  _LT_TAGVAR(hardcode_automatic, $1)=no
 
5211
  _LT_TAGVAR(hardcode_direct, $1)=no
 
5212
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
5213
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5214
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
5215
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
5216
  _LT_TAGVAR(hardcode_minus_L, $1)=no
 
5217
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5218
  _LT_TAGVAR(inherit_rpath, $1)=no
 
5219
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
 
5220
  _LT_TAGVAR(module_cmds, $1)=
 
5221
  _LT_TAGVAR(module_expsym_cmds, $1)=
 
5222
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 
5223
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
5224
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
 
5225
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
6303
5226
  # include_expsyms should be a list of space-separated symbols to be *always*
6304
5227
  # included in the symbol list
6305
 
  _LT_AC_TAGVAR(include_expsyms, $1)=
 
5228
  _LT_TAGVAR(include_expsyms, $1)=
6306
5229
  # exclude_expsyms can be an extended regexp of symbols to exclude
6307
5230
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6308
5231
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6309
5232
  # as well as any symbol that contains `d'.
6310
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5233
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6311
5234
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6312
5235
  # platforms (ab)use it in PIC code, but their linkers get confused if
6313
5236
  # the symbol is explicitly referenced.  Since portable code cannot
6314
5237
  # rely on this symbol name, it's probably fine to never include it in
6315
5238
  # preloaded symbol tables.
 
5239
  # Exclude shared library initialization/finalization symbols.
 
5240
dnl Note also adjust exclude_expsyms for C++ above.
6316
5241
  extract_expsyms_cmds=
6317
 
  # Just being paranoid about ensuring that cc_basename is set.
6318
 
  _LT_CC_BASENAME([$compiler])
 
5242
 
6319
5243
  case $host_os in
6320
 
  cygwin* | mingw* | pw32*)
 
5244
  cygwin* | mingw* | pw32* | cegcc*)
6321
5245
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6322
5246
    # When not using gcc, we currently assume that we are using
6323
5247
    # Microsoft Visual C++.
6334
5258
    ;;
6335
5259
  esac
6336
5260
 
6337
 
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5261
  _LT_TAGVAR(ld_shlibs, $1)=yes
6338
5262
  if test "$with_gnu_ld" = yes; then
6339
5263
    # If archive_cmds runs LD, not CC, wlarc should be empty
6340
5264
    wlarc='${wl}'
6343
5267
    # are reset later if shared libraries are not supported. Putting them
6344
5268
    # here allows them to be overridden if necessary.
6345
5269
    runpath_var=LD_RUN_PATH
6346
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6347
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5270
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5271
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6348
5272
    # ancient GNU ld didn't support --whole-archive et. al.
6349
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6350
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6351
 
      else
6352
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5273
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
5274
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5275
    else
 
5276
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
6353
5277
    fi
6354
5278
    supports_anon_versioning=no
6355
 
    case `$LD -v 2>/dev/null` in
 
5279
    case `$LD -v 2>&1` in
6356
5280
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6357
5281
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6358
5282
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6362
5286
 
6363
5287
    # See if GNU ld supports shared libraries.
6364
5288
    case $host_os in
6365
 
    aix3* | aix4* | aix5*)
 
5289
    aix[[3-9]]*)
6366
5290
      # On AIX/PPC, the GNU linker is very broken
6367
5291
      if test "$host_cpu" != ia64; then
6368
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6369
 
        cat <<EOF 1>&2
 
5292
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5293
        cat <<_LT_EOF 1>&2
6370
5294
 
6371
5295
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6372
5296
*** to be unable to reliably create shared libraries on AIX.
6374
5298
*** really care for shared libraries, you may want to modify your PATH
6375
5299
*** so that a non-GNU linker is found, and then restart.
6376
5300
 
6377
 
EOF
 
5301
_LT_EOF
6378
5302
      fi
6379
5303
      ;;
6380
5304
 
6381
5305
    amigaos*)
6382
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6383
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6384
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6385
 
 
6386
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6387
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
6388
 
      # to version 4, is to share data among multiple programs linked
6389
 
      # with the same dynamic library.  Since this doesn't match the
6390
 
      # behavior of shared libraries on other platforms, we can't use
6391
 
      # them.
6392
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5306
      case $host_cpu in
 
5307
      powerpc)
 
5308
            # see comment about AmigaOS4 .so support
 
5309
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5310
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
5311
        ;;
 
5312
      m68k)
 
5313
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
5314
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5315
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5316
        ;;
 
5317
      esac
6393
5318
      ;;
6394
5319
 
6395
5320
    beos*)
6396
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6397
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5321
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5322
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6398
5323
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6399
5324
        # support --undefined.  This deserves some investigation.  FIXME
6400
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5325
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6401
5326
      else
6402
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5327
        _LT_TAGVAR(ld_shlibs, $1)=no
6403
5328
      fi
6404
5329
      ;;
6405
5330
 
6406
 
    cygwin* | mingw* | pw32*)
6407
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
5331
    cygwin* | mingw* | pw32* | cegcc*)
 
5332
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6408
5333
      # as there is no search path for DLLs.
6409
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6410
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6411
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6412
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6413
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5334
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5335
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5336
      _LT_TAGVAR(always_export_symbols, $1)=no
 
5337
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5338
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6414
5339
 
6415
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6416
 
        _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'
 
5340
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
5341
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6417
5342
        # If the export-symbols file already is a .def file (1st line
6418
5343
        # is EXPORTS), use it as is; otherwise, prepend...
6419
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5344
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6420
5345
          cp $export_symbols $output_objdir/$soname.def;
6421
5346
        else
6422
5347
          echo EXPORTS > $output_objdir/$soname.def;
6424
5349
        fi~
6425
5350
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6426
5351
      else
6427
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5352
        _LT_TAGVAR(ld_shlibs, $1)=no
6428
5353
      fi
6429
5354
      ;;
6430
5355
 
6431
 
    interix3*)
6432
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6433
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6434
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6435
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5356
    interix[[3-9]]*)
 
5357
      _LT_TAGVAR(hardcode_direct, $1)=no
 
5358
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5359
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5360
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6436
5361
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6437
5362
      # Instead, shared libraries are loaded at an image base (0x10000000 by
6438
5363
      # default) and relocated if they conflict, which is a slow very memory
6439
5364
      # consuming and fragmenting process.  To avoid this, we pick a random,
6440
5365
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6441
5366
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6442
 
      _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'
6443
 
      _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'
 
5367
      _LT_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'
 
5368
      _LT_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'
6444
5369
      ;;
6445
5370
 
6446
 
    linux*)
6447
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5371
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
5372
      tmp_diet=no
 
5373
      if test "$host_os" = linux-dietlibc; then
 
5374
        case $cc_basename in
 
5375
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
5376
        esac
 
5377
      fi
 
5378
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
5379
         && test "$tmp_diet" = no
 
5380
      then
6448
5381
        tmp_addflag=
 
5382
        tmp_sharedflag='-shared'
6449
5383
        case $cc_basename,$host_cpu in
6450
 
        pgcc*)                          # Portland Group C compiler
6451
 
          _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'
 
5384
        pgcc*)                          # Portland Group C compiler
 
5385
          _LT_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'
6452
5386
          tmp_addflag=' $pic_flag'
6453
5387
          ;;
6454
5388
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6455
 
          _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'
 
5389
          _LT_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'
6456
5390
          tmp_addflag=' $pic_flag -Mnomain' ;;
6457
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
5391
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
6458
5392
          tmp_addflag=' -i_dynamic' ;;
6459
5393
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6460
5394
          tmp_addflag=' -i_dynamic -nofor_main' ;;
6461
5395
        ifc* | ifort*)                  # Intel Fortran compiler
6462
5396
          tmp_addflag=' -nofor_main' ;;
6463
 
        esac
6464
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6465
 
 
6466
 
        if test $supports_anon_versioning = yes; then
6467
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6468
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6469
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
6470
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6471
 
        fi
 
5397
        lf95*)                          # Lahey Fortran 8.1
 
5398
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5399
          tmp_sharedflag='--shared' ;;
 
5400
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
5401
          tmp_sharedflag='-qmkshrobj'
 
5402
          tmp_addflag= ;;
 
5403
        esac
 
5404
        case `$CC -V 2>&1 | sed 5q` in
 
5405
        *Sun\ C*)                       # Sun C 5.9
 
5406
          _LT_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'
 
5407
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
5408
          tmp_sharedflag='-G' ;;
 
5409
        *Sun\ F*)                       # Sun Fortran 8.3
 
5410
          tmp_sharedflag='-G' ;;
 
5411
        esac
 
5412
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5413
 
 
5414
        if test "x$supports_anon_versioning" = xyes; then
 
5415
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5416
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5417
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
5418
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5419
        fi
 
5420
 
 
5421
        case $cc_basename in
 
5422
        xlf*)
 
5423
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
5424
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 
5425
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5426
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5427
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
5428
          if test "x$supports_anon_versioning" = xyes; then
 
5429
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5430
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5431
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
5432
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
5433
          fi
 
5434
          ;;
 
5435
        esac
6472
5436
      else
6473
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5437
        _LT_TAGVAR(ld_shlibs, $1)=no
6474
5438
      fi
6475
5439
      ;;
6476
5440
 
6477
5441
    netbsd*)
6478
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6479
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
5442
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5443
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6480
5444
        wlarc=
6481
5445
      else
6482
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6483
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5446
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5447
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6484
5448
      fi
6485
5449
      ;;
6486
5450
 
6487
5451
    solaris*)
6488
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6489
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6490
 
        cat <<EOF 1>&2
 
5452
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
5453
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5454
        cat <<_LT_EOF 1>&2
6491
5455
 
6492
5456
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6493
5457
*** create shared libraries on Solaris systems.  Therefore, libtool
6496
5460
*** your PATH or compiler configuration so that the native linker is
6497
5461
*** used, and then restart.
6498
5462
 
6499
 
EOF
6500
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6501
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6502
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5463
_LT_EOF
 
5464
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5465
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5466
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6503
5467
      else
6504
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5468
        _LT_TAGVAR(ld_shlibs, $1)=no
6505
5469
      fi
6506
5470
      ;;
6507
5471
 
6508
5472
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6509
5473
      case `$LD -v 2>&1` in
6510
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
6511
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5474
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 
5475
        _LT_TAGVAR(ld_shlibs, $1)=no
6512
5476
        cat <<_LT_EOF 1>&2
6513
5477
 
6514
5478
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6521
5485
_LT_EOF
6522
5486
        ;;
6523
5487
        *)
6524
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6525
 
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6526
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6527
 
            _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'
 
5488
          # For security reasons, it is highly recommended that you always
 
5489
          # use absolute paths for naming shared libraries, and exclude the
 
5490
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
5491
          # requires that you compile everything twice, which is a pain.
 
5492
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5493
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5494
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5495
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6528
5496
          else
6529
 
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5497
            _LT_TAGVAR(ld_shlibs, $1)=no
6530
5498
          fi
6531
5499
        ;;
6532
5500
      esac
6533
5501
      ;;
6534
5502
 
6535
5503
    sunos4*)
6536
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5504
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6537
5505
      wlarc=
6538
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6539
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5506
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5507
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6540
5508
      ;;
6541
5509
 
6542
5510
    *)
6543
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6544
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6545
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5511
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5512
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5513
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6546
5514
      else
6547
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5515
        _LT_TAGVAR(ld_shlibs, $1)=no
6548
5516
      fi
6549
5517
      ;;
6550
5518
    esac
6551
5519
 
6552
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
5520
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
6553
5521
      runpath_var=
6554
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6555
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6556
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5522
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5523
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5524
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
6557
5525
    fi
6558
5526
  else
6559
5527
    # PORTME fill in a description of your system's linker (not GNU ld)
6560
5528
    case $host_os in
6561
5529
    aix3*)
6562
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6563
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6564
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
5530
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5531
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
5532
      _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6565
5533
      # Note: this linker hardcodes the directories in LIBPATH if there
6566
5534
      # are no directories specified by -L.
6567
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5535
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6568
5536
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6569
5537
        # Neither direct hardcoding nor static linking is supported with a
6570
5538
        # broken collect2.
6571
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
5539
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
6572
5540
      fi
6573
5541
      ;;
6574
5542
 
6575
 
    aix4* | aix5*)
 
5543
    aix[[4-9]]*)
6576
5544
      if test "$host_cpu" = ia64; then
6577
5545
        # On IA64, the linker does run time linking by default, so we don't
6578
5546
        # have to do anything special.
6582
5550
      else
6583
5551
        # If we're using GNU nm, then we don't want the "-C" option.
6584
5552
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
6585
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6586
 
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5553
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
5554
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6587
5555
        else
6588
 
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5556
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6589
5557
        fi
6590
5558
        aix_use_runtimelinking=no
6591
5559
 
6592
5560
        # Test if we are trying to use run time linking or normal
6593
5561
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6594
5562
        # need to do runtime linking.
6595
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
5563
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6596
5564
          for ld_flag in $LDFLAGS; do
6597
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6598
 
            aix_use_runtimelinking=yes
6599
 
            break
6600
 
          fi
 
5565
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
5566
            aix_use_runtimelinking=yes
 
5567
            break
 
5568
          fi
6601
5569
          done
6602
5570
          ;;
6603
5571
        esac
6612
5580
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6613
5581
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6614
5582
 
6615
 
      _LT_AC_TAGVAR(archive_cmds, $1)=''
6616
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6617
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6618
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5583
      _LT_TAGVAR(archive_cmds, $1)=''
 
5584
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5585
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5586
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5587
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5588
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6619
5589
 
6620
5590
      if test "$GCC" = yes; then
6621
5591
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
6622
5592
        # We only want to do this on AIX 4.2 and lower, the check
6623
5593
        # below for broken collect2 doesn't work under 4.3+
6624
5594
          collect2name=`${CC} -print-prog-name=collect2`
6625
 
          if test -f "$collect2name" && \
6626
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
5595
          if test -f "$collect2name" &&
 
5596
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6627
5597
          then
6628
 
          # We have reworked collect2
6629
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5598
          # We have reworked collect2
 
5599
          :
6630
5600
          else
6631
 
          # We have old collect2
6632
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6633
 
          # It fails to find uninstalled libraries when the uninstalled
6634
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
6635
 
          # to unsupported forces relinking
6636
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6637
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6638
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
5601
          # We have old collect2
 
5602
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
5603
          # It fails to find uninstalled libraries when the uninstalled
 
5604
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
5605
          # to unsupported forces relinking
 
5606
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5607
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5608
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
6639
5609
          fi
6640
5610
          ;;
6641
5611
        esac
6646
5616
      else
6647
5617
        # not using gcc
6648
5618
        if test "$host_cpu" = ia64; then
6649
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6650
 
        # chokes on -Wl,-G. The following line is correct:
 
5619
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
5620
        # chokes on -Wl,-G. The following line is correct:
6651
5621
          shared_flag='-G'
6652
5622
        else
6653
5623
          if test "$aix_use_runtimelinking" = yes; then
6658
5628
        fi
6659
5629
      fi
6660
5630
 
 
5631
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6661
5632
      # It seems that -bexpall does not export symbols beginning with
6662
5633
      # underscore (_), so it is better to generate a list of symbols to export.
6663
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
5634
      _LT_TAGVAR(always_export_symbols, $1)=yes
6664
5635
      if test "$aix_use_runtimelinking" = yes; then
6665
5636
        # Warning - without using the other runtime loading flags (-brtl),
6666
5637
        # -berok will link without error, but may produce a broken library.
6667
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6668
 
       # Determine the default libpath from the value encoded in an empty executable.
6669
 
       _LT_AC_SYS_LIBPATH_AIX
6670
 
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6671
 
        _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"
6672
 
       else
 
5638
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
5639
        # Determine the default libpath from the value encoded in an
 
5640
        # empty executable.
 
5641
        _LT_SYS_MODULE_PATH_AIX
 
5642
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5643
        _LT_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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
5644
      else
6673
5645
        if test "$host_cpu" = ia64; then
6674
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6675
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6676
 
          _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"
 
5646
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
5647
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
5648
          _LT_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"
6677
5649
        else
6678
 
         # Determine the default libpath from the value encoded in an empty executable.
6679
 
         _LT_AC_SYS_LIBPATH_AIX
6680
 
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5650
         # Determine the default libpath from the value encoded in an
 
5651
         # empty executable.
 
5652
         _LT_SYS_MODULE_PATH_AIX
 
5653
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6681
5654
          # Warning - without using the other run time loading flags,
6682
5655
          # -berok will link without error, but may produce a broken library.
6683
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6684
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
5656
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
5657
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6685
5658
          # Exported symbols can be pulled into shared objects from archives
6686
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6687
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5659
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5660
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6688
5661
          # This is similar to how AIX traditionally builds its shared libraries.
6689
 
          _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'
 
5662
          _LT_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'
6690
5663
        fi
6691
5664
      fi
6692
5665
      ;;
6693
5666
 
6694
5667
    amigaos*)
6695
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6696
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6697
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6698
 
      # see comment about different semantics on the GNU ld section
6699
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5668
      case $host_cpu in
 
5669
      powerpc)
 
5670
            # see comment about AmigaOS4 .so support
 
5671
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5672
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
5673
        ;;
 
5674
      m68k)
 
5675
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
5676
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5677
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5678
        ;;
 
5679
      esac
6700
5680
      ;;
6701
5681
 
6702
5682
    bsdi[[45]]*)
6703
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
5683
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6704
5684
      ;;
6705
5685
 
6706
 
    cygwin* | mingw* | pw32*)
 
5686
    cygwin* | mingw* | pw32* | cegcc*)
6707
5687
      # When not using gcc, we currently assume that we are using
6708
5688
      # Microsoft Visual C++.
6709
5689
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6710
5690
      # no search path for DLLs.
6711
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6712
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5691
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5692
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6713
5693
      # Tell ltmain to make .lib files, not .a files.
6714
5694
      libext=lib
6715
5695
      # Tell ltmain to make .dll files, not .so files.
6716
5696
      shrext_cmds=".dll"
6717
5697
      # FIXME: Setting linknames here is a bad hack.
6718
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
5698
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6719
5699
      # The linker will automatically build a .lib file if we build a DLL.
6720
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 
5700
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6721
5701
      # FIXME: Should let the user specify the lib program.
6722
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6723
 
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6724
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5702
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5703
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
5704
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6725
5705
      ;;
6726
5706
 
6727
5707
    darwin* | rhapsody*)
6728
 
      case $host_os in
6729
 
        rhapsody* | darwin1.[[012]])
6730
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6731
 
         ;;
6732
 
       *) # Darwin 1.3 on
6733
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6734
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6735
 
         else
6736
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
6737
 
             10.[[012]])
6738
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6739
 
               ;;
6740
 
             10.*)
6741
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6742
 
               ;;
6743
 
           esac
6744
 
         fi
6745
 
         ;;
6746
 
      esac
6747
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6748
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6749
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6750
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6751
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6752
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6753
 
    if test "$GCC" = yes ; then
6754
 
        output_verbose_link_cmd='echo'
6755
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6756
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6757
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6758
 
      _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}'
6759
 
      _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}'
6760
 
    else
6761
 
      case $cc_basename in
6762
 
        xlc*)
6763
 
         output_verbose_link_cmd='echo'
6764
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6765
 
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6766
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6767
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6768
 
          _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}'
6769
 
          ;;
6770
 
       *)
6771
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6772
 
          ;;
6773
 
      esac
6774
 
    fi
 
5708
      _LT_DARWIN_LINKER_FEATURES($1)
6775
5709
      ;;
6776
5710
 
6777
5711
    dgux*)
6778
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6779
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6780
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5712
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5713
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5714
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6781
5715
      ;;
6782
5716
 
6783
5717
    freebsd1*)
6784
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5718
      _LT_TAGVAR(ld_shlibs, $1)=no
6785
5719
      ;;
6786
5720
 
6787
5721
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6789
5723
    # does not break anything, and helps significantly (at the cost of a little
6790
5724
    # extra space).
6791
5725
    freebsd2.2*)
6792
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6793
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6794
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6795
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5726
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
5727
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5728
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5729
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6796
5730
      ;;
6797
5731
 
6798
5732
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6799
5733
    freebsd2*)
6800
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6801
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6802
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6803
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5734
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5735
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5736
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5737
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6804
5738
      ;;
6805
5739
 
6806
5740
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6807
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
6808
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6809
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6810
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6811
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5741
    freebsd* | dragonfly*)
 
5742
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5743
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5744
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5745
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6812
5746
      ;;
6813
5747
 
6814
5748
    hpux9*)
6815
5749
      if test "$GCC" = yes; then
6816
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
5750
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6817
5751
      else
6818
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
5752
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6819
5753
      fi
6820
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6821
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6822
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5754
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5755
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5756
      _LT_TAGVAR(hardcode_direct, $1)=yes
6823
5757
 
6824
5758
      # hardcode_minus_L: Not really in the search PATH,
6825
5759
      # but as the default location of the library.
6826
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6827
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5760
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5761
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6828
5762
      ;;
6829
5763
 
6830
5764
    hpux10*)
6831
5765
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6832
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5766
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6833
5767
      else
6834
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5768
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6835
5769
      fi
6836
5770
      if test "$with_gnu_ld" = no; then
6837
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6838
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6839
 
 
6840
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6841
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6842
 
 
 
5771
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5772
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
5773
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5774
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5775
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5776
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6843
5777
        # hardcode_minus_L: Not really in the search PATH,
6844
5778
        # but as the default location of the library.
6845
 
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5779
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
6846
5780
      fi
6847
5781
      ;;
6848
5782
 
6850
5784
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6851
5785
        case $host_cpu in
6852
5786
        hppa*64*)
6853
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5787
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6854
5788
          ;;
6855
5789
        ia64*)
6856
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5790
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6857
5791
          ;;
6858
5792
        *)
6859
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5793
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6860
5794
          ;;
6861
5795
        esac
6862
5796
      else
6863
5797
        case $host_cpu in
6864
5798
        hppa*64*)
6865
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5799
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6866
5800
          ;;
6867
5801
        ia64*)
6868
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5802
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6869
5803
          ;;
6870
5804
        *)
6871
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5805
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6872
5806
          ;;
6873
5807
        esac
6874
5808
      fi
6875
5809
      if test "$with_gnu_ld" = no; then
6876
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6877
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5810
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5811
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6878
5812
 
6879
5813
        case $host_cpu in
6880
5814
        hppa*64*|ia64*)
6881
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6882
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6883
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5815
          _LT_TAGVAR(hardcode_direct, $1)=no
 
5816
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6884
5817
          ;;
6885
5818
        *)
6886
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6887
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5819
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
5820
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5821
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6888
5822
 
6889
5823
          # hardcode_minus_L: Not really in the search PATH,
6890
5824
          # but as the default location of the library.
6891
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5825
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
6892
5826
          ;;
6893
5827
        esac
6894
5828
      fi
6896
5830
 
6897
5831
    irix5* | irix6* | nonstopux*)
6898
5832
      if test "$GCC" = yes; then
6899
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5833
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5834
        # Try to use the -exported_symbol ld option, if it does not
 
5835
        # work, assume that -exports_file does not work either and
 
5836
        # implicitly export all symbols.
 
5837
        save_LDFLAGS="$LDFLAGS"
 
5838
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5839
        AC_LINK_IFELSE(int foo(void) {},
 
5840
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
5841
        )
 
5842
        LDFLAGS="$save_LDFLAGS"
6900
5843
      else
6901
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6902
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5844
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
5845
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
6903
5846
      fi
6904
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6905
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6906
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5847
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5848
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5849
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5850
      _LT_TAGVAR(inherit_rpath, $1)=yes
 
5851
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6907
5852
      ;;
6908
5853
 
6909
5854
    netbsd*)
6910
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6911
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
5855
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5856
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6912
5857
      else
6913
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
5858
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6914
5859
      fi
6915
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6916
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6917
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5860
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5861
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5862
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6918
5863
      ;;
6919
5864
 
6920
5865
    newsos6)
6921
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6922
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6923
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6924
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6925
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5866
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5867
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5868
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5869
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5870
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5871
      ;;
 
5872
 
 
5873
    *nto* | *qnx*)
6926
5874
      ;;
6927
5875
 
6928
5876
    openbsd*)
6929
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6930
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6931
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6932
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6933
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6934
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6935
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5877
      if test -f /usr/libexec/ld.so; then
 
5878
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5879
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5880
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5881
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5882
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5883
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
5884
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5885
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5886
        else
 
5887
          case $host_os in
 
5888
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
5889
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5890
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5891
             ;;
 
5892
           *)
 
5893
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5894
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5895
             ;;
 
5896
          esac
 
5897
        fi
6936
5898
      else
6937
 
       case $host_os in
6938
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6939
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6940
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6941
 
           ;;
6942
 
         *)
6943
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6944
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6945
 
           ;;
6946
 
       esac
 
5899
        _LT_TAGVAR(ld_shlibs, $1)=no
6947
5900
      fi
6948
5901
      ;;
6949
5902
 
6950
5903
    os2*)
6951
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6952
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6953
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6954
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6955
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
5904
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5905
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5906
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5907
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
5908
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6956
5909
      ;;
6957
5910
 
6958
5911
    osf3*)
6959
5912
      if test "$GCC" = yes; then
6960
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6961
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5913
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5914
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6962
5915
      else
6963
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6964
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
5916
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5917
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6965
5918
      fi
6966
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6967
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5919
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5920
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5921
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6968
5922
      ;;
6969
5923
 
6970
5924
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
6971
5925
      if test "$GCC" = yes; then
6972
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6973
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6974
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5926
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5927
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5928
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6975
5929
      else
6976
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6977
 
        _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'
6978
 
        _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~
6979
 
        $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'
 
5930
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5931
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
5932
        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
5933
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
6980
5934
 
6981
5935
        # Both c and cxx compiler support -rpath directly
6982
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
5936
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6983
5937
      fi
6984
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5938
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5939
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6985
5940
      ;;
6986
5941
 
6987
5942
    solaris*)
6988
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
5943
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6989
5944
      if test "$GCC" = yes; then
6990
5945
        wlarc='${wl}'
6991
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6992
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6993
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
5946
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5947
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5948
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6994
5949
      else
6995
 
        wlarc=''
6996
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6997
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6998
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
5950
        case `$CC -V 2>&1` in
 
5951
        *"Compilers 5.0"*)
 
5952
          wlarc=''
 
5953
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5954
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5955
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
5956
          ;;
 
5957
        *)
 
5958
          wlarc='${wl}'
 
5959
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5960
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5961
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
5962
          ;;
 
5963
        esac
6999
5964
      fi
7000
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7001
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5965
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5966
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7002
5967
      case $host_os in
7003
5968
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7004
5969
      *)
7005
 
        # The compiler driver will combine linker options so we
7006
 
        # cannot just pass the convience library names through
7007
 
        # without $wl, iff we do not link with $LD.
7008
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
7009
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
7010
 
        case $wlarc in
7011
 
        '')
7012
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
7013
 
        *)
7014
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7015
 
        esac ;;
 
5970
        # The compiler driver will combine and reorder linker options,
 
5971
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
5972
        # but is careful enough not to reorder.
 
5973
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5974
        if test "$GCC" = yes; then
 
5975
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
5976
        else
 
5977
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
5978
        fi
 
5979
        ;;
7016
5980
      esac
7017
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5981
      _LT_TAGVAR(link_all_deplibs, $1)=yes
7018
5982
      ;;
7019
5983
 
7020
5984
    sunos4*)
7021
5985
      if test "x$host_vendor" = xsequent; then
7022
5986
        # Use $CC to link under sequent, because it throws in some extra .o
7023
5987
        # files that make .init and .fini sections work.
7024
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5988
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7025
5989
      else
7026
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
5990
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7027
5991
      fi
7028
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7029
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7030
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7031
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5992
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5993
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5994
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5995
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7032
5996
      ;;
7033
5997
 
7034
5998
    sysv4)
7035
5999
      case $host_vendor in
7036
6000
        sni)
7037
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7038
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
6001
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6002
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7039
6003
        ;;
7040
6004
        siemens)
7041
6005
          ## LD is ld it makes a PLAMLIB
7042
6006
          ## CC just makes a GrossModule.
7043
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7044
 
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7045
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6007
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6008
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
6009
          _LT_TAGVAR(hardcode_direct, $1)=no
7046
6010
        ;;
7047
6011
        motorola)
7048
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7049
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
6012
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6013
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7050
6014
        ;;
7051
6015
      esac
7052
6016
      runpath_var='LD_RUN_PATH'
7053
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6017
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7054
6018
      ;;
7055
6019
 
7056
6020
    sysv4.3*)
7057
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7058
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7059
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
6021
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6022
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6023
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7060
6024
      ;;
7061
6025
 
7062
6026
    sysv4*MP*)
7063
6027
      if test -d /usr/nec; then
7064
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7065
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6028
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6029
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7066
6030
        runpath_var=LD_RUN_PATH
7067
6031
        hardcode_runpath_var=yes
7068
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
6032
        _LT_TAGVAR(ld_shlibs, $1)=yes
7069
6033
      fi
7070
6034
      ;;
7071
6035
 
7072
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
7073
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7074
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7075
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6036
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
6037
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6038
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6039
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7076
6040
      runpath_var='LD_RUN_PATH'
7077
6041
 
7078
6042
      if test "$GCC" = yes; then
7079
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7080
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6043
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6044
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7081
6045
      else
7082
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7083
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6046
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6047
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7084
6048
      fi
7085
6049
      ;;
7086
6050
 
7091
6055
      # ever link correctly.  If we're not using GNU ld we use -z text
7092
6056
      # though, which does catch some bad symbols but isn't as heavy-handed
7093
6057
      # as -z defs.
7094
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7095
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7096
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7097
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7098
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7099
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7100
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7101
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6058
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6059
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6060
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6061
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6062
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
6063
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6064
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6065
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7102
6066
      runpath_var='LD_RUN_PATH'
7103
6067
 
7104
6068
      if test "$GCC" = yes; then
7105
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7106
 
        _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'
 
6069
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6070
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7107
6071
      else
7108
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7109
 
        _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'
 
6072
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6073
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7110
6074
      fi
7111
6075
      ;;
7112
6076
 
7113
6077
    uts4*)
7114
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7115
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7116
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6078
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6079
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6080
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7117
6081
      ;;
7118
6082
 
7119
6083
    *)
7120
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6084
      _LT_TAGVAR(ld_shlibs, $1)=no
7121
6085
      ;;
7122
6086
    esac
 
6087
 
 
6088
    if test x$host_vendor = xsni; then
 
6089
      case $host in
 
6090
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6091
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
 
6092
        ;;
 
6093
      esac
 
6094
    fi
7123
6095
  fi
7124
6096
])
7125
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7126
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6097
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
6098
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6099
 
 
6100
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 
6101
 
 
6102
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 
6103
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 
6104
_LT_DECL([], [extract_expsyms_cmds], [2],
 
6105
    [The commands to extract the exported symbol list from a shared archive])
7127
6106
 
7128
6107
#
7129
6108
# Do we need to explicitly link libc?
7130
6109
#
7131
 
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 
6110
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
7132
6111
x|xyes)
7133
6112
  # Assume -lc should be added
7134
 
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6113
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7135
6114
 
7136
6115
  if test "$enable_shared" = yes && test "$GCC" = yes; then
7137
 
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
 
6116
    case $_LT_TAGVAR(archive_cmds, $1) in
7138
6117
    *'~'*)
7139
6118
      # FIXME: we may have to deal with multi-command sequences.
7140
6119
      ;;
7143
6122
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7144
6123
      # to ld, don't add -lc before -lgcc.
7145
6124
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7146
 
      $rm conftest*
7147
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6125
      $RM conftest*
 
6126
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7148
6127
 
7149
6128
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7150
6129
        soname=conftest
7151
6130
        lib=conftest
7152
6131
        libobjs=conftest.$ac_objext
7153
6132
        deplibs=
7154
 
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7155
 
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
6133
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
6134
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7156
6135
        compiler_flags=-v
7157
6136
        linker_flags=-v
7158
6137
        verstring=
7159
6138
        output_objdir=.
7160
6139
        libname=conftest
7161
 
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7162
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7163
 
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 
6140
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
6141
        _LT_TAGVAR(allow_undefined_flag, $1)=
 
6142
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7164
6143
        then
7165
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6144
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7166
6145
        else
7167
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6146
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7168
6147
        fi
7169
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
6148
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7170
6149
      else
7171
6150
        cat conftest.err 1>&5
7172
6151
      fi
7173
 
      $rm conftest*
7174
 
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 
6152
      $RM conftest*
 
6153
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7175
6154
      ;;
7176
6155
    esac
7177
6156
  fi
7178
6157
  ;;
7179
6158
esac
7180
 
])# AC_LIBTOOL_PROG_LD_SHLIBS
7181
 
 
7182
 
 
7183
 
# _LT_AC_FILE_LTDLL_C
7184
 
# -------------------
7185
 
# Be careful that the start marker always follows a newline.
7186
 
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7187
 
# /* ltdll.c starts here */
7188
 
# #define WIN32_LEAN_AND_MEAN
7189
 
# #include <windows.h>
7190
 
# #undef WIN32_LEAN_AND_MEAN
7191
 
# #include <stdio.h>
7192
 
#
7193
 
# #ifndef __CYGWIN__
7194
 
# #  ifdef __CYGWIN32__
7195
 
# #    define __CYGWIN__ __CYGWIN32__
7196
 
# #  endif
7197
 
# #endif
7198
 
#
7199
 
# #ifdef __cplusplus
7200
 
# extern "C" {
7201
 
# #endif
7202
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7203
 
# #ifdef __cplusplus
7204
 
# }
7205
 
# #endif
7206
 
#
7207
 
# #ifdef __CYGWIN__
7208
 
# #include <cygwin/cygwin_dll.h>
7209
 
# DECLARE_CYGWIN_DLL( DllMain );
7210
 
# #endif
7211
 
# HINSTANCE __hDllInstance_base;
7212
 
#
7213
 
# BOOL APIENTRY
7214
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7215
 
# {
7216
 
#   __hDllInstance_base = hInst;
7217
 
#   return TRUE;
7218
 
# }
7219
 
# /* ltdll.c ends here */
7220
 
])# _LT_AC_FILE_LTDLL_C
7221
 
 
7222
 
 
7223
 
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
6159
 
 
6160
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 
6161
    [Whether or not to add -lc for building shared libraries])
 
6162
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 
6163
    [enable_shared_with_static_runtimes], [0],
 
6164
    [Whether or not to disallow shared libs when runtime libs are static])
 
6165
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 
6166
    [Compiler flag to allow reflexive dlopens])
 
6167
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
 
6168
    [Compiler flag to generate shared objects directly from archives])
 
6169
_LT_TAGDECL([], [compiler_needs_object], [1],
 
6170
    [Whether the compiler copes with passing no objects directly])
 
6171
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 
6172
    [Create an old-style archive from a shared archive])
 
6173
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 
6174
    [Create a temporary old-style archive to link instead of a shared archive])
 
6175
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 
6176
_LT_TAGDECL([], [archive_expsym_cmds], [2])
 
6177
_LT_TAGDECL([], [module_cmds], [2],
 
6178
    [Commands used to build a loadable module if different from building
 
6179
    a shared archive.])
 
6180
_LT_TAGDECL([], [module_expsym_cmds], [2])
 
6181
_LT_TAGDECL([], [with_gnu_ld], [1],
 
6182
    [Whether we are building with GNU ld or not])
 
6183
_LT_TAGDECL([], [allow_undefined_flag], [1],
 
6184
    [Flag that allows shared libraries with undefined symbols to be built])
 
6185
_LT_TAGDECL([], [no_undefined_flag], [1],
 
6186
    [Flag that enforces no undefined symbols])
 
6187
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 
6188
    [Flag to hardcode $libdir into a binary during linking.
 
6189
    This must work even if $libdir does not exist])
 
6190
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
 
6191
    [[If ld is used when linking, flag to hardcode $libdir into a binary
 
6192
    during linking.  This must work even if $libdir does not exist]])
 
6193
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
 
6194
    [Whether we need a single "-rpath" flag with a separated argument])
 
6195
_LT_TAGDECL([], [hardcode_direct], [0],
 
6196
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6197
    DIR into the resulting binary])
 
6198
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
 
6199
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6200
    DIR into the resulting binary and the resulting library dependency is
 
6201
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
 
6202
    library is relocated])
 
6203
_LT_TAGDECL([], [hardcode_minus_L], [0],
 
6204
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
6205
    into the resulting binary])
 
6206
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 
6207
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
6208
    into the resulting binary])
 
6209
_LT_TAGDECL([], [hardcode_automatic], [0],
 
6210
    [Set to "yes" if building a shared library automatically hardcodes DIR
 
6211
    into the library and all subsequent libraries and executables linked
 
6212
    against it])
 
6213
_LT_TAGDECL([], [inherit_rpath], [0],
 
6214
    [Set to yes if linker adds runtime paths of dependent libraries
 
6215
    to runtime path list])
 
6216
_LT_TAGDECL([], [link_all_deplibs], [0],
 
6217
    [Whether libtool must link a program against all its dependency libraries])
 
6218
_LT_TAGDECL([], [fix_srcfile_path], [1],
 
6219
    [Fix the shell variable $srcfile for the compiler])
 
6220
_LT_TAGDECL([], [always_export_symbols], [0],
 
6221
    [Set to "yes" if exported symbols are required])
 
6222
_LT_TAGDECL([], [export_symbols_cmds], [2],
 
6223
    [The commands to list exported symbols])
 
6224
_LT_TAGDECL([], [exclude_expsyms], [1],
 
6225
    [Symbols that should not be listed in the preloaded symbols])
 
6226
_LT_TAGDECL([], [include_expsyms], [1],
 
6227
    [Symbols that must always be exported])
 
6228
_LT_TAGDECL([], [prelink_cmds], [2],
 
6229
    [Commands necessary for linking programs (against libraries) with templates])
 
6230
_LT_TAGDECL([], [file_list_spec], [1],
 
6231
    [Specify filename containing input files])
 
6232
dnl FIXME: Not yet implemented
 
6233
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 
6234
dnl    [Compiler flag to generate thread safe objects])
 
6235
])# _LT_LINKER_SHLIBS
 
6236
 
 
6237
 
 
6238
# _LT_LANG_C_CONFIG([TAG])
 
6239
# ------------------------
 
6240
# Ensure that the configuration variables for a C compiler are suitably
 
6241
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6242
# the compiler configuration to `libtool'.
 
6243
m4_defun([_LT_LANG_C_CONFIG],
 
6244
[m4_require([_LT_DECL_EGREP])dnl
 
6245
lt_save_CC="$CC"
 
6246
AC_LANG_PUSH(C)
 
6247
 
 
6248
# Source file extension for C test sources.
 
6249
ac_ext=c
 
6250
 
 
6251
# Object file extension for compiled C test sources.
 
6252
objext=o
 
6253
_LT_TAGVAR(objext, $1)=$objext
 
6254
 
 
6255
# Code to be used in simple compile tests
 
6256
lt_simple_compile_test_code="int some_variable = 0;"
 
6257
 
 
6258
# Code to be used in simple link tests
 
6259
lt_simple_link_test_code='int main(){return(0);}'
 
6260
 
 
6261
_LT_TAG_COMPILER
 
6262
# Save the default compiler, since it gets overwritten when the other
 
6263
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
6264
compiler_DEFAULT=$CC
 
6265
 
 
6266
# save warnings/boilerplate of simple test code
 
6267
_LT_COMPILER_BOILERPLATE
 
6268
_LT_LINKER_BOILERPLATE
 
6269
 
 
6270
if test -n "$compiler"; then
 
6271
  _LT_COMPILER_NO_RTTI($1)
 
6272
  _LT_COMPILER_PIC($1)
 
6273
  _LT_COMPILER_C_O($1)
 
6274
  _LT_COMPILER_FILE_LOCKS($1)
 
6275
  _LT_LINKER_SHLIBS($1)
 
6276
  _LT_SYS_DYNAMIC_LINKER($1)
 
6277
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
6278
  LT_SYS_DLOPEN_SELF
 
6279
  _LT_CMD_STRIPLIB
 
6280
 
 
6281
  # Report which library types will actually be built
 
6282
  AC_MSG_CHECKING([if libtool supports shared libraries])
 
6283
  AC_MSG_RESULT([$can_build_shared])
 
6284
 
 
6285
  AC_MSG_CHECKING([whether to build shared libraries])
 
6286
  test "$can_build_shared" = "no" && enable_shared=no
 
6287
 
 
6288
  # On AIX, shared libraries and static libraries use the same namespace, and
 
6289
  # are all built from PIC.
 
6290
  case $host_os in
 
6291
  aix3*)
 
6292
    test "$enable_shared" = yes && enable_static=no
 
6293
    if test -n "$RANLIB"; then
 
6294
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6295
      postinstall_cmds='$RANLIB $lib'
 
6296
    fi
 
6297
    ;;
 
6298
 
 
6299
  aix[[4-9]]*)
 
6300
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6301
      test "$enable_shared" = yes && enable_static=no
 
6302
    fi
 
6303
    ;;
 
6304
  esac
 
6305
  AC_MSG_RESULT([$enable_shared])
 
6306
 
 
6307
  AC_MSG_CHECKING([whether to build static libraries])
 
6308
  # Make sure either enable_shared or enable_static is yes.
 
6309
  test "$enable_shared" = yes || enable_static=yes
 
6310
  AC_MSG_RESULT([$enable_static])
 
6311
 
 
6312
  _LT_CONFIG($1)
 
6313
fi
 
6314
AC_LANG_POP
 
6315
CC="$lt_save_CC"
 
6316
])# _LT_LANG_C_CONFIG
 
6317
 
 
6318
 
 
6319
# _LT_PROG_CXX
 
6320
# ------------
 
6321
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
 
6322
# compiler, we have our own version here.
 
6323
m4_defun([_LT_PROG_CXX],
 
6324
[
 
6325
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
 
6326
AC_PROG_CXX
 
6327
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6328
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6329
    (test "X$CXX" != "Xg++"))) ; then
 
6330
  AC_PROG_CXXCPP
 
6331
else
 
6332
  _lt_caught_CXX_error=yes
 
6333
fi
 
6334
popdef([AC_MSG_ERROR])
 
6335
])# _LT_PROG_CXX
 
6336
 
 
6337
dnl aclocal-1.4 backwards compatibility:
 
6338
dnl AC_DEFUN([_LT_PROG_CXX], [])
 
6339
 
 
6340
 
 
6341
# _LT_LANG_CXX_CONFIG([TAG])
 
6342
# --------------------------
 
6343
# Ensure that the configuration variables for a C++ compiler are suitably
 
6344
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6345
# the compiler configuration to `libtool'.
 
6346
m4_defun([_LT_LANG_CXX_CONFIG],
 
6347
[AC_REQUIRE([_LT_PROG_CXX])dnl
 
6348
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6349
m4_require([_LT_DECL_EGREP])dnl
 
6350
 
 
6351
AC_LANG_PUSH(C++)
 
6352
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6353
_LT_TAGVAR(allow_undefined_flag, $1)=
 
6354
_LT_TAGVAR(always_export_symbols, $1)=no
 
6355
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
6356
_LT_TAGVAR(compiler_needs_object, $1)=no
 
6357
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6358
_LT_TAGVAR(hardcode_direct, $1)=no
 
6359
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6360
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6361
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6362
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6363
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
6364
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6365
_LT_TAGVAR(hardcode_automatic, $1)=no
 
6366
_LT_TAGVAR(inherit_rpath, $1)=no
 
6367
_LT_TAGVAR(module_cmds, $1)=
 
6368
_LT_TAGVAR(module_expsym_cmds, $1)=
 
6369
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
6370
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6371
_LT_TAGVAR(no_undefined_flag, $1)=
 
6372
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6373
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6374
 
 
6375
# Source file extension for C++ test sources.
 
6376
ac_ext=cpp
 
6377
 
 
6378
# Object file extension for compiled C++ test sources.
 
6379
objext=o
 
6380
_LT_TAGVAR(objext, $1)=$objext
 
6381
 
 
6382
# No sense in running all these tests if we already determined that
 
6383
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
6384
# are currently assumed to apply to all compilers on this platform,
 
6385
# and will be corrupted by setting them based on a non-working compiler.
 
6386
if test "$_lt_caught_CXX_error" != yes; then
 
6387
  # Code to be used in simple compile tests
 
6388
  lt_simple_compile_test_code="int some_variable = 0;"
 
6389
 
 
6390
  # Code to be used in simple link tests
 
6391
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
6392
 
 
6393
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6394
  _LT_TAG_COMPILER
 
6395
 
 
6396
  # save warnings/boilerplate of simple test code
 
6397
  _LT_COMPILER_BOILERPLATE
 
6398
  _LT_LINKER_BOILERPLATE
 
6399
 
 
6400
  # Allow CC to be a program name with arguments.
 
6401
  lt_save_CC=$CC
 
6402
  lt_save_LD=$LD
 
6403
  lt_save_GCC=$GCC
 
6404
  GCC=$GXX
 
6405
  lt_save_with_gnu_ld=$with_gnu_ld
 
6406
  lt_save_path_LD=$lt_cv_path_LD
 
6407
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
6408
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
6409
  else
 
6410
    $as_unset lt_cv_prog_gnu_ld
 
6411
  fi
 
6412
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
6413
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
6414
  else
 
6415
    $as_unset lt_cv_path_LD
 
6416
  fi
 
6417
  test -z "${LDCXX+set}" || LD=$LDCXX
 
6418
  CC=${CXX-"c++"}
 
6419
  compiler=$CC
 
6420
  _LT_TAGVAR(compiler, $1)=$CC
 
6421
  _LT_CC_BASENAME([$compiler])
 
6422
 
 
6423
  if test -n "$compiler"; then
 
6424
    # We don't want -fno-exception when compiling C++ code, so set the
 
6425
    # no_builtin_flag separately
 
6426
    if test "$GXX" = yes; then
 
6427
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
6428
    else
 
6429
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
6430
    fi
 
6431
 
 
6432
    if test "$GXX" = yes; then
 
6433
      # Set up default GNU C++ configuration
 
6434
 
 
6435
      LT_PATH_LD
 
6436
 
 
6437
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
6438
      # archiving commands below assume that GNU ld is being used.
 
6439
      if test "$with_gnu_ld" = yes; then
 
6440
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6441
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6442
 
 
6443
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6444
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6445
 
 
6446
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
6447
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
6448
        #     investigate it a little bit more. (MM)
 
6449
        wlarc='${wl}'
 
6450
 
 
6451
        # ancient GNU ld didn't support --whole-archive et. al.
 
6452
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
6453
          $GREP 'no-whole-archive' > /dev/null; then
 
6454
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6455
        else
 
6456
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6457
        fi
 
6458
      else
 
6459
        with_gnu_ld=no
 
6460
        wlarc=
 
6461
 
 
6462
        # A generic and very simple default shared library creation
 
6463
        # command for GNU C++ for the case where it uses the native
 
6464
        # linker, instead of GNU ld.  If possible, this setting should
 
6465
        # overridden to take advantage of the native linker features on
 
6466
        # the platform it is being used on.
 
6467
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
6468
      fi
 
6469
 
 
6470
      # Commands to make compiler produce verbose output that lists
 
6471
      # what "hidden" libraries, object files and flags are used when
 
6472
      # linking a shared library.
 
6473
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6474
 
 
6475
    else
 
6476
      GXX=no
 
6477
      with_gnu_ld=no
 
6478
      wlarc=
 
6479
    fi
 
6480
 
 
6481
    # PORTME: fill in a description of your system's C++ link characteristics
 
6482
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
6483
    _LT_TAGVAR(ld_shlibs, $1)=yes
 
6484
    case $host_os in
 
6485
      aix3*)
 
6486
        # FIXME: insert proper C++ library support
 
6487
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6488
        ;;
 
6489
      aix[[4-9]]*)
 
6490
        if test "$host_cpu" = ia64; then
 
6491
          # On IA64, the linker does run time linking by default, so we don't
 
6492
          # have to do anything special.
 
6493
          aix_use_runtimelinking=no
 
6494
          exp_sym_flag='-Bexport'
 
6495
          no_entry_flag=""
 
6496
        else
 
6497
          aix_use_runtimelinking=no
 
6498
 
 
6499
          # Test if we are trying to use run time linking or normal
 
6500
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6501
          # need to do runtime linking.
 
6502
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
6503
            for ld_flag in $LDFLAGS; do
 
6504
              case $ld_flag in
 
6505
              *-brtl*)
 
6506
                aix_use_runtimelinking=yes
 
6507
                break
 
6508
                ;;
 
6509
              esac
 
6510
            done
 
6511
            ;;
 
6512
          esac
 
6513
 
 
6514
          exp_sym_flag='-bexport'
 
6515
          no_entry_flag='-bnoentry'
 
6516
        fi
 
6517
 
 
6518
        # When large executables or shared objects are built, AIX ld can
 
6519
        # have problems creating the table of contents.  If linking a library
 
6520
        # or program results in "error TOC overflow" add -mminimal-toc to
 
6521
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6522
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6523
 
 
6524
        _LT_TAGVAR(archive_cmds, $1)=''
 
6525
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6526
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6527
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6528
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6529
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
6530
 
 
6531
        if test "$GXX" = yes; then
 
6532
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
6533
          # We only want to do this on AIX 4.2 and lower, the check
 
6534
          # below for broken collect2 doesn't work under 4.3+
 
6535
          collect2name=`${CC} -print-prog-name=collect2`
 
6536
          if test -f "$collect2name" &&
 
6537
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
6538
          then
 
6539
            # We have reworked collect2
 
6540
            :
 
6541
          else
 
6542
            # We have old collect2
 
6543
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
6544
            # It fails to find uninstalled libraries when the uninstalled
 
6545
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
6546
            # to unsupported forces relinking
 
6547
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6548
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6549
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6550
          fi
 
6551
          esac
 
6552
          shared_flag='-shared'
 
6553
          if test "$aix_use_runtimelinking" = yes; then
 
6554
            shared_flag="$shared_flag "'${wl}-G'
 
6555
          fi
 
6556
        else
 
6557
          # not using gcc
 
6558
          if test "$host_cpu" = ia64; then
 
6559
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6560
          # chokes on -Wl,-G. The following line is correct:
 
6561
          shared_flag='-G'
 
6562
          else
 
6563
            if test "$aix_use_runtimelinking" = yes; then
 
6564
              shared_flag='${wl}-G'
 
6565
            else
 
6566
              shared_flag='${wl}-bM:SRE'
 
6567
            fi
 
6568
          fi
 
6569
        fi
 
6570
 
 
6571
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 
6572
        # It seems that -bexpall does not export symbols beginning with
 
6573
        # underscore (_), so it is better to generate a list of symbols to
 
6574
        # export.
 
6575
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
6576
        if test "$aix_use_runtimelinking" = yes; then
 
6577
          # Warning - without using the other runtime loading flags (-brtl),
 
6578
          # -berok will link without error, but may produce a broken library.
 
6579
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
6580
          # Determine the default libpath from the value encoded in an empty
 
6581
          # executable.
 
6582
          _LT_SYS_MODULE_PATH_AIX
 
6583
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6584
 
 
6585
          _LT_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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6586
        else
 
6587
          if test "$host_cpu" = ia64; then
 
6588
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
6589
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
6590
            _LT_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"
 
6591
          else
 
6592
            # Determine the default libpath from the value encoded in an
 
6593
            # empty executable.
 
6594
            _LT_SYS_MODULE_PATH_AIX
 
6595
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6596
            # Warning - without using the other run time loading flags,
 
6597
            # -berok will link without error, but may produce a broken library.
 
6598
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
6599
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
6600
            # Exported symbols can be pulled into shared objects from archives
 
6601
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6602
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6603
            # This is similar to how AIX traditionally builds its shared
 
6604
            # libraries.
 
6605
            _LT_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'
 
6606
          fi
 
6607
        fi
 
6608
        ;;
 
6609
 
 
6610
      beos*)
 
6611
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
6612
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6613
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6614
          # support --undefined.  This deserves some investigation.  FIXME
 
6615
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6616
        else
 
6617
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6618
        fi
 
6619
        ;;
 
6620
 
 
6621
      chorus*)
 
6622
        case $cc_basename in
 
6623
          *)
 
6624
          # FIXME: insert proper C++ library support
 
6625
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6626
          ;;
 
6627
        esac
 
6628
        ;;
 
6629
 
 
6630
      cygwin* | mingw* | pw32* | cegcc*)
 
6631
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6632
        # as there is no search path for DLLs.
 
6633
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6634
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6635
        _LT_TAGVAR(always_export_symbols, $1)=no
 
6636
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6637
 
 
6638
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6639
          _LT_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'
 
6640
          # If the export-symbols file already is a .def file (1st line
 
6641
          # is EXPORTS), use it as is; otherwise, prepend...
 
6642
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6643
            cp $export_symbols $output_objdir/$soname.def;
 
6644
          else
 
6645
            echo EXPORTS > $output_objdir/$soname.def;
 
6646
            cat $export_symbols >> $output_objdir/$soname.def;
 
6647
          fi~
 
6648
          $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'
 
6649
        else
 
6650
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6651
        fi
 
6652
        ;;
 
6653
      darwin* | rhapsody*)
 
6654
        _LT_DARWIN_LINKER_FEATURES($1)
 
6655
        ;;
 
6656
 
 
6657
      dgux*)
 
6658
        case $cc_basename in
 
6659
          ec++*)
 
6660
            # FIXME: insert proper C++ library support
 
6661
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6662
            ;;
 
6663
          ghcx*)
 
6664
            # Green Hills C++ Compiler
 
6665
            # FIXME: insert proper C++ library support
 
6666
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6667
            ;;
 
6668
          *)
 
6669
            # FIXME: insert proper C++ library support
 
6670
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6671
            ;;
 
6672
        esac
 
6673
        ;;
 
6674
 
 
6675
      freebsd[[12]]*)
 
6676
        # C++ shared libraries reported to be fairly broken before
 
6677
        # switch to ELF
 
6678
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6679
        ;;
 
6680
 
 
6681
      freebsd-elf*)
 
6682
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6683
        ;;
 
6684
 
 
6685
      freebsd* | dragonfly*)
 
6686
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
6687
        # conventions
 
6688
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6689
        ;;
 
6690
 
 
6691
      gnu*)
 
6692
        ;;
 
6693
 
 
6694
      hpux9*)
 
6695
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6696
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6697
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6698
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6699
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
6700
                                             # but as the default
 
6701
                                             # location of the library.
 
6702
 
 
6703
        case $cc_basename in
 
6704
          CC*)
 
6705
            # FIXME: insert proper C++ library support
 
6706
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6707
            ;;
 
6708
          aCC*)
 
6709
            _LT_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'
 
6710
            # Commands to make compiler produce verbose output that lists
 
6711
            # what "hidden" libraries, object files and flags are used when
 
6712
            # linking a shared library.
 
6713
            #
 
6714
            # There doesn't appear to be a way to prevent this compiler from
 
6715
            # explicitly linking system object files so we need to strip them
 
6716
            # from the output so that they don't get included in the library
 
6717
            # dependencies.
 
6718
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6719
            ;;
 
6720
          *)
 
6721
            if test "$GXX" = yes; then
 
6722
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
6723
            else
 
6724
              # FIXME: insert proper C++ library support
 
6725
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6726
            fi
 
6727
            ;;
 
6728
        esac
 
6729
        ;;
 
6730
 
 
6731
      hpux10*|hpux11*)
 
6732
        if test $with_gnu_ld = no; then
 
6733
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6734
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6735
 
 
6736
          case $host_cpu in
 
6737
            hppa*64*|ia64*)
 
6738
              ;;
 
6739
            *)
 
6740
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6741
              ;;
 
6742
          esac
 
6743
        fi
 
6744
        case $host_cpu in
 
6745
          hppa*64*|ia64*)
 
6746
            _LT_TAGVAR(hardcode_direct, $1)=no
 
6747
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6748
            ;;
 
6749
          *)
 
6750
            _LT_TAGVAR(hardcode_direct, $1)=yes
 
6751
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6752
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
6753
                                                 # but as the default
 
6754
                                                 # location of the library.
 
6755
            ;;
 
6756
        esac
 
6757
 
 
6758
        case $cc_basename in
 
6759
          CC*)
 
6760
            # FIXME: insert proper C++ library support
 
6761
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6762
            ;;
 
6763
          aCC*)
 
6764
            case $host_cpu in
 
6765
              hppa*64*)
 
6766
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6767
                ;;
 
6768
              ia64*)
 
6769
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6770
                ;;
 
6771
              *)
 
6772
                _LT_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'
 
6773
                ;;
 
6774
            esac
 
6775
            # Commands to make compiler produce verbose output that lists
 
6776
            # what "hidden" libraries, object files and flags are used when
 
6777
            # linking a shared library.
 
6778
            #
 
6779
            # There doesn't appear to be a way to prevent this compiler from
 
6780
            # explicitly linking system object files so we need to strip them
 
6781
            # from the output so that they don't get included in the library
 
6782
            # dependencies.
 
6783
            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 "X$list" | $Xsed'
 
6784
            ;;
 
6785
          *)
 
6786
            if test "$GXX" = yes; then
 
6787
              if test $with_gnu_ld = no; then
 
6788
                case $host_cpu in
 
6789
                  hppa*64*)
 
6790
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6791
                    ;;
 
6792
                  ia64*)
 
6793
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6794
                    ;;
 
6795
                  *)
 
6796
                    _LT_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'
 
6797
                    ;;
 
6798
                esac
 
6799
              fi
 
6800
            else
 
6801
              # FIXME: insert proper C++ library support
 
6802
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6803
            fi
 
6804
            ;;
 
6805
        esac
 
6806
        ;;
 
6807
 
 
6808
      interix[[3-9]]*)
 
6809
        _LT_TAGVAR(hardcode_direct, $1)=no
 
6810
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6811
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6812
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6813
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6814
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6815
        # default) and relocated if they conflict, which is a slow very memory
 
6816
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
6817
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6818
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6819
        _LT_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'
 
6820
        _LT_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'
 
6821
        ;;
 
6822
      irix5* | irix6*)
 
6823
        case $cc_basename in
 
6824
          CC*)
 
6825
            # SGI C++
 
6826
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
6827
 
 
6828
            # Archives containing C++ object files must be created using
 
6829
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
6830
            # necessary to make sure instantiated templates are included
 
6831
            # in the archive.
 
6832
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
6833
            ;;
 
6834
          *)
 
6835
            if test "$GXX" = yes; then
 
6836
              if test "$with_gnu_ld" = no; then
 
6837
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6838
              else
 
6839
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
6840
              fi
 
6841
            fi
 
6842
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6843
            ;;
 
6844
        esac
 
6845
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6846
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6847
        _LT_TAGVAR(inherit_rpath, $1)=yes
 
6848
        ;;
 
6849
 
 
6850
      linux* | k*bsd*-gnu)
 
6851
        case $cc_basename in
 
6852
          KCC*)
 
6853
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
6854
 
 
6855
            # KCC will only create a shared library if the output file
 
6856
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
6857
            # to its proper name (with version) after linking.
 
6858
            _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
6859
            _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
6860
            # Commands to make compiler produce verbose output that lists
 
6861
            # what "hidden" libraries, object files and flags are used when
 
6862
            # linking a shared library.
 
6863
            #
 
6864
            # There doesn't appear to be a way to prevent this compiler from
 
6865
            # explicitly linking system object files so we need to strip them
 
6866
            # from the output so that they don't get included in the library
 
6867
            # dependencies.
 
6868
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6869
 
 
6870
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6871
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6872
 
 
6873
            # Archives containing C++ object files must be created using
 
6874
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
6875
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
6876
            ;;
 
6877
          icpc* | ecpc* )
 
6878
            # Intel C++
 
6879
            with_gnu_ld=yes
 
6880
            # version 8.0 and above of icpc choke on multiply defined symbols
 
6881
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
6882
            # earlier do not add the objects themselves.
 
6883
            case `$CC -V 2>&1` in
 
6884
              *"Version 7."*)
 
6885
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6886
                _LT_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'
 
6887
                ;;
 
6888
              *)  # Version 8.0 or newer
 
6889
                tmp_idyn=
 
6890
                case $host_cpu in
 
6891
                  ia64*) tmp_idyn=' -i_dynamic';;
 
6892
                esac
 
6893
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6894
                _LT_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'
 
6895
                ;;
 
6896
            esac
 
6897
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6898
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6899
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6900
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6901
            ;;
 
6902
          pgCC* | pgcpp*)
 
6903
            # Portland Group C++ compiler
 
6904
            case `$CC -V` in
 
6905
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
6906
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 
6907
                rm -rf $tpldir~
 
6908
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
6909
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
6910
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 
6911
                rm -rf $tpldir~
 
6912
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
6913
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
6914
                $RANLIB $oldlib'
 
6915
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 
6916
                rm -rf $tpldir~
 
6917
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
6918
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6919
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 
6920
                rm -rf $tpldir~
 
6921
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
6922
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
6923
              ;;
 
6924
            *) # Version 6 will use weak symbols
 
6925
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6926
              _LT_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'
 
6927
              ;;
 
6928
            esac
 
6929
 
 
6930
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
6931
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6932
            _LT_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'
 
6933
            ;;
 
6934
          cxx*)
 
6935
            # Compaq C++
 
6936
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6937
            _LT_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'
 
6938
 
 
6939
            runpath_var=LD_RUN_PATH
 
6940
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6941
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6942
 
 
6943
            # Commands to make compiler produce verbose output that lists
 
6944
            # what "hidden" libraries, object files and flags are used when
 
6945
            # linking a shared library.
 
6946
            #
 
6947
            # There doesn't appear to be a way to prevent this compiler from
 
6948
            # explicitly linking system object files so we need to strip them
 
6949
            # from the output so that they don't get included in the library
 
6950
            # dependencies.
 
6951
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
 
6952
            ;;
 
6953
          xl*)
 
6954
            # IBM XL 8.0 on PPC, with GNU ld
 
6955
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6956
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6957
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6958
            if test "x$supports_anon_versioning" = xyes; then
 
6959
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
6960
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6961
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
6962
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6963
            fi
 
6964
            ;;
 
6965
          *)
 
6966
            case `$CC -V 2>&1 | sed 5q` in
 
6967
            *Sun\ C*)
 
6968
              # Sun C++ 5.9
 
6969
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
6970
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6971
              _LT_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'
 
6972
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6973
              _LT_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'
 
6974
              _LT_TAGVAR(compiler_needs_object, $1)=yes
 
6975
 
 
6976
              # Not sure whether something based on
 
6977
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
6978
              # would be better.
 
6979
              output_verbose_link_cmd='echo'
 
6980
 
 
6981
              # Archives containing C++ object files must be created using
 
6982
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
6983
              # necessary to make sure instantiated templates are included
 
6984
              # in the archive.
 
6985
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
6986
              ;;
 
6987
            esac
 
6988
            ;;
 
6989
        esac
 
6990
        ;;
 
6991
 
 
6992
      lynxos*)
 
6993
        # FIXME: insert proper C++ library support
 
6994
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6995
        ;;
 
6996
 
 
6997
      m88k*)
 
6998
        # FIXME: insert proper C++ library support
 
6999
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7000
        ;;
 
7001
 
 
7002
      mvs*)
 
7003
        case $cc_basename in
 
7004
          cxx*)
 
7005
            # FIXME: insert proper C++ library support
 
7006
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7007
            ;;
 
7008
          *)
 
7009
            # FIXME: insert proper C++ library support
 
7010
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7011
            ;;
 
7012
        esac
 
7013
        ;;
 
7014
 
 
7015
      netbsd*)
 
7016
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
7017
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
7018
          wlarc=
 
7019
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7020
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
7021
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7022
        fi
 
7023
        # Workaround some broken pre-1.5 toolchains
 
7024
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
7025
        ;;
 
7026
 
 
7027
      *nto* | *qnx*)
 
7028
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
7029
        ;;
 
7030
 
 
7031
      openbsd2*)
 
7032
        # C++ shared libraries are fairly broken
 
7033
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7034
        ;;
 
7035
 
 
7036
      openbsd*)
 
7037
        if test -f /usr/libexec/ld.so; then
 
7038
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
7039
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7040
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
7041
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
7042
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7043
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7044
            _LT_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'
 
7045
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7046
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7047
          fi
 
7048
          output_verbose_link_cmd=echo
 
7049
        else
 
7050
          _LT_TAGVAR(ld_shlibs, $1)=no
 
7051
        fi
 
7052
        ;;
 
7053
 
 
7054
      osf3* | osf4* | osf5*)
 
7055
        case $cc_basename in
 
7056
          KCC*)
 
7057
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
7058
 
 
7059
            # KCC will only create a shared library if the output file
 
7060
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
7061
            # to its proper name (with version) after linking.
 
7062
            _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
7063
 
 
7064
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7065
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7066
 
 
7067
            # Archives containing C++ object files must be created using
 
7068
            # the KAI C++ compiler.
 
7069
            case $host in
 
7070
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
7071
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 
7072
            esac
 
7073
            ;;
 
7074
          RCC*)
 
7075
            # Rational C++ 2.4.1
 
7076
            # FIXME: insert proper C++ library support
 
7077
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7078
            ;;
 
7079
          cxx*)
 
7080
            case $host in
 
7081
              osf3*)
 
7082
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7083
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
7084
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7085
                ;;
 
7086
              *)
 
7087
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
7088
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
7089
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
7090
                  echo "-hidden">> $lib.exp~
 
7091
                  $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
7092
                  $RM $lib.exp'
 
7093
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
7094
                ;;
 
7095
            esac
 
7096
 
 
7097
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7098
 
 
7099
            # Commands to make compiler produce verbose output that lists
 
7100
            # what "hidden" libraries, object files and flags are used when
 
7101
            # linking a shared library.
 
7102
            #
 
7103
            # There doesn't appear to be a way to prevent this compiler from
 
7104
            # explicitly linking system object files so we need to strip them
 
7105
            # from the output so that they don't get included in the library
 
7106
            # dependencies.
 
7107
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
 
7108
            ;;
 
7109
          *)
 
7110
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
7111
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7112
              case $host in
 
7113
                osf3*)
 
7114
                  _LT_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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7115
                  ;;
 
7116
                *)
 
7117
                  _LT_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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7118
                  ;;
 
7119
              esac
 
7120
 
 
7121
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7122
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7123
 
 
7124
              # Commands to make compiler produce verbose output that lists
 
7125
              # what "hidden" libraries, object files and flags are used when
 
7126
              # linking a shared library.
 
7127
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7128
 
 
7129
            else
 
7130
              # FIXME: insert proper C++ library support
 
7131
              _LT_TAGVAR(ld_shlibs, $1)=no
 
7132
            fi
 
7133
            ;;
 
7134
        esac
 
7135
        ;;
 
7136
 
 
7137
      psos*)
 
7138
        # FIXME: insert proper C++ library support
 
7139
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7140
        ;;
 
7141
 
 
7142
      sunos4*)
 
7143
        case $cc_basename in
 
7144
          CC*)
 
7145
            # Sun C++ 4.x
 
7146
            # FIXME: insert proper C++ library support
 
7147
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7148
            ;;
 
7149
          lcc*)
 
7150
            # Lucid
 
7151
            # FIXME: insert proper C++ library support
 
7152
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7153
            ;;
 
7154
          *)
 
7155
            # FIXME: insert proper C++ library support
 
7156
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7157
            ;;
 
7158
        esac
 
7159
        ;;
 
7160
 
 
7161
      solaris*)
 
7162
        case $cc_basename in
 
7163
          CC*)
 
7164
            # Sun C++ 4.2, 5.x and Centerline C++
 
7165
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 
7166
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
7167
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7168
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7169
              $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'
 
7170
 
 
7171
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7172
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7173
            case $host_os in
 
7174
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7175
              *)
 
7176
                # The compiler driver will combine and reorder linker options,
 
7177
                # but understands `-z linker_flag'.
 
7178
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7179
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
7180
                ;;
 
7181
            esac
 
7182
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7183
 
 
7184
            output_verbose_link_cmd='echo'
 
7185
 
 
7186
            # Archives containing C++ object files must be created using
 
7187
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
7188
            # necessary to make sure instantiated templates are included
 
7189
            # in the archive.
 
7190
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
7191
            ;;
 
7192
          gcx*)
 
7193
            # Green Hills C++ Compiler
 
7194
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7195
 
 
7196
            # The C++ compiler must be used to create the archive.
 
7197
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
7198
            ;;
 
7199
          *)
 
7200
            # GNU C++ compiler with Solaris linker
 
7201
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
7202
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
7203
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
7204
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7205
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7206
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7207
 
 
7208
                # Commands to make compiler produce verbose output that lists
 
7209
                # what "hidden" libraries, object files and flags are used when
 
7210
                # linking a shared library.
 
7211
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7212
              else
 
7213
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
7214
                # platform.
 
7215
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7216
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7217
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7218
 
 
7219
                # Commands to make compiler produce verbose output that lists
 
7220
                # what "hidden" libraries, object files and flags are used when
 
7221
                # linking a shared library.
 
7222
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7223
              fi
 
7224
 
 
7225
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
7226
              case $host_os in
 
7227
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7228
                *)
 
7229
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
7230
                  ;;
 
7231
              esac
 
7232
            fi
 
7233
            ;;
 
7234
        esac
 
7235
        ;;
 
7236
 
 
7237
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
7238
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7239
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7240
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7241
      runpath_var='LD_RUN_PATH'
 
7242
 
 
7243
      case $cc_basename in
 
7244
        CC*)
 
7245
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7246
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7247
          ;;
 
7248
        *)
 
7249
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7250
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7251
          ;;
 
7252
      esac
 
7253
      ;;
 
7254
 
 
7255
      sysv5* | sco3.2v5* | sco5v6*)
 
7256
        # Note: We can NOT use -z defs as we might desire, because we do not
 
7257
        # link with -lc, and that would cause any symbols used from libc to
 
7258
        # always be unresolved, which means just about no library would
 
7259
        # ever link correctly.  If we're not using GNU ld we use -z text
 
7260
        # though, which does catch some bad symbols but isn't as heavy-handed
 
7261
        # as -z defs.
 
7262
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7263
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
7264
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7265
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7266
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
7267
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7268
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7269
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
7270
        runpath_var='LD_RUN_PATH'
 
7271
 
 
7272
        case $cc_basename in
 
7273
          CC*)
 
7274
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7275
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7276
            ;;
 
7277
          *)
 
7278
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7279
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7280
            ;;
 
7281
        esac
 
7282
      ;;
 
7283
 
 
7284
      tandem*)
 
7285
        case $cc_basename in
 
7286
          NCC*)
 
7287
            # NonStop-UX NCC 3.20
 
7288
            # FIXME: insert proper C++ library support
 
7289
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7290
            ;;
 
7291
          *)
 
7292
            # FIXME: insert proper C++ library support
 
7293
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7294
            ;;
 
7295
        esac
 
7296
        ;;
 
7297
 
 
7298
      vxworks*)
 
7299
        # FIXME: insert proper C++ library support
 
7300
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7301
        ;;
 
7302
 
 
7303
      *)
 
7304
        # FIXME: insert proper C++ library support
 
7305
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7306
        ;;
 
7307
    esac
 
7308
 
 
7309
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
7310
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
7311
 
 
7312
    _LT_TAGVAR(GCC, $1)="$GXX"
 
7313
    _LT_TAGVAR(LD, $1)="$LD"
 
7314
 
 
7315
    ## CAVEAT EMPTOR:
 
7316
    ## There is no encapsulation within the following macros, do not change
 
7317
    ## the running order or otherwise move them around unless you know exactly
 
7318
    ## what you are doing...
 
7319
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
7320
    _LT_COMPILER_PIC($1)
 
7321
    _LT_COMPILER_C_O($1)
 
7322
    _LT_COMPILER_FILE_LOCKS($1)
 
7323
    _LT_LINKER_SHLIBS($1)
 
7324
    _LT_SYS_DYNAMIC_LINKER($1)
 
7325
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7326
 
 
7327
    _LT_CONFIG($1)
 
7328
  fi # test -n "$compiler"
 
7329
 
 
7330
  CC=$lt_save_CC
 
7331
  LDCXX=$LD
 
7332
  LD=$lt_save_LD
 
7333
  GCC=$lt_save_GCC
 
7334
  with_gnu_ld=$lt_save_with_gnu_ld
 
7335
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
7336
  lt_cv_path_LD=$lt_save_path_LD
 
7337
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
7338
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
7339
fi # test "$_lt_caught_CXX_error" != yes
 
7340
 
 
7341
AC_LANG_POP
 
7342
])# _LT_LANG_CXX_CONFIG
 
7343
 
 
7344
 
 
7345
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7224
7346
# ---------------------------------
7225
 
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7226
 
 
7227
 
 
7228
 
# old names
7229
 
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
7230
 
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
7231
 
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
7232
 
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7233
 
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7234
 
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
7235
 
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
7236
 
 
7237
 
# This is just to silence aclocal about the macro not being used
7238
 
ifelse([AC_DISABLE_FAST_INSTALL])
7239
 
 
7240
 
AC_DEFUN([LT_AC_PROG_GCJ],
7241
 
[AC_CHECK_TOOL(GCJ, gcj, no)
7242
 
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7243
 
  AC_SUBST(GCJFLAGS)
7244
 
])
7245
 
 
7246
 
AC_DEFUN([LT_AC_PROG_RC],
7247
 
[AC_CHECK_TOOL(RC, windres, no)
7248
 
])
7249
 
 
 
7347
# Figure out "hidden" library dependencies from verbose
 
7348
# compiler output when linking a shared library.
 
7349
# Parse the compiler output and extract the necessary
 
7350
# objects, libraries and library flags.
 
7351
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 
7352
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7353
# Dependencies to place before and after the object being linked:
 
7354
_LT_TAGVAR(predep_objects, $1)=
 
7355
_LT_TAGVAR(postdep_objects, $1)=
 
7356
_LT_TAGVAR(predeps, $1)=
 
7357
_LT_TAGVAR(postdeps, $1)=
 
7358
_LT_TAGVAR(compiler_lib_search_path, $1)=
 
7359
 
 
7360
dnl we can't use the lt_simple_compile_test_code here,
 
7361
dnl because it contains code intended for an executable,
 
7362
dnl not a library.  It's possible we should let each
 
7363
dnl tag define a new lt_????_link_test_code variable,
 
7364
dnl but it's only used here...
 
7365
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 
7366
int a;
 
7367
void foo (void) { a = 0; }
 
7368
_LT_EOF
 
7369
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 
7370
class Foo
 
7371
{
 
7372
public:
 
7373
  Foo (void) { a = 0; }
 
7374
private:
 
7375
  int a;
 
7376
};
 
7377
_LT_EOF
 
7378
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 
7379
      subroutine foo
 
7380
      implicit none
 
7381
      integer*4 a
 
7382
      a=0
 
7383
      return
 
7384
      end
 
7385
_LT_EOF
 
7386
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 
7387
      subroutine foo
 
7388
      implicit none
 
7389
      integer a
 
7390
      a=0
 
7391
      return
 
7392
      end
 
7393
_LT_EOF
 
7394
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 
7395
public class foo {
 
7396
  private int a;
 
7397
  public void bar (void) {
 
7398
    a = 0;
 
7399
  }
 
7400
};
 
7401
_LT_EOF
 
7402
])
 
7403
dnl Parse the compiler output and extract the necessary
 
7404
dnl objects, libraries and library flags.
 
7405
if AC_TRY_EVAL(ac_compile); then
 
7406
  # Parse the compiler output and extract the necessary
 
7407
  # objects, libraries and library flags.
 
7408
 
 
7409
  # Sentinel used to keep track of whether or not we are before
 
7410
  # the conftest object file.
 
7411
  pre_test_object_deps_done=no
 
7412
 
 
7413
  for p in `eval "$output_verbose_link_cmd"`; do
 
7414
    case $p in
 
7415
 
 
7416
    -L* | -R* | -l*)
 
7417
       # Some compilers place space between "-{L,R}" and the path.
 
7418
       # Remove the space.
 
7419
       if test $p = "-L" ||
 
7420
          test $p = "-R"; then
 
7421
         prev=$p
 
7422
         continue
 
7423
       else
 
7424
         prev=
 
7425
       fi
 
7426
 
 
7427
       if test "$pre_test_object_deps_done" = no; then
 
7428
         case $p in
 
7429
         -L* | -R*)
 
7430
           # Internal compiler library paths should come after those
 
7431
           # provided the user.  The postdeps already come after the
 
7432
           # user supplied libs so there is no need to process them.
 
7433
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 
7434
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
7435
           else
 
7436
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
7437
           fi
 
7438
           ;;
 
7439
         # The "-l" case would never come before the object being
 
7440
         # linked, so don't bother handling this case.
 
7441
         esac
 
7442
       else
 
7443
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 
7444
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
 
7445
         else
 
7446
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
 
7447
         fi
 
7448
       fi
 
7449
       ;;
 
7450
 
 
7451
    *.$objext)
 
7452
       # This assumes that the test object file only shows up
 
7453
       # once in the compiler output.
 
7454
       if test "$p" = "conftest.$objext"; then
 
7455
         pre_test_object_deps_done=yes
 
7456
         continue
 
7457
       fi
 
7458
 
 
7459
       if test "$pre_test_object_deps_done" = no; then
 
7460
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 
7461
           _LT_TAGVAR(predep_objects, $1)="$p"
 
7462
         else
 
7463
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 
7464
         fi
 
7465
       else
 
7466
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 
7467
           _LT_TAGVAR(postdep_objects, $1)="$p"
 
7468
         else
 
7469
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 
7470
         fi
 
7471
       fi
 
7472
       ;;
 
7473
 
 
7474
    *) ;; # Ignore the rest.
 
7475
 
 
7476
    esac
 
7477
  done
 
7478
 
 
7479
  # Clean up.
 
7480
  rm -f a.out a.exe
 
7481
else
 
7482
  echo "libtool.m4: error: problem compiling $1 test program"
 
7483
fi
 
7484
 
 
7485
$RM -f confest.$objext
 
7486
 
 
7487
# PORTME: override above test on systems where it is broken
 
7488
m4_if([$1], [CXX],
 
7489
[case $host_os in
 
7490
interix[[3-9]]*)
 
7491
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
7492
  # hack all around it, let's just trust "g++" to DTRT.
 
7493
  _LT_TAGVAR(predep_objects,$1)=
 
7494
  _LT_TAGVAR(postdep_objects,$1)=
 
7495
  _LT_TAGVAR(postdeps,$1)=
 
7496
  ;;
 
7497
 
 
7498
linux*)
 
7499
  case `$CC -V 2>&1 | sed 5q` in
 
7500
  *Sun\ C*)
 
7501
    # Sun C++ 5.9
 
7502
 
 
7503
    # The more standards-conforming stlport4 library is
 
7504
    # incompatible with the Cstd library. Avoid specifying
 
7505
    # it if it's in CXXFLAGS. Ignore libCrun as
 
7506
    # -library=stlport4 depends on it.
 
7507
    case " $CXX $CXXFLAGS " in
 
7508
    *" -library=stlport4 "*)
 
7509
      solaris_use_stlport4=yes
 
7510
      ;;
 
7511
    esac
 
7512
 
 
7513
    if test "$solaris_use_stlport4" != yes; then
 
7514
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
7515
    fi
 
7516
    ;;
 
7517
  esac
 
7518
  ;;
 
7519
 
 
7520
solaris*)
 
7521
  case $cc_basename in
 
7522
  CC*)
 
7523
    # The more standards-conforming stlport4 library is
 
7524
    # incompatible with the Cstd library. Avoid specifying
 
7525
    # it if it's in CXXFLAGS. Ignore libCrun as
 
7526
    # -library=stlport4 depends on it.
 
7527
    case " $CXX $CXXFLAGS " in
 
7528
    *" -library=stlport4 "*)
 
7529
      solaris_use_stlport4=yes
 
7530
      ;;
 
7531
    esac
 
7532
 
 
7533
    # Adding this requires a known-good setup of shared libraries for
 
7534
    # Sun compiler versions before 5.6, else PIC objects from an old
 
7535
    # archive will be linked into the output, leading to subtle bugs.
 
7536
    if test "$solaris_use_stlport4" != yes; then
 
7537
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
7538
    fi
 
7539
    ;;
 
7540
  esac
 
7541
  ;;
 
7542
esac
 
7543
])
 
7544
 
 
7545
case " $_LT_TAGVAR(postdeps, $1) " in
 
7546
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
7547
esac
 
7548
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 
7549
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 
7550
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
7551
fi
 
7552
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 
7553
    [The directories searched by this compiler when creating a shared library])
 
7554
_LT_TAGDECL([], [predep_objects], [1],
 
7555
    [Dependencies to place before and after the objects being linked to
 
7556
    create a shared library])
 
7557
_LT_TAGDECL([], [postdep_objects], [1])
 
7558
_LT_TAGDECL([], [predeps], [1])
 
7559
_LT_TAGDECL([], [postdeps], [1])
 
7560
_LT_TAGDECL([], [compiler_lib_search_path], [1],
 
7561
    [The library search path used internally by the compiler when linking
 
7562
    a shared library])
 
7563
])# _LT_SYS_HIDDEN_LIBDEPS
 
7564
 
 
7565
 
 
7566
# _LT_PROG_F77
 
7567
# ------------
 
7568
# Since AC_PROG_F77 is broken, in that it returns the empty string
 
7569
# if there is no fortran compiler, we have our own version here.
 
7570
m4_defun([_LT_PROG_F77],
 
7571
[
 
7572
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
 
7573
AC_PROG_F77
 
7574
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7575
  _lt_disable_F77=yes
 
7576
fi
 
7577
popdef([AC_MSG_ERROR])
 
7578
])# _LT_PROG_F77
 
7579
 
 
7580
dnl aclocal-1.4 backwards compatibility:
 
7581
dnl AC_DEFUN([_LT_PROG_F77], [])
 
7582
 
 
7583
 
 
7584
# _LT_LANG_F77_CONFIG([TAG])
 
7585
# --------------------------
 
7586
# Ensure that the configuration variables for a Fortran 77 compiler are
 
7587
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7588
# to write the compiler configuration to `libtool'.
 
7589
m4_defun([_LT_LANG_F77_CONFIG],
 
7590
[AC_REQUIRE([_LT_PROG_F77])dnl
 
7591
AC_LANG_PUSH(Fortran 77)
 
7592
 
 
7593
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7594
_LT_TAGVAR(allow_undefined_flag, $1)=
 
7595
_LT_TAGVAR(always_export_symbols, $1)=no
 
7596
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
7597
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7598
_LT_TAGVAR(hardcode_direct, $1)=no
 
7599
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7600
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7601
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7602
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7603
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
7604
_LT_TAGVAR(hardcode_automatic, $1)=no
 
7605
_LT_TAGVAR(inherit_rpath, $1)=no
 
7606
_LT_TAGVAR(module_cmds, $1)=
 
7607
_LT_TAGVAR(module_expsym_cmds, $1)=
 
7608
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
7609
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7610
_LT_TAGVAR(no_undefined_flag, $1)=
 
7611
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7612
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7613
 
 
7614
# Source file extension for f77 test sources.
 
7615
ac_ext=f
 
7616
 
 
7617
# Object file extension for compiled f77 test sources.
 
7618
objext=o
 
7619
_LT_TAGVAR(objext, $1)=$objext
 
7620
 
 
7621
# No sense in running all these tests if we already determined that
 
7622
# the F77 compiler isn't working.  Some variables (like enable_shared)
 
7623
# are currently assumed to apply to all compilers on this platform,
 
7624
# and will be corrupted by setting them based on a non-working compiler.
 
7625
if test "$_lt_disable_F77" != yes; then
 
7626
  # Code to be used in simple compile tests
 
7627
  lt_simple_compile_test_code="\
 
7628
      subroutine t
 
7629
      return
 
7630
      end
 
7631
"
 
7632
 
 
7633
  # Code to be used in simple link tests
 
7634
  lt_simple_link_test_code="\
 
7635
      program t
 
7636
      end
 
7637
"
 
7638
 
 
7639
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7640
  _LT_TAG_COMPILER
 
7641
 
 
7642
  # save warnings/boilerplate of simple test code
 
7643
  _LT_COMPILER_BOILERPLATE
 
7644
  _LT_LINKER_BOILERPLATE
 
7645
 
 
7646
  # Allow CC to be a program name with arguments.
 
7647
  lt_save_CC="$CC"
 
7648
  lt_save_GCC=$GCC
 
7649
  CC=${F77-"f77"}
 
7650
  compiler=$CC
 
7651
  _LT_TAGVAR(compiler, $1)=$CC
 
7652
  _LT_CC_BASENAME([$compiler])
 
7653
  GCC=$G77
 
7654
  if test -n "$compiler"; then
 
7655
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
7656
    AC_MSG_RESULT([$can_build_shared])
 
7657
 
 
7658
    AC_MSG_CHECKING([whether to build shared libraries])
 
7659
    test "$can_build_shared" = "no" && enable_shared=no
 
7660
 
 
7661
    # On AIX, shared libraries and static libraries use the same namespace, and
 
7662
    # are all built from PIC.
 
7663
    case $host_os in
 
7664
      aix3*)
 
7665
        test "$enable_shared" = yes && enable_static=no
 
7666
        if test -n "$RANLIB"; then
 
7667
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7668
          postinstall_cmds='$RANLIB $lib'
 
7669
        fi
 
7670
        ;;
 
7671
      aix[[4-9]]*)
 
7672
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7673
          test "$enable_shared" = yes && enable_static=no
 
7674
        fi
 
7675
        ;;
 
7676
    esac
 
7677
    AC_MSG_RESULT([$enable_shared])
 
7678
 
 
7679
    AC_MSG_CHECKING([whether to build static libraries])
 
7680
    # Make sure either enable_shared or enable_static is yes.
 
7681
    test "$enable_shared" = yes || enable_static=yes
 
7682
    AC_MSG_RESULT([$enable_static])
 
7683
 
 
7684
    _LT_TAGVAR(GCC, $1)="$G77"
 
7685
    _LT_TAGVAR(LD, $1)="$LD"
 
7686
 
 
7687
    ## CAVEAT EMPTOR:
 
7688
    ## There is no encapsulation within the following macros, do not change
 
7689
    ## the running order or otherwise move them around unless you know exactly
 
7690
    ## what you are doing...
 
7691
    _LT_COMPILER_PIC($1)
 
7692
    _LT_COMPILER_C_O($1)
 
7693
    _LT_COMPILER_FILE_LOCKS($1)
 
7694
    _LT_LINKER_SHLIBS($1)
 
7695
    _LT_SYS_DYNAMIC_LINKER($1)
 
7696
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7697
 
 
7698
    _LT_CONFIG($1)
 
7699
  fi # test -n "$compiler"
 
7700
 
 
7701
  GCC=$lt_save_GCC
 
7702
  CC="$lt_save_CC"
 
7703
fi # test "$_lt_disable_F77" != yes
 
7704
 
 
7705
AC_LANG_POP
 
7706
])# _LT_LANG_F77_CONFIG
 
7707
 
 
7708
 
 
7709
# _LT_PROG_FC
 
7710
# -----------
 
7711
# Since AC_PROG_FC is broken, in that it returns the empty string
 
7712
# if there is no fortran compiler, we have our own version here.
 
7713
m4_defun([_LT_PROG_FC],
 
7714
[
 
7715
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
 
7716
AC_PROG_FC
 
7717
if test -z "$FC" || test "X$FC" = "Xno"; then
 
7718
  _lt_disable_FC=yes
 
7719
fi
 
7720
popdef([AC_MSG_ERROR])
 
7721
])# _LT_PROG_FC
 
7722
 
 
7723
dnl aclocal-1.4 backwards compatibility:
 
7724
dnl AC_DEFUN([_LT_PROG_FC], [])
 
7725
 
 
7726
 
 
7727
# _LT_LANG_FC_CONFIG([TAG])
 
7728
# -------------------------
 
7729
# Ensure that the configuration variables for a Fortran compiler are
 
7730
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7731
# to write the compiler configuration to `libtool'.
 
7732
m4_defun([_LT_LANG_FC_CONFIG],
 
7733
[AC_REQUIRE([_LT_PROG_FC])dnl
 
7734
AC_LANG_PUSH(Fortran)
 
7735
 
 
7736
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7737
_LT_TAGVAR(allow_undefined_flag, $1)=
 
7738
_LT_TAGVAR(always_export_symbols, $1)=no
 
7739
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
7740
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7741
_LT_TAGVAR(hardcode_direct, $1)=no
 
7742
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7743
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7744
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7745
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7746
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
7747
_LT_TAGVAR(hardcode_automatic, $1)=no
 
7748
_LT_TAGVAR(inherit_rpath, $1)=no
 
7749
_LT_TAGVAR(module_cmds, $1)=
 
7750
_LT_TAGVAR(module_expsym_cmds, $1)=
 
7751
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
7752
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7753
_LT_TAGVAR(no_undefined_flag, $1)=
 
7754
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7755
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7756
 
 
7757
# Source file extension for fc test sources.
 
7758
ac_ext=${ac_fc_srcext-f}
 
7759
 
 
7760
# Object file extension for compiled fc test sources.
 
7761
objext=o
 
7762
_LT_TAGVAR(objext, $1)=$objext
 
7763
 
 
7764
# No sense in running all these tests if we already determined that
 
7765
# the FC compiler isn't working.  Some variables (like enable_shared)
 
7766
# are currently assumed to apply to all compilers on this platform,
 
7767
# and will be corrupted by setting them based on a non-working compiler.
 
7768
if test "$_lt_disable_FC" != yes; then
 
7769
  # Code to be used in simple compile tests
 
7770
  lt_simple_compile_test_code="\
 
7771
      subroutine t
 
7772
      return
 
7773
      end
 
7774
"
 
7775
 
 
7776
  # Code to be used in simple link tests
 
7777
  lt_simple_link_test_code="\
 
7778
      program t
 
7779
      end
 
7780
"
 
7781
 
 
7782
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7783
  _LT_TAG_COMPILER
 
7784
 
 
7785
  # save warnings/boilerplate of simple test code
 
7786
  _LT_COMPILER_BOILERPLATE
 
7787
  _LT_LINKER_BOILERPLATE
 
7788
 
 
7789
  # Allow CC to be a program name with arguments.
 
7790
  lt_save_CC="$CC"
 
7791
  lt_save_GCC=$GCC
 
7792
  CC=${FC-"f95"}
 
7793
  compiler=$CC
 
7794
  GCC=$ac_cv_fc_compiler_gnu
 
7795
 
 
7796
  _LT_TAGVAR(compiler, $1)=$CC
 
7797
  _LT_CC_BASENAME([$compiler])
 
7798
 
 
7799
  if test -n "$compiler"; then
 
7800
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
7801
    AC_MSG_RESULT([$can_build_shared])
 
7802
 
 
7803
    AC_MSG_CHECKING([whether to build shared libraries])
 
7804
    test "$can_build_shared" = "no" && enable_shared=no
 
7805
 
 
7806
    # On AIX, shared libraries and static libraries use the same namespace, and
 
7807
    # are all built from PIC.
 
7808
    case $host_os in
 
7809
      aix3*)
 
7810
        test "$enable_shared" = yes && enable_static=no
 
7811
        if test -n "$RANLIB"; then
 
7812
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7813
          postinstall_cmds='$RANLIB $lib'
 
7814
        fi
 
7815
        ;;
 
7816
      aix[[4-9]]*)
 
7817
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7818
          test "$enable_shared" = yes && enable_static=no
 
7819
        fi
 
7820
        ;;
 
7821
    esac
 
7822
    AC_MSG_RESULT([$enable_shared])
 
7823
 
 
7824
    AC_MSG_CHECKING([whether to build static libraries])
 
7825
    # Make sure either enable_shared or enable_static is yes.
 
7826
    test "$enable_shared" = yes || enable_static=yes
 
7827
    AC_MSG_RESULT([$enable_static])
 
7828
 
 
7829
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
 
7830
    _LT_TAGVAR(LD, $1)="$LD"
 
7831
 
 
7832
    ## CAVEAT EMPTOR:
 
7833
    ## There is no encapsulation within the following macros, do not change
 
7834
    ## the running order or otherwise move them around unless you know exactly
 
7835
    ## what you are doing...
 
7836
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
7837
    _LT_COMPILER_PIC($1)
 
7838
    _LT_COMPILER_C_O($1)
 
7839
    _LT_COMPILER_FILE_LOCKS($1)
 
7840
    _LT_LINKER_SHLIBS($1)
 
7841
    _LT_SYS_DYNAMIC_LINKER($1)
 
7842
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7843
 
 
7844
    _LT_CONFIG($1)
 
7845
  fi # test -n "$compiler"
 
7846
 
 
7847
  GCC=$lt_save_GCC
 
7848
  CC="$lt_save_CC"
 
7849
fi # test "$_lt_disable_FC" != yes
 
7850
 
 
7851
AC_LANG_POP
 
7852
])# _LT_LANG_FC_CONFIG
 
7853
 
 
7854
 
 
7855
# _LT_LANG_GCJ_CONFIG([TAG])
 
7856
# --------------------------
 
7857
# Ensure that the configuration variables for the GNU Java Compiler compiler
 
7858
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7859
# to write the compiler configuration to `libtool'.
 
7860
m4_defun([_LT_LANG_GCJ_CONFIG],
 
7861
[AC_REQUIRE([LT_PROG_GCJ])dnl
 
7862
AC_LANG_SAVE
 
7863
 
 
7864
# Source file extension for Java test sources.
 
7865
ac_ext=java
 
7866
 
 
7867
# Object file extension for compiled Java test sources.
 
7868
objext=o
 
7869
_LT_TAGVAR(objext, $1)=$objext
 
7870
 
 
7871
# Code to be used in simple compile tests
 
7872
lt_simple_compile_test_code="class foo {}"
 
7873
 
 
7874
# Code to be used in simple link tests
 
7875
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
7876
 
 
7877
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7878
_LT_TAG_COMPILER
 
7879
 
 
7880
# save warnings/boilerplate of simple test code
 
7881
_LT_COMPILER_BOILERPLATE
 
7882
_LT_LINKER_BOILERPLATE
 
7883
 
 
7884
# Allow CC to be a program name with arguments.
 
7885
lt_save_CC="$CC"
 
7886
lt_save_GCC=$GCC
 
7887
GCC=yes
 
7888
CC=${GCJ-"gcj"}
 
7889
compiler=$CC
 
7890
_LT_TAGVAR(compiler, $1)=$CC
 
7891
_LT_TAGVAR(LD, $1)="$LD"
 
7892
_LT_CC_BASENAME([$compiler])
 
7893
 
 
7894
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
7895
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7896
 
 
7897
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7898
 
 
7899
if test -n "$compiler"; then
 
7900
  _LT_COMPILER_NO_RTTI($1)
 
7901
  _LT_COMPILER_PIC($1)
 
7902
  _LT_COMPILER_C_O($1)
 
7903
  _LT_COMPILER_FILE_LOCKS($1)
 
7904
  _LT_LINKER_SHLIBS($1)
 
7905
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
7906
 
 
7907
  _LT_CONFIG($1)
 
7908
fi
 
7909
 
 
7910
AC_LANG_RESTORE
 
7911
 
 
7912
GCC=$lt_save_GCC
 
7913
CC="$lt_save_CC"
 
7914
])# _LT_LANG_GCJ_CONFIG
 
7915
 
 
7916
 
 
7917
# _LT_LANG_RC_CONFIG([TAG])
 
7918
# -------------------------
 
7919
# Ensure that the configuration variables for the Windows resource compiler
 
7920
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7921
# to write the compiler configuration to `libtool'.
 
7922
m4_defun([_LT_LANG_RC_CONFIG],
 
7923
[AC_REQUIRE([LT_PROG_RC])dnl
 
7924
AC_LANG_SAVE
 
7925
 
 
7926
# Source file extension for RC test sources.
 
7927
ac_ext=rc
 
7928
 
 
7929
# Object file extension for compiled RC test sources.
 
7930
objext=o
 
7931
_LT_TAGVAR(objext, $1)=$objext
 
7932
 
 
7933
# Code to be used in simple compile tests
 
7934
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
7935
 
 
7936
# Code to be used in simple link tests
 
7937
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
7938
 
 
7939
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7940
_LT_TAG_COMPILER
 
7941
 
 
7942
# save warnings/boilerplate of simple test code
 
7943
_LT_COMPILER_BOILERPLATE
 
7944
_LT_LINKER_BOILERPLATE
 
7945
 
 
7946
# Allow CC to be a program name with arguments.
 
7947
lt_save_CC="$CC"
 
7948
lt_save_GCC=$GCC
 
7949
GCC=
 
7950
CC=${RC-"windres"}
 
7951
compiler=$CC
 
7952
_LT_TAGVAR(compiler, $1)=$CC
 
7953
_LT_CC_BASENAME([$compiler])
 
7954
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
7955
 
 
7956
if test -n "$compiler"; then
 
7957
  :
 
7958
  _LT_CONFIG($1)
 
7959
fi
 
7960
 
 
7961
GCC=$lt_save_GCC
 
7962
AC_LANG_RESTORE
 
7963
CC="$lt_save_CC"
 
7964
])# _LT_LANG_RC_CONFIG
 
7965
 
 
7966
 
 
7967
# LT_PROG_GCJ
 
7968
# -----------
 
7969
AC_DEFUN([LT_PROG_GCJ],
 
7970
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
 
7971
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
 
7972
    [AC_CHECK_TOOL(GCJ, gcj,)
 
7973
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
7974
      AC_SUBST(GCJFLAGS)])])[]dnl
 
7975
])
 
7976
 
 
7977
# Old name:
 
7978
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
 
7979
dnl aclocal-1.4 backwards compatibility:
 
7980
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 
7981
 
 
7982
 
 
7983
# LT_PROG_RC
 
7984
# ----------
 
7985
AC_DEFUN([LT_PROG_RC],
 
7986
[AC_CHECK_TOOL(RC, windres,)
 
7987
])
 
7988
 
 
7989
# Old name:
 
7990
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
 
7991
dnl aclocal-1.4 backwards compatibility:
 
7992
dnl AC_DEFUN([LT_AC_PROG_RC], [])
 
7993
 
 
7994
 
 
7995
# _LT_DECL_EGREP
 
7996
# --------------
 
7997
# If we don't have a new enough Autoconf to choose the best grep
 
7998
# available, choose the one first in the user's PATH.
 
7999
m4_defun([_LT_DECL_EGREP],
 
8000
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
8001
AC_REQUIRE([AC_PROG_FGREP])dnl
 
8002
test -z "$GREP" && GREP=grep
 
8003
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
 
8004
_LT_DECL([], [EGREP], [1], [An ERE matcher])
 
8005
_LT_DECL([], [FGREP], [1], [A literal string matcher])
 
8006
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
 
8007
AC_SUBST([GREP])
 
8008
])
 
8009
 
 
8010
 
 
8011
# _LT_DECL_OBJDUMP
 
8012
# --------------
 
8013
# If we don't have a new enough Autoconf to choose the best objdump
 
8014
# available, choose the one first in the user's PATH.
 
8015
m4_defun([_LT_DECL_OBJDUMP],
 
8016
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
8017
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8018
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 
8019
AC_SUBST([OBJDUMP])
 
8020
])
 
8021
 
 
8022
 
 
8023
# _LT_DECL_SED
 
8024
# ------------
 
8025
# Check for a fully-functional sed program, that truncates
 
8026
# as few characters as possible.  Prefer GNU sed if found.
 
8027
m4_defun([_LT_DECL_SED],
 
8028
[AC_PROG_SED
 
8029
test -z "$SED" && SED=sed
 
8030
Xsed="$SED -e 1s/^X//"
 
8031
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
 
8032
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 
8033
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
 
8034
])# _LT_DECL_SED
 
8035
 
 
8036
m4_ifndef([AC_PROG_SED], [
7250
8037
# NOTE: This macro has been submitted for inclusion into   #
7251
8038
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7252
8039
#  a released version of Autoconf we should remove this    #
7253
8040
#  macro and use it instead.                               #
7254
 
# LT_AC_PROG_SED
7255
 
# --------------
7256
 
# Check for a fully-functional sed program, that truncates
7257
 
# as few characters as possible.  Prefer GNU sed if found.
7258
 
AC_DEFUN([LT_AC_PROG_SED],
 
8041
 
 
8042
m4_defun([AC_PROG_SED],
7259
8043
[AC_MSG_CHECKING([for a sed that does not truncate output])
7260
8044
AC_CACHE_VAL(lt_cv_path_SED,
7261
8045
[# Loop through the user's path and test for sed and gsed.
7273
8057
    done
7274
8058
  done
7275
8059
done
 
8060
IFS=$as_save_IFS
7276
8061
lt_ac_max=0
7277
8062
lt_ac_count=0
7278
8063
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7305
8090
done
7306
8091
])
7307
8092
SED=$lt_cv_path_SED
 
8093
AC_SUBST([SED])
7308
8094
AC_MSG_RESULT([$SED])
7309
 
])
 
8095
])#AC_PROG_SED
 
8096
])#m4_ifndef
 
8097
 
 
8098
# Old name:
 
8099
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
 
8100
dnl aclocal-1.4 backwards compatibility:
 
8101
dnl AC_DEFUN([LT_AC_PROG_SED], [])
 
8102
 
 
8103
 
 
8104
# _LT_CHECK_SHELL_FEATURES
 
8105
# ------------------------
 
8106
# Find out whether the shell is Bourne or XSI compatible,
 
8107
# or has some other useful features.
 
8108
m4_defun([_LT_CHECK_SHELL_FEATURES],
 
8109
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
 
8110
# Try some XSI features
 
8111
xsi_shell=no
 
8112
( _lt_dummy="a/b/c"
 
8113
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
8114
      = c,a/b,, \
 
8115
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
8116
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
8117
  && xsi_shell=yes
 
8118
AC_MSG_RESULT([$xsi_shell])
 
8119
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
 
8120
 
 
8121
AC_MSG_CHECKING([whether the shell understands "+="])
 
8122
lt_shell_append=no
 
8123
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
 
8124
    >/dev/null 2>&1 \
 
8125
  && lt_shell_append=yes
 
8126
AC_MSG_RESULT([$lt_shell_append])
 
8127
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
 
8128
 
 
8129
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
8130
  lt_unset=unset
 
8131
else
 
8132
  lt_unset=false
 
8133
fi
 
8134
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
 
8135
 
 
8136
# test EBCDIC or ASCII
 
8137
case `echo X|tr X '\101'` in
 
8138
 A) # ASCII based system
 
8139
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
8140
  lt_SP2NL='tr \040 \012'
 
8141
  lt_NL2SP='tr \015\012 \040\040'
 
8142
  ;;
 
8143
 *) # EBCDIC based system
 
8144
  lt_SP2NL='tr \100 \n'
 
8145
  lt_NL2SP='tr \r\n \100\100'
 
8146
  ;;
 
8147
esac
 
8148
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
 
8149
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
 
8150
])# _LT_CHECK_SHELL_FEATURES
 
8151
 
 
8152
 
 
8153
# _LT_PROG_XSI_SHELLFNS
 
8154
# ---------------------
 
8155
# Bourne and XSI compatible variants of some useful shell functions.
 
8156
m4_defun([_LT_PROG_XSI_SHELLFNS],
 
8157
[case $xsi_shell in
 
8158
  yes)
 
8159
    cat << \_LT_EOF >> "$cfgfile"
 
8160
 
 
8161
# func_dirname file append nondir_replacement
 
8162
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
8163
# otherwise set result to NONDIR_REPLACEMENT.
 
8164
func_dirname ()
 
8165
{
 
8166
  case ${1} in
 
8167
    */*) func_dirname_result="${1%/*}${2}" ;;
 
8168
    *  ) func_dirname_result="${3}" ;;
 
8169
  esac
 
8170
}
 
8171
 
 
8172
# func_basename file
 
8173
func_basename ()
 
8174
{
 
8175
  func_basename_result="${1##*/}"
 
8176
}
 
8177
 
 
8178
# func_dirname_and_basename file append nondir_replacement
 
8179
# perform func_basename and func_dirname in a single function
 
8180
# call:
 
8181
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
8182
#             add APPEND to the result, otherwise set result
 
8183
#             to NONDIR_REPLACEMENT.
 
8184
#             value returned in "$func_dirname_result"
 
8185
#   basename: Compute filename of FILE.
 
8186
#             value retuned in "$func_basename_result"
 
8187
# Implementation must be kept synchronized with func_dirname
 
8188
# and func_basename. For efficiency, we do not delegate to
 
8189
# those functions but instead duplicate the functionality here.
 
8190
func_dirname_and_basename ()
 
8191
{
 
8192
  case ${1} in
 
8193
    */*) func_dirname_result="${1%/*}${2}" ;;
 
8194
    *  ) func_dirname_result="${3}" ;;
 
8195
  esac
 
8196
  func_basename_result="${1##*/}"
 
8197
}
 
8198
 
 
8199
# func_stripname prefix suffix name
 
8200
# strip PREFIX and SUFFIX off of NAME.
 
8201
# PREFIX and SUFFIX must not contain globbing or regex special
 
8202
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
8203
# dot (in which case that matches only a dot).
 
8204
func_stripname ()
 
8205
{
 
8206
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
8207
  # positional parameters, so assign one to ordinary parameter first.
 
8208
  func_stripname_result=${3}
 
8209
  func_stripname_result=${func_stripname_result#"${1}"}
 
8210
  func_stripname_result=${func_stripname_result%"${2}"}
 
8211
}
 
8212
 
 
8213
# func_opt_split
 
8214
func_opt_split ()
 
8215
{
 
8216
  func_opt_split_opt=${1%%=*}
 
8217
  func_opt_split_arg=${1#*=}
 
8218
}
 
8219
 
 
8220
# func_lo2o object
 
8221
func_lo2o ()
 
8222
{
 
8223
  case ${1} in
 
8224
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
8225
    *)    func_lo2o_result=${1} ;;
 
8226
  esac
 
8227
}
 
8228
 
 
8229
# func_xform libobj-or-source
 
8230
func_xform ()
 
8231
{
 
8232
  func_xform_result=${1%.*}.lo
 
8233
}
 
8234
 
 
8235
# func_arith arithmetic-term...
 
8236
func_arith ()
 
8237
{
 
8238
  func_arith_result=$(( $[*] ))
 
8239
}
 
8240
 
 
8241
# func_len string
 
8242
# STRING may not start with a hyphen.
 
8243
func_len ()
 
8244
{
 
8245
  func_len_result=${#1}
 
8246
}
 
8247
 
 
8248
_LT_EOF
 
8249
    ;;
 
8250
  *) # Bourne compatible functions.
 
8251
    cat << \_LT_EOF >> "$cfgfile"
 
8252
 
 
8253
# func_dirname file append nondir_replacement
 
8254
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
8255
# otherwise set result to NONDIR_REPLACEMENT.
 
8256
func_dirname ()
 
8257
{
 
8258
  # Extract subdirectory from the argument.
 
8259
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
8260
  if test "X$func_dirname_result" = "X${1}"; then
 
8261
    func_dirname_result="${3}"
 
8262
  else
 
8263
    func_dirname_result="$func_dirname_result${2}"
 
8264
  fi
 
8265
}
 
8266
 
 
8267
# func_basename file
 
8268
func_basename ()
 
8269
{
 
8270
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
8271
}
 
8272
 
 
8273
dnl func_dirname_and_basename
 
8274
dnl A portable version of this function is already defined in general.m4sh
 
8275
dnl so there is no need for it here.
 
8276
 
 
8277
# func_stripname prefix suffix name
 
8278
# strip PREFIX and SUFFIX off of NAME.
 
8279
# PREFIX and SUFFIX must not contain globbing or regex special
 
8280
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
8281
# dot (in which case that matches only a dot).
 
8282
# func_strip_suffix prefix name
 
8283
func_stripname ()
 
8284
{
 
8285
  case ${2} in
 
8286
    .*) func_stripname_result=`$ECHO "X${3}" \
 
8287
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
8288
    *)  func_stripname_result=`$ECHO "X${3}" \
 
8289
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
8290
  esac
 
8291
}
 
8292
 
 
8293
# sed scripts:
 
8294
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
 
8295
my_sed_long_arg='1s/^-[[^=]]*=//'
 
8296
 
 
8297
# func_opt_split
 
8298
func_opt_split ()
 
8299
{
 
8300
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
8301
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
8302
}
 
8303
 
 
8304
# func_lo2o object
 
8305
func_lo2o ()
 
8306
{
 
8307
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
8308
}
 
8309
 
 
8310
# func_xform libobj-or-source
 
8311
func_xform ()
 
8312
{
 
8313
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
8314
}
 
8315
 
 
8316
# func_arith arithmetic-term...
 
8317
func_arith ()
 
8318
{
 
8319
  func_arith_result=`expr "$[@]"`
 
8320
}
 
8321
 
 
8322
# func_len string
 
8323
# STRING may not start with a hyphen.
 
8324
func_len ()
 
8325
{
 
8326
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
 
8327
}
 
8328
 
 
8329
_LT_EOF
 
8330
esac
 
8331
 
 
8332
case $lt_shell_append in
 
8333
  yes)
 
8334
    cat << \_LT_EOF >> "$cfgfile"
 
8335
 
 
8336
# func_append var value
 
8337
# Append VALUE to the end of shell variable VAR.
 
8338
func_append ()
 
8339
{
 
8340
  eval "$[1]+=\$[2]"
 
8341
}
 
8342
_LT_EOF
 
8343
    ;;
 
8344
  *)
 
8345
    cat << \_LT_EOF >> "$cfgfile"
 
8346
 
 
8347
# func_append var value
 
8348
# Append VALUE to the end of shell variable VAR.
 
8349
func_append ()
 
8350
{
 
8351
  eval "$[1]=\$$[1]\$[2]"
 
8352
}
 
8353
 
 
8354
_LT_EOF
 
8355
    ;;
 
8356
  esac
 
8357
])
 
8358
 
 
8359
# Helper functions for option handling.                    -*- Autoconf -*-
 
8360
#
 
8361
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8362
#   Written by Gary V. Vaughan, 2004
 
8363
#
 
8364
# This file is free software; the Free Software Foundation gives
 
8365
# unlimited permission to copy and/or distribute it, with or without
 
8366
# modifications, as long as this notice is preserved.
 
8367
 
 
8368
# serial 6 ltoptions.m4
 
8369
 
 
8370
# This is to help aclocal find these macros, as it can't see m4_define.
 
8371
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
 
8372
 
 
8373
 
 
8374
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
 
8375
# ------------------------------------------
 
8376
m4_define([_LT_MANGLE_OPTION],
 
8377
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
 
8378
 
 
8379
 
 
8380
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
 
8381
# ---------------------------------------
 
8382
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
 
8383
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
 
8384
# saved as a flag.
 
8385
m4_define([_LT_SET_OPTION],
 
8386
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
 
8387
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
 
8388
        _LT_MANGLE_DEFUN([$1], [$2]),
 
8389
    [m4_warning([Unknown $1 option `$2'])])[]dnl
 
8390
])
 
8391
 
 
8392
 
 
8393
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
 
8394
# ------------------------------------------------------------
 
8395
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
8396
m4_define([_LT_IF_OPTION],
 
8397
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
 
8398
 
 
8399
 
 
8400
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
 
8401
# -------------------------------------------------------
 
8402
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
 
8403
# are set.
 
8404
m4_define([_LT_UNLESS_OPTIONS],
 
8405
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8406
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
 
8407
                      [m4_define([$0_found])])])[]dnl
 
8408
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
 
8409
])[]dnl
 
8410
])
 
8411
 
 
8412
 
 
8413
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
 
8414
# ----------------------------------------
 
8415
# OPTION-LIST is a space-separated list of Libtool options associated
 
8416
# with MACRO-NAME.  If any OPTION has a matching handler declared with
 
8417
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
 
8418
# the unknown option and exit.
 
8419
m4_defun([_LT_SET_OPTIONS],
 
8420
[# Set options
 
8421
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8422
    [_LT_SET_OPTION([$1], _LT_Option)])
 
8423
 
 
8424
m4_if([$1],[LT_INIT],[
 
8425
  dnl
 
8426
  dnl Simply set some default values (i.e off) if boolean options were not
 
8427
  dnl specified:
 
8428
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
 
8429
  ])
 
8430
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
 
8431
  ])
 
8432
  dnl
 
8433
  dnl If no reference was made to various pairs of opposing options, then
 
8434
  dnl we run the default mode handler for the pair.  For example, if neither
 
8435
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
 
8436
  dnl archives by default:
 
8437
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
 
8438
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
 
8439
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
 
8440
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
 
8441
                   [_LT_ENABLE_FAST_INSTALL])
 
8442
  ])
 
8443
])# _LT_SET_OPTIONS
 
8444
 
 
8445
 
 
8446
 
 
8447
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
 
8448
# -----------------------------------------
 
8449
m4_define([_LT_MANGLE_DEFUN],
 
8450
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
 
8451
 
 
8452
 
 
8453
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
 
8454
# -----------------------------------------------
 
8455
m4_define([LT_OPTION_DEFINE],
 
8456
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
 
8457
])# LT_OPTION_DEFINE
 
8458
 
 
8459
 
 
8460
# dlopen
 
8461
# ------
 
8462
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
 
8463
])
 
8464
 
 
8465
AU_DEFUN([AC_LIBTOOL_DLOPEN],
 
8466
[_LT_SET_OPTION([LT_INIT], [dlopen])
 
8467
AC_DIAGNOSE([obsolete],
 
8468
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8469
put the `dlopen' option into LT_INIT's first parameter.])
 
8470
])
 
8471
 
 
8472
dnl aclocal-1.4 backwards compatibility:
 
8473
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
 
8474
 
 
8475
 
 
8476
# win32-dll
 
8477
# ---------
 
8478
# Declare package support for building win32 dll's.
 
8479
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
 
8480
[enable_win32_dll=yes
 
8481
 
 
8482
case $host in
 
8483
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
8484
  AC_CHECK_TOOL(AS, as, false)
 
8485
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
8486
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
8487
  ;;
 
8488
esac
 
8489
 
 
8490
test -z "$AS" && AS=as
 
8491
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
8492
 
 
8493
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8494
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
8495
 
 
8496
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8497
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
8498
])# win32-dll
 
8499
 
 
8500
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
8501
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
8502
_LT_SET_OPTION([LT_INIT], [win32-dll])
 
8503
AC_DIAGNOSE([obsolete],
 
8504
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8505
put the `win32-dll' option into LT_INIT's first parameter.])
 
8506
])
 
8507
 
 
8508
dnl aclocal-1.4 backwards compatibility:
 
8509
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
 
8510
 
 
8511
 
 
8512
# _LT_ENABLE_SHARED([DEFAULT])
 
8513
# ----------------------------
 
8514
# implement the --enable-shared flag, and supports the `shared' and
 
8515
# `disable-shared' LT_INIT options.
 
8516
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8517
m4_define([_LT_ENABLE_SHARED],
 
8518
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8519
AC_ARG_ENABLE([shared],
 
8520
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
8521
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
 
8522
    [p=${PACKAGE-default}
 
8523
    case $enableval in
 
8524
    yes) enable_shared=yes ;;
 
8525
    no) enable_shared=no ;;
 
8526
    *)
 
8527
      enable_shared=no
 
8528
      # Look at the argument we got.  We use all the common list separators.
 
8529
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8530
      for pkg in $enableval; do
 
8531
        IFS="$lt_save_ifs"
 
8532
        if test "X$pkg" = "X$p"; then
 
8533
          enable_shared=yes
 
8534
        fi
 
8535
      done
 
8536
      IFS="$lt_save_ifs"
 
8537
      ;;
 
8538
    esac],
 
8539
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
 
8540
 
 
8541
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
 
8542
        [Whether or not to build shared libraries])
 
8543
])# _LT_ENABLE_SHARED
 
8544
 
 
8545
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
 
8546
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
 
8547
 
 
8548
# Old names:
 
8549
AC_DEFUN([AC_ENABLE_SHARED],
 
8550
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
 
8551
])
 
8552
 
 
8553
AC_DEFUN([AC_DISABLE_SHARED],
 
8554
[_LT_SET_OPTION([LT_INIT], [disable-shared])
 
8555
])
 
8556
 
 
8557
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
 
8558
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
8559
 
 
8560
dnl aclocal-1.4 backwards compatibility:
 
8561
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
 
8562
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
 
8563
 
 
8564
 
 
8565
 
 
8566
# _LT_ENABLE_STATIC([DEFAULT])
 
8567
# ----------------------------
 
8568
# implement the --enable-static flag, and support the `static' and
 
8569
# `disable-static' LT_INIT options.
 
8570
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8571
m4_define([_LT_ENABLE_STATIC],
 
8572
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8573
AC_ARG_ENABLE([static],
 
8574
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
8575
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
 
8576
    [p=${PACKAGE-default}
 
8577
    case $enableval in
 
8578
    yes) enable_static=yes ;;
 
8579
    no) enable_static=no ;;
 
8580
    *)
 
8581
     enable_static=no
 
8582
      # Look at the argument we got.  We use all the common list separators.
 
8583
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8584
      for pkg in $enableval; do
 
8585
        IFS="$lt_save_ifs"
 
8586
        if test "X$pkg" = "X$p"; then
 
8587
          enable_static=yes
 
8588
        fi
 
8589
      done
 
8590
      IFS="$lt_save_ifs"
 
8591
      ;;
 
8592
    esac],
 
8593
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
 
8594
 
 
8595
    _LT_DECL([build_old_libs], [enable_static], [0],
 
8596
        [Whether or not to build static libraries])
 
8597
])# _LT_ENABLE_STATIC
 
8598
 
 
8599
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
 
8600
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
 
8601
 
 
8602
# Old names:
 
8603
AC_DEFUN([AC_ENABLE_STATIC],
 
8604
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
 
8605
])
 
8606
 
 
8607
AC_DEFUN([AC_DISABLE_STATIC],
 
8608
[_LT_SET_OPTION([LT_INIT], [disable-static])
 
8609
])
 
8610
 
 
8611
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
 
8612
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
8613
 
 
8614
dnl aclocal-1.4 backwards compatibility:
 
8615
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
 
8616
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
 
8617
 
 
8618
 
 
8619
 
 
8620
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
 
8621
# ----------------------------------
 
8622
# implement the --enable-fast-install flag, and support the `fast-install'
 
8623
# and `disable-fast-install' LT_INIT options.
 
8624
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8625
m4_define([_LT_ENABLE_FAST_INSTALL],
 
8626
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8627
AC_ARG_ENABLE([fast-install],
 
8628
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
8629
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
8630
    [p=${PACKAGE-default}
 
8631
    case $enableval in
 
8632
    yes) enable_fast_install=yes ;;
 
8633
    no) enable_fast_install=no ;;
 
8634
    *)
 
8635
      enable_fast_install=no
 
8636
      # Look at the argument we got.  We use all the common list separators.
 
8637
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8638
      for pkg in $enableval; do
 
8639
        IFS="$lt_save_ifs"
 
8640
        if test "X$pkg" = "X$p"; then
 
8641
          enable_fast_install=yes
 
8642
        fi
 
8643
      done
 
8644
      IFS="$lt_save_ifs"
 
8645
      ;;
 
8646
    esac],
 
8647
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
 
8648
 
 
8649
_LT_DECL([fast_install], [enable_fast_install], [0],
 
8650
         [Whether or not to optimize for fast installation])dnl
 
8651
])# _LT_ENABLE_FAST_INSTALL
 
8652
 
 
8653
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
 
8654
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
 
8655
 
 
8656
# Old names:
 
8657
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
 
8658
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
 
8659
AC_DIAGNOSE([obsolete],
 
8660
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
8661
the `fast-install' option into LT_INIT's first parameter.])
 
8662
])
 
8663
 
 
8664
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
 
8665
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
 
8666
AC_DIAGNOSE([obsolete],
 
8667
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
8668
the `disable-fast-install' option into LT_INIT's first parameter.])
 
8669
])
 
8670
 
 
8671
dnl aclocal-1.4 backwards compatibility:
 
8672
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
 
8673
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
 
8674
 
 
8675
 
 
8676
# _LT_WITH_PIC([MODE])
 
8677
# --------------------
 
8678
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
 
8679
# LT_INIT options.
 
8680
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
8681
m4_define([_LT_WITH_PIC],
 
8682
[AC_ARG_WITH([pic],
 
8683
    [AS_HELP_STRING([--with-pic],
 
8684
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
8685
    [pic_mode="$withval"],
 
8686
    [pic_mode=default])
 
8687
 
 
8688
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
 
8689
 
 
8690
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
 
8691
])# _LT_WITH_PIC
 
8692
 
 
8693
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
 
8694
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
 
8695
 
 
8696
# Old name:
 
8697
AU_DEFUN([AC_LIBTOOL_PICMODE],
 
8698
[_LT_SET_OPTION([LT_INIT], [pic-only])
 
8699
AC_DIAGNOSE([obsolete],
 
8700
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8701
put the `pic-only' option into LT_INIT's first parameter.])
 
8702
])
 
8703
 
 
8704
dnl aclocal-1.4 backwards compatibility:
 
8705
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
 
8706
 
 
8707
 
 
8708
m4_define([_LTDL_MODE], [])
 
8709
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
 
8710
                 [m4_define([_LTDL_MODE], [nonrecursive])])
 
8711
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
 
8712
                 [m4_define([_LTDL_MODE], [recursive])])
 
8713
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
 
8714
                 [m4_define([_LTDL_MODE], [subproject])])
 
8715
 
 
8716
m4_define([_LTDL_TYPE], [])
 
8717
LT_OPTION_DEFINE([LTDL_INIT], [installable],
 
8718
                 [m4_define([_LTDL_TYPE], [installable])])
 
8719
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
 
8720
                 [m4_define([_LTDL_TYPE], [convenience])])
 
8721
 
 
8722
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
 
8723
#
 
8724
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8725
# Written by Gary V. Vaughan, 2004
 
8726
#
 
8727
# This file is free software; the Free Software Foundation gives
 
8728
# unlimited permission to copy and/or distribute it, with or without
 
8729
# modifications, as long as this notice is preserved.
 
8730
 
 
8731
# serial 6 ltsugar.m4
 
8732
 
 
8733
# This is to help aclocal find these macros, as it can't see m4_define.
 
8734
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
 
8735
 
 
8736
 
 
8737
# lt_join(SEP, ARG1, [ARG2...])
 
8738
# -----------------------------
 
8739
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
 
8740
# associated separator.
 
8741
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
 
8742
# versions in m4sugar had bugs.
 
8743
m4_define([lt_join],
 
8744
[m4_if([$#], [1], [],
 
8745
       [$#], [2], [[$2]],
 
8746
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
 
8747
m4_define([_lt_join],
 
8748
[m4_if([$#$2], [2], [],
 
8749
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
 
8750
 
 
8751
 
 
8752
# lt_car(LIST)
 
8753
# lt_cdr(LIST)
 
8754
# ------------
 
8755
# Manipulate m4 lists.
 
8756
# These macros are necessary as long as will still need to support
 
8757
# Autoconf-2.59 which quotes differently.
 
8758
m4_define([lt_car], [[$1]])
 
8759
m4_define([lt_cdr],
 
8760
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
 
8761
       [$#], 1, [],
 
8762
       [m4_dquote(m4_shift($@))])])
 
8763
m4_define([lt_unquote], $1)
 
8764
 
 
8765
 
 
8766
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
 
8767
# ------------------------------------------
 
8768
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
 
8769
# Note that neither SEPARATOR nor STRING are expanded; they are appended
 
8770
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
 
8771
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
 
8772
# than defined and empty).
 
8773
#
 
8774
# This macro is needed until we can rely on Autoconf 2.62, since earlier
 
8775
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
 
8776
m4_define([lt_append],
 
8777
[m4_define([$1],
 
8778
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
 
8779
 
 
8780
 
 
8781
 
 
8782
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
 
8783
# ----------------------------------------------------------
 
8784
# Produce a SEP delimited list of all paired combinations of elements of
 
8785
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
 
8786
# has the form PREFIXmINFIXSUFFIXn.
 
8787
# Needed until we can rely on m4_combine added in Autoconf 2.62.
 
8788
m4_define([lt_combine],
 
8789
[m4_if(m4_eval([$# > 3]), [1],
 
8790
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
 
8791
[[m4_foreach([_Lt_prefix], [$2],
 
8792
             [m4_foreach([_Lt_suffix],
 
8793
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
 
8794
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
 
8795
 
 
8796
 
 
8797
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
 
8798
# -----------------------------------------------------------------------
 
8799
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
 
8800
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
 
8801
m4_define([lt_if_append_uniq],
 
8802
[m4_ifdef([$1],
 
8803
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
 
8804
                 [lt_append([$1], [$2], [$3])$4],
 
8805
                 [$5])],
 
8806
          [lt_append([$1], [$2], [$3])$4])])
 
8807
 
 
8808
 
 
8809
# lt_dict_add(DICT, KEY, VALUE)
 
8810
# -----------------------------
 
8811
m4_define([lt_dict_add],
 
8812
[m4_define([$1($2)], [$3])])
 
8813
 
 
8814
 
 
8815
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
 
8816
# --------------------------------------------
 
8817
m4_define([lt_dict_add_subkey],
 
8818
[m4_define([$1($2:$3)], [$4])])
 
8819
 
 
8820
 
 
8821
# lt_dict_fetch(DICT, KEY, [SUBKEY])
 
8822
# ----------------------------------
 
8823
m4_define([lt_dict_fetch],
 
8824
[m4_ifval([$3],
 
8825
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
 
8826
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
 
8827
 
 
8828
 
 
8829
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
 
8830
# -----------------------------------------------------------------
 
8831
m4_define([lt_if_dict_fetch],
 
8832
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
 
8833
        [$5],
 
8834
    [$6])])
 
8835
 
 
8836
 
 
8837
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
 
8838
# --------------------------------------------------------------
 
8839
m4_define([lt_dict_filter],
 
8840
[m4_if([$5], [], [],
 
8841
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
 
8842
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
 
8843
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
 
8844
])
 
8845
 
 
8846
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
 
8847
#
 
8848
#   Copyright (C) 2004 Free Software Foundation, Inc.
 
8849
#   Written by Scott James Remnant, 2004
 
8850
#
 
8851
# This file is free software; the Free Software Foundation gives
 
8852
# unlimited permission to copy and/or distribute it, with or without
 
8853
# modifications, as long as this notice is preserved.
 
8854
 
 
8855
# Generated from ltversion.in.
 
8856
 
 
8857
# serial 3012 ltversion.m4
 
8858
# This file is part of GNU Libtool
 
8859
 
 
8860
m4_define([LT_PACKAGE_VERSION], [2.2.6])
 
8861
m4_define([LT_PACKAGE_REVISION], [1.3012])
 
8862
 
 
8863
AC_DEFUN([LTVERSION_VERSION],
 
8864
[macro_version='2.2.6'
 
8865
macro_revision='1.3012'
 
8866
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
 
8867
_LT_DECL(, macro_revision, 0)
 
8868
])
 
8869
 
 
8870
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
 
8871
#
 
8872
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
8873
#   Written by Scott James Remnant, 2004.
 
8874
#
 
8875
# This file is free software; the Free Software Foundation gives
 
8876
# unlimited permission to copy and/or distribute it, with or without
 
8877
# modifications, as long as this notice is preserved.
 
8878
 
 
8879
# serial 4 lt~obsolete.m4
 
8880
 
 
8881
# These exist entirely to fool aclocal when bootstrapping libtool.
 
8882
#
 
8883
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
 
8884
# which have later been changed to m4_define as they aren't part of the
 
8885
# exported API, or moved to Autoconf or Automake where they belong.
 
8886
#
 
8887
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
 
8888
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
 
8889
# using a macro with the same name in our local m4/libtool.m4 it'll
 
8890
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
 
8891
# and doesn't know about Autoconf macros at all.)
 
8892
#
 
8893
# So we provide this file, which has a silly filename so it's always
 
8894
# included after everything else.  This provides aclocal with the
 
8895
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
 
8896
# because those macros already exist, or will be overwritten later.
 
8897
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
 
8898
#
 
8899
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
 
8900
# Yes, that means every name once taken will need to remain here until
 
8901
# we give up compatibility with versions before 1.7, at which point
 
8902
# we need to keep only those names which we still refer to.
 
8903
 
 
8904
# This is to help aclocal find these macros, as it can't see m4_define.
 
8905
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
 
8906
 
 
8907
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
 
8908
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
 
8909
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
 
8910
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
 
8911
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
 
8912
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
 
8913
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
 
8914
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
 
8915
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
 
8916
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
 
8917
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
 
8918
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
 
8919
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
 
8920
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
 
8921
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
 
8922
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
 
8923
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
 
8924
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
 
8925
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
 
8926
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
 
8927
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
 
8928
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
 
8929
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
 
8930
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
 
8931
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
 
8932
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
 
8933
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
 
8934
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
 
8935
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
 
8936
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
 
8937
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
 
8938
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
 
8939
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
 
8940
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
 
8941
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
 
8942
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
 
8943
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
 
8944
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
 
8945
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
 
8946
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
 
8947
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
 
8948
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
 
8949
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
 
8950
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
 
8951
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
 
8952
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
 
8953
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
 
8954
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
 
8955
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
 
8956
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
 
8957
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
 
8958
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
 
8959
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
 
8960
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
 
8961
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7310
8962
 
7311
8963
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
7312
8964
7376
9028
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
7377
9029
# ---------------------------------------------
7378
9030
m4_define([_PKG_CONFIG],
7379
 
[if test -n "$PKG_CONFIG"; then
7380
 
    if test -n "$$1"; then
7381
 
        pkg_cv_[]$1="$$1"
7382
 
    else
7383
 
        PKG_CHECK_EXISTS([$3],
7384
 
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
7385
 
                         [pkg_failed=yes])
7386
 
    fi
7387
 
else
7388
 
        pkg_failed=untried
 
9031
[if test -n "$$1"; then
 
9032
    pkg_cv_[]$1="$$1"
 
9033
 elif test -n "$PKG_CONFIG"; then
 
9034
    PKG_CHECK_EXISTS([$3],
 
9035
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
9036
                     [pkg_failed=yes])
 
9037
 else
 
9038
    pkg_failed=untried
7389
9039
fi[]dnl
7390
9040
])# _PKG_CONFIG
7391
9041
 
7429
9079
if test $pkg_failed = yes; then
7430
9080
        _PKG_SHORT_ERRORS_SUPPORTED
7431
9081
        if test $_pkg_short_errors_supported = yes; then
7432
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
9082
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
7433
9083
        else 
7434
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
9084
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
7435
9085
        fi
7436
9086
        # Put the nasty error message in config.log where it belongs
7437
9087
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
7456
9106
 
7457
9107
_PKG_TEXT
7458
9108
 
7459
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
9109
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
7460
9110
                [$4])
7461
9111
else
7462
9112
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS