From 14fb44b17123b27e562379f51b75ee889982688d Mon Sep 17 00:00:00 2001 From: James Maki Date: Fri, 23 Apr 2010 11:58:20 -0500 Subject: initial commit --- configure.in | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 configure.in (limited to 'configure.in') diff --git a/configure.in b/configure.in new file mode 100644 index 0000000..430967d --- /dev/null +++ b/configure.in @@ -0,0 +1,29 @@ +AC_INIT([src/sms_main.c]) +AM_INIT_AUTOMAKE([sms-utils], [0.0.3]) +AM_CONFIG_HEADER([config.h]) + +AC_PROG_CC +AC_PROG_INSTALL +AC_PROG_MAKE_SET + +AC_HEADER_STDC + +AC_CHECK_HEADERS([ \ +stdio.h stdlib.h unistd.h getopt.h errno.h time.h termios.h \ +ctype.h sys/types.h sys/stat.h fcntl.h stdarg.h string.h printf.h \ +stdint.h sys/ioctl.h linux/limits.h \ +], [],AC_MSG_ERROR([ +required header missing])) + +AC_CHECK_FUNCS([register_printf_specifier], [], []) + +AC_CHECK_LIB([yaml], [yaml_parser_initialize], [], [], []) +AC_CHECK_LIB([ssl], [SSL_connect], [], [], []) +AC_CHECK_LIB([esmtp], [smtp_create_session], [], [], [-lssl]) + +AC_DEFINE([DEBUG], 0, [set to 1 to enable debug]) +AC_DEFINE([CONFIG_USE_SYSLOG], 0, [set to 1 to use syslog for logging]) +AC_DEFINE([DEFAULT_DEVICE], ["/dev/ttyS1"], [set the default device]) + +AC_OUTPUT([Makefile src/Makefile]) + -- cgit v1.2.3