--- configure.in.orig Fri Jan 26 23:51:23 2007 +++ configure.in Fri Jan 26 23:53:05 2007 @@ -852,14 +852,14 @@ # Not available on all versions: check for include file. AC_CHECK_HEADER(dlfcn.h, [ SHLIB_CFLAGS="-fpic" - SHLIB_LD="ld -Bshareable -x" + SHLIB_LD='${CC} -shared -Wl,-x' SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="" LD_FLAGS="" LD_SEARCH_FLAGS="" - TCL_SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' + TCL_SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' ], [ SHLIB_CFLAGS="" SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" @@ -1222,6 +1222,7 @@ if test "$TCL_UNSHARED_LIB_SUFFIX" = "" ; then TCL_UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' fi +TCL_STATIC_LIB_FILE="" AC_ARG_ENABLE(shared, [ --enable-shared build libtcl as a shared library], [tcl_ok=$enableval], [tcl_ok=no]) @@ -1230,10 +1231,11 @@ TCL_SHLIB_CFLAGS="${SHLIB_CFLAGS}" TCL_LD_SEARCH_FLAGS="${LD_SEARCH_FLAGS}" eval "TCL_LIB_FILE=libtcl${TCL_SHARED_LIB_SUFFIX}" + eval "TCL_STATIC_LIB_FILE=libtcl${TCL_UNSHARED_LIB_SUFFIX}" if test "x$DL_OBJS" = "xtclLoadAout.o"; then MAKE_LIB="ar cr \${TCL_LIB_FILE} \${OBJS}" else - MAKE_LIB="\${SHLIB_LD} -o \${TCL_LIB_FILE} \${OBJS} ${SHLIB_LD_LIBS}" + MAKE_LIB="\${SHLIB_LD} -o \${TCL_LIB_FILE} \${OBJS} -Wl,-S,-soname=${TCL_LIB_FILE} ${SHLIB_LD_LIBS}" RANLIB=":" fi else @@ -1272,8 +1274,9 @@ # so that the backslashes quoting the DBX braces are dropped. # Trick to replace DBGX with TCL_DBGX -DBGX='${TCL_DBGX}' +DBGX=${TCL_DBGX} eval "TCL_LIB_FILE=${TCL_LIB_FILE}" +eval "TCL_STATIC_LIB_FILE=${TCL_STATIC_LIB_FILE}" VERSION='${VERSION}' eval "CFG_TCL_SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX}" @@ -1313,6 +1316,7 @@ AC_SUBST(TCL_BUILD_LIB_SPEC) AC_SUBST(TCL_LD_SEARCH_FLAGS) AC_SUBST(TCL_LIB_FILE) +AC_SUBST(TCL_STATIC_LIB_FILE) AC_SUBST(TCL_LIB_FLAG) AC_SUBST(TCL_LIB_SPEC) AC_SUBST(TCL_LIB_VERSIONS_OK) @@ -1327,4 +1331,4 @@ AC_SUBST(TCL_UNSHARED_LIB_SUFFIX) AC_SUBST(TCL_VERSION) -AC_OUTPUT(Makefile tclConfig.sh) +AC_OUTPUT(Makefile tclConfig.sh ../README.FreeBSD.JP)