Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
*.o
daemonize
daemonize.html
config.h
auto_config.h
config.log
config.status
config.cache
Expand Down
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ clean:
rm -rf *.o daemonize testdaemon *.ps

distclean: clean
rm -rf config.status config.log config.cache config.h Makefile autom?te.cache
rm -rf config.status config.log config.cache auto_config.h Makefile autom?te.cache

# Copy stuff to the gh-pages directory. I doubt you want to use this target,
# unless you're maintaining the web site (i.e., unless you're me).
Expand Down
82 changes: 1 addition & 81 deletions acconfig.h → config.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,89 +10,9 @@
#ifndef _CONFIG_H_
#define _CONFIG_H_

#include <auto_config.h>
#include <sys/types.h>

@@TOP@@

/* define if your C compiler lacks a built-in `bool' type */
#undef bool

/* define to `int' if your system lacks `ssize_t' */
#undef ssize_t

/* define to `unsigned short' if your system lacks `ushort' */
#undef ushort

/*
Define if you have the `sig_t' type in <signal.h> or <sys/signal.h>
(e.g., FreeBSD)
*/
#undef HAVE_SIG_T

/*
Define if your compiler supports a native "byte" type that holds at least
eight bits.
*/
#undef HAVE_BYTE_TYPE

/* Define if you have the getpgrp() function. */
#undef HAVE_GETPGRP

/* Define if you have the setpgrp() function. */
#undef HAVE_SETPGRP

/* Define if you have the initgroups() function. */
#undef HAVE_INITGROUPS

/* Define if you have the setsid() function. Almost everyone does. */
#undef HAVE_SETSID

/* Define if you have the sysconf() function. */
#undef HAVE_SYSCONF

/* Define if you have the daemon() function. */
#undef HAVE_DAEMON

/* Define if you have the strerror() function. */
#undef HAVE_STRERROR

/* Define if you have vfork() */
#undef HAVE_VFORK

/* Define if you have vprintf() */
#undef HAVE_VPRINTF

/* Define if you have the `pw_comment' field in `struct passwd' (pwd.h) */
#undef HAVE_PW_COMMENT

/* Define if you have the `pw_gecos' field in `struct passwd' (pwd.h) */
#undef HAVE_PW_GECOS

/* Define to `long' if you don't have `off_t' */
#undef off_t

/* Define to `int' if you don't have `mode_t' */
#undef mode_t

/* Define to `int' if you don't have `pid_t' */
#undef pid_t

/* Define to `int' if you don't have `gid_t' and `uid_t' */
#undef uid_t
#undef gid_t

/* Define to `unsigned' if you don't have `size_t' */
#undef size_t

/* Define if you have <errno.h> */
#undef HAVE_ERRNO_H

@@BOTTOM@@

/*****************************************************************************\
DON'T TOUCH ANYTHING BELOW HERE!
\*****************************************************************************/

#ifndef HAVE_BYTE_TYPE
typedef unsigned char byte; /* 8 bit unsigned critter */
#endif /* HAVE_BYTE_TYPE */
Expand Down
254 changes: 0 additions & 254 deletions config.h.in

This file was deleted.

22 changes: 21 additions & 1 deletion configure.in → configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,27 @@ dnl Process this file with autoconf to produce a configure script.
dnl ---------------------------------------------------------------------------

AC_INIT(daemonize.c)
AC_CONFIG_HEADER(config.h)
AC_CONFIG_HEADER(auto_config.h)

dnl ---------------------------------------------------------------------------
dnl Autoconf template
dnl ---------------------------------------------------------------------------

AH_TEMPLATE([HAVE_BASENAME])
AH_TEMPLATE([HAVE_FLOCK])
AH_TEMPLATE([HAVE_GETPGRP])
AH_TEMPLATE([HAVE_INITGROUPS])
AH_TEMPLATE([HAVE_PW_COMMENT])
AH_TEMPLATE([HAVE_PW_GECOS])
AH_TEMPLATE([HAVE_SETENV])
AH_TEMPLATE([HAVE_SETPGRP])
AH_TEMPLATE([bool])
AH_TEMPLATE([HAVE_DAEMON])
AH_TEMPLATE([HAVE_FALSE])
AH_TEMPLATE([HAVE_SETSID])
AH_TEMPLATE([HAVE_SIG_T])
AH_TEMPLATE([HAVE_STRERROR])
AH_TEMPLATE([HAVE_TRUE])

dnl ---------------------------------------------------------------------------
dnl Directories and package-specific vars
Expand Down