diff options
-rw-r--r-- | configure.ac | 16 | ||||
-rw-r--r-- | src/dexec.h | 4 |
2 files changed, 11 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index a7ddaae..7cbf6d8 100644 --- a/configure.ac +++ b/configure.ac @@ -25,26 +25,28 @@ AC_CONFIG_SRCDIR([src/dfork.c]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign -Wall]) +AC_SUBST(PACKAGE_URL, [http://0pointer.de/lennart/projects/libdaemon/]) + +if type -p stow > /dev/null && test -d /usr/local/stow ; then + 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 programs. AC_PROG_CC AC_PROG_CXX +AC_PROG_MAKE_SET AC_PROG_LIBTOOL -AC_SUBST(PACKAGE_URL, [http://0pointer.de/lennart/projects/libdaemon/]) - # If using GCC specifiy some additional parameters if test "x$GCC" = "xyes" ; then CFLAGS="$CFLAGS -pipe -Wall" fi -if type -p stow > /dev/null && test -d /usr/local/stow ; then - 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. AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h syslog.h unistd.h]) +AC_HEADER_SYS_WAIT # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST diff --git a/src/dexec.h b/src/dexec.h index b9e1879..de9f6ff 100644 --- a/src/dexec.h +++ b/src/dexec.h @@ -33,8 +33,8 @@ /** Run the specified executable with the specified arguments in the * specified directory and return the return value of the program in * the specified pointer. The calling process is blocked until the - * child finishes, alls child output (either STDOUT or STDIN) is - * written to syslog. + * child finishes and all child output (either STDOUT or STDIN) has + * been written to syslog. * * @param dir Working directory for the process. * @param ret A pointer to an integer to write the return value of the program to. |