File: configure.ac

package info (click to toggle)
pam-tmpdir 0.11
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 128 kB
  • sloc: ansic: 445; sh: 171; makefile: 28
file content (28 lines) | stat: -rw-r--r-- 984 bytes parent folder | download
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
dnl Process this file with autoconf to produce a configure script
AC_INIT([pam-tmpdir],[0.11],[tfheen@err.no])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([pam_tmpdir.c])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign])
AC_PROG_CC
LT_INIT

AC_CHECK_HEADERS([security/pam_appl.h], [],
  [AC_MSG_ERROR([[PAM header files not found, install libpam-dev.]])])

AC_SUBST(PAMDIR, "\$(exec_prefix)/lib/security")
AC_ARG_WITH(pam-dir,
  AS_HELP_STRING([--with-pam-dir=DIR],[Where to install PAM module [[PREFIX/lib/security]]]),
            [case "${withval}" in
            /*) PAMDIR="${withval}";;
            ./*|../*) AC_MSG_ERROR(Bad value for --with-pam-dir);;
            *)  PAMDIR="\$(exec_prefix)/lib/${withval}";;
            esac])
AC_MSG_NOTICE([PAM installation path $PAMDIR])

AC_DEFINE([HELPER_PATH], [$libexecdir/$PACKAGE_NAME], [Path to helper binary])
AC_SUBST([HELPER_PATH], "\$(pkglibexecdir)")

AC_CONFIG_FILES(Makefile)
AC_OUTPUT