* Checked for libelf, and replaced hardcoded #define ELF with HAVE_LIBELF
tests. * #include "site.h" in kernel.h. git-svn-id: svn://svn.zoy.org/elk/trunk@106 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
		
							parent
							
								
									971eae3c27
								
							
						
					
					
						commit
						666572f3e3
					
				
							
								
								
									
										44
									
								
								configure.ac
								
								
								
								
							
							
						
						
									
										44
									
								
								configure.ac
								
								
								
								
							| 
						 | 
				
			
			@ -34,7 +34,7 @@ AC_SUBST(STDINT_HEADER)
 | 
			
		|||
# $system should contain the name of this file.  It may be used by some
 | 
			
		||||
# of the build scripts to do things that are specific to one single
 | 
			
		||||
# type of system.
 | 
			
		||||
AC_DEFINE(SYSTEMTYPE, "i486-linux-gcc", [FIXME HARD])
 | 
			
		||||
AC_DEFINE(SYSTEMTYPE, "${target_os}", Our operating system)
 | 
			
		||||
 | 
			
		||||
# Does the system support the vprintf library function?  If not,
 | 
			
		||||
# availability of the (non-portable) _doprnt function is assumed.
 | 
			
		||||
| 
						 | 
				
			
			@ -63,7 +63,24 @@ dnl FIXME
 | 
			
		|||
AC_CHECK_HEADERS(unistd.h)
 | 
			
		||||
 | 
			
		||||
# If the FIONREAD ioctl command is defined, which file must be included?
 | 
			
		||||
AC_DEFINE(FIONREAD_H, <termios.h>, [FIXME HARD])
 | 
			
		||||
AC_MSG_CHECKING(for FIONREAD in termios.h)
 | 
			
		||||
AC_EGREP_HEADER(FIONREAD, termios.h, [
 | 
			
		||||
  AC_MSG_RESULT(yes) AC_DEFINE(FIONREAD_IN_TERMIOS_H, 1, Define if <termios.h> defines FIONREAD)
 | 
			
		||||
],[
 | 
			
		||||
  AC_MSG_RESULT(no)
 | 
			
		||||
  AC_MSG_CHECKING(for FIONREAD in sys/ioctl.h)
 | 
			
		||||
  AC_EGREP_HEADER(FIONREAD, sys/ioctl.h, [
 | 
			
		||||
    AC_MSG_RESULT(yes) AC_DEFINE(FIONREAD_IN_SYS_IOCTL_H, 1, Define if <sys/ioctl.h> defines FIONREAD)
 | 
			
		||||
  ],[
 | 
			
		||||
    AC_MSG_RESULT(no)
 | 
			
		||||
    AC_MSG_CHECKING(for FIONREAD in sys/filio.h)
 | 
			
		||||
    AC_EGREP_HEADER(FIONREAD, sys/filio.h, [
 | 
			
		||||
      AC_MSG_RESULT(yes) AC_DEFINE(FIONREAD_IN_SYS_FILIO_H, 1, Define if <sys/filio.h> defines FIONREAD)
 | 
			
		||||
    ],[
 | 
			
		||||
      AC_MSG_RESULT(no)
 | 
			
		||||
    ])
 | 
			
		||||
  ])
 | 
			
		||||
])
 | 
			
		||||
 | 
			
		||||
# What is the name of the a.out include file?
 | 
			
		||||
AC_DEFINE(AOUT_H, <a.out.h>, [FIXME HARD])
 | 
			
		||||
| 
						 | 
				
			
			@ -122,23 +139,37 @@ AC_DEFINE(POSIX_SIGNALS, 1, [FIXME HARD])
 | 
			
		|||
if false; then
 | 
			
		||||
  AC_DEFINE(COFF, 1, [FIXME HARD])
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if false; then
 | 
			
		||||
  AC_DEFINE(ECOFF, 1, [FIXME HARD])
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if false; then
 | 
			
		||||
  AC_DEFINE(XCOFF, 1, [FIXME HARD])
 | 
			
		||||
fi
 | 
			
		||||
AC_DEFINE(ELF, 1, [FIXME HARD])
 | 
			
		||||
 | 
			
		||||
AC_CHECK_LIB(elf, elf_begin, ac_cv_my_have_elf=yes, ac_cv_my_have_elf=no)
 | 
			
		||||
 | 
			
		||||
if false; then
 | 
			
		||||
  AC_DEFINE(MACH_O, 1, [FIXME HARD])
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if false; then
 | 
			
		||||
  AC_DEFINE(CONVEX_AOUT, 1, [FIXME HARD])
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if false; then
 | 
			
		||||
  AC_DEFINE(HP9K, 1, [FIXME HARD])
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
ac_cv_my_have_aout_format=yes
 | 
			
		||||
if test "${ac_cv_my_have_elf}" = "yes"; then
 | 
			
		||||
  AC_DEFINE(HAVE_LIBELF, 1, Define if you have libelf.)
 | 
			
		||||
else
 | 
			
		||||
  :
 | 
			
		||||
  dnl AC_MSG_ERROR([could not handle the native object format, if you are running Linux please install the libelf development headers])
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Which mechanism should be used to dynamically load object files?
 | 
			
		||||
# Possible values currently are:
 | 
			
		||||
#
 | 
			
		||||
| 
						 | 
				
			
			@ -389,8 +420,7 @@ dnl
 | 
			
		|||
CFLAGS="${CFLAGS_save}"
 | 
			
		||||
LDFLAGS="${LDFLAGS_save}"
 | 
			
		||||
 | 
			
		||||
ac_cv_my_have_gdbm=no
 | 
			
		||||
AC_CHECK_LIB(gdbm, gdbm_open, ac_cv_my_have_gdbm=yes)
 | 
			
		||||
AC_CHECK_LIB(gdbm, gdbm_open, ac_cv_my_have_gdbm=yes, ac_cv_my_have_gdbm=no)
 | 
			
		||||
AM_CONDITIONAL(HAVE_GDBM, test "${ac_cv_my_have_gdbm}" = "yes")
 | 
			
		||||
 | 
			
		||||
AC_PATH_X
 | 
			
		||||
| 
						 | 
				
			
			@ -464,8 +494,8 @@ AC_OUTPUT([
 | 
			
		|||
 | 
			
		||||
cat << EOF
 | 
			
		||||
 | 
			
		||||
Configuration summary
 | 
			
		||||
---------------------
 | 
			
		||||
Elk configuration summary
 | 
			
		||||
-------------------------
 | 
			
		||||
build C++ plugins: ${ac_cv_my_have_cxx}
 | 
			
		||||
libgdbm support: ${ac_cv_my_have_xaw}
 | 
			
		||||
X11 support: ${ac_cv_my_have_x11}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,9 @@
 | 
			
		|||
elk (3.99.1-1) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
  * New release.
 | 
			
		||||
 | 
			
		||||
 -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Sat,  6 Sep 2003 13:36:54 +0200
 | 
			
		||||
 | 
			
		||||
elk (3.99.0-1) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
  * New release.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -34,6 +34,7 @@
 | 
			
		|||
#include <stdio.h>
 | 
			
		||||
#include <signal.h>
 | 
			
		||||
 | 
			
		||||
#include "site.h"
 | 
			
		||||
#include "funcproto.h"
 | 
			
		||||
#include "param.h"
 | 
			
		||||
#include "object.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -34,6 +34,7 @@
 | 
			
		|||
#include <stdio.h>
 | 
			
		||||
#include <signal.h>
 | 
			
		||||
 | 
			
		||||
#include "site.h"
 | 
			
		||||
#include "funcproto.h"
 | 
			
		||||
#include "param.h"
 | 
			
		||||
#include "object.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -42,8 +42,12 @@
 | 
			
		|||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef FIONREAD_H
 | 
			
		||||
#  include FIONREAD_H
 | 
			
		||||
#if defined(FIONREAD_IN_TERMIOS_H)
 | 
			
		||||
#   include <termios.h>
 | 
			
		||||
#elif defined(FIONREAD_IN_SYS_IOCTL_H)
 | 
			
		||||
#   include <sys/ioctl.h>
 | 
			
		||||
#elif defined(FIONREAD_IN_SYS_FILIO_H)
 | 
			
		||||
#   include <sys/filio.h>
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "kernel.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -41,7 +41,7 @@ void Free_Symbols (SYMTAB *);
 | 
			
		|||
 | 
			
		||||
#if defined(MACH_O)
 | 
			
		||||
#  include "stab-macho.c"
 | 
			
		||||
#elif defined(ELF)
 | 
			
		||||
#elif defined(HAVE_LIBELF)
 | 
			
		||||
#  include "stab-elf.c"
 | 
			
		||||
#elif defined(COFF) || defined(XCOFF)
 | 
			
		||||
#  include "stab-coff.c"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue