* Conditionally define CAN_DUMP, CAN_LOAD_OBJ and CAN_LOAD_LIB.
git-svn-id: svn://svn.zoy.org/elk/trunk@113 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
parent
fa11b91757
commit
de7ea1ad63
17
configure.ac
17
configure.ac
|
@ -162,11 +162,17 @@ if false; then
|
||||||
AC_DEFINE(HP9K, 1, [FIXME HARD])
|
AC_DEFINE(HP9K, 1, [FIXME HARD])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ac_cv_my_have_aout_format=yes
|
|
||||||
if test "${ac_cv_my_have_elf}" = "yes"; then
|
if test "${ac_cv_my_have_elf}" = "yes"; then
|
||||||
AC_DEFINE(HAVE_LIBELF, 1, Define if you have libelf.)
|
AC_DEFINE(HAVE_LIBELF, 1, Define if you have libelf.)
|
||||||
|
ac_cv_my_can_dump=yes
|
||||||
|
ac_cv_my_can_load_obj=yes
|
||||||
|
ac_cv_my_can_load_lib=yes
|
||||||
|
CAN_DUMP=1
|
||||||
|
CAN_LOAD_OBJ=1
|
||||||
else
|
else
|
||||||
:
|
ac_cv_my_can_dump=no
|
||||||
|
ac_cv_my_can_load_obj=no
|
||||||
|
ac_cv_my_can_load_lib=no
|
||||||
dnl AC_MSG_ERROR([could not handle the native object format, if you are running Linux please install the libelf development headers])
|
dnl AC_MSG_ERROR([could not handle the native object format, if you are running Linux please install the libelf development headers])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -179,8 +185,13 @@ fi
|
||||||
# dl SysVR4/SunOS5 dlopen()
|
# dl SysVR4/SunOS5 dlopen()
|
||||||
#
|
#
|
||||||
# Leave load_obj empty if dynamic loading is not supported.
|
# Leave load_obj empty if dynamic loading is not supported.
|
||||||
|
if test "${ac_cv_my_can_load_obj}" = "yes"; then
|
||||||
AC_DEFINE(CAN_LOAD_OBJ, 1, [FIXME HARD])
|
AC_DEFINE(CAN_LOAD_OBJ, 1, [FIXME HARD])
|
||||||
|
fi
|
||||||
|
if test "${ac_cv_my_can_load_lib}" = "yes"; then
|
||||||
AC_DEFINE(CAN_LOAD_LIB, 1, [FIXME HARD])
|
AC_DEFINE(CAN_LOAD_LIB, 1, [FIXME HARD])
|
||||||
|
fi
|
||||||
|
|
||||||
if false; then
|
if false; then
|
||||||
AC_DEFINE(USE_LD, 1, [FIXME HARD])
|
AC_DEFINE(USE_LD, 1, [FIXME HARD])
|
||||||
fi
|
fi
|
||||||
|
@ -228,7 +239,9 @@ AC_DEFINE(INIT_PREFIX, "elk_init_", [FIXME HARD])
|
||||||
AC_DEFINE(FINIT_PREFIX, "elk_finit_", [FIXME HARD])
|
AC_DEFINE(FINIT_PREFIX, "elk_finit_", [FIXME HARD])
|
||||||
|
|
||||||
# Is the "dump" function supported?
|
# Is the "dump" function supported?
|
||||||
|
if test "${ac_cv_my_can_dump}" = "yes"; then
|
||||||
AC_DEFINE(CAN_DUMP, 1, [FIXME HARD])
|
AC_DEFINE(CAN_DUMP, 1, [FIXME HARD])
|
||||||
|
fi
|
||||||
|
|
||||||
# Is the fchmod system call broken or unavailable?
|
# Is the fchmod system call broken or unavailable?
|
||||||
if false; then
|
if false; then
|
||||||
|
|
Loading…
Reference in New Issue