Changeset 1467


Ignore:
Timestamp:
Feb 6, 2010 2:51:57 PM (10 years ago)
Author:
stefan
Message:

allow for .pc files which name differ from the project's short name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/BSPsplit/coin.m4

    r1466 r1467  
    34833483# If $2/$1 or $1 is in COIN_SKIP_PROJECTS, do nothing.
    34843484# If --with-$1-lib, --with-$1-incdir, or --with-$1-datadir is given, then assume that the package is installed.
    3485 # Otherwise, if pkg-config is available, use it to check whether package is available.
    3486 # Otherwise, if the directory subdir/package and the file subdir/package/file exist, check whether subdir/package/configure exists.
     3485# Otherwise, if pkg-config is available, use it to check whether the package is available.
     3486#   If $4 is given, then pkg-config is asked for the existance of $4, otherwise tolower($1) is used.
     3487# Otherwise, if the directory $2/$1 and the file $2/$1/$3 exist, check whether $2/$1/configure exists.
    34873488#   If so, include this directory into the list of directories where configure and make recourse into.
    3488 # tolower(coin_has_$1) is set to notGiven, skipping, installed, or the projects main directory (if uninstalled).
     3489# tolower(coin_has_$1) is set to notGiven, skipping, installed, the version of an installed project, or the projects main directory (if uninstalled).
    34893490
    34903491AC_DEFUN([AC_COIN_MAIN_PACKAGEDIR],
     
    35563557    # need to export variable to be sure that the following pkg-config call gets these values
    35573558    export PKG_CONFIG_PATH
    3558     AC_COIN_PKG_CHECK_PROJECT_EXISTS([$1], [m4_tolower(coin_has_$1)="$m4_toupper($1)_VERSION"])
     3559    AC_COIN_PKG_CHECK_PROJECT_EXISTS(m4_ifval([$4],[$4],[$1]), [m4_tolower(coin_has_$1)="$m4_toupper(m4_ifval([$4],[$4],[$1]))_VERSION"])
    35593560
    35603561    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
Note: See TracChangeset for help on using the changeset viewer.