grim/purple-plugin-pack

Backport Pidgin revision c1c52794e349dc32db9a48305c457dab1483c374:
org.guifications.plugins
2008-11-25, nosnilmot
8ad63815f06d
Parents d6db6b958a3b
Children 2801e5d3fca3
Backport Pidgin revision c1c52794e349dc32db9a48305c457dab1483c374:
"echo -n is not portable, and OSX has libtoolize installed as glibtoolize"
  • +14 -6
    autogen.sh
  • --- a/autogen.sh Tue Nov 25 17:01:18 2008 -0500
    +++ b/autogen.sh Tue Nov 25 17:05:21 2008 -0500
    @@ -48,13 +48,21 @@
    PACKAGE="Purple Plugin Pack"
    ARGS_FILE="autogen.args"
    +libtoolize="libtoolize"
    +case $(uname -s) in
    + Darwin*)
    + libtoolize="glibtoolize"
    + ;;
    + *)
    +esac
    +
    ###############################################################################
    # Some helper functions
    ###############################################################################
    check () {
    CMD=$1
    - echo -n "checking for ${CMD}... "
    + printf "%s" "checking for ${CMD}... "
    BIN=`which ${CMD} 2>/dev/null`
    if [ x"${BIN}" = x"" ] ; then
    @@ -72,7 +80,7 @@
    OUTPUT=`mktemp autogen-XXXXXX`
    - echo -n "running ${CMD} ${@}... "
    + printf "%s" "running ${CMD} ${@}... "
    ${CMD} ${@} >${OUTPUT} 2>&1
    if [ $? != 0 ] ; then
    @@ -104,10 +112,10 @@
    ###############################################################################
    # Look for our args file
    ###############################################################################
    -echo -n "checking for ${ARGS_FILE}: "
    +printf "%s" "checking for ${ARGS_FILE}: "
    if [ -f ${ARGS_FILE} ] ; then
    echo "found."
    - echo -n "sourcing ${ARGS_FILE}: "
    + printf "%s" "sourcing ${ARGS_FILE}: "
    . ${ARGS_FILE}
    echo "done."
    else
    @@ -117,7 +125,7 @@
    ###############################################################################
    # Check for our required helpers
    ###############################################################################
    -check "libtoolize"; LIBTOOLIZE=${BIN};
    +check "$libtoolize"; LIBTOOLIZE=${BIN};
    check "intltoolize"; INTLTOOLIZE=${BIN};
    check "aclocal"; ACLOCAL=${BIN};
    check "autoheader"; AUTOHEADER=${BIN};
    @@ -130,7 +138,7 @@
    ###############################################################################
    CONFIG_FILE="plugin_pack.m4"
    -echo -n "creating ${CONFIG_FILE} ..."
    +printf "%s" "creating ${CONFIG_FILE} ..."
    ${PYTHON} plugin_pack.py config_file > ${CONFIG_FILE}
    echo " done."