From 11e8c89ad093b06582b0f8bc6b19f5ec8b89218f Mon Sep 17 00:00:00 2001 From: joye Date: Tue, 26 May 2015 19:38:52 +0000 Subject: *** empty log message *** --- configure | 36 +++++++++++++++++++++++++++++++++++- configure.in | 2 +- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/configure b/configure index f1e928f..48c652c 100755 --- a/configure +++ b/configure @@ -643,6 +643,7 @@ CFLAGS_DEBUG RC CELIB_DIR AR +SHARED_BUILD TCL_THREADS XMKMF TK_XLIB_DIR_NATIVE @@ -750,6 +751,7 @@ with_tclinclude with_tkinclude with_x enable_threads +enable_shared enable_64bit enable_64bit_vis enable_rpath @@ -1381,6 +1383,7 @@ Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-threads build with threads + --enable-shared build and link with shared libraries (default: on) --enable-64bit enable 64bit support (default: off) --enable-64bit-vis enable 64bit Sparc VIS support (default: off) --disable-rpath disable rpath support (default: on) @@ -6683,7 +6686,38 @@ $as_echo "$as_me: WARNING: # building as a shared library instead of a static library. #-------------------------------------------------------------------- -#TEA_ENABLE_SHARED + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5 +$as_echo_n "checking how to build libraries... " >&6; } + # Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; tcl_ok=$enableval +else + tcl_ok=yes +fi + + + if test "${enable_shared+set}" = set; then + enableval="$enable_shared" + tcl_ok=$enableval + else + tcl_ok=yes + fi + + if test "$tcl_ok" = "yes" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5 +$as_echo "shared" >&6; } + SHARED_BUILD=1 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 +$as_echo "static" >&6; } + SHARED_BUILD=0 + +$as_echo "#define STATIC_BUILD 1" >>confdefs.h + + fi + + #-------------------------------------------------------------------- # This macro figures out what flags to use with the compiler/linker diff --git a/configure.in b/configure.in index a7450ba..1c2e010 100755 --- a/configure.in +++ b/configure.in @@ -179,7 +179,7 @@ TEA_ENABLE_THREADS # building as a shared library instead of a static library. #-------------------------------------------------------------------- -#TEA_ENABLE_SHARED +TEA_ENABLE_SHARED #-------------------------------------------------------------------- # This macro figures out what flags to use with the compiler/linker -- cgit v0.12