]> code.citadel.org Git - citadel.git/blobdiff - webcit/configure.in
* Makefile.in, configure.in: add, like, some *more* code for FreeBSD
[citadel.git] / webcit / configure.in
index d0ce46ca47206ad41d866e2c236a75891addf8cd..f9cd9f1a9a5364de6897d18ddee5f9a024d72d47 100644 (file)
@@ -6,6 +6,7 @@ AC_CANONICAL_HOST
 
 dnl Set some system-specific variables which are OK to set before compiler
 dnl checks:
+PTHREAD_DEFS=-D_REENTRANT
 case "$host" in
        dnl Tru64 Unix requires we use -pthread instead of linking the threads
        dnl libraries directly, and we can't build threaded programs with gcc
@@ -17,8 +18,10 @@ case "$host" in
        dnl FreeBSD is similar:
        *-*-freebsd*)
                LIBS=-pthread
+               PTHREAD_DEFS=-D_THREAD_SAFE
        ;;
 esac
+AC_SUBST(PTHREAD_DEFS)
 
 dnl Checks for programs.
 AC_PROG_CC