Commit 892abf31 authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

added configure option --enable-threads/--disable-threads,

define ISC_PLATFORM_USETHREADS
parent 1393f0a8
This diff is collapsed.
......@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
AC_DIVERT_POP()dnl
AC_REVISION($Revision: 1.178 $)
AC_REVISION($Revision: 1.179 $)
AC_INIT(lib/dns/name.c)
AC_PREREQ(2.13)
......@@ -126,6 +126,25 @@ case "$INSTALL" in
;;
esac
#
# Decide whether to use multithreading or not.
#
enable_threads=yes
AC_MSG_CHECKING(whether to use threads)
AC_ARG_ENABLE(threads,
[ --enable-threads use multithreading])
case "$enable_threads" in
yes)
AC_MSG_RESULT(yes)
ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1" ;;
no)
AC_MSG_RESULT(no)
ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS" ;;
*)
AC_MSG_ERROR("--enable-threads take yes or no") ;;
esac
AC_SUBST(ISC_PLATFORM_USETHREADS)
#
# On these hosts, we really want to use cc, not gcc, even if it is
# found. The gcc that these systems have will not correctly handle
......
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: platform.h.in,v 1.14 2000/08/01 01:30:33 tale Exp $ */
/* $Id: platform.h.in,v 1.15 2000/08/28 23:51:09 gson Exp $ */
#ifndef ISC_PLATFORM_H
#define ISC_PLATFORM_H 1
......@@ -115,6 +115,11 @@
*/
@ISC_PLATFORM_LONGLONGEQUALLONG@
/*
* Defined if we are using threads.
*/
@ISC_PLATFORM_USETHREADS@
/*
* Tell emacs to use C mode for this file.
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment