]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix pthread configure check for js cli tool
authorStefan Knoblich <stkn@freeswitch.org>
Sun, 6 Jan 2008 18:03:32 +0000 (18:03 +0000)
committerStefan Knoblich <stkn@freeswitch.org>
Sun, 6 Jan 2008 18:03:32 +0000 (18:03 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7108 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/js/configure.ac

index a1ddbc45821f7b5975011f8671f1b31f7092930e..f4e0954d04c7afc4e87c6100511e062568072ecc 100644 (file)
@@ -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],