Changeset 279 for trunk/configure.ac
- Timestamp:
- Apr 30, 2010, 11:55:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r277 r279 12 12 dnl start 13 13 dnl 14 AM_INIT_AUTOMAKE(samhain, 2. 6.4)14 AM_INIT_AUTOMAKE(samhain, 2.7.0) 15 15 AC_DEFINE([SAMHAIN], 1, [Application is samhain]) 16 16 AC_CANONICAL_HOST … … 63 63 i*86*) 64 64 AC_DEFINE(HOST_IS_I86LINUX) 65 ;; 66 x86_64) 67 AC_DEFINE([HOST_IS_64LINUX], 1, [Define if host OS is 64bit Linux]) 65 68 ;; 66 69 *) … … 2020 2023 ] 2021 2024 ) 2022 AC_SUBST(lkm_inc) 2023 AC_SUBST(sh_lkm) 2024 AC_SUBST(sh_insmod_cmd) 2025 2025 2026 AC_SUBST(install_name) 2026 2027 AC_SUBST(INSTALL_NAME) … … 2064 2065 kernelversion=`uname -r` 2065 2066 AC_DEFINE_UNQUOTED(SH_KERNEL_VERSION, _("${kernelversion}"), [Define the kernel version]) 2067 2066 2068 if test "x${withval}" != "xyes"; then 2067 2069 systemmap="${withval}" 2068 2070 fi 2071 2069 2072 if test "x${cross_compiling}" = xyes; then 2070 2073 : … … 2072 2075 LIBS="$LIBS -lkvm" 2073 2076 sh_libkvm="-lkvm" 2074 elif test -f "${systemmap}"; then 2075 : 2077 elif test -f "${systemmap}"; then 2078 if test -f /dev/kmem; then 2079 : 2080 else 2081 # need kernel module 2082 2083 if test -f /lib/modules/${kernelversion}/build/include/linux/kernel.h; then 2084 lkm_inc="-I/lib/modules/${kernelversion}/build/include" 2085 else 2086 AC_MSG_WARN([--enable-khide: /lib/modules/${kernelversion}/build/include/linux not found]) 2087 AC_MSG_WARN([--enable-khide: You may need to install the kernel-source]) 2088 AC_MSG_WARN([--enable-khide: headers for the currently-running kernel.]) 2089 fi 2090 2091 AC_MSG_CHECKING([for vmlist_lock]) 2092 sh_vmlist_lock=`egrep ['[bdBD] vmlist_lock$'] ${systemmap} | awk '{print $1}'` 2093 if test x"$sh_vmlist_lock" = x; then 2094 AC_MSG_RESULT(no) 2095 else 2096 sh_vmlist_lock="0x${sh_vmlist_lock}" 2097 AC_MSG_RESULT([${sh_vmlist_lock}]) 2098 AC_DEFINE_UNQUOTED(SH_VMLIST_LOCK, ${sh_vmlist_lock}, [The address of the vmlist spinlock]) 2099 fi 2100 2101 AC_MSG_CHECKING([for vmlist]) 2102 sh_vmlist_lock=`egrep ['[bdBD] vmlist$'] ${systemmap} | awk '{print $1}'` 2103 if test x"$sh_vmlist" = x; then 2104 AC_MSG_RESULT(no) 2105 else 2106 sh_vmlist="0x${sh_vmlist}" 2107 AC_MSG_RESULT([${sh_vmlist}]) 2108 AC_DEFINE_UNQUOTED(SH_VMLIST, ${sh_vmlist}, [The address of the vmlist]) 2109 fi 2110 2111 sh_lkm="${sh_lkm} samhain_kmem.ko" 2112 echo "${sh_insmod_cmd}" | grep 'no kernel module' >/dev/null 2113 if [ $? -eq 0 ]; then 2114 sh_insmod_cmd="modprobe ${install_name}_kmem" 2115 else 2116 sh_insmod_cmd="modprobe ${install_name}_kmem; ${sh_insmod_cmd}" 2117 fi 2118 fi 2076 2119 else 2077 2120 AC_MSG_ERROR([Option --with-kcheck=systemmap cannot be used, because system map ${systemmap} does not exist.]) … … 2080 2123 ] 2081 2124 ) 2125 2126 AC_SUBST(lkm_inc) 2127 AC_SUBST(sh_lkm) 2128 AC_SUBST(sh_insmod_cmd) 2129 2082 2130 AC_SUBST(systemmap) 2083 2131 AC_SUBST(sh_libkvm)
Note:
See TracChangeset
for help on using the changeset viewer.