From 73cbaf9eb83c17c794ca18e8eaf125029605db41 Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Sun, 6 Jan 2008 18:03:32 +0000 Subject: [PATCH] Fix pthread configure check for js cli tool git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7108 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/js/configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/js/configure.ac b/libs/js/configure.ac index a1ddbc4582..f4e0954d04 100644 --- a/libs/js/configure.ac +++ b/libs/js/configure.ac @@ -178,11 +178,13 @@ AC_ARG_WITH(nspr, AC_CACHE_CHECK([whether to build with NSPR], [ac_cv_with_nspr], [ac_cv_with_nspr=no]) if test ".$ac_cv_with_nspr" = ".yes"; then sinclude(nsprpub/config/nspr.m4) + + AC_CHECK_LIB(pthread, pthread_create, [CLI_LIBS="$CLI_LIBS -lpthread"]) + CPPFLAGS="$CPPFLAGS -DJS_THREADSAFE=1 -Insprpub/dist/include/nspr -Insprpub/pr/include" LDFLAGS="$LDFLAGS -L./nsprpub/dist/lib" LIBS="$LIBS -lnspr4" LIBPATH="LD_LIBRARY_PATH=./nsprpub/dist/lib DYLD_LIBRARY_PATH=./nsprpub/dist/lib" - AC_CHECK_LIB(pthread, pthread_create, [CLI_LIBS="$CLI_LIBS -lpthread"]) fi AC_DEFUN([AX_COMPILER_VENDOR],