diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 23 |
1 files changed, 15 insertions, 8 deletions
@@ -25,20 +25,22 @@ package_description='OPK Build Helper Tools' srcdir="$(cd "${0%/*}" && pwd)" prefix='/usr/local' -bindir='$(prefix)/bin' -libdir='$(prefix)/share' -datadir='$(prefix)/share' -mandir='$(datadir)/man' -localedir='$(datadir)/locale' -libopkhelper='$(libdir)/libopkhelper.3.0' +bindir='${prefix}/bin' +libdir='${prefix}/share' +datadir='${prefix}/share' +mandir='${datadir}/man' +localedir='${datadir}/locale' +libopkhelper='${libdir}/libopkhelper.3.0' quiet='false' missing_deps='false' dep_cmds=' sh +make ' dep_libs=' libopkbuild.1 +archtab ' long_opts_with_args=' @@ -158,6 +160,7 @@ Dependencies: --with-sh=PATH use sh at PATH --with-libopkbuild.1=PATH use libopkbuild.1 at PATH + --with-archtab=PATH use archtab at PATH EOF } @@ -286,10 +289,10 @@ find_dep_lib() IFS=':' - for _element in ${libdir}:${PATH}; do + for _element in $(eval echo "${libdir}") ${PATH}; do unset IFS : ${_element=-.} - if [ -f "${_element}/${_dep}" -a -x "${_element}/${_dep}" ]; then + if [ -d "${_element}/${_dep}" ]; then ${quiet} || printf '%s/%s\n' "${_element}" "${_dep}" eval "${_dep}"=\"${_element}/${_dep}\" return 0 @@ -315,6 +318,10 @@ write_makefiles() mkdir -p "${_dir}" sed "${_sed_script}" "${srcdir}/${_dir}/Makefile.in" >"${_dir}/Makefile" done + + # New and improved kludge to generate an architecture table for testing. + # TODO: Remove when no longer used. + sed "${_sed_script}" "${srcdir}/mkarchtab.in" >'mkarchtab' } main "${@}" |