Changeset 117670 for trunk/base


Ignore:
Timestamp:
Mar 7, 2014, 9:49:31 PM (10 years ago)
Author:
cal@…
Message:

aclocal.m4: ignore --no-recursion if the subpackages are missing or unconfigured

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/aclocal.m4

    r117621 r117670  
    112112        ac_dir=$2
    113113
    114         if test "$no_recursion" != yes; then
    115                 mp_popdir=$(pwd)
    116                 if ! test -d "$ac_dir"; then
    117                         mp_tarball_vendordir="$(dirname "$mp_tarball")"
    118                         AS_MKDIR_P(["$mp_tarball_vendordir"])
    119                         AC_MSG_NOTICE([=== extracting $mp_tarball])
    120                         (cd "$mp_tarball_vendordir"; gzip -d < "$ac_abs_confdir/$mp_tarball" | tar xf - || AC_MSG_ERROR([failed to extract $mp_tarball]))
    121                 fi
    122                 if ! test -d "$ac_dir"; then
    123                         AC_MSG_ERROR([tarball $mp_tarball did not extract to $ac_dir])
    124                 fi
    125        
     114        mp_popdir=$(pwd)
     115        if ! test -d "$ac_dir"; then
     116                mp_tarball_vendordir="$(dirname "$mp_tarball")"
     117                AS_MKDIR_P(["$mp_tarball_vendordir"])
     118                AC_MSG_NOTICE([=== extracting $mp_tarball])
     119                (cd "$mp_tarball_vendordir"; gzip -d < "$ac_abs_confdir/$mp_tarball" | tar xf - || AC_MSG_ERROR([failed to extract $mp_tarball]))
     120        fi
     121        if ! test -d "$ac_dir"; then
     122                AC_MSG_ERROR([tarball $mp_tarball did not extract to $ac_dir])
     123        fi
     124
     125        AS_MKDIR_P(["$ac_dir"])
     126        _AC_SRCDIRS(["$ac_dir"])
     127        cd "$ac_dir"
     128
     129        if test "$no_recursion" != yes -o ! -f "$ac_srcdir/config.status"; then
    126130                AC_MSG_NOTICE([=== configuring in $ac_dir ($mp_popdir/$ac_dir)])
    127                 AS_MKDIR_P(["$ac_dir"])
    128                 _AC_SRCDIRS(["$ac_dir"])
    129                 cd "$ac_dir"
    130131                if test -f "$ac_srcdir/configure"; then
    131132                        mp_sub_configure_args=
     
    280281                fi
    281282                AC_MSG_NOTICE([=== finished configuring in $ac_dir ($mp_popdir/$ac_dir)])
    282 
    283                 cd "$mp_popdir"
    284         fi
     283        fi
     284        cd "$mp_popdir"
    285285])
    286286
Note: See TracChangeset for help on using the changeset viewer.