Changeset 1655


Ignore:
Timestamp:
Jul 22, 2010 6:41:44 PM (9 years ago)
Author:
lou
Message:

My bad. Not sure how I managed to get this to work initially, but there's no
way setting coin_has_proj in a subshell is going to persist. Restore explicit
save/restore of PKG_CONFIG_PATH in COIN_MAIN_PACKAGEDIR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r1631 r1655  
    36943694  #we are only interested in installed packages here, so we do not search in $COIN_PKG_CONFIG_PATH_UNINSTALLED
    36953695  if test -n "$PKG_CONFIG" ; then
    3696     ( PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH" ; export PKG_CONFIG_PATH
     3696    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     3697    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH" ; export PKG_CONFIG_PATH
    36973698      m4_ifval([$4],
    36983699        [AC_COIN_PKG_CHECK_PROJECT_EXISTS([$4],
    36993700                [m4_tolower(coin_has_$1)="$m4_toupper([$4])_VERSION"])],
    37003701              [AC_COIN_PKG_CHECK_PROJECT_EXISTS([$1],
    3701                 [m4_tolower(coin_has_$1)="$m4_toupper([$1])_VERSION"])]) )
     3702                [m4_tolower(coin_has_$1)="$m4_toupper([$1])_VERSION"])])
     3703    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     3704    export PKG_CONFIG_PATH
    37023705  fi
    37033706fi
Note: See TracChangeset for help on using the changeset viewer.