summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMike McGreevy <mamcgree@hdfgroup.org>2008-04-11 21:56:25 (GMT)
committerMike McGreevy <mamcgree@hdfgroup.org>2008-04-11 21:56:25 (GMT)
commit8f0879c89efa2a2315675526a1672690ec693f04 (patch)
tree552fc5bd5887aff90388b47c44fb1ddf9bde7abf /bin
parent934d53254405a1fe5b87773d751d64e380470557 (diff)
downloadhdf5-8f0879c89efa2a2315675526a1672690ec693f04.zip
hdf5-8f0879c89efa2a2315675526a1672690ec693f04.tar.gz
hdf5-8f0879c89efa2a2315675526a1672690ec693f04.tar.bz2
[svn-r14830] Purpose: Update libtool to version 2.2.2
Description: Changing libtool from 2.2 to 2.2.2. The newer version was released last week and I missed the announcement before upgrading to 2.2 yesterday afternoon. The new version is installed in home1/packages/libtool/, and the bin/reconfigure script was updated and executed. Tested: h5committest (smirom, linew, kagiso)
Diffstat (limited to 'bin')
-rw-r--r--bin/ltmain.sh92
-rwxr-xr-xbin/reconfigure4
2 files changed, 77 insertions, 19 deletions
diff --git a/bin/ltmain.sh b/bin/ltmain.sh
index dc1e50f..a8b3f1c 100644
--- a/bin/ltmain.sh
+++ b/bin/ltmain.sh
@@ -1,6 +1,6 @@
# Generated from ltmain.m4sh.
-# ltmain.sh (GNU libtool) 2.2
+# ltmain.sh (GNU libtool) 2.2.2
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
@@ -65,7 +65,7 @@
# compiler: $LTCC
# compiler flags: $LTCFLAGS
# linker: $LD (gnu? $with_gnu_ld)
-# $progname: (GNU libtool) 2.2
+# $progname: (GNU libtool) 2.2.2
# automake: $automake_version
# autoconf: $autoconf_version
#
@@ -73,9 +73,9 @@
PROGRAM=ltmain.sh
PACKAGE=libtool
-VERSION=2.2
+VERSION=2.2.2
TIMESTAMP=""
-package_revision=1.2599
+package_revision=1.2627
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
@@ -95,12 +95,16 @@ DUALCASE=1; export DUALCASE # for MKS sh
# Only set LANG and LC_ALL to C if already set.
# These must not be set unconditionally because not all systems understand
# e.g. LANG=C (notably SCO).
+lt_user_locale=
+lt_safe_locale=
for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
do
eval "if test \"\${$lt_var+set}\" = set; then
save_$lt_var=\$$lt_var
$lt_var=C
export $lt_var
+ lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
+ lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
fi"
done
@@ -120,7 +124,7 @@ $lt_unset CDPATH
: ${MKDIR="mkdir"}
: ${MV="mv -f"}
: ${RM="rm -f"}
-: ${SED="/usr/bin/sed"}
+: ${SED="/opt/local/bin/gsed"}
: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
: ${Xsed="$SED -e 1s/^X//"}
@@ -425,6 +429,32 @@ func_show_eval ()
}
+# func_show_eval_locale cmd [fail_exp]
+# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
+# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
+# is given, then evaluate it. Use the saved locale for evaluation.
+func_show_eval_locale ()
+{
+ my_cmd="$1"
+ my_fail_exp="${2-:}"
+
+ ${opt_silent-false} || {
+ func_quote_for_expand "$my_cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+
+ if ${opt_dry_run-false}; then :; else
+ eval "$lt_user_locale
+ $my_cmd"
+ my_status=$?
+ eval "$lt_safe_locale"
+ if test "$my_status" -eq 0; then :; else
+ eval "(exit $my_status); $my_fail_exp"
+ fi
+ fi
+}
+
+
@@ -1030,7 +1060,7 @@ func_lalib_p ()
func_lalib_unsafe_p ()
{
lalib_p=no
- if test -r "$1" && exec 5<&1 <"$1"; then
+ if test -r "$1" && exec 5<&0 <"$1"; then
for lalib_p_l in 1 2 3 4
do
read lalib_p_line
@@ -1038,7 +1068,7 @@ func_lalib_unsafe_p ()
\#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
esac
done
- exec 1<&5 5<&-
+ exec 0<&5 5<&-
fi
test "$lalib_p" = yes
}
@@ -1897,7 +1927,7 @@ compiler."
$opt_dry_run || $RM "$lobj" "$output_obj"
- func_show_eval "$command" \
+ func_show_eval_locale "$command" \
'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
if test "$need_locks" = warn &&
@@ -1947,7 +1977,7 @@ compiler."
# Suppress compiler output if we already did a PIC compilation.
command="$command$suppress_output"
$opt_dry_run || $RM "$obj" "$output_obj"
- func_show_eval "$command" \
+ func_show_eval_locale "$command" \
'$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
if test "$need_locks" = warn &&
@@ -2076,12 +2106,14 @@ func_mode_execute ()
# Do a test to see if this is really a libtool program.
if func_ltwrapper_script_p "$file"; then
func_source "$file"
+ # Transform arg to wrapped name.
+ file="$progdir/$program"
elif func_ltwrapper_executable_p "$file"; then
func_ltwrapper_scriptname "$file"
func_source "$func_ltwrapper_scriptname_result"
+ # Transform arg to wrapped name.
+ file="$progdir/$program"
fi
- # Transform arg to wrapped name.
- file="$progdir/$program"
;;
esac
# Quote arguments (to preserve shell metacharacters).
@@ -2850,7 +2882,7 @@ else
;;
esac
$ECHO "\
- \$ECHO \"\$0: cannot exec \$program \$*\"
+ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
exit 1
fi
else
@@ -2893,6 +2925,7 @@ EOF
#ifdef _MSC_VER
# include <direct.h>
# include <process.h>
+# include <io.h>
#else
# include <unistd.h>
# include <stdint.h>
@@ -2903,6 +2936,7 @@ EOF
#include <string.h>
#include <ctype.h>
#include <errno.h>
+#include <fcntl.h>
#include <sys/stat.h>
#if defined(PATH_MAX)
@@ -2936,6 +2970,7 @@ EOF
#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
defined (__OS2__)
# define HAVE_DOS_BASED_FILE_SYSTEM
+# define FOPEN_WB "wb"
# ifndef DIR_SEPARATOR_2
# define DIR_SEPARATOR_2 '\\'
# endif
@@ -2957,6 +2992,17 @@ EOF
# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
#endif /* PATH_SEPARATOR_2 */
+#ifdef __CYGWIN__
+# define FOPEN_WB "wb"
+#endif
+
+#ifndef FOPEN_WB
+# define FOPEN_WB "w"
+#endif
+#ifndef _O_BINARY
+# define _O_BINARY 0
+#endif
+
#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
#define XFREE(stale) do { \
if (stale) { free ((void *) stale); stale = 0; } \
@@ -3022,6 +3068,15 @@ main (int argc, char *argv[])
{
if (strcmp (argv[i], dumpscript_opt) == 0)
{
+EOF
+ case "$host" in
+ *mingw* | *cygwin* )
+ # make stdout use "unix" line endings
+ echo " _setmode(1,_O_BINARY);"
+ ;;
+ esac
+
+ cat <<EOF
printf ("%s", script_text);
return 0;
}
@@ -3109,10 +3164,8 @@ EOF
XFREE (shwrapper_name);
XFREE (actual_cwrapper_path);
- /* note: do NOT use "wt" here! -- defer to underlying
- * mount type on cygwin
- */
- if ((shwrapper = fopen (newargz[1], "w")) == 0)
+ /* always write in binary mode */
+ if ((shwrapper = fopen (newargz[1], FOPEN_WB)) == 0)
{
lt_fatal ("Could not open %s for writing", newargz[1]);
}
@@ -7206,7 +7259,12 @@ EOF
$RM $func_ltwrapper_scriptname_result
trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
$opt_dry_run || {
- $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
+ # note: this script will not be executed, so do not chmod.
+ if test "x$build" = "x$host" ; then
+ $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
+ else
+ func_emit_wrapper no > $func_ltwrapper_scriptname_result
+ fi
}
;;
* )
diff --git a/bin/reconfigure b/bin/reconfigure
index da48d2d..4665dae 100755
--- a/bin/reconfigure
+++ b/bin/reconfigure
@@ -32,7 +32,7 @@ AUTOCONF_VERSION="autoconf (GNU Autoconf) 2.61"
AUTOMAKE_VERSION="automake (GNU automake) 1.10.1"
AUTOHEADER_VERSION="autoheader (GNU Autoconf) 2.61"
ACLOCAL_VERSION="aclocal (GNU automake) 1.10.1"
-LIBTOOL_VERSION="(GNU libtool) 2.2"
+LIBTOOL_VERSION="(GNU libtool) 2.2.2"
#
# When upgrading automake's version, don't forget to also update its
# helper utilities, especially depcomp.
@@ -53,7 +53,7 @@ if test -z ${ACLOCAL}; then
ACLOCAL=/home1/packages/automake/automake-1.10.1/bin/aclocal-1.10
fi
if test -z ${LIBTOOL}; then
- LIBTOOL=/home1/packages/libtool/libtool-2.2/bin/libtool
+ LIBTOOL=/home1/packages/libtool/libtool-2.2.2/bin/libtool
fi
# Check version numbers of all autotools against the "correct" versions