diff options
author | mdejong <mdejong> | 2001-12-19 21:34:12 (GMT) |
---|---|---|
committer | mdejong <mdejong> | 2001-12-19 21:34:12 (GMT) |
commit | bdff78b0f27bc0e972e6c195aae5d58af6a4d0f8 (patch) | |
tree | 34d97d7ac5bde4cc956b79403f3496eb2134bed8 /unix/configure | |
parent | 6ac02a023c9bf2bdcd34545fc18cc7e3aeda4887 (diff) | |
download | tcl-bdff78b0f27bc0e972e6c195aae5d58af6a4d0f8.zip tcl-bdff78b0f27bc0e972e6c195aae5d58af6a4d0f8.tar.gz tcl-bdff78b0f27bc0e972e6c195aae5d58af6a4d0f8.tar.bz2 |
* unix/configure:
* unix/tcl.m4 (SC_CONFIG_CFLAGS): Update
SunOS 5.[0-6] target so that correct linker
options are passed to gcc or ld. [Tk Bug 220863]
Diffstat (limited to 'unix/configure')
-rwxr-xr-x | unix/configure | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/unix/configure b/unix/configure index 8ba23e1..da02f1e 100755 --- a/unix/configure +++ b/unix/configure @@ -5685,7 +5685,11 @@ EOF DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LDFLAGS="" - LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' + if test "$GCC" = "yes" ; then + LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' + else + LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' + fi ;; SunOS-5*) @@ -5758,17 +5762,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:5762: checking for ld accepts -Bexport flag" >&5 +echo "configure:5766: checking for ld accepts -Bexport flag" >&5 LDFLAGS="${LDFLAGS} -Wl,-Bexport" cat > conftest.$ac_ext <<EOF -#line 5765 "configure" +#line 5769 "configure" #include "confdefs.h" int main() { int i; ; return 0; } EOF -if { (eval echo configure:5772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* found=yes else @@ -5814,9 +5818,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:5818: checking sys/exec.h" >&5 +echo "configure:5822: checking sys/exec.h" >&5 cat > conftest.$ac_ext <<EOF -#line 5820 "configure" +#line 5824 "configure" #include "confdefs.h" #include <sys/exec.h> int main() { @@ -5834,7 +5838,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:5838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tcl_ok=usable else @@ -5852,9 +5856,9 @@ EOF else echo $ac_n "checking a.out.h""... $ac_c" 1>&6 -echo "configure:5856: checking a.out.h" >&5 +echo "configure:5860: checking a.out.h" >&5 cat > conftest.$ac_ext <<EOF -#line 5858 "configure" +#line 5862 "configure" #include "confdefs.h" #include <a.out.h> int main() { @@ -5872,7 +5876,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:5876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tcl_ok=usable else @@ -5890,9 +5894,9 @@ EOF else echo $ac_n "checking sys/exec_aout.h""... $ac_c" 1>&6 -echo "configure:5894: checking sys/exec_aout.h" >&5 +echo "configure:5898: checking sys/exec_aout.h" >&5 cat > conftest.$ac_ext <<EOF -#line 5896 "configure" +#line 5900 "configure" #include "confdefs.h" #include <sys/exec_aout.h> int main() { @@ -5910,7 +5914,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:5914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tcl_ok=usable else @@ -6007,7 +6011,7 @@ fi echo $ac_n "checking for build with symbols""... $ac_c" 1>&6 -echo "configure:6011: checking for build with symbols" >&5 +echo "configure:6015: 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" @@ -6044,17 +6048,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:6048: checking for $ac_hdr" >&5 +echo "configure:6052: 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 6053 "configure" +#line 6057 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6062: \"$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* @@ -6084,17 +6088,17 @@ done do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6088: checking for $ac_hdr" >&5 +echo "configure:6092: 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 6093 "configure" +#line 6097 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6102: \"$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* @@ -6121,7 +6125,7 @@ fi done echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6 -echo "configure:6125: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5 +echo "configure:6129: 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 @@ -6183,7 +6187,7 @@ TCL_SHARED_LIB_SUFFIX=${SHARED_LIB_SUFFIX} echo $ac_n "checking how to build libraries""... $ac_c" 1>&6 -echo "configure:6187: checking how to build libraries" >&5 +echo "configure:6191: 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" |