Changeset 822 for branches/prototype-v0/zoo-project/zoo-kernel/configure.ac
- Timestamp:
- May 3, 2017, 12:53:06 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/configure.ac
r817 r822 1 1 AC_INIT([ZOO Kernel], [1.7.0], [bugs@zoo-project.org]) 2 3 AC_CONFIG_MACRO_DIR([macros]) 2 4 3 5 # Checks for programs. … … 12 14 AC_CHECK_LIB([dl], [dlopen,dlsym,dlerror,dlclose]) 13 15 AC_CHECK_LIB([crypto], [EVP_DigestInit,EVP_md5,EVP_DigestUpdate,BIO_f_base64,BIO_new]) 14 AC_CHECK_LIB([uuid], [uuid_generate_time])15 16 16 17 DEFAULT_LIBS="$LIBS" … … 20 21 # Checks for header files. 21 22 AC_FUNC_ALLOCA 22 AC_CHECK_HEADERS([fcntl.h inttypes.h libintl.hmalloc.h stddef.h stdlib.h string.h unistd.h])23 AC_CHECK_HEADERS([fcntl.h inttypes.h malloc.h stddef.h stdlib.h string.h unistd.h]) 23 24 24 25 # Checks for typedefs, structures, and compiler characteristics. … … 38 39 AC_FUNC_REALLOC 39 40 AC_CHECK_FUNCS([dup2 getcwd memset setenv strdup strstr]) 41 42 #============================================================================ 43 # Detect if uuid is available 44 #============================================================================ 45 46 AC_ARG_WITH([uuid], 47 [AS_HELP_STRING([--with-uuid=PATH], [Specifies an alternative location for the ossp-uuid library])], 48 [UUID_DIR="$withval"], [UUID_DIR="/usr/"]) 49 UUID_CFLAGS="-I$UUID_DIR/include" 50 UUID_LDFLAGS="-L$UUID_DIR/lib -luuid" 51 CPPFLAGS_SAVE="$CPPFLAGS" 52 CPPFLAGS="$UUID_CFLAGS" 53 LIBS_SAVE="$LIBS" 54 LIBS="$UUID_LDFLAGS" 55 AC_CHECK_HEADERS([uuid/uuid.h], 56 [], [AC_MSG_ERROR([could not find header file uuid.h])]) 57 AC_CHECK_LIB([uuid], [uuid_generate_time], 58 [], [AC_MSG_ERROR([could not find function in uuid library])]) 59 CPPFLAGS="$CPPFLAGS_SAVE" 60 AC_SUBST([UUID_CFLAGS]) 61 AC_SUBST([UUID_LDFLAGS]) 40 62 41 63 #============================================================================ … … 56 78 AC_CHECK_LIB(crypto, BIO_f_base64, 57 79 [], [AC_MSG_ERROR([could not find $i function in openssl library])]) 80 CPPFLAGS="$CPPFLAGS_SAVE" 58 81 AC_SUBST([OPENSSL_CFLAGS]) 59 82 AC_SUBST([OPENSSL_LDFLAGS]) 83 84 #============================================================================ 85 # Detect if gettext is available 86 #============================================================================ 87 88 AC_ARG_WITH([gettext], 89 [AS_HELP_STRING([--with-gettext=PATH], [Specifies an alternative location for the openssl library])], 90 [GETTEXT_DIR="$withval"], [GETTEXT_DIR="/usr/"]) 91 GETTEXT_CFLAGS="-I$GETTEXT_DIR/include" 92 GETTEXT_LDFLAGS="-L$GETTEXT_DIR/lib -lintl" 93 CFLAGS_SAVE="$CFLAGS" 94 CFLAGS="$GETTEXT_CFLAGS" 95 LIBS_SAVE="$LIBS" 96 LIBS="$GETTEXT_LDFLAGS" 97 AM_GNU_GETTEXT([external], [], []) 98 AC_CHECK_LIB(intl, 99 [dgettext], [] , [AC_MSG_ERROR([could not find $i function in gettext library])]) 100 AC_SUBST([GETTEXT_CFLAGS]) 101 AC_SUBST([GETTEXT_LDFLAGS]) 60 102 61 103 #============================================================================ … … 145 187 AC_SUBST([FCGI_LDFLAGS]) 146 188 189 AC_ARG_WITH([metadb], 190 [AS_HELP_STRING([--with-metadb=yes], [Activates the metadata database support])], 191 [WITHMETADB="$withval"], [WITHMETADB=""]) 192 193 if test "x$WITHMETADB" = "xyes"; then 194 METADB="-DMETA_DB" 195 METADB_FILE="meta_sql.o sqlapi.o" 196 else 197 METADB="" 198 METADB_FILE="" 199 fi 200 201 AC_SUBST([METADB]) 202 AC_SUBST([METADB_FILE]) 203 204 AC_ARG_WITH([hpc], 205 [AS_HELP_STRING([--with-hpc=yes], [Specifies if you need to activate HPC support])], 206 [HPCWITH="$withval"], [HPCWITH="no"]) 207 208 if test "x$HPCWITH" = "xyes"; then 209 HPC_FILES="service_internal_hpc.o sshapi.o" 210 HPC_ENABLED="-DUSE_HPC" 211 HPC_CPPFLAGS="" 212 HPC_LDFLAGS="" 213 fi 214 215 AC_SUBST([HPC_CPPFLAGS]) 216 AC_SUBST([HPC_LDFLAGS]) 217 AC_SUBST([HPC_ENABLED]) 218 AC_SUBST([HPC_FILES]) 219 220 AC_ARG_WITH([ssh2], 221 [AS_HELP_STRING([--with-ssh2=PATH], [Specifies an alternative location for the ssh2 library])], 222 [SSH2PATH="$withval"], [SSH2PATH="/usr"]) 223 224 # Extract the linker and include flags 225 SSH2_LDFLAGS="-L$SSH2PATH/lib -lssh2" 226 SSH2_CPPFLAGS="-I$SSH2PATH/include" 227 # Check headers file 228 CPPFLAGS_SAVE="$CPPFLAGS" 229 CPPFLAGS="$SSH2_CPPFLAGS" 230 LIBS_SAVE="$LIBS" 231 LIBS="$SSH2_LDFLAGS" 232 echo $CPPFLAGS 233 echo $LIBS 234 235 AC_CHECK_HEADERS([libssh2.h], 236 [], [AC_MSG_ERROR([could not find headers related to libssh2])]) 237 AC_CHECK_LIB([ssh2], [libssh2_session_init]) 238 239 LIBS="$LIBS_SAVE" 240 AC_SUBST([SSH2_CPPFLAGS]) 241 AC_SUBST([SSH2_LDFLAGS]) 242 147 243 # =========================================================================== 148 244 # Detect if libxml2 is installed … … 400 496 AC_SUBST([MS_LIBS]) 401 497 AC_SUBST([MS_FILE]) 498 AC_SUBST([MS_VERSION]) 402 499 403 500 # ===========================================================================
Note: See TracChangeset
for help on using the changeset viewer.