aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgenii Kliuchnikov <eustas@google.com>2023-07-10 07:30:32 -0700
committerCopybara-Service <copybara-worker@google.com>2023-07-10 07:31:18 -0700
commitd1fadddc940a23de3fad34c02879d7cfa6f86460 (patch)
tree9a02c66f38d7f6e00c6ca511c56033e93300f817
parent2d0947f1ea22dc255cfac9c7e8b33576fb051340 (diff)
downloadbrotli-d1fadddc940a23de3fad34c02879d7cfa6f86460.zip
brotli-d1fadddc940a23de3fad34c02879d7cfa6f86460.tar.gz
brotli-d1fadddc940a23de3fad34c02879d7cfa6f86460.tar.bz2
drop make / automake files
PiperOrigin-RevId: 546866478
-rw-r--r--.github/workflows/build_test.yml36
-rw-r--r--Makefile55
-rw-r--r--Makefile.am38
-rw-r--r--README.md19
-rwxr-xr-xbootstrap36
-rwxr-xr-xconfigure8
-rwxr-xr-xconfigure-cmake322
-rw-r--r--configure.ac14
8 files changed, 0 insertions, 528 deletions
diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml
index 590a54a..d503790 100644
--- a/.github/workflows/build_test.yml
+++ b/.github/workflows/build_test.yml
@@ -98,19 +98,6 @@ jobs:
cmake_config: Debug
os: windows-2019
- # TODO: consider running this combination in docker
- #- name: autotools:gcc5
-
- - name: autotools:gcc10
- build_system: autotools
- c_compiler: gcc-10
- cxx_compiler: g++-10
-
- - name: autotools:clang12
- build_system: autotools
- c_compiler: clang-12
- cxx_compiler: clang++12
-
- name: fuzz:clang12
build_system: fuzz
c_compiler: clang-12
@@ -232,18 +219,6 @@ jobs:
bazel_project: research
os: windows-2019
- - name: make
- build_system: make
-
- - name: make-osx
- build_system: make
- os: macos-latest
-
- # TODO: add 32/64-bit x MSYS2/mingw/Cygwin toolchain support.
- - name: make-win
- build_system: make
- os: windows-latest
-
env:
CC: ${{ matrix.c_compiler || 'gcc' }}
CXX: ${{ matrix.cxx_compiler || 'gcc' }}
@@ -363,17 +338,6 @@ jobs:
cd integration
mvn -B verify
- - name: Build / Test with Autotools
- if: ${{ matrix.build_system == 'autotools' }}
- run: |
- ./bootstrap && ./configure && make
-
- - name: Build / Test with Make
- if: ${{ matrix.build_system == 'make' }}
- run: |
- make brotli
- make test
-
- uses: actions/setup-python@v2
if: ${{ matrix.build_system == 'python' }}
with:
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 4890940..0000000
--- a/Makefile
+++ /dev/null
@@ -1,55 +0,0 @@
-OS := $(shell uname)
-LIBSOURCES = $(wildcard c/common/*.c) $(wildcard c/dec/*.c) \
- $(wildcard c/enc/*.c)
-SOURCES = $(LIBSOURCES) c/tools/brotli.c
-BINDIR = bin
-OBJDIR = $(BINDIR)/obj
-LIBOBJECTS = $(addprefix $(OBJDIR)/, $(LIBSOURCES:.c=.o))
-OBJECTS = $(addprefix $(OBJDIR)/, $(SOURCES:.c=.o))
-LIB_A = libbrotli.a
-EXECUTABLE = brotli
-DIRS = $(OBJDIR)/c/common $(OBJDIR)/c/dec $(OBJDIR)/c/enc \
- $(OBJDIR)/c/tools $(BINDIR)/tmp
-CFLAGS += -O2
-ifeq ($(os), Darwin)
- CPPFLAGS += -DOS_MACOSX
-endif
-
-ifneq ($(strip $(CROSS_COMPILE)), )
- CC=$(CROSS_COMPILE)-gcc
- ARCH=$(firstword $(subst -, ,$(CROSS_COMPILE)))
- BROTLI_WRAPPER="qemu-$(ARCH) -L /usr/$(CROSS_COMPILE)"
-endif
-
-# The arm-linux-gnueabi compiler defaults to Armv5. Since we only support Armv7
-# and beyond, we need to select Armv7 explicitly with march.
-ifeq ($(ARCH), arm)
- CFLAGS += -march=armv7-a -mfloat-abi=hard -mfpu=neon
-endif
-
-all: test
- @:
-
-.PHONY: all clean test
-
-$(DIRS):
- mkdir -p $@
-
-$(EXECUTABLE): $(OBJECTS)
- $(CC) $(LDFLAGS) $(OBJECTS) -lm -o $(BINDIR)/$(EXECUTABLE)
-
-lib: $(LIBOBJECTS)
- rm -f $(LIB_A)
- ar -crs $(LIB_A) $(LIBOBJECTS)
-
-test: $(EXECUTABLE)
- tests/compatibility_test.sh $(BROTLI_WRAPPER)
- tests/roundtrip_test.sh $(BROTLI_WRAPPER)
-
-clean:
- rm -rf $(BINDIR) $(LIB_A)
-
-.SECONDEXPANSION:
-$(OBJECTS): $$(patsubst %.o,%.c,$$(patsubst $$(OBJDIR)/%,%,$$@)) | $(DIRS)
- $(CC) $(CFLAGS) $(CPPFLAGS) -Ic/include \
- -c $(patsubst %.o,%.c,$(patsubst $(OBJDIR)/%,%,$@)) -o $@
diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644
index ace7a85..0000000
--- a/Makefile.am
+++ /dev/null
@@ -1,38 +0,0 @@
-AUTOMAKE_OPTIONS = foreign nostdinc subdir-objects
-
-ACLOCAL_AMFLAGS = -I m4
-
-# Actual ABI version is substituted by bootstrap
-LIBBROTLI_VERSION_INFO = -version-info 0:0:0
-
-bin_PROGRAMS = brotli
-lib_LTLIBRARIES = libbrotlicommon.la libbrotlidec.la libbrotlienc.la
-
-include scripts/sources.lst
-
-brotliincludedir = $(includedir)/brotli
-brotliinclude_HEADERS = $(BROTLI_INCLUDE)
-
-AM_CFLAGS = -I$(top_srcdir)/c/include
-
-brotli_SOURCES = $(BROTLI_CLI_C)
-brotli_LDADD = libbrotlidec.la libbrotlienc.la libbrotlicommon.la -lm
-#brotli_LDFLAGS = -static
-
-libbrotlicommon_la_SOURCES = $(BROTLI_COMMON_C) $(BROTLI_COMMON_H)
-libbrotlicommon_la_LDFLAGS = $(AM_LDFLAGS) $(LIBBROTLI_VERSION_INFO) $(LDFLAGS)
-libbrotlidec_la_SOURCES = $(BROTLI_DEC_C) $(BROTLI_DEC_H)
-libbrotlidec_la_LDFLAGS = $(AM_LDFLAGS) $(LIBBROTLI_VERSION_INFO) $(LDFLAGS)
-libbrotlidec_la_LIBADD = libbrotlicommon.la -lm
-libbrotlienc_la_SOURCES = $(BROTLI_ENC_C) $(BROTLI_ENC_H)
-libbrotlienc_la_LDFLAGS = $(AM_LDFLAGS) $(LIBBROTLI_VERSION_INFO) $(LDFLAGS)
-libbrotlienc_la_LIBADD = libbrotlicommon.la -lm
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = \
- scripts/libbrotlicommon.pc \
- scripts/libbrotlidec.pc \
- scripts/libbrotlienc.pc
-pkgincludedir= $(brotliincludedir)
-
-dist_doc_DATA = README
diff --git a/README.md b/README.md
index 0f905e3..519428b 100644
--- a/README.md
+++ b/README.md
@@ -43,21 +43,6 @@ You can download and install brotli using the [vcpkg](https://github.com/Microso
The brotli port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
-#### Autotools-style CMake
-
-[configure-cmake](https://github.com/nemequ/configure-cmake) is an
-autotools-style configure script for CMake-based projects (not supported on Windows).
-
-The basic commands to build, test and install brotli are:
-
- $ mkdir out && cd out
- $ ../configure-cmake
- $ make
- $ make test
- $ make install
-
-By default, debug binaries are built. To generate "release" `Makefile` specify `--disable-debug` option to `configure-cmake`.
-
#### Bazel
See [Bazel](http://www.bazel.build/)
@@ -72,10 +57,6 @@ The basic commands to build and install brotli are:
You can use other [CMake](https://cmake.org/) configuration.
-#### Premake5
-
-See [Premake5](https://premake.github.io/)
-
#### Python
To install the latest release of the Python module, run the following:
diff --git a/bootstrap b/bootstrap
deleted file mode 100755
index d4325b2..0000000
--- a/bootstrap
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh -e
-
-REQUIRED='is required, but not installed.'
-bc -v >/dev/null 2>&1 || { echo >&2 "'bc' $REQUIRED"; exit 1; }
-[ "x`echo hello | sed s/hello/world/ 2>/dev/null`" = "xworld" ] || { echo >&2 "'sed' $REQUIRED"; exit 1; }
-autoreconf --version >/dev/null 2>&1 || { echo >&2 "'autoconf' $REQUIRED"; exit 1; }
-
-# Determine which flag sed uses for extended regular expressions.
-# -E is POSIX. -r is for GNU sed older than 4.2.
-echo hello | sed -E s/hello/world/ >/dev/null 2>&1 && SED_ERE=-E || SED_ERE=-r
-
-# If libtool is not installed ->
-# "error: Libtool library used but 'LIBTOOL' is undefined"
-
-if [ ! -e "./m4" ]; then
-mkdir m4 2>/dev/null
-fi
-
-BROTLI_ABI_HEX=`sed -n 's/#define BROTLI_ABI_VERSION 0x//p' c/common/version.h`
-BROTLI_ABI_INT=`echo "ibase=16;$BROTLI_ABI_HEX" | bc`
-BROTLI_ABI_CURRENT=`echo "scale=0;$BROTLI_ABI_INT / 16777216" | bc`
-BROTLI_ABI_REVISION=`echo "scale=0;$BROTLI_ABI_INT / 4096 % 4096" | bc`
-BROTLI_ABI_AGE=`echo "scale=0;$BROTLI_ABI_INT % 4096" | bc`
-BROTLI_ABI_INFO="$BROTLI_ABI_CURRENT:$BROTLI_ABI_REVISION:$BROTLI_ABI_AGE"
-
-BROTLI_VERSION_HEX=`sed -n 's/#define BROTLI_VERSION 0x//p' c/common/version.h`
-BROTLI_VERSION_INT=`echo "ibase=16;$BROTLI_VERSION_HEX" | bc`
-BROTLI_VERSION_MAJOR=`echo "scale=0;$BROTLI_VERSION_INT / 16777216" | bc`
-BROTLI_VERSION_MINOR=`echo "scale=0;$BROTLI_VERSION_INT / 4096 % 4096" | bc`
-BROTLI_VERSION_PATCH=`echo "scale=0;$BROTLI_VERSION_INT % 4096" | bc`
-BROTLI_VERSION="$BROTLI_VERSION_MAJOR.$BROTLI_VERSION_MINOR.$BROTLI_VERSION_PATCH"
-
-sed -i.bak "$SED_ERE" "s/[0-9]+:[0-9]+:[0-9]+/$BROTLI_ABI_INFO/" Makefile.am
-sed -i.bak "$SED_ERE" "s/\[[0-9]+\.[0-9]+\.[0-9]+\]/[$BROTLI_VERSION]/" configure.ac
-
-autoreconf --install --force --symlink || exit $?
diff --git a/configure b/configure
deleted file mode 100755
index d96129a..0000000
--- a/configure
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/usr/bin/env bash
-echo "Use Autotools, Bazel, CMake or Premake5 to generate projects / build files."
-echo " Bazel: http://www.bazel.build/"
-echo " CMake: https://cmake.org/"
-echo " Premake5: https://premake.github.io/"
-echo "To generate Autotools 'configure' file run './bootstrap'."
-echo "Run './configure-cmake' for Autotools-like CMake configuration."
-echo "Or simply run 'make' to build and test command line tool."
diff --git a/configure-cmake b/configure-cmake
deleted file mode 100755
index 929300b..0000000
--- a/configure-cmake
+++ /dev/null
@@ -1,322 +0,0 @@
-#!/usr/bin/env bash
-
-# Autotools-style (./configure) wrapper for CMake
-# <https://github.com/nemequ/configure-cmake>
-#
-# *** IMPORTANT ***
-#
-# You must include the GNUInstallDirs module (which comes with
-# CMake) in your project. Just put "include (GNUInstallDirs)" in
-# you CMakeLists.txt and you should be good.
-#
-# This script was originally written for Squash
-# <https://quixdb.github.io/squash/> by Evan Nemerson
-# <evan@nemerson.com>, but has been spun off into a separate
-# repository. Please feel free to copy it into your own repository,
-# though I would appreciate it if you would post improvements, bugs,
-# feature requests, etc. to the issue tracker at
-# <https://github.com/nemequ/configure-cmake/issues>.
-#
-# To the extent possible under law, the author(s) hereby waive all
-# copyright and related or neighboring rights to this work. For
-# details, see <https://creativecommons.org/publicdomain/zero/1.0/>
-
-TOP_SRCDIR="$(dirname $0)"
-
-if [ "${CMAKE_CMD}" = "" ]; then
- CMAKE_CMD="cmake"
-fi
-
-BUILD_TYPE="Debug"
-PREFIX=/usr/local
-LIBDIR=
-CMAKE_ARGS=
-
-if [ -e "${TOP_SRCDIR}/scripts/.configure-custom.sh" ]; then
- . "${TOP_SRCDIR}/scripts/.configure-custom.sh"
-fi
-
-quote() {
- echo "$1" | sed -e "s|'|'\\\\''|g; 1s/^/'/; \$s/\$/'/"
-}
-
-extract_var_string() {
- VAR_NAME=$1
- VAR_NAME=$(echo $1 | sed -e 's/[ \t]*$//')
- if [ "x$2" != "x" ]; then
- VAR_VALUE=$2
- else
- VAR_VALUE=yes
- fi
-
- if [ "x$3" != "x" ]; then
- VAR_UC_NAME=$3
- else
- VAR_UC_NAME=$(echo "$1" | tr '[:lower:]' '[:upper:]' | tr -c '[:alnum:]' '_' | sed 's/_$//g')
- fi
-}
-
-set_config_var() {
- is_with=n
- case "$1" in
- "--enable-"*)
- name="${1#--enable-}"
- cfg="${ENABLE_VARS}"
- ;;
- "--disable-"*)
- name="${1#--disable-}";
- cfg="${DISABLE_VARS}";
- ;;
- "--with-"*)
- # IFS="=" read -ra WITHARGS <<< "${1}"
- name="${1#--with-}"
- cfg="${WITH_VARS}"
- is_with=y
- ;;
- esac
-
- found=n
- for varstring in $cfg; do
- extract_var_string $(echo "${varstring}" | tr '|' ' ')
- if [ "x$VAR_NAME" = "x$name" ]; then
- found=y
- break;
- fi
- done
-
- if [ "$found" = "y" ]; then
- if [ "x$is_with" = "xy" ]; then
- CMAKE_ARGS="$CMAKE_ARGS -D${VAR_UC_NAME}=$(quote "$2")"
- else
- CMAKE_ARGS="$CMAKE_ARGS -D${VAR_UC_NAME}=$(quote "${VAR_VALUE}")"
- fi
- else
- echo "Unknown parameter: ${1}"
- exit 1
- fi
-}
-
-prefix_to_offset() {
- expr $(echo "${1}" | awk '{ print length }') + 1
-}
-
-print_help() {
- cat <<EOF >&2
- -h, --help display this help and exit
- --disable-debug disable debugging mode
- --pass-thru pass remaining arguments through to CMake
-
- --prefix=PREFIX install architecture-independent files in PREFIX
- [$PREFIX]
- --bindir=DIR user executables [PREFIX/bin]
- --sbindir=DIR system admin executables [PREFIX/sbin]
- --libexecdir=DIR program executables [PREFIX/libexec]
- --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
- --localstatedir=DIR modifiable single-machine data [PREFIX/var]
- --libdir=DIR object code libraries [PREFIX/lib]
- --includedir=DIR C header files [PREFIX/include]
- --oldincludedir=DIR C header files for non-gcc [/usr/include]
- --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
- --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
- --infodir=DIR info documentation [DATAROOTDIR/info]
- --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
- --mandir=DIR man documentation [DATAROOTDIR/man]
- --docdir=DIR documentation root [DATAROOTDIR/doc/PROJECT_NAME]
-EOF
-
- first=y
- for varstring in ${ENABLE_VARS}; do
- if [ $first = 'y' ]; then
- echo ""
- first=n
- fi
- extract_var_string $(echo "${varstring}" | tr '|' ' ')
- var_doc_name="ENABLE_${VAR_UC_NAME}_DOC"
- eval "docstring=\$$var_doc_name"
- if [ "x${docstring}" = "x" ]; then
- printf " --enable-%-14s enable %s support\n" "${VAR_NAME}" "$(echo -n "${VAR_NAME}" | tr '-' ' ')"
- else
- printf " --enable-%-14s %s\n" "${VAR_NAME}" "$docstring"
- fi
- done
-
- first=y
- for varstring in ${DISABLE_VARS}; do
- if [ $first = 'y' ]; then
- echo ""
- first=n
- fi
- extract_var_string $(echo "${varstring}" | tr '|' ' ')
- var_doc_name="DISABLE_${VAR_UC_NAME}_DOC"
- eval "docstring=\$$var_doc_name"
- if [ "x${docstring}" = "x" ]; then
- printf " --disable-%-13s disable %s support\n" "${VAR_NAME}" "$(echo -n "${VAR_NAME}" | tr '-' ' ')"
- else
- printf " --disable-%-13s %s\n" "${VAR_NAME}" "$docstring"
- fi
- done
-
- first=y
- for varstring in ${WITH_VARS}; do
- if [ $first = 'y' ]; then
- echo ""
- first=n
- fi
- extract_var_string $(echo "${varstring}" | tr '|' ' ')
- var_doc_name="WITH_${VAR_UC_NAME}_DOC"
- eval "docstring=\$$var_doc_name"
- paraminfo="${VAR_NAME}=${VAR_VALUE}"
- if [ "x${docstring}" = "x" ]; then
- printf " --with-%-16s enable %s support\n" "$paraminfo" "$(echo -n "${VAR_NAME}" | tr '-' ' ')"
- else
- printf " --with-%-16s %s\n" "$paraminfo" "$docstring"
- fi
- done
-
- exit 0
-}
-
-while [ $# != 0 ]; do
- case "$1" in
- "--prefix="*)
- PREFIX="${1#*=}";;
- "--prefix")
- PREFIX="${2}"; shift;;
- "--bindir="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_BINDIR=$(quote "${1#*=}")";;
- "--bindir")
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_BINDIR=$(quote "$2")"; shift;;
- "--sbindir="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SBINDIR=$(quote "${1#*=}")";;
- "--sbindir")
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SBINDIR=$(quote "$2")"; shift;;
- "--libexecdir="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LIBEXECDIR=$(quote "${1#*=}")";;
- "--libexecdir")
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LIBEXECDIR=$(quote "$2")"; shift;;
- "--sysconfdir="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SYSCONFDIR=$(quote "${1#*=}")";;
- "--sysconfdir")
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SYSCONFDIR=$(quote "$2")"; shift;;
- "--sharedstatedir="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SHAREDSTATEDIR=$(quote "${1#*=}")";;
- "--sharedstatedir")
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SHAREDSTATEDIR=$(quote "$2")"; shift;;
- "--localstatedir="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LOCALSTATEDIR=$(quote "${1#*=}")";;
- "--localstatedir")
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LOCALSTATEDIR=$(quote "$2")"; shift;;
- "--libdir="*)
- LIBDIR="${1#*=}";;
- "--libdir")
- LIBDIR="${2}"; shift;;
- "--includedir="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_INCLUDEDIR=$(quote "${1#*=}")";;
- "--includedir")
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_INCLUDEDIR=$(quote "$2")"; shift;;
- "--oldincludedir="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_OLDINCLUDEDIR=$(quote "${1#*=}")";;
- "--oldincludedir")
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_OLDINCLUDEDIR=$(quote "$2")"; shift;;
- "--datarootdir="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DATAROOTDIR=$(quote "${1#*=}")";;
- "--datarootdir")
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DATAROOTDIR=$(quote "$2")"; shift;;
- "--datadir="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DATADIR=$(quote "${1#*=}")";;
- "--datadir")
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DATADIR=$(quote "$2")"; shift;;
- "--infodir="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_INFODIR=$(quote "${1#*=}")";;
- "--infodir")
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_INFODIR=$(quote "$2")"; shift;;
- "--localedir="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LOCALEDIR=$(quote "${1#*=}")";;
- "--localedir")
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LOCALEDIR=$(quote "$2")"; shift;;
- "--mandir="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_MANDIR=$(quote "${1#*=}")";;
- "--mandir")
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_MANDIR=$(quote "$2")"; shift;;
- "--docdir="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DOCDIR=$(quote "${1#*=}")";;
- "--docdir")
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DOCDIR=$(quote "$2")"; shift;;
-
- "CC="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_C_COMPILER=$(quote "${1#*=}")";;
- "CXX="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_CXX_COMPILER=$(quote "${1#*=}")";;
- "CFLAGS="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_C_FLAGS=$(quote "${1#*=}")";;
- "CXXFLAGS="*)
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_CXX_FLAGS=$(quote "${1#*=}")";;
- "LDFLAGS="*)
- LDFLAGS="$LDFLAGS ${1#*=}";;
-
- "--help")
- print_help;;
- "-h")
- print_help;;
-
- # This flag is the only one which may be a bit surprising to
- # people. Autotools always builds with debugging symbols enabled
- # (AFAIK), but for cmake you have to do -DCMAKE_BUILD_TYPE=Debug.
- # Unfortunately this can change other things as well, so although
- # I realize there is no --disable-debug flag I thought it would be
- # prudent to support one here.
- "--disable-debug")
- BUILD_TYPE="Release";;
-
- "--pass-thru")
- shift;
- while [ $# != 0 ]; do
- CMAKE_ARGS="$CMAKE_ARGS $(quote "${1}")";
- shift;
- done;;
-
- "--enable-"*)
- set_config_var "$1"
- ;;
-
- "--disable-"*)
- set_config_var "$1"
- ;;
-
- "--with-"*)
- name=$(echo "${1#--with-}" | awk '{split($1,v,"="); print v[1]}')
- case "${1}" in
- "--with-${name}="*)
- set_config_var "--with-${name}" "${1#--with-${name}=}";;
- "--with-${name}")
- set_config_var "$1" "$2";
- shift;;
- esac
- ;;
-
- *)
- echo "$0: error: unrecognized option: \`$1'" >&2
- echo "Try \`$0 --help' for more information" >&2
- exit -1
- esac;
- shift
-done
-
-if [ "x${LIBDIR}" = "x" ]; then
- LIBDIR="${PREFIX}/lib"
-fi
-
-# Unlike CFLAGS/CXXFLAGS/CC/CXX, LDFLAGS isn't handled by CMake, so we
-# need to parse it here.
-if [ "x${LDFLAGS}" != "x" ]; then
- for varname in EXE MODULE SHARED STATIC; do
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_${varname}_LINKER_FLAGS=$(quote "$LDFLAGS")"
- done
-fi
-
-eval "${CMAKE_CMD}" "${TOP_SRCDIR}" \
- -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" \
- -DCMAKE_INSTALL_PREFIX="${PREFIX}" \
- -DCMAKE_INSTALL_LIBDIR="${LIBDIR}" \
- ${CMAKE_ARGS}
diff --git a/configure.ac b/configure.ac
deleted file mode 100644
index 9a3b285..0000000
--- a/configure.ac
+++ /dev/null
@@ -1,14 +0,0 @@
-AC_PREREQ(2.57)
-
-dnl Actual version is substituted by bootstrap
-AC_INIT([brotli], [0.0.0], [https://groups.google.com/forum/#!forum/brotli])
-
-AM_INIT_AUTOMAKE()
-AC_CONFIG_MACRO_DIR([m4])
-
-AC_PROG_CC
-LT_INIT
-
-AC_CONFIG_FILES([Makefile scripts/libbrotlicommon.pc scripts/libbrotlidec.pc scripts/libbrotlienc.pc])
-
-AC_OUTPUT