mirror of
https://github.com/vasi/pixz
synced 2024-10-30 15:21:41 +00:00
bc9a3b8d5a
- `__APPLE__` vs `__OS2__` - does this actually work? Would some please test on apple and give feedback? - pthread via `AX_PTHREAD` - version via `PACKAGE_VERSION` in `config.h` - large file support via `AC_SYS_LARGEFILE`
51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ([2.69])
|
|
AC_INIT([pixz], [1.0.2], [https://github.com/vasi/pixz/issues])
|
|
AC_CONFIG_MACRO_DIRS([m4])
|
|
AC_CONFIG_SRCDIR([src/pixz.c])
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
# Automake invocation.
|
|
AM_INIT_AUTOMAKE([foreign])
|
|
|
|
# Checks for programs.
|
|
AC_PROG_CC_STDC
|
|
AC_CHECK_PROG(A2X, a2x, a2x, [])
|
|
if test "x$A2X" = x ; then
|
|
AC_MSG_ERROR([AsciiDoc not found.])
|
|
fi
|
|
|
|
# Checks for libraries.
|
|
AC_CHECK_LIB([m], [ceil])
|
|
AX_PTHREAD
|
|
PKG_CHECK_MODULES(LIBARCHIVE, libarchive)
|
|
PKG_CHECK_MODULES(LZMA, liblzma)
|
|
|
|
# Checks for header files.
|
|
AC_CHECK_HEADERS([stdint.h stdlib.h string.h unistd.h])
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
AC_CHECK_HEADER_STDBOOL
|
|
AC_TYPE_OFF_T
|
|
AC_TYPE_SIZE_T
|
|
AC_TYPE_SSIZE_T
|
|
AC_TYPE_UINT16_T
|
|
AC_TYPE_UINT32_T
|
|
AC_TYPE_UINT64_T
|
|
AC_TYPE_UINT8_T
|
|
|
|
# Checks for operating system services or capabilities.
|
|
AC_SYS_LARGEFILE
|
|
|
|
# Checks for library functions.
|
|
AC_FUNC_MALLOC
|
|
AC_FUNC_REALLOC
|
|
AC_FUNC_STRTOD
|
|
AC_CHECK_FUNCS([memchr memmove memset strtol])
|
|
|
|
AC_CONFIG_FILES([Makefile
|
|
src/Makefile])
|
|
AC_OUTPUT
|