-
Notifications
You must be signed in to change notification settings - Fork 32
/
configure.ac
executable file
·45 lines (34 loc) · 1.18 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.59])
AC_INIT([imgmin], [1.1], [https://github.com/rflynn/imgmin/issues])
AC_CONFIG_SRCDIR([src])
AM_INIT_AUTOMAKE([subdir-objects])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
AC_PROG_CC_STDC
# Checks for libraries.
# check for -lm
AC_CHECK_LIB([m], [log])
# check for imagemagick
# don't bother checking directly for the lib, it is called MagickWand on Ubuntu but 'Wand' on Redhat,
# instead just find MAGICK_CONFIG
#PKG_CHECK_MODULES([MagickWand], [MagickWand])
AC_CHECK_PROGS(MAGICK_CONFIG, MagickWand-config Magick-config, "")
# check for apache's apxs/apxs2 tool...
AC_CHECK_PROGS(APXS, apxs2 apxs, "")
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h float.h stdlib.h string.h unistd.h math.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# works for autoconf v2.68 but not v2.59
#AC_TYPE_SSIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_STRTOD
AC_CHECK_FUNCS([mkdir])
AC_CONFIG_FILES([Makefile
src/Makefile
src/apache2/Makefile])
AC_OUTPUT