Changeset 289


Ignore:
Timestamp:
Jan 12, 2012 5:48:13 AM (8 years ago)
Author:
kulshres
Message:

regenerate files

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

Location:
trunk
Files:
32 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/Makefile.in

    r171 r289  
    148148MAKEFLAGS = @MAKEFLAGS@
    149149MAKEINFO = @MAKEINFO@
     150MANIFEST_TOOL = @MANIFEST_TOOL@
    150151MCS = @MCS@
    151152MKDIR_P = @MKDIR_P@
     
    181182ac_adolc_cxxflags = @ac_adolc_cxxflags@
    182183ac_aux_dir = @ac_aux_dir@
     184ac_ct_AR = @ac_ct_AR@
    183185ac_ct_CC = @ac_ct_CC@
    184186ac_ct_CXX = @ac_ct_CXX@
     
    214216localedir = @localedir@
    215217localstatedir = @localstatedir@
    216 lt_ECHO = @lt_ECHO@
    217218mandir = @mandir@
    218219mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/Makefile.in

    r249 r289  
    191191MAKEFLAGS = @MAKEFLAGS@
    192192MAKEINFO = @MAKEINFO@
     193MANIFEST_TOOL = @MANIFEST_TOOL@
    193194MCS = @MCS@
    194195MKDIR_P = @MKDIR_P@
     
    224225ac_adolc_cxxflags = @ac_adolc_cxxflags@
    225226ac_aux_dir = @ac_aux_dir@
     227ac_ct_AR = @ac_ct_AR@
    226228ac_ct_CC = @ac_ct_CC@
    227229ac_ct_CXX = @ac_ct_CXX@
     
    257259localedir = @localedir@
    258260localstatedir = @localstatedir@
    259 lt_ECHO = @lt_ECHO@
    260261mandir = @mandir@
    261262mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/Makefile.in

    r249 r289  
    150150MAKEFLAGS = @MAKEFLAGS@
    151151MAKEINFO = @MAKEINFO@
     152MANIFEST_TOOL = @MANIFEST_TOOL@
    152153MCS = @MCS@
    153154MKDIR_P = @MKDIR_P@
     
    183184ac_adolc_cxxflags = @ac_adolc_cxxflags@
    184185ac_aux_dir = @ac_aux_dir@
     186ac_ct_AR = @ac_ct_AR@
    185187ac_ct_CC = @ac_ct_CC@
    186188ac_ct_CXX = @ac_ct_CXX@
     
    216218localedir = @localedir@
    217219localstatedir = @localstatedir@
    218 lt_ECHO = @lt_ECHO@
    219220mandir = @mandir@
    220221mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/checkpointing/Makefile.in

    r249 r289  
    127127MAKEFLAGS = @MAKEFLAGS@
    128128MAKEINFO = @MAKEINFO@
     129MANIFEST_TOOL = @MANIFEST_TOOL@
    129130MCS = @MCS@
    130131MKDIR_P = @MKDIR_P@
     
    160161ac_adolc_cxxflags = @ac_adolc_cxxflags@
    161162ac_aux_dir = @ac_aux_dir@
     163ac_ct_AR = @ac_ct_AR@
    162164ac_ct_CC = @ac_ct_CC@
    163165ac_ct_CXX = @ac_ct_CXX@
     
    193195localedir = @localedir@
    194196localstatedir = @localstatedir@
    195 lt_ECHO = @lt_ECHO@
    196197mandir = @mandir@
    197198mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/clock/Makefile.in

    r249 r289  
    108108MAKEFLAGS = @MAKEFLAGS@
    109109MAKEINFO = @MAKEINFO@
     110MANIFEST_TOOL = @MANIFEST_TOOL@
    110111MCS = @MCS@
    111112MKDIR_P = @MKDIR_P@
     
    141142ac_adolc_cxxflags = @ac_adolc_cxxflags@
    142143ac_aux_dir = @ac_aux_dir@
     144ac_ct_AR = @ac_ct_AR@
    143145ac_ct_CC = @ac_ct_CC@
    144146ac_ct_CXX = @ac_ct_CXX@
     
    174176localedir = @localedir@
    175177localstatedir = @localstatedir@
    176 lt_ECHO = @lt_ECHO@
    177178mandir = @mandir@
    178179mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/detexam/Makefile.in

    r249 r289  
    131131MAKEFLAGS = @MAKEFLAGS@
    132132MAKEINFO = @MAKEINFO@
     133MANIFEST_TOOL = @MANIFEST_TOOL@
    133134MCS = @MCS@
    134135MKDIR_P = @MKDIR_P@
     
    164165ac_adolc_cxxflags = @ac_adolc_cxxflags@
    165166ac_aux_dir = @ac_aux_dir@
     167ac_ct_AR = @ac_ct_AR@
    166168ac_ct_CC = @ac_ct_CC@
    167169ac_ct_CXX = @ac_ct_CXX@
     
    197199localedir = @localedir@
    198200localstatedir = @localstatedir@
    199 lt_ECHO = @lt_ECHO@
    200201mandir = @mandir@
    201202mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/ext_diff_func/Makefile.in

    r249 r289  
    127127MAKEFLAGS = @MAKEFLAGS@
    128128MAKEINFO = @MAKEINFO@
     129MANIFEST_TOOL = @MANIFEST_TOOL@
    129130MCS = @MCS@
    130131MKDIR_P = @MKDIR_P@
     
    160161ac_adolc_cxxflags = @ac_adolc_cxxflags@
    161162ac_aux_dir = @ac_aux_dir@
     163ac_ct_AR = @ac_ct_AR@
    162164ac_ct_CC = @ac_ct_CC@
    163165ac_ct_CXX = @ac_ct_CXX@
     
    193195localedir = @localedir@
    194196localstatedir = @localstatedir@
    195 lt_ECHO = @lt_ECHO@
    196197mandir = @mandir@
    197198mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/fixpoint_exam/Makefile.in

    r249 r289  
    127127MAKEFLAGS = @MAKEFLAGS@
    128128MAKEINFO = @MAKEINFO@
     129MANIFEST_TOOL = @MANIFEST_TOOL@
    129130MCS = @MCS@
    130131MKDIR_P = @MKDIR_P@
     
    160161ac_adolc_cxxflags = @ac_adolc_cxxflags@
    161162ac_aux_dir = @ac_aux_dir@
     163ac_ct_AR = @ac_ct_AR@
    162164ac_ct_CC = @ac_ct_CC@
    163165ac_ct_CXX = @ac_ct_CXX@
     
    193195localedir = @localedir@
    194196localstatedir = @localstatedir@
    195 lt_ECHO = @lt_ECHO@
    196197mandir = @mandir@
    197198mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/helm/Makefile.in

    r249 r289  
    131131MAKEFLAGS = @MAKEFLAGS@
    132132MAKEINFO = @MAKEINFO@
     133MANIFEST_TOOL = @MANIFEST_TOOL@
    133134MCS = @MCS@
    134135MKDIR_P = @MKDIR_P@
     
    164165ac_adolc_cxxflags = @ac_adolc_cxxflags@
    165166ac_aux_dir = @ac_aux_dir@
     167ac_ct_AR = @ac_ct_AR@
    166168ac_ct_CC = @ac_ct_CC@
    167169ac_ct_CXX = @ac_ct_CXX@
     
    197199localedir = @localedir@
    198200localstatedir = @localstatedir@
    199 lt_ECHO = @lt_ECHO@
    200201mandir = @mandir@
    201202mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/hessmat/Makefile.in

    r249 r289  
    127127MAKEFLAGS = @MAKEFLAGS@
    128128MAKEINFO = @MAKEINFO@
     129MANIFEST_TOOL = @MANIFEST_TOOL@
    129130MCS = @MCS@
    130131MKDIR_P = @MKDIR_P@
     
    160161ac_adolc_cxxflags = @ac_adolc_cxxflags@
    161162ac_aux_dir = @ac_aux_dir@
     163ac_ct_AR = @ac_ct_AR@
    162164ac_ct_CC = @ac_ct_CC@
    163165ac_ct_CXX = @ac_ct_CXX@
     
    193195localedir = @localedir@
    194196localstatedir = @localstatedir@
    195 lt_ECHO = @lt_ECHO@
    196197mandir = @mandir@
    197198mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/lighthouse/Makefile.in

    r249 r289  
    142142MAKEFLAGS = @MAKEFLAGS@
    143143MAKEINFO = @MAKEINFO@
     144MANIFEST_TOOL = @MANIFEST_TOOL@
    144145MCS = @MCS@
    145146MKDIR_P = @MKDIR_P@
     
    175176ac_adolc_cxxflags = @ac_adolc_cxxflags@
    176177ac_aux_dir = @ac_aux_dir@
     178ac_ct_AR = @ac_ct_AR@
    177179ac_ct_CC = @ac_ct_CC@
    178180ac_ct_CXX = @ac_ct_CXX@
     
    208210localedir = @localedir@
    209211localstatedir = @localstatedir@
    210 lt_ECHO = @lt_ECHO@
    211212mandir = @mandir@
    212213mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/lufact/Makefile.in

    r249 r289  
    131131MAKEFLAGS = @MAKEFLAGS@
    132132MAKEINFO = @MAKEINFO@
     133MANIFEST_TOOL = @MANIFEST_TOOL@
    133134MCS = @MCS@
    134135MKDIR_P = @MKDIR_P@
     
    164165ac_adolc_cxxflags = @ac_adolc_cxxflags@
    165166ac_aux_dir = @ac_aux_dir@
     167ac_ct_AR = @ac_ct_AR@
    166168ac_ct_CC = @ac_ct_CC@
    167169ac_ct_CXX = @ac_ct_CXX@
     
    197199localedir = @localedir@
    198200localstatedir = @localstatedir@
    199 lt_ECHO = @lt_ECHO@
    200201mandir = @mandir@
    201202mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/ode/Makefile.in

    r249 r289  
    139139MAKEFLAGS = @MAKEFLAGS@
    140140MAKEINFO = @MAKEINFO@
     141MANIFEST_TOOL = @MANIFEST_TOOL@
    141142MCS = @MCS@
    142143MKDIR_P = @MKDIR_P@
     
    172173ac_adolc_cxxflags = @ac_adolc_cxxflags@
    173174ac_aux_dir = @ac_aux_dir@
     175ac_ct_AR = @ac_ct_AR@
    174176ac_ct_CC = @ac_ct_CC@
    175177ac_ct_CXX = @ac_ct_CXX@
     
    205207localedir = @localedir@
    206208localstatedir = @localstatedir@
    207 lt_ECHO = @lt_ECHO@
    208209mandir = @mandir@
    209210mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/openmp_exam/Makefile.in

    r249 r289  
    131131MAKEFLAGS = @MAKEFLAGS@
    132132MAKEINFO = @MAKEINFO@
     133MANIFEST_TOOL = @MANIFEST_TOOL@
    133134MCS = @MCS@
    134135MKDIR_P = @MKDIR_P@
     
    164165ac_adolc_cxxflags = @ac_adolc_cxxflags@
    165166ac_aux_dir = @ac_aux_dir@
     167ac_ct_AR = @ac_ct_AR@
    166168ac_ct_CC = @ac_ct_CC@
    167169ac_ct_CXX = @ac_ct_CXX@
     
    197199localedir = @localedir@
    198200localstatedir = @localstatedir@
    199 lt_ECHO = @lt_ECHO@
    200201mandir = @mandir@
    201202mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/pow/Makefile.in

    r249 r289  
    127127MAKEFLAGS = @MAKEFLAGS@
    128128MAKEINFO = @MAKEINFO@
     129MANIFEST_TOOL = @MANIFEST_TOOL@
    129130MCS = @MCS@
    130131MKDIR_P = @MKDIR_P@
     
    160161ac_adolc_cxxflags = @ac_adolc_cxxflags@
    161162ac_aux_dir = @ac_aux_dir@
     163ac_ct_AR = @ac_ct_AR@
    162164ac_ct_CC = @ac_ct_CC@
    163165ac_ct_CXX = @ac_ct_CXX@
     
    193195localedir = @localedir@
    194196localstatedir = @localstatedir@
    195 lt_ECHO = @lt_ECHO@
    196197mandir = @mandir@
    197198mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/scal/Makefile.in

    r249 r289  
    127127MAKEFLAGS = @MAKEFLAGS@
    128128MAKEINFO = @MAKEINFO@
     129MANIFEST_TOOL = @MANIFEST_TOOL@
    129130MCS = @MCS@
    130131MKDIR_P = @MKDIR_P@
     
    160161ac_adolc_cxxflags = @ac_adolc_cxxflags@
    161162ac_aux_dir = @ac_aux_dir@
     163ac_ct_AR = @ac_ct_AR@
    162164ac_ct_CC = @ac_ct_CC@
    163165ac_ct_CXX = @ac_ct_CXX@
     
    193195localedir = @localedir@
    194196localstatedir = @localstatedir@
    195 lt_ECHO = @lt_ECHO@
    196197mandir = @mandir@
    197198mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/sparse/Makefile.in

    r249 r289  
    144144MAKEFLAGS = @MAKEFLAGS@
    145145MAKEINFO = @MAKEINFO@
     146MANIFEST_TOOL = @MANIFEST_TOOL@
    146147MCS = @MCS@
    147148MKDIR_P = @MKDIR_P@
     
    177178ac_adolc_cxxflags = @ac_adolc_cxxflags@
    178179ac_aux_dir = @ac_aux_dir@
     180ac_ct_AR = @ac_ct_AR@
    179181ac_ct_CC = @ac_ct_CC@
    180182ac_ct_CXX = @ac_ct_CXX@
     
    210212localedir = @localedir@
    211213localstatedir = @localstatedir@
    212 lt_ECHO = @lt_ECHO@
    213214mandir = @mandir@
    214215mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/speelpenning/Makefile.in

    r249 r289  
    127127MAKEFLAGS = @MAKEFLAGS@
    128128MAKEINFO = @MAKEINFO@
     129MANIFEST_TOOL = @MANIFEST_TOOL@
    129130MCS = @MCS@
    130131MKDIR_P = @MKDIR_P@
     
    160161ac_adolc_cxxflags = @ac_adolc_cxxflags@
    161162ac_aux_dir = @ac_aux_dir@
     163ac_ct_AR = @ac_ct_AR@
    162164ac_ct_CC = @ac_ct_CC@
    163165ac_ct_CXX = @ac_ct_CXX@
     
    193195localedir = @localedir@
    194196localstatedir = @localstatedir@
    195 lt_ECHO = @lt_ECHO@
    196197mandir = @mandir@
    197198mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/tapesave/Makefile.in

    r249 r289  
    131131MAKEFLAGS = @MAKEFLAGS@
    132132MAKEINFO = @MAKEINFO@
     133MANIFEST_TOOL = @MANIFEST_TOOL@
    133134MCS = @MCS@
    134135MKDIR_P = @MKDIR_P@
     
    164165ac_adolc_cxxflags = @ac_adolc_cxxflags@
    165166ac_aux_dir = @ac_aux_dir@
     167ac_ct_AR = @ac_ct_AR@
    166168ac_ct_CC = @ac_ct_CC@
    167169ac_ct_CXX = @ac_ct_CXX@
     
    197199localedir = @localedir@
    198200localstatedir = @localstatedir@
    199 lt_ECHO = @lt_ECHO@
    200201mandir = @mandir@
    201202mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/taylor/Makefile.in

    r249 r289  
    147147MAKEFLAGS = @MAKEFLAGS@
    148148MAKEINFO = @MAKEINFO@
     149MANIFEST_TOOL = @MANIFEST_TOOL@
    149150MCS = @MCS@
    150151MKDIR_P = @MKDIR_P@
     
    180181ac_adolc_cxxflags = @ac_adolc_cxxflags@
    181182ac_aux_dir = @ac_aux_dir@
     183ac_ct_AR = @ac_ct_AR@
    182184ac_ct_CC = @ac_ct_CC@
    183185ac_ct_CXX = @ac_ct_CXX@
     
    213215localedir = @localedir@
    214216localstatedir = @localstatedir@
    215 lt_ECHO = @lt_ECHO@
    216217mandir = @mandir@
    217218mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/timing/Makefile.in

    r249 r289  
    217217MAKEFLAGS = @MAKEFLAGS@
    218218MAKEINFO = @MAKEINFO@
     219MANIFEST_TOOL = @MANIFEST_TOOL@
    219220MCS = @MCS@
    220221MKDIR_P = @MKDIR_P@
     
    250251ac_adolc_cxxflags = @ac_adolc_cxxflags@
    251252ac_aux_dir = @ac_aux_dir@
     253ac_ct_AR = @ac_ct_AR@
    252254ac_ct_CC = @ac_ct_CC@
    253255ac_ct_CXX = @ac_ct_CXX@
     
    283285localedir = @localedir@
    284286localstatedir = @localstatedir@
    285 lt_ECHO = @lt_ECHO@
    286287mandir = @mandir@
    287288mkdir_p = @mkdir_p@
  • trunk/ADOL-C/src/Makefile.in

    r272 r289  
    232232MAKEFLAGS = @MAKEFLAGS@
    233233MAKEINFO = @MAKEINFO@
     234MANIFEST_TOOL = @MANIFEST_TOOL@
    234235MCS = @MCS@
    235236MKDIR_P = @MKDIR_P@
     
    265266ac_adolc_cxxflags = @ac_adolc_cxxflags@
    266267ac_aux_dir = @ac_aux_dir@
     268ac_ct_AR = @ac_ct_AR@
    267269ac_ct_CC = @ac_ct_CC@
    268270ac_ct_CXX = @ac_ct_CXX@
     
    298300localedir = @localedir@
    299301localstatedir = @localstatedir@
    300 lt_ECHO = @lt_ECHO@
    301302mandir = @mandir@
    302303mkdir_p = @mkdir_p@
  • trunk/ADOL-C/src/drivers/Makefile.in

    r249 r289  
    151151MAKEFLAGS = @MAKEFLAGS@
    152152MAKEINFO = @MAKEINFO@
     153MANIFEST_TOOL = @MANIFEST_TOOL@
    153154MCS = @MCS@
    154155MKDIR_P = @MKDIR_P@
     
    184185ac_adolc_cxxflags = @ac_adolc_cxxflags@
    185186ac_aux_dir = @ac_aux_dir@
     187ac_ct_AR = @ac_ct_AR@
    186188ac_ct_CC = @ac_ct_CC@
    187189ac_ct_CXX = @ac_ct_CXX@
     
    217219localedir = @localedir@
    218220localstatedir = @localstatedir@
    219 lt_ECHO = @lt_ECHO@
    220221mandir = @mandir@
    221222mkdir_p = @mkdir_p@
  • trunk/ADOL-C/src/sparse/Makefile.in

    r249 r289  
    150150MAKEFLAGS = @MAKEFLAGS@
    151151MAKEINFO = @MAKEINFO@
     152MANIFEST_TOOL = @MANIFEST_TOOL@
    152153MCS = @MCS@
    153154MKDIR_P = @MKDIR_P@
     
    183184ac_adolc_cxxflags = @ac_adolc_cxxflags@
    184185ac_aux_dir = @ac_aux_dir@
     186ac_ct_AR = @ac_ct_AR@
    185187ac_ct_CC = @ac_ct_CC@
    186188ac_ct_CXX = @ac_ct_CXX@
     
    216218localedir = @localedir@
    217219localstatedir = @localstatedir@
    218 lt_ECHO = @lt_ECHO@
    219220mandir = @mandir@
    220221mkdir_p = @mkdir_p@
  • trunk/ADOL-C/src/tapedoc/Makefile.in

    r249 r289  
    150150MAKEFLAGS = @MAKEFLAGS@
    151151MAKEINFO = @MAKEINFO@
     152MANIFEST_TOOL = @MANIFEST_TOOL@
    152153MCS = @MCS@
    153154MKDIR_P = @MKDIR_P@
     
    183184ac_adolc_cxxflags = @ac_adolc_cxxflags@
    184185ac_aux_dir = @ac_aux_dir@
     186ac_ct_AR = @ac_ct_AR@
    185187ac_ct_CC = @ac_ct_CC@
    186188ac_ct_CXX = @ac_ct_CXX@
     
    216218localedir = @localedir@
    217219localstatedir = @localstatedir@
    218 lt_ECHO = @lt_ECHO@
    219220mandir = @mandir@
    220221mkdir_p = @mkdir_p@
  • trunk/ADOL-C/test/Makefile.in

    r268 r289  
    134134MAKEFLAGS = @MAKEFLAGS@
    135135MAKEINFO = @MAKEINFO@
     136MANIFEST_TOOL = @MANIFEST_TOOL@
    136137MCS = @MCS@
    137138MKDIR_P = @MKDIR_P@
     
    167168ac_adolc_cxxflags = @ac_adolc_cxxflags@
    168169ac_aux_dir = @ac_aux_dir@
     170ac_ct_AR = @ac_ct_AR@
    169171ac_ct_CC = @ac_ct_CC@
    170172ac_ct_CXX = @ac_ct_CXX@
     
    200202localedir = @localedir@
    201203localstatedir = @localstatedir@
    202 lt_ECHO = @lt_ECHO@
    203204mandir = @mandir@
    204205mkdir_p = @mkdir_p@
  • trunk/Makefile.in

    r227 r289  
    175175MAKEFLAGS = @MAKEFLAGS@
    176176MAKEINFO = @MAKEINFO@
     177MANIFEST_TOOL = @MANIFEST_TOOL@
    177178MCS = @MCS@
    178179MKDIR_P = @MKDIR_P@
     
    208209ac_adolc_cxxflags = @ac_adolc_cxxflags@
    209210ac_aux_dir = @ac_aux_dir@
     211ac_ct_AR = @ac_ct_AR@
    210212ac_ct_CC = @ac_ct_CC@
    211213ac_ct_CXX = @ac_ct_CXX@
     
    241243localedir = @localedir@
    242244localstatedir = @localstatedir@
    243 lt_ECHO = @lt_ECHO@
    244245mandir = @mandir@
    245246mkdir_p = @mkdir_p@
  • trunk/aclocal.m4

    r209 r289  
    2323#
    2424#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    25 #                 2006, 2007, 2008 Free Software Foundation, Inc.
     25#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
     26#                 Inc.
    2627#   Written by Gordon Matzigkeit, 1996
    2728#
     
    3233m4_define([_LT_COPYING], [dnl
    3334#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    34 #                 2006, 2007, 2008 Free Software Foundation, Inc.
     35#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
     36#                 Inc.
    3537#   Written by Gordon Matzigkeit, 1996
    3638#
     
    5961])
    6062
    61 # serial 56 LT_INIT
     63# serial 57 LT_INIT
    6264
    6365
     
    8890AC_DEFUN([LT_INIT],
    8991[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
     92AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
    9093AC_BEFORE([$0], [LT_LANG])dnl
    9194AC_BEFORE([$0], [LT_OUTPUT])dnl
     
    103106AC_REQUIRE([LTOBSOLETE_VERSION])dnl
    104107m4_require([_LT_PROG_LTMAIN])dnl
     108
     109_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
    105110
    106111dnl Parse OPTIONS
     
    140145  esac
    141146done
    142 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
     147cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
    143148])
    144149
     
    160165[AC_REQUIRE([AC_CANONICAL_HOST])dnl
    161166AC_REQUIRE([AC_CANONICAL_BUILD])dnl
     167AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
     168AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
     169
    162170_LT_DECL([], [host_alias], [0], [The host system])dnl
    163171_LT_DECL([], [host], [0])dnl
     
    182190m4_require([_LT_FILEUTILS_DEFAULTS])dnl
    183191m4_require([_LT_CHECK_SHELL_FEATURES])dnl
     192m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
    184193m4_require([_LT_CMD_RELOAD])dnl
    185194m4_require([_LT_CHECK_MAGIC_METHOD])dnl
     195m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
    186196m4_require([_LT_CMD_OLD_ARCHIVE])dnl
    187197m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
     198m4_require([_LT_WITH_SYSROOT])dnl
    188199
    189200_LT_CONFIG_LIBTOOL_INIT([
     
    201212
    202213m4_require([_LT_TAG_COMPILER])dnl
    203 _LT_PROG_ECHO_BACKSLASH
    204214
    205215case $host_os in
     
    215225esac
    216226
    217 # Sed substitution that helps us do robust quoting.  It backslashifies
    218 # metacharacters that are still active within double-quoted strings.
    219 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
    220 
    221 # Same as above, but do not quote variable references.
    222 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
    223 
    224 # Sed substitution to delay expansion of an escaped shell variable in a
    225 # double_quote_subst'ed string.
    226 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
    227 
    228 # Sed substitution to delay expansion of an escaped single quote.
    229 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
    230 
    231 # Sed substitution to avoid accidental globbing in evaled expressions
    232 no_glob_subst='s/\*/\\\*/g'
    233 
    234227# Global variables:
    235228ofile=libtool
     
    271264])# _LT_SETUP
    272265
     266
     267# _LT_PREPARE_SED_QUOTE_VARS
     268# --------------------------
     269# Define a few sed substitution that help us do robust quoting.
     270m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
     271[# Backslashify metacharacters that are still active within
     272# double-quoted strings.
     273sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
     274
     275# Same as above, but do not quote variable references.
     276double_quote_subst='s/\([["`\\]]\)/\\\1/g'
     277
     278# Sed substitution to delay expansion of an escaped shell variable in a
     279# double_quote_subst'ed string.
     280delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
     281
     282# Sed substitution to delay expansion of an escaped single quote.
     283delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
     284
     285# Sed substitution to avoid accidental globbing in evaled expressions
     286no_glob_subst='s/\*/\\\*/g'
     287])
    273288
    274289# _LT_PROG_LTMAIN
     
    424439# must have a single quote delimited value for this to work.
    425440m4_define([_LT_CONFIG_STATUS_DECLARE],
    426 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
     441[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
    427442
    428443
     
    434449# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
    435450#
    436 #    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
     451#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
    437452m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
    438453[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
     
    533548compiler='$compiler_DEFAULT'
    534549
     550# A function that is used when there is no print builtin or printf.
     551func_fallback_echo ()
     552{
     553  eval 'cat <<_LTECHO_EOF
     554\$[]1
     555_LTECHO_EOF'
     556}
     557
    535558# Quote evaled strings.
    536559for var in lt_decl_all_varnames([[ \
    537560]], lt_decl_quote_varnames); do
    538     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
     561    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    539562    *[[\\\\\\\`\\"\\\$]]*)
    540       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
     563      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
    541564      ;;
    542565    *)
     
    549572for var in lt_decl_all_varnames([[ \
    550573]], lt_decl_dquote_varnames); do
    551     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
     574    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    552575    *[[\\\\\\\`\\"\\\$]]*)
    553       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
     576      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
    554577      ;;
    555578    *)
     
    559582done
    560583
    561 # Fix-up fallback echo if it was mangled by the above quoting rules.
    562 case \$lt_ECHO in
    563 *'\\\[$]0 --fallback-echo"')dnl "
    564   lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
    565   ;;
    566 esac
    567 
    568584_LT_OUTPUT_LIBTOOL_INIT
    569585])
    570586
     587# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
     588# ------------------------------------
     589# Generate a child script FILE with all initialization necessary to
     590# reuse the environment learned by the parent script, and make the
     591# file executable.  If COMMENT is supplied, it is inserted after the
     592# `#!' sequence but before initialization text begins.  After this
     593# macro, additional text can be appended to FILE to form the body of
     594# the child script.  The macro ends with non-zero status if the
     595# file could not be fully written (such as if the disk is full).
     596m4_ifdef([AS_INIT_GENERATED],
     597[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
     598[m4_defun([_LT_GENERATED_FILE_INIT],
     599[m4_require([AS_PREPARE])]dnl
     600[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
     601[lt_write_fail=0
     602cat >$1 <<_ASEOF || lt_write_fail=1
     603#! $SHELL
     604# Generated by $as_me.
     605$2
     606SHELL=\${CONFIG_SHELL-$SHELL}
     607export SHELL
     608_ASEOF
     609cat >>$1 <<\_ASEOF || lt_write_fail=1
     610AS_SHELL_SANITIZE
     611_AS_PREPARE
     612exec AS_MESSAGE_FD>&1
     613_ASEOF
     614test $lt_write_fail = 0 && chmod +x $1[]dnl
     615m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
    571616
    572617# LT_OUTPUT
     
    578623[: ${CONFIG_LT=./config.lt}
    579624AC_MSG_NOTICE([creating $CONFIG_LT])
    580 cat >"$CONFIG_LT" <<_LTEOF
    581 #! $SHELL
    582 # Generated by $as_me.
    583 # Run this file to recreate a libtool stub with the current configuration.
    584 
     625_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
     626[# Run this file to recreate a libtool stub with the current configuration.])
     627
     628cat >>"$CONFIG_LT" <<\_LTEOF
    585629lt_cl_silent=false
    586 SHELL=\${CONFIG_SHELL-$SHELL}
    587 _LTEOF
    588 
    589 cat >>"$CONFIG_LT" <<\_LTEOF
    590 AS_SHELL_SANITIZE
    591 _AS_PREPARE
    592 
    593 exec AS_MESSAGE_FD>&1
    594630exec AS_MESSAGE_LOG_FD>>config.log
    595631{
     
    617653configured by $[0], generated by m4_PACKAGE_STRING.
    618654
    619 Copyright (C) 2008 Free Software Foundation, Inc.
     655Copyright (C) 2010 Free Software Foundation, Inc.
    620656This config.lt script is free software; the Free Software Foundation
    621657gives unlimited permision to copy, distribute and modify it."
     
    662698# open by configure.  Here we exec the FD to /dev/null, effectively closing
    663699# config.log, so it can be properly (re)opened and appended to by config.lt.
    664 if test "$no_create" != yes; then
    665   lt_cl_success=:
    666   test "$silent" = yes &&
    667     lt_config_lt_args="$lt_config_lt_args --quiet"
    668   exec AS_MESSAGE_LOG_FD>/dev/null
    669   $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
    670   exec AS_MESSAGE_LOG_FD>>config.log
    671   $lt_cl_success || AS_EXIT(1)
    672 fi
     700lt_cl_success=:
     701test "$silent" = yes &&
     702  lt_config_lt_args="$lt_config_lt_args --quiet"
     703exec AS_MESSAGE_LOG_FD>/dev/null
     704$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
     705exec AS_MESSAGE_LOG_FD>>config.log
     706$lt_cl_success || AS_EXIT(1)
    673707])# LT_OUTPUT
    674708
     
    700734# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
    701735# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
     736# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    702737# NOTE: Changes made to this file will be lost: look at ltmain.sh.
    703738#
     
    732767  # text mode, it properly converts lines to CR/LF.  This bash problem
    733768  # is reportedly fixed, but why not run on old versions too?
    734   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
    735     || (rm -f "$cfgfile"; exit 1)
    736 
    737   _LT_PROG_XSI_SHELLFNS
    738 
    739   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
    740     || (rm -f "$cfgfile"; exit 1)
    741 
    742   mv -f "$cfgfile" "$ofile" ||
     769  sed '$q' "$ltmain" >> "$cfgfile" \
     770     || (rm -f "$cfgfile"; exit 1)
     771
     772  _LT_PROG_REPLACE_SHELLFNS
     773
     774   mv -f "$cfgfile" "$ofile" ||
    743775    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
    744776  chmod +x "$ofile"
     
    846878AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
    847879AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
     880AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
    848881dnl aclocal-1.4 backwards compatibility:
    849882dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
     
    851884dnl AC_DEFUN([AC_LIBTOOL_FC], [])
    852885dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
     886dnl AC_DEFUN([AC_LIBTOOL_RC], [])
    853887
    854888
     
    955989        LDFLAGS="$save_LDFLAGS"
    956990    ])
     991    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
     992      [lt_cv_ld_force_load=no
     993      cat > conftest.c << _LT_EOF
     994int forced_loaded() { return 2;}
     995_LT_EOF
     996      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
     997      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
     998      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
     999      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
     1000      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
     1001      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
     1002      cat > conftest.c << _LT_EOF
     1003int main() { return 0;}
     1004_LT_EOF
     1005      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
     1006      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
     1007      _lt_result=$?
     1008      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
     1009        lt_cv_ld_force_load=yes
     1010      else
     1011        cat conftest.err >&AS_MESSAGE_LOG_FD
     1012      fi
     1013        rm -f conftest.err libconftest.a conftest conftest.c
     1014        rm -rf conftest.dSYM
     1015    ])
    9571016    case $host_os in
    9581017    rhapsody* | darwin1.[[012]])
     
    9821041      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    9831042    fi
    984     if test "$DSYMUTIL" != ":"; then
     1043    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
    9851044      _lt_dsymutil='~$DSYMUTIL $lib || :'
    9861045    else
     
    10021061  _LT_TAGVAR(hardcode_automatic, $1)=yes
    10031062  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    1004   _LT_TAGVAR(whole_archive_flag_spec, $1)=''
     1063  if test "$lt_cv_ld_force_load" = "yes"; then
     1064    _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\"`'
     1065  else
     1066    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
     1067  fi
    10051068  _LT_TAGVAR(link_all_deplibs, $1)=yes
    10061069  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
     
    10101073  esac
    10111074  if test "$_lt_dar_can_shared" = "yes"; then
    1012     output_verbose_link_cmd=echo
     1075    output_verbose_link_cmd=func_echo_all
    10131076    _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}"
    10141077    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
     
    10261089])
    10271090
    1028 # _LT_SYS_MODULE_PATH_AIX
    1029 # -----------------------
     1091# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
     1092# ----------------------------------
    10301093# Links a minimal program and checks the executable
    10311094# for the system default hardcoded library path. In most cases,
     
    10341097# If we don't find anything, use the default library path according
    10351098# to the aix ld manual.
     1099# Store the results from the different compilers for each TAGNAME.
     1100# Allow to override them for all tags through lt_cv_aix_libpath.
    10361101m4_defun([_LT_SYS_MODULE_PATH_AIX],
    10371102[m4_require([_LT_DECL_SED])dnl
    1038 AC_LINK_IFELSE([AC_LANG_PROGRAM],[
    1039 lt_aix_libpath_sed='
    1040     /Import File Strings/,/^$/ {
    1041         /^0/ {
    1042             s/^0  *\(.*\)$/\1/
    1043             p
    1044         }
    1045     }'
    1046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    1047 # Check for a 64-bit object if we didn't find anything.
    1048 if test -z "$aix_libpath"; then
    1049   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    1050 fi],[])
    1051 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
     1103if test "${lt_cv_aix_libpath+set}" = set; then
     1104  aix_libpath=$lt_cv_aix_libpath
     1105else
     1106  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
     1107  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
     1108  lt_aix_libpath_sed='[
     1109      /Import File Strings/,/^$/ {
     1110          /^0/ {
     1111              s/^0  *\([^ ]*\) *$/\1/
     1112              p
     1113          }
     1114      }]'
     1115  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     1116  # Check for a 64-bit object if we didn't find anything.
     1117  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
     1118    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     1119  fi],[])
     1120  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
     1121    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
     1122  fi
     1123  ])
     1124  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
     1125fi
    10521126])# _LT_SYS_MODULE_PATH_AIX
    10531127
     
    10561130# -------------------
    10571131m4_define([_LT_SHELL_INIT],
    1058 [ifdef([AC_DIVERSION_NOTICE],
    1059              [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
    1060          [AC_DIVERT_PUSH(NOTICE)])
    1061 $1
    1062 AC_DIVERT_POP
    1063 ])# _LT_SHELL_INIT
     1132[m4_divert_text([M4SH-INIT], [$1
     1133])])# _LT_SHELL_INIT
     1134
    10641135
    10651136
    10661137# _LT_PROG_ECHO_BACKSLASH
    10671138# -----------------------
    1068 # Add some code to the start of the generated configure script which
    1069 # will find an echo command which doesn't interpret backslashes.
     1139# Find how we can fake an echo command that does not interpret backslash.
     1140# In particular, with Autoconf 2.60 or later we add some code to the start
     1141# of the generated configure script which will find a shell with a builtin
     1142# printf (which we can use as an echo command).
    10701143m4_defun([_LT_PROG_ECHO_BACKSLASH],
    1071 [_LT_SHELL_INIT([
    1072 # Check that we are running under the correct shell.
    1073 SHELL=${CONFIG_SHELL-/bin/sh}
    1074 
    1075 case X$lt_ECHO in
    1076 X*--fallback-echo)
    1077   # Remove one level of quotation (which was required for Make).
    1078   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
    1079   ;;
     1144[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     1145ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
     1146ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
     1147
     1148AC_MSG_CHECKING([how to print strings])
     1149# Test print first, because it will be a builtin if present.
     1150if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
     1151   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
     1152  ECHO='print -r --'
     1153elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
     1154  ECHO='printf %s\n'
     1155else
     1156  # Use this function as a fallback that always works.
     1157  func_fallback_echo ()
     1158  {
     1159    eval 'cat <<_LTECHO_EOF
     1160$[]1
     1161_LTECHO_EOF'
     1162  }
     1163  ECHO='func_fallback_echo'
     1164fi
     1165
     1166# func_echo_all arg...
     1167# Invoke $ECHO with all args, space-separated.
     1168func_echo_all ()
     1169{
     1170    $ECHO "$*"
     1171}
     1172
     1173case "$ECHO" in
     1174  printf*) AC_MSG_RESULT([printf]) ;;
     1175  print*) AC_MSG_RESULT([print -r]) ;;
     1176  *) AC_MSG_RESULT([cat]) ;;
    10801177esac
    10811178
    1082 ECHO=${lt_ECHO-echo}
    1083 if test "X[$]1" = X--no-reexec; then
    1084   # Discard the --no-reexec flag, and continue.
    1085   shift
    1086 elif test "X[$]1" = X--fallback-echo; then
    1087   # Avoid inline document here, it may be left over
    1088   :
    1089 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
    1090   # Yippee, $ECHO works!
    1091   :
    1092 else
    1093   # Restart under the correct shell.
    1094   exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
    1095 fi
    1096 
    1097 if test "X[$]1" = X--fallback-echo; then
    1098   # used as fallback echo
    1099   shift
    1100   cat <<_LT_EOF
    1101 [$]*
    1102 _LT_EOF
    1103   exit 0
    1104 fi
    1105 
    1106 # The HP-UX ksh and POSIX shell print the target directory to stdout
    1107 # if CDPATH is set.
    1108 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    1109 
    1110 if test -z "$lt_ECHO"; then
    1111   if test "X${echo_test_string+set}" != Xset; then
    1112     # find a string as large as possible, as long as the shell can cope with it
    1113     for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
    1114       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    1115       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
    1116          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
    1117       then
    1118         break
    1119       fi
    1120     done
    1121   fi
    1122 
    1123   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
    1124      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
    1125      test "X$echo_testing_string" = "X$echo_test_string"; then
    1126     :
    1127   else
    1128     # The Solaris, AIX, and Digital Unix default echo programs unquote
    1129     # backslashes.  This makes it impossible to quote backslashes using
    1130     #   echo "$something" | sed 's/\\/\\\\/g'
    1131     #
    1132     # So, first we look for a working echo in the user's PATH.
    1133 
    1134     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    1135     for dir in $PATH /usr/ucb; do
    1136       IFS="$lt_save_ifs"
    1137       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
    1138          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
    1139          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
    1140          test "X$echo_testing_string" = "X$echo_test_string"; then
    1141         ECHO="$dir/echo"
    1142         break
    1143       fi
    1144     done
    1145     IFS="$lt_save_ifs"
    1146 
    1147     if test "X$ECHO" = Xecho; then
    1148       # We didn't find a better echo, so look for alternatives.
    1149       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
    1150          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
    1151          test "X$echo_testing_string" = "X$echo_test_string"; then
    1152         # This shell has a builtin print -r that does the trick.
    1153         ECHO='print -r'
    1154       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
    1155            test "X$CONFIG_SHELL" != X/bin/ksh; then
    1156         # If we have ksh, try running configure again with it.
    1157         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
    1158         export ORIGINAL_CONFIG_SHELL
    1159         CONFIG_SHELL=/bin/ksh
    1160         export CONFIG_SHELL
    1161         exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
    1162       else
    1163         # Try using printf.
    1164         ECHO='printf %s\n'
    1165         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
    1166            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
    1167            test "X$echo_testing_string" = "X$echo_test_string"; then
    1168           # Cool, printf works
    1169           :
    1170         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
    1171              test "X$echo_testing_string" = 'X\t' &&
    1172              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
    1173              test "X$echo_testing_string" = "X$echo_test_string"; then
    1174           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
    1175           export CONFIG_SHELL
    1176           SHELL="$CONFIG_SHELL"
    1177           export SHELL
    1178           ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
    1179         elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
    1180              test "X$echo_testing_string" = 'X\t' &&
    1181              echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
    1182              test "X$echo_testing_string" = "X$echo_test_string"; then
    1183           ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
    1184         else
    1185           # maybe with a smaller string...
    1186           prev=:
    1187 
    1188           for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
    1189             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
    1190             then
    1191               break
    1192             fi
    1193             prev="$cmd"
    1194           done
    1195 
    1196           if test "$prev" != 'sed 50q "[$]0"'; then
    1197             echo_test_string=`eval $prev`
    1198             export echo_test_string
    1199             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
    1200           else
    1201             # Oops.  We lost completely, so just stick with echo.
    1202             ECHO=echo
    1203           fi
    1204         fi
    1205       fi
    1206     fi
    1207   fi
    1208 fi
    1209 
    1210 # Copy echo and quote the copy suitably for passing to libtool from
    1211 # the Makefile, instead of quoting the original, which is used later.
    1212 lt_ECHO=$ECHO
    1213 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
    1214    lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
    1215 fi
    1216 
    1217 AC_SUBST(lt_ECHO)
    1218 ])
     1179m4_ifdef([_AS_DETECT_SUGGESTED],
     1180[_AS_DETECT_SUGGESTED([
     1181  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
     1182    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     1183    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
     1184    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
     1185    PATH=/empty FPATH=/empty; export PATH FPATH
     1186    test "X`printf %s $ECHO`" = "X$ECHO" \
     1187      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
     1188
    12191189_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
    1220 _LT_DECL([], [ECHO], [1],
    1221     [An echo program that does not interpret backslashes])
     1190_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
    12221191])# _LT_PROG_ECHO_BACKSLASH
    12231192
     1193
     1194# _LT_WITH_SYSROOT
     1195# ----------------
     1196AC_DEFUN([_LT_WITH_SYSROOT],
     1197[AC_MSG_CHECKING([for sysroot])
     1198AC_ARG_WITH([sysroot],
     1199[  --with-sysroot[=DIR] Search for dependent libraries within DIR
     1200                        (or the compiler's sysroot if not specified).],
     1201[], [with_sysroot=no])
     1202
     1203dnl lt_sysroot will always be passed unquoted.  We quote it here
     1204dnl in case the user passed a directory name.
     1205lt_sysroot=
     1206case ${with_sysroot} in #(
     1207 yes)
     1208   if test "$GCC" = yes; then
     1209     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
     1210   fi
     1211   ;; #(
     1212 /*)
     1213   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
     1214   ;; #(
     1215 no|'')
     1216   ;; #(
     1217 *)
     1218   AC_MSG_RESULT([${with_sysroot}])
     1219   AC_MSG_ERROR([The sysroot must be an absolute path.])
     1220   ;;
     1221esac
     1222
     1223 AC_MSG_RESULT([${lt_sysroot:-no}])
     1224_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
     1225[dependent libraries, and in which our libraries should be installed.])])
    12241226
    12251227# _LT_ENABLE_LOCK
     
    12511253*-*-irix6*)
    12521254  # Find out which ABI we are using.
    1253   echo '[#]line __oline__ "configure"' > conftest.$ac_ext
     1255  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
    12541256  if AC_TRY_EVAL(ac_compile); then
    12551257    if test "$lt_cv_prog_gnu_ld" = yes; then
     
    13691371
    13701372
     1373# _LT_PROG_AR
     1374# -----------
     1375m4_defun([_LT_PROG_AR],
     1376[AC_CHECK_TOOLS(AR, [ar], false)
     1377: ${AR=ar}
     1378: ${AR_FLAGS=cru}
     1379_LT_DECL([], [AR], [1], [The archiver])
     1380_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
     1381
     1382AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
     1383  [lt_cv_ar_at_file=no
     1384   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
     1385     [echo conftest.$ac_objext > conftest.lst
     1386      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
     1387      AC_TRY_EVAL([lt_ar_try])
     1388      if test "$ac_status" -eq 0; then
     1389        # Ensure the archiver fails upon bogus file names.
     1390        rm -f conftest.$ac_objext libconftest.a
     1391        AC_TRY_EVAL([lt_ar_try])
     1392        if test "$ac_status" -ne 0; then
     1393          lt_cv_ar_at_file=@
     1394        fi
     1395      fi
     1396      rm -f conftest.* libconftest.a
     1397     ])
     1398  ])
     1399
     1400if test "x$lt_cv_ar_at_file" = xno; then
     1401  archiver_list_spec=
     1402else
     1403  archiver_list_spec=$lt_cv_ar_at_file
     1404fi
     1405_LT_DECL([], [archiver_list_spec], [1],
     1406  [How to feed a file listing to the archiver])
     1407])# _LT_PROG_AR
     1408
     1409
    13711410# _LT_CMD_OLD_ARCHIVE
    13721411# -------------------
    13731412m4_defun([_LT_CMD_OLD_ARCHIVE],
    1374 [AC_CHECK_TOOL(AR, ar, false)
    1375 test -z "$AR" && AR=ar
    1376 test -z "$AR_FLAGS" && AR_FLAGS=cru
    1377 _LT_DECL([], [AR], [1], [The archiver])
    1378 _LT_DECL([], [AR_FLAGS], [1])
     1413[_LT_PROG_AR
    13791414
    13801415AC_CHECK_TOOL(STRIP, strip, :)
     
    14031438  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
    14041439fi
     1440
     1441case $host_os in
     1442  darwin*)
     1443    lock_old_archive_extraction=yes ;;
     1444  *)
     1445    lock_old_archive_extraction=no ;;
     1446esac
    14051447_LT_DECL([], [old_postinstall_cmds], [2])
    14061448_LT_DECL([], [old_postuninstall_cmds], [2])
    14071449_LT_TAGDECL([], [old_archive_cmds], [2],
    14081450    [Commands used to build an old-style archive])
     1451_LT_DECL([], [lock_old_archive_extraction], [0],
     1452    [Whether to use a lock for old archive extraction])
    14091453])# _LT_CMD_OLD_ARCHIVE
    14101454
     
    14311475   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    14321476   -e 's:$: $lt_compiler_flag:'`
    1433    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
     1477   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
    14341478   (eval "$lt_compile" 2>conftest.err)
    14351479   ac_status=$?
    14361480   cat conftest.err >&AS_MESSAGE_LOG_FD
    1437    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
     1481   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
    14381482   if (exit $ac_status) && test -s "$ac_outfile"; then
    14391483     # The compiler can only warn and ignore the option if not recognized
    14401484     # So say no if there are warnings other than the usual output.
    1441      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     1485     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
    14421486     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    14431487     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
     
    14791523       # Append any errors to the config.log.
    14801524       cat conftest.err 1>&AS_MESSAGE_LOG_FD
    1481        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
     1525       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
    14821526       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    14831527       if diff conftest.exp conftest.er2 >/dev/null; then
     
    15391583    # Instead, let's just punt: use the minimum linelength reported by
    15401584    # all of the supported platforms: 8192 (on NT/2K/XP).
     1585    lt_cv_sys_max_cmd_len=8192;
     1586    ;;
     1587
     1588  mint*)
     1589    # On MiNT this can take a long time and run out of memory.
    15411590    lt_cv_sys_max_cmd_len=8192;
    15421591    ;;
     
    16061655      # maximum length that is only half of the actual maximum length, but
    16071656      # we can't tell.
    1608       while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
    1609                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
     1657      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
     1658                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
    16101659              test $i != 17 # 1/2 MB should be enough
    16111660      do
     
    16581707  lt_status=$lt_dlunknown
    16591708  cat > conftest.$ac_ext <<_LT_EOF
    1660 [#line __oline__ "configure"
     1709[#line $LINENO "configure"
    16611710#include "confdefs.h"
    16621711
     
    16991748#endif
    17001749
    1701 void fnord() { int i=42;}
     1750/* When -fvisbility=hidden is used, assume the code has been annotated
     1751   correspondingly for the symbols needed.  */
     1752#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
     1753int fnord () __attribute__((visibility("default")));
     1754#endif
     1755
     1756int fnord () { return 42; }
    17021757int main ()
    17031758{
     
    17081763    {
    17091764      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
    1710       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
     1765      else
     1766        {
     1767          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
     1768          else puts (dlerror ());
     1769        }
    17111770      /* dlclose (self); */
    17121771    }
     
    18841943   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    18851944   -e 's:$: $lt_compiler_flag:'`
    1886    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
     1945   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
    18871946   (eval "$lt_compile" 2>out/conftest.err)
    18881947   ac_status=$?
    18891948   cat out/conftest.err >&AS_MESSAGE_LOG_FD
    1890    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
     1949   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
    18911950   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    18921951   then
    18931952     # The compiler can only warn and ignore the option if not recognized
    18941953     # So say no if there are warnings
    1895      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     1954     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
    18961955     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
    18971956     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     
    20522111m4_require([_LT_DECL_OBJDUMP])dnl
    20532112m4_require([_LT_DECL_SED])dnl
     2113m4_require([_LT_CHECK_SHELL_FEATURES])dnl
    20542114AC_MSG_CHECKING([dynamic linker characteristics])
    20552115m4_if([$1],
     
    20602120    *) lt_awk_arg="/^libraries:/" ;;
    20612121  esac
    2062   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    2063   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
     2122  case $host_os in
     2123    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
     2124    *) lt_sed_strip_eq="s,=/,/,g" ;;
     2125  esac
     2126  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
     2127  case $lt_search_path_spec in
     2128  *\;*)
    20642129    # if the path contains ";" then we assume it to be the separator
    20652130    # otherwise default to the standard path separator (i.e. ":") - it is
    20662131    # assumed that no part of a normal pathname contains ";" but that should
    20672132    # okay in the real world where ";" in dirpaths is itself problematic.
    2068     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
    2069   else
    2070     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    2071   fi
     2133    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
     2134    ;;
     2135  *)
     2136    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
     2137    ;;
     2138  esac
    20722139  # Ok, now we have the path, separated by spaces, we can step through it
    20732140  # and add multilib dir if necessary.
     
    20822149    fi
    20832150  done
    2084   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
     2151  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
    20852152BEGIN {RS=" "; FS="/|\n";} {
    20862153  lt_foo="";
     
    21022169  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
    21032170}'`
    2104   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
     2171  # AWK program above erroneously prepends '/' to C:/dos/paths
     2172  # for these hosts.
     2173  case $host_os in
     2174    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
     2175      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
     2176  esac
     2177  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
    21052178else
    21062179  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
     
    21902263    library_names_spec='$libname.ixlibrary $libname.a'
    21912264    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    2192     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'
     2265    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'
    21932266    ;;
    21942267  esac
     
    22212294  need_lib_prefix=no
    22222295
    2223   case $GCC,$host_os in
    2224   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
     2296  case $GCC,$cc_basename in
     2297  yes,*)
     2298    # gcc
    22252299    library_names_spec='$libname.dll.a'
    22262300    # DLL is installed to $(libdir)/../bin by postinstall_cmds
     
    22432317      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
    22442318      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
    2245       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
     2319m4_if([$1], [],[
     2320      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
    22462321      ;;
    22472322    mingw* | cegcc*)
    22482323      # MinGW DLLs use traditional 'lib' prefix
    22492324      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
    2250       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    2251       if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
    2252         # It is most probably a Windows format PATH printed by
    2253         # mingw gcc, but we are running on Cygwin. Gcc prints its search
    2254         # path with ; separators, and with drive letters. We can handle the
    2255         # drive letters (cygwin fileutils understands them), so leave them,
    2256         # especially as we might pass files found there to a mingw objdump,
    2257         # which wouldn't understand a cygwinified path. Ahh.
    2258         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    2259       else
    2260         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    2261       fi
    22622325      ;;
    22632326    pw32*)
     
    22662329      ;;
    22672330    esac
     2331    dynamic_linker='Win32 ld.exe'
    22682332    ;;
    22692333
     2334  *,cl*)
     2335    # Native MSVC
     2336    libname_spec='$name'
     2337    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
     2338    library_names_spec='${libname}.dll.lib'
     2339
     2340    case $build_os in
     2341    mingw*)
     2342      sys_lib_search_path_spec=
     2343      lt_save_ifs=$IFS
     2344      IFS=';'
     2345      for lt_path in $LIB
     2346      do
     2347        IFS=$lt_save_ifs
     2348        # Let DOS variable expansion print the short 8.3 style file name.
     2349        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
     2350        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
     2351      done
     2352      IFS=$lt_save_ifs
     2353      # Convert to MSYS style.
     2354      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
     2355      ;;
     2356    cygwin*)
     2357      # Convert to unix form, then to dos form, then back to unix form
     2358      # but this time dos style (no spaces!) so that the unix form looks
     2359      # like /cygdrive/c/PROGRA~1:/cygdr...
     2360      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
     2361      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
     2362      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
     2363      ;;
     2364    *)
     2365      sys_lib_search_path_spec="$LIB"
     2366      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
     2367        # It is most probably a Windows format PATH.
     2368        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
     2369      else
     2370        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
     2371      fi
     2372      # FIXME: find the short name or the path components, as spaces are
     2373      # common. (e.g. "Program Files" -> "PROGRA~1")
     2374      ;;
     2375    esac
     2376
     2377    # DLL is installed to $(libdir)/../bin by postinstall_cmds
     2378    postinstall_cmds='base_file=`basename \${file}`~
     2379      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
     2380      dldir=$destdir/`dirname \$dlpath`~
     2381      test -d \$dldir || mkdir -p \$dldir~
     2382      $install_prog $dir/$dlname \$dldir/$dlname'
     2383    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
     2384      dlpath=$dir/\$dldll~
     2385       $RM \$dlpath'
     2386    shlibpath_overrides_runpath=yes
     2387    dynamic_linker='Win32 link.exe'
     2388    ;;
     2389
    22702390  *)
     2391    # Assume MSVC wrapper
    22712392    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
     2393    dynamic_linker='Win32 ld.exe'
    22722394    ;;
    22732395  esac
    2274   dynamic_linker='Win32 ld.exe'
    22752396  # FIXME: first we should search . and the directory the executable is in
    22762397  shlibpath_var=PATH
     
    23562477  soname_spec='${libname}${release}${shared_ext}$major'
    23572478  shlibpath_var=LD_LIBRARY_PATH
     2479  hardcode_into_libs=yes
     2480  ;;
     2481
     2482haiku*)
     2483  version_type=linux
     2484  need_lib_prefix=no
     2485  need_version=no
     2486  dynamic_linker="$host_os runtime_loader"
     2487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
     2488  soname_spec='${libname}${release}${shared_ext}$major'
     2489  shlibpath_var=LIBRARY_PATH
     2490  shlibpath_overrides_runpath=yes
     2491  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
    23582492  hardcode_into_libs=yes
    23592493  ;;
     
    24012535    ;;
    24022536  esac
    2403   # HP-UX runs *really* slowly unless shared libraries are mode 555.
     2537  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
    24042538  postinstall_cmds='chmod 555 $lib'
     2539  # or fails outright, so override atomically:
     2540  install_override_mode=555
    24052541  ;;
    24062542
     
    24602596
    24612597# This must be Linux ELF.
    2462 linux* | k*bsd*-gnu)
     2598linux* | k*bsd*-gnu | kopensolaris*-gnu)
    24632599  version_type=linux
    24642600  need_lib_prefix=no
     
    24692605  shlibpath_var=LD_LIBRARY_PATH
    24702606  shlibpath_overrides_runpath=no
     2607
    24712608  # Some binutils ld are patched to set DT_RUNPATH
    2472   save_LDFLAGS=$LDFLAGS
    2473   save_libdir=$libdir
    2474   eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
    2475        LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
    2476   AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
    2477     [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
    2478        [shlibpath_overrides_runpath=yes])])
    2479   LDFLAGS=$save_LDFLAGS
    2480   libdir=$save_libdir
     2609  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
     2610    [lt_cv_shlibpath_overrides_runpath=no
     2611    save_LDFLAGS=$LDFLAGS
     2612    save_libdir=$libdir
     2613    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
     2614         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
     2615    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
     2616      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
     2617         [lt_cv_shlibpath_overrides_runpath=yes])])
     2618    LDFLAGS=$save_LDFLAGS
     2619    libdir=$save_libdir
     2620    ])
     2621  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
    24812622
    24822623  # This implies no fast_install, which is unacceptable.
     
    24872628  # Append ld.so.conf contents to the search path
    24882629  if test -f /etc/ld.so.conf; then
    2489     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' ' '`
     2630    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' ' '`
    24902631    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    24912632  fi
     
    27202861_LT_DECL([], [soname_spec], [1],
    27212862    [[The coded name of the library, if different from the real name]])
     2863_LT_DECL([], [install_override_mode], [1],
     2864    [Permission mode override for installation of shared libraries])
    27222865_LT_DECL([], [postinstall_cmds], [2],
    27232866    [Command to use after installation of a shared archive])
     
    28322975m4_require([_LT_DECL_SED])dnl
    28332976m4_require([_LT_DECL_EGREP])dnl
     2977m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
    28342978
    28352979AC_ARG_WITH([gnu-ld],
     
    29533097reload_cmds='$LD$reload_flag -o $output$reload_objs'
    29543098case $host_os in
     3099  cygwin* | mingw* | pw32* | cegcc*)
     3100    if test "$GCC" != yes; then
     3101      reload_cmds=false
     3102    fi
     3103    ;;
    29553104  darwin*)
    29563105    if test "$GCC" = yes; then
     
    29613110    ;;
    29623111esac
    2963 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
    2964 _LT_DECL([], [reload_cmds], [2])dnl
     3112_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
     3113_LT_TAGDECL([], [reload_cmds], [2])dnl
    29653114])# _LT_CMD_RELOAD
    29663115
     
    30143163  # func_win32_libid shell function, so use a weaker test based on 'objdump',
    30153164  # unless we find 'file', for example because we are cross-compiling.
    3016   if ( file / ) >/dev/null 2>&1; then
     3165  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
     3166  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    30173167    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    30183168    lt_cv_file_magic_cmd='func_win32_libid'
    30193169  else
    3020     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
     3170    # Keep this pattern in sync with the one in func_win32_libid.
     3171    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
    30213172    lt_cv_file_magic_cmd='$OBJDUMP -f'
    30223173  fi
    30233174  ;;
    30243175
    3025 cegcc)
     3176cegcc*)
    30263177  # use the weaker test based on 'objdump'. See mingw*.
    30273178  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
     
    30533204  ;;
    30543205
     3206haiku*)
     3207  lt_cv_deplibs_check_method=pass_all
     3208  ;;
     3209
    30553210hpux10.20* | hpux11*)
    30563211  lt_cv_file_magic_cmd=/usr/bin/file
     
    30613216    ;;
    30623217  hppa*64*)
    3063     [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]']
     3218    [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]']
    30643219    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    30653220    ;;
    30663221  *)
    3067     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
     3222    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
    30683223    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    30693224    ;;
     
    30873242
    30883243# This must be Linux ELF.
    3089 linux* | k*bsd*-gnu)
     3244linux* | k*bsd*-gnu | kopensolaris*-gnu)
    30903245  lt_cv_deplibs_check_method=pass_all
    30913246  ;;
     
    31653320esac
    31663321])
     3322
     3323file_magic_glob=
     3324want_nocaseglob=no
     3325if test "$build" = "$host"; then
     3326  case $host_os in
     3327  mingw* | pw32*)
     3328    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
     3329      want_nocaseglob=yes
     3330    else
     3331      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
     3332    fi
     3333    ;;
     3334  esac
     3335fi
     3336
    31673337file_magic_cmd=$lt_cv_file_magic_cmd
    31683338deplibs_check_method=$lt_cv_deplibs_check_method
     
    31723342    [Method to check whether dependent libraries are shared objects])
    31733343_LT_DECL([], [file_magic_cmd], [1],
    3174     [Command to use when deplibs_check_method == "file_magic"])
     3344    [Command to use when deplibs_check_method = "file_magic"])
     3345_LT_DECL([], [file_magic_glob], [1],
     3346    [How to find potential files when deplibs_check_method = "file_magic"])
     3347_LT_DECL([], [want_nocaseglob], [1],
     3348    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
    31753349])# _LT_CHECK_MAGIC_METHOD
    31763350
     
    32293403else
    32303404  # Didn't find any BSD compatible name lister, look for dumpbin.
    3231   AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
     3405  if test -n "$DUMPBIN"; then :
     3406    # Let the user override the test.
     3407  else
     3408    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
     3409    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
     3410    *COFF*)
     3411      DUMPBIN="$DUMPBIN -symbols"
     3412      ;;
     3413    *)
     3414      DUMPBIN=:
     3415      ;;
     3416    esac
     3417  fi
    32323418  AC_SUBST([DUMPBIN])
    32333419  if test "$DUMPBIN" != ":"; then
     
    32423428  [lt_cv_nm_interface="BSD nm"
    32433429  echo "int some_variable = 0;" > conftest.$ac_ext
    3244   (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
     3430  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
    32453431  (eval "$ac_compile" 2>conftest.err)
    32463432  cat conftest.err >&AS_MESSAGE_LOG_FD
    3247   (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
     3433  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
    32483434  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
    32493435  cat conftest.err >&AS_MESSAGE_LOG_FD
    3250   (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
     3436  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
    32513437  cat conftest.out >&AS_MESSAGE_LOG_FD
    32523438  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
     
    32623448dnl AC_DEFUN([AM_PROG_NM], [])
    32633449dnl AC_DEFUN([AC_PROG_NM], [])
     3450
     3451# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
     3452# --------------------------------
     3453# how to determine the name of the shared library
     3454# associated with a specific link library.
     3455#  -- PORTME fill in with the dynamic library characteristics
     3456m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
     3457[m4_require([_LT_DECL_EGREP])
     3458m4_require([_LT_DECL_OBJDUMP])
     3459m4_require([_LT_DECL_DLLTOOL])
     3460AC_CACHE_CHECK([how to associate runtime and link libraries],
     3461lt_cv_sharedlib_from_linklib_cmd,
     3462[lt_cv_sharedlib_from_linklib_cmd='unknown'
     3463
     3464case $host_os in
     3465cygwin* | mingw* | pw32* | cegcc*)
     3466  # two different shell functions defined in ltmain.sh
     3467  # decide which to use based on capabilities of $DLLTOOL
     3468  case `$DLLTOOL --help 2>&1` in
     3469  *--identify-strict*)
     3470    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
     3471    ;;
     3472  *)
     3473    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
     3474    ;;
     3475  esac
     3476  ;;
     3477*)
     3478  # fallback: assume linklib IS sharedlib
     3479  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
     3480  ;;
     3481esac
     3482])
     3483sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
     3484test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
     3485
     3486_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
     3487    [Command to associate shared and link libraries])
     3488])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
     3489
     3490
     3491# _LT_PATH_MANIFEST_TOOL
     3492# ----------------------
     3493# locate the manifest tool
     3494m4_defun([_LT_PATH_MANIFEST_TOOL],
     3495[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
     3496test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
     3497AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
     3498  [lt_cv_path_mainfest_tool=no
     3499  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
     3500  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
     3501  cat conftest.err >&AS_MESSAGE_LOG_FD
     3502  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
     3503    lt_cv_path_mainfest_tool=yes
     3504  fi
     3505  rm -f conftest*])
     3506if test "x$lt_cv_path_mainfest_tool" != xyes; then
     3507  MANIFEST_TOOL=:
     3508fi
     3509_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
     3510])# _LT_PATH_MANIFEST_TOOL
    32643511
    32653512
     
    32713518LIBM=
    32723519case $host in
    3273 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
     3520*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
    32743521  # These system don't have libm, or don't need it
    32753522  ;;
     
    32993546
    33003547if test "$GCC" = yes; then
    3301   _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
     3548  case $cc_basename in
     3549  nvcc*)
     3550    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
     3551  *)
     3552    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
     3553  esac
    33023554
    33033555  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
     
    33163568[AC_REQUIRE([AC_CANONICAL_HOST])dnl
    33173569AC_REQUIRE([AC_PROG_CC])dnl
     3570AC_REQUIRE([AC_PROG_AWK])dnl
    33183571AC_REQUIRE([LT_PATH_NM])dnl
    33193572AC_REQUIRE([LT_PATH_LD])dnl
     
    33833636
    33843637# Transform an extracted symbol line into symbol name and symbol address
    3385 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
    3386 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
     3638lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
     3639lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
    33873640
    33883641# Handle CRLF in mingw tool chain
     
    34203673    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
    34213674  fi
     3675  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
    34223676
    34233677  # Check to see that the pipe works correctly.
     
    34413695    # Now try to grab the symbols.
    34423696    nlist=conftest.nm
    3443     if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
     3697    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
    34443698      # Try sorting and uniquifying the output.
    34453699      if sort "$nlist" | uniq > "$nlist"T; then
     
    34533707        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
    34543708          cat <<_LT_EOF > conftest.$ac_ext
     3709/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
     3710#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
     3711/* DATA imports from DLLs on WIN32 con't be const, because runtime
     3712   relocations are performed -- see ld's documentation on pseudo-relocs.  */
     3713# define LT@&t@_DLSYM_CONST
     3714#elif defined(__osf__)
     3715/* This system does not cope well with relocations in const data.  */
     3716# define LT@&t@_DLSYM_CONST
     3717#else
     3718# define LT@&t@_DLSYM_CONST const
     3719#endif
     3720
    34553721#ifdef __cplusplus
    34563722extern "C" {
     
    34643730
    34653731/* The mapping between symbol names and symbols.  */
    3466 const struct {
     3732LT@&t@_DLSYM_CONST struct {
    34673733  const char *name;
    34683734  void       *address;
     
    34903756          # Now try linking the two files.
    34913757          mv conftest.$ac_objext conftstm.$ac_objext
    3492           lt_save_LIBS="$LIBS"
    3493           lt_save_CFLAGS="$CFLAGS"
     3758          lt_globsym_save_LIBS=$LIBS
     3759          lt_globsym_save_CFLAGS=$CFLAGS
    34943760          LIBS="conftstm.$ac_objext"
    34953761          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
     
    34973763            pipe_works=yes
    34983764          fi
    3499           LIBS="$lt_save_LIBS"
    3500           CFLAGS="$lt_save_CFLAGS"
     3765          LIBS=$lt_globsym_save_LIBS
     3766          CFLAGS=$lt_globsym_save_CFLAGS
    35013767        else
    35023768          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
     
    35313797fi
    35323798
     3799# Response file support.
     3800if test "$lt_cv_nm_interface" = "MS dumpbin"; then
     3801  nm_file_list_spec='@'
     3802elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
     3803  nm_file_list_spec='@'
     3804fi
     3805
    35333806_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
    35343807    [Take the output of nm and produce a listing of raw symbols and C names])
     
    35413814    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
    35423815    [Transform the output of nm in a C name address pair when lib prefix is needed])
     3816_LT_DECL([], [nm_file_list_spec], [1],
     3817    [Specify filename containing input files for $NM])
    35433818]) # _LT_CMD_GLOBAL_SYMBOLS
    35443819
     
    35523827_LT_TAGVAR(lt_prog_compiler_static, $1)=
    35533828
    3554 AC_MSG_CHECKING([for $compiler option to produce PIC])
    35553829m4_if([$1], [CXX], [
    35563830  # C++ specific cases for pic, static, wl, etc.
     
    36023876      # DJGPP does not support shared libraries at all
    36033877      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
     3878      ;;
     3879    haiku*)
     3880      # PIC is the default for Haiku.
     3881      # The "-static" flag exists, but is broken.
     3882      _LT_TAGVAR(lt_prog_compiler_static, $1)=
    36043883      ;;
    36053884    interix[[3-9]]*)
     
    36513930          ;;
    36523931        esac
     3932        ;;
     3933      mingw* | cygwin* | os2* | pw32* | cegcc*)
     3934        # This hack is so that the source file can tell whether it is being
     3935        # built for inclusion in a dll (and should export symbols for example).
     3936        m4_if([$1], [GCJ], [],
     3937          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
    36533938        ;;
    36543939      dgux*)
     
    37083993        esac
    37093994        ;;
    3710       linux* | k*bsd*-gnu)
     3995      linux* | k*bsd*-gnu | kopensolaris*-gnu)
    37113996        case $cc_basename in
    37123997          KCC*)
     
    37414026            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    37424027            ;;
    3743           xlc* | xlC*)
    3744             # IBM XL 8.0 on PPC
     4028          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
     4029            # IBM XL 8.0, 9.0 on PPC and BlueGene
    37454030            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    37464031            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
     
    38044089      solaris*)
    38054090        case $cc_basename in
    3806           CC*)
     4091          CC* | sunCC*)
    38074092            # Sun C++ 4.2, 5.x and Centerline C++
    38084093            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     
    39084193      ;;
    39094194
     4195    haiku*)
     4196      # PIC is the default for Haiku.
     4197      # The "-static" flag exists, but is broken.
     4198      _LT_TAGVAR(lt_prog_compiler_static, $1)=
     4199      ;;
     4200
    39104201    hpux*)
    39114202      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
     
    39484239    *)
    39494240      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
     4241      ;;
     4242    esac
     4243
     4244    case $cc_basename in
     4245    nvcc*) # Cuda Compiler Driver 2.2
     4246      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
     4247      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
    39504248      ;;
    39514249    esac
     
    39924290      ;;
    39934291
    3994     linux* | k*bsd*-gnu)
     4292    linux* | k*bsd*-gnu | kopensolaris*-gnu)
    39954293      case $cc_basename in
    39964294      # old Intel for x86_64 which still supported -KPIC.
     
    40134311        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
    40144312        ;;
    4015       pgcc* | pgf77* | pgf90* | pgf95*)
     4313      nagfor*)
     4314        # NAG Fortran compiler
     4315        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
     4316        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
     4317        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4318        ;;
     4319      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
    40164320        # Portland Group compilers (*not* the Pentium gcc compiler,
    40174321        # which looks to be a dead project)
     
    40254329        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    40264330        ;;
    4027       xl*)
    4028         # IBM XL C 8.0/Fortran 10.1 on PPC
     4331      xl* | bgxl* | bgf* | mpixl*)
     4332        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
    40294333        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    40304334        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
     
    40334337      *)
    40344338        case `$CC -V 2>&1 | sed 5q` in
     4339        *Sun\ F* | *Sun*Fortran*)
     4340          # Sun Fortran 8.3 passes all unrecognized flags to the linker
     4341          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     4342          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4343          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
     4344          ;;
    40354345        *Sun\ C*)
    40364346          # Sun C 5.9
     
    40394349          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    40404350          ;;
    4041         *Sun\ F*)
    4042           # Sun Fortran 8.3 passes all unrecognized flags to the linker
    4043           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    4044           _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    4045           _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
    4046           ;;
    40474351        esac
    40484352        ;;
     
    40754379      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    40764380      case $cc_basename in
    4077       f77* | f90* | f95*)
     4381      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
    40784382        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
    40794383      *)
     
    41324436    ;;
    41334437esac
    4134 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
    4135 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
    4136         [How to pass a linker flag through the compiler])
     4438
     4439AC_CACHE_CHECK([for $compiler option to produce PIC],
     4440  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
     4441  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
     4442_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
    41374443
    41384444#
     
    41534459        [Additional compiler flags for building library objects])
    41544460
     4461_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
     4462        [How to pass a linker flag through the compiler])
    41554463#
    41564464# Check to make sure the static flag actually works.
     
    41734481[AC_REQUIRE([LT_PATH_LD])dnl
    41744482AC_REQUIRE([LT_PATH_NM])dnl
     4483m4_require([_LT_PATH_MANIFEST_TOOL])dnl
    41754484m4_require([_LT_FILEUTILS_DEFAULTS])dnl
    41764485m4_require([_LT_DECL_EGREP])dnl
     
    41814490m4_if([$1], [CXX], [
    41824491  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     4492  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
    41834493  case $host_os in
    41844494  aix[[4-9]]*)
    41854495    # If we're using GNU nm, then we don't want the "-C" option.
    41864496    # -C means demangle to AIX nm, but means don't demangle with GNU nm
     4497    # Also, AIX nm treats weak defined symbols like other global defined
     4498    # symbols, whereas GNU nm marks them as "W".
    41874499    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
    4188       _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'
     4500      _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'
    41894501    else
    41904502      _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'
     
    41934505  pw32*)
    41944506    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
    4195   ;;
     4507    ;;
    41964508  cygwin* | mingw* | cegcc*)
    4197     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
    4198   ;;
     4509    case $cc_basename in
     4510    cl*) ;;
     4511    *)
     4512      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
     4513      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
     4514      ;;
     4515    esac
     4516    ;;
    41994517  *)
    42004518    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    4201   ;;
     4519    ;;
    42024520  esac
    4203   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
    42044521], [
    42054522  runpath_var=
     
    42644581
    42654582  _LT_TAGVAR(ld_shlibs, $1)=yes
     4583
     4584  # On some targets, GNU ld is compatible enough with the native linker
     4585  # that we're better off using the native interface for both.
     4586  lt_use_gnu_ld_interface=no
    42664587  if test "$with_gnu_ld" = yes; then
     4588    case $host_os in
     4589      aix*)
     4590        # The AIX port of GNU ld has always aspired to compatibility
     4591        # with the native linker.  However, as the warning in the GNU ld
     4592        # block says, versions before 2.19.5* couldn't really create working
     4593        # shared libraries, regardless of the interface used.
     4594        case `$LD -v 2>&1` in
     4595          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
     4596          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
     4597          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
     4598          *)
     4599            lt_use_gnu_ld_interface=yes
     4600            ;;
     4601        esac
     4602        ;;
     4603      *)
     4604        lt_use_gnu_ld_interface=yes
     4605        ;;
     4606    esac
     4607  fi
     4608
     4609  if test "$lt_use_gnu_ld_interface" = yes; then
    42674610    # If archive_cmds runs LD, not CC, wlarc should be empty
    42684611    wlarc='${wl}'
     
    42824625    supports_anon_versioning=no
    42834626    case `$LD -v 2>&1` in
     4627      *GNU\ gold*) supports_anon_versioning=yes ;;
    42844628      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
    42854629      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
     
    42974641        cat <<_LT_EOF 1>&2
    42984642
    4299 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
     4643*** Warning: the GNU linker, at least up to release 2.19, is reported
    43004644*** to be unable to reliably create shared libraries on AIX.
    43014645*** Therefore, libtool is disabling shared libraries support.  If you
    4302 *** really care for shared libraries, you may want to modify your PATH
    4303 *** so that a non-GNU linker is found, and then restart.
     4646*** really care for shared libraries, you may want to install binutils
     4647*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
     4648*** You will then need to restart the configuration process.
    43044649
    43054650_LT_EOF
     
    43374682      # as there is no search path for DLLs.
    43384683      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
     4684      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
    43394685      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
    43404686      _LT_TAGVAR(always_export_symbols, $1)=no
    43414687      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    4342       _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
     4688      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
     4689      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
    43434690
    43444691      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
     
    43584705      ;;
    43594706
     4707    haiku*)
     4708      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4709      _LT_TAGVAR(link_all_deplibs, $1)=yes
     4710      ;;
     4711
    43604712    interix[[3-9]]*)
    43614713      _LT_TAGVAR(hardcode_direct, $1)=no
     
    43734725      ;;
    43744726
    4375     gnu* | linux* | tpf* | k*bsd*-gnu)
     4727    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
    43764728      tmp_diet=no
    43774729      if test "$host_os" = linux-dietlibc; then
     
    43834735         && test "$tmp_diet" = no
    43844736      then
    4385         tmp_addflag=
     4737        tmp_addflag=' $pic_flag'
    43864738        tmp_sharedflag='-shared'
    43874739        case $cc_basename,$host_cpu in
    43884740        pgcc*)                          # Portland Group C compiler
    4389           _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'
     4741          _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'
    43904742          tmp_addflag=' $pic_flag'
    43914743          ;;
    4392         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
    4393           _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'
     4744        pgf77* | pgf90* | pgf95* | pgfortran*)
     4745                                        # Portland Group f77 and f90 compilers
     4746          _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'
    43944747          tmp_addflag=' $pic_flag -Mnomain' ;;
    43954748        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
     
    44024755          _LT_TAGVAR(whole_archive_flag_spec, $1)=
    44034756          tmp_sharedflag='--shared' ;;
    4404         xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
     4757        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
    44054758          tmp_sharedflag='-qmkshrobj'
    44064759          tmp_addflag= ;;
     4760        nvcc*)  # Cuda Compiler Driver 2.2
     4761          _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'
     4762          _LT_TAGVAR(compiler_needs_object, $1)=yes
     4763          ;;
    44074764        esac
    44084765        case `$CC -V 2>&1 | sed 5q` in
    44094766        *Sun\ C*)                       # Sun C 5.9
    4410           _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'
     4767          _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'
    44114768          _LT_TAGVAR(compiler_needs_object, $1)=yes
    44124769          tmp_sharedflag='-G' ;;
     
    44244781
    44254782        case $cc_basename in
    4426         xlf*)
     4783        xlf* | bgf* | bgxlf* | mpixlf*)
    44274784          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
    44284785          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
    44294786          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
    44304787          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
    4431           _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
     4788          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
    44324789          if test "x$supports_anon_versioning" = xyes; then
    44334790            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
    44344791              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    44354792              echo "local: *; };" >> $output_objdir/$libname.ver~
    4436               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
     4793              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
    44374794          fi
    44384795          ;;
     
    44484805        wlarc=
    44494806      else
    4450         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    4451         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     4807        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4808        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    44524809      fi
    44534810      ;;
     
    44674824_LT_EOF
    44684825      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
    4469         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    4470         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     4826        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4827        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    44714828      else
    44724829        _LT_TAGVAR(ld_shlibs, $1)=no
     
    45144871    *)
    45154872      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
    4516         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    4517         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     4873        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4874        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    45184875      else
    45194876        _LT_TAGVAR(ld_shlibs, $1)=no
     
    45554912        # If we're using GNU nm, then we don't want the "-C" option.
    45564913        # -C means demangle to AIX nm, but means don't demangle with GNU nm
     4914        # Also, AIX nm treats weak defined symbols like other global
     4915        # defined symbols, whereas GNU nm marks them as "W".
    45574916        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
    4558           _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'
     4917          _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'
    45594918        else
    45604919          _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'
     
    46435002        # Determine the default libpath from the value encoded in an
    46445003        # empty executable.
    4645         _LT_SYS_MODULE_PATH_AIX
     5004        _LT_SYS_MODULE_PATH_AIX([$1])
    46465005        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    4647         _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"
     5006        _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"
    46485007      else
    46495008        if test "$host_cpu" = ia64; then
     
    46545013         # Determine the default libpath from the value encoded in an
    46555014         # empty executable.
    4656          _LT_SYS_MODULE_PATH_AIX
     5015         _LT_SYS_MODULE_PATH_AIX([$1])
    46575016         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    46585017          # Warning - without using the other run time loading flags,
     
    46605019          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
    46615020          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
    4662           # Exported symbols can be pulled into shared objects from archives
    4663           _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
     5021          if test "$with_gnu_ld" = yes; then
     5022            # We only use this code for GNU lds that support --whole-archive.
     5023            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
     5024          else
     5025            # Exported symbols can be pulled into shared objects from archives
     5026            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
     5027          fi
    46645028          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
    46655029          # This is similar to how AIX traditionally builds its shared libraries.
     
    46935057      # hardcode_libdir_flag_spec is actually meaningless, as there is
    46945058      # no search path for DLLs.
    4695       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
    4696       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
    4697       # Tell ltmain to make .lib files, not .a files.
    4698       libext=lib
    4699       # Tell ltmain to make .dll files, not .so files.
    4700       shrext_cmds=".dll"
    4701       # FIXME: Setting linknames here is a bad hack.
    4702       _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
    4703       # The linker will automatically build a .lib file if we build a DLL.
    4704       _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
    4705       # FIXME: Should let the user specify the lib program.
    4706       _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
    4707       _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
    4708       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     5059      case $cc_basename in
     5060      cl*)
     5061        # Native MSVC
     5062        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
     5063        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     5064        _LT_TAGVAR(always_export_symbols, $1)=yes
     5065        _LT_TAGVAR(file_list_spec, $1)='@'
     5066        # Tell ltmain to make .lib files, not .a files.
     5067        libext=lib
     5068        # Tell ltmain to make .dll files, not .so files.
     5069        shrext_cmds=".dll"
     5070        # FIXME: Setting linknames here is a bad hack.
     5071        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
     5072        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     5073            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
     5074          else
     5075            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
     5076          fi~
     5077          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
     5078          linknames='
     5079        # The linker will not automatically build a static lib if we build a DLL.
     5080        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
     5081        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     5082        _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
     5083        # Don't use ranlib
     5084        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
     5085        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
     5086          lt_tool_outputfile="@TOOL_OUTPUT@"~
     5087          case $lt_outputfile in
     5088            *.exe|*.EXE) ;;
     5089            *)
     5090              lt_outputfile="$lt_outputfile.exe"
     5091              lt_tool_outputfile="$lt_tool_outputfile.exe"
     5092              ;;
     5093          esac~
     5094          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
     5095            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
     5096            $RM "$lt_outputfile.manifest";
     5097          fi'
     5098        ;;
     5099      *)
     5100        # Assume MSVC wrapper
     5101        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
     5102        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     5103        # Tell ltmain to make .lib files, not .a files.
     5104        libext=lib
     5105        # Tell ltmain to make .dll files, not .so files.
     5106        shrext_cmds=".dll"
     5107        # FIXME: Setting linknames here is a bad hack.
     5108        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
     5109        # The linker will automatically build a .lib file if we build a DLL.
     5110        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
     5111        # FIXME: Should let the user specify the lib program.
     5112        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
     5113        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     5114        ;;
     5115      esac
    47095116      ;;
    47105117
     
    47445151    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    47455152    freebsd* | dragonfly*)
    4746       _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
     5153      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    47475154      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    47485155      _LT_TAGVAR(hardcode_direct, $1)=yes
     
    47525159    hpux9*)
    47535160      if test "$GCC" = yes; then
    4754         _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
     5161        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    47555162      else
    47565163        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
     
    47675174
    47685175    hpux10*)
    4769       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    4770         _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     5176      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
     5177        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    47715178      else
    47725179        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     
    47865193
    47875194    hpux11*)
    4788       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
     5195      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
    47895196        case $host_cpu in
    47905197        hppa*64*)
     
    47925199          ;;
    47935200        ia64*)
    4794           _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
     5201          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    47955202          ;;
    47965203        *)
    4797           _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     5204          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    47985205          ;;
    47995206        esac
     
    48075214          ;;
    48085215        *)
    4809           _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     5216        m4_if($1, [], [
     5217          # Older versions of the 11.00 compiler do not understand -b yet
     5218          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
     5219          _LT_LINKER_OPTION([if $CC understands -b],
     5220            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
     5221            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
     5222            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
     5223          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
    48105224          ;;
    48115225        esac
     
    48355249    irix5* | irix6* | nonstopux*)
    48365250      if test "$GCC" = yes; then
    4837         _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'
     5251        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_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'
    48385252        # Try to use the -exported_symbol ld option, if it does not
    48395253        # work, assume that -exports_file does not work either and
    48405254        # implicitly export all symbols.
    4841         save_LDFLAGS="$LDFLAGS"
    4842         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
    4843         AC_LINK_IFELSE(
    4844           [AC_LANG_SOURCE(
    4845              [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
    4846                            [C++], [[int foo (void) { return 0; }]],
    4847                            [Fortran 77], [[
    4848        subroutine foo
    4849        end]],
    4850                            [Fortran], [[
    4851        subroutine foo
    4852        end]])])], [
    4853           _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'
    4854         ])
    4855         LDFLAGS="$save_LDFLAGS"
     5255        # This should be the same for all languages, so no per-tag cache variable.
     5256        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
     5257          [lt_cv_irix_exported_symbol],
     5258          [save_LDFLAGS="$LDFLAGS"
     5259           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
     5260           AC_LINK_IFELSE(
     5261             [AC_LANG_SOURCE(
     5262                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
     5263                              [C++], [[int foo (void) { return 0; }]],
     5264                              [Fortran 77], [[
     5265      subroutine foo
     5266      end]],
     5267                              [Fortran], [[
     5268      subroutine foo
     5269      end]])])],
     5270              [lt_cv_irix_exported_symbol=yes],
     5271              [lt_cv_irix_exported_symbol=no])
     5272           LDFLAGS="$save_LDFLAGS"])
     5273        if test "$lt_cv_irix_exported_symbol" = yes; then
     5274          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
     5275        fi
    48565276      else
    4857         _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'
    4858         _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'
     5277        _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'
     5278        _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'
    48595279      fi
    48605280      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
     
    49185338      _LT_TAGVAR(hardcode_minus_L, $1)=yes
    49195339      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
    4920       _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'
     5340      _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'
    49215341      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    49225342      ;;
     
    49255345      if test "$GCC" = yes; then
    49265346        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    4927         _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'
     5347        _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'
    49285348      else
    49295349        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    4930         _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'
     5350        _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'
    49315351      fi
    49325352      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
     
    49385358      if test "$GCC" = yes; then
    49395359        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    4940         _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'
     5360        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_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'
    49415361        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    49425362      else
    49435363        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    4944         _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'
     5364        _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'
    49455365        _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~
    4946         $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'
     5366        $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'
    49475367
    49485368        # Both c and cxx compiler support -rpath directly
     
    49575377      if test "$GCC" = yes; then
    49585378        wlarc='${wl}'
    4959         _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     5379        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    49605380        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
    4961           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
     5381          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
    49625382      else
    49635383        case `$CC -V 2>&1` in
     
    51355555      # systems, -lgcc has to come before -lc. If gcc already passes -lc
    51365556      # to ld, don't add -lc before -lgcc.
    5137       AC_MSG_CHECKING([whether -lc should be explicitly linked in])
    5138       $RM conftest*
    5139       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    5140 
    5141       if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
    5142         soname=conftest
    5143         lib=conftest
    5144         libobjs=conftest.$ac_objext
    5145         deplibs=
    5146         wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
    5147         pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
    5148         compiler_flags=-v
    5149         linker_flags=-v
    5150         verstring=
    5151         output_objdir=.
    5152         libname=conftest
    5153         lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
    5154         _LT_TAGVAR(allow_undefined_flag, $1)=
    5155         if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
    5156         then
    5157           _LT_TAGVAR(archive_cmds_need_lc, $1)=no
    5158         else
    5159           _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
    5160         fi
    5161         _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
    5162       else
    5163         cat conftest.err 1>&5
    5164       fi
    5165       $RM conftest*
    5166       AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
     5557      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
     5558        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
     5559        [$RM conftest*
     5560        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
     5561
     5562        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
     5563          soname=conftest
     5564          lib=conftest
     5565          libobjs=conftest.$ac_objext
     5566          deplibs=
     5567          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
     5568          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
     5569          compiler_flags=-v
     5570          linker_flags=-v
     5571          verstring=
     5572          output_objdir=.
     5573          libname=conftest
     5574          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
     5575          _LT_TAGVAR(allow_undefined_flag, $1)=
     5576          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
     5577          then
     5578            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
     5579          else
     5580            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
     5581          fi
     5582          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
     5583        else
     5584          cat conftest.err 1>&5
     5585        fi
     5586        $RM conftest*
     5587        ])
     5588      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
    51675589      ;;
    51685590    esac
     
    52295651_LT_TAGDECL([], [link_all_deplibs], [0],
    52305652    [Whether libtool must link a program against all its dependency libraries])
    5231 _LT_TAGDECL([], [fix_srcfile_path], [1],
    5232     [Fix the shell variable $srcfile for the compiler])
    52335653_LT_TAGDECL([], [always_export_symbols], [0],
    52345654    [Set to "yes" if exported symbols are required])
     
    52415661_LT_TAGDECL([], [prelink_cmds], [2],
    52425662    [Commands necessary for linking programs (against libraries) with templates])
     5663_LT_TAGDECL([], [postlink_cmds], [2],
     5664    [Commands necessary for finishing linking programs])
    52435665_LT_TAGDECL([], [file_list_spec], [1],
    52445666    [Specify filename containing input files])
     
    53305752
    53315753
    5332 # _LT_PROG_CXX
    5333 # ------------
    5334 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
    5335 # compiler, we have our own version here.
    5336 m4_defun([_LT_PROG_CXX],
    5337 [
    5338 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
    5339 AC_PROG_CXX
     5754# _LT_LANG_CXX_CONFIG([TAG])
     5755# --------------------------
     5756# Ensure that the configuration variables for a C++ compiler are suitably
     5757# defined.  These variables are subsequently used by _LT_CONFIG to write
     5758# the compiler configuration to `libtool'.
     5759m4_defun([_LT_LANG_CXX_CONFIG],
     5760[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
     5761m4_require([_LT_DECL_EGREP])dnl
     5762m4_require([_LT_PATH_MANIFEST_TOOL])dnl
    53405763if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    53415764    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     
    53455768  _lt_caught_CXX_error=yes
    53465769fi
    5347 popdef([AC_MSG_ERROR])
    5348 ])# _LT_PROG_CXX
    5349 
    5350 dnl aclocal-1.4 backwards compatibility:
    5351 dnl AC_DEFUN([_LT_PROG_CXX], [])
    5352 
    5353 
    5354 # _LT_LANG_CXX_CONFIG([TAG])
    5355 # --------------------------
    5356 # Ensure that the configuration variables for a C++ compiler are suitably
    5357 # defined.  These variables are subsequently used by _LT_CONFIG to write
    5358 # the compiler configuration to `libtool'.
    5359 m4_defun([_LT_LANG_CXX_CONFIG],
    5360 [AC_REQUIRE([_LT_PROG_CXX])dnl
    5361 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
    5362 m4_require([_LT_DECL_EGREP])dnl
    53635770
    53645771AC_LANG_PUSH(C++)
     
    53825789_LT_TAGVAR(link_all_deplibs, $1)=unknown
    53835790_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
     5791_LT_TAGVAR(reload_flag, $1)=$reload_flag
     5792_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
    53845793_LT_TAGVAR(no_undefined_flag, $1)=
    53855794_LT_TAGVAR(whole_archive_flag_spec, $1)=
     
    54135822  # Allow CC to be a program name with arguments.
    54145823  lt_save_CC=$CC
     5824  lt_save_CFLAGS=$CFLAGS
    54155825  lt_save_LD=$LD
    54165826  lt_save_GCC=$GCC
     
    54305840  test -z "${LDCXX+set}" || LD=$LDCXX
    54315841  CC=${CXX-"c++"}
     5842  CFLAGS=$CXXFLAGS
    54325843  compiler=$CC
    54335844  _LT_TAGVAR(compiler, $1)=$CC
     
    54515862      # archiving commands below assume that GNU ld is being used.
    54525863      if test "$with_gnu_ld" = yes; then
    5453         _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    5454         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     5864        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     5865        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    54555866
    54565867        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     
    54845895      # what "hidden" libraries, object files and flags are used when
    54855896      # linking a shared library.
    5486       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
     5897      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
    54875898
    54885899    else
     
    55936004          # Determine the default libpath from the value encoded in an empty
    55946005          # executable.
    5595           _LT_SYS_MODULE_PATH_AIX
     6006          _LT_SYS_MODULE_PATH_AIX([$1])
    55966007          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    55976008
    5598           _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"
     6009          _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"
    55996010        else
    56006011          if test "$host_cpu" = ia64; then
     
    56056016            # Determine the default libpath from the value encoded in an
    56066017            # empty executable.
    5607             _LT_SYS_MODULE_PATH_AIX
     6018            _LT_SYS_MODULE_PATH_AIX([$1])
    56086019            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    56096020            # Warning - without using the other run time loading flags,
     
    56116022            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
    56126023            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
    5613             # Exported symbols can be pulled into shared objects from archives
    5614             _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
     6024            if test "$with_gnu_ld" = yes; then
     6025              # We only use this code for GNU lds that support --whole-archive.
     6026              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
     6027            else
     6028              # Exported symbols can be pulled into shared objects from archives
     6029              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
     6030            fi
    56156031            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
    56166032            # This is similar to how AIX traditionally builds its shared
     
    56426058
    56436059      cygwin* | mingw* | pw32* | cegcc*)
    5644         # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
    5645         # as there is no search path for DLLs.
    5646         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    5647         _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
    5648         _LT_TAGVAR(always_export_symbols, $1)=no
    5649         _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    5650 
    5651         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
    5652           _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    5653           # If the export-symbols file already is a .def file (1st line
    5654           # is EXPORTS), use it as is; otherwise, prepend...
    5655           _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
    5656             cp $export_symbols $output_objdir/$soname.def;
    5657           else
    5658             echo EXPORTS > $output_objdir/$soname.def;
    5659             cat $export_symbols >> $output_objdir/$soname.def;
    5660           fi~
    5661           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    5662         else
    5663           _LT_TAGVAR(ld_shlibs, $1)=no
    5664         fi
    5665         ;;
     6060        case $GXX,$cc_basename in
     6061        ,cl* | no,cl*)
     6062          # Native MSVC
     6063          # hardcode_libdir_flag_spec is actually meaningless, as there is
     6064          # no search path for DLLs.
     6065          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
     6066          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     6067          _LT_TAGVAR(always_export_symbols, $1)=yes
     6068          _LT_TAGVAR(file_list_spec, $1)='@'
     6069          # Tell ltmain to make .lib files, not .a files.
     6070          libext=lib
     6071          # Tell ltmain to make .dll files, not .so files.
     6072          shrext_cmds=".dll"
     6073          # FIXME: Setting linknames here is a bad hack.
     6074          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
     6075          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     6076              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
     6077            else
     6078              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
     6079            fi~
     6080            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
     6081            linknames='
     6082          # The linker will not automatically build a static lib if we build a DLL.
     6083          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
     6084          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     6085          # Don't use ranlib
     6086          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
     6087          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
     6088            lt_tool_outputfile="@TOOL_OUTPUT@"~
     6089            case $lt_outputfile in
     6090              *.exe|*.EXE) ;;
     6091              *)
     6092                lt_outputfile="$lt_outputfile.exe"
     6093                lt_tool_outputfile="$lt_tool_outputfile.exe"
     6094                ;;
     6095            esac~
     6096            func_to_tool_file "$lt_outputfile"~
     6097            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
     6098              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
     6099              $RM "$lt_outputfile.manifest";
     6100            fi'
     6101          ;;
     6102        *)
     6103          # g++
     6104          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
     6105          # as there is no search path for DLLs.
     6106          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
     6107          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
     6108          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     6109          _LT_TAGVAR(always_export_symbols, $1)=no
     6110          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     6111
     6112          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
     6113            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
     6114            # If the export-symbols file already is a .def file (1st line
     6115            # is EXPORTS), use it as is; otherwise, prepend...
     6116            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     6117              cp $export_symbols $output_objdir/$soname.def;
     6118            else
     6119              echo EXPORTS > $output_objdir/$soname.def;
     6120              cat $export_symbols >> $output_objdir/$soname.def;
     6121            fi~
     6122            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
     6123          else
     6124            _LT_TAGVAR(ld_shlibs, $1)=no
     6125          fi
     6126          ;;
     6127        esac
     6128        ;;
    56666129      darwin* | rhapsody*)
    56676130        _LT_DARWIN_LINKER_FEATURES($1)
     
    57056168        ;;
    57066169
     6170      haiku*)
     6171        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6172        _LT_TAGVAR(link_all_deplibs, $1)=yes
     6173        ;;
     6174
    57076175      hpux9*)
    57086176        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     
    57296197            # from the output so that they don't get included in the library
    57306198            # dependencies.
    5731             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'
     6199            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"'
    57326200            ;;
    57336201          *)
    57346202            if test "$GXX" = yes; then
    5735               _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
     6203              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    57366204            else
    57376205              # FIXME: insert proper C++ library support
     
    57946262            # from the output so that they don't get included in the library
    57956263            # dependencies.
    5796             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'
     6264            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"'
    57976265            ;;
    57986266          *)
     
    58046272                    ;;
    58056273                  ia64*)
    5806                     _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6274                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    58076275                    ;;
    58086276                  *)
    5809                     _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6277                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    58106278                    ;;
    58116279                esac
     
    58376305          CC*)
    58386306            # SGI C++
    5839             _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'
     6307            _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'
    58406308
    58416309            # Archives containing C++ object files must be created using
     
    58486316            if test "$GXX" = yes; then
    58496317              if test "$with_gnu_ld" = no; then
    5850                 _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'
     6318                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -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'
    58516319              else
    5852                 _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'
     6320                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -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'
    58536321              fi
    58546322            fi
     
    58616329        ;;
    58626330
    5863       linux* | k*bsd*-gnu)
     6331      linux* | k*bsd*-gnu | kopensolaris*-gnu)
    58646332        case $cc_basename in
    58656333          KCC*)
     
    58796347            # from the output so that they don't get included in the library
    58806348            # dependencies.
    5881             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'
     6349            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"'
    58826350
    58836351            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     
    59166384            # Portland Group C++ compiler
    59176385            case `$CC -V` in
    5918             *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
     6386            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
    59196387              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
    59206388                rm -rf $tpldir~
    59216389                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
    5922                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
     6390                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
    59236391              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
    59246392                rm -rf $tpldir~
    59256393                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
    5926                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
     6394                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
    59276395                $RANLIB $oldlib'
    59286396              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
    59296397                rm -rf $tpldir~
    59306398                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
    5931                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
     6399                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
    59326400              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
    59336401                rm -rf $tpldir~
    59346402                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
    5935                 $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'
     6403                $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'
    59366404              ;;
    5937             *) # Version 6 will use weak symbols
     6405            *) # Version 6 and above use weak symbols
    59386406              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
    59396407              _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'
     
    59436411            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
    59446412            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    5945             _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'
     6413            _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'
    59466414            ;;
    59476415          cxx*)
     
    59626430            # from the output so that they don't get included in the library
    59636431            # dependencies.
    5964             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'
     6432            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'
    59656433            ;;
    5966           xl*)
     6434          xl* | mpixl* | bgxl*)
    59676435            # IBM XL 8.0 on PPC, with GNU ld
    59686436            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     
    59846452              _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'
    59856453              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    5986               _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'
     6454              _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'
    59876455              _LT_TAGVAR(compiler_needs_object, $1)=yes
    59886456
     
    59906458              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
    59916459              # would be better.
    5992               output_verbose_link_cmd='echo'
     6460              output_verbose_link_cmd='func_echo_all'
    59936461
    59946462              # Archives containing C++ object files must be created using
     
    60596527            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    60606528          fi
    6061           output_verbose_link_cmd=echo
     6529          output_verbose_link_cmd=func_echo_all
    60626530        else
    60636531          _LT_TAGVAR(ld_shlibs, $1)=no
     
    60946562              osf3*)
    60956563                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    6096                 _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'
     6564                _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'
    60976565                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    60986566                ;;
    60996567              *)
    61006568                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    6101                 _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'
     6569                _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'
    61026570                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
    61036571                  echo "-hidden">> $lib.exp~
    6104                   $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~
     6572                  $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~
    61056573                  $RM $lib.exp'
    61066574                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
     
    61186586            # from the output so that they don't get included in the library
    61196587            # dependencies.
    6120             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'
     6588            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"'
    61216589            ;;
    61226590          *)
     
    61256593              case $host in
    61266594                osf3*)
    6127                   _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'
     6595                  _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'
    61286596                  ;;
    61296597                *)
    6130                   _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'
     6598                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -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'
    61316599                  ;;
    61326600              esac
     
    61386606              # what "hidden" libraries, object files and flags are used when
    61396607              # linking a shared library.
    6140               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
     6608              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
    61416609
    61426610            else
     
    61746642      solaris*)
    61756643        case $cc_basename in
    6176           CC*)
     6644          CC* | sunCC*)
    61776645            # Sun C++ 4.2, 5.x and Centerline C++
    61786646            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
     
    61956663            _LT_TAGVAR(link_all_deplibs, $1)=yes
    61966664
    6197             output_verbose_link_cmd='echo'
     6665            output_verbose_link_cmd='func_echo_all'
    61986666
    61996667            # Archives containing C++ object files must be created using
     
    62156683              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
    62166684              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
    6217                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
     6685                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    62186686                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
    6219                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
     6687                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
    62206688
    62216689                # Commands to make compiler produce verbose output that lists
    62226690                # what "hidden" libraries, object files and flags are used when
    62236691                # linking a shared library.
    6224                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
     6692                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
    62256693              else
    62266694                # g++ 2.7 appears to require `-G' NOT `-shared' on this
     
    62336701                # what "hidden" libraries, object files and flags are used when
    62346702                # linking a shared library.
    6235                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
     6703                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
    62366704              fi
    62376705
     
    62876755            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    62886756            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6757            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
     6758              '"$_LT_TAGVAR(old_archive_cmds, $1)"
     6759            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
     6760              '"$_LT_TAGVAR(reload_cmds, $1)"
    62896761            ;;
    62906762          *)
     
    63426814
    63436815  CC=$lt_save_CC
     6816  CFLAGS=$lt_save_CFLAGS
    63446817  LDCXX=$LD
    63456818  LD=$lt_save_LD
     
    63566829
    63576830
     6831# _LT_FUNC_STRIPNAME_CNF
     6832# ----------------------
     6833# func_stripname_cnf prefix suffix name
     6834# strip PREFIX and SUFFIX off of NAME.
     6835# PREFIX and SUFFIX must not contain globbing or regex special
     6836# characters, hashes, percent signs, but SUFFIX may contain a leading
     6837# dot (in which case that matches only a dot).
     6838#
     6839# This function is identical to the (non-XSI) version of func_stripname,
     6840# except this one can be used by m4 code that may be executed by configure,
     6841# rather than the libtool script.
     6842m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
     6843AC_REQUIRE([_LT_DECL_SED])
     6844AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
     6845func_stripname_cnf ()
     6846{
     6847  case ${2} in
     6848  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
     6849  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
     6850  esac
     6851} # func_stripname_cnf
     6852])# _LT_FUNC_STRIPNAME_CNF
     6853
    63586854# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
    63596855# ---------------------------------
     
    63646860m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
    63656861[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
     6862AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
    63666863# Dependencies to place before and after the object being linked:
    63676864_LT_TAGVAR(predep_objects, $1)=
     
    64146911_LT_EOF
    64156912])
     6913
     6914_lt_libdeps_save_CFLAGS=$CFLAGS
     6915case "$CC $CFLAGS " in #(
     6916*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
     6917*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
     6918esac
     6919
    64166920dnl Parse the compiler output and extract the necessary
    64176921dnl objects, libraries and library flags.
     
    64256929
    64266930  for p in `eval "$output_verbose_link_cmd"`; do
    6427     case $p in
     6931    case ${prev}${p} in
    64286932
    64296933    -L* | -R* | -l*)
     
    64346938         prev=$p
    64356939         continue
    6436        else
    6437          prev=
    64386940       fi
    64396941
     6942       # Expand the sysroot to ease extracting the directories later.
     6943       if test -z "$prev"; then
     6944         case $p in
     6945         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
     6946         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
     6947         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
     6948         esac
     6949       fi
     6950       case $p in
     6951       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
     6952       esac
    64406953       if test "$pre_test_object_deps_done" = no; then
    6441          case $p in
    6442          -L* | -R*)
     6954         case ${prev} in
     6955         -L | -R)
    64436956           # Internal compiler library paths should come after those
    64446957           # provided the user.  The postdeps already come after the
     
    64606973         fi
    64616974       fi
     6975       prev=
    64626976       ;;
    64636977
     6978    *.lto.$objext) ;; # Ignore GCC LTO objects
    64646979    *.$objext)
    64656980       # This assumes that the test object file only shows up
     
    64977012
    64987013$RM -f confest.$objext
     7014CFLAGS=$_lt_libdeps_save_CFLAGS
    64997015
    65007016# PORTME: override above test on systems where it is broken
     
    65337049solaris*)
    65347050  case $cc_basename in
    6535   CC*)
     7051  CC* | sunCC*)
    65367052    # The more standards-conforming stlport4 library is
    65377053    # incompatible with the Cstd library. Avoid specifying
     
    65777093
    65787094
    6579 # _LT_PROG_F77
    6580 # ------------
    6581 # Since AC_PROG_F77 is broken, in that it returns the empty string
    6582 # if there is no fortran compiler, we have our own version here.
    6583 m4_defun([_LT_PROG_F77],
    6584 [
    6585 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
    6586 AC_PROG_F77
    6587 if test -z "$F77" || test "X$F77" = "Xno"; then
    6588   _lt_disable_F77=yes
    6589 fi
    6590 popdef([AC_MSG_ERROR])
    6591 ])# _LT_PROG_F77
    6592 
    6593 dnl aclocal-1.4 backwards compatibility:
    6594 dnl AC_DEFUN([_LT_PROG_F77], [])
    6595 
    6596 
    65977095# _LT_LANG_F77_CONFIG([TAG])
    65987096# --------------------------
     
    66017099# to write the compiler configuration to `libtool'.
    66027100m4_defun([_LT_LANG_F77_CONFIG],
    6603 [AC_REQUIRE([_LT_PROG_F77])dnl
    6604 AC_LANG_PUSH(Fortran 77)
     7101[AC_LANG_PUSH(Fortran 77)
     7102if test -z "$F77" || test "X$F77" = "Xno"; then
     7103  _lt_disable_F77=yes
     7104fi
    66057105
    66067106_LT_TAGVAR(archive_cmds_need_lc, $1)=no
     
    66217121_LT_TAGVAR(link_all_deplibs, $1)=unknown
    66227122_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
     7123_LT_TAGVAR(reload_flag, $1)=$reload_flag
     7124_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
    66237125_LT_TAGVAR(no_undefined_flag, $1)=
    66247126_LT_TAGVAR(whole_archive_flag_spec, $1)=
     
    66607162  lt_save_CC="$CC"
    66617163  lt_save_GCC=$GCC
     7164  lt_save_CFLAGS=$CFLAGS
    66627165  CC=${F77-"f77"}
     7166  CFLAGS=$FFLAGS
    66637167  compiler=$CC
    66647168  _LT_TAGVAR(compiler, $1)=$CC
     
    67147218  GCC=$lt_save_GCC
    67157219  CC="$lt_save_CC"
     7220  CFLAGS="$lt_save_CFLAGS"
    67167221fi # test "$_lt_disable_F77" != yes
    67177222
    67187223AC_LANG_POP
    67197224])# _LT_LANG_F77_CONFIG
    6720 
    6721 
    6722 # _LT_PROG_FC
    6723 # -----------
    6724 # Since AC_PROG_FC is broken, in that it returns the empty string
    6725 # if there is no fortran compiler, we have our own version here.
    6726 m4_defun([_LT_PROG_FC],
    6727 [
    6728 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
    6729 AC_PROG_FC
    6730 if test -z "$FC" || test "X$FC" = "Xno"; then
    6731   _lt_disable_FC=yes
    6732 fi
    6733 popdef([AC_MSG_ERROR])
    6734 ])# _LT_PROG_FC
    6735 
    6736 dnl aclocal-1.4 backwards compatibility:
    6737 dnl AC_DEFUN([_LT_PROG_FC], [])
    67387225
    67397226
     
    67447231# to write the compiler configuration to `libtool'.
    67457232m4_defun([_LT_LANG_FC_CONFIG],
    6746 [AC_REQUIRE([_LT_PROG_FC])dnl
    6747 AC_LANG_PUSH(Fortran)
     7233[AC_LANG_PUSH(Fortran)
     7234
     7235if test -z "$FC" || test "X$FC" = "Xno"; then
     7236  _lt_disable_FC=yes
     7237fi
    67487238
    67497239_LT_TAGVAR(archive_cmds_need_lc, $1)=no
     
    67647254_LT_TAGVAR(link_all_deplibs, $1)=unknown
    67657255_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
     7256_LT_TAGVAR(reload_flag, $1)=$reload_flag
     7257_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
    67667258_LT_TAGVAR(no_undefined_flag, $1)=
    67677259_LT_TAGVAR(whole_archive_flag_spec, $1)=
     
    68037295  lt_save_CC="$CC"
    68047296  lt_save_GCC=$GCC
     7297  lt_save_CFLAGS=$CFLAGS
    68057298  CC=${FC-"f95"}
     7299  CFLAGS=$FCFLAGS
    68067300  compiler=$CC
    68077301  GCC=$ac_cv_fc_compiler_gnu
     
    68597353
    68607354  GCC=$lt_save_GCC
    6861   CC="$lt_save_CC"
     7355  CC=$lt_save_CC
     7356  CFLAGS=$lt_save_CFLAGS
    68627357fi # test "$_lt_disable_FC" != yes
    68637358
     
    68967391
    68977392# Allow CC to be a program name with arguments.
    6898 lt_save_CC="$CC"
     7393lt_save_CC=$CC
     7394lt_save_CFLAGS=$CFLAGS
    68997395lt_save_GCC=$GCC
    69007396GCC=yes
    69017397CC=${GCJ-"gcj"}
     7398CFLAGS=$GCJFLAGS
    69027399compiler=$CC
    69037400_LT_TAGVAR(compiler, $1)=$CC
     
    69097406
    69107407_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
     7408_LT_TAGVAR(reload_flag, $1)=$reload_flag
     7409_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
    69117410
    69127411if test -n "$compiler"; then
     
    69247423
    69257424GCC=$lt_save_GCC
    6926 CC="$lt_save_CC"
     7425CC=$lt_save_CC
     7426CFLAGS=$lt_save_CFLAGS
    69277427])# _LT_LANG_GCJ_CONFIG
    69287428
     
    69597459# Allow CC to be a program name with arguments.
    69607460lt_save_CC="$CC"
     7461lt_save_CFLAGS=$CFLAGS
    69617462lt_save_GCC=$GCC
    69627463GCC=
    69637464CC=${RC-"windres"}
     7465CFLAGS=
    69647466compiler=$CC
    69657467_LT_TAGVAR(compiler, $1)=$CC
     
    69747476GCC=$lt_save_GCC
    69757477AC_LANG_RESTORE
    6976 CC="$lt_save_CC"
     7478CC=$lt_save_CC
     7479CFLAGS=$lt_save_CFLAGS
    69777480])# _LT_LANG_RC_CONFIG
    69787481
     
    70337536])
    70347537
     7538# _LT_DECL_DLLTOOL
     7539# ----------------
     7540# Ensure DLLTOOL variable is set.
     7541m4_defun([_LT_DECL_DLLTOOL],
     7542[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
     7543test -z "$DLLTOOL" && DLLTOOL=dlltool
     7544_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
     7545AC_SUBST([DLLTOOL])
     7546])
    70357547
    70367548# _LT_DECL_SED
     
    71247636xsi_shell=no
    71257637( _lt_dummy="a/b/c"
    7126   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
    7127       = c,a/b,, \
     7638  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
     7639      = c,a/b,b/c, \
    71287640    && eval 'test $(( 1 + 1 )) -eq 2 \
    71297641    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
     
    71647676
    71657677
    7166 # _LT_PROG_XSI_SHELLFNS
    7167 # ---------------------
    7168 # Bourne and XSI compatible variants of some useful shell functions.
    7169 m4_defun([_LT_PROG_XSI_SHELLFNS],
    7170 [case $xsi_shell in
    7171   yes)
    7172     cat << \_LT_EOF >> "$cfgfile"
    7173 
    7174 # func_dirname file append nondir_replacement
    7175 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
    7176 # otherwise set result to NONDIR_REPLACEMENT.
    7177 func_dirname ()
    7178 {
    7179   case ${1} in
    7180     */*) func_dirname_result="${1%/*}${2}" ;;
    7181     *  ) func_dirname_result="${3}" ;;
    7182   esac
    7183 }
    7184 
    7185 # func_basename file
    7186 func_basename ()
    7187 {
    7188   func_basename_result="${1##*/}"
    7189 }
    7190 
    7191 # func_dirname_and_basename file append nondir_replacement
    7192 # perform func_basename and func_dirname in a single function
    7193 # call:
    7194 #   dirname:  Compute the dirname of FILE.  If nonempty,
    7195 #             add APPEND to the result, otherwise set result
    7196 #             to NONDIR_REPLACEMENT.
    7197 #             value returned in "$func_dirname_result"
    7198 #   basename: Compute filename of FILE.
    7199 #             value retuned in "$func_basename_result"
    7200 # Implementation must be kept synchronized with func_dirname
    7201 # and func_basename. For efficiency, we do not delegate to
    7202 # those functions but instead duplicate the functionality here.
    7203 func_dirname_and_basename ()
    7204 {
    7205   case ${1} in
    7206     */*) func_dirname_result="${1%/*}${2}" ;;
    7207     *  ) func_dirname_result="${3}" ;;
    7208   esac
    7209   func_basename_result="${1##*/}"
    7210 }
    7211 
    7212 # func_stripname prefix suffix name
    7213 # strip PREFIX and SUFFIX off of NAME.
    7214 # PREFIX and SUFFIX must not contain globbing or regex special
    7215 # characters, hashes, percent signs, but SUFFIX may contain a leading
    7216 # dot (in which case that matches only a dot).
    7217 func_stripname ()
    7218 {
    7219   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
    7220   # positional parameters, so assign one to ordinary parameter first.
    7221   func_stripname_result=${3}
    7222   func_stripname_result=${func_stripname_result#"${1}"}
    7223   func_stripname_result=${func_stripname_result%"${2}"}
    7224 }
    7225 
    7226 # func_opt_split
    7227 func_opt_split ()
    7228 {
    7229   func_opt_split_opt=${1%%=*}
    7230   func_opt_split_arg=${1#*=}
    7231 }
    7232 
    7233 # func_lo2o object
    7234 func_lo2o ()
    7235 {
    7236   case ${1} in
    7237     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
    7238     *)    func_lo2o_result=${1} ;;
    7239   esac
    7240 }
    7241 
    7242 # func_xform libobj-or-source
    7243 func_xform ()
    7244 {
    7245   func_xform_result=${1%.*}.lo
    7246 }
    7247 
    7248 # func_arith arithmetic-term...
    7249 func_arith ()
    7250 {
    7251   func_arith_result=$(( $[*] ))
    7252 }
    7253 
    7254 # func_len string
    7255 # STRING may not start with a hyphen.
    7256 func_len ()
    7257 {
    7258   func_len_result=${#1}
    7259 }
    7260 
    7261 _LT_EOF
     7678# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
     7679# ------------------------------------------------------
     7680# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
     7681# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
     7682m4_defun([_LT_PROG_FUNCTION_REPLACE],
     7683[dnl {
     7684sed -e '/^$1 ()$/,/^} # $1 /c\
     7685$1 ()\
     7686{\
     7687m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
     7688} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
     7689  && mv -f "$cfgfile.tmp" "$cfgfile" \
     7690    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     7691test 0 -eq $? || _lt_function_replace_fail=:
     7692])
     7693
     7694
     7695# _LT_PROG_REPLACE_SHELLFNS
     7696# -------------------------
     7697# Replace existing portable implementations of several shell functions with
     7698# equivalent extended shell implementations where those features are available..
     7699m4_defun([_LT_PROG_REPLACE_SHELLFNS],
     7700[if test x"$xsi_shell" = xyes; then
     7701  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
     7702    case ${1} in
     7703      */*) func_dirname_result="${1%/*}${2}" ;;
     7704      *  ) func_dirname_result="${3}" ;;
     7705    esac])
     7706
     7707  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
     7708    func_basename_result="${1##*/}"])
     7709
     7710  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
     7711    case ${1} in
     7712      */*) func_dirname_result="${1%/*}${2}" ;;
     7713      *  ) func_dirname_result="${3}" ;;
     7714    esac
     7715    func_basename_result="${1##*/}"])
     7716
     7717  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
     7718    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
     7719    # positional parameters, so assign one to ordinary parameter first.
     7720    func_stripname_result=${3}
     7721    func_stripname_result=${func_stripname_result#"${1}"}
     7722    func_stripname_result=${func_stripname_result%"${2}"}])
     7723
     7724  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
     7725    func_split_long_opt_name=${1%%=*}
     7726    func_split_long_opt_arg=${1#*=}])
     7727
     7728  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
     7729    func_split_short_opt_arg=${1#??}
     7730    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
     7731
     7732  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
     7733    case ${1} in
     7734      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
     7735      *)    func_lo2o_result=${1} ;;
     7736    esac])
     7737
     7738  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
     7739
     7740  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
     7741
     7742  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
     7743fi
     7744
     7745if test x"$lt_shell_append" = xyes; then
     7746  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
     7747
     7748  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
     7749    func_quote_for_eval "${2}"
     7750dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
     7751    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
     7752
     7753  # Save a `func_append' function call where possible by direct use of '+='
     7754  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
     7755    && mv -f "$cfgfile.tmp" "$cfgfile" \
     7756      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     7757  test 0 -eq $? || _lt_function_replace_fail=:
     7758else
     7759  # Save a `func_append' function call even when '+=' is not available
     7760  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
     7761    && mv -f "$cfgfile.tmp" "$cfgfile" \
     7762      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     7763  test 0 -eq $? || _lt_function_replace_fail=:
     7764fi
     7765
     7766if test x"$_lt_function_replace_fail" = x":"; then
     7767  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
     7768fi
     7769])
     7770
     7771# _LT_PATH_CONVERSION_FUNCTIONS
     7772# -----------------------------
     7773# Determine which file name conversion functions should be used by
     7774# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
     7775# for certain cross-compile configurations and native mingw.
     7776m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
     7777[AC_REQUIRE([AC_CANONICAL_HOST])dnl
     7778AC_REQUIRE([AC_CANONICAL_BUILD])dnl
     7779AC_MSG_CHECKING([how to convert $build file names to $host format])
     7780AC_CACHE_VAL(lt_cv_to_host_file_cmd,
     7781[case $host in
     7782  *-*-mingw* )
     7783    case $build in
     7784      *-*-mingw* ) # actually msys
     7785        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
     7786        ;;
     7787      *-*-cygwin* )
     7788        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
     7789        ;;
     7790      * ) # otherwise, assume *nix
     7791        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
     7792        ;;
     7793    esac
    72627794    ;;
    7263   *) # Bourne compatible functions.
    7264     cat << \_LT_EOF >> "$cfgfile"
    7265 
    7266 # func_dirname file append nondir_replacement
    7267 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
    7268 # otherwise set result to NONDIR_REPLACEMENT.
    7269 func_dirname ()
    7270 {
    7271   # Extract subdirectory from the argument.
    7272   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
    7273   if test "X$func_dirname_result" = "X${1}"; then
    7274     func_dirname_result="${3}"
    7275   else
    7276     func_dirname_result="$func_dirname_result${2}"
    7277   fi
    7278 }
    7279 
    7280 # func_basename file
    7281 func_basename ()
    7282 {
    7283   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
    7284 }
    7285 
    7286 dnl func_dirname_and_basename
    7287 dnl A portable version of this function is already defined in general.m4sh
    7288 dnl so there is no need for it here.
    7289 
    7290 # func_stripname prefix suffix name
    7291 # strip PREFIX and SUFFIX off of NAME.
    7292 # PREFIX and SUFFIX must not contain globbing or regex special
    7293 # characters, hashes, percent signs, but SUFFIX may contain a leading
    7294 # dot (in which case that matches only a dot).
    7295 # func_strip_suffix prefix name
    7296 func_stripname ()
    7297 {
    7298   case ${2} in
    7299     .*) func_stripname_result=`$ECHO "X${3}" \
    7300            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
    7301     *)  func_stripname_result=`$ECHO "X${3}" \
    7302            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
    7303   esac
    7304 }
    7305 
    7306 # sed scripts:
    7307 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
    7308 my_sed_long_arg='1s/^-[[^=]]*=//'
    7309 
    7310 # func_opt_split
    7311 func_opt_split ()
    7312 {
    7313   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
    7314   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
    7315 }
    7316 
    7317 # func_lo2o object
    7318 func_lo2o ()
    7319 {
    7320   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
    7321 }
    7322 
    7323 # func_xform libobj-or-source
    7324 func_xform ()
    7325 {
    7326   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
    7327 }
    7328 
    7329 # func_arith arithmetic-term...
    7330 func_arith ()
    7331 {
    7332   func_arith_result=`expr "$[@]"`
    7333 }
    7334 
    7335 # func_len string
    7336 # STRING may not start with a hyphen.
    7337 func_len ()
    7338 {
    7339   func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
    7340 }
    7341 
    7342 _LT_EOF
     7795  *-*-cygwin* )
     7796    case $build in
     7797      *-*-mingw* ) # actually msys
     7798        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
     7799        ;;
     7800      *-*-cygwin* )
     7801        lt_cv_to_host_file_cmd=func_convert_file_noop
     7802        ;;
     7803      * ) # otherwise, assume *nix
     7804        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
     7805        ;;
     7806    esac
     7807    ;;
     7808  * ) # unhandled hosts (and "normal" native builds)
     7809    lt_cv_to_host_file_cmd=func_convert_file_noop
     7810    ;;
    73437811esac
    7344 
    7345 case $lt_shell_append in
    7346   yes)
    7347     cat << \_LT_EOF >> "$cfgfile"
    7348 
    7349 # func_append var value
    7350 # Append VALUE to the end of shell variable VAR.
    7351 func_append ()
    7352 {
    7353   eval "$[1]+=\$[2]"
    7354 }
    7355 _LT_EOF
     7812])
     7813to_host_file_cmd=$lt_cv_to_host_file_cmd
     7814AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
     7815_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
     7816         [0], [convert $build file names to $host format])dnl
     7817
     7818AC_MSG_CHECKING([how to convert $build file names to toolchain format])
     7819AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
     7820[#assume ordinary cross tools, or native build.
     7821lt_cv_to_tool_file_cmd=func_convert_file_noop
     7822case $host in
     7823  *-*-mingw* )
     7824    case $build in
     7825      *-*-mingw* ) # actually msys
     7826        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
     7827        ;;
     7828    esac
    73567829    ;;
    7357   *)
    7358     cat << \_LT_EOF >> "$cfgfile"
    7359 
    7360 # func_append var value
    7361 # Append VALUE to the end of shell variable VAR.
    7362 func_append ()
    7363 {
    7364   eval "$[1]=\$$[1]\$[2]"
    7365 }
    7366 
    7367 _LT_EOF
    7368     ;;
    7369   esac
     7830esac
    73707831])
     7832to_tool_file_cmd=$lt_cv_to_tool_file_cmd
     7833AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
     7834_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
     7835         [0], [convert $build files to toolchain format])dnl
     7836])# _LT_PATH_CONVERSION_FUNCTIONS
    73717837
    73727838# Helper functions for option handling.                    -*- Autoconf -*-
    73737839#
    7374 #   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
     7840#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
     7841#   Inc.
    73757842#   Written by Gary V. Vaughan, 2004
    73767843#
     
    73797846# modifications, as long as this notice is preserved.
    73807847
    7381 # serial 6 ltoptions.m4
     7848# serial 7 ltoptions.m4
    73827849
    73837850# This is to help aclocal find these macros, as it can't see m4_define.
     
    74947961
    74957962case $host in
    7496 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
     7963*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
    74977964  AC_CHECK_TOOL(AS, as, false)
    74987965  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
     
    75027969
    75037970test -z "$AS" && AS=as
    7504 _LT_DECL([], [AS],      [0], [Assembler program])dnl
     7971_LT_DECL([], [AS],      [1], [Assembler program])dnl
    75057972
    75067973test -z "$DLLTOOL" && DLLTOOL=dlltool
    7507 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
     7974_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
    75087975
    75097976test -z "$OBJDUMP" && OBJDUMP=objdump
    7510 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
     7977_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
    75117978])# win32-dll
    75127979
     
    78668333# modifications, as long as this notice is preserved.
    78678334
    7868 # Generated from ltversion.in.
    7869 
    7870 # serial 3018 ltversion.m4
     8335# @configure_input@
     8336
     8337# serial 3293 ltversion.m4
    78718338# This file is part of GNU Libtool
    78728339
    7873 m4_define([LT_PACKAGE_VERSION], [2.2.6b])
    7874 m4_define([LT_PACKAGE_REVISION], [1.3018])
     8340m4_define([LT_PACKAGE_VERSION], [2.4])
     8341m4_define([LT_PACKAGE_REVISION], [1.3293])
    78758342
    78768343AC_DEFUN([LTVERSION_VERSION],
    7877 [macro_version='2.2.6b'
    7878 macro_revision='1.3018'
     8344[macro_version='2.4'
     8345macro_revision='1.3293'
    78798346_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
    78808347_LT_DECL(, macro_revision, 0)
     
    78838350# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
    78848351#
    7885 #   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
     8352#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
    78868353#   Written by Scott James Remnant, 2004.
    78878354#
     
    78908357# modifications, as long as this notice is preserved.
    78918358
    7892 # serial 4 lt~obsolete.m4
     8359# serial 5 lt~obsolete.m4
    78938360
    78948361# These exist entirely to fool aclocal when bootstrapping libtool.
     
    79608427m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
    79618428m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
    7962 m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
    79638429m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
    79648430m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
     
    79738439m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
    79748440m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
     8441m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
     8442m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
     8443m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
     8444m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
     8445m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
     8446m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
     8447m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
    79758448
    79768449# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
  • trunk/autoconf/ltmain.sh

    r209 r289  
    1 # Generated from ltmain.m4sh.
    2 
    3 # ltmain.sh (GNU libtool) 2.2.6b
     1
     2# libtool (GNU libtool) 2.4
    43# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    54
    6 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
     5# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
     6# 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
    77# This is free software; see the source for copying conditions.  There is NO
    88# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     
    3333# Provide generalized library-building support services.
    3434#
    35 #     --config             show all configuration variables
    36 #     --debug              enable verbose shell tracing
    37 # -n, --dry-run            display commands without modifying any files
    38 #     --features           display basic configuration information and exit
    39 #     --mode=MODE          use operation mode MODE
    40 #     --preserve-dup-deps  don't remove duplicate dependency libraries
    41 #     --quiet, --silent    don't print informational messages
    42 #     --tag=TAG            use configuration variables from tag TAG
    43 # -v, --verbose            print informational messages (default)
    44 #     --version            print version information
    45 # -h, --help               print short or long help message
     35#       --config             show all configuration variables
     36#       --debug              enable verbose shell tracing
     37#   -n, --dry-run            display commands without modifying any files
     38#       --features           display basic configuration information and exit
     39#       --mode=MODE          use operation mode MODE
     40#       --preserve-dup-deps  don't remove duplicate dependency libraries
     41#       --quiet, --silent    don't print informational messages
     42#       --no-quiet, --no-silent
     43#                            print informational messages (default)
     44#       --tag=TAG            use configuration variables from tag TAG
     45#   -v, --verbose            print more informational messages than default
     46#       --no-verbose         don't print the extra informational messages
     47#       --version            print version information
     48#   -h, --help, --help-all   print short, long, or detailed help message
    4649#
    4750# MODE must be one of the following:
    4851#
    49 #       clean              remove files from the build directory
    50 #       compile            compile a source file into a libtool object
    51 #       execute            automatically set library path, then run a program
    52 #       finish             complete the installation of libtool libraries
    53 #       install            install libraries or executables
    54 #       link               create a library or an executable
    55 #       uninstall          remove libraries from an installed directory
     52#         clean              remove files from the build directory
     53#         compile            compile a source file into a libtool object
     54#         execute            automatically set library path, then run a program
     55#         finish             complete the installation of libtool libraries
     56#         install            install libraries or executables
     57#         link               create a library or an executable
     58#         uninstall          remove libraries from an installed directory
    5659#
    57 # MODE-ARGS vary depending on the MODE.
     60# MODE-ARGS vary depending on the MODE.  When passed as first option,
     61# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
    5862# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
    5963#
     
    6165# include the following information:
    6266#
    63 #       host-triplet:   $host
    64 #       shell:          $SHELL
    65 #       compiler:               $LTCC
    66 #       compiler flags:         $LTCFLAGS
    67 #       linker:         $LD (gnu? $with_gnu_ld)
    68 #       $progname:              (GNU libtool) 2.2.6b
    69 #       automake:               $automake_version
    70 #       autoconf:               $autoconf_version
     67#         host-triplet: $host
     68#         shell:                $SHELL
     69#         compiler:             $LTCC
     70#         compiler flags:               $LTCFLAGS
     71#         linker:               $LD (gnu? $with_gnu_ld)
     72#         $progname:    (GNU libtool) 2.4
     73#         automake:     $automake_version
     74#         autoconf:     $autoconf_version
    7175#
    7276# Report bugs to <bug-libtool@gnu.org>.
    73 
    74 PROGRAM=ltmain.sh
     77# GNU libtool home page: <http://www.gnu.org/software/libtool/>.
     78# General help using GNU software: <http://www.gnu.org/gethelp/>.
     79
     80PROGRAM=libtool
    7581PACKAGE=libtool
    76 VERSION=2.2.6b
     82VERSION=2.4
    7783TIMESTAMP=""
    78 package_revision=1.3018
     84package_revision=1.3293
    7985
    8086# Be Bourne compatible
     
    9298DUALCASE=1; export DUALCASE # for MKS sh
    9399
     100# A function that is used when there is no print builtin or printf.
     101func_fallback_echo ()
     102{
     103  eval 'cat <<_LTECHO_EOF
     104$1
     105_LTECHO_EOF'
     106}
     107
    94108# NLS nuisances: We save the old values to restore during execute mode.
    95 # Only set LANG and LC_ALL to C if already set.
    96 # These must not be set unconditionally because not all systems understand
    97 # e.g. LANG=C (notably SCO).
    98109lt_user_locale=
    99110lt_safe_locale=
     
    108119        fi"
    109120done
     121LC_ALL=C
     122LANGUAGE=C
     123export LANGUAGE LC_ALL
    110124
    111125$lt_unset CDPATH
    112126
    113127
     128# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
     129# is ksh but when the shell is invoked as "sh" and the current value of
     130# the _XPG environment variable is not equal to 1 (one), the special
     131# positional parameter $0, within a function call, is the name of the
     132# function.
     133progpath="$0"
    114134
    115135
    116136
    117137: ${CP="cp -f"}
    118 : ${ECHO="echo"}
    119 : ${EGREP="/usr/bin/grep -E"}
    120 : ${FGREP="/usr/bin/grep -F"}
    121 : ${GREP="/usr/bin/grep"}
     138test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
     139: ${EGREP="grep -E"}
     140: ${FGREP="grep -F"}
     141: ${GREP="grep"}
    122142: ${LN_S="ln -s"}
    123143: ${MAKE="make"}
     
    125145: ${MV="mv -f"}
    126146: ${RM="rm -f"}
    127 : ${SED="/usr/bin/sed"}
     147: ${SED="sed"}
    128148: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
    129149: ${Xsed="$SED -e 1s/^X//"}
     
    144164dirname="s,/[^/]*$,,"
    145165basename="s,^.*/,,"
     166
     167# func_dirname file append nondir_replacement
     168# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
     169# otherwise set result to NONDIR_REPLACEMENT.
     170func_dirname ()
     171{
     172    func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
     173    if test "X$func_dirname_result" = "X${1}"; then
     174      func_dirname_result="${3}"
     175    else
     176      func_dirname_result="$func_dirname_result${2}"
     177    fi
     178} # func_dirname may be replaced by extended shell implementation
     179
     180
     181# func_basename file
     182func_basename ()
     183{
     184    func_basename_result=`$ECHO "${1}" | $SED "$basename"`
     185} # func_basename may be replaced by extended shell implementation
     186
    146187
    147188# func_dirname_and_basename file append nondir_replacement
     
    159200func_dirname_and_basename ()
    160201{
    161   # Extract subdirectory from the argument.
    162   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
    163   if test "X$func_dirname_result" = "X${1}"; then
    164     func_dirname_result="${3}"
    165   else
    166     func_dirname_result="$func_dirname_result${2}"
     202    # Extract subdirectory from the argument.
     203    func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
     204    if test "X$func_dirname_result" = "X${1}"; then
     205      func_dirname_result="${3}"
     206    else
     207      func_dirname_result="$func_dirname_result${2}"
     208    fi
     209    func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
     210} # func_dirname_and_basename may be replaced by extended shell implementation
     211
     212
     213# func_stripname prefix suffix name
     214# strip PREFIX and SUFFIX off of NAME.
     215# PREFIX and SUFFIX must not contain globbing or regex special
     216# characters, hashes, percent signs, but SUFFIX may contain a leading
     217# dot (in which case that matches only a dot).
     218# func_strip_suffix prefix name
     219func_stripname ()
     220{
     221    case ${2} in
     222      .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
     223      *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
     224    esac
     225} # func_stripname may be replaced by extended shell implementation
     226
     227
     228# These SED scripts presuppose an absolute path with a trailing slash.
     229pathcar='s,^/\([^/]*\).*$,\1,'
     230pathcdr='s,^/[^/]*,,'
     231removedotparts=':dotsl
     232                s@/\./@/@g
     233                t dotsl
     234                s,/\.$,/,'
     235collapseslashes='s@/\{1,\}@/@g'
     236finalslash='s,/*$,/,'
     237
     238# func_normal_abspath PATH
     239# Remove doubled-up and trailing slashes, "." path components,
     240# and cancel out any ".." path components in PATH after making
     241# it an absolute path.
     242#             value returned in "$func_normal_abspath_result"
     243func_normal_abspath ()
     244{
     245  # Start from root dir and reassemble the path.
     246  func_normal_abspath_result=
     247  func_normal_abspath_tpath=$1
     248  func_normal_abspath_altnamespace=
     249  case $func_normal_abspath_tpath in
     250    "")
     251      # Empty path, that just means $cwd.
     252      func_stripname '' '/' "`pwd`"
     253      func_normal_abspath_result=$func_stripname_result
     254      return
     255    ;;
     256    # The next three entries are used to spot a run of precisely
     257    # two leading slashes without using negated character classes;
     258    # we take advantage of case's first-match behaviour.
     259    ///*)
     260      # Unusual form of absolute path, do nothing.
     261    ;;
     262    //*)
     263      # Not necessarily an ordinary path; POSIX reserves leading '//'
     264      # and for example Cygwin uses it to access remote file shares
     265      # over CIFS/SMB, so we conserve a leading double slash if found.
     266      func_normal_abspath_altnamespace=/
     267    ;;
     268    /*)
     269      # Absolute path, do nothing.
     270    ;;
     271    *)
     272      # Relative path, prepend $cwd.
     273      func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
     274    ;;
     275  esac
     276  # Cancel out all the simple stuff to save iterations.  We also want
     277  # the path to end with a slash for ease of parsing, so make sure
     278  # there is one (and only one) here.
     279  func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
     280        -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
     281  while :; do
     282    # Processed it all yet?
     283    if test "$func_normal_abspath_tpath" = / ; then
     284      # If we ascended to the root using ".." the result may be empty now.
     285      if test -z "$func_normal_abspath_result" ; then
     286        func_normal_abspath_result=/
     287      fi
     288      break
     289    fi
     290    func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
     291        -e "$pathcar"`
     292    func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
     293        -e "$pathcdr"`
     294    # Figure out what to do with it
     295    case $func_normal_abspath_tcomponent in
     296      "")
     297        # Trailing empty path component, ignore it.
     298      ;;
     299      ..)
     300        # Parent dir; strip last assembled component from result.
     301        func_dirname "$func_normal_abspath_result"
     302        func_normal_abspath_result=$func_dirname_result
     303      ;;
     304      *)
     305        # Actual path component, append it.
     306        func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
     307      ;;
     308    esac
     309  done
     310  # Restore leading double-slash if one was found on entry.
     311  func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
     312}
     313
     314# func_relative_path SRCDIR DSTDIR
     315# generates a relative path from SRCDIR to DSTDIR, with a trailing
     316# slash if non-empty, suitable for immediately appending a filename
     317# without needing to append a separator.
     318#             value returned in "$func_relative_path_result"
     319func_relative_path ()
     320{
     321  func_relative_path_result=
     322  func_normal_abspath "$1"
     323  func_relative_path_tlibdir=$func_normal_abspath_result
     324  func_normal_abspath "$2"
     325  func_relative_path_tbindir=$func_normal_abspath_result
     326
     327  # Ascend the tree starting from libdir
     328  while :; do
     329    # check if we have found a prefix of bindir
     330    case $func_relative_path_tbindir in
     331      $func_relative_path_tlibdir)
     332        # found an exact match
     333        func_relative_path_tcancelled=
     334        break
     335        ;;
     336      $func_relative_path_tlibdir*)
     337        # found a matching prefix
     338        func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
     339        func_relative_path_tcancelled=$func_stripname_result
     340        if test -z "$func_relative_path_result"; then
     341          func_relative_path_result=.
     342        fi
     343        break
     344        ;;
     345      *)
     346        func_dirname $func_relative_path_tlibdir
     347        func_relative_path_tlibdir=${func_dirname_result}
     348        if test "x$func_relative_path_tlibdir" = x ; then
     349          # Have to descend all the way to the root!
     350          func_relative_path_result=../$func_relative_path_result
     351          func_relative_path_tcancelled=$func_relative_path_tbindir
     352          break
     353        fi
     354        func_relative_path_result=../$func_relative_path_result
     355        ;;
     356    esac
     357  done
     358
     359  # Now calculate path; take care to avoid doubling-up slashes.
     360  func_stripname '' '/' "$func_relative_path_result"
     361  func_relative_path_result=$func_stripname_result
     362  func_stripname '/' '/' "$func_relative_path_tcancelled"
     363  if test "x$func_stripname_result" != x ; then
     364    func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
    167365  fi
    168   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
    169 }
    170 
    171 # Generated shell functions inserted here.
    172 
    173 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
    174 # is ksh but when the shell is invoked as "sh" and the current value of
    175 # the _XPG environment variable is not equal to 1 (one), the special
    176 # positional parameter $0, within a function call, is the name of the
    177 # function.
    178 progpath="$0"
     366
     367  # Normalisation. If bindir is libdir, return empty string,
     368  # else relative path ending with a slash; either way, target
     369  # file name can be directly appended.
     370  if test ! -z "$func_relative_path_result"; then
     371    func_stripname './' '' "$func_relative_path_result/"
     372    func_relative_path_result=$func_stripname_result
     373  fi
     374}
    179375
    180376# The name of this program:
    181 # In the unlikely event $progname began with a '-', it would play havoc with
    182 # func_echo (imagine progname=-n), so we prepend ./ in that case:
    183377func_dirname_and_basename "$progpath"
    184378progname=$func_basename_result
    185 case $progname in
    186   -*) progname=./$progname ;;
    187 esac
    188379
    189380# Make sure we have an absolute path for reexecution:
     
    216407double_quote_subst='s/\(["`\\]\)/\\\1/g'
    217408
     409# Sed substitution that turns a string into a regex matching for the
     410# string literally.
     411sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
     412
     413# Sed substitution that converts a w32 file name or path
     414# which contains forward slashes, into one that contains
     415# (escaped) backslashes.  A very naive implementation.
     416lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
     417
    218418# Re-`\' parameter expansions in output of double_quote_subst that were
    219419# `\'-ed in input to the same.  If an odd number of `\' preceded a '$'
     
    244444func_echo ()
    245445{
    246     $ECHO "$progname${mode+: }$mode: $*"
     446    $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
    247447}
    248448
     
    259459}
    260460
     461# func_echo_all arg...
     462# Invoke $ECHO with all args, space-separated.
     463func_echo_all ()
     464{
     465    $ECHO "$*"
     466}
     467
    261468# func_error arg...
    262469# Echo program name prefixed message to standard error.
    263470func_error ()
    264471{
    265     $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
     472    $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
    266473}
    267474
     
    270477func_warning ()
    271478{
    272     $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
     479    $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
    273480
    274481    # bash bug again:
     
    327534
    328535        # ...otherwise throw away the child directory and loop
    329         my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
     536        my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
    330537      done
    331       my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
     538      my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
    332539
    333540      save_mkdir_p_IFS="$IFS"; IFS=':'
     
    379586    fi
    380587
    381     $ECHO "X$my_tmpdir" | $Xsed
     588    $ECHO "$my_tmpdir"
    382589}
    383590
     
    393600    case $1 in
    394601      *[\\\`\"\$]*)
    395         func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
     602        func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
    396603      *)
    397604        func_quote_for_eval_unquoted_result="$1" ;;
     
    420627    case $1 in
    421628      *[\\\`\"]*)
    422         my_arg=`$ECHO "X$1" | $Xsed \
     629        my_arg=`$ECHO "$1" | $SED \
    423630            -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
    424631      *)
     
    489696}
    490697
    491 
    492 
     698# func_tr_sh
     699# Turn $1 into a string suitable for a shell variable name.
     700# Result is stored in $func_tr_sh_result.  All characters
     701# not in the set a-zA-Z0-9_ are replaced with '_'. Further,
     702# if $1 begins with a digit, a '_' is prepended as well.
     703func_tr_sh ()
     704{
     705  case $1 in
     706  [0-9]* | *[!a-zA-Z0-9_]*)
     707    func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
     708    ;;
     709  * )
     710    func_tr_sh_result=$1
     711    ;;
     712  esac
     713}
    493714
    494715
     
    497718func_version ()
    498719{
    499     $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
     720    $opt_debug
     721
     722    $SED -n '/(C)/!b go
     723        :more
     724        /\./!{
     725          N
     726          s/\n# / /
     727          b more
     728        }
     729        :go
     730        /^# '$PROGRAM' (GNU /,/# warranty; / {
    500731        s/^# //
    501732        s/^# *$//
     
    510741func_usage ()
    511742{
    512     $SED -n '/^# Usage:/,/# -h/ {
     743    $opt_debug
     744
     745    $SED -n '/^# Usage:/,/^#  *.*--help/ {
    513746        s/^# //
    514747        s/^# *$//
     
    516749        p
    517750    }' < "$progpath"
    518     $ECHO
     751    echo
    519752    $ECHO "run \`$progname --help | more' for full usage"
    520753    exit $?
    521754}
    522755
    523 # func_help
    524 # Echo long help message to standard output and exit.
     756# func_help [NOEXIT]
     757# Echo long help message to standard output and exit,
     758# unless 'noexit' is passed as argument.
    525759func_help ()
    526760{
     761    $opt_debug
     762
    527763    $SED -n '/^# Usage:/,/# Report bugs to/ {
     764        :print
    528765        s/^# //
    529766        s/^# *$//
     
    538775        s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
    539776        p
    540      }' < "$progpath"
    541     exit $?
     777        d
     778     }
     779     /^# .* home page:/b print
     780     /^# General help using/b print
     781     ' < "$progpath"
     782    ret=$?
     783    if test -z "$1"; then
     784      exit $ret
     785    fi
    542786}
    543787
     
    547791func_missing_arg ()
    548792{
    549     func_error "missing argument for $1"
     793    $opt_debug
     794
     795    func_error "missing argument for $1."
    550796    exit_cmd=exit
    551797}
    552798
     799
     800# func_split_short_opt shortopt
     801# Set func_split_short_opt_name and func_split_short_opt_arg shell
     802# variables after splitting SHORTOPT after the 2nd character.
     803func_split_short_opt ()
     804{
     805    my_sed_short_opt='1s/^\(..\).*$/\1/;q'
     806    my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
     807
     808    func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
     809    func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
     810} # func_split_short_opt may be replaced by extended shell implementation
     811
     812
     813# func_split_long_opt longopt
     814# Set func_split_long_opt_name and func_split_long_opt_arg shell
     815# variables after splitting LONGOPT at the `=' sign.
     816func_split_long_opt ()
     817{
     818    my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
     819    my_sed_long_arg='1s/^--[^=]*=//'
     820
     821    func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
     822    func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
     823} # func_split_long_opt may be replaced by extended shell implementation
     824
    553825exit_cmd=:
    554826
     
    556828
    557829
    558 
    559 # Check that we have a working $ECHO.
    560 if test "X$1" = X--no-reexec; then
    561   # Discard the --no-reexec flag, and continue.
    562   shift
    563 elif test "X$1" = X--fallback-echo; then
    564   # Avoid inline document here, it may be left over
    565   :
    566 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
    567   # Yippee, $ECHO works!
    568   :
    569 else
    570   # Restart under the correct shell, and then maybe $ECHO will work.
    571   exec $SHELL "$progpath" --no-reexec ${1+"$@"}
    572 fi
    573 
    574 if test "X$1" = X--fallback-echo; then
    575   # used as fallback echo
    576   shift
    577   cat <<EOF
    578 $*
    579 EOF
    580   exit $EXIT_SUCCESS
    581 fi
    582830
    583831magic="%%%MAGIC variable%%%"
     
    585833
    586834# Global variables.
    587 # $mode is unset
    588835nonopt=
    589 execute_dlfiles=
    590836preserve_args=
    591837lo2o="s/\\.lo\$/.${objext}/"
     
    594840extracted_serial=0
    595841
    596 opt_dry_run=false
    597 opt_duplicate_deps=false
    598 opt_silent=false
    599 opt_debug=:
    600 
    601842# If this variable is set in any of the actions, the command in it
    602843# will be execed at the end.  This prevents here-documents from being
     
    604845exec_cmd=
    605846
     847# func_append var value
     848# Append VALUE to the end of shell variable VAR.
     849func_append ()
     850{
     851    eval "${1}=\$${1}\${2}"
     852} # func_append may be replaced by extended shell implementation
     853
     854# func_append_quoted var value
     855# Quote VALUE and append to the end of shell variable VAR, separated
     856# by a space.
     857func_append_quoted ()
     858{
     859    func_quote_for_eval "${2}"
     860    eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
     861} # func_append_quoted may be replaced by extended shell implementation
     862
     863
     864# func_arith arithmetic-term...
     865func_arith ()
     866{
     867    func_arith_result=`expr "${@}"`
     868} # func_arith may be replaced by extended shell implementation
     869
     870
     871# func_len string
     872# STRING may not start with a hyphen.
     873func_len ()
     874{
     875    func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
     876} # func_len may be replaced by extended shell implementation
     877
     878
     879# func_lo2o object
     880func_lo2o ()
     881{
     882    func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
     883} # func_lo2o may be replaced by extended shell implementation
     884
     885
     886# func_xform libobj-or-source
     887func_xform ()
     888{
     889    func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
     890} # func_xform may be replaced by extended shell implementation
     891
     892
    606893# func_fatal_configuration arg...
    607894# Echo program name prefixed message to standard error, followed by
     
    637924func_features ()
    638925{
    639     $ECHO "host: $host"
     926    echo "host: $host"
    640927    if test "$build_libtool_libs" = yes; then
    641       $ECHO "enable shared libraries"
     928      echo "enable shared libraries"
    642929    else
    643       $ECHO "disable shared libraries"
     930      echo "disable shared libraries"
    644931    fi
    645932    if test "$build_old_libs" = yes; then
    646       $ECHO "enable static libraries"
     933      echo "enable static libraries"
    647934    else
    648       $ECHO "disable static libraries"
     935      echo "disable static libraries"
    649936    fi
    650937
     
    691978      ;;
    692979  esac
    693 }
    694 
    695 # Parse options once, thoroughly.  This comes as soon as possible in
    696 # the script to make things like `libtool --version' happen quickly.
    697 {
    698 
    699   # Shorthand for --mode=foo, only valid as the first argument
    700   case $1 in
    701   clean|clea|cle|cl)
    702     shift; set dummy --mode clean ${1+"$@"}; shift
    703     ;;
    704   compile|compil|compi|comp|com|co|c)
    705     shift; set dummy --mode compile ${1+"$@"}; shift
    706     ;;
    707   execute|execut|execu|exec|exe|ex|e)
    708     shift; set dummy --mode execute ${1+"$@"}; shift
    709     ;;
    710   finish|finis|fini|fin|fi|f)
    711     shift; set dummy --mode finish ${1+"$@"}; shift
    712     ;;
    713   install|instal|insta|inst|ins|in|i)
    714     shift; set dummy --mode install ${1+"$@"}; shift
    715     ;;
    716   link|lin|li|l)
    717     shift; set dummy --mode link ${1+"$@"}; shift
    718     ;;
    719   uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
    720     shift; set dummy --mode uninstall ${1+"$@"}; shift
    721     ;;
    722   esac
    723 
    724   # Parse non-mode specific arguments:
    725   while test "$#" -gt 0; do
    726     opt="$1"
    727     shift
    728 
    729     case $opt in
    730       --config)         func_config                                     ;;
    731 
    732       --debug)          preserve_args="$preserve_args $opt"
    733                         func_echo "enabling shell trace mode"
    734                         opt_debug='set -x'
    735                         $opt_debug
    736                         ;;
    737 
    738       -dlopen)          test "$#" -eq 0 && func_missing_arg "$opt" && break
    739                         execute_dlfiles="$execute_dlfiles $1"
    740                         shift
    741                         ;;
    742 
    743       --dry-run | -n)   opt_dry_run=:                                   ;;
    744       --features)       func_features                                   ;;
    745       --finish)         mode="finish"                                   ;;
    746 
    747       --mode)           test "$#" -eq 0 && func_missing_arg "$opt" && break
    748                         case $1 in
    749                           # Valid mode arguments:
    750                           clean)        ;;
    751                           compile)      ;;
    752                           execute)      ;;
    753                           finish)       ;;
    754                           install)      ;;
    755                           link)         ;;
    756                           relink)       ;;
    757                           uninstall)    ;;
    758 
    759                           # Catch anything else as an error
    760                           *) func_error "invalid argument for $opt"
    761                              exit_cmd=exit
    762                              break
    763                              ;;
    764                         esac
    765 
    766                         mode="$1"
    767                         shift
    768                         ;;
    769 
    770       --preserve-dup-deps)
    771                         opt_duplicate_deps=:                            ;;
    772 
    773       --quiet|--silent) preserve_args="$preserve_args $opt"
    774                         opt_silent=:
    775                         ;;
    776 
    777       --verbose| -v)    preserve_args="$preserve_args $opt"
    778                         opt_silent=false
    779                         ;;
    780 
    781       --tag)            test "$#" -eq 0 && func_missing_arg "$opt" && break
    782                         preserve_args="$preserve_args $opt $1"
    783                         func_enable_tag "$1"    # tagname is set here
    784                         shift
    785                         ;;
    786 
    787       # Separate optargs to long options:
    788       -dlopen=*|--mode=*|--tag=*)
    789                         func_opt_split "$opt"
    790                         set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
    791                         shift
    792                         ;;
    793 
    794       -\?|-h)           func_usage                                      ;;
    795       --help)           opt_help=:                                      ;;
    796       --version)        func_version                                    ;;
    797 
    798       -*)               func_fatal_help "unrecognized option \`$opt'"   ;;
    799 
    800       *)                nonopt="$opt"
    801                         break
    802                         ;;
    803     esac
    804   done
    805 
    806 
    807   case $host in
    808     *cygwin* | *mingw* | *pw32* | *cegcc*)
    809       # don't eliminate duplications in $postdeps and $predeps
    810       opt_duplicate_compiler_generated_deps=:
    811       ;;
    812     *)
    813       opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
    814       ;;
    815   esac
    816 
    817   # Having warned about all mis-specified options, bail out if
    818   # anything was wrong.
    819   $exit_cmd $EXIT_FAILURE
    820980}
    821981
     
    8561016
    8571017
     1018# Shorthand for --mode=foo, only valid as the first argument
     1019case $1 in
     1020clean|clea|cle|cl)
     1021  shift; set dummy --mode clean ${1+"$@"}; shift
     1022  ;;
     1023compile|compil|compi|comp|com|co|c)
     1024  shift; set dummy --mode compile ${1+"$@"}; shift
     1025  ;;
     1026execute|execut|execu|exec|exe|ex|e)
     1027  shift; set dummy --mode execute ${1+"$@"}; shift
     1028  ;;
     1029finish|finis|fini|fin|fi|f)
     1030  shift; set dummy --mode finish ${1+"$@"}; shift
     1031  ;;
     1032install|instal|insta|inst|ins|in|i)
     1033  shift; set dummy --mode install ${1+"$@"}; shift
     1034  ;;
     1035link|lin|li|l)
     1036  shift; set dummy --mode link ${1+"$@"}; shift
     1037  ;;
     1038uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
     1039  shift; set dummy --mode uninstall ${1+"$@"}; shift
     1040  ;;
     1041esac
     1042
     1043
     1044
     1045# Option defaults:
     1046opt_debug=:
     1047opt_dry_run=false
     1048opt_config=false
     1049opt_preserve_dup_deps=false
     1050opt_features=false
     1051opt_finish=false
     1052opt_help=false
     1053opt_help_all=false
     1054opt_silent=:
     1055opt_verbose=:
     1056opt_silent=false
     1057opt_verbose=false
     1058
     1059
     1060# Parse options once, thoroughly.  This comes as soon as possible in the
     1061# script to make things like `--version' happen as quickly as we can.
     1062{
     1063  # this just eases exit handling
     1064  while test $# -gt 0; do
     1065    opt="$1"
     1066    shift
     1067    case $opt in
     1068      --debug|-x)       opt_debug='set -x'
     1069                        func_echo "enabling shell trace mode"
     1070                        $opt_debug
     1071                        ;;
     1072      --dry-run|--dryrun|-n)
     1073                        opt_dry_run=:
     1074                        ;;
     1075      --config)
     1076                        opt_config=:
     1077func_config
     1078                        ;;
     1079      --dlopen|-dlopen)
     1080                        optarg="$1"
     1081                        opt_dlopen="${opt_dlopen+$opt_dlopen
     1082}$optarg"
     1083                        shift
     1084                        ;;
     1085      --preserve-dup-deps)
     1086                        opt_preserve_dup_deps=:
     1087                        ;;
     1088      --features)
     1089                        opt_features=:
     1090func_features
     1091                        ;;
     1092      --finish)
     1093                        opt_finish=:
     1094set dummy --mode finish ${1+"$@"}; shift
     1095                        ;;
     1096      --help)
     1097                        opt_help=:
     1098                        ;;
     1099      --help-all)
     1100                        opt_help_all=:
     1101opt_help=': help-all'
     1102                        ;;
     1103      --mode)
     1104                        test $# = 0 && func_missing_arg $opt && break
     1105                        optarg="$1"
     1106                        opt_mode="$optarg"
     1107case $optarg in
     1108  # Valid mode arguments:
     1109  clean|compile|execute|finish|install|link|relink|uninstall) ;;
     1110
     1111  # Catch anything else as an error
     1112  *) func_error "invalid argument for $opt"
     1113     exit_cmd=exit
     1114     break
     1115     ;;
     1116esac
     1117                        shift
     1118                        ;;
     1119      --no-silent|--no-quiet)
     1120                        opt_silent=false
     1121func_append preserve_args " $opt"
     1122                        ;;
     1123      --no-verbose)
     1124                        opt_verbose=false
     1125func_append preserve_args " $opt"
     1126                        ;;
     1127      --silent|--quiet)
     1128                        opt_silent=:
     1129func_append preserve_args " $opt"
     1130        opt_verbose=false
     1131                        ;;
     1132      --verbose|-v)
     1133                        opt_verbose=:
     1134func_append preserve_args " $opt"
     1135opt_silent=false
     1136                        ;;
     1137      --tag)
     1138                        test $# = 0 && func_missing_arg $opt && break
     1139                        optarg="$1"
     1140                        opt_tag="$optarg"
     1141func_append preserve_args " $opt $optarg"
     1142func_enable_tag "$optarg"
     1143                        shift
     1144                        ;;
     1145
     1146      -\?|-h)           func_usage                              ;;
     1147      --help)           func_help                               ;;
     1148      --version)        func_version                            ;;
     1149
     1150      # Separate optargs to long options:
     1151      --*=*)
     1152                        func_split_long_opt "$opt"
     1153                        set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
     1154                        shift
     1155                        ;;
     1156
     1157      # Separate non-argument short options:
     1158      -\?*|-h*|-n*|-v*)
     1159                        func_split_short_opt "$opt"
     1160                        set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
     1161                        shift
     1162                        ;;
     1163
     1164      --)               break                                   ;;
     1165      -*)               func_fatal_help "unrecognized option \`$opt'" ;;
     1166      *)                set dummy "$opt" ${1+"$@"};     shift; break  ;;
     1167    esac
     1168  done
     1169
     1170  # Validate options:
     1171
     1172  # save first non-option argument
     1173  if test "$#" -gt 0; then
     1174    nonopt="$opt"
     1175    shift
     1176  fi
     1177
     1178  # preserve --debug
     1179  test "$opt_debug" = : || func_append preserve_args " --debug"
     1180
     1181  case $host in
     1182    *cygwin* | *mingw* | *pw32* | *cegcc*)
     1183      # don't eliminate duplications in $postdeps and $predeps
     1184      opt_duplicate_compiler_generated_deps=:
     1185      ;;
     1186    *)
     1187      opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
     1188      ;;
     1189  esac
     1190
     1191  $opt_help || {
     1192    # Sanity checks first:
     1193    func_check_version_match
     1194
     1195    if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
     1196      func_fatal_configuration "not configured to build any kind of library"
     1197    fi
     1198
     1199    # Darwin sucks
     1200    eval std_shrext=\"$shrext_cmds\"
     1201
     1202    # Only execute mode is allowed to have -dlopen flags.
     1203    if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
     1204      func_error "unrecognized option \`-dlopen'"
     1205      $ECHO "$help" 1>&2
     1206      exit $EXIT_FAILURE
     1207    fi
     1208
     1209    # Change the help message to a mode-specific one.
     1210    generic_help="$help"
     1211    help="Try \`$progname --help --mode=$opt_mode' for more information."
     1212  }
     1213
     1214
     1215  # Bail if the options were screwed
     1216  $exit_cmd $EXIT_FAILURE
     1217}
     1218
     1219
     1220
     1221
    8581222## ----------- ##
    8591223##    Main.    ##
    8601224## ----------- ##
    861 
    862 $opt_help || {
    863   # Sanity checks first:
    864   func_check_version_match
    865 
    866   if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
    867     func_fatal_configuration "not configured to build any kind of library"
    868   fi
    869 
    870   test -z "$mode" && func_fatal_error "error: you must specify a MODE."
    871 
    872 
    873   # Darwin sucks
    874   eval std_shrext=\"$shrext_cmds\"
    875 
    876 
    877   # Only execute mode is allowed to have -dlopen flags.
    878   if test -n "$execute_dlfiles" && test "$mode" != execute; then
    879     func_error "unrecognized option \`-dlopen'"
    880     $ECHO "$help" 1>&2
    881     exit $EXIT_FAILURE
    882   fi
    883 
    884   # Change the help message to a mode-specific one.
    885   generic_help="$help"
    886   help="Try \`$progname --help --mode=$mode' for more information."
    887 }
    888 
    8891225
    8901226# func_lalib_p file
     
    9511287func_ltwrapper_scriptname ()
    9521288{
    953     func_ltwrapper_scriptname_result=""
    954     if func_ltwrapper_executable_p "$1"; then
    955         func_dirname_and_basename "$1" "" "."
    956         func_stripname '' '.exe' "$func_basename_result"
    957         func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
    958     fi
     1289    func_dirname_and_basename "$1" "" "."
     1290    func_stripname '' '.exe' "$func_basename_result"
     1291    func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
    9591292}
    9601293
     
    10021335
    10031336
     1337# func_resolve_sysroot PATH
     1338# Replace a leading = in PATH with a sysroot.  Store the result into
     1339# func_resolve_sysroot_result
     1340func_resolve_sysroot ()
     1341{
     1342  func_resolve_sysroot_result=$1
     1343  case $func_resolve_sysroot_result in
     1344  =*)
     1345    func_stripname '=' '' "$func_resolve_sysroot_result"
     1346    func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
     1347    ;;
     1348  esac
     1349}
     1350
     1351# func_replace_sysroot PATH
     1352# If PATH begins with the sysroot, replace it with = and
     1353# store the result into func_replace_sysroot_result.
     1354func_replace_sysroot ()
     1355{
     1356  case "$lt_sysroot:$1" in
     1357  ?*:"$lt_sysroot"*)
     1358    func_stripname "$lt_sysroot" '' "$1"
     1359    func_replace_sysroot_result="=$func_stripname_result"
     1360    ;;
     1361  *)
     1362    # Including no sysroot.
     1363    func_replace_sysroot_result=$1
     1364    ;;
     1365  esac
     1366}
     1367
    10041368# func_infer_tag arg
    10051369# Infer tagged configuration to use if any are available and
     
    10141378      CC_quoted=
    10151379      for arg in $CC; do
    1016         func_quote_for_eval "$arg"
    1017         CC_quoted="$CC_quoted $func_quote_for_eval_result"
     1380        func_append_quoted CC_quoted "$arg"
    10181381      done
     1382      CC_expanded=`func_echo_all $CC`
     1383      CC_quoted_expanded=`func_echo_all $CC_quoted`
    10191384      case $@ in
    10201385      # Blanks in the command may have been stripped by the calling shell,
    10211386      # but not from the CC environment variable when configure was run.
    1022       " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
     1387      " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
     1388      " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
    10231389      # Blanks at the start of $base_compile will cause this to fail
    10241390      # if we don't check for them as well.
     
    10311397            for arg in $CC; do
    10321398              # Double-quote args containing other shell metacharacters.
    1033               func_quote_for_eval "$arg"
    1034               CC_quoted="$CC_quoted $func_quote_for_eval_result"
     1399              func_append_quoted CC_quoted "$arg"
    10351400            done
     1401            CC_expanded=`func_echo_all $CC`
     1402            CC_quoted_expanded=`func_echo_all $CC_quoted`
    10361403            case "$@ " in
    1037               " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
     1404            " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
     1405            " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
    10381406              # The compiler in the base compile command matches
    10391407              # the one in the tagged configuration.
     
    10981466}
    10991467
     1468
     1469##################################################
     1470# FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
     1471##################################################
     1472
     1473# func_convert_core_file_wine_to_w32 ARG
     1474# Helper function used by file name conversion functions when $build is *nix,
     1475# and $host is mingw, cygwin, or some other w32 environment. Relies on a
     1476# correctly configured wine environment available, with the winepath program
     1477# in $build's $PATH.
     1478#
     1479# ARG is the $build file name to be converted to w32 format.
     1480# Result is available in $func_convert_core_file_wine_to_w32_result, and will
     1481# be empty on error (or when ARG is empty)
     1482func_convert_core_file_wine_to_w32 ()
     1483{
     1484  $opt_debug
     1485  func_convert_core_file_wine_to_w32_result="$1"
     1486  if test -n "$1"; then
     1487    # Unfortunately, winepath does not exit with a non-zero error code, so we
     1488    # are forced to check the contents of stdout. On the other hand, if the
     1489    # command is not found, the shell will set an exit code of 127 and print
     1490    # *an error message* to stdout. So we must check for both error code of
     1491    # zero AND non-empty stdout, which explains the odd construction:
     1492    func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
     1493    if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
     1494      func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
     1495        $SED -e "$lt_sed_naive_backslashify"`
     1496    else
     1497      func_convert_core_file_wine_to_w32_result=
     1498    fi
     1499  fi
     1500}
     1501# end: func_convert_core_file_wine_to_w32
     1502
     1503
     1504# func_convert_core_path_wine_to_w32 ARG
     1505# Helper function used by path conversion functions when $build is *nix, and
     1506# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
     1507# configured wine environment available, with the winepath program in $build's
     1508# $PATH. Assumes ARG has no leading or trailing path separator characters.
     1509#
     1510# ARG is path to be converted from $build format to win32.
     1511# Result is available in $func_convert_core_path_wine_to_w32_result.
     1512# Unconvertible file (directory) names in ARG are skipped; if no directory names
     1513# are convertible, then the result may be empty.
     1514func_convert_core_path_wine_to_w32 ()
     1515{
     1516  $opt_debug
     1517  # unfortunately, winepath doesn't convert paths, only file names
     1518  func_convert_core_path_wine_to_w32_result=""
     1519  if test -n "$1"; then
     1520    oldIFS=$IFS
     1521    IFS=:
     1522    for func_convert_core_path_wine_to_w32_f in $1; do
     1523      IFS=$oldIFS
     1524      func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
     1525      if test -n "$func_convert_core_file_wine_to_w32_result" ; then
     1526        if test -z "$func_convert_core_path_wine_to_w32_result"; then
     1527          func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
     1528        else
     1529          func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
     1530        fi
     1531      fi
     1532    done
     1533    IFS=$oldIFS
     1534  fi
     1535}
     1536# end: func_convert_core_path_wine_to_w32
     1537
     1538
     1539# func_cygpath ARGS...
     1540# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
     1541# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
     1542# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
     1543# (2), returns the Cygwin file name or path in func_cygpath_result (input
     1544# file name or path is assumed to be in w32 format, as previously converted
     1545# from $build's *nix or MSYS format). In case (3), returns the w32 file name
     1546# or path in func_cygpath_result (input file name or path is assumed to be in
     1547# Cygwin format). Returns an empty string on error.
     1548#
     1549# ARGS are passed to cygpath, with the last one being the file name or path to
     1550# be converted.
     1551#
     1552# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
     1553# environment variable; do not put it in $PATH.
     1554func_cygpath ()
     1555{
     1556  $opt_debug
     1557  if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
     1558    func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
     1559    if test "$?" -ne 0; then
     1560      # on failure, ensure result is empty
     1561      func_cygpath_result=
     1562    fi
     1563  else
     1564    func_cygpath_result=
     1565    func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
     1566  fi
     1567}
     1568#end: func_cygpath
     1569
     1570
     1571# func_convert_core_msys_to_w32 ARG
     1572# Convert file name or path ARG from MSYS format to w32 format.  Return
     1573# result in func_convert_core_msys_to_w32_result.
     1574func_convert_core_msys_to_w32 ()
     1575{
     1576  $opt_debug
     1577  # awkward: cmd appends spaces to result
     1578  func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
     1579    $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
     1580}
     1581#end: func_convert_core_msys_to_w32
     1582
     1583
     1584# func_convert_file_check ARG1 ARG2
     1585# Verify that ARG1 (a file name in $build format) was converted to $host
     1586# format in ARG2. Otherwise, emit an error message, but continue (resetting
     1587# func_to_host_file_result to ARG1).
     1588func_convert_file_check ()
     1589{
     1590  $opt_debug
     1591  if test -z "$2" && test -n "$1" ; then
     1592    func_error "Could not determine host file name corresponding to"
     1593    func_error "  \`$1'"
     1594    func_error "Continuing, but uninstalled executables may not work."
     1595    # Fallback:
     1596    func_to_host_file_result="$1"
     1597  fi
     1598}
     1599# end func_convert_file_check
     1600
     1601
     1602# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
     1603# Verify that FROM_PATH (a path in $build format) was converted to $host
     1604# format in TO_PATH. Otherwise, emit an error message, but continue, resetting
     1605# func_to_host_file_result to a simplistic fallback value (see below).
     1606func_convert_path_check ()
     1607{
     1608  $opt_debug
     1609  if test -z "$4" && test -n "$3"; then
     1610    func_error "Could not determine the host path corresponding to"
     1611    func_error "  \`$3'"
     1612    func_error "Continuing, but uninstalled executables may not work."
     1613    # Fallback.  This is a deliberately simplistic "conversion" and
     1614    # should not be "improved".  See libtool.info.
     1615    if test "x$1" != "x$2"; then
     1616      lt_replace_pathsep_chars="s|$1|$2|g"
     1617      func_to_host_path_result=`echo "$3" |
     1618        $SED -e "$lt_replace_pathsep_chars"`
     1619    else
     1620      func_to_host_path_result="$3"
     1621    fi
     1622  fi
     1623}
     1624# end func_convert_path_check
     1625
     1626
     1627# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
     1628# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
     1629# and appending REPL if ORIG matches BACKPAT.
     1630func_convert_path_front_back_pathsep ()
     1631{
     1632  $opt_debug
     1633  case $4 in
     1634  $1 ) func_to_host_path_result="$3$func_to_host_path_result"
     1635    ;;
     1636  esac
     1637  case $4 in
     1638  $2 ) func_append func_to_host_path_result "$3"
     1639    ;;
     1640  esac
     1641}
     1642# end func_convert_path_front_back_pathsep
     1643
     1644
     1645##################################################
     1646# $build to $host FILE NAME CONVERSION FUNCTIONS #
     1647##################################################
     1648# invoked via `$to_host_file_cmd ARG'
     1649#
     1650# In each case, ARG is the path to be converted from $build to $host format.
     1651# Result will be available in $func_to_host_file_result.
     1652
     1653
     1654# func_to_host_file ARG
     1655# Converts the file name ARG from $build format to $host format. Return result
     1656# in func_to_host_file_result.
     1657func_to_host_file ()
     1658{
     1659  $opt_debug
     1660  $to_host_file_cmd "$1"
     1661}
     1662# end func_to_host_file
     1663
     1664
     1665# func_to_tool_file ARG LAZY
     1666# converts the file name ARG from $build format to toolchain format. Return
     1667# result in func_to_tool_file_result.  If the conversion in use is listed
     1668# in (the comma separated) LAZY, no conversion takes place.
     1669func_to_tool_file ()
     1670{
     1671  $opt_debug
     1672  case ,$2, in
     1673    *,"$to_tool_file_cmd",*)
     1674      func_to_tool_file_result=$1
     1675      ;;
     1676    *)
     1677      $to_tool_file_cmd "$1"
     1678      func_to_tool_file_result=$func_to_host_file_result
     1679      ;;
     1680  esac
     1681}
     1682# end func_to_tool_file
     1683
     1684
     1685# func_convert_file_noop ARG
     1686# Copy ARG to func_to_host_file_result.
     1687func_convert_file_noop ()
     1688{
     1689  func_to_host_file_result="$1"
     1690}
     1691# end func_convert_file_noop
     1692
     1693
     1694# func_convert_file_msys_to_w32 ARG
     1695# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
     1696# conversion to w32 is not available inside the cwrapper.  Returns result in
     1697# func_to_host_file_result.
     1698func_convert_file_msys_to_w32 ()
     1699{
     1700  $opt_debug
     1701  func_to_host_file_result="$1"
     1702  if test -n "$1"; then
     1703    func_convert_core_msys_to_w32 "$1"
     1704    func_to_host_file_result="$func_convert_core_msys_to_w32_result"
     1705  fi
     1706  func_convert_file_check "$1" "$func_to_host_file_result"
     1707}
     1708# end func_convert_file_msys_to_w32
     1709
     1710
     1711# func_convert_file_cygwin_to_w32 ARG
     1712# Convert file name ARG from Cygwin to w32 format.  Returns result in
     1713# func_to_host_file_result.
     1714func_convert_file_cygwin_to_w32 ()
     1715{
     1716  $opt_debug
     1717  func_to_host_file_result="$1"
     1718  if test -n "$1"; then
     1719    # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
     1720    # LT_CYGPATH in this case.
     1721    func_to_host_file_result=`cygpath -m "$1"`
     1722  fi
     1723  func_convert_file_check "$1" "$func_to_host_file_result"
     1724}
     1725# end func_convert_file_cygwin_to_w32
     1726
     1727
     1728# func_convert_file_nix_to_w32 ARG
     1729# Convert file name ARG from *nix to w32 format.  Requires a wine environment
     1730# and a working winepath. Returns result in func_to_host_file_result.
     1731func_convert_file_nix_to_w32 ()
     1732{
     1733  $opt_debug
     1734  func_to_host_file_result="$1"
     1735  if test -n "$1"; then
     1736    func_convert_core_file_wine_to_w32 "$1"
     1737    func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
     1738  fi
     1739  func_convert_file_check "$1" "$func_to_host_file_result"
     1740}
     1741# end func_convert_file_nix_to_w32
     1742
     1743
     1744# func_convert_file_msys_to_cygwin ARG
     1745# Convert file name ARG from MSYS to Cygwin format.  Requires LT_CYGPATH set.
     1746# Returns result in func_to_host_file_result.
     1747func_convert_file_msys_to_cygwin ()
     1748{
     1749  $opt_debug
     1750  func_to_host_file_result="$1"
     1751  if test -n "$1"; then
     1752    func_convert_core_msys_to_w32 "$1"
     1753    func_cygpath -u "$func_convert_core_msys_to_w32_result"
     1754    func_to_host_file_result="$func_cygpath_result"
     1755  fi
     1756  func_convert_file_check "$1" "$func_to_host_file_result"
     1757}
     1758# end func_convert_file_msys_to_cygwin
     1759
     1760
     1761# func_convert_file_nix_to_cygwin ARG
     1762# Convert file name ARG from *nix to Cygwin format.  Requires Cygwin installed
     1763# in a wine environment, working winepath, and LT_CYGPATH set.  Returns result
     1764# in func_to_host_file_result.
     1765func_convert_file_nix_to_cygwin ()
     1766{
     1767  $opt_debug
     1768  func_to_host_file_result="$1"
     1769  if test -n "$1"; then
     1770    # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
     1771    func_convert_core_file_wine_to_w32 "$1"
     1772    func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
     1773    func_to_host_file_result="$func_cygpath_result"
     1774  fi
     1775  func_convert_file_check "$1" "$func_to_host_file_result"
     1776}
     1777# end func_convert_file_nix_to_cygwin
     1778
     1779
     1780#############################################
     1781# $build to $host PATH CONVERSION FUNCTIONS #
     1782#############################################
     1783# invoked via `$to_host_path_cmd ARG'
     1784#
     1785# In each case, ARG is the path to be converted from $build to $host format.
     1786# The result will be available in $func_to_host_path_result.
     1787#
     1788# Path separators are also converted from $build format to $host format.  If
     1789# ARG begins or ends with a path separator character, it is preserved (but
     1790# converted to $host format) on output.
     1791#
     1792# All path conversion functions are named using the following convention:
     1793#   file name conversion function    : func_convert_file_X_to_Y ()
     1794#   path conversion function         : func_convert_path_X_to_Y ()
     1795# where, for any given $build/$host combination the 'X_to_Y' value is the
     1796# same.  If conversion functions are added for new $build/$host combinations,
     1797# the two new functions must follow this pattern, or func_init_to_host_path_cmd
     1798# will break.
     1799
     1800
     1801# func_init_to_host_path_cmd
     1802# Ensures that function "pointer" variable $to_host_path_cmd is set to the
     1803# appropriate value, based on the value of $to_host_file_cmd.
     1804to_host_path_cmd=
     1805func_init_to_host_path_cmd ()
     1806{
     1807  $opt_debug
     1808  if test -z "$to_host_path_cmd"; then
     1809    func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
     1810    to_host_path_cmd="func_convert_path_${func_stripname_result}"
     1811  fi
     1812}
     1813
     1814
     1815# func_to_host_path ARG
     1816# Converts the path ARG from $build format to $host format. Return result
     1817# in func_to_host_path_result.
     1818func_to_host_path ()
     1819{
     1820  $opt_debug
     1821  func_init_to_host_path_cmd
     1822  $to_host_path_cmd "$1"
     1823}
     1824# end func_to_host_path
     1825
     1826
     1827# func_convert_path_noop ARG
     1828# Copy ARG to func_to_host_path_result.
     1829func_convert_path_noop ()
     1830{
     1831  func_to_host_path_result="$1"
     1832}
     1833# end func_convert_path_noop
     1834
     1835
     1836# func_convert_path_msys_to_w32 ARG
     1837# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
     1838# conversion to w32 is not available inside the cwrapper.  Returns result in
     1839# func_to_host_path_result.
     1840func_convert_path_msys_to_w32 ()
     1841{
     1842  $opt_debug
     1843  func_to_host_path_result="$1"
     1844  if test -n "$1"; then
     1845    # Remove leading and trailing path separator characters from ARG.  MSYS
     1846    # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
     1847    # and winepath ignores them completely.
     1848    func_stripname : : "$1"
     1849    func_to_host_path_tmp1=$func_stripname_result
     1850    func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
     1851    func_to_host_path_result="$func_convert_core_msys_to_w32_result"
     1852    func_convert_path_check : ";" \
     1853      "$func_to_host_path_tmp1" "$func_to_host_path_result"
     1854    func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
     1855  fi
     1856}
     1857# end func_convert_path_msys_to_w32
     1858
     1859
     1860# func_convert_path_cygwin_to_w32 ARG
     1861# Convert path ARG from Cygwin to w32 format.  Returns result in
     1862# func_to_host_file_result.
     1863func_convert_path_cygwin_to_w32 ()
     1864{
     1865  $opt_debug
     1866  func_to_host_path_result="$1"
     1867  if test -n "$1"; then
     1868    # See func_convert_path_msys_to_w32:
     1869    func_stripname : : "$1"
     1870    func_to_host_path_tmp1=$func_stripname_result
     1871    func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
     1872    func_convert_path_check : ";" \
     1873      "$func_to_host_path_tmp1" "$func_to_host_path_result"
     1874