-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
34 lines (27 loc) · 1.12 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([LightBot], [0.0.1], [[email protected]], [light], [https://github.com/onesoft-sudo/lightbot])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([src/commands.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign])
AM_SILENT_RULES([yes])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
# FIXME: Replace `main' with a function in `-lcurl':
AC_CHECK_LIB([curl], [curl_init])
# FIXME: Replace `main' with a function in `-ldiscord':
AC_CHECK_LIB([discord], [discord_run])
# FIXME: Replace `main' with a function in `-ljson-c':
AC_CHECK_LIB([json-c], [json_object_from_file])
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h getopt.h json-c/json_types.h json-c/json_object.h json-c/json.h concord/discord.h concord/types.h concord/log.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([strdup])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT