Commit 4d9eede8 authored by Bruce Momjian's avatar Bruce Momjian

Move thread checking code farther down in conflgure.

parent f374a9da
This diff is collapsed.
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
dnl $Header: /cvsroot/pgsql/configure.in,v 1.265 2003/06/15 04:07:58 momjian Exp $ dnl $Header: /cvsroot/pgsql/configure.in,v 1.266 2003/06/18 16:04:15 momjian Exp $
dnl dnl
dnl Developers, please strive to achieve this order: dnl Developers, please strive to achieve this order:
dnl dnl
...@@ -551,29 +551,6 @@ else ...@@ -551,29 +551,6 @@ else
fi]) fi])
AC_SUBST(ELF_SYS) AC_SUBST(ELF_SYS)
#
# Pthreads
#
# For each platform, we need to know about any special compile and link
# libraries, and whether the normal C function names are thread-safe.
#
NEED_REENTRANT_FUNC_NAMES=no
if test "$with_threads" = yes; then
AC_CHECK_HEADER(pthread.h, [], [AC_MSG_ERROR([pthread.h not found, required for --with-threads])])
if test "$SUPPORTS_THREADS" != yes; then
AC_MSG_ERROR([
Cannot enable threads on your platform.
Please report your platform threading info to the PostgreSQL mailing lists
so it can be added to the next release. Report any compile flags, link flags,
functions, or libraries required for threading support.
])
fi
fi
AC_SUBST(THREAD_CFLAGS)
AC_SUBST(THREAD_LIBS)
# #
# Assignments # Assignments
# #
...@@ -981,6 +958,29 @@ AC_CHECK_FUNCS(atexit, [], ...@@ -981,6 +958,29 @@ AC_CHECK_FUNCS(atexit, [],
AC_FUNC_FSEEKO AC_FUNC_FSEEKO
#
# Pthreads
#
# For each platform, we need to know about any special compile and link
# libraries, and whether the normal C function names are thread-safe.
#
NEED_REENTRANT_FUNC_NAMES=no
if test "$with_threads" = yes; then
AC_CHECK_HEADER(pthread.h, [], [AC_MSG_ERROR([pthread.h not found, required for --with-threads])])
if test "$SUPPORTS_THREADS" != yes; then
AC_MSG_ERROR([
Cannot enable threads on your platform.
Please report your platform threading info to the PostgreSQL mailing lists
so it can be added to the next release. Report any compile flags, link flags,
functions, or libraries required for threading support.
])
fi
fi
AC_SUBST(THREAD_CFLAGS)
AC_SUBST(THREAD_LIBS)
# #
# Check for re-entrant versions of certain functions # Check for re-entrant versions of certain functions
# #
......
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