summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoye <joye>2015-05-26 19:38:52 (GMT)
committerjoye <joye>2015-05-26 19:38:52 (GMT)
commit11e8c89ad093b06582b0f8bc6b19f5ec8b89218f (patch)
tree3f51bf4b568ef9af709f49f5abb068232cb4112c
parentbc683014660ee9099b952f07d68e4ba127ade2f9 (diff)
downloadblt-11e8c89ad093b06582b0f8bc6b19f5ec8b89218f.zip
blt-11e8c89ad093b06582b0f8bc6b19f5ec8b89218f.tar.gz
blt-11e8c89ad093b06582b0f8bc6b19f5ec8b89218f.tar.bz2
*** empty log message ***
-rwxr-xr-xconfigure36
-rwxr-xr-xconfigure.in2
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