-# Copyright (C) 2003, 2005-2007, 2009 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2005-2007, 2009-2011 Free Software Foundation, Inc.
# Written by Bruno Haible <bruno@clisp.org>, 2003.
#
# This program is free software: you can redistribute it and/or modify
# Written by Bruno Haible <bruno@clisp.org>, 2003.
#
# This program is free software: you can redistribute it and/or modify
# install_command... destprog
# where
# - library_path_var is the platform dependent runtime library path variable
# install_command... destprog
# where
# - library_path_var is the platform dependent runtime library path variable
# alloca.h and stdbool.h)
# - config_h_dir is the directory where to find config.h
# - exeext is platform dependent suffix of executables
# alloca.h and stdbool.h)
# - config_h_dir is the directory where to find config.h
# - exeext is platform dependent suffix of executables
-# - install-command is the install command line, excluding the final destprog
+# - strip_command is the command for stripping executables, or : if no
+# stripping is desired
+# - install_command is the install command line, excluding the final destprog
# - destprog is the destination program name
# install-reloc renames destprog to destprog.bin and installs a relocating
# wrapper in the place of destprog.
# - destprog is the destination program name
# install-reloc renames destprog to destprog.bin and installs a relocating
# wrapper in the place of destprog.
install_prog=$1 # maybe not including the "-c" option
shift
else
echo "Usage: $0 library_path_var library_path_value prefix destdir" \
"compile_command srcdir builddir config_h_dir exeext" \
install_prog=$1 # maybe not including the "-c" option
shift
else
echo "Usage: $0 library_path_var library_path_value prefix destdir" \
"compile_command srcdir builddir config_h_dir exeext" \
# If the platform doesn't support LD_LIBRARY_PATH or similar, we cannot build
# a wrapper.
test -n "$library_path_var" || exit 0
# If the platform doesn't support LD_LIBRARY_PATH or similar, we cannot build
# a wrapper.
test -n "$library_path_var" || exit 0
# Rename $destprog.wrapper -> $destprog -> $destprog.bin.
ln -f "$destprog$exeext" "$destprog.bin$exeext" \
|| { rm -f "$destprog.bin$exeext" \
# Rename $destprog.wrapper -> $destprog -> $destprog.bin.
ln -f "$destprog$exeext" "$destprog.bin$exeext" \
|| { rm -f "$destprog.bin$exeext" \