Mercurial > urweb
comparison configure.ac @ 1368:b2bc8bcd546f
Switch from libmhash to OpenSSL
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 26 Dec 2010 11:13:37 -0500 |
parents | e12cef71aa1a |
children | 1a78ca089bd0 |
comparison
equal
deleted
inserted
replaced
1367:8301ee4ab58c | 1368:b2bc8bcd546f |
---|---|
4 AC_PROG_CC() | 4 AC_PROG_CC() |
5 AC_PROG_LIBTOOL() | 5 AC_PROG_LIBTOOL() |
6 AC_CONFIG_MACRO_DIR([m4]) | 6 AC_CONFIG_MACRO_DIR([m4]) |
7 AC_CONFIG_HEADERS([config.h]) | 7 AC_CONFIG_HEADERS([config.h]) |
8 | 8 |
9 dnl Setting the search directory for mhash. | 9 AX_CHECK_OPENSSL([echo >/dev/null], [echo "You must install OpenSSL development files."; exit1]) |
10 AC_ARG_WITH(mhash-dir, AS_HELP_STRING([--with-mhash-dir=DIR], [mhash directory; default = /usr]), | |
11 with_mhash_dir="$withval", with_mhash_dir="/usr") | |
12 | |
13 dnl Check for libmhash | |
14 LIBS_save="$LIBS" | |
15 LIBS="-L${with_mhash_dir}/lib/ -lmhash" | |
16 AC_CHECK_LIB(mhash, mhash_get_block_size, | |
17 [MHASH_LIB_DIR="${with_mhash_dir}/lib"], [echo "You must install libmhash."; exit 1]) | |
18 LIBS="${LIBS_save}" | |
19 | |
20 dnl Check for mhash.h | |
21 AC_CHECK_HEADER(["${with_mhash_dir}/include/mhash.h"], | |
22 [CPPFLAGS="${CPPFLAGS} -I${with_mhash_dir}/include"], [echo "You must install libmhash dev files."; exit 1]) | |
23 | 10 |
24 AC_CHECK_PROG(MLTON, mlton, yes, []) | 11 AC_CHECK_PROG(MLTON, mlton, yes, []) |
25 | 12 |
26 if test [-z $MLTON]; then | 13 if test [-z $MLTON]; then |
27 echo "You must install MLton." | 14 echo "You must install MLton." |
65 AC_SUBST(BIN) | 52 AC_SUBST(BIN) |
66 AC_SUBST(LIB) | 53 AC_SUBST(LIB) |
67 AC_SUBST(INCLUDE) | 54 AC_SUBST(INCLUDE) |
68 AC_SUBST(SITELISP) | 55 AC_SUBST(SITELISP) |
69 AC_SUBST(GCCARGS) | 56 AC_SUBST(GCCARGS) |
70 AC_SUBST(MHASH_LIB_DIR) | |
71 | 57 |
72 AC_CONFIG_FILES([ | 58 AC_CONFIG_FILES([ |
73 Makefile | 59 Makefile |
74 src/c/Makefile | 60 src/c/Makefile |
75 src/config.sml | 61 src/config.sml |
82 Ur/Web configuration: | 68 Ur/Web configuration: |
83 bin directory: BIN $BIN | 69 bin directory: BIN $BIN |
84 lib directory: LIB $LIB | 70 lib directory: LIB $LIB |
85 include directory: INCLUDE $INCLUDE | 71 include directory: INCLUDE $INCLUDE |
86 site-lisp directory: SITELISP $SITELISP | 72 site-lisp directory: SITELISP $SITELISP |
87 mhash lib directory: MHASH_LIB_DIR $MHASH_LIB_DIR | |
88 Extra GCC args: GCCARGS $GCCARGS | 73 Extra GCC args: GCCARGS $GCCARGS |
89 EOF | 74 EOF |