123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- # autoconf source script for generating configure
- dnl The package_version file will be automatically synced to the git revision
- dnl by the update_version script when configured in the repository, but will
- dnl remain constant in tarball releases unless it is manually edited.
- m4_define(,
- m4_esyscmd(
- ))
- AC_INIT(,,)
- AC_CONFIG_SRCDIR()
- AC_CONFIG_MACRO_DIR()
- AC_USE_SYSTEM_EXTENSIONS
- AC_SYS_LARGEFILE
- AM_INIT_AUTOMAKE()
- AM_MAINTAINER_MODE()
- LT_INIT
- m4_ifdef(, )
- dnl Library versioning for libtool.
- dnl Please update these for releases.
- dnl CURRENT, REVISION, AGE
- dnl - library source changed -> increment REVISION
- dnl - interfaces added/removed/changed -> increment CURRENT, REVISION = 0
- dnl - interfaces added -> increment AGE
- dnl - interfaces removed -> AGE = 0
- OP_LT_CURRENT=4
- OP_LT_REVISION=4
- OP_LT_AGE=4
- AC_SUBST(OP_LT_CURRENT)
- AC_SUBST(OP_LT_REVISION)
- AC_SUBST(OP_LT_AGE)
- CC_CHECK_CFLAGS_APPEND(
- )
- # Platform-specific tweaks
- case $host in
- *-mingw*)
- # -std=c89 causes some warnings under mingw.
- CC_CHECK_CFLAGS_APPEND()
- # We need WINNT>=0x501 (WindowsXP) for getaddrinfo/freeaddrinfo.
- # It's okay to define this even when HTTP support is disabled, as it only
- # affects header declarations, not linking (unless we actually use some
- # XP-only functions).
- AC_DEFINE_UNQUOTED(_WIN32_WINNT,0x501,
- )
- host_mingw=true
- ;;
- esac
- AM_CONDITIONAL(OP_WIN32, )
- AC_ARG_ENABLE(,
- AS_HELP_STRING(, ),,
- enable_assertions=no)
- AS_IF(,
- )
- AC_ARG_ENABLE(,
- AS_HELP_STRING(, ),,
- enable_http=yes)
- AM_COND_IF(OP_WIN32,
- ,
- )
- # HTTP support requires either clock_gettime or ftime. clock_gettime is
- # used only if time.h defines CLOCK_REALTIME and the function is available
- # in the standard library; on platforms such as glibc < 2.17 where -lrt
- # or another library would be required, ftime will be used.
- AS_IF(,
- )
- m4_ifndef(,
-
- )
- AS_IF(,
- )
- AM_CONDITIONAL(OP_ENABLE_HTTP, )
- AC_SUBST()
- PKG_CHECK_MODULES(, )
- AC_ARG_ENABLE(,
- AS_HELP_STRING(, ),,
- enable_fixed_point=no)
- AC_ARG_ENABLE(,
- AS_HELP_STRING(, ),,
- enable_float=yes)
- AS_IF(,
-
- )
- AS_IF(,
- ,
-
- )
- AC_ARG_ENABLE(,
- AS_HELP_STRING(, ),,
- enable_examples=yes)
- AM_CONDITIONAL(, )
- AS_CASE(,
- ,,
- ,,
- )
- AC_SUBST()
- CC_ATTRIBUTE_VISIBILITY(,
- )
- dnl Check for doxygen
- AC_ARG_ENABLE(,
- AS_HELP_STRING(, ),,
-
- )
- AS_IF(,
- ,
- )
- AM_CONDITIONAL(, )
- AC_CONFIG_FILES(
- )
- AC_CONFIG_HEADERS()
- AC_OUTPUT
- AC_MSG_NOTICE(
- )
|