2000-03-17 16:19:43 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2005-02-21 17:51:57 +00:00
|
|
|
|
2012-04-20 17:44:38 +00:00
|
|
|
AC_PREREQ([2.68])
|
2005-02-21 17:51:57 +00:00
|
|
|
|
2012-04-22 17:28:08 +00:00
|
|
|
AC_INIT([capiinit], [1.0])
|
2012-04-20 17:44:38 +00:00
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
AC_PREFIX_DEFAULT([/])
|
|
|
|
|
2012-04-22 17:28:08 +00:00
|
|
|
I4LCONFDIR=${sysconfdir:-"/etc/isdn"}
|
2012-04-22 12:20:58 +00:00
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(I4LCONFDIR, "${I4LCONFDIR}", [directory for configuration files])
|
2000-03-17 16:19:43 +00:00
|
|
|
|
|
|
|
dnl Checks for programs.
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_CC
|
|
|
|
|
|
|
|
dnl Checks for header files.
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_CHECK_HEADERS(linux/capi.h,,
|
2002-07-06 00:11:16 +00:00
|
|
|
[AC_MSG_ERROR([Missing $ac_hdr. Kernel source installed?])])
|
2000-03-17 16:19:43 +00:00
|
|
|
AC_CHECK_HEADERS(capi20.h)
|
|
|
|
|
2012-04-20 17:44:38 +00:00
|
|
|
dnl Define which variables to substitute & which files to generate
|
2012-04-22 12:20:58 +00:00
|
|
|
AC_SUBST(I4LCONFDIR)
|
2000-03-17 16:19:43 +00:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
2012-04-20 17:44:38 +00:00
|
|
|
|
2012-04-22 13:00:51 +00:00
|
|
|
AC_OUTPUT(Makefile capiinit.8)
|