summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorYukihiro Matsumoto <matz@ruby-lang.org>1994-12-08 14:17:29 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-17 22:09:30 +0900
commit00e36aa09f54925c2f9c30524b48f4f54a9adb23 (patch)
tree57bf15576109b53406796c66b29d5e11d9fd99c0 /configure.in
parent4dfd93c72a9a221c5575c5888483f2fb55c82117 (diff)
version 0.60v0_60
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-0.60.tar.gz Thu Dec 8 14:17:29 1994 Yukihiro Matsumoto (matz@ix-02) * 0.60 released - alpha test baseline.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in34
1 files changed, 16 insertions, 18 deletions
diff --git a/configure.in b/configure.in
index bd841c4..9eec8ad 100644
--- a/configure.in
+++ b/configure.in
@@ -4,10 +4,6 @@ PROGS="ruby"
AC_SUBST(PROGS)dnl
AC_PROG_CC
AC_GCC_TRADITIONAL
-if test "$GCC" = 1 ; then
- DBM=-fpcc-struct-return
-fi
-AC_SUBST(DBM)dnl
if test "$HOSTTYPE" = sparc; then
if test "$GCC" = 1 ; then
STATIC=-static
@@ -24,22 +20,23 @@ AC_HAVE_HEADERS(unistd.h syscall.h a.out.h)
AC_DIR_HEADER
AC_GETGROUPS_T
AC_RETSIGTYPE
-AC_HAVE_FUNCS(getopt_long memmove strerror strtoul strdup strstr)
-AC_HAVE_FUNCS(setenv fmod killpg mkdir strftime socket random)
+AC_REPLACE_FUNCS(memmove mkdir strerror strftime)
+AC_REPLACE_FUNCS(strstr strtol strtoul strdup)
+AC_HAVE_FUNCS(fmod killpg socket random)
AC_HAVE_FUNCS(wait4 waitpid syscall getcwd)
+AC_HAVE_FUNCS(setruid seteuid setreuid)
+AC_HAVE_FUNCS(setrgid setegid setregid)
AC_HAVE_FUNCS(getpriority sigprocmask)
-if echo $DEFS | grep "HAVE_SETENV" 2>&1 > /dev/null; then
- :
-else
- AC_HAVE_FUNCS(putenv)
-fi
-if echo $DEFS | grep "HAVE_STRFTIME" 2>&1 > /dev/null; then
- :
-else
- AC_TIMEZONE
- AC_COMPILE_CHECK([daylight], [],
- [extern int daylight; int i = daylight;], AC_DEFINE(HAVE_DAYLIGHT))
-fi
+AC_FUNC_CHECK(setenv, [], AC_HAVE_FUNCS(putenv))
+
+case "$LIBOBJS" in
+ *) ;;
+ *strftime*)
+ AC_TIMEZONE
+ AC_COMPILE_CHECK([daylight], [],
+ [extern int daylight; int i = daylight;], AC_DEFINE(HAVE_DAYLIGHT));;
+esac
+
AC_ALLOCA
AC_WORDS_BIGENDIAN
AC_ST_BLKSIZE
@@ -63,3 +60,4 @@ AC_HAVE_LIBRARY(m, [LIBS="$LIBS -lm"])
AC_HAVE_LIBRARY(dbm, [LIBS="$LIBS -ldbm"])
AC_HAVE_LIBRARY(socket, [LIBS="$LIBS -lsocket"])
AC_OUTPUT(Makefile)
+mv confdefs.h config.h