diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-08-19 20:43:01 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-08-19 20:43:01 (GMT) |
commit | 9ff25602306cba61aab5132e06a442ea8f7943c3 (patch) | |
tree | 7254f135a9eac239aa539efe2138ce1b46801b1c /configure | |
parent | f2f6d799c55e5be1b1c4d38a9b61d9bfc1f692f2 (diff) |
configure: recognise and handle --program-suffix
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -12,6 +12,7 @@ LIBDIR_set= DOCDIR_set= MANDIR_set= PROG_PFX= +PROG_SFX= LOCAL_set= FORCE= @@ -64,6 +65,9 @@ set_mandir() { set_program_prefix() { PROG_PFX="$( get_optval "$1" "$2" )" } +set_program_suffix() { + PROG_SFX="$( get_optval "$1" "$2" )" +} set_tool() { local var_name="${1%%=*}" var_name="${var_name#--with-}" @@ -334,6 +338,7 @@ Fine tuning of the installation directories: Program names: --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names System types: --build=BUILD configure for building on BUILD [guessed] (ignored) @@ -368,6 +373,9 @@ while [ $# -ne 0 ]; do --program-prefix=*|--program-prefix) set_program_prefix "$1" "$2" && shift || shift 2 ;; + --program-suffix=*|--program-suffix) + set_program_suffix "$1" "$2" && shift || shift 2 + ;; --force) FORCE=1; shift;; --help|-h) do_help; exit 0;; # Skip, auto-stuff compatibility @@ -389,6 +397,7 @@ if [ "${LOCAL_set}" = "y" ]; then set_docdir "" "$( pwd )/docs" set_mandir "" "$( pwd )/docs" set_program_prefix "" "" + set_program_suffix "" "" fi #--------------------------------------------------------------------- @@ -635,6 +644,9 @@ done case "${PROG_PFX}" in */*) do_error "program prefix '${PROG_PFX}' contains a '/'";; esac +case "${PROG_SFX}" in + */*) do_error "program suffix '${PROG_SFX}' contains a '/'";; +esac #--------------------------------------------------------------------- # That's all, folks! @@ -653,6 +665,7 @@ kconfig_sed="s/@@KCONFIG@@/$( for k_name in ${kconfig_list}; do -e "s,@@DOCDIR@@,${DOCDIR},g" \ -e "s,@@MANDIR@@,${MANDIR},g" \ -e "s,@@PROG_PFX@@,${PROG_PFX},g" \ + -e "s,@@PROG_SFX@@,${PROG_SFX},g" \ -e "s,@@VERSION@@,${VERSION},g" \ -e "s,@@DATE@@,${DATE},g" \ -e "s,@@LOCAL@@,${LOCAL_set},g" \ @@ -671,6 +684,7 @@ crosstool-NG configured as follows: DOCDIR='${DOCDIR}' MANDIR='${MANDIR}' PROG_PFX='${PROG_PFX}' + PROG_SFX='${PROG_SFX}' Now run: make |