From f4aa9a89dd2b9b9f87779014c2efecb1a094c31b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 11 Dec 2003 18:56:42 +0000 Subject: may changes git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@47 153bfa13-eec0-0310-be40-b0cb6a0e1b4b --- Makefile.am | 3 + configure.ac | 8 +-- doc/README.html.in | 2 +- examples/testd.c | 2 + libdaemon.pc.in | 10 ++++ src/Makefile.am | 8 ++- src/daemon.h | 36 +++++++++++ src/dexec.c | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++ src/dexec.h | 47 +++++++++++++++ src/dlog.h | 2 - 10 files changed, 281 insertions(+), 10 deletions(-) create mode 100644 libdaemon.pc.in create mode 100644 src/daemon.h create mode 100644 src/dexec.c create mode 100644 src/dexec.h diff --git a/Makefile.am b/Makefile.am index 05b43a6..ca83772 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,6 +22,9 @@ SUBDIRS=src doc examples MAINTAINERCLEANFILES = README libdaemon.spec noinst_DATA = README libdaemon.spec +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libdaemon.pc + README: rm -f README $(MAKE) -C doc README diff --git a/configure.ac b/configure.ac index 7deb5d8..a7ddaae 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. AC_PREREQ(2.57) -AC_INIT([libdaemon], [0.3], [mzqnrzba (at) 0pointer (dot) de]) +AC_INIT([libdaemon], [0.4], [mzqnrzba (at) 0pointer (dot) de]) AC_CONFIG_SRCDIR([src/dfork.c]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign -Wall]) @@ -38,8 +38,8 @@ if test "x$GCC" = "xyes" ; then fi if type -p stow > /dev/null && test -d /usr/local/stow ; then - AC_MSG_NOTICE([*** Found /usr/local/stow: installing to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***]) - AC_PREFIX_DEFAULT([/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}]) + AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***]) + ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}" fi # Checks for header files. @@ -97,5 +97,5 @@ fi AM_CONDITIONAL([USE_LYNX], [test "x$lynx" = xyes]) -AC_CONFIG_FILES([src/Makefile Makefile doc/Makefile doc/README.html doc/doxygen.conf examples/Makefile libdaemon.spec]) +AC_CONFIG_FILES([src/Makefile Makefile doc/Makefile doc/README.html doc/doxygen.conf examples/Makefile libdaemon.spec libdaemon.pc]) AC_OUTPUT diff --git a/doc/README.html.in b/doc/README.html.in index d66fdc4..fc3aea9 100644 --- a/doc/README.html.in +++ b/doc/README.html.in @@ -53,7 +53,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Overview

-

libdaemon is a lightweight C library which eases the writing of UNIX +

libdaemon is a lightweight C library that eases the writing of UNIX daemons. It consists of the following parts: