[ruby-dev:2872] OPENSTEP for Mach / NeXTSTEP 3.3J patch for ruby1.1b_25
From:
SHIROYAMA Takayuki <psi@...>
Date:
1998-06-15 10:22:25 UTC
List:
ruby-dev #2872
ども、白山@Stellar です。
Ruby1.1b_25 を NeXTSTEP/OPENSTEP for Mach 4.2Jに対応させる
パッチを作成しました。(多分 4.1Jでも稼働すると思いますが、試して
いません)
OPENSTEP for Mach 4.x では NeXTSTEPと違った形式のダイナ
ミックリンクの機構が導入され、また古いNeXTSTEP形式のダイナ
ミックリンクのコードが作成できなくなってしまいました。
このパッチでは
1. いつからかコンパイルできなくなってた(^^;)NeXTSTEP3.3J向けの対応
2. OPENSTEP4.x用のダイナミックリンクコードの追加
3. config.guess, config,sub, configureに対して *-next-openstep4 等を
検出、対応するコードの追加
4. eval.c 6197行目
posix_signal(SIGALRM, catch_timer);
っとなってたのを
signal(SIGALRM, catch_timer);
に修正
をおこなってます。 OPENSTEP for Mach 4.2J for Intelおよび NeXT-
STEP3.3J for Motorolaにてコンパイル、make testのチェックをおこ
なっております。
ただし、NeXTSTEP3.3J(およびそれ以前のOS)では以下の不都合が
あります。
1. make一発で makeできない
おそらく、miniruby、および rubyを作成するところで
ld: multiple definitions of symbol _memcmp
libruby.a(memcmp.o) definition of _memcmp in section (__TEXT,__text)
/lib/libsys_s.a(memcmp.o) definition of absolute _memcmp (value 0x5002942)
っとエラーが出ると思います。これは、libsys_sに memcmpはある
ものの、8bit-cleanでないため代用 memcmpを使おうとしているの
ですが、libsys_s.aに同名の関数がある事から ldがエラーするため
です。対応策としては、手動で
cc -pipe -g -O2 -I. -I/usr/local/include main.o libruby.a -o ruby
-m
っといった感じに、命令の最後に -mを追加して下さい。
2. tcltklibがコンパイルできない
あきらめてください(^^;) どのみち、NeXTには標準でXはついてないし、
NeXTSTEP上で(Xなしで)稼働する tk はないのですから。
---
SHIROYAMA Takayuki : psi@tokyo.stellar.co.jp
-------------------------- openstep4.diff ----------------
----------------------
diff -crN ruby-1.1b9_25.org/config.guess ruby-1.1b9_25/config.guess
*** ruby-1.1b9_25.org/config.guess Thu May 14 14:54:07 1998
--- ruby-1.1b9_25/config.guess Mon Jun 15 13:51:15 1998
***************
*** 783,789 ****
#endif
int version;
version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p')
2>/dev/null`;
! printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
exit (0);
#endif
--- 783,793 ----
#endif
int version;
version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p')
2>/dev/null`;
! if (version < 4)
! printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
! else
! printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
!
exit (0);
#endif
diff -crN ruby-1.1b9_25.org/config.sub ruby-1.1b9_25/config.sub
*** ruby-1.1b9_25.org/config.sub Tue May 12 18:35:57 1998
--- ruby-1.1b9_25/config.sub Mon Jun 15 13:44:14 1998
***************
*** 723,729 ****
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -cygwin32* | -pe* | -psos* | -moss* | -proelf* \
! | -linux* | -bow*)
# Remember, each alternative MUST END IN *, to match a version
number.
;;
-sunos5*)
--- 723,729 ----
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -cygwin32* | -pe* | -psos* | -moss* | -proelf* \
! | -linux* | -bow* | -rhapsody* | -openstep* )
# Remember, each alternative MUST END IN *, to match a version
number.
;;
-sunos5*)
diff -crN ruby-1.1b9_25.org/configure ruby-1.1b9_25/configure
*** ruby-1.1b9_25.org/configure Tue May 26 13:53:54 1998
--- ruby-1.1b9_25/configure Mon Jun 15 13:54:52 1998
***************
*** 16,22 ****
ac_help="$ac_help
--disable-thread never use user-level thread"
ac_help="$ac_help
! --enable-fat-binary build a NeXT Multi Architecture Binary. "
ac_help="$ac_help
--with-dln-a-out use dln_a_out if possible"
ac_help="$ac_help
--- 16,22 ----
ac_help="$ac_help
--disable-thread never use user-level thread"
ac_help="$ac_help
! --enable-fat-binary build a NeXT/Apple Multi Architecture Binary. "
ac_help="$ac_help
--with-dln-a-out use dln_a_out if possible"
ac_help="$ac_help
***************
*** 627,638 ****
echo $ac_n "checking target architecture ""... $ac_c" 1>&6
echo "configure:629: checking target architecture " >&5
! if test "$TARGET_ARCHS" = "" ; then
! if test `/usr/bin/arch` = "m68k" ; then
! TARGET_ARCHS="m68k i486"
! else
! TARGET_ARCHS="m68k `/usr/bin/arch`"
! fi
fi
# /usr/lib/arch_tool -archify_list $TARGET_ARCHS
for archs in $TARGET_ARCHS
--- 627,648 ----
echo $ac_n "checking target architecture ""... $ac_c" 1>&6
echo "configure:629: checking target architecture " >&5
! if "$host_os" = "rhapsody" ; then
! echo -n "Rhapsody: "
!
! if test "$TARGET_ARCHS" = "" ; then
! TARGET_ARCHS="ppc i486"
! fi
! else
! echo -n "NeXTSTEP/OPENSTEP: "
!
! if test "$TARGET_ARCHS" = "" ; then
! if test `/usr/bin/arch` = "m68k" ; then
! TARGET_ARCHS="m68k i486"
! else
! TARGET_ARCHS="m68k `/usr/bin/arch`"
! fi
! fi
fi
# /usr/lib/arch_tool -archify_list $TARGET_ARCHS
for archs in $TARGET_ARCHS
***************
*** 670,676 ****
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:674: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
--- 680,686 ----
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:684: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 699,705 ****
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:703: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
--- 709,715 ----
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:713: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 747,753 ****
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS)
works""... $ac_c" 1>&6
! echo "configure:751: checking whether the C compiler ($CC $CFLAGS
$LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
--- 757,763 ----
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS)
works""... $ac_c" 1>&6
! echo "configure:761: checking whether the C compiler ($CC $CFLAGS
$LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
***************
*** 757,767 ****
cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext <<EOF
! #line 761 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
! if { (eval echo configure:765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
&& test -s conftest; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross
compiler.
if (./conftest; exit) 2>/dev/null; then
--- 767,777 ----
cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext <<EOF
! #line 771 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
! if { (eval echo configure:775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
&& test -s conftest; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross
compiler.
if (./conftest; exit) 2>/dev/null; then
***************
*** 781,792 ****
{ echo "configure: error: installation or configuration problem: C
compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a
cross-compiler""... $ac_c" 1>&6
! echo "configure:785: checking whether the C compiler ($CC $CFLAGS
$LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
! echo "configure:790: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
--- 791,802 ----
{ echo "configure: error: installation or configuration problem: C
compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a
cross-compiler""... $ac_c" 1>&6
! echo "configure:795: checking whether the C compiler ($CC $CFLAGS
$LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
! echo "configure:800: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 795,801 ****
yes;
#endif
EOF
! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:799:
\"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1;
then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
--- 805,811 ----
yes;
#endif
EOF
! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:809:
\"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1;
then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
***************
*** 810,816 ****
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
! echo "configure:814: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
--- 820,826 ----
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
! echo "configure:824: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 838,844 ****
fi
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
! echo "configure:842: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
--- 848,854 ----
fi
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
! echo "configure:852: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
***************
*** 853,865 ****
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
! #line 857 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
--- 863,875 ----
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
! #line 867 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
***************
*** 870,882 ****
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
! #line 874 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
--- 880,892 ----
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
! #line 884 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
***************
*** 900,912 ****
if test $ac_cv_prog_gcc = yes; then
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c"
1>&6
! echo "configure:904: checking whether ${CC-cc} needs -traditional" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set";
then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_pattern="Autoconf.*'x'"
cat > conftest.$ac_ext <<EOF
! #line 910 "configure"
#include "confdefs.h"
#include <sgtty.h>
Autoconf TIOCGETP
--- 910,922 ----
if test $ac_cv_prog_gcc = yes; then
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c"
1>&6
! echo "configure:914: checking whether ${CC-cc} needs -traditional" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set";
then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_pattern="Autoconf.*'x'"
cat > conftest.$ac_ext <<EOF
! #line 920 "configure"
#include "confdefs.h"
#include <sgtty.h>
Autoconf TIOCGETP
***************
*** 924,930 ****
if test $ac_cv_prog_gcc_traditional = no; then
cat > conftest.$ac_ext <<EOF
! #line 928 "configure"
#include "confdefs.h"
#include <termio.h>
Autoconf TCGETA
--- 934,940 ----
if test $ac_cv_prog_gcc_traditional = no; then
cat > conftest.$ac_ext <<EOF
! #line 938 "configure"
#include "confdefs.h"
#include <termio.h>
Autoconf TCGETA
***************
*** 950,956 ****
# Extract the first word of "$ac_prog", so it can be a program name with
args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:954: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
--- 960,966 ----
# Extract the first word of "$ac_prog", so it can be a program name with
args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:964: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 982,988 ****
# Extract the first word of "ranlib", so it can be a program name with
args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:986: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
--- 992,998 ----
# Extract the first word of "ranlib", so it can be a program name with
args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:996: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 1014,1020 ****
# Extract the first word of "$ac_prog", so it can be a program name with
args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1018: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
--- 1024,1030 ----
# Extract the first word of "$ac_prog", so it can be a program name with
args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1028: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 1054,1060 ****
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
! echo "configure:1058: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
--- 1064,1070 ----
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
! echo "configure:1068: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 1104,1110 ****
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
! echo "configure:1108: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" =
set"; then
echo $ac_n "(cached) $ac_c" 1>&6
--- 1114,1120 ----
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
! echo "configure:1118: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" =
set"; then
echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 1134,1150 ****
# checks for UNIX variants that set C preprocessor variables
ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
! echo "configure:1138: checking for minix/config.h" >&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 1143 "configure"
#include "confdefs.h"
#include <minix/config.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
--- 1144,1160 ----
# checks for UNIX variants that set C preprocessor variables
ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
! echo "configure:1148: checking for minix/config.h" >&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 1153 "configure"
#include "confdefs.h"
#include <minix/config.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
***************
*** 1183,1189 ****
echo $ac_n "checking size of int""... $ac_c" 1>&6
! echo "configure:1187: checking size of int" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
--- 1193,1199 ----
echo $ac_n "checking size of int""... $ac_c" 1>&6
! echo "configure:1197: checking size of int" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 1191,1197 ****
{ echo "configure: error: can not run test program while cross
compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
! #line 1195 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
--- 1201,1207 ----
{ echo "configure: error: can not run test program while cross
compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
! #line 1205 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
***************
*** 1202,1208 ****
exit(0);
}
EOF
! if { (eval echo configure:1206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_int=`cat conftestval`
else
--- 1212,1218 ----
exit(0);
}
EOF
! if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_int=`cat conftestval`
else
***************
*** 1222,1228 ****
echo $ac_n "checking size of long""... $ac_c" 1>&6
! echo "configure:1226: checking size of long" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
--- 1232,1238 ----
echo $ac_n "checking size of long""... $ac_c" 1>&6
! echo "configure:1236: checking size of long" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 1230,1236 ****
{ echo "configure: error: can not run test program while cross
compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
! #line 1234 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
--- 1240,1246 ----
{ echo "configure: error: can not run test program while cross
compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
! #line 1244 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
***************
*** 1241,1247 ****
exit(0);
}
EOF
! if { (eval echo configure:1245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_long=`cat conftestval`
else
--- 1251,1257 ----
exit(0);
}
EOF
! if { (eval echo configure:1255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_long=`cat conftestval`
else
***************
*** 1261,1267 ****
echo $ac_n "checking size of void*""... $ac_c" 1>&6
! echo "configure:1265: checking size of void*" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
--- 1271,1277 ----
echo $ac_n "checking size of void*""... $ac_c" 1>&6
! echo "configure:1275: checking size of void*" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 1269,1275 ****
{ echo "configure: error: can not run test program while cross
compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
! #line 1273 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
--- 1279,1285 ----
{ echo "configure: error: can not run test program while cross
compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
! #line 1283 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
***************
*** 1280,1286 ****
exit(0);
}
EOF
! if { (eval echo configure:1284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_voidp=`cat conftestval`
else
--- 1290,1296 ----
exit(0);
}
EOF
! if { (eval echo configure:1294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_voidp=`cat conftestval`
else
***************
*** 1301,1319 ****
echo $ac_n "checking for prototypes""... $ac_c" 1>&6
! echo "configure:1305: checking for prototypes" >&5
if eval "test \"`echo '$''{'rb_cv_have_prototypes'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1310 "configure"
#include "confdefs.h"
int foo(int x) { return 0; }
int main() {
return foo(10);
; return 0; }
EOF
! if { (eval echo configure:1317: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_have_prototypes=yes
else
--- 1311,1329 ----
echo $ac_n "checking for prototypes""... $ac_c" 1>&6
! echo "configure:1315: checking for prototypes" >&5
if eval "test \"`echo '$''{'rb_cv_have_prototypes'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1320 "configure"
#include "confdefs.h"
int foo(int x) { return 0; }
int main() {
return foo(10);
; return 0; }
EOF
! if { (eval echo configure:1327: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_have_prototypes=yes
else
***************
*** 1334,1345 ****
fi
echo $ac_n "checking for variable length prototypes and stdarg.h""...
$ac_c" 1>&6
! echo "configure:1338: checking for variable length prototypes and
stdarg.h" >&5
if eval "test \"`echo '$''{'rb_cv_stdarg'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1343 "configure"
#include "confdefs.h"
#include <stdarg.h>
--- 1344,1355 ----
fi
echo $ac_n "checking for variable length prototypes and stdarg.h""...
$ac_c" 1>&6
! echo "configure:1348: checking for variable length prototypes and
stdarg.h" >&5
if eval "test \"`echo '$''{'rb_cv_stdarg'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1353 "configure"
#include "confdefs.h"
#include <stdarg.h>
***************
*** 1356,1362 ****
return foo(10, "", 3.14);
; return 0; }
EOF
! if { (eval echo configure:1360: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_stdarg=yes
else
--- 1366,1372 ----
return foo(10, "", 3.14);
; return 0; }
EOF
! if { (eval echo configure:1370: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_stdarg=yes
else
***************
*** 1377,1395 ****
fi
echo $ac_n "checking for gcc attribute noreturn""... $ac_c" 1>&6
! echo "configure:1381: checking for gcc attribute noreturn" >&5
if eval "test \"`echo '$''{'rb_cv_have_attr_noreturn'+set}'`\" = set";
then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1386 "configure"
#include "confdefs.h"
void exit(int x) __attribute__ ((noreturn));
int main() {
; return 0; }
EOF
! if { (eval echo configure:1393: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_have_attr_noreturn=yes
else
--- 1387,1405 ----
fi
echo $ac_n "checking for gcc attribute noreturn""... $ac_c" 1>&6
! echo "configure:1391: checking for gcc attribute noreturn" >&5
if eval "test \"`echo '$''{'rb_cv_have_attr_noreturn'+set}'`\" = set";
then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1396 "configure"
#include "confdefs.h"
void exit(int x) __attribute__ ((noreturn));
int main() {
; return 0; }
EOF
! if { (eval echo configure:1403: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_have_attr_noreturn=yes
else
***************
*** 1411,1422 ****
case "$host_os" in
nextstep*) ;;
human*) ;;
beos*) ;;
*) LIBS="-lm $LIBS";;
esac
echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
! echo "configure:1420: checking for crypt in -lcrypt" >&5
ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
--- 1421,1434 ----
case "$host_os" in
nextstep*) ;;
+ openstep*) ;;
+ rhapsody*) ;;
human*) ;;
beos*) ;;
*) LIBS="-lm $LIBS";;
esac
echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
! echo "configure:1432: checking for crypt in -lcrypt" >&5
ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 1424,1430 ****
ac_save_LIBS="$LIBS"
LIBS="-lcrypt $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 1428 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
--- 1436,1442 ----
ac_save_LIBS="$LIBS"
LIBS="-lcrypt $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 1440 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
***************
*** 1435,1441 ****
crypt()
; return 0; }
EOF
! if { (eval echo configure:1439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
--- 1447,1453 ----
crypt()
; return 0; }
EOF
! if { (eval echo configure:1451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
***************
*** 1463,1469 ****
fi
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
! echo "configure:1467: checking for dlopen in -ldl" >&5
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
--- 1475,1481 ----
fi
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
! echo "configure:1479: checking for dlopen in -ldl" >&5
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 1471,1477 ****
ac_save_LIBS="$LIBS"
LIBS="-ldl $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 1475 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
--- 1483,1489 ----
ac_save_LIBS="$LIBS"
LIBS="-ldl $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 1487 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
***************
*** 1482,1488 ****
dlopen()
; return 0; }
EOF
! if { (eval echo configure:1486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
--- 1494,1500 ----
dlopen()
; return 0; }
EOF
! if { (eval echo configure:1498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
***************
*** 1510,1516 ****
fi
# Dynamic linking for SunOS/Solaris and SYSV
echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
! echo "configure:1514: checking for shl_load in -ldld" >&5
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
--- 1522,1528 ----
fi
# Dynamic linking for SunOS/Solaris and SYSV
echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
! echo "configure:1526: checking for shl_load in -ldld" >&5
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 1518,1524 ****
ac_save_LIBS="$LIBS"
LIBS="-ldld $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 1522 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
--- 1530,1536 ----
ac_save_LIBS="$LIBS"
LIBS="-ldld $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 1534 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
***************
*** 1529,1535 ****
shl_load()
; return 0; }
EOF
! if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
--- 1541,1547 ----
shl_load()
; return 0; }
EOF
! if { (eval echo configure:1545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
***************
*** 1562,1573 ****
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
! echo "configure:1566: checking for $ac_hdr that defines DIR" >&5
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set";
then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1571 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_hdr>
--- 1574,1585 ----
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
! echo "configure:1578: checking for $ac_hdr that defines DIR" >&5
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set";
then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1583 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_hdr>
***************
*** 1575,1581 ****
DIR *dirp = 0;
; return 0; }
EOF
! if { (eval echo configure:1579: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
eval "ac_cv_header_dirent_$ac_safe=yes"
else
--- 1587,1593 ----
DIR *dirp = 0;
; return 0; }
EOF
! if { (eval echo configure:1591: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
eval "ac_cv_header_dirent_$ac_safe=yes"
else
***************
*** 1600,1606 ****
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
! echo "configure:1604: checking for opendir in -ldir" >&5
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
--- 1612,1618 ----
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
! echo "configure:1616: checking for opendir in -ldir" >&5
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 1608,1614 ****
ac_save_LIBS="$LIBS"
LIBS="-ldir $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 1612 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
--- 1620,1626 ----
ac_save_LIBS="$LIBS"
LIBS="-ldir $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 1624 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
***************
*** 1619,1625 ****
opendir()
; return 0; }
EOF
! if { (eval echo configure:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
--- 1631,1637 ----
opendir()
; return 0; }
EOF
! if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
***************
*** 1641,1647 ****
else
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
! echo "configure:1645: checking for opendir in -lx" >&5
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
--- 1653,1659 ----
else
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
! echo "configure:1657: checking for opendir in -lx" >&5
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 1649,1655 ****
ac_save_LIBS="$LIBS"
LIBS="-lx $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 1653 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
--- 1661,1667 ----
ac_save_LIBS="$LIBS"
LIBS="-lx $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 1665 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
***************
*** 1660,1666 ****
opendir()
; return 0; }
EOF
! if { (eval echo configure:1664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
--- 1672,1678 ----
opendir()
; return 0; }
EOF
! if { (eval echo configure:1676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
***************
*** 1683,1694 ****
fi
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
! echo "configure:1687: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1692 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
--- 1695,1706 ----
fi
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
! echo "configure:1699: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1704 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
***************
*** 1696,1702 ****
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
--- 1708,1714 ----
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
***************
*** 1713,1719 ****
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
! #line 1717 "configure"
#include "confdefs.h"
#include <string.h>
EOF
--- 1725,1731 ----
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
! #line 1729 "configure"
#include "confdefs.h"
#include <string.h>
EOF
***************
*** 1731,1737 ****
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
! #line 1735 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
--- 1743,1749 ----
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
! #line 1747 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
***************
*** 1752,1758 ****
:
else
cat > conftest.$ac_ext <<EOF
! #line 1756 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
--- 1764,1770 ----
:
else
cat > conftest.$ac_ext <<EOF
! #line 1768 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
***************
*** 1763,1769 ****
exit (0); }
EOF
! if { (eval echo configure:1767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
:
else
--- 1775,1781 ----
exit (0); }
EOF
! if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
:
else
***************
*** 1792,1808 ****
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! echo "configure:1796: 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 1801 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
--- 1804,1820 ----
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! echo "configure:1808: 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 1813 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
***************
*** 1830,1841 ****
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
! echo "configure:1834: checking for uid_t in sys/types.h" >&5
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1839 "configure"
#include "confdefs.h"
#include <sys/types.h>
EOF
--- 1842,1853 ----
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
! echo "configure:1846: checking for uid_t in sys/types.h" >&5
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1851 "configure"
#include "confdefs.h"
#include <sys/types.h>
EOF
***************
*** 1864,1875 ****
fi
echo $ac_n "checking for size_t""... $ac_c" 1>&6
! echo "configure:1868: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1873 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
--- 1876,1887 ----
fi
echo $ac_n "checking for size_t""... $ac_c" 1>&6
! echo "configure:1880: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1885 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
***************
*** 1897,1908 ****
fi
echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
! echo "configure:1901: checking for st_blksize in struct stat" >&5
if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1906 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
--- 1909,1920 ----
fi
echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
! echo "configure:1913: checking for st_blksize in struct stat" >&5
if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1918 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
***************
*** 1910,1916 ****
struct stat s; s.st_blksize;
; return 0; }
EOF
! if { (eval echo configure:1914: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
ac_cv_struct_st_blksize=yes
else
--- 1922,1928 ----
struct stat s; s.st_blksize;
; return 0; }
EOF
! if { (eval echo configure:1926: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
ac_cv_struct_st_blksize=yes
else
***************
*** 1932,1943 ****
save_LIBOJBS="$LIBOBJS"
echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
! echo "configure:1936: checking for st_blocks in struct stat" >&5
if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1941 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
--- 1944,1955 ----
save_LIBOJBS="$LIBOBJS"
echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
! echo "configure:1948: checking for st_blocks in struct stat" >&5
if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1953 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
***************
*** 1945,1951 ****
struct stat s; s.st_blocks;
; return 0; }
EOF
! if { (eval echo configure:1949: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
ac_cv_struct_st_blocks=yes
else
--- 1957,1963 ----
struct stat s; s.st_blocks;
; return 0; }
EOF
! if { (eval echo configure:1961: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
ac_cv_struct_st_blocks=yes
else
***************
*** 1969,1980 ****
LIBOBJS="$save_LIBOBJS"
echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
! echo "configure:1973: checking for st_rdev in struct stat" >&5
if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1978 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
--- 1981,1992 ----
LIBOBJS="$save_LIBOBJS"
echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
! echo "configure:1985: checking for st_rdev in struct stat" >&5
if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1990 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
***************
*** 1982,1988 ****
struct stat s; s.st_rdev;
; return 0; }
EOF
! if { (eval echo configure:1986: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
ac_cv_struct_st_rdev=yes
else
--- 1994,2000 ----
struct stat s; s.st_rdev;
; return 0; }
EOF
! if { (eval echo configure:1998: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
ac_cv_struct_st_rdev=yes
else
***************
*** 2004,2010 ****
echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
! echo "configure:2008: checking type of array argument to getgroups" >&5
if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
--- 2016,2022 ----
echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
! echo "configure:2020: checking type of array argument to getgroups" >&5
if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 2012,2018 ****
ac_cv_type_getgroups=cross
else
cat > conftest.$ac_ext <<EOF
! #line 2016 "configure"
#include "confdefs.h"
/* Thanks to Mike Rendell for this test. */
--- 2024,2030 ----
ac_cv_type_getgroups=cross
else
cat > conftest.$ac_ext <<EOF
! #line 2028 "configure"
#include "confdefs.h"
/* Thanks to Mike Rendell for this test. */
***************
*** 2037,2043 ****
}
EOF
! if { (eval echo configure:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_type_getgroups=gid_t
else
--- 2049,2055 ----
}
EOF
! if { (eval echo configure:2053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_type_getgroups=gid_t
else
***************
*** 2051,2057 ****
if test $ac_cv_type_getgroups = cross; then
cat > conftest.$ac_ext <<EOF
! #line 2055 "configure"
#include "confdefs.h"
#include <unistd.h>
EOF
--- 2063,2069 ----
if test $ac_cv_type_getgroups = cross; then
cat > conftest.$ac_ext <<EOF
! #line 2067 "configure"
#include "confdefs.h"
#include <unistd.h>
EOF
***************
*** 2075,2086 ****
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
! echo "configure:2079: checking return type of signal handlers" >&5
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2084 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
--- 2087,2098 ----
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
! echo "configure:2091: checking return type of signal handlers" >&5
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2096 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
***************
*** 2097,2103 ****
int i;
; return 0; }
EOF
! if { (eval echo configure:2101: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
ac_cv_type_signal=void
else
--- 2109,2115 ----
int i;
; return 0; }
EOF
! if { (eval echo configure:2113: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
ac_cv_type_signal=void
else
***************
*** 2118,2136 ****
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments. Useless!
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
! echo "configure:2122: checking for working alloca.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2127 "configure"
#include "confdefs.h"
#include <alloca.h>
int main() {
char *p = alloca(2 * sizeof(int));
; return 0; }
EOF
! if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
ac_cv_header_alloca_h=yes
else
--- 2130,2148 ----
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments. Useless!
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
! echo "configure:2134: checking for working alloca.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2139 "configure"
#include "confdefs.h"
#include <alloca.h>
int main() {
char *p = alloca(2 * sizeof(int));
; return 0; }
EOF
! if { (eval echo configure:2146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
ac_cv_header_alloca_h=yes
else
***************
*** 2151,2162 ****
fi
echo $ac_n "checking for alloca""... $ac_c" 1>&6
! echo "configure:2155: checking for alloca" >&5
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2160 "configure"
#include "confdefs.h"
#ifdef __GNUC__
--- 2163,2174 ----
fi
echo $ac_n "checking for alloca""... $ac_c" 1>&6
! echo "configure:2167: checking for alloca" >&5
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2172 "configure"
#include "confdefs.h"
#ifdef __GNUC__
***************
*** 2179,2185 ****
char *p = (char *) alloca(1);
; return 0; }
EOF
! if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
ac_cv_func_alloca_works=yes
else
--- 2191,2197 ----
char *p = (char *) alloca(1);
; return 0; }
EOF
! if { (eval echo configure:2195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
ac_cv_func_alloca_works=yes
else
***************
*** 2211,2222 ****
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
! echo "configure:2215: checking whether alloca needs Cray hooks" >&5
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2220 "configure"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
webecray
--- 2223,2234 ----
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
! echo "configure:2227: checking whether alloca needs Cray hooks" >&5
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2232 "configure"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
webecray
***************
*** 2241,2252 ****
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:2245: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2250 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
--- 2253,2264 ----
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:2257: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2262 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
***************
*** 2269,2275 ****
; return 0; }
EOF
! if { (eval echo configure:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
--- 2281,2287 ----
; return 0; }
EOF
! if { (eval echo configure:2285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
***************
*** 2296,2302 ****
fi
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
! echo "configure:2300: checking stack direction for C alloca" >&5
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
--- 2308,2314 ----
fi
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
! echo "configure:2312: checking stack direction for C alloca" >&5
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 2304,2310 ****
ac_cv_c_stack_direction=0
else
cat > conftest.$ac_ext <<EOF
! #line 2308 "configure"
#include "confdefs.h"
find_stack_direction ()
{
--- 2316,2322 ----
ac_cv_c_stack_direction=0
else
cat > conftest.$ac_ext <<EOF
! #line 2320 "configure"
#include "confdefs.h"
find_stack_direction ()
{
***************
*** 2323,2329 ****
exit (find_stack_direction() < 0);
}
EOF
! if { (eval echo configure:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_c_stack_direction=1
else
--- 2335,2341 ----
exit (find_stack_direction() < 0);
}
EOF
! if { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_c_stack_direction=1
else
***************
*** 2345,2356 ****
fi
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
! echo "configure:2349: checking for pid_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2354 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
--- 2357,2368 ----
fi
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
! echo "configure:2361: checking for pid_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2366 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
***************
*** 2379,2395 ****
ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
! echo "configure:2383: checking for vfork.h" >&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 2388 "configure"
#include "confdefs.h"
#include <vfork.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
--- 2391,2407 ----
ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
! echo "configure:2395: checking for vfork.h" >&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 2400 "configure"
#include "confdefs.h"
#include <vfork.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
***************
*** 2414,2431 ****
fi
echo $ac_n "checking for working vfork""... $ac_c" 1>&6
! echo "configure:2418: checking for working vfork" >&5
if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
echo $ac_n "checking for vfork""... $ac_c" 1>&6
! echo "configure:2424: checking for vfork" >&5
if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2429 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vfork(); below. */
--- 2426,2443 ----
fi
echo $ac_n "checking for working vfork""... $ac_c" 1>&6
! echo "configure:2430: checking for working vfork" >&5
if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
echo $ac_n "checking for vfork""... $ac_c" 1>&6
! echo "configure:2436: checking for vfork" >&5
if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2441 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vfork(); below. */
***************
*** 2448,2454 ****
; return 0; }
EOF
! if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_vfork=yes"
else
--- 2460,2466 ----
; return 0; }
EOF
! if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_vfork=yes"
else
***************
*** 2469,2475 ****
else
cat > conftest.$ac_ext <<EOF
! #line 2473 "configure"
#include "confdefs.h"
/* Thanks to Paul Eggert for this test. */
#include <stdio.h>
--- 2481,2487 ----
else
cat > conftest.$ac_ext <<EOF
! #line 2485 "configure"
#include "confdefs.h"
/* Thanks to Paul Eggert for this test. */
#include <stdio.h>
***************
*** 2564,2570 ****
}
}
EOF
! if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_func_vfork_works=yes
else
--- 2576,2582 ----
}
}
EOF
! if { (eval echo configure:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_func_vfork_works=yes
else
***************
*** 2587,2593 ****
fi
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
! echo "configure:2591: checking for 8-bit clean memcmp" >&5
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
--- 2599,2605 ----
fi
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
! echo "configure:2603: checking for 8-bit clean memcmp" >&5
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 2595,2601 ****
ac_cv_func_memcmp_clean=no
else
cat > conftest.$ac_ext <<EOF
! #line 2599 "configure"
#include "confdefs.h"
main()
--- 2607,2613 ----
ac_cv_func_memcmp_clean=no
else
cat > conftest.$ac_ext <<EOF
! #line 2611 "configure"
#include "confdefs.h"
main()
***************
*** 2605,2611 ****
}
EOF
! if { (eval echo configure:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_func_memcmp_clean=yes
else
--- 2617,2623 ----
}
EOF
! if { (eval echo configure:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_func_memcmp_clean=yes
else
***************
*** 2626,2637 ****
strchr strstr strtoul strdup crypt flock
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:2630: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2635 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
--- 2638,2649 ----
strchr strstr strtoul strdup crypt flock
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:2642: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2647 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
***************
*** 2654,2660 ****
; return 0; }
EOF
! if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
--- 2666,2672 ----
; return 0; }
EOF
! if { (eval echo configure:2670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
***************
*** 2687,2698 ****
dlopen sigprocmask sigaction _setjmp setpgrp
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:2691: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2696 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
--- 2699,2710 ----
dlopen sigprocmask sigaction _setjmp setpgrp
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:2703: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2708 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
***************
*** 2715,2721 ****
; return 0; }
EOF
! if { (eval echo configure:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
--- 2727,2733 ----
; return 0; }
EOF
! if { (eval echo configure:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
***************
*** 2741,2752 ****
if test "$ac_cv_func_strftime" = no; then
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""...
$ac_c" 1>&6
! echo "configure:2745: checking whether struct tm is in sys/time.h or
time.h" >&5
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2750 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <time.h>
--- 2753,2764 ----
if test "$ac_cv_func_strftime" = no; then
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""...
$ac_c" 1>&6
! echo "configure:2757: checking whether struct tm is in sys/time.h or
time.h" >&5
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2762 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <time.h>
***************
*** 2754,2760 ****
struct tm *tp; tp->tm_sec;
; return 0; }
EOF
! if { (eval echo configure:2758: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
ac_cv_struct_tm=time.h
else
--- 2766,2772 ----
struct tm *tp; tp->tm_sec;
; return 0; }
EOF
! if { (eval echo configure:2770: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
ac_cv_struct_tm=time.h
else
***************
*** 2775,2786 ****
fi
echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
! echo "configure:2779: checking for tm_zone in struct tm" >&5
if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2784 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_cv_struct_tm>
--- 2787,2798 ----
fi
echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
! echo "configure:2791: checking for tm_zone in struct tm" >&5
if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2796 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_cv_struct_tm>
***************
*** 2788,2794 ****
struct tm tm; tm.tm_zone;
; return 0; }
EOF
! if { (eval echo configure:2792: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
ac_cv_struct_tm_zone=yes
else
--- 2800,2806 ----
struct tm tm; tm.tm_zone;
; return 0; }
EOF
! if { (eval echo configure:2804: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
ac_cv_struct_tm_zone=yes
else
***************
*** 2808,2819 ****
else
echo $ac_n "checking for tzname""... $ac_c" 1>&6
! echo "configure:2812: checking for tzname" >&5
if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2817 "configure"
#include "confdefs.h"
#include <time.h>
#ifndef tzname /* For SGI. */
--- 2820,2831 ----
else
echo $ac_n "checking for tzname""... $ac_c" 1>&6
! echo "configure:2824: checking for tzname" >&5
if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2829 "configure"
#include "confdefs.h"
#include <time.h>
#ifndef tzname /* For SGI. */
***************
*** 2823,2829 ****
atoi(*tzname);
; return 0; }
EOF
! if { (eval echo configure:2827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
ac_cv_var_tzname=yes
else
--- 2835,2841 ----
atoi(*tzname);
; return 0; }
EOF
! if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
ac_cv_var_tzname=yes
else
***************
*** 2845,2858 ****
fi
cat > conftest.$ac_ext <<EOF
! #line 2849 "configure"
#include "confdefs.h"
int main() {
extern int daylight; int i = daylight;
; return 0; }
EOF
! if { (eval echo configure:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define HAVE_DAYLIGHT 1
--- 2857,2870 ----
fi
cat > conftest.$ac_ext <<EOF
! #line 2861 "configure"
#include "confdefs.h"
int main() {
extern int daylight; int i = daylight;
; return 0; }
EOF
! if { (eval echo configure:2868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define HAVE_DAYLIGHT 1
***************
*** 2872,2878 ****
else
echo $ac_n "checking for BSD signal semantics""... $ac_c" 1>&6
! echo "configure:2876: checking for BSD signal semantics" >&5
if eval "test \"`echo '$''{'rb_cv_bsd_signal'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
--- 2884,2890 ----
else
echo $ac_n "checking for BSD signal semantics""... $ac_c" 1>&6
! echo "configure:2888: checking for BSD signal semantics" >&5
if eval "test \"`echo '$''{'rb_cv_bsd_signal'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 2880,2886 ****
{ echo "configure: error: can not run test program while cross
compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
! #line 2884 "configure"
#include "confdefs.h"
#include <stdio.h>
--- 2892,2898 ----
{ echo "configure: error: can not run test program while cross
compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
! #line 2896 "configure"
#include "confdefs.h"
#include <stdio.h>
***************
*** 2902,2908 ****
}
EOF
! if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
rb_cv_bsd_signal=yes
else
--- 2914,2920 ----
}
EOF
! if { (eval echo configure:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
rb_cv_bsd_signal=yes
else
***************
*** 2936,2954 ****
else
echo $ac_n "checking whether getpgrp() has arg""... $ac_c" 1>&6
! echo "configure:2940: checking whether getpgrp() has arg" >&5
if eval "test \"`echo '$''{'rb_cv_bsdgetpgrp'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2945 "configure"
#include "confdefs.h"
#include <unistd.h>
int main() {
getpgrp(0);
; return 0; }
EOF
! if { (eval echo configure:2952: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_bsdgetpgrp=yes
else
--- 2948,2966 ----
else
echo $ac_n "checking whether getpgrp() has arg""... $ac_c" 1>&6
! echo "configure:2952: checking whether getpgrp() has arg" >&5
if eval "test \"`echo '$''{'rb_cv_bsdgetpgrp'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2957 "configure"
#include "confdefs.h"
#include <unistd.h>
int main() {
getpgrp(0);
; return 0; }
EOF
! if { (eval echo configure:2964: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_bsdgetpgrp=yes
else
***************
*** 2969,2987 ****
fi
echo $ac_n "checking whether setpgrp() has args""... $ac_c" 1>&6
! echo "configure:2973: checking whether setpgrp() has args" >&5
if eval "test \"`echo '$''{'rb_cv_bsdsetpgrp'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2978 "configure"
#include "confdefs.h"
#include <unistd.h>
int main() {
setpgrp(1, 1);
; return 0; }
EOF
! if { (eval echo configure:2985: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_bsdsetpgrp=yes
else
--- 2981,2999 ----
fi
echo $ac_n "checking whether setpgrp() has args""... $ac_c" 1>&6
! echo "configure:2985: checking whether setpgrp() has args" >&5
if eval "test \"`echo '$''{'rb_cv_bsdsetpgrp'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2990 "configure"
#include "confdefs.h"
#include <unistd.h>
int main() {
setpgrp(1, 1);
; return 0; }
EOF
! if { (eval echo configure:2997: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_bsdsetpgrp=yes
else
***************
*** 3003,3016 ****
fi
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
! echo "configure:3007: checking whether byte ordering is bigendian" >&5
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
cat > conftest.$ac_ext <<EOF
! #line 3014 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
--- 3015,3028 ----
fi
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
! echo "configure:3019: checking whether byte ordering is bigendian" >&5
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
cat > conftest.$ac_ext <<EOF
! #line 3026 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
***************
*** 3021,3031 ****
#endif
; return 0; }
EOF
! if { (eval echo configure:3025: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
# It does; now see whether it defined to BIG_ENDIAN or not.
cat > conftest.$ac_ext <<EOF
! #line 3029 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
--- 3033,3043 ----
#endif
; return 0; }
EOF
! if { (eval echo configure:3037: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
# It does; now see whether it defined to BIG_ENDIAN or not.
cat > conftest.$ac_ext <<EOF
! #line 3041 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
***************
*** 3036,3042 ****
#endif
; return 0; }
EOF
! if { (eval echo configure:3040: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
ac_cv_c_bigendian=yes
else
--- 3048,3054 ----
#endif
; return 0; }
EOF
! if { (eval echo configure:3052: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
ac_cv_c_bigendian=yes
else
***************
*** 3056,3062 ****
{ echo "configure: error: can not run test program while cross
compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
! #line 3060 "configure"
#include "confdefs.h"
main () {
/* Are we little or big endian? From Harbison&Steele. */
--- 3068,3074 ----
{ echo "configure: error: can not run test program while cross
compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
! #line 3072 "configure"
#include "confdefs.h"
main () {
/* Are we little or big endian? From Harbison&Steele. */
***************
*** 3069,3075 ****
exit (u.c[sizeof (long) - 1] == 1);
}
EOF
! if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_c_bigendian=no
else
--- 3081,3087 ----
exit (u.c[sizeof (long) - 1] == 1);
}
EOF
! if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_c_bigendian=no
else
***************
*** 3093,3106 ****
fi
echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
! echo "configure:3097: checking whether char is unsigned" >&5
if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$GCC" = yes; then
# GCC predefines this symbol on systems where it applies.
cat > conftest.$ac_ext <<EOF
! #line 3104 "configure"
#include "confdefs.h"
#ifdef __CHAR_UNSIGNED__
yes
--- 3105,3118 ----
fi
echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
! echo "configure:3109: checking whether char is unsigned" >&5
if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$GCC" = yes; then
# GCC predefines this symbol on systems where it applies.
cat > conftest.$ac_ext <<EOF
! #line 3116 "configure"
#include "confdefs.h"
#ifdef __CHAR_UNSIGNED__
yes
***************
*** 3122,3128 ****
{ echo "configure: error: can not run test program while cross
compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
! #line 3126 "configure"
#include "confdefs.h"
/* volatile prevents gcc2 from optimizing the test away on sparcs. */
#if !defined(__STDC__) || __STDC__ != 1
--- 3134,3140 ----
{ echo "configure: error: can not run test program while cross
compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
! #line 3138 "configure"
#include "confdefs.h"
/* volatile prevents gcc2 from optimizing the test away on sparcs. */
#if !defined(__STDC__) || __STDC__ != 1
***************
*** 3132,3138 ****
volatile char c = 255; exit(c < 0);
}
EOF
! if { (eval echo configure:3136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_c_char_unsigned=yes
else
--- 3144,3150 ----
volatile char c = 255; exit(c < 0);
}
EOF
! if { (eval echo configure:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_c_char_unsigned=yes
else
***************
*** 3157,3175 ****
echo $ac_n "checking count field in FILE structures""... $ac_c" 1>&6
! echo "configure:3161: checking count field in FILE structures" >&5
if eval "test \"`echo '$''{'rb_cv_fcnt'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 3166 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
FILE *f = stdin; f->_cnt = 0;
; return 0; }
EOF
! if { (eval echo configure:3173: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_fcnt="_cnt"
else
--- 3169,3187 ----
echo $ac_n "checking count field in FILE structures""... $ac_c" 1>&6
! echo "configure:3173: checking count field in FILE structures" >&5
if eval "test \"`echo '$''{'rb_cv_fcnt'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 3178 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
FILE *f = stdin; f->_cnt = 0;
; return 0; }
EOF
! if { (eval echo configure:3185: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_fcnt="_cnt"
else
***************
*** 3179,3192 ****
rm -f conftest*
if test "$rb_cv_fcnt" = ""; then
cat > conftest.$ac_ext <<EOF
! #line 3183 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
FILE *f = stdin; f->__cnt = 0;
; return 0; }
EOF
! if { (eval echo configure:3190: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_fcnt="__cnt"
else
--- 3191,3204 ----
rm -f conftest*
if test "$rb_cv_fcnt" = ""; then
cat > conftest.$ac_ext <<EOF
! #line 3195 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
FILE *f = stdin; f->__cnt = 0;
; return 0; }
EOF
! if { (eval echo configure:3202: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_fcnt="__cnt"
else
***************
*** 3197,3210 ****
fi
if test "$rb_cv_fcnt" = ""; then
cat > conftest.$ac_ext <<EOF
! #line 3201 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
FILE *f = stdin; f->_r = 0;
; return 0; }
EOF
! if { (eval echo configure:3208: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_fcnt="_r"
else
--- 3209,3222 ----
fi
if test "$rb_cv_fcnt" = ""; then
cat > conftest.$ac_ext <<EOF
! #line 3213 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
FILE *f = stdin; f->_r = 0;
; return 0; }
EOF
! if { (eval echo configure:3220: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_fcnt="_r"
else
***************
*** 3215,3228 ****
fi
if test "$rb_cv_fcnt" = ""; then
cat > conftest.$ac_ext <<EOF
! #line 3219 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
FILE *f = stdin; f->readCount = 0;
; return 0; }
EOF
! if { (eval echo configure:3226: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_fcnt="readCount"
else
--- 3227,3240 ----
fi
if test "$rb_cv_fcnt" = ""; then
cat > conftest.$ac_ext <<EOF
! #line 3231 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
FILE *f = stdin; f->readCount = 0;
; return 0; }
EOF
! if { (eval echo configure:3238: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_fcnt="readCount"
else
***************
*** 3247,3255 ****
if test "$ac_cv_func_getpwent" = yes; then
echo $ac_n "checking struct passwd""... $ac_c" 1>&6
! echo "configure:3251: checking struct passwd" >&5
cat > conftest.$ac_ext <<EOF
! #line 3253 "configure"
#include "confdefs.h"
#include <pwd.h>
EOF
--- 3259,3267 ----
if test "$ac_cv_func_getpwent" = yes; then
echo $ac_n "checking struct passwd""... $ac_c" 1>&6
! echo "configure:3263: checking struct passwd" >&5
cat > conftest.$ac_ext <<EOF
! #line 3265 "configure"
#include "confdefs.h"
#include <pwd.h>
EOF
***************
*** 3264,3270 ****
rm -f conftest*
cat > conftest.$ac_ext <<EOF
! #line 3268 "configure"
#include "confdefs.h"
#include <pwd.h>
EOF
--- 3276,3282 ----
rm -f conftest*
cat > conftest.$ac_ext <<EOF
! #line 3280 "configure"
#include "confdefs.h"
#include <pwd.h>
EOF
***************
*** 3279,3285 ****
rm -f conftest*
cat > conftest.$ac_ext <<EOF
! #line 3283 "configure"
#include "confdefs.h"
#include <pwd.h>
EOF
--- 3291,3297 ----
rm -f conftest*
cat > conftest.$ac_ext <<EOF
! #line 3295 "configure"
#include "confdefs.h"
#include <pwd.h>
EOF
***************
*** 3294,3300 ****
rm -f conftest*
cat > conftest.$ac_ext <<EOF
! #line 3298 "configure"
#include "confdefs.h"
#include <pwd.h>
EOF
--- 3306,3312 ----
rm -f conftest*
cat > conftest.$ac_ext <<EOF
! #line 3310 "configure"
#include "confdefs.h"
#include <pwd.h>
EOF
***************
*** 3309,3315 ****
rm -f conftest*
cat > conftest.$ac_ext <<EOF
! #line 3313 "configure"
#include "confdefs.h"
#include <pwd.h>
EOF
--- 3321,3327 ----
rm -f conftest*
cat > conftest.$ac_ext <<EOF
! #line 3325 "configure"
#include "confdefs.h"
#include <pwd.h>
EOF
***************
*** 3324,3330 ****
rm -f conftest*
cat > conftest.$ac_ext <<EOF
! #line 3328 "configure"
#include "confdefs.h"
#include <pwd.h>
EOF
--- 3336,3342 ----
rm -f conftest*
cat > conftest.$ac_ext <<EOF
! #line 3340 "configure"
#include "confdefs.h"
#include <pwd.h>
EOF
***************
*** 3339,3345 ****
rm -f conftest*
cat > conftest.$ac_ext <<EOF
! #line 3343 "configure"
#include "confdefs.h"
#include <pwd.h>
EOF
--- 3351,3357 ----
rm -f conftest*
cat > conftest.$ac_ext <<EOF
! #line 3355 "configure"
#include "confdefs.h"
#include <pwd.h>
EOF
***************
*** 3372,3378 ****
case "$host_os" in
linux*)
echo $ac_n "checking whether ELF binaries are produced""... $ac_c" 1>&6
! echo "configure:3376: checking whether ELF binaries are produced" >&5
if eval "test \"`echo '$''{'rb_cv_linux_elf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
--- 3384,3390 ----
case "$host_os" in
linux*)
echo $ac_n "checking whether ELF binaries are produced""... $ac_c" 1>&6
! echo "configure:3388: checking whether ELF binaries are produced" >&5
if eval "test \"`echo '$''{'rb_cv_linux_elf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 3380,3386 ****
:
else
cat > conftest.$ac_ext <<EOF
! #line 3384 "configure"
#include "confdefs.h"
/* Test for whether ELF binaries are produced */
--- 3392,3398 ----
:
else
cat > conftest.$ac_ext <<EOF
! #line 3396 "configure"
#include "confdefs.h"
/* Test for whether ELF binaries are produced */
***************
*** 3400,3406 ****
}
EOF
! if { (eval echo configure:3404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
rb_cv_linux_elf=yes
else
--- 3412,3418 ----
}
EOF
! if { (eval echo configure:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
rb_cv_linux_elf=yes
else
***************
*** 3430,3439 ****
if test "$with_dln_a_out" != yes; then
rb_cv_dlopen=unknown
echo $ac_n "checking whether OS depend dynamic link works""... $ac_c"
1>&6
! echo "configure:3434: checking whether OS depend dynamic link works" >&5
if test "$GCC" = yes; then
case "$host_os" in
nextstep*) ;;
human*) ;;
*) CCDLFLAGS=-fpic;;
esac
--- 3442,3453 ----
if test "$with_dln_a_out" != yes; then
rb_cv_dlopen=unknown
echo $ac_n "checking whether OS depend dynamic link works""... $ac_c"
1>&6
! echo "configure:3446: checking whether OS depend dynamic link works" >&5
if test "$GCC" = yes; then
case "$host_os" in
nextstep*) ;;
+ openstep*) ;;
+ rhapsody*) ;;
human*) ;;
*) CCDLFLAGS=-fpic;;
esac
***************
*** 3474,3479 ****
--- 3488,3501 ----
LDFLAGS="-u libsys_s"
DLDFLAGS="$ARCH_FLAG"
rb_cv_dlopen=yes ;;
+ openstep*) LDSHARED='cc -dynamic -bundle -undefined suppress'
+ LDFLAGS=""
+ DLDFLAGS="$ARCH_FLAG"
+ rb_cv_dlopen=yes ;;
+ rhapsody*) LDSHARED='cc -dynamic -bundle -undefined suppress'
+ LDFLAGS=""
+ DLDFLAGS="$ARCH_FLAG"
+ rb_cv_dlopen=yes ;;
aix*) LDSHARED='../../miniruby ../aix_ld.rb $(TARGET)'
rb_cv_dlopen=yes ;;
human*) DLDFLAGS=''
***************
*** 3498,3510 ****
if test "$ac_cv_header_a_out_h" = yes; then
if test "$with_dln_a_out" = yes || test "$rb_cv_dlopen" = unknown; then
echo $ac_n "checking whether matz's dln works""... $ac_c" 1>&6
! echo "configure:3502: checking whether matz's dln works" >&5
cat confdefs.h > config.h
if eval "test \"`echo '$''{'rb_cv_dln_a_out'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 3508 "configure"
#include "confdefs.h"
#define USE_DLN_A_OUT
--- 3520,3532 ----
if test "$ac_cv_header_a_out_h" = yes; then
if test "$with_dln_a_out" = yes || test "$rb_cv_dlopen" = unknown; then
echo $ac_n "checking whether matz's dln works""... $ac_c" 1>&6
! echo "configure:3524: checking whether matz's dln works" >&5
cat confdefs.h > config.h
if eval "test \"`echo '$''{'rb_cv_dln_a_out'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 3530 "configure"
#include "confdefs.h"
#define USE_DLN_A_OUT
***************
*** 3514,3520 ****
; return 0; }
EOF
! if { (eval echo configure:3518: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_dln_a_out=yes
else
--- 3536,3542 ----
; return 0; }
EOF
! if { (eval echo configure:3540: \"$ac_compile\") 1>&5; (eval $ac_compile)
2>&5; }; then
rm -rf conftest*
rb_cv_dln_a_out=yes
else
***************
*** 3561,3566 ****
--- 3583,3598 ----
#define DLEXT ".o"
EOF
;;
+ openstep*) DLEXT=bundle
+ cat >> confdefs.h <<\EOF
+ #define DLEXT ".bundle"
+ EOF
+ ;;
+ rhapsody*) DLEXT=bundle
+ cat >> confdefs.h <<\EOF
+ #define DLEXT ".bundle"
+ EOF
+ ;;
*) DLEXT=so
cat >> confdefs.h <<\EOF
#define DLEXT ".so"
***************
*** 3580,3585 ****
--- 3612,3621 ----
STRIP='strip -S -x';;
nextstep*)
STRIP='strip -A -n';;
+ openstep*)
+ STRIP='strip -A -n';;
+ rhapsody*)
+ STRIP='strip -A -n';;
esac
EXTSTATIC=
***************
*** 3597,3603 ****
case "$host_os" in
human*)
echo $ac_n "checking for _harderr in -lsignal""... $ac_c" 1>&6
! echo "configure:3601: checking for _harderr in -lsignal" >&5
ac_lib_var=`echo signal'_'_harderr | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
--- 3633,3639 ----
case "$host_os" in
human*)
echo $ac_n "checking for _harderr in -lsignal""... $ac_c" 1>&6
! echo "configure:3637: checking for _harderr in -lsignal" >&5
ac_lib_var=`echo signal'_'_harderr | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 3605,3611 ****
ac_save_LIBS="$LIBS"
LIBS="-lsignal $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 3609 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
--- 3641,3647 ----
ac_save_LIBS="$LIBS"
LIBS="-lsignal $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 3645 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
***************
*** 3616,3622 ****
_harderr()
; return 0; }
EOF
! if { (eval echo configure:3620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
--- 3652,3658 ----
_harderr()
; return 0; }
EOF
! if { (eval echo configure:3656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
***************
*** 3644,3650 ****
fi
echo $ac_n "checking for hmemset in -lhmem""... $ac_c" 1>&6
! echo "configure:3648: checking for hmemset in -lhmem" >&5
ac_lib_var=`echo hmem'_'hmemset | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
--- 3680,3686 ----
fi
echo $ac_n "checking for hmemset in -lhmem""... $ac_c" 1>&6
! echo "configure:3684: checking for hmemset in -lhmem" >&5
ac_lib_var=`echo hmem'_'hmemset | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 3652,3658 ****
ac_save_LIBS="$LIBS"
LIBS="-lhmem $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 3656 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
--- 3688,3694 ----
ac_save_LIBS="$LIBS"
LIBS="-lhmem $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 3692 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
***************
*** 3663,3669 ****
hmemset()
; return 0; }
EOF
! if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
--- 3699,3705 ----
hmemset()
; return 0; }
EOF
! if { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
***************
*** 3693,3704 ****
for ac_func in select
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:3697: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 3702 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
--- 3729,3740 ----
for ac_func in select
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:3733: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 3738 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
***************
*** 3721,3727 ****
; return 0; }
EOF
! if { (eval echo configure:3725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
--- 3757,3763 ----
; return 0; }
EOF
! if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
***************
*** 3746,3752 ****
done
echo $ac_n "checking whether PD libc _dtos18 fail to convert big
number""... $ac_c" 1>&6
! echo "configure:3750: checking whether PD libc _dtos18 fail to convert big
number" >&5
if eval "test \"`echo '$''{'rb_cv_missing__dtos18'+set}'`\" = set";
then
echo $ac_n "(cached) $ac_c" 1>&6
else
--- 3782,3788 ----
done
echo $ac_n "checking whether PD libc _dtos18 fail to convert big
number""... $ac_c" 1>&6
! echo "configure:3786: checking whether PD libc _dtos18 fail to convert big
number" >&5
if eval "test \"`echo '$''{'rb_cv_missing__dtos18'+set}'`\" = set";
then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 3754,3760 ****
{ echo "configure: error: can not run test program while cross
compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
! #line 3758 "configure"
#include "confdefs.h"
#include <stdio.h>
--- 3790,3796 ----
{ echo "configure: error: can not run test program while cross
compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
! #line 3794 "configure"
#include "confdefs.h"
#include <stdio.h>
***************
*** 3766,3772 ****
}
EOF
! if { (eval echo configure:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
rb_cv_missing__dtos18=yes
else
--- 3802,3808 ----
}
EOF
! if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
rb_cv_missing__dtos18=yes
else
***************
*** 3788,3794 ****
fi
echo $ac_n "checking whether PD libc fconvert fail to round""...
$ac_c" 1>&6
! echo "configure:3792: checking whether PD libc fconvert fail to round" >&5
if eval "test \"`echo '$''{'rb_cv_missing_fconvert'+set}'`\" = set";
then
echo $ac_n "(cached) $ac_c" 1>&6
else
--- 3824,3830 ----
fi
echo $ac_n "checking whether PD libc fconvert fail to round""...
$ac_c" 1>&6
! echo "configure:3828: checking whether PD libc fconvert fail to round" >&5
if eval "test \"`echo '$''{'rb_cv_missing_fconvert'+set}'`\" = set";
then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 3796,3802 ****
{ echo "configure: error: can not run test program while cross
compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
! #line 3800 "configure"
#include "confdefs.h"
#include <stdio.h>
--- 3832,3838 ----
{ echo "configure: error: can not run test program while cross
compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
! #line 3836 "configure"
#include "confdefs.h"
#include <stdio.h>
***************
*** 3809,3815 ****
}
EOF
! if { (eval echo configure:3813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
rb_cv_missing_fconvert=yes
else
--- 3845,3851 ----
}
EOF
! if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest && (./conftest; exit) 2>/dev/null
then
rb_cv_missing_fconvert=yes
else
***************
*** 3870,3875 ****
--- 3906,3917 ----
;;
esac
fi
+
+ if "$host_os" = "rhapsody" ; then
+ CFLAGS="$CFLAGS -no-precomp"
+ fi
+
+
diff -crN ruby-1.1b9_25.org/configure.in ruby-1.1b9_25/configure.in
*** ruby-1.1b9_25.org/configure.in Tue May 26 13:53:48 1998
--- ruby-1.1b9_25/configure.in Mon Jun 15 13:50:31 1998
***************
*** 33,50 ****
dnl checks for fat-binary
fat_binary=no
AC_ARG_ENABLE( fat-binary,
! [--enable-fat-binary build a NeXT Multi Architecture Binary.
],
[ fat_binary=$enableval ] )
if test "$fat_binary" = yes ; then
AC_MSG_CHECKING( target architecture )
! if test "$TARGET_ARCHS" = "" ; then
! if test `/usr/bin/arch` = "m68k" ; then
! TARGET_ARCHS="m68k i486"
! else
! TARGET_ARCHS="m68k `/usr/bin/arch`"
! fi
fi
# /usr/lib/arch_tool -archify_list $TARGET_ARCHS
for archs in $TARGET_ARCHS
--- 33,60 ----
dnl checks for fat-binary
fat_binary=no
AC_ARG_ENABLE( fat-binary,
! [--enable-fat-binary build a NeXT/Apple Multi Architecture
Binary. ],
[ fat_binary=$enableval ] )
if test "$fat_binary" = yes ; then
AC_MSG_CHECKING( target architecture )
! if "$host_os" = "rhapsody" ; then
! echo -n "Rhapsody: "
!
! if test "$TARGET_ARCHS" = "" ; then
! TARGET_ARCHS="ppc i486"
! fi
! else
! echo -n "NeXTSTEP/OPENSTEP: "
!
! if test "$TARGET_ARCHS" = "" ; then
! if test `/usr/bin/arch` = "m68k" ; then
! TARGET_ARCHS="m68k i486"
! else
! TARGET_ARCHS="m68k `/usr/bin/arch`"
! fi
! fi
fi
# /usr/lib/arch_tool -archify_list $TARGET_ARCHS
for archs in $TARGET_ARCHS
***************
*** 118,123 ****
--- 128,135 ----
dnl Checks for libraries.
case "$host_os" in
nextstep*) ;;
+ openstep*) ;;
+ rhapsody*) ;;
human*) ;;
beos*) ;;
*) LIBS="-lm $LIBS";;
***************
*** 312,317 ****
--- 324,331 ----
if test "$GCC" = yes; then
case "$host_os" in
nextstep*) ;;
+ openstep*) ;;
+ rhapsody*) ;;
human*) ;;
*) CCDLFLAGS=-fpic;;
esac
***************
*** 352,357 ****
--- 366,379 ----
LDFLAGS="-u libsys_s"
DLDFLAGS="$ARCH_FLAG"
rb_cv_dlopen=yes ;;
+ openstep*) LDSHARED='cc -dynamic -bundle -undefined suppress'
+ LDFLAGS=""
+ DLDFLAGS="$ARCH_FLAG"
+ rb_cv_dlopen=yes ;;
+ rhapsody*) LDSHARED='cc -dynamic -bundle -undefined suppress'
+ LDFLAGS=""
+ DLDFLAGS="$ARCH_FLAG"
+ rb_cv_dlopen=yes ;;
aix*) LDSHARED='../../miniruby ../aix_ld.rb $(TARGET)'
rb_cv_dlopen=yes ;;
human*) DLDFLAGS=''
***************
*** 408,413 ****
--- 430,439 ----
AC_DEFINE(DLEXT, ".sl");;
nextstep*) DLEXT=o
AC_DEFINE(DLEXT, ".o");;
+ openstep*) DLEXT=bundle
+ AC_DEFINE(DLEXT, ".bundle");;
+ rhapsody*) DLEXT=bundle
+ AC_DEFINE(DLEXT, ".bundle");;
*) DLEXT=so
AC_DEFINE(DLEXT, ".so");;
esac
***************
*** 425,430 ****
--- 451,460 ----
STRIP='strip -S -x';;
nextstep*)
STRIP='strip -A -n';;
+ openstep*)
+ STRIP='strip -A -n';;
+ rhapsody*)
+ STRIP='strip -A -n';;
esac
EXTSTATIC=
***************
*** 521,526 ****
--- 551,562 ----
;;
esac
fi
+
+ if "$host_os" = "rhapsody" ; then
+ CFLAGS="$CFLAGS -no-precomp"
+ fi
+
+
AC_SUBST(LIBRUBY)
AC_SUBST(LIBRUBYARG)
AC_SUBST(SOLIBS)
diff -crN ruby-1.1b9_25.org/defines.h ruby-1.1b9_25/defines.h
*** ruby-1.1b9_25.org/defines.h Wed May 13 16:26:05 1998
--- ruby-1.1b9_25/defines.h Mon Jun 15 14:00:14 1998
***************
*** 23,29 ****
--- 23,31 ----
#ifdef NeXT
#define DYNAMIC_ENDIAN /* determine endian at runtime */
+ #ifndef __Apple__
#define S_IXUSR _S_IXUSR /* execute/search permission, owner */
+ #endif
#define S_IXGRP 0000010 /* execute/search permission, group */
#define S_IXOTH 0000001 /* execute/search permission, other */
#endif /* NeXT */
diff -crN ruby-1.1b9_25.org/eval.c ruby-1.1b9_25/eval.c
*** ruby-1.1b9_25.org/eval.c Thu Jun 11 19:02:57 1998
--- ruby-1.1b9_25/eval.c Mon Jun 15 16:50:00 1998
***************
*** 6194,6200 ****
posix_signal(SIGALRM, catch_timer);
#else
signal(SIGVTALRM, catch_timer);
! posix_signal(SIGALRM, catch_timer);
#endif
tval.it_interval.tv_sec = 0;
--- 6194,6200 ----
posix_signal(SIGALRM, catch_timer);
#else
signal(SIGVTALRM, catch_timer);
! signal(SIGALRM, catch_timer);
#endif
tval.it_interval.tv_sec = 0;
diff -crN ruby-1.1b9_25.org/ext/extmk.rb.in ruby-1.1b9_25/ext/extmk.rb.in
*** ruby-1.1b9_25.org/ext/extmk.rb.in Wed Jun 10 13:56:27 1998
--- ruby-1.1b9_25/ext/extmk.rb.in Mon Jun 15 16:54:45 1998
***************
*** 332,337 ****
--- 332,347 ----
$(TARGET): $(OBJS)
cc -r $(CFLAGS) -o $(TARGET) $(OBJS)
"
+ elsif PLATFORM =~ "-openstep"
+ mfile.printf "\
+ $(TARGET): $(OBJS)
+ cc -r $(CFLAGS) -o $(TARGET) $(OBJS)
+ "
+ elsif PLATFORM =~ "-rhapsody"
+ mfile.printf "\
+ $(TARGET): $(OBJS)
+ cc -r $(CFLAGS) -o $(TARGET) $(OBJS)
+ "
elsif $static
mfile.printf "\
$(TARGET): $(OBJS)
***************
*** 379,385 ****
return if $nodynamic and not $static
$objs = nil
! $libs = PLATFORM =~ /cygwin32|beos/ ? nil : "-lc"
$local_libs = nil # to be assigned in extconf.rb
$CFLAGS = nil
$LDFLAGS = nil
--- 389,395 ----
return if $nodynamic and not $static
$objs = nil
! $libs = PLATFORM =~ /cygwin32|beos|openstep|nextstep|rhapsody/ ? nil :
"-lc"
$local_libs = nil # to be assigned in extconf.rb
$CFLAGS = nil
$LDFLAGS = nil
diff -crN ruby-1.1b9_25.org/lex.c ruby-1.1b9_25/lex.c
*** ruby-1.1b9_25.org/lex.c Mon Jun 8 10:28:10 1998
--- ruby-1.1b9_25/lex.c Thu Jan 1 09:00:00 1970
***************
*** 1,119 ****
- /* C code produced by gperf version 2.5 (GNU C++ version) */
- /* Command-line: gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$
keywords */
- struct kwtable {char *name; int id[2]; enum lex_state state;};
-
- #define TOTAL_KEYWORDS 40
- #define MIN_WORD_LENGTH 2
- #define MAX_WORD_LENGTH 8
- #define MIN_HASH_VALUE 6
- #define MAX_HASH_VALUE 55
- /* maximum key range = 50, duplicates = 0 */
-
- #ifdef __GNUC__
- inline
- #endif
- static unsigned int
- hash (str, len)
- register char *str;
- register int unsigned len;
- {
- static unsigned char asso_values[] =
- {
- 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
- 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
- 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
- 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
- 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
- 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
- 56, 56, 56, 11, 56, 56, 36, 56, 1, 37,
- 31, 1, 56, 56, 56, 56, 29, 56, 1, 56,
- 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
- 56, 56, 56, 56, 56, 1, 56, 32, 1, 2,
- 1, 1, 4, 23, 56, 17, 56, 20, 9, 2,
- 9, 26, 14, 56, 5, 1, 1, 16, 56, 21,
- 20, 9, 56, 56, 56, 56, 56, 56,
- };
- register int hval = len;
-
- switch (hval)
- {
- default:
- case 3:
- hval += asso_values[str[2]];
- case 2:
- case 1:
- hval += asso_values[str[0]];
- break;
- }
- return hval + asso_values[str[len - 1]];
- }
-
- #ifdef __GNUC__
- inline
- #endif
- struct kwtable *
- rb_reserved_word (str, len)
- register char *str;
- register unsigned int len;
- {
- static struct kwtable wordlist[] =
- {
- {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
- {"end", kEND, kEND, EXPR_END},
- {"else", kELSE, kELSE, EXPR_BEG},
- {"case", kCASE, kCASE, EXPR_BEG},
- {"ensure", kENSURE, kENSURE, EXPR_BEG},
- {"module", kMODULE, kMODULE, EXPR_BEG},
- {"elsif", kELSIF, kELSIF, EXPR_BEG},
- {"def", kDEF, kDEF, EXPR_FNAME},
- {"rescue", kRESCUE, kRESCUE, EXPR_MID},
- {"not", kNOT, kNOT, EXPR_BEG},
- {"then", kTHEN, kTHEN, EXPR_BEG},
- {"yield", kYIELD, kYIELD, EXPR_END},
- {"for", kFOR, kFOR, EXPR_BEG},
- {"self", kSELF, kSELF, EXPR_END},
- {"false", kFALSE, kFALSE, EXPR_END},
- {"retry", kRETRY, kRETRY, EXPR_END},
- {"return", kRETURN, kRETURN, EXPR_MID},
- {"true", kTRUE, kTRUE, EXPR_END},
- {"if", kIF, kIF_MOD, EXPR_BEG},
- {"defined?", kDEFINED, kDEFINED, EXPR_END},
- {"super", kSUPER, kSUPER, EXPR_END},
- {"undef", kUNDEF, kUNDEF, EXPR_FNAME},
- {"break", kBREAK, kBREAK, EXPR_END},
- {"in", kIN, kIN, EXPR_BEG},
- {"do", kDO, kDO, EXPR_BEG},
- {"nil", kNIL, kNIL, EXPR_END},
- {"until", kUNTIL, kUNTIL_MOD, EXPR_BEG},
- {"unless", kUNLESS, kUNLESS_MOD, EXPR_BEG},
- {"or", kOR, kOR, EXPR_BEG},
- {"next", kNEXT, kNEXT, EXPR_END},
- {"when", kWHEN, kWHEN, EXPR_BEG},
- {"redo", kREDO, kREDO, EXPR_END},
- {"and", kAND, kAND, EXPR_BEG},
- {"begin", kBEGIN, kBEGIN, EXPR_BEG},
- {"__LINE__", k__LINE__, k__LINE__, EXPR_END},
- {"class", kCLASS, kCLASS, EXPR_CLASS},
- {"__FILE__", k__FILE__, k__FILE__, EXPR_END},
- {"END", klEND, klEND, EXPR_END},
- {"BEGIN", klBEGIN, klBEGIN, EXPR_END},
- {"while", kWHILE, kWHILE_MOD, EXPR_BEG},
- {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
- {"",},
- {"alias", kALIAS, kALIAS, EXPR_FNAME},
- };
-
- if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
- {
- register int key = hash (str, len);
-
- if (key <= MAX_HASH_VALUE && key >= 0)
- {
- register char *s = wordlist[key].name;
-
- if (*s == *str && !strcmp (str + 1, s + 1))
- return &wordlist[key];
- }
- }
- return 0;
- }
--- 0 ----
diff -crN ruby-1.1b9_25.org/ruby.h ruby-1.1b9_25/ruby.h
*** ruby-1.1b9_25.org/ruby.h Thu Jun 11 19:03:09 1998
--- ruby-1.1b9_25/ruby.h Mon Jun 15 14:06:16 1998
***************
*** 82,87 ****
--- 82,91 ----
#pragma alloca
#endif
+ #ifdef NeXT
+ #include <sys/fcntl.h>
+ #endif
+
#if SIZEOF_LONG != SIZEOF_VOIDP
---->> ruby requires sizeof(void*) == sizeof(long) to be compiled. <<----
# endif