mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 08:50:58 +00:00
669771681a
Most of the guts of configure.ac have been moved to config.d and are then brought in by m4_include. This will make maintaining configure.ac much easier. Also drop use of PROGRAM and VERSION, using PACKAGE_NAME, PACKAGE_VERSION, and on occasion, PACKAGE_STRING instead, and clean out some old files we no longer need.
20 lines
505 B
Text
20 lines
505 B
Text
if test "x$ac_cv_header_pthread_h" = "xyes"; then
|
|
save_ldflags="$LDFLAGS"
|
|
case "$host_os" in
|
|
*qnx*) dnl qnx have all pthread* functions in the libc.
|
|
;;
|
|
*) LDFLAGS="$LDFLAGS -lpthread"
|
|
AC_TRY_LINK(
|
|
[#include <pthread.h>],
|
|
[pthread_attr_t type;
|
|
pthread_attr_setstacksize(&type, 0x100000);],
|
|
[PTHREAD_LDFLAGS=-lpthread],
|
|
[PTHREAD_LDFLAGS=-pthread]
|
|
)
|
|
;;
|
|
esac
|
|
LDFLAGS="$save_ldflags"
|
|
PTHREAD_CFLAGS=-D_REENTRANT
|
|
fi
|
|
AC_SUBST(PTHREAD_LDFLAGS)
|
|
AC_SUBST(PTHREAD_CFLAGS)
|