Skip to content

Commit bb5a78c

Browse files
committed
remove supporting files from top level into tools
1 parent 508d049 commit bb5a78c

6 files changed

Lines changed: 39 additions & 38 deletions

File tree

configure

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,6 +2116,35 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
21162116
21172117
ac_config_headers="$ac_config_headers src/config.h"
21182118
2119+
ac_aux_dir=
2120+
for ac_dir in tools "$srcdir"/tools; do
2121+
if test -f "$ac_dir/install-sh"; then
2122+
ac_aux_dir=$ac_dir
2123+
ac_install_sh="$ac_aux_dir/install-sh -c"
2124+
break
2125+
elif test -f "$ac_dir/install.sh"; then
2126+
ac_aux_dir=$ac_dir
2127+
ac_install_sh="$ac_aux_dir/install.sh -c"
2128+
break
2129+
elif test -f "$ac_dir/shtool"; then
2130+
ac_aux_dir=$ac_dir
2131+
ac_install_sh="$ac_aux_dir/shtool install -c"
2132+
break
2133+
fi
2134+
done
2135+
if test -z "$ac_aux_dir"; then
2136+
as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2137+
fi
2138+
2139+
# These three variables are undocumented and unsupported,
2140+
# and are intended to be withdrawn in a future Autoconf release.
2141+
# They can cause serious problems if a builder's source tree is in a directory
2142+
# whose full name contains unusual characters.
2143+
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2144+
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2145+
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2146+
2147+
21192148
21202149
# find R home and set CC/CFLAGS
21212150
: ${R_HOME=`R RHOME`}
@@ -3764,7 +3793,7 @@ fi
37643793
37653794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Java run-time works" >&5
37663795
$as_echo_n "checking whether Java run-time works... " >&6; }
3767-
if "$JAVA" -classpath . getsp; then
3796+
if "$JAVA" -classpath tools getsp; then
37683797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37693798
$as_echo "yes" >&6; }
37703799
else
@@ -3777,7 +3806,7 @@ has_xrs="$want_xrs"
37773806
if test x"$has_xrs" = xauto; then
37783807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Xrs is supported" >&5
37793808
$as_echo_n "checking whether -Xrs is supported... " >&6; }
3780-
if "$JAVA" -Xrs -classpath . getsp; then
3809+
if "$JAVA" -Xrs -classpath tools getsp; then
37813810
has_xrs=yes
37823811
else
37833812
has_xrs=no
@@ -4035,35 +4064,6 @@ $as_echo "yes" >&6; }
40354064
export JAVA_HOME JAVA_CPPFLAGS JAVA_LIBS JAVA_LD_LIBRARY_PATH JAVA JAVAC JAVAH JAR
40364065
CONFIGURED=1
40374066
export CONFIGURED
4038-
ac_aux_dir=
4039-
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4040-
if test -f "$ac_dir/install-sh"; then
4041-
ac_aux_dir=$ac_dir
4042-
ac_install_sh="$ac_aux_dir/install-sh -c"
4043-
break
4044-
elif test -f "$ac_dir/install.sh"; then
4045-
ac_aux_dir=$ac_dir
4046-
ac_install_sh="$ac_aux_dir/install.sh -c"
4047-
break
4048-
elif test -f "$ac_dir/shtool"; then
4049-
ac_aux_dir=$ac_dir
4050-
ac_install_sh="$ac_aux_dir/shtool install -c"
4051-
break
4052-
fi
4053-
done
4054-
if test -z "$ac_aux_dir"; then
4055-
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4056-
fi
4057-
4058-
# These three variables are undocumented and unsupported,
4059-
# and are intended to be withdrawn in a future Autoconf release.
4060-
# They can cause serious problems if a builder's source tree is in a directory
4061-
# whose full name contains unusual characters.
4062-
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4063-
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4064-
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4065-
4066-
40674067
40684068
40694069
subdirs="$subdirs jri"

configure.ac

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
AC_INIT(rJava, 0.8, Simon.Urbanek@r-project.org)
33
AC_CONFIG_SRCDIR([src/rJava.c])
44
AC_CONFIG_HEADER([src/config.h])
5+
AC_CONFIG_AUX_DIR([tools])
56

67
# find R home and set CC/CFLAGS
78
: ${R_HOME=`R RHOME`}
@@ -224,7 +225,7 @@ if test "x$OSNAME" = xDarwin; then
224225
fi
225226

226227
AC_MSG_CHECKING([whether Java run-time works])
227-
if "$JAVA" -classpath . getsp; then
228+
if "$JAVA" -classpath tools getsp; then
228229
AC_MSG_RESULT(yes)
229230
else
230231
AC_MSG_RESULT(no)
@@ -234,7 +235,7 @@ fi
234235
has_xrs="$want_xrs"
235236
if test x"$has_xrs" = xauto; then
236237
AC_MSG_CHECKING([whether -Xrs is supported])
237-
if "$JAVA" -Xrs -classpath . getsp; then
238+
if "$JAVA" -Xrs -classpath tools getsp; then
238239
has_xrs=yes
239240
else
240241
has_xrs=no

mkdist

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ rm -f /tmp/rJava/README.md
3838
cd /tmp/rJava
3939

4040
if [ "$1" = "-c" ]; then
41-
rm -f configure install-sh jri/configure
41+
rm -f configure tools/install-sh jri/configure
4242
fi
4343

4444
if [ -e /tmp/rJava/configure ]; then
@@ -50,7 +50,7 @@ else
5050
rm -rf autom4te* acloc*
5151
fi
5252

53-
if [ ! -e install-sh ]; then
53+
if [ ! -e tools/install-sh ]; then
5454
echo "Fetching install-sh ..."
5555
ams=/usr/share/automake/install-sh
5656
if [ ! -e $ams ]; then
@@ -60,12 +60,12 @@ if [ ! -e install-sh ]; then
6060
echo "*** ERROR: install-sh is not present and I can't find it in /usr/share"
6161
exit 2
6262
fi
63-
cp $ams install-sh
63+
cp $ams tools/install-sh
6464
fi
6565

66-
if [ ! -e getsp.class ]; then
66+
if [ ! -e tools/getsp.class ]; then
6767
echo "Compiling getsp.class"
68-
javac -target 1.2 -source 1.2 getsp.java
68+
(cd tools && javac -target 1.2 -source 1.2 getsp.java)
6969
fi
7070

7171
echo "Removing CVS/SVN and backup files ..."
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)