2 # Process this file with autoconf to produce a configure script.
6 AC_INIT([launchd],[1.0],[launchd-bug-reports@group.apple.com])
7 AC_CONFIG_SRCDIR([src/launchd.c])
9 AM_CONFIG_HEADER([src/config.h])
11 # Checks for programs.
15 # Checks for header files.
19 AC_CHECK_HEADERS([fcntl.h limits.h mach/mach.h netdb.h netinet/in.h paths.h stddef.h stdlib.h string.h sys/ioctl.h sys/mount.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h])
21 # Checks for typedefs, structures, and compiler characteristics.
32 # Checks for library functions.
36 AC_PROG_GCC_TRADITIONAL
38 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
43 AC_FUNC_SELECT_ARGTYPES
46 AC_CHECK_FUNCS([atexit dup2 gethostname gettimeofday memmove memset mkdir munmap rmdir select setenv socket strcasecmp strchr strdup strerror strrchr strstr strtol])
48 AC_CONFIG_FILES([Makefile
51 AM_CONDITIONAL(LIBS_ONLY, test "$RC_ProjectName" = launchd_libs)