changeset 592:7ed07736c661

Fix issue about gcrypt for Fedora, and added INSTALL file for this distribution
author Sebastien Decugis <sdecugis@nict.go.jp>
date Mon, 01 Nov 2010 18:46:39 +0900
parents 88a494357a9d
children 1a1b8e885945
files INSTALL.Fedora freeDiameter/CMakeLists.txt
diffstat 2 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/INSTALL.Fedora	Mon Nov 01 18:46:39 2010 +0900
@@ -0,0 +1,17 @@
+### Very short install notes for Fedora (tested on Fedora 13)
+# Please refer to other INSTALL files for more detailed instructions.
+
+
+Dependencies on Fedora 13 (from minimal system):
+# yum install cmake make gcc flex bison lksctp-tools-devel gnutls-devel libgcrypt-devel
+# yum install mercurial
+
+Fetching the latest source:
+# hg clone http://www.freediameter.net/hg/freeDiameter
+# cd freeDiameter
+
+Compiling in a separate directory:
+# mkdir test.build
+# cd test.build
+# cmake ..
+# make
--- a/freeDiameter/CMakeLists.txt	Mon Nov 01 18:24:19 2010 +0900
+++ b/freeDiameter/CMakeLists.txt	Mon Nov 01 18:46:39 2010 +0900
@@ -59,6 +59,16 @@
 MARK_AS_ADVANCED(GCRYPT_INCLUDE_DIR)
 INCLUDE_DIRECTORIES(${GCRYPT_INCLUDE_DIR})
 
+# Also we need libgcrypt to... display its version :(
+find_library(GCRYPT_LIBRARY 
+  NAMES gcrypt
+)
+If ( NOT GCRYPT_LIBRARY )
+	MESSAGE(SEND_ERROR "Unable to find libgcrypt, please install libgcrypt or equivalent")
+Endif ( NOT GCRYPT_LIBRARY )
+SET(FD_LIBS ${FD_LIBS} ${GCRYPT_LIBRARY})
+
+
 
 # Build the executable
 ADD_EXECUTABLE(freeDiameterd ${FD_COMMON_SRC} ${FD_COMMON_GEN_SRC} main.c)
"Welcome to our mercurial repository"