| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 | dnl Wslay - The WebSocket Librarydnl Copyright (c) 2011, 2012 Tatsuhiro Tsujikawadnl Permission is hereby granted, free of charge, to any person obtainingdnl a copy of this software and associated documentation files (thednl "Software"), to deal in the Software without restriction, includingdnl without limitation the rights to use, copy, modify, merge, publish,dnl distribute, sublicense, and/or sell copies of the Software, and todnl permit persons to whom the Software is furnished to do so, subject todnl the following conditions:dnl The above copyright notice and this permission notice shall bednl included in all copies or substantial portions of the Software.dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,dnl EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ANDdnl NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BEdnl LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTIONdnl OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTIONdnl WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.AC_PREREQ(2.61)AC_INIT([wslay], [0.1.1], [t-tujikawa@users.sourceforge.net])LT_PREREQ([2.2.6])LT_INIT()AC_CONFIG_AUX_DIR([.])dnl See versioning rule:dnl  http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.htmlAC_SUBST(LT_CURRENT, 0)AC_SUBST(LT_REVISION, 0)AC_SUBST(LT_AGE, 0)AC_CANONICAL_BUILDAC_CANONICAL_HOSTAC_CANONICAL_TARGETAC_CONFIG_MACRO_DIR([m4])AM_INIT_AUTOMAKE()AC_CONFIG_HEADERS([config.h])dnl Checks for programsAC_PROG_CCAC_PROG_INSTALLAC_PROG_LN_SAC_PROG_MAKE_SETAC_PATH_PROG([SPHINX_BUILD], [sphinx-build])AC_SUBST([SPHINX_BUILD])AM_CONDITIONAL([HAVE_SPHINX_BUILD], [ test "x$SPHINX_BUILD" != "x" ])# Checks for libraries.AC_CHECK_LIB([cunit], [CU_initialize_registry],             [have_cunit=yes], [have_cunit=no])AM_CONDITIONAL([HAVE_CUNIT], [ test "x${have_cunit}" = "xyes" ])case "$target" in  *mingw*)    # Required for ntoh*/hton* functions.    LIBS="-lws2_32 $LIBS"    ;;esac# Checks for header files.AC_CHECK_HEADERS([ \  arpa/inet.h \  netinet/in.h \  stddef.h \  stdint.h \  stdlib.h \  string.h \  unistd.h \])# Need winsock2.h for ntoh*/hton* functions.case "$target" in  *mingw*)    AC_CHECK_HEADERS([winsock2.h])    ;;esac# Checks for typedefs, structures, and compiler characteristics.AC_TYPE_SIZE_TAC_TYPE_SSIZE_TAC_TYPE_UINT8_TAC_TYPE_UINT16_TAC_TYPE_UINT32_TAC_TYPE_UINT64_TAC_CHECK_TYPES([ptrdiff_t])AC_C_BIGENDIAN# Checks for library functions.if test "x$cross_compiling" != "xyes"; then  AC_FUNC_MALLOCfiAC_CHECK_FUNCS([ \  memmove \  memset \  ntohl \  ntohs \  htons])AC_CONFIG_FILES([  Makefile  lib/Makefile  lib/libwslay.pc  lib/includes/Makefile  lib/includes/wslay/wslayver.h  tests/Makefile])AC_OUTPUTAC_MSG_NOTICE([summary of build options:    version:        ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE    Host type:      ${host}    Install prefix: ${prefix}    C compiler:     ${CC}    CFlags:         ${CFLAGS}    Library types:  Shared=${enable_shared}, Static=${enable_static}    CUnit:          ${have_cunit}])
 |