openbsd-ports/net/dctc/patches/patch-configure_in
2007-12-11 11:04:57 +00:00

29 lines
1.1 KiB
Plaintext

$OpenBSD: patch-configure_in,v 1.2 2007/12/11 11:04:57 jakemsr Exp $
--- configure.in.orig Sun Jan 20 04:27:03 2002
+++ configure.in Sun Oct 21 03:41:56 2007
@@ -19,14 +19,14 @@ AC_CHECK_LIB(glib, main)
dnl Replace `main' with a function in -lgthread:
AC_CHECK_LIB(gthread, main)
dnl Replace `main' with a function in -lpthread:
-AC_CHECK_LIB(pthread, main)
+AC_CHECK_LIB(pthread, main, [AC_DEFINE(HAVE_LIBPTHREAD, 1), LIBS="$LIBS -pthread"])
AM_PATH_GLIB(1.2.0, , , glib gthread)
dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/file.h sys/ioctl.h sys/time.h unistd.h)
+AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/file.h sys/ioctl.h sys/time.h unistd.h linux/sem.h getopt.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
@@ -39,6 +39,6 @@ AC_STRUCT_TM
dnl Checks for library functions.
AC_FUNC_MEMCMP
AC_FUNC_MMAP
-AC_CHECK_FUNCS(getcwd mkdir select socket strdup strerror strstr strtod strtoul uname)
+AC_CHECK_FUNCS(getcwd mkdir select socket strdup strerror strstr strtod strtoul uname getopt_long)
AC_OUTPUT(Makefile src/Makefile)