# Accept any command-line options.
case $arg in
- -o)
- if test "$user_target" != "no"; then
- $echo "$modename: you cannot specify \`-o' more than once" 1>&2
- exit 1
- fi
+ -o)[++
+ test-or-exit test = 'test "$user_target" != "no"' no_help = true
+ msg = "you cannot specify \\`-o' more than once" ++]
user_target=next
;;
# Get the name of the library object.
libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
;;
- *)
- $echo "$modename: you must specify a target with \`-o'" 1>&2
- exit 1
+ *)[++
+ test-or-exit msg = "you must specify a target with \\`-o'"
+ no_help = true ++]
;;
esac
case $libobj in
*.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
- *)
- $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
- exit 1
+ *)[++
+ test-or-exit no_help = true
+ msg = "cannot determine name of library object from \\`$libobj'"++]
;;
esac
done
# If $tagname still isn't set, then no tagged configuration
# was found and let the user know that the "--tag" command
- # line option must be used.
- if test -z "$tagname"; then
- echo "$modename: unable to infer tagged configuration"
- echo "$modename: specify a tag with \`--tag'" 1>&2
- exit 1
-# else
-# echo "$modename: using $tagname tagged configuration"
- fi
+ # line option must be used.[++
+ test-or-exit test = 'test -z "$tagname"' no_help = true
+msg = "unable to infer tagged configuration\n\tspecify a tag with \\`--tag'"++]
+# echo "$modename: using $tagname tagged configuration"
;;
esac
fi
else
xdir=$xdir/
fi
- lobj=${xdir}$objdir/$objname
-
- if test -z "$base_compile"; then
- $echo "$modename: you must specify a compilation command" 1>&2
- $echo "$help" 1>&2
- exit 1
- fi
+ lobj=${xdir}$objdir/$objname[++
+ test-or-exit test = 'test -z "$base_compile"'
+ msg = "you must specify a compilation command" ++]
# Delete any leftover library objects.
if test "$build_old_libs" = yes; then
$show "Waiting for $lockfile to be removed"
sleep 2
done
- elif test "$need_locks" = warn; then
- if test -f "$lockfile"; then
- echo "\
-*** ERROR, $lockfile exists and contains:
-`cat $lockfile 2>/dev/null`
-
-This indicates that another process is trying to use the same
-temporary object file, and libtool could not work around it because
-your compiler does not support \`-c' and \`-o' together. If you
-repeat this compilation, it may succeed, by chance, but you had better
-avoid parallel builds (make -j) in this platform, or get a better
-compiler."
-
- $run $rm $removelist
- exit 1
- fi
+ elif test "$need_locks" = warn; then[++
+ lock-conflict test = 'test -f "$lockfile"' ++]
echo $srcfile > "$lockfile"
fi
fi
if test "$need_locks" = warn &&
- test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
- echo "\
-*** ERROR, $lockfile contains:
-`cat $lockfile 2>/dev/null`
-
-but it should contain:
-$srcfile
-
-This indicates that another process is trying to use the same
-temporary object file, and libtool could not work around it because
-your compiler does not support \`-c' and \`-o' together. If you
-repeat this compilation, it may succeed, by chance, but you had better
-avoid parallel builds (make -j) in this platform, or get a better
-compiler."
-
- $run $rm $removelist
- exit 1
+ test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then[++
+ lock-conflict ++]
fi
# Just move the object if needed, then go on to compile the next one
fi
if test "$need_locks" = warn &&
- test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
- echo "\
-*** ERROR, $lockfile contains:
-`cat $lockfile 2>/dev/null`
-
-but it should contain:
-$srcfile
-
-This indicates that another process is trying to use the same
-temporary object file, and libtool could not work around it because
-your compiler does not support \`-c' and \`-o' together. If you
-repeat this compilation, it may succeed, by chance, but you had better
-avoid parallel builds (make -j) in this platform, or get a better
-compiler."
-
- $run $rm $removelist
- exit 1
+ test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then[++
+ lock-conflict ++]
fi
# Just move the object if needed
#
# DO NOT EDIT THIS FILE (ltmain.in)
#
-# It has been AutoGen-ed Sunday May 13, 2001 at 08:35:45 AM PDT
+# It has been AutoGen-ed Sunday May 13, 2001 at 12:48:21 PM PDT
# From the definitions ltstr.def
# and the template file ltmain.tpl
#
# Accept any command-line options.
case $arg in
-o)
- if test "$user_target" != "no"; then
- $echo "$modename: you cannot specify \`-o' more than once" 1>&2
- exit 1
- fi
+if (test "$user_target" != "no") > /dev/null 2>&1 ; then
+ $echo "$modename: you cannot specify \`-o' more than once" 1>&2
+ exit 1
+fi
user_target=next
;;
libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
;;
*)
- $echo "$modename: you must specify a target with \`-o'" 1>&2
- exit 1
+ $echo "$modename: you must specify a target with \`-o'" 1>&2
+ exit 1
;;
esac
case $libobj in
*.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
*)
- $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
- exit 1
+ $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
+ exit 1
;;
esac
# If $tagname still isn't set, then no tagged configuration
# was found and let the user know that the "--tag" command
# line option must be used.
- if test -z "$tagname"; then
- echo "$modename: unable to infer tagged configuration"
- echo "$modename: specify a tag with \`--tag'" 1>&2
- exit 1
-# else
-# echo "$modename: using $tagname tagged configuration"
- fi
+if (test -z "$tagname") > /dev/null 2>&1 ; then
+ $echo "$modename: unable to infer tagged configuration
+ specify a tag with \`--tag'" 1>&2
+ exit 1
+fi
+# echo "$modename: using $tagname tagged configuration"
;;
esac
fi
xdir=$xdir/
fi
lobj=${xdir}$objdir/$objname
-
- if test -z "$base_compile"; then
- $echo "$modename: you must specify a compilation command" 1>&2
- $echo "$help" 1>&2
- exit 1
- fi
+if (test -z "$base_compile") > /dev/null 2>&1 ; then
+ $echo "$modename: you must specify a compilation command" 1>&2
+ $echo "$help" 1>&2
+ exit 1
+fi
# Delete any leftover library objects.
if test "$build_old_libs" = yes; then
sleep 2
done
elif test "$need_locks" = warn; then
- if test -f "$lockfile"; then
- echo "\
+if (test -f "$lockfile") > /dev/null 2>&1 ; then
+ cat >&2 <<_EOF_
*** ERROR, $lockfile exists and contains:
`cat $lockfile 2>/dev/null`
-This indicates that another process is trying to use the same
-temporary object file, and libtool could not work around it because
-your compiler does not support \`-c' and \`-o' together. If you
-repeat this compilation, it may succeed, by chance, but you had better
-avoid parallel builds (make -j) in this platform, or get a better
-compiler."
+but it should contain:
+$srcfile
- $run $rm $removelist
- exit 1
- fi
+This indicates that another process is trying to use the same temporary
+object file, and libtool could not work around it because your compiler
+does not support \\`-c' and \\`-o' together. If you repeat this
+compilation, it may succeed, by chance, but you had better avoid parallel
+builds (make -j) on this platform, or get another compiler.
+_EOF_
+ $run $rm $removelist
+ exit 1
+fi
echo $srcfile > "$lockfile"
fi
if test "$need_locks" = warn &&
test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
- echo "\
-*** ERROR, $lockfile contains:
+ cat >&2 <<_EOF_
+*** ERROR, $lockfile exists and contains:
`cat $lockfile 2>/dev/null`
but it should contain:
$srcfile
-This indicates that another process is trying to use the same
-temporary object file, and libtool could not work around it because
-your compiler does not support \`-c' and \`-o' together. If you
-repeat this compilation, it may succeed, by chance, but you had better
-avoid parallel builds (make -j) in this platform, or get a better
-compiler."
-
- $run $rm $removelist
- exit 1
+This indicates that another process is trying to use the same temporary
+object file, and libtool could not work around it because your compiler
+does not support \\`-c' and \\`-o' together. If you repeat this
+compilation, it may succeed, by chance, but you had better avoid parallel
+builds (make -j) on this platform, or get another compiler.
+_EOF_
+ $run $rm $removelist
+ exit 1
fi
# Just move the object if needed, then go on to compile the next one
if test "$need_locks" = warn &&
test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
- echo "\
-*** ERROR, $lockfile contains:
+ cat >&2 <<_EOF_
+*** ERROR, $lockfile exists and contains:
`cat $lockfile 2>/dev/null`
but it should contain:
$srcfile
-This indicates that another process is trying to use the same
-temporary object file, and libtool could not work around it because
-your compiler does not support \`-c' and \`-o' together. If you
-repeat this compilation, it may succeed, by chance, but you had better
-avoid parallel builds (make -j) in this platform, or get a better
-compiler."
-
- $run $rm $removelist
- exit 1
+This indicates that another process is trying to use the same temporary
+object file, and libtool could not work around it because your compiler
+does not support \\`-c' and \\`-o' together. If you repeat this
+compilation, it may succeed, by chance, but you had better avoid parallel
+builds (make -j) on this platform, or get another compiler.
+_EOF_
+ $run $rm $removelist
+ exit 1
fi
# Just move the object if needed
# The first argument is the command name.
cmd="$nonopt"
- if (test -z "$cmd") > /dev/null 2>&1 ; then
+
+if (test -z "$cmd") > /dev/null 2>&1 ; then
$echo "$modename: you must specify a COMMAND" 1>&2
$echo "$help" 1>&2
exit 1
fi
# Handle -dlopen flags immediately.
for file in $execute_dlfiles; do
- if (test ! -f "$file") > /dev/null 2>&1 ; then
+if (test ! -f "$file") > /dev/null 2>&1 ; then
$echo "$modename: \`$file' is not a file" 1>&2
$echo "$help" 1>&2
exit 1
case $file in
*.la)
# Check to see that this really is a libtool archive.
- if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") > /dev/null 2>&1 ; then :
+if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") > /dev/null 2>&1 ; then :
else
$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
$echo "$help" 1>&2
dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
test "X$dir" = "X$file" && dir=.
-
- if (test -f "$dir/$objdir/$dlname") > /dev/null 2>&1 ; then :
+if (test -f "$dir/$objdir/$dlname") > /dev/null 2>&1 ; then :
else
$echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
$echo "$help" 1>&2