Ignore:
Timestamp:
Apr 29, 2005, 2:51:27 AM (15 years ago)
Author:
jberry
Message:

Bug: 2975
Submitted by: dluke, jberry@
Reviewed by: jberry

Remember path to tar cmd for use at run time. The prevents a different tar being used at run time than was found by configure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/aclocal.m4

    r11922 r12084  
    418418dnl This macro tests for tar support of --no-same-owner
    419419AC_DEFUN([OD_TAR_NO_SAME_OWNER],[
    420         AC_CHECK_PROG(TAR_CMD, [gnutar], [gnutar], [tar])
    421         AC_MSG_CHECKING([for tar --no-same-owner support])
     420        AC_PATH_PROG(TAR, [tar])
     421        AC_PATH_PROG(GNUTAR, [gnutar])
     422       
     423        AC_MSG_CHECKING([for which tar variant to use])
     424        AS_IF([test -n "$GNUTAR"], [TAR_CMD=$GNUTAR], [TAR_CMD=$TAR])
     425        AC_MSG_RESULT([$TAR_CMD])
     426        AC_SUBST(TAR_CMD)
     427
     428        AC_MSG_CHECKING([for $TAR_CMD --no-same-owner support])
    422429        [no_same_owner_support=`$TAR_CMD --help 2>&1 | grep no-same-owner`]
    423430        if test -z "$no_same_owner_support" ; then
Note: See TracChangeset for help on using the changeset viewer.