-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
25 lines (24 loc) · 813 Bytes
/
configure.ac
File metadata and controls
25 lines (24 loc) · 813 Bytes
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
#AC_PREREQ(??? do we have one???)
AC_INIT([check_focus],[0.3])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile])
# Check for (the exsistance of) various programs
AC_PROG_CC
AC_PROG_INSTALL
# Check for (the exsistance of) methods in library
AC_SEARCH_LIBS([jpeg_std_error], [jpeg])
AC_SEARCH_LIBS([sqrt], [m])
# Check for (the exsistance of) required headers
AC_CHECK_HEADERS([stdio.h stdlib.h unistd.h unistd.h math.h getopt.h string.h jpeglib.h])
# Check for (the exsistance of) required symbols
# AC_CHECK_DECLS_ONCE([JCS_EXT_RGB]) --- does not consider includes already checked above (odd?)
AC_CHECK_DECLS([JCS_EXT_RGB],[],[],[AC_INCLUDES_DEFAULT
[#include <string.h>
#ifdef HAVE_JPEGLIB_H
# include <jpeglib.h>
#endif
]])
# Set $(LIBOBJS) for Automake
AC_LIBOBJ([cf_util])
AM_INIT_AUTOMAKE
AC_OUTPUT