Skip to content

Commit

Permalink
MSYS2: Set ACLOCAL_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
zmughal committed Nov 12, 2023
1 parent d2f5b20 commit 3bf526c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion alienfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use alienfile;

use Env qw(@PKG_CONFIG_PATH);
use Env qw(@PKG_CONFIG_PATH @ACLOCAL_PATH);

plugin PkgConfig => 'hdt';

Expand Down Expand Up @@ -30,6 +30,15 @@ share {
push @PKG_CONFIG_PATH, Alien::Serd->pkg_config_path;
} or warn "Unable to add to \$PKG_CONFIG_PATH (@PKG_CONFIG_PATH): $@";

if( exists $ENV{MSYSTEM} ) {
# Need for call to `autoreconf` in `./autogen.sh`.
push @ACLOCAL_PATH,
(
'm4',
"/@{[ lc $ENV{MSYSTEM} ]}/share/aclocal"
);
}

build [

# shared
Expand Down

0 comments on commit 3bf526c

Please sign in to comment.