diff options
Diffstat (limited to 'scripts/xdt-autogen.in.in')
-rw-r--r-- | scripts/xdt-autogen.in.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/xdt-autogen.in.in b/scripts/xdt-autogen.in.in index 3a128e4..b5a075c 100644 --- a/scripts/xdt-autogen.in.in +++ b/scripts/xdt-autogen.in.in @@ -409,7 +409,13 @@ done ## ## Check for libtoolize ## -test -z "${XDT_PROG_LIBTOOLIZE}" && XDT_PROG_LIBTOOLIZE="libtoolize" +if test -z "${XDT_PROG_LIBTOOLIZE}"; then + if type glibtoolize >/dev/null 2>&1; then + XDT_PROG_LIBTOOLIZE="glibtoolize" + elif type libtoolize >/dev/null 2>&1; then + XDT_PROG_LIBTOOLIZE="libtoolize" + fi +fi for configure_ac_file in $CONFIGURE_AC_FILES; do if grep -q "^AC_PROG_LIBTOOL" "${configure_ac_file}"; then (${XDT_PROG_LIBTOOLIZE} --version) </dev/null >/dev/null 2>&0 || { |