-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfigure.in
More file actions
26 lines (20 loc) · 843 Bytes
/
configure.in
File metadata and controls
26 lines (20 loc) · 843 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
26
AC_PREREQ([2.67])
AC_INIT([Gist It!], [0.1.4], [jrbasso@gmail.com], [gistit], [http://gistit.herokuapp.com])
AM_INIT_AUTOMAKE([1.10 -Wall no-define foreign])
AC_CONFIG_SRCDIR([src/gistit.c])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
AC_CHECK_LIB([curl], [curl_easy_init], [], [AC_MSG_ERROR(["Error: Required library curl not found. Check http://curl.haxx.se/"])])
AC_CHECK_LIB([jansson], [json_object], [], [AC_MSG_ERROR(["Error: Required library jansson not found. Check https://github.com/akheron/jansson"])])
# Checks for header files.
AC_CHECK_HEADERS([stdio.h stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([strstr])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT