Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
c7686180
Commit
c7686180
authored
Nov 03, 2005
by
Kurt Zeilenga
Browse files
Sync with HEAD
parent
29fb43d8
Changes
117
Expand all
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
c7686180
OpenLDAP 2.3 Change Log
OpenLDAP 2.3.12 Engineering
Fixed libldap ldapi:// authdn construction
Added libldap ldap_bv2escaped_filter_value
Updated contrib smbk5pwd module
Build environment
Added slapd-bind test program
Added inet_ntoa_b support for VxWorks
Dropped SSLeay support
OpenLDAP 2.3.11 Release
Fixed libldap reentrancy issue (ITS#3988)
...
...
aclocal.m4
View file @
c7686180
This diff is collapsed.
Click to expand it.
build/BerkeleyDB42.patch
deleted
100644 → 0
View file @
29fb43d8
This patch is intended to be applied to Berkeley DB 4.2.52 and,
if applied, will automatically be used by slapd(8) back-bdb/hdb.
Without this patch the BDB DB_LOG_AUTOREMOVE option will not work,
nor will db_archive allow any transaction log files to be removed
while slapd is running.
The patch can be applied to the BDB source using patch(1) as follows
cd db-4.2.52
patch -p0 < openldap-src/build/BerkeleyDB42.patch
(modify directory paths as necessary), then recompile and reinstall
the BerkeleyDB 4.2 library, and then build and install OpenLDAP
Software.
The patch should not be applied to Berkeley DB 4.3.
Index: dbinc/db.in
===================================================================
RCS file: /var/CVSROOT/bdb42/dbinc/db.in,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- dbinc/db.in 25 Nov 2003 21:58:02 -0000 1.1.1.1
+++ dbinc/db.in 17 Jul 2004 16:07:23 -0000 1.2
@@ -839,6 +839,7 @@
#define TXN_NOWAIT 0x040 /* Do not wait on locks. */
#define TXN_RESTORED 0x080 /* Transaction has been restored. */
#define TXN_SYNC 0x100 /* Sync on prepare and commit. */
+#define TXN_NOLOG 0x200 /* Do not log this transaction. */
u_int32_t flags;
};
Index: txn/txn.c
===================================================================
RCS file: /var/CVSROOT/bdb42/txn/txn.c,v
retrieving revision 1.1.1.2
retrieving revision 1.2
diff -u -r1.1.1.2 -r1.2
--- txn/txn.c 17 Dec 2003 21:43:53 -0000 1.1.1.2
+++ txn/txn.c 17 Jul 2004 16:07:27 -0000 1.2
@@ -127,7 +127,7 @@
if ((ret = __db_fchk(dbenv,
"txn_begin", flags,
DB_DIRTY_READ | DB_TXN_NOWAIT |
- DB_TXN_NOSYNC | DB_TXN_SYNC)) != 0)
+ DB_TXN_NOSYNC | DB_TXN_SYNC | DB_TXN_NOT_DURABLE)) != 0)
return (ret);
if ((ret = __db_fcchk(dbenv,
"txn_begin", flags, DB_TXN_NOSYNC, DB_TXN_SYNC)) != 0)
@@ -193,6 +193,8 @@
F_SET(txn, TXN_SYNC);
if (LF_ISSET(DB_TXN_NOWAIT))
F_SET(txn, TXN_NOWAIT);
+ if (LF_ISSET(DB_TXN_NOT_DURABLE))
+ F_SET(txn, TXN_NOLOG);
if ((ret = __txn_begin_int(txn, 0)) != 0)
goto err;
@@ -328,7 +330,7 @@
* We should set this value when we write the first log record, not
* here.
*/
- if (DBENV_LOGGING(dbenv))
+ if (DBENV_LOGGING(dbenv) && !F_ISSET(txn, TXN_NOLOG))
__log_txn_lsn(dbenv, &begin_lsn, NULL, NULL);
else
ZERO_LSN(begin_lsn);
build/ltmain.sh
View file @
c7686180
...
...
@@ -58,8 +58,8 @@ EXIT_FAILURE=1
PROGRAM
=
ltmain.sh
PACKAGE
=
libtool
VERSION
=
1.5.
18
-OpenLDAP
TIMESTAMP
=
" (1.1220.2.2
45
2005/0
5/16 08:55:27
)"
VERSION
=
1.5.
20
-OpenLDAP
TIMESTAMP
=
" (1.1220.2.2
87
2005/0
8/31 18:54:15
)"
# See if we are running on zsh, and set the options which allow our
# commands through without removal of \ escapes.
...
...
@@ -103,14 +103,15 @@ rm="rm -f"
Xsed
=
"
${
SED
}
"
' -e 1s/^X//'
sed_quote_subst
=
's/\([\\`\\"$\\\\]\)/\\\1/g'
# test EBCDIC or ASCII
case
`
echo
A|tr A
'\301'
`
in
A
)
# EBCDIC based system
SP2NL
=
"tr '
\1
00' '
\n
'"
NL2SP
=
"tr '
\r\n
' '
\1
00
\1
00'"
case
`
echo
X|tr X
'\101'
`
in
A
)
# ASCII based system
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
SP2NL
=
'tr \040 \012'
NL2SP
=
'tr \015\012 \040\040'
;;
*
)
#
Assume ASCII
based system
SP2NL
=
"
tr
'
\0
40' '
\0
12'"
NL2SP
=
"
tr
'
\0
15
\0
12' '
\0
40
\0
4
0'
"
*
)
#
EBCDIC
based system
SP2NL
=
'
tr
\100 \n'
NL2SP
=
'
tr
\r\n \100\10
0'
;;
esac
...
...
@@ -148,7 +149,6 @@ show_help=
execute_dlfiles
=
lo2o
=
"s/
\\
.lo
\$
/.
${
objext
}
/"
o2lo
=
"s/
\\
.
${
objext
}
\$
/.lo/"
quote_scanset
=
'[[~#^*{};<>?'
"'"
' ]'
#####################################
# Shell function definitions:
...
...
@@ -207,7 +207,7 @@ func_infer_tag ()
CC_quoted
=
for
arg
in
$CC
;
do
case
$arg
in
*
$quote_scanset
*
|
*
]
*
|
*
\|
*
|
*
\&
*
|
*
\(
*
|
*
\)
*
|
""
)
*
[
\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \
]
*
|
*
]
*
|
""
)
arg
=
"
\"
$arg
\"
"
;;
esac
...
...
@@ -228,7 +228,7 @@ func_infer_tag ()
for
arg
in
$CC
;
do
# Double-quote args containing other shell metacharacters.
case
$arg
in
*
$quote_scanset
*
|
*
]
*
|
*
\|
*
|
*
\&
*
|
*
\(
*
|
*
\)
*
|
""
)
*
[
\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \
]
*
|
*
]
*
|
""
)
arg
=
"
\"
$arg
\"
"
;;
esac
...
...
@@ -352,7 +352,7 @@ func_extract_archives ()
func_extract_an_archive
"
$my_xdir
"
"
$my_xabs
"
fi
# $darwin_arches
fi
# $run
;;
;;
*
)
func_extract_an_archive
"
$my_xdir
"
"
$my_xabs
"
;;
...
...
@@ -591,7 +591,7 @@ if test -z "$show_help"; then
for
arg
do
case
"
$arg_mode
"
in
case
$arg_mode
in
arg
)
# do not "continue". Instead, add this to base_compile
lastarg
=
"
$arg
"
...
...
@@ -642,7 +642,7 @@ if test -z "$show_help"; then
# Many Bourne shells cannot handle close brackets correctly
# in scan sets, so we specify it separately.
case
$arg
in
*
$quote_scanset
*
|
*
]
*
|
*
\|
*
|
*
\&
*
|
*
\(
*
|
*
\)
*
|
""
)
*
[
\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \
]
*
|
*
]
*
|
""
)
arg
=
"
\"
$arg
\"
"
;;
esac
...
...
@@ -677,7 +677,7 @@ if test -z "$show_help"; then
# in scan sets (worked around with variable expansion),
# and furthermore cannot handle '|' '&' '(' ')' in scan sets
# at all, so we specify them separately.
*
$quote_scanset
*
|
*
]
*
|
*
\|
*
|
*
\&
*
|
*
\(
*
|
*
\)
*
|
""
)
*
[
\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \
]
*
|
*
]
*
|
""
)
lastarg
=
"
\"
$lastarg
\"
"
;;
esac
...
...
@@ -752,13 +752,12 @@ if test -z "$show_help"; then
qlibobj
=
`
$echo
"X
$libobj
"
|
$Xsed
-e
"
$sed_quote_subst
"
`
case
$qlibobj
in
*
$quote_scanset
*
|
*
]
*
|
*
\|
*
|
*
\&
*
|
*
\(
*
|
*
\)
*
|
""
)
*
[
\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \
]
*
|
*
]
*
|
""
)
qlibobj
=
"
\"
$qlibobj
\"
"
;;
esac
if
test
"X
$libobj
"
!=
"X
$qlibobj
"
;
then
$echo
"
$modename
: libobj name
\`
$libobj
' may not contain shell special characters."
exit
$EXIT_FAILURE
fi
test
"X
$libobj
"
!=
"X
$qlibobj
"
\
&&
$echo
"X
$libobj
"
|
grep
'[]~#^*{};<>?"'
"'"
' &()|`$[]'
\
&&
$echo
"
$modename
: libobj name
\`
$libobj
' may not contain shell special characters."
objname
=
`
$echo
"X
$obj
"
|
$Xsed
-e
's%^.*/%%'
`
xdir
=
`
$echo
"X
$obj
"
|
$Xsed
-e
's%/[^/]*$%%'
`
if
test
"X
$xdir
"
=
"X
$obj
"
;
then
...
...
@@ -839,7 +838,7 @@ compiler."
fi
qsrcfile
=
`
$echo
"X
$srcfile
"
|
$Xsed
-e
"
$sed_quote_subst
"
`
case
$qsrcfile
in
*
$quote_scanset
*
|
*
]
*
|
*
\|
*
|
*
\&
*
|
*
\(
*
|
*
\)
*
|
""
)
*
[
\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \
]
*
|
*
]
*
|
""
)
qsrcfile
=
"
\"
$qsrcfile
\"
"
;;
esac
...
...
@@ -1105,15 +1104,14 @@ EOF
if
test
-n
"
$link_static_flag
"
;
then
dlopen_self
=
$dlopen_self_static
fi
prefer_static_libs
=
yes
else
if
test
-z
"
$pic_flag
"
&&
test
-n
"
$link_static_flag
"
;
then
dlopen_self
=
$dlopen_self_static
fi
prefer_static_libs
=
built
fi
build_libtool_libs
=
no
build_old_libs
=
yes
prefer_static_libs
=
yes
break
;;
esac
...
...
@@ -1127,7 +1125,7 @@ EOF
arg
=
"
$1
"
shift
case
$arg
in
*
$quote_scanset
*
|
*
]
*
|
*
\|
*
|
*
\&
*
|
*
\(
*
|
*
\)
*
|
""
)
*
[
\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \
]
*
|
*
]
*
|
""
)
qarg
=
\"
`
$echo
"X
$arg
"
|
$Xsed
-e
"
$sed_quote_subst
"
`
\"
### testsuite: skip nested quoting test
;;
*
)
qarg
=
$arg
;;
...
...
@@ -1436,7 +1434,7 @@ EOF
continue
;;
-framework
)
-framework
|
-arch
)
prev
=
darwin_framework
compiler_flags
=
"
$compiler_flags
$arg
"
compile_command
=
"
$compile_command
$arg
"
...
...
@@ -1566,7 +1564,7 @@ EOF
# to be aesthetically quoted because they are evaled later.
arg
=
`
$echo
"X
$arg
"
|
$Xsed
-e
"
$sed_quote_subst
"
`
case
$arg
in
*
$quote_scanset
*
|
*
]
*
|
*
\|
*
|
*
\&
*
|
*
\(
*
|
*
\)
*
|
""
)
*
[
\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \
]
*
|
*
]
*
|
""
)
arg
=
"
\"
$arg
\"
"
;;
esac
...
...
@@ -1682,7 +1680,7 @@ EOF
for
flag
in
$args
;
do
IFS
=
"
$save_ifs
"
case
$flag
in
*
$quote_scanset
*
|
*
]
*
|
*
\|
*
|
*
\&
*
|
*
\(
*
|
*
\)
*
|
""
)
*
[
\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \
]
*
|
*
]
*
|
""
)
flag
=
"
\"
$flag
\"
"
;;
esac
...
...
@@ -1700,7 +1698,7 @@ EOF
for
flag
in
$args
;
do
IFS
=
"
$save_ifs
"
case
$flag
in
*
$quote_scanset
*
|
*
]
*
|
*
\|
*
|
*
\&
*
|
*
\(
*
|
*
\)
*
|
""
)
*
[
\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \
]
*
|
*
]
*
|
""
)
flag
=
"
\"
$flag
\"
"
;;
esac
...
...
@@ -1733,7 +1731,7 @@ EOF
# to be aesthetically quoted because they are evaled later.
arg
=
`
$echo
"X
$arg
"
|
$Xsed
-e
"
$sed_quote_subst
"
`
case
$arg
in
*
$quote_scanset
*
|
*
]
*
|
*
\|
*
|
*
\&
*
|
*
\(
*
|
*
\)
*
|
""
)
*
[
\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \
]
*
|
*
]
*
|
""
)
arg
=
"
\"
$arg
\"
"
;;
esac
...
...
@@ -1867,7 +1865,7 @@ EOF
# to be aesthetically quoted because they are evaled later.
arg
=
`
$echo
"X
$arg
"
|
$Xsed
-e
"
$sed_quote_subst
"
`
case
$arg
in
*
$quote_scanset
*
|
*
]
*
|
*
\|
*
|
*
\&
*
|
*
\(
*
|
*
\)
*
|
""
)
*
[
\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \
]
*
|
*
]
*
|
""
)
arg
=
"
\"
$arg
\"
"
;;
esac
...
...
@@ -2455,7 +2453,7 @@ EOF
case
"
$temp_rpath
"
in
*
"
$dir
"
*
)
;;
*
"
$absdir
"
*
)
;;
*
)
temp_rpath
=
"
$temp_rpath
$dir
"
;;
*
)
temp_rpath
=
"
$temp_rpath
$
abs
dir
"
;;
esac
fi
...
...
@@ -2492,12 +2490,8 @@ EOF
fi
link_static
=
no
# Whether the deplib will be linked statically
use_static_libs
=
"
$prefer_static_libs
"
if
test
"
$use_static_libs
"
=
built
&&
test
"
$installed
"
=
yes
;
then
use_static_libs
=
no
fi
if
test
-n
"
$library_names
"
&&
{
test
"
$
use
_static_libs
"
=
no
||
test
-z
"
$old_library
"
;
}
;
then
{
test
"
$
prefer
_static_libs
"
=
no
||
test
-z
"
$old_library
"
;
}
;
then
if
test
"
$installed
"
=
no
;
then
notinst_deplibs
=
"
$notinst_deplibs
$lib
"
need_relink
=
yes
...
...
@@ -2645,7 +2639,7 @@ EOF
add_dir
=
"-L
$dir
"
# Try looking first in the location we're being installed to.
if
test
-n
"
$inst_prefix_dir
"
;
then
case
"
$libdir
"
in
case
$libdir
in
[
\\
/]
*
)
add_dir
=
"
$add_dir
-L
$inst_prefix_dir$libdir
"
;;
...
...
@@ -2718,7 +2712,7 @@ EOF
add_dir
=
"-L
$libdir
"
# Try looking first in the location we're being installed to.
if
test
-n
"
$inst_prefix_dir
"
;
then
case
"
$libdir
"
in
case
$libdir
in
[
\\
/]
*
)
add_dir
=
"
$add_dir
-L
$inst_prefix_dir$libdir
"
;;
...
...
@@ -2779,8 +2773,6 @@ EOF
fi
fi
else
convenience
=
"
$convenience
$dir
/
$old_library
"
old_convenience
=
"
$old_convenience
$dir
/
$old_library
"
deplibs
=
"
$dir
/
$old_library
$deplibs
"
link_static
=
yes
fi
...
...
@@ -3470,7 +3462,7 @@ EOF
if
test
"
$?
"
-eq
0
;
then
ldd_output
=
`
ldd conftest
`
for
i
in
$deplibs
;
do
name
=
"
`
expr
$i
:
'-l\(.*\)'
`
"
name
=
`
expr
$i
:
'-l\(.*\)'
`
# If $name is empty we are operating on a -L argument.
if
test
"
$name
"
!=
""
&&
test
"
$name
"
-ne
"0"
;
then
if
test
"X
$allow_libtool_libs_with_static_runtimes
"
=
"Xyes"
;
then
...
...
@@ -3507,7 +3499,7 @@ EOF
# Error occurred in the first compile. Let's try to salvage
# the situation: Compile a separate program for each library.
for
i
in
$deplibs
;
do
name
=
"
`
expr
$i
:
'-l\(.*\)'
`
"
name
=
`
expr
$i
:
'-l\(.*\)'
`
# If $name is empty we are operating on a -L argument.
if
test
"
$name
"
!=
""
&&
test
"
$name
"
!=
"0"
;
then
$rm
conftest
...
...
@@ -3559,7 +3551,7 @@ EOF
set
dummy
$deplibs_check_method
file_magic_regex
=
`
expr
"
$deplibs_check_method
"
:
"
$2
\(
.*
\)
"
`
for
a_deplib
in
$deplibs
;
do
name
=
"
`
expr
$a_deplib
:
'-l\(.*\)'
`
"
name
=
`
expr
$a_deplib
:
'-l\(.*\)'
`
# If $name is empty we are operating on a -L argument.
if
test
"
$name
"
!=
""
&&
test
"
$name
"
!=
"0"
;
then
if
test
"X
$allow_libtool_libs_with_static_runtimes
"
=
"Xyes"
;
then
...
...
@@ -3628,7 +3620,7 @@ EOF
set
dummy
$deplibs_check_method
match_pattern_regex
=
`
expr
"
$deplibs_check_method
"
:
"
$2
\(
.*
\)
"
`
for
a_deplib
in
$deplibs
;
do
name
=
"
`
expr
$a_deplib
:
'-l\(.*\)'
`
"
name
=
`
expr
$a_deplib
:
'-l\(.*\)'
`
# If $name is empty we are operating on a -L argument.
if
test
-n
"
$name
"
&&
test
"
$name
"
!=
"0"
;
then
if
test
"X
$allow_libtool_libs_with_static_runtimes
"
=
"Xyes"
;
then
...
...
@@ -3869,6 +3861,9 @@ EOF
# The command line is too long to execute in one step.
$show
"using reloadable object file for export list..."
skipped_export
=
:
# Break out early, otherwise skipped_export may be
# set to false by a later but shorter cmd.
break
fi
done
IFS
=
"
$save_ifs
"
...
...
@@ -3938,7 +3933,8 @@ EOF
fi
fi
if
test
"X
$skipped_export
"
!=
"X:"
&&
len
=
`
expr
"X
$test_cmds
"
:
".*"
`
&&
if
test
"X
$skipped_export
"
!=
"X:"
&&
len
=
`
expr
"X
$test_cmds
"
:
".*"
2>/dev/null
`
&&
test
"
$len
"
-le
"
$max_cmd_len
"
||
test
"
$max_cmd_len
"
-le
-1
;
then
:
else
...
...
@@ -3973,7 +3969,7 @@ EOF
do
eval
test_cmds
=
\"
$reload_cmds
$objlist
$last_robj
\"
if
test
"X
$objlist
"
=
X
||
{
len
=
`
expr
"X
$test_cmds
"
:
".*"
`
&&
{
len
=
`
expr
"X
$test_cmds
"
:
".*"
2>/dev/null
`
&&
test
"
$len
"
-le
"
$max_cmd_len
"
;
}
;
then
objlist
=
"
$objlist
$obj
"
else
...
...
@@ -4063,13 +4059,30 @@ EOF
IFS
=
"
$save_ifs
"
eval
cmd
=
\"
$cmd
\"
$show
"
$cmd
"
$run
eval
"
$cmd
"
||
exit
$?
$run
eval
"
$cmd
"
||
{
lt_exit
=
$?
# Restore the uninstalled library and exit
if
test
"
$mode
"
=
relink
;
then
$run
eval
'(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
fi
exit
$lt_exit
}
done
IFS
=
"
$save_ifs
"
# Restore the uninstalled library and exit
if
test
"
$mode
"
=
relink
;
then
$run
eval
'(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)'
||
exit
$?
if
test
-n
"
$convenience
"
;
then
if
test
-z
"
$whole_archive_flag_spec
"
;
then
$show
"
${
rm
}
r
$gentop
"
$run
${
rm
}
r
"
$gentop
"
fi
fi
exit
$EXIT_SUCCESS
fi
...
...
@@ -4414,7 +4427,7 @@ extern \"C\" {
if
test
-z
"
$export_symbols
"
;
then
export_symbols
=
"
$output_objdir
/
$outputname
.exp"
$run
$rm
$export_symbols
$run
eval
"
${
SED
}
-n -e '/^: @PROGRAM@
$/
d' -e 's/^.*
\(
.*
\)
$/
\1
/p' "
'< "$nlist" > "$export_symbols"'
$run
eval
"
${
SED
}
-n -e '/^: @PROGRAM@
$/
d' -e 's/^.*
\(
.*
\)
$/
\1
/p' "
'< "$nlist" > "$export_symbols"'
else
$run
eval
"
${
SED
}
-e 's/
\(
[ ][.*^
$]
\)
/
\\\1
/g' -e 's/^/ /' -e 's/
$/$/
'"
' < "$export_symbols" > "$output_objdir/$outputname.exp"'
$run
eval
'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
...
...
@@ -4819,6 +4832,7 @@ EOF
EOF
cat
>>
$cwrappersource
<<
"
EOF
"
return 127;
}
void *
...
...
@@ -5082,13 +5096,13 @@ else
# Backslashes separate directories on plain windows
*
-
*
-mingw
|
*
-
*
-os2
*
)
$echo
>>
$output
"
\
exec
\$
progdir
\\\\\$
program
\$
{1+
\"\$
@
\"
}
exec
\"
\$
progdir
\\\\\$
program
\"
\$
{1+
\"\$
@
\"
}
"
;;
*
)
$echo
>>
$output
"
\
exec
\$
progdir/
\$
program
\$
{1+
\"\$
@
\"
}
exec
\"
\$
progdir/
\$
program
\"
\$
{1+
\"\$
@
\"
}
"
;;
esac
...
...
@@ -5098,7 +5112,7 @@ else
fi
else
# The program doesn't exist.
\$
echo
\"\$
0: error:
\$
progdir/
\$
program does not exist
\"
1>&2
\$
echo
\"\$
0: error:
\\\`
\$
progdir/
\$
program
'
does not exist
\"
1>&2
\$
echo
\"
This script is just a wrapper for
\$
program.
\"
1>&2
$echo
\"
See the
$PACKAGE
documentation for more information.
\"
1>&2
exit
$EXIT_FAILURE
...
...
@@ -5221,7 +5235,7 @@ fi\
oldobjs
=
"
$objlist
$obj
"
objlist
=
"
$objlist
$obj
"
eval
test_cmds
=
\"
$old_archive_cmds
\"
if
len
=
`
expr
"X
$test_cmds
"
:
".*"
`
&&
if
len
=
`
expr
"X
$test_cmds
"
:
".*"
2>/dev/null
`
&&
test
"
$len
"
-le
"
$max_cmd_len
"
;
then
:
else
...
...
@@ -5418,11 +5432,11 @@ relink_command=\"$relink_command\""
# install_prog (especially on Windows NT).
if
test
"
$nonopt
"
=
"
$SHELL
"
||
test
"
$nonopt
"
=
/bin/sh
||
# Allow the use of GNU shtool's install command.
$echo
"X
$nonopt
"
|
$Xsed
|
grep
shtool
>
/dev/null
;
then
$echo
"X
$nonopt
"
|
grep
shtool
>
/dev/null
;
then
# Aesthetically quote it.
arg
=
`
$echo
"X
$nonopt
"
|
$Xsed
-e
"
$sed_quote_subst
"
`
case
$arg
in
*
$quote_scanset
*
|
*
]
*
|
*
\|
*
|
*
\&
*
|
*
\(
*
|
*
\)
*
|
""
)
*
[
\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \
]
*
|
*
]
*
|
""
)
arg
=
"
\"
$arg
\"
"
;;
esac
...
...
@@ -5431,14 +5445,14 @@ relink_command=\"$relink_command\""
shift
else
install_prog
=
arg
=
"
$nonopt
"
arg
=
$nonopt
fi
# The real first argument should be the name of the installation program.
# Aesthetically quote it.
arg
=
`
$echo
"X
$arg
"
|
$Xsed
-e
"
$sed_quote_subst
"
`
case
$arg
in
*
$quote_scanset
*
|
*
]
*
|
*
\|
*
|
*
\&
*
|
*
\(
*
|
*
\)
*
|
""
)
*
[
\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \
]
*
|
*
]
*
|
""
)
arg
=
"
\"
$arg
\"
"
;;
esac
...
...
@@ -5456,28 +5470,31 @@ relink_command=\"$relink_command\""
do
if
test
-n
"
$dest
"
;
then
files
=
"
$files
$dest
"
dest
=
"
$arg
"
dest
=
$arg
continue
fi
case
$arg
in
-d
)
isdir
=
yes
;;
-f
)
prev
=
"-f"
;;
-g
)
prev
=
"-g"
;;
-m
)
prev
=
"-m"
;;
-o
)
prev
=
"-o"
;;
-f
)
case
"
$install_prog
"
in
*
[
\\\
/]cp
\
*
)
;;
*
)
prev
=
$arg
;;
esac
;;
-g
|
-m
|
-o
)
prev
=
$arg
;;
-s
)
stripme
=
" -s"
continue
;;
-
*
)
;;
-
*
)
;;
*
)
# If the previous option needed an argument, then skip it.
if
test
-n
"
$prev
"
;
then
prev
=
else
dest
=
"
$arg
"
dest
=
$arg
continue
fi
;;
...
...
@@ -5486,7 +5503,7 @@ relink_command=\"$relink_command\""
# Aesthetically quote the argument.
arg
=
`
$echo
"X
$arg
"
|
$Xsed
-e
"
$sed_quote_subst
"
`
case
$arg
in
*
$quote_scanset
*
|
*
]
*
|
*
\|
*
|
*
\&
*
|
*
\(
*
|
*
\)
*
|
""
)
*
[
\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \
]
*
|
*
]
*
|
""
)
arg
=
"
\"
$arg
\"
"
;;
esac
...
...
@@ -5655,11 +5672,14 @@ relink_command=\"$relink_command\""
if
test
"$#"
-gt
0
;
then
# Delete the old symlinks, and create new ones.
# Try `ln -sf' first, because the `ln' binary might depend on
# the symlink we replace! Solaris /bin/ln does not understand -f,
# so we also need to try rm && ln -s.
for
linkname
do
if
test
"
$linkname
"
!=
"
$realname
"
;
then
$show
"(cd
$destdir
&&
$rm
$linkname
&&
$LN_S
$realname
$linkname
)"
$run
eval
"(cd
$destdir
&&
$rm
$linkname
&&
$LN_S
$realname
$linkname
)"
$show
"(cd
$destdir
&&
{
$LN_S
-f
$realname
$linkname
|| {
$rm
$linkname
&&
$LN_S
$realname
$linkname
; }; }
)"
$run
eval
"(cd
$destdir
&&
{
$LN_S
-f
$realname
$linkname
|| {
$rm
$linkname
&&
$LN_S
$realname
$linkname
; }; }
)"
fi
done
fi
...
...
@@ -5672,7 +5692,16 @@ relink_command=\"$relink_command\""
IFS
=
"
$save_ifs
"
eval
cmd
=
\"
$cmd
\"
$show
"
$cmd
"
$run
eval
"
$cmd
"
||
exit
$?
$run
eval
"
$cmd
"
||
{
lt_exit
=
$?
# Restore the uninstalled library and exit
if
test
"
$mode
"
=
relink
;
then
$run
eval
'(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
fi
exit
$lt_exit
}
done
IFS
=
"
$save_ifs
"
fi
...
...
@@ -5773,17 +5802,15 @@ relink_command=\"$relink_command\""
notinst_deplibs
=
relink_command
=
# To insure that "foo" is sourced, and not "foo.exe",
# finese the cygwin/MSYS system by explicitly sourcing "foo."
# which disallows the automatic-append-.exe behavior.
case
$build
in
*
cygwin
*
|
*
mingw
*
)
wrapperdot
=
${
wrapper
}
.
;;
*
)
wrapperdot
=
${
wrapper
}
;;
esac
# Note that it is not necessary on cygwin/mingw to append a dot to
# foo even if both foo and FILE.exe exist: automatic-append-.exe
# behavior happens only for exec(3), not for open(2)! Also, sourcing
# `FILE.' does not work on cygwin managed mounts.
#
# If there is no directory component, then add one.
case
$
file
in
*
/
*
|
*
\\
*
)
.
${
wrapper
dot
}
;;
*
)
.
./
${
wrapper
dot
}
;;
case
$
wrapper
in
*
/
*
|
*
\\
*
)
.
${
wrapper
}
;;
*
)
.
./
${
wrapper
}
;;
esac
# Check the variables that should have been set.
...
...
@@ -5811,17 +5838,15 @@ relink_command=\"$relink_command\""
done
relink_command
=
# To insure that "foo" is sourced, and not "foo.exe",