load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make") package(default_visibility = ["//visibility:public"]) filegroup( name = "all_srcs", srcs = glob(["**"]), ) configure_make( name = "libtool", build_data = [ "@m4", ], env = select({ "@platforms//os:macos": { "AR": "", "M4": "$$EXT_BUILD_DEPS$$/bin/m4/bin/m4", }, "//conditions:default": {"M4": "$$EXT_BUILD_DEPS$$/bin/m4/bin/m4"}, }), install_prefix = "install", lib_source = ":all_srcs", out_binaries = [ "libtool", ], out_data_dirs = ["share"], )