From fa77075d7c969a266f6cd58332a2be2e82ecf8b1 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 23 Jul 2002 23:10:50 +0000 Subject: [PATCH] Added build system support for OpenBSD. --- configure.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configure.in b/configure.in index 3d921338..1e7883ff 100644 --- a/configure.in +++ b/configure.in @@ -251,6 +251,18 @@ if test x$we_have_sed = xyes; then AC_MSG_RESULT([$this_is_freebsd]) fi +this_is_openbsd=no +if test x$we_have_sed = xyes; then + AC_MSG_CHECKING([if this is OpenBSD]) + x=`echo $build_os |tr A-Z a-z |sed "s/.*openbsd.*/openbsd/"` + if test x$x = xopenbsd; then + this_is_openbsd=yes + LDFLAGS="$LDFLAGS -pthread" + fi + + AC_MSG_RESULT([$this_is_openbsd]) +fi + # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([stdlib.h string.h])