2940 |
TCL_CONFIG_PREFIX=`${TCLSH} < conftest.tcl` |
TCL_CONFIG_PREFIX=`${TCLSH} < conftest.tcl` |
2941 |
fi |
fi |
2942 |
fi |
fi |
2943 |
|
if test -f ${TCL_CONFIG_PREFIX}/tclConfig.sh ; then . ${TCL_CONFIG_PREFIX}/tclConfig.sh ; fi |
2944 |
|
|
2945 |
|
|
2946 |
if test -d "${TK_CONFIG_PREFIX}" ; then true ; else |
if test -d "${TK_CONFIG_PREFIX}" ; then true ; else |
2947 |
if test -f ${TCL_CONFIG_PREFIX}/tkConfig.sh ; then |
if test -f ${TCL_CONFIG_PREFIX}/tkConfig.sh ; then |
2948 |
TK_CONFIG_PREFIX=${TCL_CONFIG_PREFIX} |
TK_CONFIG_PREFIX=${TCL_CONFIG_PREFIX} |
2949 |
else |
else |
2950 |
rm -f conftest.tcl |
#rm -f conftest.tcl |
2951 |
cat >> conftest.tcl <<EOF |
#cat >> conftest.tcl <<EOF |
2952 |
|
#[ |
2953 |
|
#set dir [set tk_library] |
2954 |
|
#if { [file exists [file join [set dir] tkConfig.sh]] } { |
2955 |
|
# puts [set dir] |
2956 |
|
# exit |
2957 |
|
# } |
2958 |
|
#set dir [file dirname [set tk_library]] |
2959 |
|
#if { [file exists [file join [set dir] tkConfig.sh]] } { |
2960 |
|
# puts [set dir] |
2961 |
|
# } |
2962 |
|
#exit 0 |
2963 |
|
#] |
2964 |
|
#EOF |
2965 |
|
#cp conftest.tcl foo.tcl |
2966 |
|
#AC_CHECK_PROG(TKSH,wish,wish,${TKSH}) |
2967 |
|
##AC_CHECK_PROG(TKSH,wish8.0,wish8.0,${TKSH}) |
2968 |
|
#if test "${TKSH}" = "" ; then true ; else |
2969 |
|
#TK_CONFIG_PREFIX=`${TKSH} < conftest.tcl` |
2970 |
|
#fi |
2971 |
|
|
2972 |
set dir [set tk_library] |
if test "${TCLSH}" = "" ; then true ; else |
2973 |
if { [file exists [file join [set dir] tkConfig.sh]] } { |
TK_CONFIG_PREFIX=`echo tcl_findLibrary \"tk\" \"${TCL_VERSION}\" \"\" \"tkConfig.sh\" \"TK_LIBRARY\" tk_library | ${TCLSH} 2>&1 | awk '/"source / {if (i++) next;sub("/[^/]*$","",$2);print $2}'` |
|
puts [set dir] |
|
|
exit |
|
|
} |
|
|
set dir [file dirname [set tk_library]] |
|
|
if { [file exists [file join [set dir] tkConfig.sh]] } { |
|
|
puts [set dir] |
|
|
} |
|
|
exit 0 |
|
|
|
|
|
EOF |
|
|
cp conftest.tcl foo.tcl |
|
|
# Extract the first word of "wish", so it can be a program name with args. |
|
|
set dummy wish; ac_word=$2 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|
|
echo "configure:2969: checking for $ac_word" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_TKSH'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
if test -n "$TKSH"; then |
|
|
ac_cv_prog_TKSH="$TKSH" # Let the user override the test. |
|
|
else |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
ac_dummy="$PATH" |
|
|
for ac_dir in $ac_dummy; do |
|
|
test -z "$ac_dir" && ac_dir=. |
|
|
if test -f $ac_dir/$ac_word; then |
|
|
ac_cv_prog_TKSH="wish" |
|
|
break |
|
|
fi |
|
|
done |
|
|
IFS="$ac_save_ifs" |
|
|
test -z "$ac_cv_prog_TKSH" && ac_cv_prog_TKSH="${TKSH}" |
|
|
fi |
|
|
fi |
|
|
TKSH="$ac_cv_prog_TKSH" |
|
|
if test -n "$TKSH"; then |
|
|
echo "$ac_t""$TKSH" 1>&6 |
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
2974 |
fi |
fi |
2975 |
|
|
|
#AC_CHECK_PROG(TKSH,wish8.0,wish8.0,${TKSH}) |
|
|
if test "${TKSH}" = "" ; then true ; else |
|
|
TK_CONFIG_PREFIX=`${TKSH} < conftest.tcl` |
|
|
fi |
|
2976 |
fi |
fi |
2977 |
fi |
fi |
2978 |
#AC_MSG_CHECKING(TK_CONFIG_PREFIX=${TK_CONFIG_PREFIX}) |
#AC_MSG_CHECKING(TK_CONFIG_PREFIX=${TK_CONFIG_PREFIX}) |
|
if test -f ${TCL_CONFIG_PREFIX}/tclConfig.sh ; then . ${TCL_CONFIG_PREFIX}/tclConfig.sh ; fi |
|
2979 |
if test -f ${TK_CONFIG_PREFIX}/tkConfig.sh ; then . ${TK_CONFIG_PREFIX}/tkConfig.sh ; fi |
if test -f ${TK_CONFIG_PREFIX}/tkConfig.sh ; then . ${TK_CONFIG_PREFIX}/tkConfig.sh ; fi |
2980 |
|
|
2981 |
if test -d ${TK_CONFIG_PREFIX}/tk${TK_VERSION} ; then |
if test -d ${TK_CONFIG_PREFIX}/tk${TK_VERSION} ; then |
3007 |
fi |
fi |
3008 |
fi |
fi |
3009 |
echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6 |
echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6 |
3010 |
echo "configure:3035: checking for main in -llieee" >&5 |
echo "configure:3011: checking for main in -llieee" >&5 |
3011 |
ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'` |
ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'` |
3012 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3013 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
3015 |
ac_save_LIBS="$LIBS" |
ac_save_LIBS="$LIBS" |
3016 |
LIBS="-llieee $LIBS" |
LIBS="-llieee $LIBS" |
3017 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
3018 |
#line 3043 "configure" |
#line 3019 "configure" |
3019 |
#include "confdefs.h" |
#include "confdefs.h" |
3020 |
|
|
3021 |
int main() { |
int main() { |
3022 |
main() |
main() |
3023 |
; return 0; } |
; return 0; } |
3024 |
EOF |
EOF |
3025 |
if { (eval echo configure:3050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
if { (eval echo configure:3026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3026 |
rm -rf conftest* |
rm -rf conftest* |
3027 |
eval "ac_cv_lib_$ac_lib_var=yes" |
eval "ac_cv_lib_$ac_lib_var=yes" |
3028 |
else |
else |
3047 |
TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-lieee::g" ` |
TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-lieee::g" ` |
3048 |
fi |
fi |
3049 |
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
3050 |
echo "configure:3075: checking for dlopen in -ldl" >&5 |
echo "configure:3051: checking for dlopen in -ldl" >&5 |
3051 |
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
3052 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3053 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
3055 |
ac_save_LIBS="$LIBS" |
ac_save_LIBS="$LIBS" |
3056 |
LIBS="-ldl $LIBS" |
LIBS="-ldl $LIBS" |
3057 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
3058 |
#line 3083 "configure" |
#line 3059 "configure" |
3059 |
#include "confdefs.h" |
#include "confdefs.h" |
3060 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
3061 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
3066 |
dlopen() |
dlopen() |
3067 |
; return 0; } |
; return 0; } |
3068 |
EOF |
EOF |
3069 |
if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
if { (eval echo configure:3070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3070 |
rm -rf conftest* |
rm -rf conftest* |
3071 |
eval "ac_cv_lib_$ac_lib_var=yes" |
eval "ac_cv_lib_$ac_lib_var=yes" |
3072 |
else |
else |
3148 |
# the time handling for unixtime, add timezone |
# the time handling for unixtime, add timezone |
3149 |
|
|
3150 |
echo $ac_n "checking alloca""... $ac_c" 1>&6 |
echo $ac_n "checking alloca""... $ac_c" 1>&6 |
3151 |
echo "configure:3176: checking alloca" >&5 |
echo "configure:3152: checking alloca" >&5 |
3152 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3153 |
gcl_ok=no |
gcl_ok=no |
3154 |
else |
else |
3155 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
3156 |
#line 3181 "configure" |
#line 3157 "configure" |
3157 |
#include "confdefs.h" |
#include "confdefs.h" |
3158 |
int main() { exit(alloca(500) != NULL ? 0 : 1);} |
int main() { exit(alloca(500) != NULL ? 0 : 1);} |
3159 |
EOF |
EOF |
3160 |
if { (eval echo configure:3185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
if { (eval echo configure:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3161 |
then |
then |
3162 |
: |
: |
3163 |
else |
else |
3180 |
gcl_ok=no |
gcl_ok=no |
3181 |
else |
else |
3182 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
3183 |
#line 3208 "configure" |
#line 3184 "configure" |
3184 |
#include "confdefs.h" |
#include "confdefs.h" |
3185 |
#include <alloca.h> |
#include <alloca.h> |
3186 |
int main() { exit(alloca(500) != NULL ? 0 : 1)} |
int main() { exit(alloca(500) != NULL ? 0 : 1)} |
3187 |
EOF |
EOF |
3188 |
if { (eval echo configure:3213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
if { (eval echo configure:3189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3189 |
then |
then |
3190 |
: |
: |
3191 |
else |
else |
3247 |
|
|
3248 |
if test $use_gmp = yes ; then |
if test $use_gmp = yes ; then |
3249 |
echo $ac_n "checking use_gmp=yes, doing configure in gmp directory""... $ac_c" 1>&6 |
echo $ac_n "checking use_gmp=yes, doing configure in gmp directory""... $ac_c" 1>&6 |
3250 |
echo "configure:3275: checking use_gmp=yes, doing configure in gmp directory" >&5 |
echo "configure:3251: checking use_gmp=yes, doing configure in gmp directory" >&5 |
3251 |
case "${canonical}" in |
case "${canonical}" in |
3252 |
# i[[5-9]]86* | pentium* | k6* | athlon*) |
# i[[5-9]]86* | pentium* | k6* | athlon*) |
3253 |
# (cd gmp ; ./configure --target=i486) ;; |
# (cd gmp ; ./configure --target=i486) ;; |
3269 |
# redhat/cygnus released for some reason a buggy version of gcc, |
# redhat/cygnus released for some reason a buggy version of gcc, |
3270 |
# which no one else released. Catch that here. |
# which no one else released. Catch that here. |
3271 |
echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6 |
echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6 |
3272 |
echo "configure:3297: checking Checking for buggy gcc version from redhat" >&5 |
echo "configure:3273: checking Checking for buggy gcc version from redhat" >&5 |
3273 |
if 2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null |
if 2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null |
3274 |
then |
then |
3275 |
BROKEN_O4_OPT=1 |
BROKEN_O4_OPT=1 |
3445 |
s%@EMACS_DEFAULT_EL@%$EMACS_DEFAULT_EL%g |
s%@EMACS_DEFAULT_EL@%$EMACS_DEFAULT_EL%g |
3446 |
s%@INFO_DIR@%$INFO_DIR%g |
s%@INFO_DIR@%$INFO_DIR%g |
3447 |
s%@TCLSH@%$TCLSH%g |
s%@TCLSH@%$TCLSH%g |
|
s%@TKSH@%$TKSH%g |
|
3448 |
s%@TK_CONFIG_PREFIX@%$TK_CONFIG_PREFIX%g |
s%@TK_CONFIG_PREFIX@%$TK_CONFIG_PREFIX%g |
3449 |
s%@TK_LIBRARY@%$TK_LIBRARY%g |
s%@TK_LIBRARY@%$TK_LIBRARY%g |
3450 |
s%@TCL_LIBRARY@%$TCL_LIBRARY%g |
s%@TCL_LIBRARY@%$TCL_LIBRARY%g |