rcapid/configure.ac: updated from configure.in
* rename configure.in to configure.ac for recent autotools * require autoconf 2.68 * update/remove obsolete macros * quote arguments to AC_../AM_.. macros * remove unneeded options --with-sbin / --with-man: --sbindir / --mandir serve exactly the same purpose
This commit is contained in:
parent
7bc75eeede
commit
1300fc19cb
|
@ -0,0 +1,31 @@
|
|||
dnl Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ([2.68])
|
||||
|
||||
AC_INIT([rcapid], [1.2])
|
||||
AM_INIT_AUTOMAKE
|
||||
AC_PREFIX_DEFAULT([/usr])
|
||||
|
||||
CONFIG_SBINDIR=${sbindir:-"/sbin"}
|
||||
CONFIG_MANDIR=${mandir:-"/usr/man"}
|
||||
|
||||
dnl Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_CPP
|
||||
AC_PROG_INSTALL
|
||||
|
||||
dnl Checks for libraries.
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h)
|
||||
|
||||
dnl Checks for library functions.
|
||||
AC_TYPE_SIGNAL
|
||||
AC_CHECK_FUNCS(socket)
|
||||
|
||||
dnl Define which variables to substitute & which files to generate
|
||||
AC_SUBST(CONFIG_SBINDIR)
|
||||
AC_SUBST(CONFIG_MANDIR)
|
||||
|
||||
AC_OUTPUT(Makefile)
|
|
@ -1,44 +0,0 @@
|
|||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_INIT(rcapid.c)
|
||||
AM_INIT_AUTOMAKE(rcapid, 1.2)
|
||||
AC_PREFIX_DEFAULT(/usr)
|
||||
|
||||
CONFIG_SBINDIR=${CONFIG_SBINDIR:-"/sbin"}
|
||||
CONFIG_MANDIR=${CONFIG_MANDIR:-"/usr/man"}
|
||||
|
||||
dnl Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_CPP
|
||||
AC_PROG_INSTALL
|
||||
|
||||
dnl Checks for libraries.
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h)
|
||||
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
|
||||
dnl Checks for library functions.
|
||||
AC_PROG_GCC_TRADITIONAL
|
||||
AC_HEADER_STDC
|
||||
AC_TYPE_SIGNAL
|
||||
AC_CHECK_FUNCS(socket)
|
||||
|
||||
dnl Optional sbin directory
|
||||
AC_ARG_WITH(sbin,
|
||||
[ --with-sbin=DIR Set dir where binary is installed. [/sbin]],
|
||||
CONFIG_SBINDIR="${withval}"
|
||||
AC_DEFINE(CONFIG_SBINDIR,"${withval}"),
|
||||
)
|
||||
|
||||
dnl Optional man directory
|
||||
AC_ARG_WITH(man,
|
||||
[ --with-man=DIR Set manpage dir. [/usr/man]],
|
||||
CONFIG_MANDIR="${withval}"
|
||||
AC_DEFINE(CONFIG_MANDIR,"${withval}"),
|
||||
)
|
||||
|
||||
AC_SUBST(CONFIG_SBINDIR)
|
||||
AC_SUBST(CONFIG_MANDIR)
|
||||
AC_SUBST(INSTALL)
|
||||
AC_OUTPUT(Makefile)
|
Loading…
Reference in New Issue