Changeset 11312 in project


Ignore:
Timestamp:
07/17/08 02:49:52 (11 years ago)
Author:
Ivan Raikov
Message:

Updated autotools-specific files.

Location:
release/3/xmi/libxmi-1.2
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • release/3/xmi/libxmi-1.2/INSTALL

    r4980 r11312  
    1 Please read the file README first; it describes the libxmi library.
    2 
    3 To install libxmi as a standalone library, you would do the following.
    4 
    5 1. Do `./configure', `make', and `make install', as usual.  This will
    6    install both libxmi and its header file, xmi.h.
    7 
    8 2. Test libxmi by compiling and linking the sample program drawing.c.  You
    9    would do something like `gcc test.c -lxmi' or `gcc test.c -lxmi -lm' to
    10    obtain a file `a.out'.  If you invoke a.out, the pixmap described at the
    11    head of drawing.c should be written to standard output.
    12 
    13 (You may also install libxmi as a rendering module in another source tree,
    14 but the details of that are left to you.  See the file ./CUSTOMIZE for
    15 useful hints.)
    16 
    17 You may compile libxmi with a C++ compiler rather than a C compiler, by
    18 doing something like `CC=c++ ./configure' instead of just `./configure'.
    19 
    20 If you do use a C++ compiler, you should probably add "-DHAVE_BOOL" to
    21 CFLAGS.  This will keep the Boolean datatype from being defined (for any
    22 modern C++ compiler, it is defined automatically).
     1Installation Instructions
     2*************************
     3
     4Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
     52006, 2007 Free Software Foundation, Inc.
     6
     7This file is free documentation; the Free Software Foundation gives
     8unlimited permission to copy, distribute and modify it.
     9
     10Basic Installation
     11==================
     12
     13Briefly, the shell commands `./configure; make; make install' should
     14configure, build, and install this package.  The following
     15more-detailed instructions are generic; see the `README' file for
     16instructions specific to this package.
     17
     18   The `configure' shell script attempts to guess correct values for
     19various system-dependent variables used during compilation.  It uses
     20those values to create a `Makefile' in each directory of the package.
     21It may also create one or more `.h' files containing system-dependent
     22definitions.  Finally, it creates a shell script `config.status' that
     23you can run in the future to recreate the current configuration, and a
     24file `config.log' containing compiler output (useful mainly for
     25debugging `configure').
     26
     27   It can also use an optional file (typically called `config.cache'
     28and enabled with `--cache-file=config.cache' or simply `-C') that saves
     29the results of its tests to speed up reconfiguring.  Caching is
     30disabled by default to prevent problems with accidental use of stale
     31cache files.
     32
     33   If you need to do unusual things to compile the package, please try
     34to figure out how `configure' could check whether to do them, and mail
     35diffs or instructions to the address given in the `README' so they can
     36be considered for the next release.  If you are using the cache, and at
     37some point `config.cache' contains results you don't want to keep, you
     38may remove or edit it.
     39
     40   The file `configure.ac' (or `configure.in') is used to create
     41`configure' by a program called `autoconf'.  You need `configure.ac' if
     42you want to change it or regenerate `configure' using a newer version
     43of `autoconf'.
     44
     45The simplest way to compile this package is:
     46
     47  1. `cd' to the directory containing the package's source code and type
     48     `./configure' to configure the package for your system.
     49
     50     Running `configure' might take a while.  While running, it prints
     51     some messages telling which features it is checking for.
     52
     53  2. Type `make' to compile the package.
     54
     55  3. Optionally, type `make check' to run any self-tests that come with
     56     the package.
     57
     58  4. Type `make install' to install the programs and any data files and
     59     documentation.
     60
     61  5. You can remove the program binaries and object files from the
     62     source code directory by typing `make clean'.  To also remove the
     63     files that `configure' created (so you can compile the package for
     64     a different kind of computer), type `make distclean'.  There is
     65     also a `make maintainer-clean' target, but that is intended mainly
     66     for the package's developers.  If you use it, you may have to get
     67     all sorts of other programs in order to regenerate files that came
     68     with the distribution.
     69
     70  6. Often, you can also type `make uninstall' to remove the installed
     71     files again.
     72
     73Compilers and Options
     74=====================
     75
     76Some systems require unusual options for compilation or linking that the
     77`configure' script does not know about.  Run `./configure --help' for
     78details on some of the pertinent environment variables.
     79
     80   You can give `configure' initial values for configuration parameters
     81by setting variables in the command line or in the environment.  Here
     82is an example:
     83
     84     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
     85
     86   *Note Defining Variables::, for more details.
     87
     88Compiling For Multiple Architectures
     89====================================
     90
     91You can compile the package for more than one kind of computer at the
     92same time, by placing the object files for each architecture in their
     93own directory.  To do this, you can use GNU `make'.  `cd' to the
     94directory where you want the object files and executables to go and run
     95the `configure' script.  `configure' automatically checks for the
     96source code in the directory that `configure' is in and in `..'.
     97
     98   With a non-GNU `make', it is safer to compile the package for one
     99architecture at a time in the source code directory.  After you have
     100installed the package for one architecture, use `make distclean' before
     101reconfiguring for another architecture.
     102
     103Installation Names
     104==================
     105
     106By default, `make install' installs the package's commands under
     107`/usr/local/bin', include files under `/usr/local/include', etc.  You
     108can specify an installation prefix other than `/usr/local' by giving
     109`configure' the option `--prefix=PREFIX'.
     110
     111   You can specify separate installation prefixes for
     112architecture-specific files and architecture-independent files.  If you
     113pass the option `--exec-prefix=PREFIX' to `configure', the package uses
     114PREFIX as the prefix for installing programs and libraries.
     115Documentation and other data files still use the regular prefix.
     116
     117   In addition, if you use an unusual directory layout you can give
     118options like `--bindir=DIR' to specify different values for particular
     119kinds of files.  Run `configure --help' for a list of the directories
     120you can set and what kinds of files go in them.
     121
     122   If the package supports it, you can cause programs to be installed
     123with an extra prefix or suffix on their names by giving `configure' the
     124option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
     125
     126Optional Features
     127=================
     128
     129Some packages pay attention to `--enable-FEATURE' options to
     130`configure', where FEATURE indicates an optional part of the package.
     131They may also pay attention to `--with-PACKAGE' options, where PACKAGE
     132is something like `gnu-as' or `x' (for the X Window System).  The
     133`README' should mention any `--enable-' and `--with-' options that the
     134package recognizes.
     135
     136   For packages that use the X Window System, `configure' can usually
     137find the X include and library files automatically, but if it doesn't,
     138you can use the `configure' options `--x-includes=DIR' and
     139`--x-libraries=DIR' to specify their locations.
     140
     141Specifying the System Type
     142==========================
     143
     144There may be some features `configure' cannot figure out automatically,
     145but needs to determine by the type of machine the package will run on.
     146Usually, assuming the package is built to be run on the _same_
     147architectures, `configure' can figure that out, but if it prints a
     148message saying it cannot guess the machine type, give it the
     149`--build=TYPE' option.  TYPE can either be a short name for the system
     150type, such as `sun4', or a canonical name which has the form:
     151
     152     CPU-COMPANY-SYSTEM
     153
     154where SYSTEM can have one of these forms:
     155
     156     OS KERNEL-OS
     157
     158   See the file `config.sub' for the possible values of each field.  If
     159`config.sub' isn't included in this package, then this package doesn't
     160need to know the machine type.
     161
     162   If you are _building_ compiler tools for cross-compiling, you should
     163use the option `--target=TYPE' to select the type of system they will
     164produce code for.
     165
     166   If you want to _use_ a cross compiler, that generates code for a
     167platform different from the build platform, you should specify the
     168"host" platform (i.e., that on which the generated programs will
     169eventually be run) with `--host=TYPE'.
     170
     171Sharing Defaults
     172================
     173
     174If you want to set default values for `configure' scripts to share, you
     175can create a site shell script called `config.site' that gives default
     176values for variables like `CC', `cache_file', and `prefix'.
     177`configure' looks for `PREFIX/share/config.site' if it exists, then
     178`PREFIX/etc/config.site' if it exists.  Or, you can set the
     179`CONFIG_SITE' environment variable to the location of the site script.
     180A warning: not all `configure' scripts look for a site script.
     181
     182Defining Variables
     183==================
     184
     185Variables not defined in a site shell script can be set in the
     186environment passed to `configure'.  However, some packages may run
     187configure again during the build, and the customized values of these
     188variables may be lost.  In order to avoid this problem, you should set
     189them in the `configure' command line, using `VAR=value'.  For example:
     190
     191     ./configure CC=/usr/local2/bin/gcc
     192
     193causes the specified `gcc' to be used as the C compiler (unless it is
     194overridden in the site shell script).
     195
     196Unfortunately, this technique does not work for `CONFIG_SHELL' due to
     197an Autoconf bug.  Until the bug is fixed you can use this workaround:
     198
     199     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
     200
     201`configure' Invocation
     202======================
     203
     204`configure' recognizes the following options to control how it operates.
     205
     206`--help'
     207`-h'
     208     Print a summary of the options to `configure', and exit.
     209
     210`--version'
     211`-V'
     212     Print the version of Autoconf used to generate the `configure'
     213     script, and exit.
     214
     215`--cache-file=FILE'
     216     Enable the cache: use and save the results of the tests in FILE,
     217     traditionally `config.cache'.  FILE defaults to `/dev/null' to
     218     disable caching.
     219
     220`--config-cache'
     221`-C'
     222     Alias for `--cache-file=config.cache'.
     223
     224`--quiet'
     225`--silent'
     226`-q'
     227     Do not print messages saying which checks are being made.  To
     228     suppress all normal output, redirect it to `/dev/null' (any error
     229     messages will still be shown).
     230
     231`--srcdir=DIR'
     232     Look for the package's source code in directory DIR.  Usually
     233     `configure' can determine that directory automatically.
     234
     235`configure' also accepts some other, not widely useful, options.  Run
     236`configure --help' for more details.
     237
  • release/3/xmi/libxmi-1.2/Makefile.in

    r5425 r11312  
    1 # Makefile.in generated by automake 1.10 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
    5 # 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
     5# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
    66# This Makefile.in is free software; the Free Software Foundation
    77# gives unlimited permission to copy and/or distribute it,
     
    126126DEFS = @DEFS@
    127127DEPDIR = @DEPDIR@
     128DSYMUTIL = @DSYMUTIL@
    128129ECHO = @ECHO@
    129130ECHO_C = @ECHO_C@
     
    148149MAKEINFO = @MAKEINFO@
    149150MKDIR_P = @MKDIR_P@
     151NMEDIT = @NMEDIT@
    150152OBJEXT = @OBJEXT@
    151153PACKAGE = @PACKAGE@
     
    157159PATH_SEPARATOR = @PATH_SEPARATOR@
    158160RANLIB = @RANLIB@
     161SED = @SED@
    159162SET_MAKE = @SET_MAKE@
    160163SHELL = @SHELL@
     
    237240          case '$(am__configure_deps)' in \
    238241            *$$dep*) \
    239               echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
    240               cd $(srcdir) && $(AUTOMAKE) --foreign  \
     242              echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
     243              cd $(srcdir) && $(AUTOMAKE) --gnu  \
    241244                && exit 0; \
    242245              exit 1;; \
    243246          esac; \
    244247        done; \
    245         echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  Makefile'; \
     248        echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  Makefile'; \
    246249        cd $(top_srcdir) && \
    247           $(AUTOMAKE) --foreign  Makefile
     250          $(AUTOMAKE) --gnu  Makefile
    248251.PRECIOUS: Makefile
    249252Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
     
    287290          if test -f $$p; then \
    288291            f=$(am__strip_dir) \
    289             echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
    290             $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
     292            echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
     293            $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
    291294          else :; fi; \
    292295        done
     
    296299        @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
    297300          p=$(am__strip_dir) \
    298           echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
    299           $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
     301          echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
     302          $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
    300303        done
    301304
     
    458461            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
    459462          done | \
    460           $(AWK) '    { files[$$0] = 1; } \
    461                END { for (i in files) print i; }'`; \
     463          $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
     464              END { if (nonempty) { for (i in files) print i; }; }'`; \
    462465        mkid -fID $$unique
    463466tags: TAGS
     
    484487            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
    485488          done | \
    486           $(AWK) '    { files[$$0] = 1; } \
    487                END { for (i in files) print i; }'`; \
     489          $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
     490              END { if (nonempty) { for (i in files) print i; }; }'`; \
    488491        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
    489492          test -n "$$unique" || unique=$$empty_fix; \
     
    495498                $(TAGS_FILES) $(LISP)
    496499        tags=; \
    497         here=`pwd`; \
    498500        list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
    499501        unique=`for i in $$list; do \
    500502            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
    501503          done | \
    502           $(AWK) '    { files[$$0] = 1; } \
    503                END { for (i in files) print i; }'`; \
     504          $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
     505              END { if (nonempty) { for (i in files) print i; }; }'`; \
    504506        test -z "$(CTAGS_ARGS)$$tags$$unique" \
    505507          || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
     
    572574        $(am__remove_distdir)
    573575
     576dist-lzma: distdir
     577        tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
     578        $(am__remove_distdir)
     579
    574580dist-tarZ: distdir
    575581        tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
     
    598604        *.tar.bz2*) \
    599605          bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
     606        *.tar.lzma*) \
     607          unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
    600608        *.tar.Z*) \
    601609          uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
     
    756764        all all-am am--refresh check check-am clean clean-generic \
    757765        clean-libLTLIBRARIES clean-libtool ctags ctags-recursive dist \
    758         dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \
    759         distcheck distclean distclean-compile distclean-generic \
    760         distclean-hdr distclean-libtool distclean-tags distcleancheck \
    761         distdir distuninstallcheck dvi dvi-am html html-am info \
    762         info-am install install-am install-data install-data-am \
    763         install-dvi install-dvi-am install-exec install-exec-am \
    764         install-html install-html-am install-includeHEADERS \
    765         install-info install-info-am install-libLTLIBRARIES \
    766         install-man install-pdf install-pdf-am install-ps \
    767         install-ps-am install-strip installcheck installcheck-am \
    768         installdirs installdirs-am maintainer-clean \
     766        dist-all dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ \
     767        dist-zip distcheck distclean distclean-compile \
     768        distclean-generic distclean-hdr distclean-libtool \
     769        distclean-tags distcleancheck distdir distuninstallcheck dvi \
     770        dvi-am html html-am info info-am install install-am \
     771        install-data install-data-am install-dvi install-dvi-am \
     772        install-exec install-exec-am install-html install-html-am \
     773        install-includeHEADERS install-info install-info-am \
     774        install-libLTLIBRARIES install-man install-pdf install-pdf-am \
     775        install-ps install-ps-am install-strip installcheck \
     776        installcheck-am installdirs installdirs-am maintainer-clean \
    769777        maintainer-clean-generic mostlyclean mostlyclean-compile \
    770778        mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  • release/3/xmi/libxmi-1.2/aclocal.m4

    r5425 r11312  
    1 # generated automatically by aclocal 1.10 -*- Autoconf -*-
     1# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
    22
    33# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
    4 # 2005, 2006  Free Software Foundation, Inc.
     4# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
    55# This file is free software; the Free Software Foundation
    66# gives unlimited permission to copy and/or distribute it,
     
    1212# PARTICULAR PURPOSE.
    1313
    14 m4_if(m4_PACKAGE_VERSION, [2.61],,
    15 [m4_fatal([this file was generated for autoconf 2.61.
    16 You have another version of autoconf.  If you want to use that,
    17 you should regenerate the build system entirely.], [63])])
     14m4_ifndef([AC_AUTOCONF_VERSION],
     15  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
     16m4_if(AC_AUTOCONF_VERSION, [2.61],,
     17[m4_warning([this file was generated for autoconf 2.61.
     18You have another version of autoconf.  It may work, but is not guaranteed to.
     19If you have problems, you may need to regenerate the build system entirely.
     20To do so, use the procedure documented by the package, typically `autoreconf'.])])
    1821
    1922# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
    2023
    21 # serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
     24# serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL
    2225
    2326
     
    107110AC_REQUIRE([AC_EXEEXT])dnl
    108111dnl
    109 
    110112AC_LIBTOOL_SYS_MAX_CMD_LEN
    111113AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
     
    182184
    183185# Determine commands to create old-style static archives.
    184 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
     186old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
    185187old_postinstall_cmds='chmod 644 $oldlib'
    186188old_postuninstall_cmds=
     
    208210  ;;
    209211esac
     212
     213_LT_REQUIRED_DARWIN_CHECKS
    210214
    211215AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
     
    269273# the simple compiler test code.
    270274AC_DEFUN([_LT_COMPILER_BOILERPLATE],
    271 [ac_outfile=conftest.$ac_objext
    272 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
     275[AC_REQUIRE([LT_AC_PROG_SED])dnl
     276ac_outfile=conftest.$ac_objext
     277echo "$lt_simple_compile_test_code" >conftest.$ac_ext
    273278eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    274279_lt_compiler_boilerplate=`cat conftest.err`
     
    282287# the simple link test code.
    283288AC_DEFUN([_LT_LINKER_BOILERPLATE],
    284 [ac_outfile=conftest.$ac_objext
    285 printf "$lt_simple_link_test_code" >conftest.$ac_ext
     289[AC_REQUIRE([LT_AC_PROG_SED])dnl
     290ac_outfile=conftest.$ac_objext
     291echo "$lt_simple_link_test_code" >conftest.$ac_ext
    286292eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    287293_lt_linker_boilerplate=`cat conftest.err`
    288 $rm conftest*
     294$rm -r conftest*
    289295])# _LT_LINKER_BOILERPLATE
    290296
     297# _LT_REQUIRED_DARWIN_CHECKS
     298# --------------------------
     299# Check for some things on darwin
     300AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
     301  case $host_os in
     302    rhapsody* | darwin*)
     303    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
     304    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
     305
     306    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
     307      [lt_cv_apple_cc_single_mod=no
     308      if test -z "${LT_MULTI_MODULE}"; then
     309   # By default we will add the -single_module flag. You can override
     310   # by either setting the environment variable LT_MULTI_MODULE
     311   # non-empty at configure time, or by adding -multi_module to the
     312   # link flags.
     313   echo "int foo(void){return 1;}" > conftest.c
     314   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
     315     -dynamiclib ${wl}-single_module conftest.c
     316   if test -f libconftest.dylib; then
     317     lt_cv_apple_cc_single_mod=yes
     318     rm -rf libconftest.dylib*
     319   fi
     320   rm conftest.c
     321      fi])
     322    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
     323      [lt_cv_ld_exported_symbols_list],
     324      [lt_cv_ld_exported_symbols_list=no
     325      save_LDFLAGS=$LDFLAGS
     326      echo "_main" > conftest.sym
     327      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
     328      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
     329   [lt_cv_ld_exported_symbols_list=yes],
     330   [lt_cv_ld_exported_symbols_list=no])
     331   LDFLAGS="$save_LDFLAGS"
     332    ])
     333    case $host_os in
     334    rhapsody* | darwin1.[[0123]])
     335      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
     336    darwin1.*)
     337     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
     338    darwin*)
     339      # if running on 10.5 or later, the deployment target defaults
     340      # to the OS version, if on x86, and 10.4, the deployment
     341      # target defaults to 10.4. Don't you love it?
     342      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
     343   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
     344     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
     345   10.[[012]]*)
     346     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
     347   10.*)
     348     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
     349      esac
     350    ;;
     351  esac
     352    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
     353      _lt_dar_single_mod='$single_module'
     354    fi
     355    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
     356      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
     357    else
     358      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
     359    fi
     360    if test "$DSYMUTIL" != ":"; then
     361      _lt_dsymutil="~$DSYMUTIL \$lib || :"
     362    else
     363      _lt_dsymutil=
     364    fi
     365    ;;
     366  esac
     367])
    291368
    292369# _LT_AC_SYS_LIBPATH_AIX
     
    299376# to the aix ld manual.
    300377AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
    301 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
    302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    303 }'`
     378[AC_REQUIRE([LT_AC_PROG_SED])dnl
     379AC_LINK_IFELSE(AC_LANG_PROGRAM,[
     380lt_aix_libpath_sed='
     381    /Import File Strings/,/^$/ {
     382        /^0/ {
     383            s/^0  *\(.*\)$/\1/
     384            p
     385        }
     386    }'
     387aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    304388# Check for a 64-bit object if we didn't find anything.
    305 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    306 }'`; fi],[])
     389if test -z "$aix_libpath"; then
     390  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     391fi],[])
    307392if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    308393])# _LT_AC_SYS_LIBPATH_AIX
     
    535620  ;;
    536621
    537 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
     622x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
     623s390*-*linux*|sparc*-*linux*)
    538624  # Find out which ABI we are using.
    539625  echo 'int i;' > conftest.$ac_ext
     
    542628    *32-bit*)
    543629      case $host in
     630        x86_64-*kfreebsd*-gnu)
     631          LD="${LD-ld} -m elf_i386_fbsd"
     632          ;;
    544633        x86_64-*linux*)
    545634          LD="${LD-ld} -m elf_i386"
     
    558647    *64-bit*)
    559648      case $host in
     649        x86_64-*kfreebsd*-gnu)
     650          LD="${LD-ld} -m elf_x86_64_fbsd"
     651          ;;
    560652        x86_64-*linux*)
    561653          LD="${LD-ld} -m elf_x86_64"
     
    598690      case $lt_cv_prog_gnu_ld in
    599691      yes*) LD="${LD-ld} -m elf64_sparc" ;;
    600       *)    LD="${LD-ld} -64" ;;
     692      *)
     693        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
     694          LD="${LD-ld} -64"
     695        fi
     696        ;;
    601697      esac
    602698      ;;
     
    629725  [$2=no
    630726  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
    631    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     727   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    632728   lt_compiler_flag="$3"
    633729   # Insert the option either (1) after the last *FLAGS variable, or
     
    670766# Check whether the given compiler option works
    671767AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
    672 [AC_CACHE_CHECK([$1], [$2],
     768[AC_REQUIRE([LT_AC_PROG_SED])dnl
     769AC_CACHE_CHECK([$1], [$2],
    673770  [$2=no
    674771   save_LDFLAGS="$LDFLAGS"
    675772   LDFLAGS="$LDFLAGS $3"
    676    printf "$lt_simple_link_test_code" > conftest.$ac_ext
     773   echo "$lt_simple_link_test_code" > conftest.$ac_ext
    677774   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
    678775     # The linker can only warn and ignore the option if not recognized
     
    690787     fi
    691788   fi
    692    $rm conftest*
     789   $rm -r conftest*
    693790   LDFLAGS="$save_LDFLAGS"
    694791])
     
    788885    ;;
    789886  *)
    790     # If test is not a shell built-in, we'll probably end up computing a
    791     # maximum length that is only half of the actual maximum length, but
    792     # we can't tell.
    793     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
    794     while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
     887    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
     888    if test -n "$lt_cv_sys_max_cmd_len"; then
     889      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
     890      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
     891    else
     892      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
     893      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
    795894               = "XX$teststring") >/dev/null 2>&1 &&
    796             new_result=`expr "X$teststring" : ".*" 2>&1` &&
    797             lt_cv_sys_max_cmd_len=$new_result &&
    798             test $i != 17 # 1/2 MB should be enough
    799     do
    800       i=`expr $i + 1`
    801       teststring=$teststring$teststring
    802     done
    803     teststring=
    804     # Add a significant safety factor because C++ compilers can tack on massive
    805     # amounts of additional arguments before passing them to the linker.
    806     # It appears as though 1/2 is a usable value.
    807     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
     895              new_result=`expr "X$teststring" : ".*" 2>&1` &&
     896              lt_cv_sys_max_cmd_len=$new_result &&
     897              test $i != 17 # 1/2 MB should be enough
     898      do
     899        i=`expr $i + 1`
     900        teststring=$teststring$teststring
     901      done
     902      teststring=
     903      # Add a significant safety factor because C++ compilers can tack on massive
     904      # amounts of additional arguments before passing them to the linker.
     905      # It appears as though 1/2 is a usable value.
     906      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
     907    fi
    808908    ;;
    809909  esac
     
    9581058          [lt_cv_dlopen="shl_load"],
    9591059      [AC_CHECK_LIB([dld], [shl_load],
    960             [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
     1060            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
    9611061        [AC_CHECK_FUNC([dlopen],
    9621062              [lt_cv_dlopen="dlopen"],
     
    9661066                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
    9671067              [AC_CHECK_LIB([dld], [dld_link],
    968                     [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
     1068                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
    9691069              ])
    9701070            ])
     
    10321132# Check to see if options -c and -o are simultaneously supported by compiler
    10331133AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
    1034 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
     1134[AC_REQUIRE([LT_AC_PROG_SED])dnl
     1135AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
    10351136AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
    10361137  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
     
    10401141   cd conftest
    10411142   mkdir out
    1042    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     1143   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    10431144
    10441145   lt_compiler_flag="-o out/conftest2.$ac_objext"
     
    11801281       if test -n "$STRIP" ; then
    11811282         striplib="$STRIP -x"
     1283         old_striplib="$STRIP -S"
    11821284         AC_MSG_RESULT([yes])
    11831285       else
     
    11971299# PORTME Fill in your ld.so characteristics
    11981300AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
    1199 [AC_MSG_CHECKING([dynamic linker characteristics])
     1301[AC_REQUIRE([LT_AC_PROG_SED])dnl
     1302AC_MSG_CHECKING([dynamic linker characteristics])
    12001303library_names_spec=
    12011304libname_spec='lib$name'
     
    12111314dynamic_linker="$host_os ld.so"
    12121315sys_lib_dlsearch_path_spec="/lib /usr/lib"
     1316m4_if($1,[],[
    12131317if test "$GCC" = yes; then
    1214   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    1215   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
     1318  case $host_os in
     1319    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
     1320    *) lt_awk_arg="/^libraries:/" ;;
     1321  esac
     1322  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
     1323  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
    12161324    # if the path contains ";" then we assume it to be the separator
    12171325    # otherwise default to the standard path separator (i.e. ":") - it is
    12181326    # assumed that no part of a normal pathname contains ";" but that should
    12191327    # okay in the real world where ";" in dirpaths is itself problematic.
    1220     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
     1328    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
    12211329  else
    1222     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
     1330    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    12231331  fi
     1332  # Ok, now we have the path, separated by spaces, we can step through it
     1333  # and add multilib dir if necessary.
     1334  lt_tmp_lt_search_path_spec=
     1335  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
     1336  for lt_sys_path in $lt_search_path_spec; do
     1337    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
     1338      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
     1339    else
     1340      test -d "$lt_sys_path" && \
     1341        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
     1342    fi
     1343  done
     1344  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
     1345BEGIN {RS=" "; FS="/|\n";} {
     1346  lt_foo="";
     1347  lt_count=0;
     1348  for (lt_i = NF; lt_i > 0; lt_i--) {
     1349    if ($lt_i != "" && $lt_i != ".") {
     1350      if ($lt_i == "..") {
     1351        lt_count++;
     1352      } else {
     1353        if (lt_count == 0) {
     1354          lt_foo="/" $lt_i lt_foo;
     1355        } else {
     1356          lt_count--;
     1357        }
     1358      }
     1359    }
     1360  }
     1361  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
     1362  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
     1363}'`
     1364  sys_lib_search_path_spec=`echo $lt_search_path_spec`
    12241365else
    12251366  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    1226 fi
     1367fi])
    12271368need_lib_prefix=unknown
    12281369hardcode_into_libs=no
     
    12421383  ;;
    12431384
    1244 aix4* | aix5*)
     1385aix[[4-9]]*)
    12451386  version_type=linux
    12461387  need_lib_prefix=no
     
    13811522  shlibpath_var=DYLD_LIBRARY_PATH
    13821523  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
    1383   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    1384   if test "$GCC" = yes; then
    1385     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
    1386   else
    1387     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    1388   fi
     1524  m4_if([$1], [],[
     1525  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
    13891526  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    13901527  ;;
     
    14401577    hardcode_into_libs=yes
    14411578    ;;
    1442   freebsd*) # from 4.6 on
     1579  *) # from 4.6 on, and DragonFly
    14431580    shlibpath_overrides_runpath=yes
    14441581    hardcode_into_libs=yes
     
    15031640  ;;
    15041641
    1505 interix3*)
     1642interix[[3-9]]*)
    15061643  version_type=linux
    15071644  need_lib_prefix=no
     
    15741711  # Append ld.so.conf contents to the search path
    15751712  if test -f /etc/ld.so.conf; then
    1576     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
     1713    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    15771714    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    15781715  fi
     
    16781815  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
    16791816  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
     1817  ;;
     1818
     1819rdos*)
     1820  dynamic_linker=no
    16801821  ;;
    16811822
     
    17751916test "$dynamic_linker" = no && can_build_shared=no
    17761917
     1918AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
     1919[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
     1920sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
     1921AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
     1922[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
     1923sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
     1924
    17771925variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
    17781926if test "$GCC" = yes; then
     
    17851933# ----------------
    17861934AC_DEFUN([_LT_AC_TAGCONFIG],
    1787 [AC_ARG_WITH([tags],
     1935[AC_REQUIRE([LT_AC_PROG_SED])dnl
     1936AC_ARG_WITH([tags],
    17881937    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
    17891938        [include additional configurations @<:@automatic@:>@])],
     
    20462195# AC_PATH_TOOL_PREFIX
    20472196# -------------------
    2048 # find a file program which can recognise shared library
     2197# find a file program which can recognize shared library
    20492198AC_DEFUN([AC_PATH_TOOL_PREFIX],
    20502199[AC_REQUIRE([AC_PROG_EGREP])dnl
     
    21092258# AC_PATH_MAGIC
    21102259# -------------
    2111 # find a file program which can recognise a shared library
     2260# find a file program which can recognize a shared library
    21122261AC_DEFUN([AC_PATH_MAGIC],
    21132262[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
     
    22562405#  -- PORTME fill in with the dynamic library characteristics
    22572406AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
    2258 [AC_CACHE_CHECK([how to recognise dependent libraries],
     2407[AC_CACHE_CHECK([how to recognize dependent libraries],
    22592408lt_cv_deplibs_check_method,
    22602409[lt_cv_file_magic_cmd='$MAGIC_CMD'
     
    22732422
    22742423case $host_os in
    2275 aix4* | aix5*)
     2424aix[[4-9]]*)
    22762425  lt_cv_deplibs_check_method=pass_all
    22772426  ;;
     
    22952444mingw* | pw32*)
    22962445  # Base MSYS/MinGW do not provide the 'file' command needed by
    2297   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
    2298   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
    2299   lt_cv_file_magic_cmd='$OBJDUMP -f'
     2446  # func_win32_libid shell function, so use a weaker test based on 'objdump',
     2447  # unless we find 'file', for example because we are cross-compiling.
     2448  if ( file / ) >/dev/null 2>&1; then
     2449    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
     2450    lt_cv_file_magic_cmd='func_win32_libid'
     2451  else
     2452    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
     2453    lt_cv_file_magic_cmd='$OBJDUMP -f'
     2454  fi
    23002455  ;;
    23012456
     
    23422497  ;;
    23432498
    2344 interix3*)
     2499interix[[3-9]]*)
    23452500  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
    23462501  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
     
    23892544
    23902545osf3* | osf4* | osf5*)
     2546  lt_cv_deplibs_check_method=pass_all
     2547  ;;
     2548
     2549rdos*)
    23912550  lt_cv_deplibs_check_method=pass_all
    23922551  ;;
     
    24442603else
    24452604  lt_nm_to_check="${ac_tool_prefix}nm"
    2446   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
     2605  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    24472606    lt_nm_to_check="$lt_nm_to_check nm"
    24482607  fi
     
    26602819
    26612820# Code to be used in simple compile tests
    2662 lt_simple_compile_test_code="int some_variable = 0;\n"
     2821lt_simple_compile_test_code="int some_variable = 0;"
    26632822
    26642823# Code to be used in simple link tests
    2665 lt_simple_link_test_code='int main(){return(0);}\n'
     2824lt_simple_link_test_code='int main(){return(0);}'
    26662825
    26672826_LT_AC_SYS_COMPILER
     
    26992858  ;;
    27002859
    2701 aix4* | aix5*)
     2860aix[[4-9]]*)
    27022861  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    27032862    test "$enable_shared" = yes && enable_static=no
     
    27562915_LT_AC_TAGVAR(postdeps, $1)=
    27572916_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
     2917_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
    27582918
    27592919# Source file extension for C++ test sources.
     
    27652925
    27662926# Code to be used in simple compile tests
    2767 lt_simple_compile_test_code="int some_variable = 0;\n"
     2927lt_simple_compile_test_code="int some_variable = 0;"
    27682928
    27692929# Code to be used in simple link tests
    2770 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
     2930lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
    27712931
    27722932# ltmain only uses $CC for tagged configurations so make sure $CC is set.
     
    28653025    _LT_AC_TAGVAR(ld_shlibs, $1)=no
    28663026    ;;
    2867   aix4* | aix5*)
     3027  aix[[4-9]]*)
    28683028    if test "$host_cpu" = ia64; then
    28693029      # On IA64, the linker does run time linking by default, so we don't
     
    28783038      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
    28793039      # need to do runtime linking.
    2880       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
     3040      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
    28813041        for ld_flag in $LDFLAGS; do
    28823042          case $ld_flag in
     
    29143074        then
    29153075          # We have reworked collect2
    2916           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
     3076          :
    29173077        else
    29183078          # We have old collect2
     
    30243184  ;;
    30253185      darwin* | rhapsody*)
    3026         case $host_os in
    3027         rhapsody* | darwin1.[[012]])
    3028          _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
    3029          ;;
    3030        *) # Darwin 1.3 on
    3031          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    3032            _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
    3033          else
    3034            case ${MACOSX_DEPLOYMENT_TARGET} in
    3035              10.[[012]])
    3036                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
    3037                ;;
    3038              10.*)
    3039                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
    3040                ;;
    3041            esac
    3042          fi
    3043          ;;
    3044         esac
    30453186      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    30463187      _LT_AC_TAGVAR(hardcode_direct, $1)=no
     
    30493190      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
    30503191      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    3051 
    3052     if test "$GXX" = yes ; then
    3053       lt_int_apple_cc_single_mod=no
     3192      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
     3193      if test "$GXX" = yes ; then
    30543194      output_verbose_link_cmd='echo'
    3055       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
    3056        lt_int_apple_cc_single_mod=yes
     3195      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
     3196      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
     3197      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
     3198      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
     3199      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
     3200        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
     3201        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
    30573202      fi
    3058       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    3059        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    3060       else
    3061           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    3062         fi
    3063         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    3064         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    3065           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    3066             _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    3067           else
    3068             _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    3069           fi
    3070             _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    30713203      else
    30723204      case $cc_basename in
    30733205        xlc*)
    30743206         output_verbose_link_cmd='echo'
    3075           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
     3207          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
    30763208          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    30773209          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    3078           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     3210          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    30793211          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    30803212          ;;
     
    31593291
    31603292      case $host_cpu in
    3161       hppa*64*|ia64*)
    3162         _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
    3163         ;;
     3293      hppa*64*|ia64*) ;;
    31643294      *)
    31653295        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     
    32293359    esac
    32303360    ;;
    3231   interix3*)
     3361  interix[[3-9]]*)
    32323362    _LT_AC_TAGVAR(hardcode_direct, $1)=no
    32333363    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     
    33213451        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
    33223452        ;;
    3323       pgCC*)
     3453      pgCC* | pgcpp*)
    33243454        # Portland Group C++ compiler
    33253455        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
     
    33483478        # dependencies.
    33493479        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
     3480        ;;
     3481      *)
     3482        case `$CC -V 2>&1 | sed 5q` in
     3483        *Sun\ C*)
     3484          # Sun C++ 5.9
     3485          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
     3486          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     3487          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
     3488          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     3489          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     3490
     3491          # Not sure whether something based on
     3492          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
     3493          # would be better.
     3494          output_verbose_link_cmd='echo'
     3495
     3496          # Archives containing C++ object files must be created using
     3497          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
     3498          # necessary to make sure instantiated templates are included
     3499          # in the archive.
     3500          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
     3501          ;;
     3502        esac
    33503503        ;;
    33513504    esac
     
    33873540    ;;
    33883541  openbsd*)
    3389     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    3390     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    3391     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
    3392     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    3393     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    3394       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
    3395       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    3396       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     3542    if test -f /usr/libexec/ld.so; then
     3543      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
     3544      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     3545      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
     3546      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     3547      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     3548        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
     3549        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     3550        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     3551      fi
     3552      output_verbose_link_cmd='echo'
     3553    else
     3554      _LT_AC_TAGVAR(ld_shlibs, $1)=no
    33973555    fi
    3398     output_verbose_link_cmd='echo'
    33993556    ;;
    34003557  osf3*)
     
    35583715          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
    35593716          *)
    3560             # The C++ compiler is used as linker so we must use $wl
    3561             # flag to pass the commands to the underlying system
    3562             # linker. We must also pass each convience library through
    3563             # to the system linker between allextract/defaultextract.
    3564             # The C++ compiler will combine linker options so we
    3565             # cannot just pass the convience library names through
    3566             # without $wl.
     3717            # The compiler driver will combine and reorder linker options,
     3718            # but understands `-z linker_flag'.
    35673719            # Supported since Solaris 2.6 (maybe 2.5.1?)
    3568             _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
     3720            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
    35693721            ;;
    35703722        esac
     
    36133765
    36143766          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
     3767          case $host_os in
     3768          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
     3769          *)
     3770            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     3771            ;;
     3772          esac
    36153773        fi
    36163774        ;;
     
    37283886# Parse the compiler output and extract the necessary
    37293887# objects, libraries and library flags.
    3730 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
     3888AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
     3889[AC_REQUIRE([LT_AC_PROG_SED])dnl
    37313890dnl we can't use the lt_simple_compile_test_code here,
    37323891dnl because it contains code intended for an executable,
     
    38534012$rm -f confest.$objext
    38544013
     4014_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
     4015if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
     4016  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
     4017fi
     4018
    38554019# PORTME: override above test on systems where it is broken
    38564020ifelse([$1],[CXX],
    38574021[case $host_os in
    3858 interix3*)
     4022interix[[3-9]]*)
    38594023  # Interix 3.5 installs completely hosed .la files for C++, so rather than
    38604024  # hack all around it, let's just trust "g++" to DTRT.
     
    38644028  ;;
    38654029
     4030linux*)
     4031  case `$CC -V 2>&1 | sed 5q` in
     4032  *Sun\ C*)
     4033    # Sun C++ 5.9
     4034    #
     4035    # The more standards-conforming stlport4 library is
     4036    # incompatible with the Cstd library. Avoid specifying
     4037    # it if it's in CXXFLAGS. Ignore libCrun as
     4038    # -library=stlport4 depends on it.
     4039    case " $CXX $CXXFLAGS " in
     4040    *" -library=stlport4 "*)
     4041      solaris_use_stlport4=yes
     4042      ;;
     4043    esac
     4044    if test "$solaris_use_stlport4" != yes; then
     4045      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
     4046    fi
     4047    ;;
     4048  esac
     4049  ;;
     4050
    38664051solaris*)
    38674052  case $cc_basename in
    38684053  CC*)
     4054    # The more standards-conforming stlport4 library is
     4055    # incompatible with the Cstd library. Avoid specifying
     4056    # it if it's in CXXFLAGS. Ignore libCrun as
     4057    # -library=stlport4 depends on it.
     4058    case " $CXX $CXXFLAGS " in
     4059    *" -library=stlport4 "*)
     4060      solaris_use_stlport4=yes
     4061      ;;
     4062    esac
     4063
    38694064    # Adding this requires a known-good setup of shared libraries for
    38704065    # Sun compiler versions before 5.6, else PIC objects from an old
    38714066    # archive will be linked into the output, leading to subtle bugs.
    3872     _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
     4067    if test "$solaris_use_stlport4" != yes; then
     4068      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
     4069    fi
    38734070    ;;
    38744071  esac
     
    38764073esac
    38774074])
    3878 
    38794075case " $_LT_AC_TAGVAR(postdeps, $1) " in
    38804076*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
     
    39194115
    39204116# Code to be used in simple compile tests
    3921 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
     4117lt_simple_compile_test_code="\
     4118      subroutine t
     4119      return
     4120      end
     4121"
    39224122
    39234123# Code to be used in simple link tests
    3924 lt_simple_link_test_code="      program t\n      end\n"
     4124lt_simple_link_test_code="\
     4125      program t
     4126      end
     4127"
    39254128
    39264129# ltmain only uses $CC for tagged configurations so make sure $CC is set.
     
    39544157  fi
    39554158  ;;
    3956 aix4* | aix5*)
     4159aix[[4-9]]*)
    39574160  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    39584161    test "$enable_shared" = yes && enable_static=no
     
    40014204
    40024205# Code to be used in simple compile tests
    4003 lt_simple_compile_test_code="class foo {}\n"
     4206lt_simple_compile_test_code="class foo {}"
    40044207
    40054208# Code to be used in simple link tests
    4006 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
     4209lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
    40074210
    40084211# ltmain only uses $CC for tagged configurations so make sure $CC is set.
     
    40574260
    40584261# Code to be used in simple compile tests
    4059 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
     4262lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
    40604263
    40614264# Code to be used in simple link tests
     
    41314334    _LT_AC_TAGVAR(postdeps, $1) \
    41324335    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
     4336    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
    41334337    _LT_AC_TAGVAR(archive_cmds, $1) \
    41344338    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
     
    41464350    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
    41474351    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
     4352    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
    41484353    _LT_AC_TAGVAR(exclude_expsyms, $1) \
    41494354    _LT_AC_TAGVAR(include_expsyms, $1); do
     
    41924397# NOTE: Changes made to this file will be lost: look at ltmain.sh.
    41934398#
    4194 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
     4399# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
    41954400# Free Software Foundation, Inc.
    41964401#
     
    44294634postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
    44304635
     4636# The directories searched by this compiler when creating a shared
     4637# library
     4638compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
     4639
    44314640# The library search path used internally by the compiler when linking
    44324641# a shared library.
     
    45174726
    45184727# Fix the shell variable \$srcfile for the compiler.
    4519 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
     4728fix_srcfile_path=$lt_fix_srcfile_path
    45204729
    45214730# Set to yes if exported symbols are required.
     
    46004809AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
    46014810[AC_REQUIRE([AC_CANONICAL_HOST])
     4811AC_REQUIRE([LT_AC_PROG_SED])
    46024812AC_REQUIRE([AC_PROG_NM])
    46034813AC_REQUIRE([AC_OBJEXT])
     
    47774987    cat conftest.$ac_ext >&5
    47784988  fi
    4779   rm -f conftest* conftst*
     4989  rm -rf conftest* conftst*
    47804990
    47814991  # Do not use the global_symbol_pipe unless it works.
     
    48265036      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
    48275037      ;;
    4828     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     5038    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    48295039      # PIC is the default for these OSes.
    48305040      ;;
    4831     mingw* | os2* | pw32*)
     5041    mingw* | cygwin* | os2* | pw32*)
    48325042      # This hack is so that the source file can tell whether it is being
    48335043      # built for inclusion in a dll (and should export symbols for example).
    4834       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
     5044      # Although the cygwin gcc ignores -fPIC, still need this for old-style
     5045      # (--disable-auto-import) libraries
     5046      m4_if([$1], [GCJ], [],
     5047        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
    48355048      ;;
    48365049    darwin* | rhapsody*)
     
    48435056      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
    48445057      ;;
    4845     interix3*)
     5058    interix[[3-9]]*)
    48465059      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
    48475060      # Instead, we relocate shared libraries at runtime.
     
    48695082  else
    48705083    case $host_os in
    4871       aix4* | aix5*)
     5084      aix[[4-9]]*)
    48725085        # All AIX code is PIC.
    48735086        if test "$host_cpu" = ia64; then
     
    49655178            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
    49665179            ;;
    4967           pgCC*)
     5180          pgCC* | pgcpp*)
    49685181            # Portland Group C++ compiler.
    49695182            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     
    49795192            ;;
    49805193          *)
     5194            case `$CC -V 2>&1 | sed 5q` in
     5195            *Sun\ C*)
     5196              # Sun C++ 5.9
     5197              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     5198              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     5199              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
     5200              ;;
     5201            esac
    49815202            ;;
    49825203        esac
     
    50995320      ;;
    51005321
    5101     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     5322    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    51025323      # PIC is the default for these OSes.
    51035324      ;;
    51045325
    5105     mingw* | pw32* | os2*)
     5326    mingw* | cygwin* | pw32* | os2*)
    51065327      # This hack is so that the source file can tell whether it is being
    51075328      # built for inclusion in a dll (and should export symbols for example).
    5108       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
     5329      # Although the cygwin gcc ignores -fPIC, still need this for old-style
     5330      # (--disable-auto-import) libraries
     5331      m4_if([$1], [GCJ], [],
     5332        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
    51095333      ;;
    51105334
     
    51155339      ;;
    51165340
    5117     interix3*)
     5341    interix[[3-9]]*)
    51185342      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
    51195343      # Instead, we relocate shared libraries at runtime.
     
    51735397       ;;
    51745398
    5175     mingw* | pw32* | os2*)
     5399    mingw* | cygwin* | pw32* | os2*)
    51765400      # This hack is so that the source file can tell whether it is being
    51775401      # built for inclusion in a dll (and should export symbols for example).
    5178       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
     5402      m4_if([$1], [GCJ], [],
     5403        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
    51795404      ;;
    51805405
     
    52255450        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    52265451        ;;
     5452      *)
     5453        case `$CC -V 2>&1 | sed 5q` in
     5454        *Sun\ C*)
     5455          # Sun C 5.9
     5456          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     5457          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     5458          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5459          ;;
     5460        *Sun\ F*)
     5461          # Sun Fortran 8.3 passes all unrecognized flags to the linker
     5462          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     5463          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     5464          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
     5465          ;;
     5466        esac
     5467        ;;
    52275468      esac
    52285469      ;;
     
    52315472      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    52325473      # All OSF/1 code is PIC.
     5474      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
     5475      ;;
     5476
     5477    rdos*)
    52335478      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    52345479      ;;
     
    52935538if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
    52945539  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
    5295     _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
     5540    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
    52965541    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
    52975542    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
     
    53175562wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
    53185563AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
    5319   _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
     5564  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
    53205565  $lt_tmp_static_flag,
    53215566  [],
     
    53285573# See if the linker supports building shared libraries.
    53295574AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
    5330 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
     5575[AC_REQUIRE([LT_AC_PROG_SED])dnl
     5576AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
    53315577ifelse([$1],[CXX],[
    53325578  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    53335579  case $host_os in
    5334   aix4* | aix5*)
     5580  aix[[4-9]]*)
    53355581    # If we're using GNU nm, then we don't want the "-C" option.
    53365582    # -C means demangle to AIX nm, but means don't demangle with GNU nm
     
    53455591  ;;
    53465592  cygwin* | mingw*)
    5347     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
     5593    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
    53485594  ;;
    53495595  linux* | k*bsd*-gnu)
     
    53545600  ;;
    53555601  esac
     5602  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
    53565603],[
    53575604  runpath_var=
     
    53845631  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
    53855632  # as well as any symbol that contains `d'.
    5386   _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
     5633  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
    53875634  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
    53885635  # platforms (ab)use it in PIC code, but their linkers get confused if
     
    53905637  # rely on this symbol name, it's probably fine to never include it in
    53915638  # preloaded symbol tables.
     5639  # Exclude shared library initialization/finalization symbols.
     5640dnl Note also adjust exclude_expsyms for C++ above.
    53925641  extract_expsyms_cmds=
    53935642  # Just being paranoid about ensuring that cc_basename is set.
     
    54395688    # See if GNU ld supports shared libraries.
    54405689    case $host_os in
    5441     aix3* | aix4* | aix5*)
     5690    aix[[3-9]]*)
    54425691      # On AIX/PPC, the GNU linker is very broken
    54435692      if test "$host_cpu" != ia64; then
     
    54875736      _LT_AC_TAGVAR(always_export_symbols, $1)=no
    54885737      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    5489       _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
     5738      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
    54905739
    54915740      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
     
    55055754      ;;
    55065755
    5507     interix3*)
     5756    interix[[3-9]]*)
    55085757      _LT_AC_TAGVAR(hardcode_direct, $1)=no
    55095758      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     
    55205769      ;;
    55215770
    5522     linux* | k*bsd*-gnu)
     5771    gnu* | linux* | k*bsd*-gnu)
    55235772      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    55245773        tmp_addflag=
     
    55385787          tmp_addflag=' -nofor_main' ;;
    55395788        esac
    5540         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     5789        case `$CC -V 2>&1 | sed 5q` in
     5790        *Sun\ C*)                       # Sun C 5.9
     5791          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     5792          tmp_sharedflag='-G' ;;
     5793        *Sun\ F*)                       # Sun Fortran 8.3
     5794          tmp_sharedflag='-G' ;;
     5795        *)
     5796          tmp_sharedflag='-shared' ;;
     5797        esac
     5798        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    55415799
    55425800        if test $supports_anon_versioning = yes; then
     
    55445802  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    55455803  $echo "local: *; };" >> $output_objdir/$libname.ver~
    5546           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     5804          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    55475805        fi
    55485806        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
     
    55855843    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
    55865844      case `$LD -v 2>&1` in
    5587         *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
     5845        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
    55885846        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    55895847        cat <<_LT_EOF 1>&2
     
    56505908      ;;
    56515909
    5652     aix4* | aix5*)
     5910    aix[[4-9]]*)
    56535911      if test "$host_cpu" = ia64; then
    56545912        # On IA64, the linker does run time linking by default, so we don't
     
    56705928        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
    56715929        # need to do runtime linking.
    5672         case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
     5930        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
    56735931          for ld_flag in $LDFLAGS; do
    56745932          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
     
    57045962          then
    57055963          # We have reworked collect2
    5706           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
     5964          :
    57075965          else
    57085966          # We have old collect2
     
    57976055      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
    57986056      # FIXME: Should let the user specify the lib program.
    5799       _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
     6057      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
    58006058      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
    58016059      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     
    58306088    if test "$GCC" = yes ; then
    58316089        output_verbose_link_cmd='echo'
    5832         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    5833       _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    5834       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    5835       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    5836       _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     6090        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
     6091        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
     6092        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
     6093        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
    58376094    else
    58386095      case $cc_basename in
    58396096        xlc*)
    58406097         output_verbose_link_cmd='echo'
    5841          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
     6098         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
    58426099         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    58436100          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    5844          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     6101         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    58456102          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    58466103          ;;
     
    60046261
    60056262    openbsd*)
    6006       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    6007       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    6008       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    6009         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    6010         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
    6011         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    6012         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     6263      if test -f /usr/libexec/ld.so; then
     6264        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
     6265        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     6266        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     6267          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     6268          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
     6269          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     6270          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     6271        else
     6272          case $host_os in
     6273           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
     6274             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     6275             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     6276             ;;
     6277           *)
     6278             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     6279             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     6280             ;;
     6281          esac
     6282        fi
    60136283      else
    6014        case $host_os in
    6015          openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
    6016            _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    6017            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    6018            ;;
    6019          *)
    6020            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    6021            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    6022            ;;
    6023        esac
     6284        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    60246285      fi
    60256286      ;;
     
    60806341      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
    60816342      *)
    6082         # The compiler driver will combine linker options so we
    6083         # cannot just pass the convience library names through
    6084         # without $wl, iff we do not link with $LD.
    6085         # Luckily, gcc supports the same syntax we need for Sun Studio.
     6343        # The compiler driver will combine and reorder linker options,
     6344        # but understands `-z linker_flag'.  GCC discards it without `$wl',
     6345        # but is careful enough not to reorder.
    60866346        # Supported since Solaris 2.6 (maybe 2.5.1?)
    6087         case $wlarc in
    6088         '')
    6089           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
    6090         *)
    6091           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
    6092         esac ;;
     6347        if test "$GCC" = yes; then
     6348          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     6349        else
     6350          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
     6351        fi
     6352        ;;
    60936353      esac
    60946354      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
     
    61476407      ;;
    61486408
    6149     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
     6409    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
    61506410      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
    61516411      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
     
    62226482      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
    62236483      $rm conftest*
    6224       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     6484      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    62256485
    62266486      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
     
    63256585])
    63266586
     6587
     6588# Cheap backport of AS_EXECUTABLE_P and required macros
     6589# from Autoconf 2.59; we should not use $as_executable_p directly.
     6590
     6591# _AS_TEST_PREPARE
     6592# ----------------
     6593m4_ifndef([_AS_TEST_PREPARE],
     6594[m4_defun([_AS_TEST_PREPARE],
     6595[if test -x / >/dev/null 2>&1; then
     6596  as_executable_p='test -x'
     6597else
     6598  as_executable_p='test -f'
     6599fi
     6600])])# _AS_TEST_PREPARE
     6601
     6602# AS_EXECUTABLE_P
     6603# ---------------
     6604# Check whether a file is executable.
     6605m4_ifndef([AS_EXECUTABLE_P],
     6606[m4_defun([AS_EXECUTABLE_P],
     6607[AS_REQUIRE([_AS_TEST_PREPARE])dnl
     6608$as_executable_p $1[]dnl
     6609])])# AS_EXECUTABLE_P
     6610
    63276611# NOTE: This macro has been submitted for inclusion into   #
    63286612#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
     
    63456629  for lt_ac_prog in sed gsed; do
    63466630    for ac_exec_ext in '' $ac_executable_extensions; do
    6347       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
     6631      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
    63486632        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
    63496633      fi
     
    63516635  done
    63526636done
     6637IFS=$as_save_IFS
    63536638lt_ac_max=0
    63546639lt_ac_count=0
     
    63836668])
    63846669SED=$lt_cv_path_SED
     6670AC_SUBST([SED])
    63856671AC_MSG_RESULT([$SED])
    63866672])
    63876673
    6388 # Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
     6674# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
    63896675#
    63906676# This file is free software; the Free Software Foundation
     
    64016687dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
    64026688dnl require some minimum version.  Point them to the right macro.
    6403 m4_if([$1], [1.10], [],
     6689m4_if([$1], [1.10.1], [],
    64046690      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
    64056691])
     
    64176703# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
    64186704AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
    6419 [AM_AUTOMAKE_VERSION([1.10])dnl
    6420 _AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
     6705[AM_AUTOMAKE_VERSION([1.10.1])dnl
     6706m4_ifndef([AC_AUTOCONF_VERSION],
     6707  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
     6708_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
    64216709
    64226710# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
     
    66906978  # Grep'ing the whole file is not good either: AIX grep has a line
    66916979  # limit of 2048, but all sed's we know have understand at least 4000.
    6692   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
     6980  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
    66936981    dirpart=`AS_DIRNAME("$mf")`
    66946982  else
     
    67507038
    67517039# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
    6752 # 2005, 2006 Free Software Foundation, Inc.
     7040# 2005, 2006, 2008 Free Software Foundation, Inc.
    67537041#
    67547042# This file is free software; the Free Software Foundation
     
    67567044# with or without modifications, as long as this notice is preserved.
    67577045
    6758 # serial 12
     7046# serial 13
    67597047
    67607048# This macro actually does too much.  Some checks are only needed if
     
    68617149AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
    68627150[# Compute $1's index in $config_headers.
     7151_am_arg=$1
    68637152_am_stamp_count=1
    68647153for _am_header in $config_headers :; do
    68657154  case $_am_header in
    6866     $1 | $1:* )
     7155    $_am_arg | $_am_arg:* )
    68677156      break ;;
    68687157    * )
     
    68707159  esac
    68717160done
    6872 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
     7161echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
    68737162
    68747163# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
     
    71427431# _AM_SUBST_NOTMAKE(VARIABLE)
    71437432# ---------------------------
    7144 # Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
     7433# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
    71457434# This macro is traced by Automake.
    71467435AC_DEFUN([_AM_SUBST_NOTMAKE])
  • release/3/xmi/libxmi-1.2/config.guess

    r5425 r11312  
    22# Attempt to guess a canonical system name.
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
    5 #   Inc.
    6 
    7 timestamp='2006-07-02'
     4#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
     5#   Free Software Foundation, Inc.
     6
     7timestamp='2008-01-23'
    88
    99# This file is free software; you can redistribute it and/or modify it
     
    5757
    5858Originally written by Per Bothner.
    59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    60 Free Software Foundation, Inc.
     59Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
     602002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    6161
    6262This is free software; see the source for copying conditions.  There is NO
     
    162162            sh3el) machine=shl-unknown ;;
    163163            sh3eb) machine=sh-unknown ;;
     164            sh5el) machine=sh5le-unknown ;;
    164165            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
    165166        esac
     
    330331        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    331332        exit ;;
    332     i86pc:SunOS:5.*:*)
     333    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
    333334        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    334335        exit ;;
     
    532533        fi
    533534        exit ;;
    534     *:AIX:*:[45])
     535    *:AIX:*:[456])
    535536        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
    536537        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
     
    781782        echo ${UNAME_MACHINE}-pc-cygwin
    782783        exit ;;
    783     i*:MINGW*:*)
     784    *:MINGW*:*)
    784785        echo ${UNAME_MACHINE}-pc-mingw32
    785786        exit ;;
     
    791792        echo ${UNAME_MACHINE}-pc-pw32
    792793        exit ;;
    793     x86:Interix*:[3456]*)
    794         echo i586-pc-interix${UNAME_RELEASE}
    795         exit ;;
    796     EM64T:Interix*:[3456]*)
    797         echo x86_64-unknown-interix${UNAME_RELEASE}
    798         exit ;;
     794    *:Interix*:[3456]*)
     795        case ${UNAME_MACHINE} in
     796            x86)
     797                echo i586-pc-interix${UNAME_RELEASE}
     798                exit ;;
     799            EM64T | authenticamd)
     800                echo x86_64-unknown-interix${UNAME_RELEASE}
     801                exit ;;
     802            IA64)
     803                echo ia64-unknown-interix${UNAME_RELEASE}
     804                exit ;;
     805        esac ;;
    799806    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    800807        echo i${UNAME_MACHINE}-pc-mks
     
    830837        exit ;;
    831838    arm*:Linux:*:*)
    832         echo ${UNAME_MACHINE}-unknown-linux-gnu
     839        eval $set_cc_for_build
     840        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
     841            | grep -q __ARM_EABI__
     842        then
     843            echo ${UNAME_MACHINE}-unknown-linux-gnu
     844        else
     845            echo ${UNAME_MACHINE}-unknown-linux-gnueabi
     846        fi
    833847        exit ;;
    834848    avr32*:Linux:*:*)
     
    950964    x86_64:Linux:*:*)
    951965        echo x86_64-unknown-linux-gnu
     966        exit ;;
     967    xtensa*:Linux:*:*)
     968        echo ${UNAME_MACHINE}-unknown-linux-gnu
    952969        exit ;;
    953970    i*86:Linux:*:*)
     
    12091226        echo sx6-nec-superux${UNAME_RELEASE}
    12101227        exit ;;
     1228    SX-7:SUPER-UX:*:*)
     1229        echo sx7-nec-superux${UNAME_RELEASE}
     1230        exit ;;
     1231    SX-8:SUPER-UX:*:*)
     1232        echo sx8-nec-superux${UNAME_RELEASE}
     1233        exit ;;
     1234    SX-8R:SUPER-UX:*:*)
     1235        echo sx8r-nec-superux${UNAME_RELEASE}
     1236        exit ;;
    12111237    Power*:Rhapsody:*:*)
    12121238        echo powerpc-apple-rhapsody${UNAME_RELEASE}
     
    14591485download the most up to date version of the config scripts from
    14601486
    1461   http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
     1487  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
    14621488and
    1463   http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
     1489  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
    14641490
    14651491If the version you run ($0) is already up to date, please
  • release/3/xmi/libxmi-1.2/config.sub

    r5425 r11312  
    22# Configuration validation subroutine script.
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
    5 #   Inc.
    6 
    7 timestamp='2006-09-20'
     4#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
     5#   Free Software Foundation, Inc.
     6
     7timestamp='2008-01-16'
    88
    99# This file is (in principle) common to ALL GNU software.
     
    7373GNU config.sub ($timestamp)
    7474
    75 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    76 Free Software Foundation, Inc.
     75Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
     762002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    7777
    7878This is free software; see the source for copying conditions.  There is NO
     
    246246        | c4x | clipper \
    247247        | d10v | d30v | dlx | dsp16xx \
    248         | fr30 | frv \
     248        | fido | fr30 | frv \
    249249        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
    250250        | i370 | i860 | i960 | ia64 \
    251251        | ip2k | iq2000 \
    252252        | m32c | m32r | m32rle | m68000 | m68k | m88k \
    253         | maxq | mb | microblaze | mcore \
     253        | maxq | mb | microblaze | mcore | mep \
    254254        | mips | mipsbe | mipseb | mipsel | mipsle \
    255255        | mips16 \
     
    325325        | d10v-* | d30v-* | dlx-* \
    326326        | elxsi-* \
    327         | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
     327        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
    328328        | h8300-* | h8500-* \
    329329        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
     
    370370        | we32k-* \
    371371        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
    372         | xstormy16-* | xtensa-* \
     372        | xstormy16-* | xtensa*-* \
    373373        | ymp-* \
    374374        | z8k-*)
     375                ;;
     376        # Recognize the basic CPU types without company name, with glob match.
     377        xtensa*)
     378                basic_machine=$basic_machine-unknown
    375379                ;;
    376380        # Recognize the various machine names and aliases which stand
     
    444448                os=-dynix
    445449                ;;
     450        blackfin)
     451                basic_machine=bfin-unknown
     452                os=-linux
     453                ;;
     454        blackfin-*)
     455                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
     456                os=-linux
     457                ;;
    446458        c90)
    447459                basic_machine=c90-cray
     
    476488                os=-unicosmp
    477489                ;;
    478         cr16c)
    479                 basic_machine=cr16c-unknown
     490        cr16)
     491                basic_machine=cr16-unknown
    480492                os=-elf
    481493                ;;
     
    669681                os=-sysv
    670682                ;;
     683        m68knommu)
     684                basic_machine=m68k-unknown
     685                os=-linux
     686                ;;
     687        m68knommu-*)
     688                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
     689                os=-linux
     690                ;;
    671691        m88k-omron*)
    672692                basic_machine=m88k-omron
     
    683703                basic_machine=i386-pc
    684704                os=-mingw32
     705                ;;
     706        mingw32ce)
     707                basic_machine=arm-unknown
     708                os=-mingw32ce
    685709                ;;
    686710        miniframe)
     
    810834                os=-osf
    811835                ;;
     836        parisc)
     837                basic_machine=hppa-unknown
     838                os=-linux
     839                ;;
     840        parisc-*)
     841                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
     842                os=-linux
     843                ;;
    812844        pbd)
    813845                basic_machine=sparc-tti
     
    926958                os=-hms
    927959                ;;
     960        sh5el)
     961                basic_machine=sh5le-unknown
     962                ;;
    928963        sh64)
    929964                basic_machine=sh64-unknown
     
    10141049                basic_machine=tic6x-unknown
    10151050                os=-coff
     1051                ;;
     1052        tile*)
     1053                basic_machine=tile-unknown
     1054                os=-linux-gnu
    10161055                ;;
    10171056        tx39)
     
    12201259              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
    12211260              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
    1222               | -skyos* | -haiku* | -rdos* | -toppers*)
     1261              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
    12231262        # Remember, each alternative MUST END IN *, to match a version number.
    12241263                ;;
     
    14151454                os=-aout
    14161455                ;;
     1456        mep-*)
     1457                os=-elf
     1458                ;;
    14171459        mips*-cisco)
    14181460                os=-elf
  • release/3/xmi/libxmi-1.2/depcomp

    r5425 r11312  
    22# depcomp - compile a program generating dependencies as side-effects
    33
    4 scriptversion=2006-10-15.18
    5 
    6 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
     4scriptversion=2007-03-29.01
     5
     6# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
    77# Foundation, Inc.
    88
     
    216216  # start of each line; $object doesn't have directory information.
    217217  # Version 6 uses the directory in both cases.
    218   stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
    219   tmpdepfile="$stripped.u"
     218  dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
     219  test "x$dir" = "x$object" && dir=
     220  base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
    220221  if test "$libtool" = yes; then
     222    tmpdepfile1=$dir$base.u
     223    tmpdepfile2=$base.u
     224    tmpdepfile3=$dir.libs/$base.u
    221225    "$@" -Wc,-M
    222226  else
     227    tmpdepfile1=$dir$base.u
     228    tmpdepfile2=$dir$base.u
     229    tmpdepfile3=$dir$base.u
    223230    "$@" -M
    224231  fi
    225232  stat=$?
    226233
    227   if test -f "$tmpdepfile"; then :
    228   else
    229     stripped=`echo "$stripped" | sed 's,^.*/,,'`
    230     tmpdepfile="$stripped.u"
    231   fi
    232 
    233234  if test $stat -eq 0; then :
    234235  else
    235     rm -f "$tmpdepfile"
     236    rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
    236237    exit $stat
    237238  fi
    238239
     240  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
     241  do
     242    test -f "$tmpdepfile" && break
     243  done
    239244  if test -f "$tmpdepfile"; then
    240     outname="$stripped.o"
    241245    # Each line is of the form `foo.o: dependent.h'.
    242246    # Do two passes, one to just change these to
    243247    # `$object: dependent.h' and one to simply `dependent.h:'.
    244     sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
    245     sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
     248    sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
     249    # That's a tab and a space in the [].
     250    sed -e 's,^.*\.[a-z]*:[      ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
    246251  else
    247252    # The sourcefile does not contain any dependencies, so just
  • release/3/xmi/libxmi-1.2/info/Makefile.in

    r5425 r11312  
    1 # Makefile.in generated by automake 1.10 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
    5 # 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
     5# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
    66# This Makefile.in is free software; the Free Software Foundation
    77# gives unlimited permission to copy and/or distribute it,
     
    8383DEFS = @DEFS@
    8484DEPDIR = @DEPDIR@
     85DSYMUTIL = @DSYMUTIL@
    8586ECHO = @ECHO@
    8687ECHO_C = @ECHO_C@
     
    105106MAKEINFO = @MAKEINFO@
    106107MKDIR_P = @MKDIR_P@
     108NMEDIT = @NMEDIT@
    107109OBJEXT = @OBJEXT@
    108110PACKAGE = @PACKAGE@
     
    114116PATH_SEPARATOR = @PATH_SEPARATOR@
    115117RANLIB = @RANLIB@
     118SED = @SED@
    116119SET_MAKE = @SET_MAKE@
    117120SHELL = @SHELL@
     
    184187          esac; \
    185188        done; \
    186         echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  info/Makefile'; \
     189        echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  info/Makefile'; \
    187190        cd $(top_srcdir) && \
    188           $(AUTOMAKE) --foreign  info/Makefile
     191          $(AUTOMAKE) --gnu  info/Makefile
    189192.PRECIOUS: Makefile
    190193Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • release/3/xmi/libxmi-1.2/install-sh

    r4980 r11312  
    11#!/bin/sh
    2 #
    32# install - install a program, script, or datafile
    4 # This comes from X11R5 (mit/util/scripts/install.sh).
    5 #
    6 # Copyright 1991 by the Massachusetts Institute of Technology
    7 #
    8 # Permission to use, copy, modify, distribute, and sell this software and its
    9 # documentation for any purpose is hereby granted without fee, provided that
    10 # the above copyright notice appear in all copies and that both that
    11 # copyright notice and this permission notice appear in supporting
    12 # documentation, and that the name of M.I.T. not be used in advertising or
    13 # publicity pertaining to distribution of the software without specific,
    14 # written prior permission.  M.I.T. makes no representations about the
    15 # suitability of this software for any purpose.  It is provided "as is"
    16 # without express or implied warranty.
     3
     4scriptversion=2006-12-25.00
     5
     6# This originates from X11R5 (mit/util/scripts/install.sh), which was
     7# later released in X11R6 (xc/config/util/install.sh) with the
     8# following copyright and license.
     9#
     10# Copyright (C) 1994 X Consortium
     11#
     12# Permission is hereby granted, free of charge, to any person obtaining a copy
     13# of this software and associated documentation files (the "Software"), to
     14# deal in the Software without restriction, including without limitation the
     15# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
     16# sell copies of the Software, and to permit persons to whom the Software is
     17# furnished to do so, subject to the following conditions:
     18#
     19# The above copyright notice and this permission notice shall be included in
     20# all copies or substantial portions of the Software.
     21#
     22# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     23# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     24# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
     25# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
     26# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
     27# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
     28#
     29# Except as contained in this notice, the name of the X Consortium shall not
     30# be used in advertising or otherwise to promote the sale, use or other deal-
     31# ings in this Software without prior written authorization from the X Consor-
     32# tium.
     33#
     34#
     35# FSF changes to this file are in the public domain.
    1736#
    1837# Calling this script install-sh is preferred over install.sh, to prevent
     
    2140#
    2241# This script is compatible with the BSD install script, but was written
    23 # from scratch.  It can only install one file at a time, a restriction
    24 # shared with many OS's install programs.
    25 
     42# from scratch.
     43
     44nl='
     45'
     46IFS=" ""        $nl"
    2647
    2748# set DOITPROG to echo to test this script
    2849
    2950# Don't use :- since 4.3BSD and earlier shells don't like it.
    30 doit="${DOITPROG-}"
    31 
    32 
    33 # put in absolute paths if you don't have them in your path; or use env. vars.
    34 
    35 mvprog="${MVPROG-mv}"
    36 cpprog="${CPPROG-cp}"
    37 chmodprog="${CHMODPROG-chmod}"
    38 chownprog="${CHOWNPROG-chown}"
    39 chgrpprog="${CHGRPPROG-chgrp}"
    40 stripprog="${STRIPPROG-strip}"
    41 rmprog="${RMPROG-rm}"
    42 mkdirprog="${MKDIRPROG-mkdir}"
    43 
    44 transformbasename=""
    45 transform_arg=""
    46 instcmd="$mvprog"
    47 chmodcmd="$chmodprog 0755"
    48 chowncmd=""
    49 chgrpcmd=""
    50 stripcmd=""
     51doit=${DOITPROG-}
     52if test -z "$doit"; then
     53  doit_exec=exec
     54else
     55  doit_exec=$doit
     56fi
     57
     58# Put in absolute file names if you don't have them in your path;
     59# or use environment vars.
     60
     61chgrpprog=${CHGRPPROG-chgrp}
     62chmodprog=${CHMODPROG-chmod}
     63chownprog=${CHOWNPROG-chown}
     64cmpprog=${CMPPROG-cmp}
     65cpprog=${CPPROG-cp}
     66mkdirprog=${MKDIRPROG-mkdir}
     67mvprog=${MVPROG-mv}
     68rmprog=${RMPROG-rm}
     69stripprog=${STRIPPROG-strip}
     70
     71posix_glob='?'
     72initialize_posix_glob='
     73  test "$posix_glob" != "?" || {
     74    if (set -f) 2>/dev/null; then
     75      posix_glob=
     76    else
     77      posix_glob=:
     78    fi
     79  }
     80'
     81
     82posix_mkdir=
     83
     84# Desired mode of installed file.
     85mode=0755
     86
     87chgrpcmd=
     88chmodcmd=$chmodprog
     89chowncmd=
     90mvcmd=$mvprog
    5191rmcmd="$rmprog -f"
    52 mvcmd="$mvprog"
    53 src=""
    54 dst=""
    55 dir_arg=""
    56 
    57 while [ x"$1" != x ]; do
    58     case $1 in
    59         -c) instcmd="$cpprog"
    60             shift
    61             continue;;
    62 
    63         -d) dir_arg=true
    64             shift
    65             continue;;
    66 
    67         -m) chmodcmd="$chmodprog $2"
    68             shift
    69             shift
    70             continue;;
    71 
    72         -o) chowncmd="$chownprog $2"
    73             shift
    74             shift
    75             continue;;
    76 
    77         -g) chgrpcmd="$chgrpprog $2"
    78             shift
    79             shift
    80             continue;;
    81 
    82         -s) stripcmd="$stripprog"
    83             shift
    84             continue;;
    85 
    86         -t=*) transformarg=`echo $1 | sed 's/-t=//'`
    87             shift
    88             continue;;
    89 
    90         -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
    91             shift
    92             continue;;
    93 
    94         *)  if [ x"$src" = x ]
     92stripcmd=
     93
     94src=
     95dst=
     96dir_arg=
     97dst_arg=
     98
     99copy_on_change=false
     100no_target_directory=
     101
     102usage="\
     103Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
     104   or: $0 [OPTION]... SRCFILES... DIRECTORY
     105   or: $0 [OPTION]... -t DIRECTORY SRCFILES...
     106   or: $0 [OPTION]... -d DIRECTORIES...
     107
     108In the 1st form, copy SRCFILE to DSTFILE.
     109In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
     110In the 4th, create DIRECTORIES.
     111
     112Options:
     113     --help     display this help and exit.
     114     --version  display version info and exit.
     115
     116  -c            (ignored)
     117  -C            install only if different (preserve the last data modification time)
     118  -d            create directories instead of installing files.
     119  -g GROUP      $chgrpprog installed files to GROUP.
     120  -m MODE       $chmodprog installed files to MODE.
     121  -o USER       $chownprog installed files to USER.
     122  -s            $stripprog installed files.
     123  -t DIRECTORY  install into DIRECTORY.
     124  -T            report an error if DSTFILE is a directory.
     125
     126Environment variables override the default commands:
     127  CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
     128  RMPROG STRIPPROG
     129"
     130
     131while test $# -ne 0; do
     132  case $1 in
     133    -c) ;;
     134
     135    -C) copy_on_change=true;;
     136
     137    -d) dir_arg=true;;
     138
     139    -g) chgrpcmd="$chgrpprog $2"
     140        shift;;
     141
     142    --help) echo "$usage"; exit $?;;
     143
     144    -m) mode=$2
     145        case $mode in
     146          *' '* | *'    '* | *'
     147'*        | *'*'* | *'?'* | *'['*)
     148            echo "$0: invalid mode: $mode" >&2
     149            exit 1;;
     150        esac
     151        shift;;
     152
     153    -o) chowncmd="$chownprog $2"
     154        shift;;
     155
     156    -s) stripcmd=$stripprog;;
     157
     158    -t) dst_arg=$2
     159        shift;;
     160
     161    -T) no_target_directory=true;;
     162
     163    --version) echo "$0 $scriptversion"; exit $?;;
     164
     165    --) shift
     166        break;;
     167
     168    -*) echo "$0: invalid option: $1" >&2
     169        exit 1;;
     170
     171    *)  break;;
     172  esac
     173  shift
     174done
     175
     176if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
     177  # When -d is used, all remaining arguments are directories to create.
     178  # When -t is used, the destination is already specified.
     179  # Otherwise, the last argument is the destination.  Remove it from $@.
     180  for arg
     181  do
     182    if test -n "$dst_arg"; then
     183      # $@ is not empty: it contains at least $arg.
     184      set fnord "$@" "$dst_arg"
     185      shift # fnord
     186    fi
     187    shift # arg
     188    dst_arg=$arg
     189  done
     190fi
     191
     192if test $# -eq 0; then
     193  if test -z "$dir_arg"; then
     194    echo "$0: no input file specified." >&2
     195    exit 1
     196  fi
     197  # It's OK to call `install-sh -d' without argument.
     198  # This can happen when creating conditional directories.
     199  exit 0
     200fi
     201
     202if test -z "$dir_arg"; then
     203  trap '(exit $?); exit' 1 2 13 15
     204
     205  # Set umask so as not to create temps with too-generous modes.
     206  # However, 'strip' requires both read and write access to temps.
     207  case $mode in
     208    # Optimize common cases.
     209    *644) cp_umask=133;;
     210    *755) cp_umask=22;;
     211
     212    *[0-7])
     213      if test -z "$stripcmd"; then
     214        u_plus_rw=
     215      else
     216        u_plus_rw='% 200'
     217      fi
     218      cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
     219    *)
     220      if test -z "$stripcmd"; then
     221        u_plus_rw=
     222      else
     223        u_plus_rw=,u+rw
     224      fi
     225      cp_umask=$mode$u_plus_rw;;
     226  esac
     227fi
     228
     229for src
     230do
     231  # Protect names starting with `-'.
     232  case $src in
     233    -*) src=./$src;;
     234  esac
     235
     236  if test -n "$dir_arg"; then
     237    dst=$src
     238    dstdir=$dst
     239    test -d "$dstdir"
     240    dstdir_status=$?
     241  else
     242
     243    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
     244    # might cause directories to be created, which would be especially bad
     245    # if $src (and thus $dsttmp) contains '*'.
     246    if test ! -f "$src" && test ! -d "$src"; then
     247      echo "$0: $src does not exist." >&2
     248      exit 1
     249    fi
     250
     251    if test -z "$dst_arg"; then
     252      echo "$0: no destination specified." >&2
     253      exit 1
     254    fi
     255
     256    dst=$dst_arg
     257    # Protect names starting with `-'.
     258    case $dst in
     259      -*) dst=./$dst;;
     260    esac
     261
     262    # If destination is a directory, append the input filename; won't work
     263    # if double slashes aren't ignored.
     264    if test -d "$dst"; then
     265      if test -n "$no_target_directory"; then
     266        echo "$0: $dst_arg: Is a directory" >&2
     267        exit 1
     268      fi
     269      dstdir=$dst
     270      dst=$dstdir/`basename "$src"`
     271      dstdir_status=0
     272    else
     273      # Prefer dirname, but fall back on a substitute if dirname fails.
     274      dstdir=`
     275        (dirname "$dst") 2>/dev/null ||
     276        expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     277             X"$dst" : 'X\(//\)[^/]' \| \
     278             X"$dst" : 'X\(//\)$' \| \
     279             X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
     280        echo X"$dst" |
     281            sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     282                   s//\1/
     283                   q
     284                 }
     285                 /^X\(\/\/\)[^/].*/{
     286                   s//\1/
     287                   q
     288                 }
     289                 /^X\(\/\/\)$/{
     290                   s//\1/
     291                   q
     292                 }
     293                 /^X\(\/\).*/{
     294                   s//\1/
     295                   q
     296                 }
     297                 s/.*/./; q'
     298      `
     299
     300      test -d "$dstdir"
     301      dstdir_status=$?
     302    fi
     303  fi
     304
     305  obsolete_mkdir_used=false
     306
     307  if test $dstdir_status != 0; then
     308    case $posix_mkdir in
     309      '')
     310        # Create intermediate dirs using mode 755 as modified by the umask.
     311        # This is like FreeBSD 'install' as of 1997-10-28.
     312        umask=`umask`
     313        case $stripcmd.$umask in
     314          # Optimize common cases.
     315          *[2367][2367]) mkdir_umask=$umask;;
     316          .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
     317
     318          *[0-7])
     319            mkdir_umask=`expr $umask + 22 \
     320              - $umask % 100 % 40 + $umask % 20 \
     321              - $umask % 10 % 4 + $umask % 2
     322            `;;
     323          *) mkdir_umask=$umask,go-w;;
     324        esac
     325
     326        # With -d, create the new directory with the user-specified mode.
     327        # Otherwise, rely on $mkdir_umask.
     328        if test -n "$dir_arg"; then
     329          mkdir_mode=-m$mode
     330        else
     331          mkdir_mode=
     332        fi
     333
     334        posix_mkdir=false
     335        case $umask in
     336          *[123567][0-7][0-7])
     337            # POSIX mkdir -p sets u+wx bits regardless of umask, which
     338            # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
     339            ;;
     340          *)
     341            tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
     342            trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
     343
     344            if (umask $mkdir_umask &&
     345                exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
    95346            then
    96                 src=$1
     347              if test -z "$dir_arg" || {
     348                   # Check for POSIX incompatibilities with -m.
     349                   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
     350                   # other-writeable bit of parent directory when it shouldn't.
     351                   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
     352                   ls_ld_tmpdir=`ls -ld "$tmpdir"`
     353                   case $ls_ld_tmpdir in
     354                     d????-?r-*) different_mode=700;;
     355                     d????-?--*) different_mode=755;;
     356                     *) false;;
     357                   esac &&
     358                   $mkdirprog -m$different_mode -p -- "$tmpdir" && {
     359                     ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
     360                     test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
     361                   }
     362                 }
     363              then posix_mkdir=:
     364              fi
     365              rmdir "$tmpdir/d" "$tmpdir"
    97366            else
    98                 # this colon is to work around a 386BSD /bin/sh bug
    99                 :
    100                 dst=$1
     367              # Remove any dirs left behind by ancient mkdir implementations.
     368              rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
    101369            fi
    102             shift
    103             continue;;
     370            trap '' 0;;
     371        esac;;
    104372    esac
     373
     374    if
     375      $posix_mkdir && (
     376        umask $mkdir_umask &&
     377        $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
     378      )
     379    then :
     380    else
     381
     382      # The umask is ridiculous, or mkdir does not conform to POSIX,
     383      # or it failed possibly due to a race condition.  Create the
     384      # directory the slow way, step by step, checking for races as we go.
     385
     386      case $dstdir in
     387        /*) prefix='/';;
     388        -*) prefix='./';;
     389        *)  prefix='';;
     390      esac
     391
     392      eval "$initialize_posix_glob"
     393
     394      oIFS=$IFS
     395      IFS=/
     396      $posix_glob set -f
     397      set fnord $dstdir
     398      shift
     399      $posix_glob set +f
     400      IFS=$oIFS
     401
     402      prefixes=
     403
     404      for d
     405      do
     406        test -z "$d" && continue
     407
     408        prefix=$prefix$d
     409        if test -d "$prefix"; then
     410          prefixes=
     411        else
     412          if $posix_mkdir; then
     413            (umask=$mkdir_umask &&
     414             $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
     415            # Don't fail if two instances are running concurrently.
     416            test -d "$prefix" || exit 1
     417          else
     418            case $prefix in
     419              *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
     420              *) qprefix=$prefix;;
     421            esac
     422            prefixes="$prefixes '$qprefix'"
     423          fi
     424        fi
     425        prefix=$prefix/
     426      done
     427
     428      if test -n "$prefixes"; then
     429        # Don't fail if two instances are running concurrently.
     430        (umask $mkdir_umask &&
     431         eval "\$doit_exec \$mkdirprog $prefixes") ||
     432          test -d "$dstdir" || exit 1
     433        obsolete_mkdir_used=true
     434      fi
     435    fi
     436  fi
     437
     438  if test -n "$dir_arg"; then
     439    { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
     440    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
     441    { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
     442      test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
     443  else
     444
     445    # Make a couple of temp file names in the proper directory.
     446    dsttmp=$dstdir/_inst.$$_
     447    rmtmp=$dstdir/_rm.$$_
     448
     449    # Trap to clean up those temp files at exit.
     450    trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
     451
     452    # Copy the file name to the temp name.
     453    (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
     454
     455    # and set any options; do chmod last to preserve setuid bits.
     456    #
     457    # If any of these fail, we abort the whole thing.  If we want to
     458    # ignore errors from any of these, just make sure not to ignore
     459    # errors from the above "$doit $cpprog $src $dsttmp" command.
     460    #
     461    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
     462    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
     463    { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
     464    { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
     465
     466    # If -C, don't bother to copy if it wouldn't change the file.
     467    if $copy_on_change &&
     468       old=`LC_ALL=C ls -dlL "$dst"     2>/dev/null` &&
     469       new=`LC_ALL=C ls -dlL "$dsttmp"  2>/dev/null` &&
     470
     471       eval "$initialize_posix_glob" &&
     472       $posix_glob set -f &&
     473       set X $old && old=:$2:$4:$5:$6 &&
     474       set X $new && new=:$2:$4:$5:$6 &&
     475       $posix_glob set +f &&
     476
     477       test "$old" = "$new" &&
     478       $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
     479    then
     480      rm -f "$dsttmp"
     481    else
     482      # Rename the file to the real destination.
     483      $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
     484
     485      # The rename failed, perhaps because mv can't rename something else
     486      # to itself, or perhaps because mv is so ancient that it does not
     487      # support -f.
     488      {
     489        # Now remove or move aside any old file at destination location.
     490        # We try this two ways since rm can't unlink itself on some
     491        # systems and the destination file might be busy for other
     492        # reasons.  In this case, the final cleanup might fail but the new
     493        # file should still install successfully.
     494        {
     495          test ! -f "$dst" ||
     496          $doit $rmcmd -f "$dst" 2>/dev/null ||
     497          { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
     498            { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
     499          } ||
     500          { echo "$0: cannot unlink or rename $dst" >&2
     501            (exit 1); exit 1
     502          }
     503        } &&
     504
     505        # Now rename the file to the real destination.
     506        $doit $mvcmd "$dsttmp" "$dst"
     507      }
     508    fi || exit 1
     509
     510    trap '' 0
     511  fi
    105512done
    106513
    107 if [ x"$src" = x ]
    108 then
    109         echo "install:  no input file specified"
    110         exit 1
    111 else
    112         true
    113 fi
    114 
    115 if [ x"$dir_arg" != x ]; then
    116         dst=$src
    117         src=""
    118        
    119         if [ -d $dst ]; then
    120                 instcmd=:
    121         else
    122                 instcmd=mkdir
    123         fi
    124 else
    125 
    126 # Waiting for this to be detected by the "$instcmd $src $dsttmp" command
    127 # might cause directories to be created, which would be especially bad
    128 # if $src (and thus $dsttmp) contains '*'.
    129 
    130         if [ -f $src -o -d $src ]
    131         then
    132                 true
    133         else
    134                 echo "install:  $src does not exist"
    135                 exit 1
    136         fi
    137        
    138         if [ x"$dst" = x ]
    139         then
    140                 echo "install:  no destination specified"
    141                 exit 1
    142         else
    143                 true
    144         fi
    145 
    146 # If destination is a directory, append the input filename; if your system
    147 # does not like double slashes in filenames, you may need to add some logic
    148 
    149         if [ -d $dst ]
    150         then
    151                 dst="$dst"/`basename $src`
    152         else
    153                 true
    154         fi
    155 fi
    156 
    157 ## this sed command emulates the dirname command
    158 dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
    159 
    160 # Make sure that the destination directory exists.
    161 #  this part is taken from Noah Friedman's mkinstalldirs script
    162 
    163 # Skip lots of stat calls in the usual case.
    164 if [ ! -d "$dstdir" ]; then
    165 defaultIFS='   
    166 '
    167 IFS="${IFS-${defaultIFS}}"
    168 
    169 oIFS="${IFS}"
    170 # Some sh's can't handle IFS=/ for some reason.
    171 IFS='%'
    172 set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
    173 IFS="${oIFS}"
    174 
    175 pathcomp=''
    176 
    177 while [ $# -ne 0 ] ; do
    178         pathcomp="${pathcomp}${1}"
    179         shift
    180 
    181         if [ ! -d "${pathcomp}" ] ;
    182         then
    183                 $mkdirprog "${pathcomp}"
    184         else
    185                 true
    186         fi
    187 
    188         pathcomp="${pathcomp}/"
    189 done
    190 fi
    191 
    192 if [ x"$dir_arg" != x ]
    193 then
    194         $doit $instcmd $dst &&
    195 
    196         if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
    197         if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
    198         if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
    199         if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
    200 else
    201 
    202 # If we're going to rename the final executable, determine the name now.
    203 
    204         if [ x"$transformarg" = x ]
    205         then
    206                 dstfile=`basename $dst`
    207         else
    208                 dstfile=`basename $dst $transformbasename |
    209                         sed $transformarg`$transformbasename
    210         fi
    211 
    212 # don't allow the sed command to completely eliminate the filename
    213 
    214         if [ x"$dstfile" = x ]
    215         then
    216                 dstfile=`basename $dst`
    217         else
    218                 true
    219         fi
    220 
    221 # Make a temp file name in the proper directory.
    222 
    223         dsttmp=$dstdir/#inst.$$#
    224 
    225 # Move or copy the file name to the temp name
    226 
    227         $doit $instcmd $src $dsttmp &&
    228 
    229         trap "rm -f ${dsttmp}" 0 &&
    230 
    231 # and set any options; do chmod last to preserve setuid bits
    232 
    233 # If any of these fail, we abort the whole thing.  If we want to
    234 # ignore errors from any of these, just make sure not to ignore
    235 # errors from the above "$doit $instcmd $src $dsttmp" command.
    236 
    237         if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
    238         if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
    239         if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
    240         if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
    241 
    242 # Now rename the file to the real destination.
    243 
    244         $doit $rmcmd -f $dstdir/$dstfile &&
    245         $doit $mvcmd $dsttmp $dstdir/$dstfile
    246 
    247 fi &&
    248 
    249 
    250 exit 0
     514# Local variables:
     515# eval: (add-hook 'write-file-hooks 'time-stamp)
     516# time-stamp-start: "scriptversion="
     517# time-stamp-format: "%:y-%02m-%02d.%02H"
     518# time-stamp-end: "$"
     519# End:
  • release/3/xmi/libxmi-1.2/missing

    r4980 r11312  
    11#! /bin/sh
    22# Common stub for a few missing GNU programs while installing.
    3 # Copyright (C) 1996, 1997 Free Software Foundation, Inc.
    4 # Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
     3
     4scriptversion=2006-05-10.23
     5
     6# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
     7#   Free Software Foundation, Inc.
     8# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
    59
    610# This program is free software; you can redistribute it and/or modify
     
    1620# You should have received a copy of the GNU General Public License
    1721# along with this program; if not, write to the Free Software
    18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    19 # 02111-1307, USA.
     22# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
     23# 02110-1301, USA.
     24
     25# As a special exception to the GNU General Public License, if you
     26# distribute this file as part of a program that contains a
     27# configuration script generated by Autoconf, you may include it under
     28# the same distribution terms that you use for the rest of that program.
    2029
    2130if test $# -eq 0; then
     
    2433fi
    2534
    26 case "$1" in
     35run=:
     36sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
     37sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
     38
     39# In the cases where this matters, `missing' is being run in the
     40# srcdir already.
     41if test -f configure.ac; then
     42  configure_ac=configure.ac
     43else
     44  configure_ac=configure.in
     45fi
     46
     47msg="missing on your system"
     48
     49case $1 in
     50--run)
     51  # Try to run requested program, and just exit if it succeeds.
     52  run=
     53  shift
     54  "$@" && exit 0
     55  # Exit code 63 means version mismatch.  This often happens
     56  # when the user try to use an ancient version of a tool on
     57  # a file that requires a minimum version.  In this case we
     58  # we should proceed has if the program had been absent, or
     59  # if --run hadn't been passed.
     60  if test $? = 63; then
     61    run=:
     62    msg="probably too old"
     63  fi
     64  ;;
    2765
    2866  -h|--h|--he|--hel|--help)
     
    3674  -h, --help      display this help and exit
    3775  -v, --version   output version information and exit
     76  --run           try to run the given command, and emulate it if it fails
    3877
    3978Supported PROGRAM values:
     
    4180  autoconf     touch file \`configure'
    4281  autoheader   touch file \`config.h.in'
     82  autom4te     touch the output file, or create a stub one
    4383  automake     touch all \`Makefile.in' files
    4484  bison        create \`y.tab.[ch]', if possible, from existing .[ch]
    4585  flex         create \`lex.yy.c', if possible, from existing .c
     86  help2man     touch the output file
    4687  lex          create \`lex.yy.c', if possible, from existing .c
    4788  makeinfo     touch the output file
    48   yacc         create \`y.tab.[ch]', if possible, from existing .[ch]"
     89  tar          try tar, gnutar, gtar, then tar without non-portable flags
     90  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
     91
     92Send bug reports to <bug-automake@gnu.org>."
     93    exit $?
    4994    ;;
    5095
    5196  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
    52     echo "missing - GNU libit 0.0"
     97    echo "missing $scriptversion (GNU Automake)"
     98    exit $?
    5399    ;;
    54100
     
    59105    ;;
    60106
    61   aclocal)
    62     echo 1>&2 "\
    63 WARNING: \`$1' is missing on your system.  You should only need it if
    64          you modified \`acinclude.m4' or \`configure.in'.  You might want
     107esac
     108
     109# Now exit if we have it, but it failed.  Also exit now if we
     110# don't have it and --version was passed (most likely to detect
     111# the program).
     112case $1 in
     113  lex|yacc)
     114    # Not GNU programs, they don't have --version.
     115    ;;
     116
     117  tar)
     118    if test -n "$run"; then
     119       echo 1>&2 "ERROR: \`tar' requires --run"
     120       exit 1
     121    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
     122       exit 1
     123    fi
     124    ;;
     125
     126  *)
     127    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
     128       # We have it, but it failed.
     129       exit 1
     130    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
     131       # Could not run --version or --help.  This is probably someone
     132       # running `$TOOL --version' or `$TOOL --help' to check whether
     133       # $TOOL exists and not knowing $TOOL uses missing.
     134       exit 1
     135    fi
     136    ;;
     137esac
     138
     139# If it does not exist, or fails to run (possibly an outdated version),
     140# try to emulate it.
     141case $1 in
     142  aclocal*)
     143    echo 1>&2 "\
     144WARNING: \`$1' is $msg.  You should only need it if
     145         you modified \`acinclude.m4' or \`${configure_ac}'.  You might want
    65146         to install the \`Automake' and \`Perl' packages.  Grab them from
    66147         any GNU archive site."
     
    70151  autoconf)
    71152    echo 1>&2 "\
    72 WARNING: \`$1' is missing on your system.  You should only need it if
    73          you modified \`configure.in'.  You might want to install the
     153WARNING: \`$1' is $msg.  You should only need it if
     154         you modified \`${configure_ac}'.  You might want to install the
    74155         \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
    75156         archive site."
     
    79160  autoheader)
    80161    echo 1>&2 "\
    81 WARNING: \`$1' is missing on your system.  You should only need it if
    82          you modified \`acconfig.h' or \`configure.in'.  You might want
     162WARNING: \`$1' is $msg.  You should only need it if
     163         you modified \`acconfig.h' or \`${configure_ac}'.  You might want
    83164         to install the \`Autoconf' and \`GNU m4' packages.  Grab them
    84165         from any GNU archive site."
    85     files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER([^):]*:\([^)]*\)).*/\1/p' configure.in`
    86     if test -z "$files"; then
    87       files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^):]*\)).*/\1/p' configure.in`
    88       test -z "$files" || files="$files.in"
    89     else
    90       files=`echo "$files" | sed -e 's/:/ /g'`
    91     fi
    92     test -z "$files" && files="config.h.in"
    93     touch $files
    94     ;;
    95 
    96   automake)
    97     echo 1>&2 "\
    98 WARNING: \`$1' is missing on your system.  You should only need it if
    99          you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
     166    files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
     167    test -z "$files" && files="config.h"
     168    touch_files=
     169    for f in $files; do
     170      case $f in
     171      *:*) touch_files="$touch_files "`echo "$f" |
     172                                       sed -e 's/^[^:]*://' -e 's/:.*//'`;;
     173      *) touch_files="$touch_files $f.in";;
     174      esac
     175    done
     176    touch $touch_files
     177    ;;
     178
     179  automake*)
     180    echo 1>&2 "\
     181WARNING: \`$1' is $msg.  You should only need it if
     182         you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
    100183         You might want to install the \`Automake' and \`Perl' packages.
    101184         Grab them from any GNU archive site."
    102     find . -type f -name Makefile.am -print \
    103       | sed 's/^\(.*\).am$/touch \1.in/' \
    104       | sh
     185    find . -type f -name Makefile.am -print |
     186           sed 's/\.am$/.in/' |
     187           while read f; do touch "$f"; done
     188    ;;
     189
     190  autom4te)
     191    echo 1>&2 "\
     192WARNING: \`$1' is needed, but is $msg.
     193         You might have modified some files without having the
     194         proper tools for further handling them.
     195         You can get \`$1' as part of \`Autoconf' from any GNU
     196         archive site."
     197
     198    file=`echo "$*" | sed -n "$sed_output"`
     199    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
     200    if test -f "$file"; then
     201        touch $file
     202    else
     203        test -z "$file" || exec >$file
     204        echo "#! /bin/sh"
     205        echo "# Created by GNU Automake missing as a replacement of"
     206        echo "#  $ $@"
     207        echo "exit 0"
     208        chmod +x $file
     209        exit 1
     210    fi
    105211    ;;
    106212
    107213  bison|yacc)
    108214    echo 1>&2 "\
    109 WARNING: \`$1' is missing on your system.  You should only need it if
     215WARNING: \`$1' $msg.  You should only need it if
    110216         you modified a \`.y' file.  You may need the \`Bison' package
    111217         in order for those modifications to take effect.  You can get
    112218         \`Bison' from any GNU archive site."
    113219    rm -f y.tab.c y.tab.h
    114     if [ $# -ne 1 ]; then
     220    if test $# -ne 1; then
    115221        eval LASTARG="\${$#}"
    116         case "$LASTARG" in
     222        case $LASTARG in
    117223        *.y)
    118224            SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
    119             if [ -f "$SRCFILE" ]; then
     225            if test -f "$SRCFILE"; then
    120226                 cp "$SRCFILE" y.tab.c
    121227            fi
    122228            SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
    123             if [ -f "$SRCFILE" ]; then
     229            if test -f "$SRCFILE"; then
    124230                 cp "$SRCFILE" y.tab.h
    125231            fi
     
    127233        esac
    128234    fi
    129     if [ ! -f y.tab.h ]; then
     235    if test ! -f y.tab.h; then
    130236        echo >y.tab.h
    131237    fi
    132     if [ ! -f y.tab.c ]; then
     238    if test ! -f y.tab.c; then
    133239        echo 'main() { return 0; }' >y.tab.c
    134240    fi
     
    137243  lex|flex)
    138244    echo 1>&2 "\
    139 WARNING: \`$1' is missing on your system.  You should only need it if
     245WARNING: \`$1' is $msg.  You should only need it if
    140246         you modified a \`.l' file.  You may need the \`Flex' package
    141247         in order for those modifications to take effect.  You can get
    142248         \`Flex' from any GNU archive site."
    143249    rm -f lex.yy.c
    144     if [ $# -ne 1 ]; then
     250    if test $# -ne 1; then
    145251        eval LASTARG="\${$#}"
    146         case "$LASTARG" in
     252        case $LASTARG in
    147253        *.l)
    148254            SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
    149             if [ -f "$SRCFILE" ]; then
     255            if test -f "$SRCFILE"; then
    150256                 cp "$SRCFILE" lex.yy.c
    151257            fi
     
    153259        esac
    154260    fi
    155     if [ ! -f lex.yy.c ]; then
     261    if test ! -f lex.yy.c; then
    156262        echo 'main() { return 0; }' >lex.yy.c
    157263    fi
    158264    ;;
    159265
     266  help2man)
     267    echo 1>&2 "\
     268WARNING: \`$1' is $msg.  You should only need it if
     269         you modified a dependency of a manual page.  You may need the
     270         \`Help2man' package in order for those modifications to take
     271         effect.  You can get \`Help2man' from any GNU archive site."
     272
     273    file=`echo "$*" | sed -n "$sed_output"`
     274    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
     275    if test -f "$file"; then
     276        touch $file
     277    else
     278        test -z "$file" || exec >$file
     279        echo ".ab help2man is required to generate this page"
     280        exit 1
     281    fi
     282    ;;
     283
    160284  makeinfo)
    161285    echo 1>&2 "\
    162 WARNING: \`$1' is missing on your system.  You should only need it if
     286WARNING: \`$1' is $msg.  You should only need it if
    163287         you modified a \`.texi' or \`.texinfo' file, or any other file
    164288         indirectly affecting the aspect of the manual.  The spurious
     
    166290         DU, IRIX).  You might want to install the \`Texinfo' package or
    167291         the \`GNU make' package.  Grab either from any GNU archive site."
    168     file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
     292    # The file to touch is that specified with -o ...
     293    file=`echo "$*" | sed -n "$sed_output"`
     294    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
    169295    if test -z "$file"; then
    170       file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
    171       file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
    172     fi
     296      # ... or it is the one specified with @setfilename ...
     297      infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
     298      file=`sed -n '
     299        /^@setfilename/{
     300          s/.* \([^ ]*\) *$/\1/
     301          p
     302          q
     303        }' $infile`
     304      # ... or it is derived from the source name (dir/f.texi becomes f.info)
     305      test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
     306    fi
     307    # If the file does not exist, the user really needs makeinfo;
     308    # let's fail without touching anything.
     309    test -f $file || exit 1
    173310    touch $file
    174311    ;;
    175312
     313  tar)
     314    shift
     315
     316    # We have already tried tar in the generic part.
     317    # Look for gnutar/gtar before invocation to avoid ugly error
     318    # messages.
     319    if (gnutar --version > /dev/null 2>&1); then
     320       gnutar "$@" && exit 0
     321    fi
     322    if (gtar --version > /dev/null 2>&1); then
     323       gtar "$@" && exit 0
     324    fi
     325    firstarg="$1"
     326    if shift; then
     327        case $firstarg in
     328        *o*)
     329            firstarg=`echo "$firstarg" | sed s/o//`
     330            tar "$firstarg" "$@" && exit 0
     331            ;;
     332        esac
     333        case $firstarg in
     334        *h*)
     335            firstarg=`echo "$firstarg" | sed s/h//`
     336            tar "$firstarg" "$@" && exit 0
     337            ;;
     338        esac
     339    fi
     340
     341    echo 1>&2 "\
     342WARNING: I can't seem to be able to run \`tar' with the given arguments.
     343         You may want to install GNU tar or Free paxutils, or check the
     344         command line arguments."
     345    exit 1
     346    ;;
     347
    176348  *)
    177349    echo 1>&2 "\
    178 WARNING: \`$1' is needed, and you do not seem to have it handy on your
    179          system.  You might have modified some files without having the
     350WARNING: \`$1' is needed, and is $msg.
     351         You might have modified some files without having the
    180352         proper tools for further handling them.  Check the \`README' file,
    181          it often tells you about the needed prerequirements for installing
     353         it often tells you about the needed prerequisites for installing
    182354         this package.  You may also peek at any GNU archive site, in case
    183355         some other package would contain this missing \`$1' program."
     
    187359
    188360exit 0
     361
     362# Local variables:
     363# eval: (add-hook 'write-file-hooks 'time-stamp)
     364# time-stamp-start: "scriptversion="
     365# time-stamp-format: "%:y-%02m-%02d.%02H"
     366# time-stamp-end: "$"
     367# End:
  • release/3/xmi/libxmi-1.2/mkinstalldirs

    r4980 r11312  
    11#! /bin/sh
    22# mkinstalldirs --- make directory hierarchy
    3 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
     3
     4scriptversion=2006-05-11.19
     5
     6# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
    47# Created: 1993-05-16
    5 # Public domain
     8# Public domain.
     9#
     10# This file is maintained in Automake, please report
     11# bugs to <bug-automake@gnu.org> or send patches to
     12# <automake-patches@gnu.org>.
    613
    7 # $Id: mkinstalldirs,v 1.10 1996/05/03 07:37:52 friedman Exp $
     14nl='
     15'
     16IFS=" ""        $nl"
     17errstatus=0
     18dirmode=
    819
    9 errstatus=0
     20usage="\
     21Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
     22
     23Create each directory DIR (with mode MODE, if specified), including all
     24leading file name components.
     25
     26Report bugs to <bug-automake@gnu.org>."
     27
     28# process command line arguments
     29while test $# -gt 0 ; do
     30  case $1 in
     31    -h | --help | --h*)         # -h for help
     32      echo "$usage"
     33      exit $?
     34      ;;
     35    -m)                         # -m PERM arg
     36      shift
     37      test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
     38      dirmode=$1
     39      shift
     40      ;;
     41    --version)
     42      echo "$0 $scriptversion"
     43      exit $?
     44      ;;
     45    --)                         # stop option processing
     46      shift
     47      break
     48      ;;
     49    -*)                         # unknown option
     50      echo "$usage" 1>&2
     51      exit 1
     52      ;;
     53    *)                          # first non-opt arg
     54      break
     55      ;;
     56  esac
     57done
    1058
    1159for file
    1260do
    13    set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
    14    shift
     61  if test -d "$file"; then
     62    shift
     63  else
     64    break
     65  fi
     66done
    1567
    16    pathcomp=
    17    for d
    18    do
    19      pathcomp="$pathcomp$d"
    20      case "$pathcomp" in
    21        -* ) pathcomp=./$pathcomp ;;
    22      esac
     68case $# in
     69  0) exit 0 ;;
     70esac
    2371
    24      if test ! -d "$pathcomp"; then
    25         echo "mkdir $pathcomp" 1>&2
     72# Solaris 8's mkdir -p isn't thread-safe.  If you mkdir -p a/b and
     73# mkdir -p a/c at the same time, both will detect that a is missing,
     74# one will create a, then the other will try to create a and die with
     75# a "File exists" error.  This is a problem when calling mkinstalldirs
     76# from a parallel make.  We use --version in the probe to restrict
     77# ourselves to GNU mkdir, which is thread-safe.
     78case $dirmode in
     79  '')
     80    if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
     81      echo "mkdir -p -- $*"
     82      exec mkdir -p -- "$@"
     83    else
     84      # On NextStep and OpenStep, the `mkdir' command does not
     85      # recognize any option.  It will interpret all options as
     86      # directories to create, and then abort because `.' already
     87      # exists.
     88      test -d ./-p && rmdir ./-p
     89      test -d ./--version && rmdir ./--version
     90    fi
     91    ;;
     92  *)
     93    if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
     94       test ! -d ./--version; then
     95      echo "mkdir -m $dirmode -p -- $*"
     96      exec mkdir -m "$dirmode" -p -- "$@"
     97    else
     98      # Clean up after NextStep and OpenStep mkdir.
     99      for d in ./-m ./-p ./--version "./$dirmode";
     100      do
     101        test -d $d && rmdir $d
     102      done
     103    fi
     104    ;;
     105esac
    26106
    27         mkdir "$pathcomp" || lasterr=$?
     107for file
     108do
     109  case $file in
     110    /*) pathcomp=/ ;;
     111    *)  pathcomp= ;;
     112  esac
     113  oIFS=$IFS
     114  IFS=/
     115  set fnord $file
     116  shift
     117  IFS=$oIFS
    28118
    29         if test ! -d "$pathcomp"; then
    30           errstatus=$lasterr
    31         fi
    32      fi
     119  for d
     120  do
     121    test "x$d" = x && continue
    33122
    34      pathcomp="$pathcomp/"
    35    done
     123    pathcomp=$pathcomp$d
     124    case $pathcomp in
     125      -*) pathcomp=./$pathcomp ;;
     126    esac
     127
     128    if test ! -d "$pathcomp"; then
     129      echo "mkdir $pathcomp"
     130
     131      mkdir "$pathcomp" || lasterr=$?
     132
     133      if test ! -d "$pathcomp"; then
     134        errstatus=$lasterr
     135      else
     136        if test ! -z "$dirmode"; then
     137          echo "chmod $dirmode $pathcomp"
     138          lasterr=
     139          chmod "$dirmode" "$pathcomp" || lasterr=$?
     140
     141          if test ! -z "$lasterr"; then
     142            errstatus=$lasterr
     143          fi
     144        fi
     145      fi
     146    fi
     147
     148    pathcomp=$pathcomp/
     149  done
    36150done
    37151
    38152exit $errstatus
    39153
    40 # mkinstalldirs ends here
     154# Local Variables:
     155# mode: shell-script
     156# sh-indentation: 2
     157# eval: (add-hook 'write-file-hooks 'time-stamp)
     158# time-stamp-start: "scriptversion="
     159# time-stamp-format: "%:y-%02m-%02d.%02H"
     160# time-stamp-end: "$"
     161# End:
Note: See TracChangeset for help on using the changeset viewer.