Subject: Re: The last crtbegin change causes Emacs build problem
To: Masao Uebayashi <uebayasi@pultek.co.jp>
From: TAMURA Kent <kent@netbsd.org>
List: current-users
Date: 07/01/2003 15:19:02
In message "Re: The last crtbegin change causes Emacs build problem"
    on 03/06/14, Masao Uebayashi <uebayasi@pultek.co.jp> writes:
> I have no real-current NetBSD around, so I hope someone tests this.
> 
> Masao
> [2 emacs-20030614.shar <text/plain; us-ascii (7bit)>]

Thanks.  "test" is required in configure.in (and of course configure too.)

-- 
TAMURA Kent <kent2003@hauN.org> <kent@netbsd.org>


$NetBSD$

--- configure.in.orig   2003-03-17 07:06:05.000000000 +0900
+++ configure.in
@@ -2177,6 +2177,24 @@ AC_FUNC_VFORK
 # Fixme: This should be replaced when we have autoconf 2.14.
 AC_SIZE_T

+# NETBSD: NetBSD's newer run-time linker fix.
+if test $opsys = netbsd; then
+  AC_MSG_CHECKING(for NetBSD crti)
+  if test -f /usr/lib/crti.o; then
+    AC_DEFINE(HAVE_NETBSD_CRTI)
+    AC_MSG_RESULT(yes)
+  else
+    AC_MSG_RESULT(no)
+  fi
+  AC_MSG_CHECKING(for NetBSD crtn)
+  if test -f /usr/lib/crtn.o; then
+    AC_DEFINE(HAVE_NETBSD_CRTN)
+    AC_MSG_RESULT(yes)
+  else
+    AC_MSG_RESULT(no)
+  fi
+fi
+
 # Set up the CFLAGS for real compilation, so we can substitute it.
 CFLAGS="$REAL_CFLAGS"
 CPPFLAGS="$REAL_CPPFLAGS"