blob: 24bb4908fd34e31de3313a95d2343258b0d63986 [file] [log] [blame]
Richard Marian Thomaiyar216f2132018-06-12 19:20:48 +05301# Initialization
2AC_PREREQ([2.69])
3AC_INIT([pam_ipmi], [0.1], [https://github.com/openbmc/pam-ipmi/issues])
4AC_CONFIG_HEADERS([config.h])
Patrick Venture78ba6e92018-11-25 10:06:51 -08005AC_CONFIG_MACRO_DIRS([m4])
6AC_CONFIG_AUX_DIR([build-aux])
Richard Marian Thomaiyar216f2132018-06-12 19:20:48 +05307AM_INIT_AUTOMAKE([subdir-objects -Wall foreign dist-xz])
8AM_SILENT_RULES([yes])
9
10AC_SUBST(PACKAGE)
11AC_SUBST(VERSION)
12
13# Checks for programs
Patrick Venture6987da92018-11-23 08:47:25 -080014AM_PROG_AR
Richard Marian Thomaiyar216f2132018-06-12 19:20:48 +053015AC_PROG_CC
16AC_PROG_INSTALL
17AC_PROG_MAKE_SET
18
Patrick Venture58a68792018-11-23 08:53:32 -080019AX_CHECK_OPENSSL([], [AC_MSG_ERROR(["openssl required and not found"])])
Patrick Venturebca65ee2018-11-23 15:32:18 -080020AC_CHECK_LIB([pam], [pam_start], [], [AC_MSG_ERROR([libpam not found])])
Patrick Venture58a68792018-11-23 08:53:32 -080021
Richard Marian Thomaiyar216f2132018-06-12 19:20:48 +053022# Checks for library functions.
23LT_INIT # Removes 'unrecognized options: --with-libtool-sysroot
24
25# Create configured output
26AC_CONFIG_FILES([Makefile])
27AC_OUTPUT