diff options
author | hobbs <hobbs> | 2002-02-08 09:33:44 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2002-02-08 09:33:44 (GMT) |
commit | 1d15b8b984d5b351208466e23c385018fae2033b (patch) | |
tree | a38ab60878f5df122610692245f85ba1a3d93cc0 /unix/configure | |
parent | 0cc0da11ade0c01bfb84c79316082347a1308ea8 (diff) | |
download | tcl-1d15b8b984d5b351208466e23c385018fae2033b.zip tcl-1d15b8b984d5b351208466e23c385018fae2033b.tar.gz tcl-1d15b8b984d5b351208466e23c385018fae2033b.tar.bz2 |
* unix/configure:
* unix/tcl.m4: added -pthread for FreeBSD to EXTRA_CFLAGS and
LDFLAGS. Also triggered nodots only for FreeBSD-3.
Added AC_DEFINE(_POSIX_PTHREAD_SEMANTICS) for Solaris.
Diffstat (limited to 'unix/configure')
-rwxr-xr-x | unix/configure | 68 |
1 files changed, 41 insertions, 27 deletions
diff --git a/unix/configure b/unix/configure index 982eeb0..d2c6490 100755 --- a/unix/configure +++ b/unix/configure @@ -5509,12 +5509,18 @@ fi DL_LIBS="" LDFLAGS="-export-dynamic" LD_SEARCH_FLAGS="" - - # FreeBSD doesn't handle version numbers with dots. - - UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' - SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' - TCL_LIB_VERSIONS_OK=nodots + if test "${TCL_THREADS}" = "1" ; then + EXTRA_CFLAGS="-pthread" + LDFLAGS="$LDFLAGS -pthread" + fi + case $system in + FreeBSD-3.*) + # FreeBSD-3 doesn't handle version numbers with dots. + UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' + SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' + TCL_LIB_VERSIONS_OK=nodots + ;; + esac ;; Rhapsody-*|Darwin-*) SHLIB_CFLAGS="-fno-common" @@ -5675,6 +5681,10 @@ EOF #define _REENTRANT 1 EOF + cat >> confdefs.h <<\EOF +#define _POSIX_PTHREAD_SEMANTICS 1 +EOF + SHLIB_CFLAGS="-KPIC" SHLIB_LD="/usr/ccs/bin/ld -G -z text" @@ -5702,6 +5712,10 @@ EOF #define _REENTRANT 1 EOF + cat >> confdefs.h <<\EOF +#define _POSIX_PTHREAD_SEMANTICS 1 +EOF + SHLIB_CFLAGS="-KPIC" SHLIB_LD="/usr/ccs/bin/ld -G -z text" @@ -5764,17 +5778,17 @@ EOF # that don't grok the -Bexport option. Test that it does. hold_ldflags=$LDFLAGS echo $ac_n "checking for ld accepts -Bexport flag""... $ac_c" 1>&6 -echo "configure:5768: checking for ld accepts -Bexport flag" >&5 +echo "configure:5782: checking for ld accepts -Bexport flag" >&5 LDFLAGS="${LDFLAGS} -Wl,-Bexport" cat > conftest.$ac_ext <<EOF -#line 5771 "configure" +#line 5785 "configure" #include "confdefs.h" int main() { int i; ; return 0; } EOF -if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* found=yes else @@ -5820,9 +5834,9 @@ rm -f conftest* if test "x$DL_OBJS" = "xtclLoadAout.o" ; then echo $ac_n "checking sys/exec.h""... $ac_c" 1>&6 -echo "configure:5824: checking sys/exec.h" >&5 +echo "configure:5838: checking sys/exec.h" >&5 cat > conftest.$ac_ext <<EOF -#line 5826 "configure" +#line 5840 "configure" #include "confdefs.h" #include <sys/exec.h> int main() { @@ -5840,7 +5854,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:5844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tcl_ok=usable else @@ -5858,9 +5872,9 @@ EOF else echo $ac_n "checking a.out.h""... $ac_c" 1>&6 -echo "configure:5862: checking a.out.h" >&5 +echo "configure:5876: checking a.out.h" >&5 cat > conftest.$ac_ext <<EOF -#line 5864 "configure" +#line 5878 "configure" #include "confdefs.h" #include <a.out.h> int main() { @@ -5878,7 +5892,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:5882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tcl_ok=usable else @@ -5896,9 +5910,9 @@ EOF else echo $ac_n "checking sys/exec_aout.h""... $ac_c" 1>&6 -echo "configure:5900: checking sys/exec_aout.h" >&5 +echo "configure:5914: checking sys/exec_aout.h" >&5 cat > conftest.$ac_ext <<EOF -#line 5902 "configure" +#line 5916 "configure" #include "confdefs.h" #include <sys/exec_aout.h> int main() { @@ -5916,7 +5930,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:5920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tcl_ok=usable else @@ -6013,7 +6027,7 @@ fi echo $ac_n "checking for build with symbols""... $ac_c" 1>&6 -echo "configure:6017: checking for build with symbols" >&5 +echo "configure:6031: checking for build with symbols" >&5 # Check whether --enable-symbols or --disable-symbols was given. if test "${enable_symbols+set}" = set; then enableval="$enable_symbols" @@ -6050,17 +6064,17 @@ TCL_DBGX=${DBGX} do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6054: checking for $ac_hdr" >&5 +echo "configure:6068: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 6059 "configure" +#line 6073 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -6090,17 +6104,17 @@ done do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6094: checking for $ac_hdr" >&5 +echo "configure:6108: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 6099 "configure" +#line 6113 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -6127,7 +6141,7 @@ fi done echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6 -echo "configure:6131: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5 +echo "configure:6145: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5 if test -f /usr/lib/NextStep/software_version; then system=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` else @@ -6189,7 +6203,7 @@ TCL_SHARED_LIB_SUFFIX=${SHARED_LIB_SUFFIX} echo $ac_n "checking how to build libraries""... $ac_c" 1>&6 -echo "configure:6193: checking how to build libraries" >&5 +echo "configure:6207: checking how to build libraries" >&5 # Check whether --enable-shared or --disable-shared was given. if test "${enable_shared+set}" = set; then enableval="$enable_shared" |