diff options
author | Nick Schermer <nick@xfce.org> | 2011-11-03 19:27:32 +0100 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2011-11-03 19:27:32 +0100 |
commit | 56cde58238898e5659c39f5e713ee0362ba772d9 (patch) | |
tree | 21b97f1a01a36e14e82a20af377e0e9a28cfdaa4 | |
parent | de35c92f942ca617e53c79e7d519a67a40d9cac3 (diff) | |
download | xfce4-dev-tools-56cde58238898e5659c39f5e713ee0362ba772d9.tar.gz |
Add support for LT_PREREQ (bug #6920).
Support LT_PREREQ as the new alternative of AC_PROG_LIBTOOL. If
the latter is used, show a message with information how to switch
to LT_PREREQ.
-rw-r--r-- | scripts/xdt-autogen.in.in | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/scripts/xdt-autogen.in.in b/scripts/xdt-autogen.in.in index a7dbd3f..0ba203f 100644 --- a/scripts/xdt-autogen.in.in +++ b/scripts/xdt-autogen.in.in @@ -415,7 +415,25 @@ if test -z "${XDT_PROG_LIBTOOLIZE}"; then fi fi for configure_ac_file in $CONFIGURE_AC_FILES; do + runlibtoolize=0 if grep -q "^AC_PROG_LIBTOOL" "${configure_ac_file}"; then + cat >&2 <<EOF +xdt-autogen: It is recommended to use LT_PREREQ([2.2.6]) and + LT_INIT([disable-static]) in your configure.ac + file and remove AC_PROG_LIBTOOL and AC_DISABLE_STATIC. + + See http://bugzilla.xfce.org/show_bug.cgi?id=6920 for + more information. + +EOF + runlibtoolize=1 + fi; + + if grep -q "^LT_PREREQ" "${configure_ac_file}"; then + runlibtoolize=1 + fi; + + if test $runlibtoolize -eq 1; then (${XDT_PROG_LIBTOOLIZE} --version) </dev/null >/dev/null 2>&0 || { cat >&2 <<EOF xdt-autogen: You must have "libtool" installed on your system. @@ -608,7 +626,7 @@ XGETTEXT_ARGS = @XGETTEXT_ARGS@ fi fi - if grep -q "^AC_PROG_LIBTOOL" "${configure_ac_file}"; then + if grep -q -e "^AC_PROG_LIBTOOL" -e "^LT_PREREQ" "${configure_ac_file}"; then (echo "Running ${XDT_PROG_LIBTOOLIZE} --force --copy..." && cd "${source_dir}" && ${XDT_PROG_LIBTOOLIZE} --force --copy) || exit 1 |