Changeset 1433


Ignore:
Timestamp:
Nov 1, 2009 11:58:43 AM (11 years ago)
Author:
stefan
Message:

fix helper macro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/BSPsplit/coin.m4

    r1432 r1433  
    37523752[
    37533753module_content="$module_content m4_tolower($1)"
    3754 for i in $1 ; do
    3755   # check if directory $srcdir/../$1 exists and add ../$1 to the PKG_CONFIG_PATH
    3756   # this is for the classic setup where an uninstalled project can be found in ../$1
    3757   if test -d $srcdir/../$1; then
    3758 #    coin_pkg_is_here=no
    3759 #    m4_ifvaln([$3],
    3760 #      [for i in $srcdir/../$2/$1/$3; do
    3761 #         if test -r $i; then
    3762 #           coin_pkg_is_here=yes
    3763 #         fi
    3764 #       done],
    3765 #      [ coin_pkg_is_here=yes ])
    3766 #    if test $coin_pkg_is_here = yes; then
    3767       PKG_CONFIG_PATH="../$1:$PKG_CONFIG_PATH"
    3768 #    fi
    3769   break;
    3770   fi
    3771 done
     3754
     3755# extract the package name: get everything before first space
     3756pkgname=`echo "$1" | sed -e 's/ .*//g'`
     3757
     3758# check if directory $srcdir/../$1 exists and add ../$1 to the PKG_CONFIG_PATH
     3759# this is for the classic setup where an uninstalled project can be found in ../$1
     3760if test -d $srcdir/../$pkgname; then
     3761  PKG_CONFIG_PATH="../$pkgname:$PKG_CONFIG_PATH"
     3762fi
    37723763]) # AC_COIN_HAS_MODULE_HELPER
    37733764
Note: See TracChangeset for help on using the changeset viewer.