mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
bcfc286823
PR: ports/62976 Submitted by: Bjoern A. Zeeb <bzeeb+freebsdports@zabbadoz.net> Approved by: maintainer timeout (18 days)
244 lines
7.3 KiB
Plaintext
244 lines
7.3 KiB
Plaintext
--- source/configure.orig Tue Feb 17 09:08:47 2004
|
|
+++ source/configure Tue Feb 17 09:13:53 2004
|
|
@@ -1874,236 +1874,10 @@
|
|
|
|
if test $threads = true; then
|
|
|
|
- echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
|
|
-echo "configure:1879: checking for pthread_attr_init in -lpthread" >&5
|
|
-ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
|
|
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
- echo $ac_n "(cached) $ac_c" 1>&6
|
|
-else
|
|
- ac_save_LIBS="$LIBS"
|
|
-LIBS="-lpthread $LIBS"
|
|
-cat > conftest.$ac_ext <<EOF
|
|
-#line 1887 "configure"
|
|
-#include "confdefs.h"
|
|
-/* Override any gcc2 internal prototype to avoid an error. */
|
|
-/* We use char because int might match the return type of a gcc2
|
|
- builtin and then its argument prototype would still apply. */
|
|
-char pthread_attr_init();
|
|
-
|
|
-int main() {
|
|
-pthread_attr_init()
|
|
-; return 0; }
|
|
-EOF
|
|
-if { (eval echo configure:1898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
- rm -rf conftest*
|
|
- eval "ac_cv_lib_$ac_lib_var=yes"
|
|
-else
|
|
- echo "configure: failed program was:" >&5
|
|
- cat conftest.$ac_ext >&5
|
|
- rm -rf conftest*
|
|
- eval "ac_cv_lib_$ac_lib_var=no"
|
|
-fi
|
|
-rm -f conftest*
|
|
-LIBS="$ac_save_LIBS"
|
|
-
|
|
-fi
|
|
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
- echo "$ac_t""yes" 1>&6
|
|
- ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
- cat >> confdefs.h <<EOF
|
|
-#define $ac_tr_lib 1
|
|
-EOF
|
|
-
|
|
- LIBS="-lpthread $LIBS"
|
|
-
|
|
-else
|
|
- echo "$ac_t""no" 1>&6
|
|
-fi
|
|
-
|
|
- if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
|
|
- ICU_USE_THREADS=1
|
|
- else
|
|
-
|
|
-
|
|
-echo $ac_n "checking for library containing pthread_mutex_destroy""... $ac_c" 1>&6
|
|
-echo "configure:1931: checking for library containing pthread_mutex_destroy" >&5
|
|
-if eval "test \"`echo '$''{'ac_cv_search_pthread_mutex_destroy'+set}'`\" = set"; then
|
|
- echo $ac_n "(cached) $ac_c" 1>&6
|
|
-else
|
|
- ac_func_search_save_LIBS="$LIBS"
|
|
-ac_cv_search_pthread_mutex_destroy="no"
|
|
-for i in pthread pthreads c_r ; do
|
|
-LIBS="-l$i $ac_func_search_save_LIBS"
|
|
-cat > conftest.$ac_ext <<EOF
|
|
-#line 1940 "configure"
|
|
-#include "confdefs.h"
|
|
-/* Override any gcc2 internal prototype to avoid an error. */
|
|
-/* We use char because int might match the return type of a gcc2
|
|
- builtin and then its argument prototype would still apply. */
|
|
-char pthread_mutex_destroy();
|
|
-
|
|
-int main() {
|
|
-pthread_mutex_destroy()
|
|
-; return 0; }
|
|
-EOF
|
|
-if { (eval echo configure:1951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
- rm -rf conftest*
|
|
- ac_cv_search_pthread_mutex_destroy="-l$i"
|
|
-break
|
|
-else
|
|
- echo "configure: failed program was:" >&5
|
|
- cat conftest.$ac_ext >&5
|
|
-fi
|
|
-rm -f conftest*
|
|
-done
|
|
-if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then
|
|
-cat > conftest.$ac_ext <<EOF
|
|
-#line 1963 "configure"
|
|
-#include "confdefs.h"
|
|
-/* Override any gcc2 internal prototype to avoid an error. */
|
|
-/* We use char because int might match the return type of a gcc2
|
|
- builtin and then its argument prototype would still apply. */
|
|
-char pthread_mutex_destroy();
|
|
-
|
|
-int main() {
|
|
-pthread_mutex_destroy()
|
|
-; return 0; }
|
|
-EOF
|
|
-if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
- rm -rf conftest*
|
|
- ac_cv_search_pthread_mutex_destroy="none required"
|
|
-else
|
|
- echo "configure: failed program was:" >&5
|
|
- cat conftest.$ac_ext >&5
|
|
-fi
|
|
-rm -f conftest*
|
|
-fi
|
|
-LIBS="$ac_func_search_save_LIBS"
|
|
-fi
|
|
-
|
|
-echo "$ac_t""$ac_cv_search_pthread_mutex_destroy" 1>&6
|
|
-if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then
|
|
- test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS"
|
|
-
|
|
-else :
|
|
-
|
|
-fi
|
|
-
|
|
- if test "$ac_cv_search_pthread_mutex_destroy" != no; then
|
|
- ICU_USE_THREADS=1
|
|
- else
|
|
- echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6
|
|
-echo "configure:1998: checking for pthread_mutex_init in -lpthread" >&5
|
|
-ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
|
|
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
- echo $ac_n "(cached) $ac_c" 1>&6
|
|
-else
|
|
- ac_save_LIBS="$LIBS"
|
|
-LIBS="-lpthread $LIBS"
|
|
-cat > conftest.$ac_ext <<EOF
|
|
-#line 2006 "configure"
|
|
-#include "confdefs.h"
|
|
-/* Override any gcc2 internal prototype to avoid an error. */
|
|
-/* We use char because int might match the return type of a gcc2
|
|
- builtin and then its argument prototype would still apply. */
|
|
-char pthread_mutex_init();
|
|
-
|
|
-int main() {
|
|
-pthread_mutex_init()
|
|
-; return 0; }
|
|
-EOF
|
|
-if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
- rm -rf conftest*
|
|
- eval "ac_cv_lib_$ac_lib_var=yes"
|
|
-else
|
|
- echo "configure: failed program was:" >&5
|
|
- cat conftest.$ac_ext >&5
|
|
- rm -rf conftest*
|
|
- eval "ac_cv_lib_$ac_lib_var=no"
|
|
-fi
|
|
-rm -f conftest*
|
|
-LIBS="$ac_save_LIBS"
|
|
-
|
|
-fi
|
|
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
- echo "$ac_t""yes" 1>&6
|
|
- ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
- cat >> confdefs.h <<EOF
|
|
-#define $ac_tr_lib 1
|
|
-EOF
|
|
-
|
|
- LIBS="-lpthread $LIBS"
|
|
-
|
|
-else
|
|
- echo "$ac_t""no" 1>&6
|
|
-fi
|
|
-
|
|
- if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
|
|
- ICU_USE_THREADS=1
|
|
- fi
|
|
- fi
|
|
-
|
|
- echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
|
|
-echo "configure:2050: checking for pthread_mutex_lock" >&5
|
|
-if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
|
|
- echo $ac_n "(cached) $ac_c" 1>&6
|
|
-else
|
|
- cat > conftest.$ac_ext <<EOF
|
|
-#line 2055 "configure"
|
|
-#include "confdefs.h"
|
|
-/* System header to define __stub macros and hopefully few prototypes,
|
|
- which can conflict with char pthread_mutex_lock(); below. */
|
|
-#include <assert.h>
|
|
-/* Override any gcc2 internal prototype to avoid an error. */
|
|
-/* We use char because int might match the return type of a gcc2
|
|
- builtin and then its argument prototype would still apply. */
|
|
-char pthread_mutex_lock();
|
|
-
|
|
-int main() {
|
|
-
|
|
-/* The GNU C library defines this for functions which it implements
|
|
- to always fail with ENOSYS. Some functions are actually named
|
|
- something starting with __ and the normal name is an alias. */
|
|
-#if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
|
|
-choke me
|
|
-#else
|
|
-pthread_mutex_lock();
|
|
-#endif
|
|
-
|
|
-; return 0; }
|
|
-EOF
|
|
-if { (eval echo configure:2078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
- rm -rf conftest*
|
|
- eval "ac_cv_func_pthread_mutex_lock=yes"
|
|
-else
|
|
- echo "configure: failed program was:" >&5
|
|
- cat conftest.$ac_ext >&5
|
|
- rm -rf conftest*
|
|
- eval "ac_cv_func_pthread_mutex_lock=no"
|
|
-fi
|
|
-rm -f conftest*
|
|
-fi
|
|
-
|
|
-if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
|
|
- echo "$ac_t""yes" 1>&6
|
|
- :
|
|
-else
|
|
- echo "$ac_t""no" 1>&6
|
|
-fi
|
|
-
|
|
-
|
|
- if test $ac_cv_func_pthread_mutex_lock = yes; then
|
|
- ICU_USE_THREADS=1
|
|
- fi
|
|
- case "${host}" in
|
|
- *-pc-cygwin*|*-pc-mingw*)
|
|
- if test "$ac_cv_prog_gcc" = no; then
|
|
- ICU_USE_THREADS=1
|
|
- fi ;;
|
|
- esac
|
|
- fi
|
|
+ echo "going to use ... ${PTHREAD_LIBS}" 1>&6
|
|
+ echo "configure:1879: going to use ${PTHREAD_LIBS}" >&5
|
|
+ LIBS="${PTHREAD_LIBS} $LIBS"
|
|
+ ICU_USE_THREADS=1
|
|
fi
|
|
|
|
|