-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfigure.ac
44 lines (37 loc) · 1.1 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
# Autoconf for pngnq
AC_INIT([pngnq],[1.1], [[email protected]])
AM_INIT_AUTOMAKE[-Wall -Werror]
AC_COPYRIGHT([Copyright 2008-2011, Stuart Coyle])
# check for progs
AC_CHECK_PROG([HAS_LIBPNG_CONFIG],[libpng-config],[1])
# checks for header files
AC_CHECK_HEADERS([ctype.h])
AC_CHECK_HEADERS([sys/stat.h])
AC_CHECK_HEADERS([sys/time.h])
AC_CHECK_HEADERS([valgrind/callgrind.h])
AC_CHECK_HEADERS([fcntl.h])
AC_CHECK_HEADERS([unistd.h])
AC_CHECK_HEADERS([stdlib.h])
# checks for compiler characteristics
AC_PROG_CC
AC_C_CONST
AC_FUNC_MALLOC
AC_FUNC_STAT
AC_HEADER_STDBOOL
# checks for libraries
AC_SEARCH_LIBS([zlibVersion],[z])
AC_SEARCH_LIBS([sqrt],[m])
PKG_CHECK_MODULES([PNG], [libpng >= 1.2.0])
# checks for library functions
AC_CHECK_FUNCS([getopt])
AC_CHECK_FUNCS([floor])
AC_CHECK_FUNCS([memmove])
AC_CHECK_FUNCS([memset])
AC_CHECK_FUNCS([pow])
AC_CHECK_FUNCS([sqrt])
AC_CHECK_FUNCS([strchr])
AC_CHECK_FUNCS([strrchr])
AC_CONFIG_HEADERS([src/config.h])
AM_CONDITIONAL([USE_FREEGETOPT],[ test $ac_cv_func_getopt = "no" ])
AC_CONFIG_FILES([Makefile src/Makefile freegetopt/Makefile])
AC_OUTPUT