~ubuntu-branches/ubuntu/precise/tumbler/precise

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2010-12-05 18:39:20 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101205183920-2mcxzfb5ufpzzfis
Tags: 0.1.5-0ubuntu1
New upstream development release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17
 
[m4_warning([this file was generated for autoconf 2.65.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],,
 
17
[m4_warning([this file was generated for autoconf 2.66.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
301
301
 
302
302
    dnl These rules are solely for the distribution goal.  While doing this
303
303
    dnl we only have to keep exactly one list of the available catalogs
304
 
    dnl in configure.in.
 
304
    dnl in configure.ac.
305
305
    for lang in $ALL_LINGUAS; do
306
306
      GMOFILES="$GMOFILES $lang.gmo"
307
307
      POFILES="$POFILES $lang.po"
430
430
dnl
431
431
dnl Now the definitions that aclocal will find
432
432
dnl
433
 
ifdef(glib_configure_in,[],[
 
433
ifdef(glib_configure_ac,[],[
434
434
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
435
435
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
436
436
])dnl
486
486
])
487
487
 
488
488
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
489
# serial 1 (pkg-config-0.24)
489
490
490
491
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
491
492
#
513
514
AC_DEFUN([PKG_PROG_PKG_CONFIG],
514
515
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
515
516
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
516
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
517
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
518
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
519
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
520
 
517
521
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
518
522
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
519
523
fi
526
530
                AC_MSG_RESULT([no])
527
531
                PKG_CONFIG=""
528
532
        fi
529
 
                
530
533
fi[]dnl
531
534
])# PKG_PROG_PKG_CONFIG
532
535
 
535
538
# Check to see whether a particular set of modules exists.  Similar
536
539
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
537
540
#
538
 
#
539
 
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
540
 
# this or PKG_CHECK_MODULES is called, or make sure to call
541
 
# PKG_CHECK_EXISTS manually
 
541
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
542
# only at the first occurence in configure.ac, so if the first place
 
543
# it's called might be skipped (such as if it is within an "if", you
 
544
# have to call PKG_CHECK_EXISTS manually
542
545
# --------------------------------------------------------------
543
546
AC_DEFUN([PKG_CHECK_EXISTS],
544
547
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
545
548
if test -n "$PKG_CONFIG" && \
546
549
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
547
 
  m4_ifval([$2], [$2], [:])
 
550
  m4_default([$2], [:])
548
551
m4_ifvaln([$3], [else
549
552
  $3])dnl
550
553
fi])
551
554
 
552
 
 
553
555
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
554
556
# ---------------------------------------------
555
557
m4_define([_PKG_CONFIG],
602
604
See the pkg-config man page for more details.])
603
605
 
604
606
if test $pkg_failed = yes; then
 
607
        AC_MSG_RESULT([no])
605
608
        _PKG_SHORT_ERRORS_SUPPORTED
606
609
        if test $_pkg_short_errors_supported = yes; then
607
610
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
611
614
        # Put the nasty error message in config.log where it belongs
612
615
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
613
616
 
614
 
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
617
        m4_default([$4], [AC_MSG_ERROR(
615
618
[Package requirements ($2) were not met:
616
619
 
617
620
$$1_PKG_ERRORS
619
622
Consider adjusting the PKG_CONFIG_PATH environment variable if you
620
623
installed software in a non-standard prefix.
621
624
 
622
 
_PKG_TEXT
623
 
])],
624
 
                [AC_MSG_RESULT([no])
625
 
                $4])
 
625
_PKG_TEXT])
 
626
        ])
626
627
elif test $pkg_failed = untried; then
627
 
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
628
        AC_MSG_RESULT([no])
 
629
        m4_default([$4], [AC_MSG_FAILURE(
628
630
[The pkg-config script could not be found or is too old.  Make sure it
629
631
is in your PATH or set the PKG_CONFIG environment variable to the full
630
632
path to pkg-config.
631
633
 
632
634
_PKG_TEXT
633
635
 
634
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
635
 
                [$4])
 
636
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
 
637
        ])
636
638
else
637
639
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
638
640
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
639
641
        AC_MSG_RESULT([yes])
640
 
        ifelse([$3], , :, [$3])
 
642
        $3
641
643
fi[]dnl
642
644
])# PKG_CHECK_MODULES
643
645
 
1983
1985
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1984
1986
#
1985
1987
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1986
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
1988
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
1989
#                 Inc.
1987
1990
#   Written by Gordon Matzigkeit, 1996
1988
1991
#
1989
1992
# This file is free software; the Free Software Foundation gives
1992
1995
 
1993
1996
m4_define([_LT_COPYING], [dnl
1994
1997
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1995
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
1998
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
1999
#                 Inc.
1996
2000
#   Written by Gordon Matzigkeit, 1996
1997
2001
#
1998
2002
#   This file is part of GNU Libtool.
2019
2023
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2020
2024
])
2021
2025
 
2022
 
# serial 56 LT_INIT
 
2026
# serial 57 LT_INIT
2023
2027
 
2024
2028
 
2025
2029
# LT_PREREQ(VERSION)
2048
2052
# ------------------
2049
2053
AC_DEFUN([LT_INIT],
2050
2054
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
2055
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
2051
2056
AC_BEFORE([$0], [LT_LANG])dnl
2052
2057
AC_BEFORE([$0], [LT_OUTPUT])dnl
2053
2058
AC_BEFORE([$0], [LTDL_INIT])dnl
2064
2069
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
2065
2070
m4_require([_LT_PROG_LTMAIN])dnl
2066
2071
 
 
2072
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
 
2073
 
2067
2074
dnl Parse OPTIONS
2068
2075
_LT_SET_OPTIONS([$0], [$1])
2069
2076
 
2100
2107
    *) break;;
2101
2108
  esac
2102
2109
done
2103
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
2110
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
2104
2111
])
2105
2112
 
2106
2113
 
2120
2127
m4_defun([_LT_SETUP],
2121
2128
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2122
2129
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
2130
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
 
2131
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
 
2132
 
2123
2133
_LT_DECL([], [host_alias], [0], [The host system])dnl
2124
2134
_LT_DECL([], [host], [0])dnl
2125
2135
_LT_DECL([], [host_os], [0])dnl
2161
2171
_LT_CHECK_OBJDIR
2162
2172
 
2163
2173
m4_require([_LT_TAG_COMPILER])dnl
2164
 
_LT_PROG_ECHO_BACKSLASH
2165
2174
 
2166
2175
case $host_os in
2167
2176
aix3*)
2175
2184
  ;;
2176
2185
esac
2177
2186
 
2178
 
# Sed substitution that helps us do robust quoting.  It backslashifies
2179
 
# metacharacters that are still active within double-quoted strings.
2180
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
2181
 
 
2182
 
# Same as above, but do not quote variable references.
2183
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
2184
 
 
2185
 
# Sed substitution to delay expansion of an escaped shell variable in a
2186
 
# double_quote_subst'ed string.
2187
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2188
 
 
2189
 
# Sed substitution to delay expansion of an escaped single quote.
2190
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2191
 
 
2192
 
# Sed substitution to avoid accidental globbing in evaled expressions
2193
 
no_glob_subst='s/\*/\\\*/g'
2194
 
 
2195
2187
# Global variables:
2196
2188
ofile=libtool
2197
2189
can_build_shared=yes
2232
2224
])# _LT_SETUP
2233
2225
 
2234
2226
 
 
2227
# _LT_PREPARE_SED_QUOTE_VARS
 
2228
# --------------------------
 
2229
# Define a few sed substitution that help us do robust quoting.
 
2230
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
 
2231
[# Backslashify metacharacters that are still active within
 
2232
# double-quoted strings.
 
2233
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
2234
 
 
2235
# Same as above, but do not quote variable references.
 
2236
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
2237
 
 
2238
# Sed substitution to delay expansion of an escaped shell variable in a
 
2239
# double_quote_subst'ed string.
 
2240
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
2241
 
 
2242
# Sed substitution to delay expansion of an escaped single quote.
 
2243
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
2244
 
 
2245
# Sed substitution to avoid accidental globbing in evaled expressions
 
2246
no_glob_subst='s/\*/\\\*/g'
 
2247
])
 
2248
 
2235
2249
# _LT_PROG_LTMAIN
2236
2250
# ---------------
2237
2251
# Note that this code is called both from `configure', and `config.status'
2384
2398
# declaration there will have the same value as in `configure'.  VARNAME
2385
2399
# must have a single quote delimited value for this to work.
2386
2400
m4_define([_LT_CONFIG_STATUS_DECLARE],
2387
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
2401
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
2388
2402
 
2389
2403
 
2390
2404
# _LT_CONFIG_STATUS_DECLARATIONS
2394
2408
# embedded single quotes properly.  In configure, this macro expands
2395
2409
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2396
2410
#
2397
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
2411
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2398
2412
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
2399
2413
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
2400
2414
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
2493
2507
LTCFLAGS='$LTCFLAGS'
2494
2508
compiler='$compiler_DEFAULT'
2495
2509
 
 
2510
# A function that is used when there is no print builtin or printf.
 
2511
func_fallback_echo ()
 
2512
{
 
2513
  eval 'cat <<_LTECHO_EOF
 
2514
\$[]1
 
2515
_LTECHO_EOF'
 
2516
}
 
2517
 
2496
2518
# Quote evaled strings.
2497
2519
for var in lt_decl_all_varnames([[ \
2498
2520
]], lt_decl_quote_varnames); do
2499
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
2521
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
2500
2522
    *[[\\\\\\\`\\"\\\$]]*)
2501
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
2523
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
2502
2524
      ;;
2503
2525
    *)
2504
2526
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
2509
2531
# Double-quote double-evaled strings.
2510
2532
for var in lt_decl_all_varnames([[ \
2511
2533
]], lt_decl_dquote_varnames); do
2512
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
2534
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
2513
2535
    *[[\\\\\\\`\\"\\\$]]*)
2514
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
2536
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
2515
2537
      ;;
2516
2538
    *)
2517
2539
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
2519
2541
    esac
2520
2542
done
2521
2543
 
2522
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
2523
 
case \$lt_ECHO in
2524
 
*'\\\[$]0 --fallback-echo"')dnl "
2525
 
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
2526
 
  ;;
2527
 
esac
2528
 
 
2529
2544
_LT_OUTPUT_LIBTOOL_INIT
2530
2545
])
2531
2546
 
 
2547
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
 
2548
# ------------------------------------
 
2549
# Generate a child script FILE with all initialization necessary to
 
2550
# reuse the environment learned by the parent script, and make the
 
2551
# file executable.  If COMMENT is supplied, it is inserted after the
 
2552
# `#!' sequence but before initialization text begins.  After this
 
2553
# macro, additional text can be appended to FILE to form the body of
 
2554
# the child script.  The macro ends with non-zero status if the
 
2555
# file could not be fully written (such as if the disk is full).
 
2556
m4_ifdef([AS_INIT_GENERATED],
 
2557
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
 
2558
[m4_defun([_LT_GENERATED_FILE_INIT],
 
2559
[m4_require([AS_PREPARE])]dnl
 
2560
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
 
2561
[lt_write_fail=0
 
2562
cat >$1 <<_ASEOF || lt_write_fail=1
 
2563
#! $SHELL
 
2564
# Generated by $as_me.
 
2565
$2
 
2566
SHELL=\${CONFIG_SHELL-$SHELL}
 
2567
export SHELL
 
2568
_ASEOF
 
2569
cat >>$1 <<\_ASEOF || lt_write_fail=1
 
2570
AS_SHELL_SANITIZE
 
2571
_AS_PREPARE
 
2572
exec AS_MESSAGE_FD>&1
 
2573
_ASEOF
 
2574
test $lt_write_fail = 0 && chmod +x $1[]dnl
 
2575
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
2532
2576
 
2533
2577
# LT_OUTPUT
2534
2578
# ---------
2538
2582
AC_DEFUN([LT_OUTPUT],
2539
2583
[: ${CONFIG_LT=./config.lt}
2540
2584
AC_MSG_NOTICE([creating $CONFIG_LT])
2541
 
cat >"$CONFIG_LT" <<_LTEOF
2542
 
#! $SHELL
2543
 
# Generated by $as_me.
2544
 
# Run this file to recreate a libtool stub with the current configuration.
 
2585
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
 
2586
[# Run this file to recreate a libtool stub with the current configuration.])
2545
2587
 
 
2588
cat >>"$CONFIG_LT" <<\_LTEOF
2546
2589
lt_cl_silent=false
2547
 
SHELL=\${CONFIG_SHELL-$SHELL}
2548
 
_LTEOF
2549
 
 
2550
 
cat >>"$CONFIG_LT" <<\_LTEOF
2551
 
AS_SHELL_SANITIZE
2552
 
_AS_PREPARE
2553
 
 
2554
 
exec AS_MESSAGE_FD>&1
2555
2590
exec AS_MESSAGE_LOG_FD>>config.log
2556
2591
{
2557
2592
  echo
2577
2612
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
2578
2613
configured by $[0], generated by m4_PACKAGE_STRING.
2579
2614
 
2580
 
Copyright (C) 2008 Free Software Foundation, Inc.
 
2615
Copyright (C) 2010 Free Software Foundation, Inc.
2581
2616
This config.lt script is free software; the Free Software Foundation
2582
2617
gives unlimited permision to copy, distribute and modify it."
2583
2618
 
2622
2657
# appending to config.log, which fails on DOS, as config.log is still kept
2623
2658
# open by configure.  Here we exec the FD to /dev/null, effectively closing
2624
2659
# config.log, so it can be properly (re)opened and appended to by config.lt.
2625
 
if test "$no_create" != yes; then
2626
 
  lt_cl_success=:
2627
 
  test "$silent" = yes &&
2628
 
    lt_config_lt_args="$lt_config_lt_args --quiet"
2629
 
  exec AS_MESSAGE_LOG_FD>/dev/null
2630
 
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
2631
 
  exec AS_MESSAGE_LOG_FD>>config.log
2632
 
  $lt_cl_success || AS_EXIT(1)
2633
 
fi
 
2660
lt_cl_success=:
 
2661
test "$silent" = yes &&
 
2662
  lt_config_lt_args="$lt_config_lt_args --quiet"
 
2663
exec AS_MESSAGE_LOG_FD>/dev/null
 
2664
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
2665
exec AS_MESSAGE_LOG_FD>>config.log
 
2666
$lt_cl_success || AS_EXIT(1)
2634
2667
])# LT_OUTPUT
2635
2668
 
2636
2669
 
2807
2840
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
2808
2841
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
2809
2842
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
2843
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
2810
2844
dnl aclocal-1.4 backwards compatibility:
2811
2845
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
2812
2846
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
2813
2847
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
2814
2848
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
2849
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
2815
2850
 
2816
2851
 
2817
2852
# _LT_TAG_COMPILER
2916
2951
        [lt_cv_ld_exported_symbols_list=no])
2917
2952
        LDFLAGS="$save_LDFLAGS"
2918
2953
    ])
 
2954
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 
2955
      [lt_cv_ld_force_load=no
 
2956
      cat > conftest.c << _LT_EOF
 
2957
int forced_loaded() { return 2;}
 
2958
_LT_EOF
 
2959
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 
2960
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 
2961
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 
2962
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 
2963
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 
2964
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 
2965
      cat > conftest.c << _LT_EOF
 
2966
int main() { return 0;}
 
2967
_LT_EOF
 
2968
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 
2969
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
2970
      _lt_result=$?
 
2971
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
2972
        lt_cv_ld_force_load=yes
 
2973
      else
 
2974
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
2975
      fi
 
2976
        rm -f conftest.err libconftest.a conftest conftest.c
 
2977
        rm -rf conftest.dSYM
 
2978
    ])
2919
2979
    case $host_os in
2920
2980
    rhapsody* | darwin1.[[012]])
2921
2981
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
2943
3003
    else
2944
3004
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
2945
3005
    fi
2946
 
    if test "$DSYMUTIL" != ":"; then
 
3006
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
2947
3007
      _lt_dsymutil='~$DSYMUTIL $lib || :'
2948
3008
    else
2949
3009
      _lt_dsymutil=
2963
3023
  _LT_TAGVAR(hardcode_direct, $1)=no
2964
3024
  _LT_TAGVAR(hardcode_automatic, $1)=yes
2965
3025
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2966
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
3026
  if test "$lt_cv_ld_force_load" = "yes"; then
 
3027
    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
3028
  else
 
3029
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
3030
  fi
2967
3031
  _LT_TAGVAR(link_all_deplibs, $1)=yes
2968
3032
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
2969
3033
  case $cc_basename in
2971
3035
     *) _lt_dar_can_shared=$GCC ;;
2972
3036
  esac
2973
3037
  if test "$_lt_dar_can_shared" = "yes"; then
2974
 
    output_verbose_link_cmd=echo
 
3038
    output_verbose_link_cmd=func_echo_all
2975
3039
    _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}"
2976
3040
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
2977
3041
    _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}"
3017
3081
# _LT_SHELL_INIT(ARG)
3018
3082
# -------------------
3019
3083
m4_define([_LT_SHELL_INIT],
3020
 
[ifdef([AC_DIVERSION_NOTICE],
3021
 
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
3022
 
         [AC_DIVERT_PUSH(NOTICE)])
3023
 
$1
3024
 
AC_DIVERT_POP
3025
 
])# _LT_SHELL_INIT
 
3084
[m4_divert_text([M4SH-INIT], [$1
 
3085
])])# _LT_SHELL_INIT
 
3086
 
3026
3087
 
3027
3088
 
3028
3089
# _LT_PROG_ECHO_BACKSLASH
3029
3090
# -----------------------
3030
 
# Add some code to the start of the generated configure script which
3031
 
# will find an echo command which doesn't interpret backslashes.
 
3091
# Find how we can fake an echo command that does not interpret backslash.
 
3092
# In particular, with Autoconf 2.60 or later we add some code to the start
 
3093
# of the generated configure script which will find a shell with a builtin
 
3094
# printf (which we can use as an echo command).
3032
3095
m4_defun([_LT_PROG_ECHO_BACKSLASH],
3033
 
[_LT_SHELL_INIT([
3034
 
# Check that we are running under the correct shell.
3035
 
SHELL=${CONFIG_SHELL-/bin/sh}
3036
 
 
3037
 
case X$lt_ECHO in
3038
 
X*--fallback-echo)
3039
 
  # Remove one level of quotation (which was required for Make).
3040
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
3041
 
  ;;
 
3096
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
3097
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
3098
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
3099
 
 
3100
AC_MSG_CHECKING([how to print strings])
 
3101
# Test print first, because it will be a builtin if present.
 
3102
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
 
3103
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
3104
  ECHO='print -r --'
 
3105
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
3106
  ECHO='printf %s\n'
 
3107
else
 
3108
  # Use this function as a fallback that always works.
 
3109
  func_fallback_echo ()
 
3110
  {
 
3111
    eval 'cat <<_LTECHO_EOF
 
3112
$[]1
 
3113
_LTECHO_EOF'
 
3114
  }
 
3115
  ECHO='func_fallback_echo'
 
3116
fi
 
3117
 
 
3118
# func_echo_all arg...
 
3119
# Invoke $ECHO with all args, space-separated.
 
3120
func_echo_all ()
 
3121
{
 
3122
    $ECHO "$*" 
 
3123
}
 
3124
 
 
3125
case "$ECHO" in
 
3126
  printf*) AC_MSG_RESULT([printf]) ;;
 
3127
  print*) AC_MSG_RESULT([print -r]) ;;
 
3128
  *) AC_MSG_RESULT([cat]) ;;
3042
3129
esac
3043
3130
 
3044
 
ECHO=${lt_ECHO-echo}
3045
 
if test "X[$]1" = X--no-reexec; then
3046
 
  # Discard the --no-reexec flag, and continue.
3047
 
  shift
3048
 
elif test "X[$]1" = X--fallback-echo; then
3049
 
  # Avoid inline document here, it may be left over
3050
 
  :
3051
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
3052
 
  # Yippee, $ECHO works!
3053
 
  :
3054
 
else
3055
 
  # Restart under the correct shell.
3056
 
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
3057
 
fi
3058
 
 
3059
 
if test "X[$]1" = X--fallback-echo; then
3060
 
  # used as fallback echo
3061
 
  shift
3062
 
  cat <<_LT_EOF
3063
 
[$]*
3064
 
_LT_EOF
3065
 
  exit 0
3066
 
fi
3067
 
 
3068
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
3069
 
# if CDPATH is set.
3070
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3071
 
 
3072
 
if test -z "$lt_ECHO"; then
3073
 
  if test "X${echo_test_string+set}" != Xset; then
3074
 
    # find a string as large as possible, as long as the shell can cope with it
3075
 
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
3076
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
3077
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
3078
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
3079
 
      then
3080
 
        break
3081
 
      fi
3082
 
    done
3083
 
  fi
3084
 
 
3085
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
3086
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
3087
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
3088
 
    :
3089
 
  else
3090
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
3091
 
    # backslashes.  This makes it impossible to quote backslashes using
3092
 
    #   echo "$something" | sed 's/\\/\\\\/g'
3093
 
    #
3094
 
    # So, first we look for a working echo in the user's PATH.
3095
 
 
3096
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3097
 
    for dir in $PATH /usr/ucb; do
3098
 
      IFS="$lt_save_ifs"
3099
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
3100
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
3101
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
3102
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
3103
 
        ECHO="$dir/echo"
3104
 
        break
3105
 
      fi
3106
 
    done
3107
 
    IFS="$lt_save_ifs"
3108
 
 
3109
 
    if test "X$ECHO" = Xecho; then
3110
 
      # We didn't find a better echo, so look for alternatives.
3111
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
3112
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
3113
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
3114
 
        # This shell has a builtin print -r that does the trick.
3115
 
        ECHO='print -r'
3116
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
3117
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
3118
 
        # If we have ksh, try running configure again with it.
3119
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3120
 
        export ORIGINAL_CONFIG_SHELL
3121
 
        CONFIG_SHELL=/bin/ksh
3122
 
        export CONFIG_SHELL
3123
 
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
3124
 
      else
3125
 
        # Try using printf.
3126
 
        ECHO='printf %s\n'
3127
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
3128
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
3129
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
3130
 
          # Cool, printf works
3131
 
          :
3132
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
3133
 
             test "X$echo_testing_string" = 'X\t' &&
3134
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3135
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
3136
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
3137
 
          export CONFIG_SHELL
3138
 
          SHELL="$CONFIG_SHELL"
3139
 
          export SHELL
3140
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
3141
 
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
3142
 
             test "X$echo_testing_string" = 'X\t' &&
3143
 
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3144
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
3145
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
3146
 
        else
3147
 
          # maybe with a smaller string...
3148
 
          prev=:
3149
 
 
3150
 
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
3151
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
3152
 
            then
3153
 
              break
3154
 
            fi
3155
 
            prev="$cmd"
3156
 
          done
3157
 
 
3158
 
          if test "$prev" != 'sed 50q "[$]0"'; then
3159
 
            echo_test_string=`eval $prev`
3160
 
            export echo_test_string
3161
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
3162
 
          else
3163
 
            # Oops.  We lost completely, so just stick with echo.
3164
 
            ECHO=echo
3165
 
          fi
3166
 
        fi
3167
 
      fi
3168
 
    fi
3169
 
  fi
3170
 
fi
3171
 
 
3172
 
# Copy echo and quote the copy suitably for passing to libtool from
3173
 
# the Makefile, instead of quoting the original, which is used later.
3174
 
lt_ECHO=$ECHO
3175
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
3176
 
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
3177
 
fi
3178
 
 
3179
 
AC_SUBST(lt_ECHO)
3180
 
])
 
3131
m4_ifdef([_AS_DETECT_SUGGESTED],
 
3132
[_AS_DETECT_SUGGESTED([
 
3133
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 
3134
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
3135
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
3136
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
3137
    PATH=/empty FPATH=/empty; export PATH FPATH
 
3138
    test "X`printf %s $ECHO`" = "X$ECHO" \
 
3139
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 
3140
 
3181
3141
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
3182
 
_LT_DECL([], [ECHO], [1],
3183
 
    [An echo program that does not interpret backslashes])
 
3142
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
3184
3143
])# _LT_PROG_ECHO_BACKSLASH
3185
3144
 
3186
3145
 
3212
3171
  ;;
3213
3172
*-*-irix6*)
3214
3173
  # Find out which ABI we are using.
3215
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
3174
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
3216
3175
  if AC_TRY_EVAL(ac_compile); then
3217
3176
    if test "$lt_cv_prog_gnu_ld" = yes; then
3218
3177
      case `/usr/bin/file conftest.$ac_objext` in
3364
3323
  esac
3365
3324
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3366
3325
fi
 
3326
 
 
3327
case $host_os in
 
3328
  darwin*)
 
3329
    lock_old_archive_extraction=yes ;;
 
3330
  *)
 
3331
    lock_old_archive_extraction=no ;;
 
3332
esac
3367
3333
_LT_DECL([], [old_postinstall_cmds], [2])
3368
3334
_LT_DECL([], [old_postuninstall_cmds], [2])
3369
3335
_LT_TAGDECL([], [old_archive_cmds], [2],
3370
3336
    [Commands used to build an old-style archive])
 
3337
_LT_DECL([], [lock_old_archive_extraction], [0],
 
3338
    [Whether to use a lock for old archive extraction])
3371
3339
])# _LT_CMD_OLD_ARCHIVE
3372
3340
 
3373
3341
 
3392
3360
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3393
3361
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3394
3362
   -e 's:$: $lt_compiler_flag:'`
3395
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
3363
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3396
3364
   (eval "$lt_compile" 2>conftest.err)
3397
3365
   ac_status=$?
3398
3366
   cat conftest.err >&AS_MESSAGE_LOG_FD
3399
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
3367
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3400
3368
   if (exit $ac_status) && test -s "$ac_outfile"; then
3401
3369
     # The compiler can only warn and ignore the option if not recognized
3402
3370
     # So say no if there are warnings other than the usual output.
3403
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
3371
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
3404
3372
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3405
3373
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
3406
3374
       $2=yes
3440
3408
     if test -s conftest.err; then
3441
3409
       # Append any errors to the config.log.
3442
3410
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
3443
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
3411
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
3444
3412
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3445
3413
       if diff conftest.exp conftest.er2 >/dev/null; then
3446
3414
         $2=yes
3503
3471
    lt_cv_sys_max_cmd_len=8192;
3504
3472
    ;;
3505
3473
 
 
3474
  mint*)
 
3475
    # On MiNT this can take a long time and run out of memory.
 
3476
    lt_cv_sys_max_cmd_len=8192;
 
3477
    ;;
 
3478
 
3506
3479
  amigaos*)
3507
3480
    # On AmigaOS with pdksh, this test takes hours, literally.
3508
3481
    # So we just punt and use a minimum line length of 8192.
3567
3540
      # If test is not a shell built-in, we'll probably end up computing a
3568
3541
      # maximum length that is only half of the actual maximum length, but
3569
3542
      # we can't tell.
3570
 
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3571
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
3543
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
3544
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
3572
3545
              test $i != 17 # 1/2 MB should be enough
3573
3546
      do
3574
3547
        i=`expr $i + 1`
3619
3592
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3620
3593
  lt_status=$lt_dlunknown
3621
3594
  cat > conftest.$ac_ext <<_LT_EOF
3622
 
[#line __oline__ "configure"
 
3595
[#line $LINENO "configure"
3623
3596
#include "confdefs.h"
3624
3597
 
3625
3598
#if HAVE_DLFCN_H
3660
3633
#  endif
3661
3634
#endif
3662
3635
 
3663
 
void fnord() { int i=42;}
 
3636
/* When -fvisbility=hidden is used, assume the code has been annotated
 
3637
   correspondingly for the symbols needed.  */
 
3638
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
3639
void fnord () __attribute__((visibility("default")));
 
3640
#endif
 
3641
 
 
3642
void fnord () { int i=42; }
3664
3643
int main ()
3665
3644
{
3666
3645
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
3669
3648
  if (self)
3670
3649
    {
3671
3650
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
3672
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
3651
      else
 
3652
        {
 
3653
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
3654
          else puts (dlerror ());
 
3655
        }
3673
3656
      /* dlclose (self); */
3674
3657
    }
3675
3658
  else
3845
3828
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3846
3829
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3847
3830
   -e 's:$: $lt_compiler_flag:'`
3848
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
3831
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3849
3832
   (eval "$lt_compile" 2>out/conftest.err)
3850
3833
   ac_status=$?
3851
3834
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
3852
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
3835
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3853
3836
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
3854
3837
   then
3855
3838
     # The compiler can only warn and ignore the option if not recognized
3856
3839
     # So say no if there are warnings
3857
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
3840
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
3858
3841
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
3859
3842
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
3860
3843
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4013
3996
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4014
3997
m4_require([_LT_DECL_OBJDUMP])dnl
4015
3998
m4_require([_LT_DECL_SED])dnl
 
3999
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
4016
4000
AC_MSG_CHECKING([dynamic linker characteristics])
4017
4001
m4_if([$1],
4018
4002
        [], [
4021
4005
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
4022
4006
    *) lt_awk_arg="/^libraries:/" ;;
4023
4007
  esac
4024
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4025
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
4008
  case $host_os in
 
4009
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
 
4010
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
4011
  esac
 
4012
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
4013
  case $lt_search_path_spec in
 
4014
  *\;*)
4026
4015
    # if the path contains ";" then we assume it to be the separator
4027
4016
    # otherwise default to the standard path separator (i.e. ":") - it is
4028
4017
    # assumed that no part of a normal pathname contains ";" but that should
4029
4018
    # okay in the real world where ";" in dirpaths is itself problematic.
4030
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
4031
 
  else
4032
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
4033
 
  fi
 
4019
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
4020
    ;;
 
4021
  *)
 
4022
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
4023
    ;;
 
4024
  esac
4034
4025
  # Ok, now we have the path, separated by spaces, we can step through it
4035
4026
  # and add multilib dir if necessary.
4036
4027
  lt_tmp_lt_search_path_spec=
4043
4034
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
4044
4035
    fi
4045
4036
  done
4046
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
4037
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
4047
4038
BEGIN {RS=" "; FS="/|\n";} {
4048
4039
  lt_foo="";
4049
4040
  lt_count=0;
4063
4054
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
4064
4055
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
4065
4056
}'`
4066
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
4057
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
4058
  # for these hosts.
 
4059
  case $host_os in
 
4060
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
4061
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
 
4062
  esac
 
4063
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
4067
4064
else
4068
4065
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4069
4066
fi])
4151
4148
  m68k)
4152
4149
    library_names_spec='$libname.ixlibrary $libname.a'
4153
4150
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
4154
 
    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'
 
4151
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
4155
4152
    ;;
4156
4153
  esac
4157
4154
  ;;
4204
4201
    cygwin*)
4205
4202
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4206
4203
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4207
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
4204
m4_if([$1], [],[
 
4205
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
4208
4206
      ;;
4209
4207
    mingw* | cegcc*)
4210
4208
      # MinGW DLLs use traditional 'lib' prefix
4211
4209
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4212
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4213
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
4214
 
        # It is most probably a Windows format PATH printed by
4215
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
4216
 
        # path with ; separators, and with drive letters. We can handle the
4217
 
        # drive letters (cygwin fileutils understands them), so leave them,
4218
 
        # especially as we might pass files found there to a mingw objdump,
4219
 
        # which wouldn't understand a cygwinified path. Ahh.
4220
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4221
 
      else
4222
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
4223
 
      fi
4224
4210
      ;;
4225
4211
    pw32*)
4226
4212
      # pw32 DLLs use 'pw' prefix rather than 'lib'
4320
4306
  hardcode_into_libs=yes
4321
4307
  ;;
4322
4308
 
 
4309
haiku*)
 
4310
  version_type=linux
 
4311
  need_lib_prefix=no
 
4312
  need_version=no
 
4313
  dynamic_linker="$host_os runtime_loader"
 
4314
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
4315
  soname_spec='${libname}${release}${shared_ext}$major'
 
4316
  shlibpath_var=LIBRARY_PATH
 
4317
  shlibpath_overrides_runpath=yes
 
4318
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
4319
  hardcode_into_libs=yes
 
4320
  ;;
 
4321
 
4323
4322
hpux9* | hpux10* | hpux11*)
4324
4323
  # Give a soname corresponding to the major version so that dld.sl refuses to
4325
4324
  # link against other versions.
4362
4361
    soname_spec='${libname}${release}${shared_ext}$major'
4363
4362
    ;;
4364
4363
  esac
4365
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
4364
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
4366
4365
  postinstall_cmds='chmod 555 $lib'
 
4366
  # or fails outright, so override atomically:
 
4367
  install_override_mode=555
4367
4368
  ;;
4368
4369
 
4369
4370
interix[[3-9]]*)
4421
4422
  ;;
4422
4423
 
4423
4424
# This must be Linux ELF.
4424
 
linux* | k*bsd*-gnu)
 
4425
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4425
4426
  version_type=linux
4426
4427
  need_lib_prefix=no
4427
4428
  need_version=no
4430
4431
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4431
4432
  shlibpath_var=LD_LIBRARY_PATH
4432
4433
  shlibpath_overrides_runpath=no
 
4434
 
4433
4435
  # Some binutils ld are patched to set DT_RUNPATH
4434
 
  save_LDFLAGS=$LDFLAGS
4435
 
  save_libdir=$libdir
4436
 
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
4437
 
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
4438
 
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
4439
 
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
4440
 
       [shlibpath_overrides_runpath=yes])])
4441
 
  LDFLAGS=$save_LDFLAGS
4442
 
  libdir=$save_libdir
 
4436
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 
4437
    [lt_cv_shlibpath_overrides_runpath=no
 
4438
    save_LDFLAGS=$LDFLAGS
 
4439
    save_libdir=$libdir
 
4440
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
4441
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
4442
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
4443
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
4444
         [lt_cv_shlibpath_overrides_runpath=yes])])
 
4445
    LDFLAGS=$save_LDFLAGS
 
4446
    libdir=$save_libdir
 
4447
    ])
 
4448
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
4443
4449
 
4444
4450
  # This implies no fast_install, which is unacceptable.
4445
4451
  # Some rework will be needed to allow for fast_install
4451
4457
 
4452
4458
  # Append ld.so.conf contents to the search path
4453
4459
  if test -f /etc/ld.so.conf; then
4454
 
    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' ' '`
 
4460
    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;s/"//g;/^$/d' | tr '\n' ' '`
4455
4461
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
4462
 
4456
4463
  fi
4457
4464
 
4458
4465
  # We used to test for /lib/ld.so.1 and disable shared libraries on
4684
4691
    The last name is the one that the linker finds with -lNAME]])
4685
4692
_LT_DECL([], [soname_spec], [1],
4686
4693
    [[The coded name of the library, if different from the real name]])
 
4694
_LT_DECL([], [install_override_mode], [1],
 
4695
    [Permission mode override for installation of shared libraries])
4687
4696
_LT_DECL([], [postinstall_cmds], [2],
4688
4697
    [Command to use after installation of a shared archive])
4689
4698
_LT_DECL([], [postuninstall_cmds], [2],
4796
4805
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
4797
4806
m4_require([_LT_DECL_SED])dnl
4798
4807
m4_require([_LT_DECL_EGREP])dnl
 
4808
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
4799
4809
 
4800
4810
AC_ARG_WITH([gnu-ld],
4801
4811
    [AS_HELP_STRING([--with-gnu-ld],
4925
4935
    fi
4926
4936
    ;;
4927
4937
esac
4928
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
4929
 
_LT_DECL([], [reload_cmds], [2])dnl
 
4938
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
4939
_LT_TAGDECL([], [reload_cmds], [2])dnl
4930
4940
])# _LT_CMD_RELOAD
4931
4941
 
4932
4942
 
4978
4988
  # Base MSYS/MinGW do not provide the 'file' command needed by
4979
4989
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4980
4990
  # unless we find 'file', for example because we are cross-compiling.
4981
 
  if ( file / ) >/dev/null 2>&1; then
 
4991
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
4992
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4982
4993
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4983
4994
    lt_cv_file_magic_cmd='func_win32_libid'
4984
4995
  else
4985
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4996
    # Keep this pattern in sync with the one in func_win32_libid.
 
4997
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4986
4998
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4987
4999
  fi
4988
5000
  ;;
4989
5001
 
4990
 
cegcc)
 
5002
cegcc*)
4991
5003
  # use the weaker test based on 'objdump'. See mingw*.
4992
5004
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4993
5005
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5017
5029
  lt_cv_deplibs_check_method=pass_all
5018
5030
  ;;
5019
5031
 
 
5032
haiku*)
 
5033
  lt_cv_deplibs_check_method=pass_all
 
5034
  ;;
 
5035
 
5020
5036
hpux10.20* | hpux11*)
5021
5037
  lt_cv_file_magic_cmd=/usr/bin/file
5022
5038
  case $host_cpu in
5025
5041
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5026
5042
    ;;
5027
5043
  hppa*64*)
5028
 
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
 
5044
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
5029
5045
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5030
5046
    ;;
5031
5047
  *)
5032
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
5048
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
5033
5049
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5034
5050
    ;;
5035
5051
  esac
5051
5067
  ;;
5052
5068
 
5053
5069
# This must be Linux ELF.
5054
 
linux* | k*bsd*-gnu)
 
5070
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5055
5071
  lt_cv_deplibs_check_method=pass_all
5056
5072
  ;;
5057
5073
 
5193
5209
  NM="$lt_cv_path_NM"
5194
5210
else
5195
5211
  # Didn't find any BSD compatible name lister, look for dumpbin.
5196
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
5212
  if test -n "$DUMPBIN"; then :
 
5213
    # Let the user override the test.
 
5214
  else
 
5215
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 
5216
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
5217
    *COFF*)
 
5218
      DUMPBIN="$DUMPBIN -symbols"
 
5219
      ;;
 
5220
    *)
 
5221
      DUMPBIN=:
 
5222
      ;;
 
5223
    esac
 
5224
  fi
5197
5225
  AC_SUBST([DUMPBIN])
5198
5226
  if test "$DUMPBIN" != ":"; then
5199
5227
    NM="$DUMPBIN"
5206
5234
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
5207
5235
  [lt_cv_nm_interface="BSD nm"
5208
5236
  echo "int some_variable = 0;" > conftest.$ac_ext
5209
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
5237
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
5210
5238
  (eval "$ac_compile" 2>conftest.err)
5211
5239
  cat conftest.err >&AS_MESSAGE_LOG_FD
5212
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
5240
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
5213
5241
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5214
5242
  cat conftest.err >&AS_MESSAGE_LOG_FD
5215
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
5243
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
5216
5244
  cat conftest.out >&AS_MESSAGE_LOG_FD
5217
5245
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5218
5246
    lt_cv_nm_interface="MS dumpbin"
5235
5263
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
5236
5264
LIBM=
5237
5265
case $host in
5238
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
5266
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
5239
5267
  # These system don't have libm, or don't need it
5240
5268
  ;;
5241
5269
*-ncr-sysv4.3*)
5263
5291
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5264
5292
 
5265
5293
if test "$GCC" = yes; then
5266
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
5294
  case $cc_basename in
 
5295
  nvcc*)
 
5296
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 
5297
  *)
 
5298
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 
5299
  esac
5267
5300
 
5268
5301
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5269
5302
    lt_cv_prog_compiler_rtti_exceptions,
5280
5313
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
5281
5314
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
5282
5315
AC_REQUIRE([AC_PROG_CC])dnl
 
5316
AC_REQUIRE([AC_PROG_AWK])dnl
5283
5317
AC_REQUIRE([LT_PATH_NM])dnl
5284
5318
AC_REQUIRE([LT_PATH_LD])dnl
5285
5319
m4_require([_LT_DECL_SED])dnl
5405
5439
  if AC_TRY_EVAL(ac_compile); then
5406
5440
    # Now try to grab the symbols.
5407
5441
    nlist=conftest.nm
5408
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
5442
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
5409
5443
      # Try sorting and uniquifying the output.
5410
5444
      if sort "$nlist" | uniq > "$nlist"T; then
5411
5445
        mv -f "$nlist"T "$nlist"
5567
5601
      # DJGPP does not support shared libraries at all
5568
5602
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5569
5603
      ;;
 
5604
    haiku*)
 
5605
      # PIC is the default for Haiku.
 
5606
      # The "-static" flag exists, but is broken.
 
5607
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
5608
      ;;
5570
5609
    interix[[3-9]]*)
5571
5610
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5572
5611
      # Instead, we relocate shared libraries at runtime.
5672
5711
            ;;
5673
5712
        esac
5674
5713
        ;;
5675
 
      linux* | k*bsd*-gnu)
 
5714
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
5676
5715
        case $cc_basename in
5677
5716
          KCC*)
5678
5717
            # KAI C++ Compiler
5705
5744
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5706
5745
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5707
5746
            ;;
5708
 
          xlc* | xlC*)
5709
 
            # IBM XL 8.0 on PPC
 
5747
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 
5748
            # IBM XL 8.0, 9.0 on PPC and BlueGene
5710
5749
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5711
5750
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5712
5751
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5768
5807
        ;;
5769
5808
      solaris*)
5770
5809
        case $cc_basename in
5771
 
          CC*)
 
5810
          CC* | sunCC*)
5772
5811
            # Sun C++ 4.2, 5.x and Centerline C++
5773
5812
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5774
5813
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5872
5911
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5873
5912
      ;;
5874
5913
 
 
5914
    haiku*)
 
5915
      # PIC is the default for Haiku.
 
5916
      # The "-static" flag exists, but is broken.
 
5917
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
5918
      ;;
 
5919
 
5875
5920
    hpux*)
5876
5921
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
5877
5922
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
5914
5959
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5915
5960
      ;;
5916
5961
    esac
 
5962
 
 
5963
    case $cc_basename in
 
5964
    nvcc*) # Cuda Compiler Driver 2.2
 
5965
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 
5966
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
 
5967
      ;;
 
5968
    esac
5917
5969
  else
5918
5970
    # PORTME Check for flag to pass linker flags through the system compiler.
5919
5971
    case $host_os in
5956
6008
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5957
6009
      ;;
5958
6010
 
5959
 
    linux* | k*bsd*-gnu)
 
6011
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
5960
6012
      case $cc_basename in
5961
6013
      # old Intel for x86_64 which still supported -KPIC.
5962
6014
      ecc*)
5977
6029
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5978
6030
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5979
6031
        ;;
5980
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6032
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
5981
6033
        # Portland Group compilers (*not* the Pentium gcc compiler,
5982
6034
        # which looks to be a dead project)
5983
6035
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5989
6041
        # All Alpha code is PIC.
5990
6042
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5991
6043
        ;;
5992
 
      xl*)
5993
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
6044
      xl* | bgxl* | bgf* | mpixl*)
 
6045
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
5994
6046
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5995
6047
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5996
6048
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5997
6049
        ;;
5998
6050
      *)
5999
6051
        case `$CC -V 2>&1 | sed 5q` in
 
6052
        *Sun\ F* | *Sun*Fortran*)
 
6053
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
6054
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6055
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6056
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
6057
          ;;
6000
6058
        *Sun\ C*)
6001
6059
          # Sun C 5.9
6002
6060
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6003
6061
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6004
6062
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6005
6063
          ;;
6006
 
        *Sun\ F*)
6007
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6008
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6009
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6010
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
6011
 
          ;;
6012
6064
        esac
6013
6065
        ;;
6014
6066
      esac
6039
6091
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6040
6092
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6041
6093
      case $cc_basename in
6042
 
      f77* | f90* | f95*)
 
6094
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
6043
6095
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6044
6096
      *)
6045
6097
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6149
6201
  aix[[4-9]]*)
6150
6202
    # If we're using GNU nm, then we don't want the "-C" option.
6151
6203
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6204
    # Also, AIX nm treats weak defined symbols like other global defined
 
6205
    # symbols, whereas GNU nm marks them as "W".
6152
6206
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6153
 
      _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'
 
6207
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6154
6208
    else
6155
6209
      _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'
6156
6210
    fi
6228
6282
  esac
6229
6283
 
6230
6284
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
6285
 
 
6286
  # On some targets, GNU ld is compatible enough with the native linker
 
6287
  # that we're better off using the native interface for both.
 
6288
  lt_use_gnu_ld_interface=no
6231
6289
  if test "$with_gnu_ld" = yes; then
 
6290
    case $host_os in
 
6291
      aix*)
 
6292
        # The AIX port of GNU ld has always aspired to compatibility
 
6293
        # with the native linker.  However, as the warning in the GNU ld
 
6294
        # block says, versions before 2.19.5* couldn't really create working
 
6295
        # shared libraries, regardless of the interface used.
 
6296
        case `$LD -v 2>&1` in
 
6297
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
6298
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 
6299
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 
6300
          *)
 
6301
            lt_use_gnu_ld_interface=yes
 
6302
            ;;
 
6303
        esac
 
6304
        ;;
 
6305
      *)
 
6306
        lt_use_gnu_ld_interface=yes
 
6307
        ;;
 
6308
    esac
 
6309
  fi
 
6310
 
 
6311
  if test "$lt_use_gnu_ld_interface" = yes; then
6232
6312
    # If archive_cmds runs LD, not CC, wlarc should be empty
6233
6313
    wlarc='${wl}'
6234
6314
 
6246
6326
    fi
6247
6327
    supports_anon_versioning=no
6248
6328
    case `$LD -v 2>&1` in
 
6329
      *GNU\ gold*) supports_anon_versioning=yes ;;
6249
6330
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6250
6331
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6251
6332
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6261
6342
        _LT_TAGVAR(ld_shlibs, $1)=no
6262
6343
        cat <<_LT_EOF 1>&2
6263
6344
 
6264
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6345
*** Warning: the GNU linker, at least up to release 2.19, is reported
6265
6346
*** to be unable to reliably create shared libraries on AIX.
6266
6347
*** Therefore, libtool is disabling shared libraries support.  If you
6267
 
*** really care for shared libraries, you may want to modify your PATH
6268
 
*** so that a non-GNU linker is found, and then restart.
 
6348
*** really care for shared libraries, you may want to install binutils
 
6349
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
6350
*** You will then need to restart the configuration process.
6269
6351
 
6270
6352
_LT_EOF
6271
6353
      fi
6301
6383
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6302
6384
      # as there is no search path for DLLs.
6303
6385
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6386
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6304
6387
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6305
6388
      _LT_TAGVAR(always_export_symbols, $1)=no
6306
6389
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6322
6405
      fi
6323
6406
      ;;
6324
6407
 
 
6408
    haiku*)
 
6409
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6410
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6411
      ;;
 
6412
 
6325
6413
    interix[[3-9]]*)
6326
6414
      _LT_TAGVAR(hardcode_direct, $1)=no
6327
6415
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6337
6425
      _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'
6338
6426
      ;;
6339
6427
 
6340
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
6428
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
6341
6429
      tmp_diet=no
6342
6430
      if test "$host_os" = linux-dietlibc; then
6343
6431
        case $cc_basename in
6351
6439
        tmp_sharedflag='-shared'
6352
6440
        case $cc_basename,$host_cpu in
6353
6441
        pgcc*)                          # Portland Group C compiler
6354
 
          _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'
 
6442
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6355
6443
          tmp_addflag=' $pic_flag'
6356
6444
          ;;
6357
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6358
 
          _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'
 
6445
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
6446
                                        # Portland Group f77 and f90 compilers
 
6447
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6359
6448
          tmp_addflag=' $pic_flag -Mnomain' ;;
6360
6449
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
6361
6450
          tmp_addflag=' -i_dynamic' ;;
6366
6455
        lf95*)                          # Lahey Fortran 8.1
6367
6456
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
6368
6457
          tmp_sharedflag='--shared' ;;
6369
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
6458
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
6370
6459
          tmp_sharedflag='-qmkshrobj'
6371
6460
          tmp_addflag= ;;
 
6461
        nvcc*)  # Cuda Compiler Driver 2.2
 
6462
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
6463
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
6464
          ;;
6372
6465
        esac
6373
6466
        case `$CC -V 2>&1 | sed 5q` in
6374
6467
        *Sun\ C*)                       # Sun C 5.9
6375
 
          _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'
 
6468
          _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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6376
6469
          _LT_TAGVAR(compiler_needs_object, $1)=yes
6377
6470
          tmp_sharedflag='-G' ;;
6378
6471
        *Sun\ F*)                       # Sun Fortran 8.3
6388
6481
        fi
6389
6482
 
6390
6483
        case $cc_basename in
6391
 
        xlf*)
 
6484
        xlf* | bgf* | bgxlf* | mpixlf*)
6392
6485
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
6393
6486
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
6394
6487
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6395
6488
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6396
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
6489
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
6397
6490
          if test "x$supports_anon_versioning" = xyes; then
6398
6491
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6399
6492
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6400
6493
              echo "local: *; };" >> $output_objdir/$libname.ver~
6401
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
6494
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
6402
6495
          fi
6403
6496
          ;;
6404
6497
        esac
6519
6612
      else
6520
6613
        # If we're using GNU nm, then we don't want the "-C" option.
6521
6614
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6615
        # Also, AIX nm treats weak defined symbols like other global
 
6616
        # defined symbols, whereas GNU nm marks them as "W".
6522
6617
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6523
 
          _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'
 
6618
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6524
6619
        else
6525
6620
          _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'
6526
6621
        fi
6609
6704
        # empty executable.
6610
6705
        _LT_SYS_MODULE_PATH_AIX
6611
6706
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6612
 
        _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"
 
6707
        _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6613
6708
      else
6614
6709
        if test "$host_cpu" = ia64; then
6615
6710
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6624
6719
          # -berok will link without error, but may produce a broken library.
6625
6720
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6626
6721
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6627
 
          # Exported symbols can be pulled into shared objects from archives
6628
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6722
          if test "$with_gnu_ld" = yes; then
 
6723
            # We only use this code for GNU lds that support --whole-archive.
 
6724
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6725
          else
 
6726
            # Exported symbols can be pulled into shared objects from archives
 
6727
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6728
          fi
6629
6729
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6630
6730
          # This is similar to how AIX traditionally builds its shared libraries.
6631
6731
          _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'
6664
6764
      # Tell ltmain to make .dll files, not .so files.
6665
6765
      shrext_cmds=".dll"
6666
6766
      # FIXME: Setting linknames here is a bad hack.
6667
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6767
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
6668
6768
      # The linker will automatically build a .lib file if we build a DLL.
6669
6769
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6670
6770
      # FIXME: Should let the user specify the lib program.
6731
6831
      ;;
6732
6832
 
6733
6833
    hpux10*)
6734
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6834
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
6735
6835
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6736
6836
      else
6737
6837
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6750
6850
      ;;
6751
6851
 
6752
6852
    hpux11*)
6753
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6853
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
6754
6854
        case $host_cpu in
6755
6855
        hppa*64*)
6756
6856
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6771
6871
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6772
6872
          ;;
6773
6873
        *)
6774
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6874
        m4_if($1, [], [
 
6875
          # Older versions of the 11.00 compiler do not understand -b yet
 
6876
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
6877
          _LT_LINKER_OPTION([if $CC understands -b],
 
6878
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 
6879
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 
6880
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 
6881
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
6775
6882
          ;;
6776
6883
        esac
6777
6884
      fi
6799
6906
 
6800
6907
    irix5* | irix6* | nonstopux*)
6801
6908
      if test "$GCC" = yes; then
6802
 
        _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'
 
6909
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6803
6910
        # Try to use the -exported_symbol ld option, if it does not
6804
6911
        # work, assume that -exports_file does not work either and
6805
6912
        # implicitly export all symbols.
6806
6913
        save_LDFLAGS="$LDFLAGS"
6807
6914
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
6808
6915
        AC_LINK_IFELSE(int foo(void) {},
6809
 
          _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'
 
6916
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
6810
6917
        )
6811
6918
        LDFLAGS="$save_LDFLAGS"
6812
6919
      else
6813
 
        _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'
6814
 
        _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'
 
6920
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
6921
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
6815
6922
      fi
6816
6923
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6817
6924
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6873
6980
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6874
6981
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6875
6982
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6876
 
      _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'
 
6983
      _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'
6877
6984
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6878
6985
      ;;
6879
6986
 
6880
6987
    osf3*)
6881
6988
      if test "$GCC" = yes; then
6882
6989
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6883
 
        _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'
 
6990
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6884
6991
      else
6885
6992
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6886
 
        _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'
 
6993
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6887
6994
      fi
6888
6995
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6889
6996
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6893
7000
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
6894
7001
      if test "$GCC" = yes; then
6895
7002
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6896
 
        _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'
 
7003
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6897
7004
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6898
7005
      else
6899
7006
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6900
 
        _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'
 
7007
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6901
7008
        _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~
6902
 
        $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'
 
7009
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
6903
7010
 
6904
7011
        # Both c and cxx compiler support -rpath directly
6905
7012
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7090
7197
      # Test whether the compiler implicitly links with -lc since on some
7091
7198
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7092
7199
      # to ld, don't add -lc before -lgcc.
7093
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7094
 
      $RM conftest*
7095
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7200
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 
7201
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 
7202
        [$RM conftest*
 
7203
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7096
7204
 
7097
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7098
 
        soname=conftest
7099
 
        lib=conftest
7100
 
        libobjs=conftest.$ac_objext
7101
 
        deplibs=
7102
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
7103
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7104
 
        compiler_flags=-v
7105
 
        linker_flags=-v
7106
 
        verstring=
7107
 
        output_objdir=.
7108
 
        libname=conftest
7109
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
7110
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
7111
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7112
 
        then
7113
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7114
 
        else
7115
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7116
 
        fi
7117
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7118
 
      else
7119
 
        cat conftest.err 1>&5
7120
 
      fi
7121
 
      $RM conftest*
7122
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
7205
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
7206
          soname=conftest
 
7207
          lib=conftest
 
7208
          libobjs=conftest.$ac_objext
 
7209
          deplibs=
 
7210
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
7211
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
7212
          compiler_flags=-v
 
7213
          linker_flags=-v
 
7214
          verstring=
 
7215
          output_objdir=.
 
7216
          libname=conftest
 
7217
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
7218
          _LT_TAGVAR(allow_undefined_flag, $1)=
 
7219
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
7220
          then
 
7221
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7222
          else
 
7223
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7224
          fi
 
7225
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
7226
        else
 
7227
          cat conftest.err 1>&5
 
7228
        fi
 
7229
        $RM conftest*
 
7230
        ])
 
7231
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
7123
7232
      ;;
7124
7233
    esac
7125
7234
  fi
7285
7394
])# _LT_LANG_C_CONFIG
7286
7395
 
7287
7396
 
7288
 
# _LT_PROG_CXX
7289
 
# ------------
7290
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
7291
 
# compiler, we have our own version here.
7292
 
m4_defun([_LT_PROG_CXX],
7293
 
[
7294
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
7295
 
AC_PROG_CXX
 
7397
# _LT_LANG_CXX_CONFIG([TAG])
 
7398
# --------------------------
 
7399
# Ensure that the configuration variables for a C++ compiler are suitably
 
7400
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
7401
# the compiler configuration to `libtool'.
 
7402
m4_defun([_LT_LANG_CXX_CONFIG],
 
7403
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7404
m4_require([_LT_DECL_EGREP])dnl
7296
7405
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7297
7406
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7298
7407
    (test "X$CXX" != "Xg++"))) ; then
7300
7409
else
7301
7410
  _lt_caught_CXX_error=yes
7302
7411
fi
7303
 
popdef([AC_MSG_ERROR])
7304
 
])# _LT_PROG_CXX
7305
 
 
7306
 
dnl aclocal-1.4 backwards compatibility:
7307
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
7308
 
 
7309
 
 
7310
 
# _LT_LANG_CXX_CONFIG([TAG])
7311
 
# --------------------------
7312
 
# Ensure that the configuration variables for a C++ compiler are suitably
7313
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
7314
 
# the compiler configuration to `libtool'.
7315
 
m4_defun([_LT_LANG_CXX_CONFIG],
7316
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
7317
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7318
 
m4_require([_LT_DECL_EGREP])dnl
7319
7412
 
7320
7413
AC_LANG_PUSH(C++)
7321
7414
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7337
7430
_LT_TAGVAR(module_expsym_cmds, $1)=
7338
7431
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7339
7432
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7433
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7434
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7340
7435
_LT_TAGVAR(no_undefined_flag, $1)=
7341
7436
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7342
7437
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7439
7534
      # Commands to make compiler produce verbose output that lists
7440
7535
      # what "hidden" libraries, object files and flags are used when
7441
7536
      # linking a shared library.
7442
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7537
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7443
7538
 
7444
7539
    else
7445
7540
      GXX=no
7551
7646
          _LT_SYS_MODULE_PATH_AIX
7552
7647
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7553
7648
 
7554
 
          _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"
 
7649
          _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7555
7650
        else
7556
7651
          if test "$host_cpu" = ia64; then
7557
7652
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7566
7661
            # -berok will link without error, but may produce a broken library.
7567
7662
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7568
7663
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7569
 
            # Exported symbols can be pulled into shared objects from archives
7570
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
7664
            if test "$with_gnu_ld" = yes; then
 
7665
              # We only use this code for GNU lds that support --whole-archive.
 
7666
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
7667
            else
 
7668
              # Exported symbols can be pulled into shared objects from archives
 
7669
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
7670
            fi
7571
7671
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7572
7672
            # This is similar to how AIX traditionally builds its shared
7573
7673
            # libraries.
7600
7700
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7601
7701
        # as there is no search path for DLLs.
7602
7702
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7703
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
7603
7704
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7604
7705
        _LT_TAGVAR(always_export_symbols, $1)=no
7605
7706
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7660
7761
      gnu*)
7661
7762
        ;;
7662
7763
 
 
7764
      haiku*)
 
7765
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7766
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7767
        ;;
 
7768
 
7663
7769
      hpux9*)
7664
7770
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7665
7771
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7684
7790
            # explicitly linking system object files so we need to strip them
7685
7791
            # from the output so that they don't get included in the library
7686
7792
            # dependencies.
7687
 
            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'
 
7793
            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; func_echo_all "$list"'
7688
7794
            ;;
7689
7795
          *)
7690
7796
            if test "$GXX" = yes; then
7749
7855
            # explicitly linking system object files so we need to strip them
7750
7856
            # from the output so that they don't get included in the library
7751
7857
            # dependencies.
7752
 
            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'
 
7858
            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; func_echo_all "$list"'
7753
7859
            ;;
7754
7860
          *)
7755
7861
            if test "$GXX" = yes; then
7792
7898
        case $cc_basename in
7793
7899
          CC*)
7794
7900
            # SGI C++
7795
 
            _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'
 
7901
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7796
7902
 
7797
7903
            # Archives containing C++ object files must be created using
7798
7904
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
7803
7909
          *)
7804
7910
            if test "$GXX" = yes; then
7805
7911
              if test "$with_gnu_ld" = no; then
7806
 
                _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'
 
7912
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7807
7913
              else
7808
 
                _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'
 
7914
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
7809
7915
              fi
7810
7916
            fi
7811
7917
            _LT_TAGVAR(link_all_deplibs, $1)=yes
7816
7922
        _LT_TAGVAR(inherit_rpath, $1)=yes
7817
7923
        ;;
7818
7924
 
7819
 
      linux* | k*bsd*-gnu)
 
7925
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
7820
7926
        case $cc_basename in
7821
7927
          KCC*)
7822
7928
            # Kuck and Associates, Inc. (KAI) C++ Compiler
7834
7940
            # explicitly linking system object files so we need to strip them
7835
7941
            # from the output so that they don't get included in the library
7836
7942
            # dependencies.
7837
 
            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'
 
7943
            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; func_echo_all "$list"'
7838
7944
 
7839
7945
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7840
7946
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7871
7977
          pgCC* | pgcpp*)
7872
7978
            # Portland Group C++ compiler
7873
7979
            case `$CC -V` in
7874
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
7980
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7875
7981
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7876
7982
                rm -rf $tpldir~
7877
7983
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7878
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
7984
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7879
7985
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7880
7986
                rm -rf $tpldir~
7881
7987
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7882
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
7988
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7883
7989
                $RANLIB $oldlib'
7884
7990
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7885
7991
                rm -rf $tpldir~
7886
7992
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7887
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
7993
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7888
7994
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7889
7995
                rm -rf $tpldir~
7890
7996
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7891
 
                $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'
 
7997
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7892
7998
              ;;
7893
 
            *) # Version 6 will use weak symbols
 
7999
            *) # Version 6 and above use weak symbols
7894
8000
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7895
8001
              _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'
7896
8002
              ;;
7898
8004
 
7899
8005
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7900
8006
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7901
 
            _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'
 
8007
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7902
8008
            ;;
7903
8009
          cxx*)
7904
8010
            # Compaq C++
7917
8023
            # explicitly linking system object files so we need to strip them
7918
8024
            # from the output so that they don't get included in the library
7919
8025
            # dependencies.
7920
 
            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'
 
8026
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
7921
8027
            ;;
7922
 
          xl*)
 
8028
          xl* | mpixl* | bgxl*)
7923
8029
            # IBM XL 8.0 on PPC, with GNU ld
7924
8030
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7925
8031
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7939
8045
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7940
8046
              _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'
7941
8047
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7942
 
              _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'
 
8048
              _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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7943
8049
              _LT_TAGVAR(compiler_needs_object, $1)=yes
7944
8050
 
7945
8051
              # Not sure whether something based on
7946
8052
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7947
8053
              # would be better.
7948
 
              output_verbose_link_cmd='echo'
 
8054
              output_verbose_link_cmd='func_echo_all'
7949
8055
 
7950
8056
              # Archives containing C++ object files must be created using
7951
8057
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
8014
8120
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8015
8121
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8016
8122
          fi
8017
 
          output_verbose_link_cmd=echo
 
8123
          output_verbose_link_cmd=func_echo_all
8018
8124
        else
8019
8125
          _LT_TAGVAR(ld_shlibs, $1)=no
8020
8126
        fi
8049
8155
            case $host in
8050
8156
              osf3*)
8051
8157
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8052
 
                _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'
 
8158
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8053
8159
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8054
8160
                ;;
8055
8161
              *)
8056
8162
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8057
 
                _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'
 
8163
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8058
8164
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
8059
8165
                  echo "-hidden">> $lib.exp~
8060
 
                  $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~
 
8166
                  $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~
8061
8167
                  $RM $lib.exp'
8062
8168
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8063
8169
                ;;
8073
8179
            # explicitly linking system object files so we need to strip them
8074
8180
            # from the output so that they don't get included in the library
8075
8181
            # dependencies.
8076
 
            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'
 
8182
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
8077
8183
            ;;
8078
8184
          *)
8079
8185
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8080
8186
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8081
8187
              case $host in
8082
8188
                osf3*)
8083
 
                  _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'
 
8189
                  _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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8084
8190
                  ;;
8085
8191
                *)
8086
 
                  _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'
 
8192
                  _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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8087
8193
                  ;;
8088
8194
              esac
8089
8195
 
8093
8199
              # Commands to make compiler produce verbose output that lists
8094
8200
              # what "hidden" libraries, object files and flags are used when
8095
8201
              # linking a shared library.
8096
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
8202
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8097
8203
 
8098
8204
            else
8099
8205
              # FIXME: insert proper C++ library support
8129
8235
 
8130
8236
      solaris*)
8131
8237
        case $cc_basename in
8132
 
          CC*)
 
8238
          CC* | sunCC*)
8133
8239
            # Sun C++ 4.2, 5.x and Centerline C++
8134
8240
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
8135
8241
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8150
8256
            esac
8151
8257
            _LT_TAGVAR(link_all_deplibs, $1)=yes
8152
8258
 
8153
 
            output_verbose_link_cmd='echo'
 
8259
            output_verbose_link_cmd='func_echo_all'
8154
8260
 
8155
8261
            # Archives containing C++ object files must be created using
8156
8262
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
8177
8283
                # Commands to make compiler produce verbose output that lists
8178
8284
                # what "hidden" libraries, object files and flags are used when
8179
8285
                # linking a shared library.
8180
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
8286
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8181
8287
              else
8182
8288
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
8183
8289
                # platform.
8188
8294
                # Commands to make compiler produce verbose output that lists
8189
8295
                # what "hidden" libraries, object files and flags are used when
8190
8296
                # linking a shared library.
8191
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
8297
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8192
8298
              fi
8193
8299
 
8194
8300
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
8242
8348
          CC*)
8243
8349
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8244
8350
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8351
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 
8352
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
 
8353
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 
8354
              '"$_LT_TAGVAR(reload_cmds, $1)"
8245
8355
            ;;
8246
8356
          *)
8247
8357
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8488
8598
 
8489
8599
solaris*)
8490
8600
  case $cc_basename in
8491
 
  CC*)
 
8601
  CC* | sunCC*)
8492
8602
    # The more standards-conforming stlport4 library is
8493
8603
    # incompatible with the Cstd library. Avoid specifying
8494
8604
    # it if it's in CXXFLAGS. Ignore libCrun as
8532
8642
])# _LT_SYS_HIDDEN_LIBDEPS
8533
8643
 
8534
8644
 
8535
 
# _LT_PROG_F77
8536
 
# ------------
8537
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
8538
 
# if there is no fortran compiler, we have our own version here.
8539
 
m4_defun([_LT_PROG_F77],
8540
 
[
8541
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
8542
 
AC_PROG_F77
8543
 
if test -z "$F77" || test "X$F77" = "Xno"; then
8544
 
  _lt_disable_F77=yes
8545
 
fi
8546
 
popdef([AC_MSG_ERROR])
8547
 
])# _LT_PROG_F77
8548
 
 
8549
 
dnl aclocal-1.4 backwards compatibility:
8550
 
dnl AC_DEFUN([_LT_PROG_F77], [])
8551
 
 
8552
 
 
8553
8645
# _LT_LANG_F77_CONFIG([TAG])
8554
8646
# --------------------------
8555
8647
# Ensure that the configuration variables for a Fortran 77 compiler are
8556
8648
# suitably defined.  These variables are subsequently used by _LT_CONFIG
8557
8649
# to write the compiler configuration to `libtool'.
8558
8650
m4_defun([_LT_LANG_F77_CONFIG],
8559
 
[AC_REQUIRE([_LT_PROG_F77])dnl
8560
 
AC_LANG_PUSH(Fortran 77)
 
8651
[AC_LANG_PUSH(Fortran 77)
 
8652
if test -z "$F77" || test "X$F77" = "Xno"; then
 
8653
  _lt_disable_F77=yes
 
8654
fi
8561
8655
 
8562
8656
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8563
8657
_LT_TAGVAR(allow_undefined_flag, $1)=
8576
8670
_LT_TAGVAR(module_expsym_cmds, $1)=
8577
8671
_LT_TAGVAR(link_all_deplibs, $1)=unknown
8578
8672
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8673
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8674
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8579
8675
_LT_TAGVAR(no_undefined_flag, $1)=
8580
8676
_LT_TAGVAR(whole_archive_flag_spec, $1)=
8581
8677
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8675
8771
])# _LT_LANG_F77_CONFIG
8676
8772
 
8677
8773
 
8678
 
# _LT_PROG_FC
8679
 
# -----------
8680
 
# Since AC_PROG_FC is broken, in that it returns the empty string
8681
 
# if there is no fortran compiler, we have our own version here.
8682
 
m4_defun([_LT_PROG_FC],
8683
 
[
8684
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
8685
 
AC_PROG_FC
8686
 
if test -z "$FC" || test "X$FC" = "Xno"; then
8687
 
  _lt_disable_FC=yes
8688
 
fi
8689
 
popdef([AC_MSG_ERROR])
8690
 
])# _LT_PROG_FC
8691
 
 
8692
 
dnl aclocal-1.4 backwards compatibility:
8693
 
dnl AC_DEFUN([_LT_PROG_FC], [])
8694
 
 
8695
 
 
8696
8774
# _LT_LANG_FC_CONFIG([TAG])
8697
8775
# -------------------------
8698
8776
# Ensure that the configuration variables for a Fortran compiler are
8699
8777
# suitably defined.  These variables are subsequently used by _LT_CONFIG
8700
8778
# to write the compiler configuration to `libtool'.
8701
8779
m4_defun([_LT_LANG_FC_CONFIG],
8702
 
[AC_REQUIRE([_LT_PROG_FC])dnl
8703
 
AC_LANG_PUSH(Fortran)
 
8780
[AC_LANG_PUSH(Fortran)
 
8781
 
 
8782
if test -z "$FC" || test "X$FC" = "Xno"; then
 
8783
  _lt_disable_FC=yes
 
8784
fi
8704
8785
 
8705
8786
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8706
8787
_LT_TAGVAR(allow_undefined_flag, $1)=
8719
8800
_LT_TAGVAR(module_expsym_cmds, $1)=
8720
8801
_LT_TAGVAR(link_all_deplibs, $1)=unknown
8721
8802
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8803
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8804
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8722
8805
_LT_TAGVAR(no_undefined_flag, $1)=
8723
8806
_LT_TAGVAR(whole_archive_flag_spec, $1)=
8724
8807
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8864
8947
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8865
8948
 
8866
8949
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8950
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8951
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8867
8952
 
8868
8953
if test -n "$compiler"; then
8869
8954
  _LT_COMPILER_NO_RTTI($1)
9225
9310
func_dirname ()
9226
9311
{
9227
9312
  # Extract subdirectory from the argument.
9228
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
9313
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
9229
9314
  if test "X$func_dirname_result" = "X${1}"; then
9230
9315
    func_dirname_result="${3}"
9231
9316
  else
9236
9321
# func_basename file
9237
9322
func_basename ()
9238
9323
{
9239
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
9324
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
9240
9325
}
9241
9326
 
9242
9327
dnl func_dirname_and_basename
9252
9337
func_stripname ()
9253
9338
{
9254
9339
  case ${2} in
9255
 
    .*) func_stripname_result=`$ECHO "X${3}" \
9256
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
9257
 
    *)  func_stripname_result=`$ECHO "X${3}" \
9258
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
9340
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
9341
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9259
9342
  esac
9260
9343
}
9261
9344
 
9266
9349
# func_opt_split
9267
9350
func_opt_split ()
9268
9351
{
9269
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
9270
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
9352
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
 
9353
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
9271
9354
}
9272
9355
 
9273
9356
# func_lo2o object
9274
9357
func_lo2o ()
9275
9358
{
9276
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
9359
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
9277
9360
}
9278
9361
 
9279
9362
# func_xform libobj-or-source
9280
9363
func_xform ()
9281
9364
{
9282
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
9365
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
9283
9366
}
9284
9367
 
9285
9368
# func_arith arithmetic-term...
9327
9410
 
9328
9411
# Helper functions for option handling.                    -*- Autoconf -*-
9329
9412
#
9330
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
9413
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
 
9414
#   Inc.
9331
9415
#   Written by Gary V. Vaughan, 2004
9332
9416
#
9333
9417
# This file is free software; the Free Software Foundation gives
9334
9418
# unlimited permission to copy and/or distribute it, with or without
9335
9419
# modifications, as long as this notice is preserved.
9336
9420
 
9337
 
# serial 6 ltoptions.m4
 
9421
# serial 7 ltoptions.m4
9338
9422
 
9339
9423
# This is to help aclocal find these macros, as it can't see m4_define.
9340
9424
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
9449
9533
[enable_win32_dll=yes
9450
9534
 
9451
9535
case $host in
9452
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
9536
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9453
9537
  AC_CHECK_TOOL(AS, as, false)
9454
9538
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
9455
9539
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
9457
9541
esac
9458
9542
 
9459
9543
test -z "$AS" && AS=as
9460
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
9544
_LT_DECL([], [AS],      [1], [Assembler program])dnl
9461
9545
 
9462
9546
test -z "$DLLTOOL" && DLLTOOL=dlltool
9463
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
9547
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
9464
9548
 
9465
9549
test -z "$OBJDUMP" && OBJDUMP=objdump
9466
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
9550
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
9467
9551
])# win32-dll
9468
9552
 
9469
9553
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
9823
9907
 
9824
9908
# Generated from ltversion.in.
9825
9909
 
9826
 
# serial 3017 ltversion.m4
 
9910
# serial 3175 ltversion.m4
9827
9911
# This file is part of GNU Libtool
9828
9912
 
9829
 
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
9830
 
m4_define([LT_PACKAGE_REVISION], [1.3017])
 
9913
m4_define([LT_PACKAGE_VERSION], [2.2.10])
 
9914
m4_define([LT_PACKAGE_REVISION], [1.3175])
9831
9915
 
9832
9916
AC_DEFUN([LTVERSION_VERSION],
9833
 
[macro_version='2.2.6b'
9834
 
macro_revision='1.3017'
 
9917
[macro_version='2.2.10'
 
9918
macro_revision='1.3175'
9835
9919
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9836
9920
_LT_DECL(, macro_revision, 0)
9837
9921
])
9838
9922
 
9839
9923
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
9840
9924
#
9841
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
9925
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
9842
9926
#   Written by Scott James Remnant, 2004.
9843
9927
#
9844
9928
# This file is free software; the Free Software Foundation gives
9845
9929
# unlimited permission to copy and/or distribute it, with or without
9846
9930
# modifications, as long as this notice is preserved.
9847
9931
 
9848
 
# serial 4 lt~obsolete.m4
 
9932
# serial 5 lt~obsolete.m4
9849
9933
 
9850
9934
# These exist entirely to fool aclocal when bootstrapping libtool.
9851
9935
#
9915
9999
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
9916
10000
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
9917
10001
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
9918
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
9919
10002
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
9920
10003
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
9921
10004
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
9928
10011
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9929
10012
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
9930
10013
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
10014
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
 
10015
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
 
10016
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
 
10017
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
 
10018
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
 
10019
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
 
10020
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
9931
10021
 
9932
10022
dnl $Id$
9933
10023
dnl