libzdb-3.4.0/000755 000765 000024 00000000000 14652557242 013073 5ustar00haukstaff000000 000000 libzdb-3.4.0/zdb.pc.in000644 000765 000024 00000000365 13445042537 014602 0ustar00haukstaff000000 000000 prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ Name: libzdb Description: A thread-safe multi database connection pool library Version: @VERSION@ Requires: Libs: -L${libdir} -lzdb Cflags: -I${includedir}/zdb libzdb-3.4.0/configure.ac000644 000765 000024 00000045476 14652553226 015377 0ustar00haukstaff000000 000000 # Copyright (C) Tildeslash Ltd. All rights reserved. AC_PREREQ([2.53]) AC_INIT([libzdb], [3.4.0], [bugs-libzdb@tildeslash.com]) AC_SUBST([VERSION_MAJOR], [`echo $PACKAGE_VERSION | cut -d. -f1`]) AC_SUBST([VERSION_MINOR], [`echo $PACKAGE_VERSION | cut -d. -f2`]) AC_SUBST([VERSION_REVISION], [`echo $PACKAGE_VERSION | cut -d. -f3`]) AC_CONFIG_AUX_DIR(config) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([src/Config.h]) AC_CONFIG_COMMANDS([libtool_patch],[test `uname` = "OpenBSD" && perl -p -i -e "s/deplibs_check_method=.*/deplibs_check_method=pass_all/g" libtool]) # ------------------------------------------------------------------------ # Architecture/OS # ------------------------------------------------------------------------ case `uname` in Linux*) AC_DEFINE([LINUX], 1, [Define to 1 if the system is Linux]) ;; FreeBSD*) AC_DEFINE([FREEBSD], 1, [Define to 1 if the system is FreeBSD]) ;; OpenBSD*) AC_DEFINE([OPENBSD], 1, [Define to 1 if the system is OpenBSD]) ;; Darwin*) AC_DEFINE([DARWIN], 1, [Define to 1 if the system is OSX]) LDFLAGS="$LDFLAGS -Wl,-search_paths_first" ondarwin=1 ;; SunOS*) AC_DEFINE([SOLARIS], 1, [Define to 1 if the system is SOLARIS]) ;; NetBSD*) AC_DEFINE([NETBSD], 1, [Define to 1 if the system is NETBSD]) ;; AIX*) AC_DEFINE([AIX], 1, [Define to 1 if the system is AIX]) ;; esac # --------------------------------------------------------------------------- # Compiler # --------------------------------------------------------------------------- AC_PROG_CC AC_PROG_CXX AC_C_CONST AC_C_BIGENDIAN AS_IF([test "`uname`" != "Darwin"], [ # Not Darwin, so use _GNU_SOURCE CFLAGS="$CFLAGS -D_GNU_SOURCE" ], [ # On Darwin, use _DARWIN_C_SOURCE and _POSIX_C_SOURCE CFLAGS="$CFLAGS -D_DARWIN_C_SOURCE -D_POSIX_C_SOURCE=199506L" ] ) # Compiler; tune warnings CFLAGS="$CFLAGS -Wall -Wunused"; # Allow intermix unsigned char and char CFLAGS="$CFLAGS -Wno-pointer-sign"; # enable fortification level 2 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" # Require C11 and use C17 if available AC_COMPUTE_INT([STDC_VERSION],[__STDC_VERSION__],,[STDC_VERSION=0]) AS_IF([test "$STDC_VERSION" -ge 201710], [CFLAGS="$CFLAGS -std=c17"], [AS_IF([test "$STDC_VERSION" -ge 201112], [CFLAGS="$CFLAGS -std=c11"], [AC_MSG_ERROR([Your compiler does not support C11 or later])] )] ) # Require C++20 or later to build C++ test code and use zdbpp.h AC_LANG_PUSH([C++]) AC_CACHE_CHECK([whether the C++ compiler supports C++20], [ac_cv_cxx_compile_cxx20], [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ #include #if __cplusplus < 202002L #error C++20 is not supported #endif ]])], [AC_MSG_ERROR([Your compiler does not support C++20 or later])], [ac_cv_cxx_compile_cxx20=yes])]) CXXFLAGS="$CXXFLAGS -std=c++20" AC_LANG_POP([C++]) # Check for C99 headers AC_CHECK_HEADERS([stdint.h stdbool.h], [], [AC_MSG_ERROR([toolchain does not have C99 headers])]) # Check for C11 atomic operations support AC_CHECK_HEADERS([stdatomic.h], [], [AC_MSG_ERROR([toolchain does not support C11 atomic operations])]) # --------------------------------------------------------------------------- # Programs # --------------------------------------------------------------------------- AC_PATH_PROG([RE2C], [re2c], [no], [$PATH:/usr/local/bin:/usr/bin]) if test "x$RE2C" = "xno"; then # Require re2c unless URL.c and Time.c already are built if test ! -f src/net/URL.c -a ! -f src/system/Time.c; then AC_MSG_ERROR([Libzdb require re2c. Download re2c from http://re2c.org/ or use your package manager]) fi fi AC_PROG_LEX([noyywrap]) if test -z "${LEXLIB+set}"; then # Require flex unless lex.yy.c already is built if test ! -f ./tools/filterh/lex.yy.c; then AC_MSG_ERROR([flex is required. Download from https://www.gnu.org/software/flex/ or use your package manager]) fi fi # --------------------------------------------------------------------------- # Tools # --------------------------------------------------------------------------- if test ! -d ./tools/bin/ then mkdir ./tools/bin || AC_MSG_ERROR([Failed to create ./tools/bin]) fi # Build tools in-place in a subshell if test ! -f ./tools/filterh/lex.yy.c; then (cd ./tools/filterh && $LEX filterh.l && $CC lex.yy.c -o ../bin/filterh && rm -f lex.yy.o) || AC_MSG_ERROR([Failed to build tools]) else (cd ./tools/filterh && $CC lex.yy.c -o ../bin/filterh && rm -f lex.yy.o) || AC_MSG_ERROR([Failed to build tools]) fi # Assert that we succeded building filterh test -f ./tools/bin/filterh || AC_MSG_ERROR([Failed to build tools]) # --------------------------------------------------------------------------- # Libtool # --------------------------------------------------------------------------- LT_INIT # --------------------------------------------------------------------------- # Build options # --------------------------------------------------------------------------- DBLDFLAGS="-lm " AC_ARG_ENABLE(optimized, AS_HELP_STRING([--enable-optimized], [Build software optimized]), [ if test "x$enableval" = "xyes" ; then CFLAGS=`echo $CFLAGS|sed 's/\-g[[^ ]]*//g'` CFLAGS=`echo $CFLAGS|sed 's/\-O.//'` CFLAGS="$CFLAGS -O3" OPTIMIZED=1 else OPTIMIZED=0 fi ], [ OPTIMIZED=0 ] ) AC_ARG_ENABLE(profiling, AS_HELP_STRING([--enable-profiling], [Build with debug and profiling options]), [ if test "x$enableval" = "xyes" ; then AC_MSG_CHECKING([whether the compiler supports profiling options]) svd_CFLAGS="$CFLAGS" CFLAGS="-pg $CFLAGS" AC_RUN_IFELSE([AC_LANG_PROGRAM([], [return 0;])], [ AC_MSG_RESULT([yes]) CFLAGS=`echo $CFLAGS|sed 's/-O.//'` CFLAGS="$CFLAGS -g" PROFILE=1 ], [ AC_MSG_RESULT([no]) CFLAGS="$svd_CFLAGS" PROFILE=0 ]) else PROFILE=0 fi ], [ PROFILE=0 ] ) AC_ARG_ENABLE([zild], AS_HELP_STRING([--enable-zild], [Reduce visibility of objects for linking with the zild app server. Require gcc version >= 4.x or clang. This is an internal Tildeslash build option and should NOT be used by a third-party]), [ if test "x$enableval" = "xyes" ; then ZILD_PROTECT=1 AC_DEFINE([PACKAGE_PROTECTED], 1, [Define to 1 to package protect (hide) non-api objects]) AC_DEFINE([ZILD_PACKAGE_PROTECTED], 1, [Define to 1 to hide objects for linking with zild]) else ZILD_PROTECT=0 fi ],[ZILD_PROTECT=0] ) AM_CONDITIONAL([WITH_ZILD], test $ZILD_PROTECT -eq 1) AC_ARG_ENABLE([protected], AS_HELP_STRING([--enable-protected], [Package protect non-API objects. Require gcc version >= 4.x or clang. This option hide objects in the DSO which are not part of the API and not to be exported. The rationale is to optimize the ABI and protect non-public methods of the DSO and thereby reduce the potential for namespace conflicts for clients linking with the library. Recommend]), [ if test "x$enableval" = "xyes" ; then PROTECT=1 AC_DEFINE([PACKAGE_PROTECTED], 1, [Define to 1 to package protect (hide) non-api objects]) else PROTECT=0 fi ],[PROTECT=0] ) AC_ARG_ENABLE([openssl], AS_HELP_STRING([--enable-openssl(=)], [Link libzdb with openssl. If database libraries were linked static, libzdb may have to link with openssl to support crypto and ssl functionality in SQL client libraries. An optional path argument may be given to specify the top-level directory to search for openssl to link with]), [ if test "x$enableval" = "xno" ; then OPENSSL=0 else OPENSSL=1 if test "x$enableval" = "xyes"; then AC_CHECK_LIB([ssl], [SSL_CTX_new], [], [AC_MSG_ERROR([libssl not found])]) AC_CHECK_LIB([crypto], [SHA1_Init], [], [AC_MSG_ERROR([libcrypto not found])]) else AC_MSG_CHECKING([for openssl in $enableval]) LDFLAGS="-L$enableval/lib -lssl -lcrypto $LDFLAGS" CPPFLAGS="-I$enableval/include $CPPFLAGS" if test -r "$enableval/lib/libssl.a" -a -r "$enableval/lib/libcrypto.a"; then AC_MSG_RESULT([ok]) else AC_MSG_ERROR([openssl not found in $enableval]) fi fi fi ],[OPENSSL=0] ) AC_ARG_ENABLE(sqliteunlock, AS_HELP_STRING([--enable-sqliteunlock], [Enable the SQLite unlock notification API (requires SQLite >= 3.6.12 compiled with the SQLITE_ENABLE_UNLOCK_NOTIFY C-preprocessor symbol). Using this option will greatly improve SQLite concurrency when libzdb and SQLite are used from a multi-threaded program.]), [ if test "x$enableval" = "xyes" ; then SQLITEUNLOCK=1 CFLAGS="$CFLAGS -DSQLITEUNLOCK" else SQLITEUNLOCK=0 fi ], [ SQLITEUNLOCK=0 ] ) if test $PROTECT -eq 0 -a $ZILD_PROTECT -eq 0; then test_build=1 UNIT_TEST="test" else test_build=0 UNIT_TEST="" fi AC_SUBST(UNIT_TEST) # ------------------------------------------------------------------------ # Functions # ------------------------------------------------------------------------ # Require a working setjmp AC_CACHE_CHECK([setjmp is available], [libzdb_cv_setjmp_available], [AC_RUN_IFELSE([AC_LANG_PROGRAM( [[#include ]], [[jmp_buf env; setjmp(env);]])], [AC_MSG_RESULT(yes)], [AC_MSG_FAILURE([setjmp is required])], [AC_MSG_ERROR(cross-compiling: please set 'libzdb_cv_setjmp_available=[yes|no]')])]) # Require that we have vsnprintf that conforms to c11. I.e. does bounds check AC_CACHE_CHECK([vsnprintf is c11 conformant], [libzdb_cv_vsnprintf_c11_conformant], [AC_RUN_IFELSE([AC_LANG_PROGRAM( [[#include #include ]], [[char t[1]; va_list ap; int n = vsnprintf(t, 1, "hello", ap); if(n == 5) return 0;return 1;]])], [AC_MSG_RESULT(yes)], [AC_MSG_FAILURE([vsnprintf does not conform to c11])], [AC_MSG_ERROR(cross-compiling: please set 'libzdb_cv_vsnprintf_c11_conformant=[yes|no]')])]) AC_CHECK_FUNCS([timegm]) # --------------------------------------------------------------------------- # Libraries # --------------------------------------------------------------------------- AC_SEARCH_LIBS([pthread_create], [pthread], [], [AC_MSG_ERROR([POSIX thread library is required])]) # Database Libraries postgresql="yes" check_postgres_config() { AC_PATH_PROG([PGCONFIG], [pg_config], [no], [$PATH:/usr/local/bin:/usr/local/pgsql/bin]) if test "x$PGCONFIG" = "xno" then AC_MSG_WARN([pg_config is required to build libzdb with postgresql]) postgresql="no" fi } AC_MSG_CHECKING(for postgresql) AC_ARG_WITH([postgresql], AS_HELP_STRING([--with-postgresql(=)], [Path is optional and if given should specify the full path to the PostgreSQL configure script, pg_config. E.g. --with-postgresql=//pg_config]), [ if test "xno" = "x$with_postgresql"; then AC_MSG_RESULT([no]) postgresql="no" else AC_MSG_RESULT([yes]) AC_CHECK_FILE([$with_postgresql], [PGCONFIG=$with_postgresql],[check_postgres_config]) fi ], [ AC_MSG_RESULT([yes]) check_postgres_config ]) if test "xyes" = "x$postgresql"; then svd_CPPFLAGS=$CPPFLAGS svd_LDFLAGS=$LDFLAGS CPPFLAGS="-I`$PGCONFIG --includedir` $CPPFLAGS" LDFLAGS="-L`$PGCONFIG --libdir` $LDFLAGS" AC_CHECK_HEADERS([libpq-fe.h], [], [postgresql="no"]) if test "xyes" = "x$postgresql"; then DBCPPFLAGS="$DBCPPFLAGS -I`$PGCONFIG --includedir`" DBLDFLAGS="$DBLDFLAGS -L`$PGCONFIG --libdir` -lpq" AC_DEFINE([HAVE_LIBPQ], 1, [Define to 1 to enable postgresql]) else CPPFLAGS=$svd_CPPFLAGS LDFLAGS=$svd_LDFLAGS fi fi AM_CONDITIONAL([WITH_POSTGRESQL], test "xyes" = "x$postgresql") sqlite="yes" AC_MSG_CHECKING(for SQLite3) AC_ARG_WITH([sqlite], AS_HELP_STRING([--with-sqlite=], [Path is optional and if given should specify the full path to the SQLite installation. E.g. /usr/local/sqlite3]), [ if test "xno" = "x$with_sqlite"; then AC_MSG_RESULT([no]) sqlite="no" else AC_MSG_RESULT([yes]) AC_CHECK_FILE([$with_sqlite], [ svd_LDFLAGS=$LDFLAGS svd_CPPFLAGS=$CPPFLAGS LDFLAGS="-L$with_sqlite/lib $LDFLAGS" CPPFLAGS="-I$with_sqlite/include $CPPFLAGS" AC_SEARCH_LIBS([sqlite3_open], [sqlite3], [ DBCPPFLAGS="$DBCPPFLAGS -I$with_sqlite/include" DBLDFLAGS="$DBLDFLAGS -L$with_sqlite/lib/ -lsqlite3" ],[sqlite="no"],[-ldl -lm]) LDFLAGS=$svd_LDFLAGS CPPFLAGS=$svd_CPPFLAGS ], AC_SEARCH_LIBS([sqlite3_open], [sqlite3], [], [sqlite="no"], [-ldl -lm])) fi ], [ AC_MSG_RESULT([yes]) AC_SEARCH_LIBS([sqlite3_open], [sqlite3], [], [sqlite="no"]) ]) if test "xyes" = "x$sqlite"; then AC_DEFINE([HAVE_LIBSQLITE3], 1, [Define to 1 to enable sqlite3]) AC_SEARCH_LIBS([sqlite3_soft_heap_limit], [sqlite3], [AC_DEFINE([HAVE_SQLITE3_SOFT_HEAP_LIMIT], [1], [sqlite3_soft_heap_limit])], [], [-ldl -lm]) AC_SEARCH_LIBS([sqlite3_soft_heap_limit64], [sqlite3], [AC_DEFINE([HAVE_SQLITE3_SOFT_HEAP_LIMIT64], [1], [sqlite3_soft_heap_limit64])], [], [-ldl -lm]) AC_SEARCH_LIBS([sqlite3_errstr], [sqlite3], [AC_DEFINE([HAVE_SQLITE3_ERRSTR], [1], [sqlite3_errstr])], [], [-ldl -lm]) fi AM_CONDITIONAL([WITH_SQLITE], test "xyes" = "x$sqlite") mysql="yes" check_mysql_config() { AC_PATH_PROG([MYSQLCONFIG], [mysql_config], [no], [$PATH:/usr/local/bin:/usr/local/mysql/bin]) if test "x$MYSQLCONFIG" = "xno" then AC_MSG_WARN([mysql_config is required to build libzdb with mysql]) mysql="no" fi } AC_MSG_CHECKING(for mysql) AC_ARG_WITH([mysql], AS_HELP_STRING([--with-mysql(=)], [Path is optional and if given should specify the full path to the MySQL configure script, mysql_config. E.g. --with-mysql=//mysql_config]), [ if test "xno" = "x$with_mysql"; then AC_MSG_RESULT([no]) mysql="no" else AC_MSG_RESULT([yes]) AC_CHECK_FILE([$with_mysql], [MYSQLCONFIG=$with_mysql], [check_mysql_config]) fi ], [ AC_MSG_RESULT([yes]) check_mysql_config ]) if test "xyes" = "x$mysql"; then svd_CPPFLAGS=$CPPFLAGS svd_LDFLAGS=$LDFLAGS CPPFLAGS="`$MYSQLCONFIG --include` $CPPFLAGS" LDFLAGS="`$MYSQLCONFIG --libs` $LDFLAGS" AC_CHECK_HEADERS([mysql.h], [], [mysql="no"]) if test "xyes" = "x$mysql"; then DBCPPFLAGS="$DBCPPFLAGS `$MYSQLCONFIG --include`" DBLDFLAGS="$DBLDFLAGS `$MYSQLCONFIG --libs`" AC_DEFINE([HAVE_LIBMYSQLCLIENT], 1, [Define to 1 to enable mysql]) else CPPFLAGS=$svd_CPPFLAGS LDFLAGS=$svd_LDFLAGS fi fi AM_CONDITIONAL([WITH_MYSQL], test "xyes" = "x$mysql") oracle="yes" AC_MSG_CHECKING(for oracle) AX_LIB_ORACLE_OCI if test -n "$ORACLE_OCI_CFLAGS" -a -n "$ORACLE_OCI_LDFLAGS"; then DBCPPFLAGS="$DBCPPFLAGS $ORACLE_OCI_CFLAGS" DBLDFLAGS="$DBLDFLAGS $ORACLE_OCI_LDFLAGS" AC_DEFINE([HAVE_ORACLE], 1, [Define to 1 to enable oracle]) else oracle="no" fi AM_CONDITIONAL([WITH_ORACLE], test "xyes" = "x$oracle") # Test if any database system was found if test "xno" = "x$postgresql" -a "xno" = "x$mysql" -a "xno" = "x$sqlite" -a "xno" = "x$oracle"; then AC_MSG_ERROR([No available database found or selected. Try configure --help]) fi AC_SUBST(DBLDFLAGS) AC_SUBST(DBCPPFLAGS) # --------------------------------------------------------------------------- # Data Types # --------------------------------------------------------------------------- AC_CHECK_TYPES([uchar_t]) AC_CHECK_MEMBERS([struct tm.tm_gmtoff], [], [], [[#include ]]) # --------------------------------------------------------------------------- # Outputs # --------------------------------------------------------------------------- AC_CONFIG_HEADERS(src/xconfig.h) AC_CONFIG_FILES([ src/zdb.h Makefile test/Makefile zdb.pc ]) AC_OUTPUT AX_INFO_GPL() AX_INFO_TITLE([Libzdb is configured as follows]) AX_INFO_ENABLED([Optimized:], [test $OPTIMIZED -eq 1]) AX_INFO_ENABLED([Protected:], [test $PROTECT -eq 1 -o $ZILD_PROTECT -eq 1]) AX_INFO_ENABLED([Profiling:], [test $PROFILE -eq 1]) AX_INFO_ENABLED([Zild:], [test $ZILD_PROTECT -eq 1]) AX_INFO_ENABLED([Sqlite3 unlock:], [test $SQLITEUNLOCK -eq 1]) AX_INFO_ENABLED([Openssl:], [test $OPENSSL -eq 1]) AX_INFO_ENABLED([Unit Tests Build:], [test $test_build -eq 1]) AX_INFO_SEPARATOR() AX_INFO_ENABLED([SQLite3:], [test \"x$sqlite\" = \"xyes\"]) AX_INFO_ENABLED([MySQL:], [test \"x$mysql\" = \"xyes\"]) AX_INFO_ENABLED([PostgreSQL:], [test \"x$postgresql\" = \"xyes\"]) AX_INFO_ENABLED([Oracle:], [test \"x$oracle\" = \"xyes\"]) AX_INFO_BREAK() libzdb-3.4.0/tools/000775 000765 000024 00000000000 14652557232 014234 5ustar00haukstaff000000 000000 libzdb-3.4.0/bootstrap000755 000765 000024 00000000620 13445042537 015027 0ustar00haukstaff000000 000000 #!/bin/sh # Use this script to re-create configure. Requires the following auto-tools, # autoconf >= 2.59 # automake >= 1.9 # libtool >= 1.4 glibtoolize -f 2>/dev/null || libtoolize -f if aclocal -I config && autoheader && automake --foreign --add-missing --copy && autoconf then echo "Success" else echo "Bootstrapping Build System failed" exit 1 fi libzdb-3.4.0/test/000775 000765 000024 00000000000 14652557242 014054 5ustar00haukstaff000000 000000 libzdb-3.4.0/configure000755 000765 000024 00002475451 14652557230 015021 0ustar00haukstaff000000 000000 #! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.72 for libzdb 3.4.0. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, # Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case e in #( e) case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case e in #( e) case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ) then : else case e in #( e) exitcode=1; echo positional parameters were not saved. ;; esac fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) test x\"\$blah\" = xblah || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" if (eval "$as_required") 2>/dev/null then : as_have_required=yes else case e in #( e) as_have_required=no ;; esac fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : else case e in #( e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$as_shell as_have_required=yes if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null then : break 2 fi fi done;; esac as_found=false done IFS=$as_save_IFS if $as_found then : else case e in #( e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes fi ;; esac fi if test "x$CONFIG_SHELL" != x then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno then : printf "%s\n" "$0: This script requires a shell more modern than all" printf "%s\n" "$0: the shells that I found on your system." if test ${ZSH_VERSION+y} ; then printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." else printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and $0: bugs-libzdb@tildeslash.com about your system, including $0: any error possibly output before this message. Then $0: install a modern shell, or manually run the script $0: under such a shell if you do have one." fi exit 1 fi ;; esac fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null then : eval 'as_fn_append () { eval $1+=\$2 }' else case e in #( e) as_fn_append () { eval $1=\$$1\$2 } ;; esac fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null then : eval 'as_fn_arith () { as_val=$(( $* )) }' else case e in #( e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } ;; esac fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' t clear :clear s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" as_tr_sh="eval sed '$as_sed_sh'" # deprecated SHELL=${CONFIG_SHELL-/bin/sh} test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='libzdb' PACKAGE_TARNAME='libzdb' PACKAGE_VERSION='3.4.0' PACKAGE_STRING='libzdb 3.4.0' PACKAGE_BUGREPORT='bugs-libzdb@tildeslash.com' PACKAGE_URL='' ac_unique_file="src/Config.h" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_STDIO_H # include #endif #ifdef HAVE_STDLIB_H # include #endif #ifdef HAVE_STRING_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_header_c_list= ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS DBCPPFLAGS DBLDFLAGS WITH_ORACLE_FALSE WITH_ORACLE_TRUE ORACLE_OCI_LDFLAGS ORACLE_OCI_CFLAGS ORACLE_OCI_VERSION WITH_MYSQL_FALSE WITH_MYSQL_TRUE MYSQLCONFIG WITH_SQLITE_FALSE WITH_SQLITE_TRUE WITH_POSTGRESQL_FALSE WITH_POSTGRESQL_TRUE PGCONFIG UNIT_TEST WITH_ZILD_FALSE WITH_ZILD_TRUE CXXCPP LT_SYS_LIBRARY_PATH OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB ac_ct_AR AR DLLTOOL OBJDUMP FILECMD LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED host_os host_vendor host_cpu host build_os build_vendor build_cpu build LIBTOOL LEXLIB LEX_OUTPUT_ROOT LEX RE2C am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE ac_ct_CXX CXXFLAGS CXX am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V CSCOPE ETAGS CTAGS am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM VERSION_REVISION VERSION_MINOR VERSION_MAJOR target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL am__quote' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_dependency_tracking enable_shared enable_static with_pic enable_fast_install with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock enable_optimized enable_profiling enable_zild enable_protected enable_openssl enable_sqliteunlock with_postgresql with_sqlite with_mysql with_oci with_oci_include with_oci_lib ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CXX CXXFLAGS CCC LT_SYS_LIBRARY_PATH CXXCPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: '$ac_option' Try '$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: '$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: '$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF 'configure' configures libzdb 3.4.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print 'checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for '--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or '..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, 'make install' will install all the files in '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify an installation prefix other than '$ac_default_prefix' using '--prefix', for instance '--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/libzdb] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of libzdb 3.4.0:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-optimized Build software optimized --enable-profiling Build with debug and profiling options --enable-zild Reduce visibility of objects for linking with the zild app server. Require gcc version >= 4.x or clang. This is an internal Tildeslash build option and should NOT be used by a third-party --enable-protected Package protect non-API objects. Require gcc version >= 4.x or clang. This option hide objects in the DSO which are not part of the API and not to be exported. The rationale is to optimize the ABI and protect non-public methods of the DSO and thereby reduce the potential for namespace conflicts for clients linking with the library. Recommend --enable-openssl(=) Link libzdb with openssl. If database libraries were linked static, libzdb may have to link with openssl to support crypto and ssl functionality in SQL client libraries. An optional path argument may be given to specify the top-level directory to search for openssl to link with --enable-sqliteunlock Enable the SQLite unlock notification API (requires SQLite >= 3.6.12 compiled with the SQLITE_ENABLE_UNLOCK_NOTIFY C-preprocessor symbol). Using this option will greatly improve SQLite concurrency when libzdb and SQLite are used from a multi-threaded program. Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-aix-soname=aix|svr4|both shared library versioning (aka "SONAME") variant to provide on AIX, [default=aix]. --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --with-postgresql(=) Path is optional and if given should specify the full path to the PostgreSQL configure script, pg_config. E.g. --with-postgresql=//pg_config --with-sqlite= Path is optional and if given should specify the full path to the SQLite installation. E.g. /usr/local/sqlite3 --with-mysql(=) Path is optional and if given should specify the full path to the MySQL configure script, mysql_config. E.g. --with-mysql=//mysql_config --with-oci=[ARG] use Oracle OCI API from given Oracle home (ARG=path); use existing ORACLE_HOME (ARG=yes); disable Oracle OCI support (ARG=no) --with-oci-include=[DIR] use Oracle OCI API headers from given path --with-oci-lib=[DIR] use Oracle OCI API libraries from given path Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CXX C++ compiler command CXXFLAGS C++ compiler flags LT_SYS_LIBRARY_PATH User-defined run-time library search path. CXXCPP C++ preprocessor Use these variables to override the choices made by 'configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for configure.gnu first; this name is used for a wrapper for # Metaconfig's "Configure" on case-insensitive file systems. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF libzdb configure 3.4.0 generated by GNU Autoconf 2.72 Copyright (C) 2023 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext then : ac_retval=0 else case e in #( e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 ;; esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext then : ac_retval=0 else case e in #( e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 ;; esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext } then : ac_retval=0 else case e in #( e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 ;; esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_try_run LINENO # ---------------------- # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that # executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } then : ac_retval=0 else case e in #( e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status ;; esac fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" else case e in #( e) eval "$3=no" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES # -------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes # INCLUDES, setting VAR accordingly. Returns whether the value could be # computed ac_fn_c_compute_int () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_hi=$ac_mid; break else case e in #( e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_lo=$ac_mid; break else case e in #( e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done else case e in #( e) ac_lo= ac_hi= ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_hi=$ac_mid else case e in #( e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; '') ac_retval=1 ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 static long int longval (void) { return $2; } static unsigned long int ulongval (void) { return $2; } #include #include int main (void) { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (($2) < 0) { long int i = longval (); if (i != ($2)) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ($2)) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : echo >>conftest.val; read $3 &5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (void); below. */ #include #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (void); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main (void) { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval "$3=yes" else case e in #( e) eval "$3=no" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ;; esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_cxx_try_cpp LINENO # ------------------------ # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err } then : ac_retval=0 else case e in #( e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 ;; esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_cpp # ac_fn_cxx_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext } then : ac_retval=0 else case e in #( e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 ;; esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_link # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else case e in #( e) eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else case e in #( e) eval "$3=yes" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES # ---------------------------------------------------- # Tries to find if the field MEMBER exists in type AGGR, after including # INCLUDES, setting cache variable VAR accordingly. ac_fn_c_check_member () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 printf %s "checking for $2.$3... " >&6; } if eval test \${$4+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int main (void) { static $2 ac_aggr; if (ac_aggr.$3) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$4=yes" else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int main (void) { static $2 ac_aggr; if (sizeof ac_aggr.$3) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$4=yes" else case e in #( e) eval "$4=no" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi eval ac_res=\$$4 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_member ac_configure_args_raw= for ac_arg do case $ac_arg in *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append ac_configure_args_raw " '$ac_arg'" done case $ac_configure_args_raw in *$as_nl*) ac_safe_unquote= ;; *) ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. ac_unsafe_a="$ac_unsafe_z#~" ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; esac cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by libzdb $as_me 3.4.0, which was generated by GNU Autoconf 2.72. Invocation command line was $ $0$ac_configure_args_raw _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac printf "%s\n" "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Sanitize IFS. IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo printf "%s\n" "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then printf "%s\n" "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then printf "%s\n" "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && printf "%s\n" "$as_me: caught signal $ac_signal" printf "%s\n" "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h printf "%s\n" "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then ac_site_files="$CONFIG_SITE" elif test "x$prefix" != xNONE; then ac_site_files="$prefix/share/config.site $prefix/etc/config.site" else ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi for ac_site_file in $ac_site_files do case $ac_site_file in #( */*) : ;; #( *) : ac_site_file=./$ac_site_file ;; esac if test -f "$ac_site_file" && test -r "$ac_site_file"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See 'config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Test code for whether the C compiler supports C89 (global declarations) ac_c_conftest_c89_globals=' /* Does the compiler advertise C89 conformance? Do not test the value of __STDC__, because some compilers set it to 0 while being otherwise adequately conformant. */ #if !defined __STDC__ # error "Compiler does not advertise C89 conformance" #endif #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*rcsopen) (struct buf *, struct stat *, int); static char *e (char **p, int i) { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* C89 style stringification. */ #define noexpand_stringify(a) #a const char *stringified = noexpand_stringify(arbitrary+token=sequence); /* C89 style token pasting. Exercises some of the corner cases that e.g. old MSVC gets wrong, but not very hard. */ #define noexpand_concat(a,b) a##b #define expand_concat(a,b) noexpand_concat(a,b) extern int vA; extern int vbee; #define aye A #define bee B int *pvA = &expand_concat(v,aye); int *pvbee = &noexpand_concat(v,bee); /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not \xHH hex character constants. These do not provoke an error unfortunately, instead are silently treated as an "x". The following induces an error, until -std is added to get proper ANSI mode. Curiously \x00 != x always comes out true, for an array size at least. It is necessary to write \x00 == 0 to get something that is true only with -std. */ int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) '\''x'\'' int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), int, int);' # Test code for whether the C compiler supports C89 (body of main). ac_c_conftest_c89_main=' ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); ' # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' /* Does the compiler advertise C99 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif // See if C++-style comments work. #include extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); extern void free (void *); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare // FILE and stderr. #define debug(...) dprintf (2, __VA_ARGS__) #define showlist(...) puts (#__VA_ARGS__) #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) static void test_varargs_macros (void) { int x = 1234; int y = 5678; debug ("Flag"); debug ("X = %d\n", x); showlist (The first, second, and third items.); report (x>y, "x is %d but y is %d", x, y); } // Check long long types. #define BIG64 18446744073709551615ull #define BIG32 4294967295ul #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) #if !BIG_OK #error "your preprocessor is broken" #endif #if BIG_OK #else #error "your preprocessor is broken" #endif static long long int bignum = -9223372036854775807LL; static unsigned long long int ubignum = BIG64; struct incomplete_array { int datasize; double data[]; }; struct named_init { int number; const wchar_t *name; double average; }; typedef const char *ccp; static inline int test_restrict (ccp restrict text) { // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) continue; return 0; } // Check varargs and va_copy. static bool test_varargs (const char *format, ...) { va_list args; va_start (args, format); va_list args_copy; va_copy (args_copy, args); const char *str = ""; int number = 0; float fnumber = 0; while (*format) { switch (*format++) { case '\''s'\'': // string str = va_arg (args_copy, const char *); break; case '\''d'\'': // int number = va_arg (args_copy, int); break; case '\''f'\'': // float fnumber = va_arg (args_copy, double); break; default: break; } } va_end (args_copy); va_end (args); return *str && number && fnumber; } ' # Test code for whether the C compiler supports C99 (body of main). ac_c_conftest_c99_main=' // Check bool. _Bool success = false; success |= (argc != 0); // Check restrict. if (test_restrict ("String literal") == 0) success = true; char *restrict newvar = "Another string"; // Check varargs. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); test_varargs_macros (); // Check flexible array members. struct incomplete_array *ia = malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; // Work around memory leak warnings. free (ia); // Check named initializers. struct named_init ni = { .number = 34, .name = L"Test wide string", .average = 543.34343, }; ni.number = 58; int dynamic_array[ni.number]; dynamic_array[0] = argv[0][0]; dynamic_array[ni.number - 1] = 543; // work around unused variable warnings ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' || dynamic_array[ni.number - 1] != 543); ' # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' /* Does the compiler advertise C11 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif // Check _Alignas. char _Alignas (double) aligned_as_double; char _Alignas (0) no_special_alignment; extern char aligned_as_int; char _Alignas (0) _Alignas (int) aligned_as_int; // Check _Alignof. enum { int_alignment = _Alignof (int), int_array_alignment = _Alignof (int[100]), char_alignment = _Alignof (char) }; _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); // Check _Noreturn. int _Noreturn does_not_return (void) { for (;;) continue; } // Check _Static_assert. struct test_static_assert { int x; _Static_assert (sizeof (int) <= sizeof (long int), "_Static_assert does not work in struct"); long int y; }; // Check UTF-8 literals. #define u8 syntax error! char const utf8_literal[] = u8"happens to be ASCII" "another string"; // Check duplicate typedefs. typedef long *long_ptr; typedef long int *long_ptr; typedef long_ptr long_ptr; // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. struct anonymous { union { struct { int i; int j; }; struct { int k; long int l; } w; }; int m; } v1; ' # Test code for whether the C compiler supports C11 (body of main). ac_c_conftest_c11_main=' _Static_assert ((offsetof (struct anonymous, i) == offsetof (struct anonymous, w.k)), "Anonymous union alignment botch"); v1.i = 2; v1.w.k = 5; ok |= v1.i != 5; ' # Test code for whether the C compiler supports C11 (complete). ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} ${ac_c_conftest_c11_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} ${ac_c_conftest_c11_main} return ok; } " # Test code for whether the C compiler supports C99 (complete). ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} return ok; } " # Test code for whether the C compiler supports C89 (complete). ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} return ok; } " # Test code for whether the C++ compiler supports C++98 (global declarations) ac_cxx_conftest_cxx98_globals=' // Does the compiler advertise C++98 conformance? #if !defined __cplusplus || __cplusplus < 199711L # error "Compiler does not advertise C++98 conformance" #endif // These inclusions are to reject old compilers that // lack the unsuffixed header files. #include #include // and are *not* freestanding headers in C++98. extern void assert (int); namespace std { extern int strcmp (const char *, const char *); } // Namespaces, exceptions, and templates were all added after "C++ 2.0". using std::exception; using std::strcmp; namespace { void test_exception_syntax() { try { throw "test"; } catch (const char *s) { // Extra parentheses suppress a warning when building autoconf itself, // due to lint rules shared with more typical C programs. assert (!(strcmp) (s, "test")); } } template struct test_template { T const val; explicit test_template(T t) : val(t) {} template T add(U u) { return static_cast(u) + val; } }; } // anonymous namespace ' # Test code for whether the C++ compiler supports C++98 (body of main) ac_cxx_conftest_cxx98_main=' assert (argc); assert (! argv[0]); { test_exception_syntax (); test_template tt (2.0); assert (tt.add (4) == 6.0); assert (true && !false); } ' # Test code for whether the C++ compiler supports C++11 (global declarations) ac_cxx_conftest_cxx11_globals=' // Does the compiler advertise C++ 2011 conformance? #if !defined __cplusplus || __cplusplus < 201103L # error "Compiler does not advertise C++11 conformance" #endif namespace cxx11test { constexpr int get_val() { return 20; } struct testinit { int i; double d; }; class delegate { public: delegate(int n) : n(n) {} delegate(): delegate(2354) {} virtual int getval() { return this->n; }; protected: int n; }; class overridden : public delegate { public: overridden(int n): delegate(n) {} virtual int getval() override final { return this->n * 2; } }; class nocopy { public: nocopy(int i): i(i) {} nocopy() = default; nocopy(const nocopy&) = delete; nocopy & operator=(const nocopy&) = delete; private: int i; }; // for testing lambda expressions template Ret eval(Fn f, Ret v) { return f(v); } // for testing variadic templates and trailing return types template auto sum(V first) -> V { return first; } template auto sum(V first, Args... rest) -> V { return first + sum(rest...); } } ' # Test code for whether the C++ compiler supports C++11 (body of main) ac_cxx_conftest_cxx11_main=' { // Test auto and decltype auto a1 = 6538; auto a2 = 48573953.4; auto a3 = "String literal"; int total = 0; for (auto i = a3; *i; ++i) { total += *i; } decltype(a2) a4 = 34895.034; } { // Test constexpr short sa[cxx11test::get_val()] = { 0 }; } { // Test initializer lists cxx11test::testinit il = { 4323, 435234.23544 }; } { // Test range-based for int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; for (auto &x : array) { x += 23; } } { // Test lambda expressions using cxx11test::eval; assert (eval ([](int x) { return x*2; }, 21) == 42); double d = 2.0; assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); assert (d == 5.0); assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); assert (d == 5.0); } { // Test use of variadic templates using cxx11test::sum; auto a = sum(1); auto b = sum(1, 2); auto c = sum(1.0, 2.0, 3.0); } { // Test constructor delegation cxx11test::delegate d1; cxx11test::delegate d2(); cxx11test::delegate d3(45); } { // Test override and final cxx11test::overridden o1(55464); } { // Test nullptr char *c = nullptr; } { // Test template brackets test_template<::test_template> v(test_template(12)); } { // Unicode literals char const *utf8 = u8"UTF-8 string \u2500"; char16_t const *utf16 = u"UTF-8 string \u2500"; char32_t const *utf32 = U"UTF-32 string \u2500"; } ' # Test code for whether the C compiler supports C++11 (complete). ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} ${ac_cxx_conftest_cxx11_globals} int main (int argc, char **argv) { int ok = 0; ${ac_cxx_conftest_cxx98_main} ${ac_cxx_conftest_cxx11_main} return ok; } " # Test code for whether the C compiler supports C++98 (complete). ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} int main (int argc, char **argv) { int ok = 0; ${ac_cxx_conftest_cxx98_main} return ok; } " as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" # Auxiliary files required by this configure script. ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh" # Locations in which to look for auxiliary files. ac_aux_dir_candidates="${srcdir}/config" # Search for a directory containing all of the required auxiliary files, # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. # If we don't find one directory that contains all the files we need, # we report the set of missing files from the *first* directory in # $ac_aux_dir_candidates and give up. ac_missing_aux_files="" ac_first_candidate=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in $ac_aux_dir_candidates do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac as_found=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 ac_aux_dir_found=yes ac_install_sh= for ac_aux in $ac_aux_files do # As a special case, if "install-sh" is required, that requirement # can be satisfied by any of "install-sh", "install.sh", or "shtool", # and $ac_install_sh is set appropriately for whichever one is found. if test x"$ac_aux" = x"install-sh" then if test -f "${as_dir}install-sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 ac_install_sh="${as_dir}install-sh -c" elif test -f "${as_dir}install.sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 ac_install_sh="${as_dir}install.sh -c" elif test -f "${as_dir}shtool"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 ac_install_sh="${as_dir}shtool install -c" else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} install-sh" else break fi fi else if test -f "${as_dir}${ac_aux}"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" else break fi fi fi done if test "$ac_aux_dir_found" = yes; then ac_aux_dir="$as_dir" break fi ac_first_candidate=false as_found=false done IFS=$as_save_IFS if $as_found then : else case e in #( e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; esac fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. if test -f "${ac_aux_dir}config.guess"; then ac_config_guess="$SHELL ${ac_aux_dir}config.guess" fi if test -f "${ac_aux_dir}config.sub"; then ac_config_sub="$SHELL ${ac_aux_dir}config.sub" fi if test -f "$ac_aux_dir/configure"; then ac_configure="$SHELL ${ac_aux_dir}configure" fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu VERSION_MAJOR=`echo $PACKAGE_VERSION | cut -d. -f1` VERSION_MINOR=`echo $PACKAGE_VERSION | cut -d. -f2` VERSION_REVISION=`echo $PACKAGE_VERSION | cut -d. -f3` am__api_version='1.16' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 printf %s "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if test ${ac_cv_path_install+y} then : printf %s "(cached) " >&6 else case e in #( e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac # Account for fact that we put trailing slashes in our PATH walk. case $as_dir in #(( ./ | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir ;; esac fi if test ${ac_cv_path_install+y}; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 printf "%s\n" "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 printf %s "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was 's,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 printf "%s\n" "$STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 printf "%s\n" "$ac_ct_STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 printf %s "checking for a race-free mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if test ${ac_cv_path_mkdir+y} then : printf %s "(cached) " >&6 else case e in #( e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir ('*'coreutils) '* | \ *'BusyBox '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS ;; esac fi test -d ./--version && rmdir ./--version if test ${ac_cv_path_mkdir+y}; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use plain mkdir -p, # in the hope it doesn't have the bugs of ancient mkdir. MKDIR_P='mkdir -p' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 printf "%s\n" "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 printf "%s\n" "$AWK" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$AWK" && break done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval test \${ac_cv_prog_make_${ac_make}_set+y} then : printf %s "(cached) " >&6 else case e in #( e) cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make ;; esac fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } SET_MAKE= else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test ${enable_silent_rules+y} then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 printf %s "checking whether $am_make supports nested variables... " >&6; } if test ${am_cv_make_support_nested_variables+y} then : printf %s "(cached) " >&6 else case e in #( e) if printf "%s\n" 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='libzdb' VERSION='3.4.0' printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # Variables for tags utilities; see am/tags.am if test -z "$CTAGS"; then CTAGS=ctags fi if test -z "$ETAGS"; then ETAGS=etags fi if test -z "$CSCOPE"; then CSCOPE=cscope fi # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi ac_config_commands="$ac_config_commands libtool_patch" # ------------------------------------------------------------------------ # Architecture/OS # ------------------------------------------------------------------------ case `uname` in Linux*) printf "%s\n" "#define LINUX 1" >>confdefs.h ;; FreeBSD*) printf "%s\n" "#define FREEBSD 1" >>confdefs.h ;; OpenBSD*) printf "%s\n" "#define OPENBSD 1" >>confdefs.h ;; Darwin*) printf "%s\n" "#define DARWIN 1" >>confdefs.h LDFLAGS="$LDFLAGS -Wl,-search_paths_first" ondarwin=1 ;; SunOS*) printf "%s\n" "#define SOLARIS 1" >>confdefs.h ;; NetBSD*) printf "%s\n" "#define NETBSD 1" >>confdefs.h ;; AIX*) printf "%s\n" "#define AIX 1" >>confdefs.h ;; esac # --------------------------------------------------------------------------- # Compiler # --------------------------------------------------------------------------- ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi fi ;; esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. set dummy ${ac_tool_prefix}clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}clang" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "clang", so it can be a program name with args. set dummy clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="clang" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi fi test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See 'config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion -version; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 printf %s "checking whether the C compiler works... " >&6; } ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an '-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else case e in #( e) ac_file='' ;; esac fi if test -z "$ac_file" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See 'config.log' for more details" "$LINENO" 5; } else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 printf %s "checking for C compiler default output file name... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 printf "%s\n" "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 printf %s "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will # work properly (i.e., refer to 'conftest.exe'), while it won't with # 'rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else case e in #( e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See 'config.log' for more details" "$LINENO" 5; } ;; esac fi rm -f conftest conftest$ac_cv_exeext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 printf "%s\n" "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { FILE *f = fopen ("conftest.out", "w"); if (!f) return 1; return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 printf %s "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot run C compiled programs. If you meant to cross compile, use '--host'. See 'config.log' for more details" "$LINENO" 5; } fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 printf "%s\n" "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext \ conftest.o conftest.obj conftest.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else case e in #( e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See 'config.log' for more details" "$LINENO" 5; } ;; esac fi rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes else case e in #( e) ac_compiler_gnu=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_c_compiler_gnu if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes else case e in #( e) CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else case e in #( e) ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi ac_prog_cc_stdc=no if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c11_program _ACEOF for ac_arg in '' -std=gnu11 do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC ;; esac fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else case e in #( e) if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } CC="$CC $ac_cv_prog_cc_c11" ;; esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 ac_prog_cc_stdc=c11 ;; esac fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c99_program _ACEOF for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c99=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC ;; esac fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else case e in #( e) if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } CC="$CC $ac_cv_prog_cc_c99" ;; esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 ac_prog_cc_stdc=c99 ;; esac fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c89_program _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC ;; esac fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else case e in #( e) if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } CC="$CC $ac_cv_prog_cc_c89" ;; esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 ac_prog_cc_stdc=c89 ;; esac fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 printf %s "checking whether $CC understands -c and -o together... " >&6; } if test ${am_cv_prog_cc_c_o+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } case $?:`cat confinc.out 2>/dev/null` in #( '0:this is the am__doit target') : case $s in #( BSD) : am__include='.include' am__quote='"' ;; #( *) : am__include='include' am__quote='' ;; esac ;; #( *) : ;; esac if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 printf "%s\n" "${_am_result}" >&6; } # Check whether --enable-dependency-tracking was given. if test ${enable_dependency_tracking+y} then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CC_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 printf "%s\n" "$CXX" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CXX+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 printf "%s\n" "$ac_ct_CXX" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 printf %s "checking whether the compiler supports GNU C++... " >&6; } if test ${ac_cv_cxx_compiler_gnu+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_compiler_gnu=yes else case e in #( e) ac_compiler_gnu=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+y} ac_save_CXXFLAGS=$CXXFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 printf %s "checking whether $CXX accepts -g... " >&6; } if test ${ac_cv_prog_cxx_g+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes else case e in #( e) CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : else case e in #( e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } if test $ac_test_CXXFLAGS; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_prog_cxx_stdcxx=no if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 printf %s "checking for $CXX option to enable C++11 features... " >&6; } if test ${ac_cv_prog_cxx_cxx11+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_cv_prog_cxx_cxx11=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_cxx_conftest_cxx11_program _ACEOF for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA do CXX="$ac_save_CXX $ac_arg" if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_cxx11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx11" != "xno" && break done rm -f conftest.$ac_ext CXX=$ac_save_CXX ;; esac fi if test "x$ac_cv_prog_cxx_cxx11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else case e in #( e) if test "x$ac_cv_prog_cxx_cxx11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 ac_prog_cxx_stdcxx=cxx11 ;; esac fi fi if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 printf %s "checking for $CXX option to enable C++98 features... " >&6; } if test ${ac_cv_prog_cxx_cxx98+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_cv_prog_cxx_cxx98=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_cxx_conftest_cxx98_program _ACEOF for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA do CXX="$ac_save_CXX $ac_arg" if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_cxx98=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx98" != "xno" && break done rm -f conftest.$ac_ext CXX=$ac_save_CXX ;; esac fi if test "x$ac_cv_prog_cxx_cxx98" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else case e in #( e) if test "x$ac_cv_prog_cxx_cxx98" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 ac_prog_cxx_stdcxx=cxx98 ;; esac fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CXX_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 printf %s "checking for an ANSI C-conforming const... " >&6; } if test ${ac_cv_c_const+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* IBM XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this sort of thing. */ char tx; char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_const=yes else case e in #( e) ac_cv_c_const=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 printf "%s\n" "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then printf "%s\n" "#define const /**/" >>confdefs.h fi ac_header= ac_cache= for ac_item in $ac_header_c_list do if test $ac_cache; then ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then printf "%s\n" "#define $ac_item 1" >> confdefs.h fi ac_header= ac_cache= elif test $ac_header; then ac_cache=$ac_item else ac_header=$ac_item fi done if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes then : printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 printf %s "checking whether byte ordering is bigendian... " >&6; } if test ${ac_cv_c_bigendian+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __APPLE_CC__ not a universal capable compiler #endif typedef int dummy; _ACEOF if ac_fn_c_try_compile "$LINENO" then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. ac_arch= ac_prev= for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do if test -n "$ac_prev"; then case $ac_word in i?86 | x86_64 | ppc | ppc64) if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then ac_arch=$ac_word else ac_cv_c_bigendian=universal break fi ;; esac ac_prev= elif test "x$ac_word" = "x-arch"; then ac_prev=arch fi done fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ && LITTLE_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_bigendian=yes else case e in #( e) ac_cv_c_bigendian=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : # It does; now see whether it defined to _BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { #ifndef _BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_bigendian=yes else case e in #( e) ac_cv_c_bigendian=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # Compile a test program. if test "$cross_compiling" = yes then : # Try to guess by grepping values from an object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ unsigned short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; unsigned short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; int use_ascii (int i) { return ascii_mm[i] + ascii_ii[i]; } unsigned short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; unsigned short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; } int main (int argc, char **argv) { /* Intimidate the compiler so that it does not optimize the arrays away. */ char *p = argv[0]; ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; return use_ascii (argc) == use_ebcdic (*p); } _ACEOF if ac_fn_c_try_link "$LINENO" then : if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main (void) { /* Are we little or big endian? From Harbison&Steele. */ union { long int l; char c[sizeof (long int)]; } u; u.l = 1; return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : ac_cv_c_bigendian=no else case e in #( e) ac_cv_c_bigendian=yes ;; esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 printf "%s\n" "$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in #( yes) printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h ;; #( no) ;; #( universal) printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) as_fn_error $? "unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; esac if test "`uname`" != "Darwin" then : # Not Darwin, so use _GNU_SOURCE CFLAGS="$CFLAGS -D_GNU_SOURCE" else case e in #( e) # On Darwin, use _DARWIN_C_SOURCE and _POSIX_C_SOURCE CFLAGS="$CFLAGS -D_DARWIN_C_SOURCE -D_POSIX_C_SOURCE=199506L" ;; esac fi # Compiler; tune warnings CFLAGS="$CFLAGS -Wall -Wunused"; # Allow intermix unsigned char and char CFLAGS="$CFLAGS -Wno-pointer-sign"; # enable fortification level 2 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" # Require C11 and use C17 if available if ac_fn_c_compute_int "$LINENO" "__STDC_VERSION__" "STDC_VERSION" "" then : else case e in #( e) STDC_VERSION=0 ;; esac fi if test "$STDC_VERSION" -ge 201710 then : CFLAGS="$CFLAGS -std=c17" else case e in #( e) if test "$STDC_VERSION" -ge 201112 then : CFLAGS="$CFLAGS -std=c11" else case e in #( e) as_fn_error $? "Your compiler does not support C11 or later" "$LINENO" 5 ;; esac fi ;; esac fi # Require C++20 or later to build C++ test code and use zdbpp.h ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports C++20" >&5 printf %s "checking whether the C++ compiler supports C++20... " >&6; } if test ${ac_cv_cxx_compile_cxx20+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if __cplusplus < 202002L #error C++20 is not supported #endif _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : as_fn_error $? "Your compiler does not support C++20 or later" "$LINENO" 5 else case e in #( e) ac_cv_cxx_compile_cxx20=yes ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compile_cxx20" >&5 printf "%s\n" "$ac_cv_cxx_compile_cxx20" >&6; } CXXFLAGS="$CXXFLAGS -std=c++20" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Check for C99 headers for ac_header in stdint.h stdbool.h do : as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes" then : cat >>confdefs.h <<_ACEOF #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 _ACEOF else case e in #( e) as_fn_error $? "toolchain does not have C99 headers" "$LINENO" 5 ;; esac fi done # Check for C11 atomic operations support for ac_header in stdatomic.h do : ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default" if test "x$ac_cv_header_stdatomic_h" = xyes then : printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h else case e in #( e) as_fn_error $? "toolchain does not support C11 atomic operations" "$LINENO" 5 ;; esac fi done # --------------------------------------------------------------------------- # Programs # --------------------------------------------------------------------------- # Extract the first word of "re2c", so it can be a program name with args. set dummy re2c; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_RE2C+y} then : printf %s "(cached) " >&6 else case e in #( e) case $RE2C in [\\/]* | ?:[\\/]*) ac_cv_path_RE2C="$RE2C" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_dummy="$PATH:/usr/local/bin:/usr/bin" for as_dir in $as_dummy do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_RE2C="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_RE2C" && ac_cv_path_RE2C="no" ;; esac ;; esac fi RE2C=$ac_cv_path_RE2C if test -n "$RE2C"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RE2C" >&5 printf "%s\n" "$RE2C" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$RE2C" = "xno"; then # Require re2c unless URL.c and Time.c already are built if test ! -f src/net/URL.c -a ! -f src/system/Time.c; then as_fn_error $? "Libzdb require re2c. Download re2c from http://re2c.org/ or use your package manager" "$LINENO" 5 fi fi for ac_prog in flex lex do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LEX+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_LEX="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi LEX=$ac_cv_prog_LEX if test -n "$LEX"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 printf "%s\n" "$LEX" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$LEX" && break done test -n "$LEX" || LEX=":" if test "x$LEX" != "x:"; then cat >conftest.l <<_ACEOF %{ #ifdef __cplusplus extern "C" #endif int yywrap(void); %} %% a { ECHO; } b { REJECT; } c { yymore (); } d { yyless (1); } e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ #ifdef __cplusplus yyless ((yyinput () != 0)); #else yyless ((input () != 0)); #endif } f { unput (yytext[0]); } . { BEGIN INITIAL; } %% #ifdef YYTEXT_POINTER extern char *yytext; #endif int yywrap (void) { return 1; } int main (void) { return ! yylex (); } _ACEOF { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5 printf %s "checking for lex output file root... " >&6; } if test ${ac_cv_prog_lex_root+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_cv_prog_lex_root=unknown { { ac_try="$LEX conftest.l" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$LEX conftest.l") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && if test -f lex.yy.c; then ac_cv_prog_lex_root=lex.yy elif test -f lexyy.c; then ac_cv_prog_lex_root=lexyy fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 printf "%s\n" "$ac_cv_prog_lex_root" >&6; } if test "$ac_cv_prog_lex_root" = unknown then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;} LEX=: LEXLIB= fi LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root if test ${LEXLIB+y} then : else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5 printf %s "checking for lex library... " >&6; } if test ${ac_cv_lib_lex+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_save_LIBS="$LIBS" ac_found=false for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do case $ac_cv_lib_lex in #( 'none needed') : ;; #( 'not found') : break ;; #( *) : LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #( *) : ;; esac cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ `cat $LEX_OUTPUT_ROOT.c` _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_found=: fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if $ac_found; then break fi done LIBS="$ac_save_LIBS" ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 printf "%s\n" "$ac_cv_lib_lex" >&6; } if test "$ac_cv_lib_lex" = 'not found' then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;} LEX=: LEXLIB= elif test "$ac_cv_lib_lex" = 'none needed' then : LEXLIB='' else case e in #( e) LEXLIB=$ac_cv_lib_lex ;; esac fi ;; esac fi if test "$LEX" != : then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 printf %s "checking whether yytext is a pointer... " >&6; } if test ${ac_cv_prog_lex_yytext_pointer+y} then : printf %s "(cached) " >&6 else case e in #( e) # POSIX says lex can declare yytext either as a pointer or an array; the # default is implementation-dependent. Figure out which it is, since # not all implementations provide the %pointer and %array declarations. ac_cv_prog_lex_yytext_pointer=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define YYTEXT_POINTER 1 `cat $LEX_OUTPUT_ROOT.c` _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_lex_yytext_pointer=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; } if test $ac_cv_prog_lex_yytext_pointer = yes; then printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h fi fi rm -f conftest.l $LEX_OUTPUT_ROOT.c fi if test -z "${LEXLIB+set}"; then # Require flex unless lex.yy.c already is built if test ! -f ./tools/filterh/lex.yy.c; then as_fn_error $? "flex is required. Download from https://www.gnu.org/software/flex/ or use your package manager" "$LINENO" 5 fi fi # --------------------------------------------------------------------------- # Tools # --------------------------------------------------------------------------- if test ! -d ./tools/bin/ then mkdir ./tools/bin || as_fn_error $? "Failed to create ./tools/bin" "$LINENO" 5 fi # Build tools in-place in a subshell if test ! -f ./tools/filterh/lex.yy.c; then (cd ./tools/filterh && $LEX filterh.l && $CC lex.yy.c -o ../bin/filterh && rm -f lex.yy.o) || as_fn_error $? "Failed to build tools" "$LINENO" 5 else (cd ./tools/filterh && $CC lex.yy.c -o ../bin/filterh && rm -f lex.yy.o) || as_fn_error $? "Failed to build tools" "$LINENO" 5 fi # Assert that we succeded building filterh test -f ./tools/bin/filterh || as_fn_error $? "Failed to build tools" "$LINENO" 5 # --------------------------------------------------------------------------- # Libtool # --------------------------------------------------------------------------- case `pwd` in *\ * | *\ *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.7' macro_revision='2.4.7' ltmain=$ac_aux_dir/ltmain.sh # Make sure we can run config.sub. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 printf %s "checking build system type... " >&6; } if test ${ac_cv_build+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 printf "%s\n" "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 printf %s "checking host system type... " >&6; } if test ${ac_cv_host+y} then : printf %s "(cached) " >&6 else case e in #( e) if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 printf "%s\n" "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 printf %s "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case $ECHO in printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 printf "%s\n" "printf" >&6; } ;; print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 printf "%s\n" "print -r" >&6; } ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 printf "%s\n" "cat" >&6; } ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 printf %s "checking for a sed that does not truncate output... " >&6; } if test ${ac_cv_path_SED+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in sed gsed do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in #( *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; #( *) ac_count=0 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 printf "%s\n" "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 printf %s "checking for grep that handles long lines and -e... " >&6; } if test ${ac_cv_path_GREP+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in #( *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; #( *) ac_count=0 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 printf "%s\n" "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 printf %s "checking for egrep... " >&6; } if test ${ac_cv_path_EGREP+y} then : printf %s "(cached) " >&6 else case e in #( e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in #( *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; #( *) ac_count=0 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 printf "%s\n" "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" EGREP_TRADITIONAL=$EGREP ac_cv_path_EGREP_TRADITIONAL=$EGREP { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 printf %s "checking for fgrep... " >&6; } if test ${ac_cv_path_FGREP+y} then : printf %s "(cached) " >&6 else case e in #( e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in fgrep do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in #( *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; #( *) ac_count=0 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 printf "%s\n" "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test ${with_gnu_ld+y} then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else case e in #( e) with_gnu_ld=no ;; esac fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 printf %s "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 printf %s "checking for GNU ld... " >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 printf %s "checking for non-GNU ld... " >&6; } fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 printf "%s\n" "$LD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 else case e in #( e) # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if test ${lt_cv_path_NM+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else lt_nm_to_check=${ac_tool_prefix}nm if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. tmp_nm=$ac_dir/$lt_tmp_nm if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then # Check to see if the nm accepts a BSD-compat flag. # Adding the 'sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty case $build_os in mingw*) lt_bad_file=conftest.nm/nofile ;; *) lt_bad_file=/dev/null ;; esac case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in *$lt_bad_file* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break 2 ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 printf "%s\n" "$lt_cv_path_NM" >&6; } if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else if test -n "$ac_tool_prefix"; then for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DUMPBIN+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 printf "%s\n" "$DUMPBIN" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DUMPBIN+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 printf %s "checking the name lister ($NM) interface... " >&6; } if test ${lt_cv_nm_interface+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 printf "%s\n" "$lt_cv_nm_interface" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 printf %s "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 printf "%s\n" "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 printf %s "checking the maximum length of command line arguments... " >&6; } if test ${lt_cv_sys_max_cmd_len+y} then : printf %s "(cached) " >&6 else case e in #( e) i=0 teststring=ABCD case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ;; esac fi if test -n "$lt_cv_sys_max_cmd_len"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 printf "%s\n" "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 printf %s "checking how to convert $build file names to $host format... " >&6; } if test ${lt_cv_to_host_file_cmd+y} then : printf %s "(cached) " >&6 else case e in #( e) case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac ;; esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 printf %s "checking how to convert $build file names to toolchain format... " >&6; } if test ${lt_cv_to_tool_file_cmd+y} then : printf %s "(cached) " >&6 else case e in #( e) #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac ;; esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 printf %s "checking for $LD option to reload object files... " >&6; } if test ${lt_cv_ld_reload_flag+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_ld_reload_flag='-r' ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in cygwin* | mingw* | pw32* | cegcc*) if test yes != "$GCC"; then reload_cmds=false fi ;; darwin*) if test yes = "$GCC"; then reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. set dummy ${ac_tool_prefix}file; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_FILECMD+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$FILECMD"; then ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_FILECMD="${ac_tool_prefix}file" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi FILECMD=$ac_cv_prog_FILECMD if test -n "$FILECMD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 printf "%s\n" "$FILECMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_FILECMD"; then ac_ct_FILECMD=$FILECMD # Extract the first word of "file", so it can be a program name with args. set dummy file; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_FILECMD+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_FILECMD"; then ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_FILECMD="file" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD if test -n "$ac_ct_FILECMD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 printf "%s\n" "$ac_ct_FILECMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_FILECMD" = x; then FILECMD=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac FILECMD=$ac_ct_FILECMD fi else FILECMD="$ac_cv_prog_FILECMD" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OBJDUMP+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 printf "%s\n" "$OBJDUMP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OBJDUMP+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 printf %s "checking how to recognize dependent libraries... " >&6; } if test ${lt_cv_deplibs_check_method+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # 'unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # that responds to the $file_magic_cmd with a given extended regex. # If you have 'file' or equivalent on your system and you're not sure # whether 'pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='$FILECMD -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly* | midnightbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=$FILECMD lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=$FILECMD case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=$FILECMD lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DLLTOOL+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 printf "%s\n" "$DLLTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DLLTOOL+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi test -z "$DLLTOOL" && DLLTOOL=dlltool { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 printf %s "checking how to associate runtime and link libraries... " >&6; } if test ${lt_cv_sharedlib_from_linklib_cmd+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh; # decide which one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO if test -n "$ac_tool_prefix"; then for ac_prog in ar do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi AR=$ac_cv_prog_AR if test -n "$AR"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 printf "%s\n" "$AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 printf "%s\n" "$ac_ct_AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} # Use ARFLAGS variable as AR's operation code to sync the variable naming with # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have # higher priority because thats what people were doing historically (setting # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS # variable obsoleted/removed. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} lt_ar_flags=$AR_FLAGS # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override # by AR_FLAGS because that was never working and AR_FLAGS is about to die. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 printf %s "checking for archiver @FILE support... " >&6; } if test ${lt_cv_ar_at_file+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 printf "%s\n" "$lt_cv_ar_at_file" >&6; } if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 printf "%s\n" "$STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 printf "%s\n" "$ac_ct_STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_RANLIB+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 printf "%s\n" "$RANLIB" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_RANLIB+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 printf "%s\n" "$ac_ct_RANLIB" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 printf %s "checking command to parse $NM output from $compiler object... " >&6; } if test ${lt_cv_sys_global_symbol_pipe+y} then : printf %s "(cached) " >&6 else case e in #( e) # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test ia64 = "$host_cpu"; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++ or ICC, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS=conftstm.$ac_objext CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test yes = "$pipe_works"; then break else lt_cv_sys_global_symbol_pipe= fi done ;; esac fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 printf "%s\n" "failed" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 printf "%s\n" "ok" >&6; } fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then nm_file_list_spec='@' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 printf %s "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test ${with_sysroot+y} then : withval=$with_sysroot; else case e in #( e) with_sysroot=no ;; esac fi lt_sysroot= case $with_sysroot in #( yes) if test yes = "$GCC"; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 printf "%s\n" "$with_sysroot" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 printf "%s\n" "${lt_sysroot:-no}" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 printf %s "checking for a working dd... " >&6; } if test ${ac_cv_path_lt_DD+y} then : printf %s "(cached) " >&6 else case e in #( e) printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} if test -z "$lt_DD"; then ac_path_lt_DD_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in dd do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_lt_DD" || continue if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: fi $ac_path_lt_DD_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_lt_DD"; then : fi else ac_cv_path_lt_DD=$lt_DD fi rm -f conftest.i conftest2.i conftest.out ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 printf %s "checking how to truncate binary pipes... " >&6; } if test ${lt_cv_truncate_bin+y} then : printf %s "(cached) " >&6 else case e in #( e) printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 printf "%s\n" "$lt_cv_truncate_bin" >&6; } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # Check whether --enable-libtool-lock was given. if test ${enable_libtool_lock+y} then : enableval=$enable_libtool_lock; fi test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `$FILECMD conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; *ELF-64*) HPUX_IA64_MODE=64 ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test yes = "$lt_cv_prog_gnu_ld"; then case `$FILECMD conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `$FILECMD conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then emul=elf case `$FILECMD conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `$FILECMD conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `$FILECMD conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `$FILECMD conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `$FILECMD conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 printf %s "checking whether the C compiler needs -belf... " >&6; } if test ${lt_cv_cc_needs_belf+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_cc_needs_belf=yes else case e in #( e) lt_cv_cc_needs_belf=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `$FILECMD conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 printf "%s\n" "$MANIFEST_TOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL fi else MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if test ${lt_cv_path_mainfest_tool+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest* ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DSYMUTIL+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 printf "%s\n" "$DSYMUTIL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_NMEDIT+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 printf "%s\n" "$NMEDIT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_NMEDIT+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 printf "%s\n" "$ac_ct_NMEDIT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LIPO+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 printf "%s\n" "$LIPO" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_LIPO+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 printf "%s\n" "$ac_ct_LIPO" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 printf "%s\n" "$OTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 printf "%s\n" "$ac_ct_OTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL64+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 printf "%s\n" "$OTOOL64" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL64+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi ;; esac fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 printf "%s\n" "$ac_ct_OTOOL64" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 printf %s "checking for -single_module linker flag... " >&6; } if test ${lt_cv_apple_cc_single_mod+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&5 # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 printf %s "checking for -exported_symbols_list linker flag... " >&6; } if test ${lt_cv_ld_exported_symbols_list+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_ld_exported_symbols_list=yes else case e in #( e) lt_cv_ld_exported_symbols_list=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 printf %s "checking for -force_load linker flag... " >&6; } if test ${lt_cv_ld_force_load+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&5 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 printf "%s\n" "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; darwin*) case $MACOSX_DEPLOYMENT_TARGET,$host in 10.[012],*|,*powerpc*-darwin[5-8]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; *) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi _lt_dar_needs_single_mod=no case $host_os in rhapsody* | darwin1.*) _lt_dar_needs_single_mod=yes ;; darwin*) # When targeting Mac OS X 10.4 (darwin 8) or later, # -single_module is the default and -multi_module is unsupported. # The toolchain on macOS 10.14 (darwin 18) and later cannot # target any OS version that needs -single_module. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) _lt_dar_needs_single_mod=yes ;; esac ;; esac if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = xyes then : printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h fi func_stripname_cnf () { case $2 in .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; esac } # func_stripname_cnf # Set options enable_dlopen=no enable_win32_dll=no # Check whether --enable-shared was given. if test ${enable_shared+y} then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS=$lt_save_ifs ;; esac else case e in #( e) enable_shared=yes ;; esac fi # Check whether --enable-static was given. if test ${enable_static+y} then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS=$lt_save_ifs ;; esac else case e in #( e) enable_static=yes ;; esac fi # Check whether --with-pic was given. if test ${with_pic+y} then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for lt_pkg in $withval; do IFS=$lt_save_ifs if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS=$lt_save_ifs ;; esac else case e in #( e) pic_mode=default ;; esac fi # Check whether --enable-fast-install was given. if test ${enable_fast_install+y} then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS=$lt_save_ifs ;; esac else case e in #( e) enable_fast_install=yes ;; esac fi shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[5-9]*,yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 printf %s "checking which variant of shared library versioning to provide... " >&6; } # Check whether --with-aix-soname was given. if test ${with_aix_soname+y} then : withval=$with_aix_soname; case $withval in aix|svr4|both) ;; *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 ;; esac lt_cv_with_aix_soname=$with_aix_soname else case e in #( e) if test ${lt_cv_with_aix_soname+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_with_aix_soname=aix ;; esac fi with_aix_soname=$lt_cv_with_aix_soname ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 printf "%s\n" "$with_aix_soname" >&6; } if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, # the AIX toolchain works better with OBJECT_MODE set (default 32). if test 64 = "${OBJECT_MODE-32}"; then shared_archive_member_spec=shr_64 else shared_archive_member_spec=shr fi fi ;; *) with_aix_soname=aix ;; esac # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 printf %s "checking for objdir... " >&6; } if test ${lt_cv_objdir+y} then : printf %s "(cached) " >&6 else case e in #( e) rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 printf "%s\n" "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC and # ICC, which need '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld old_CC=$CC old_CFLAGS=$CFLAGS # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o func_cc_basename $compiler cc_basename=$func_cc_basename_result # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 printf %s "checking for ${ac_tool_prefix}file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 else case e in #( e) case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/${ac_tool_prefix}file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 printf "%s\n" "$MAGIC_CMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 printf %s "checking for file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 else case e in #( e) case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 printf "%s\n" "$MAGIC_CMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC=$CC ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test yes = "$GCC"; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if test ${lt_cv_prog_compiler_rtti_exceptions+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test yes = "$GCC"; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi lt_prog_compiler_pic='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' if test -n "$lt_prog_compiler_pic"; then lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | $SED 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; *Sun\ F* | *Sun*Fortran*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; *Portland\ Group*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if test ${lt_cv_prog_compiler_pic_works+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works"; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test ${lt_cv_prog_compiler_static_works+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } if test yes = "$lt_cv_prog_compiler_static_works"; then : else lt_prog_compiler_static= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 printf %s "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 printf "%s\n" "$hard_links" >&6; } if test no = "$hard_links"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++ or Intel C++ Compiler. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; esac ld_shlibs=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' export_dynamic_flag_spec='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='$wl--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs=yes ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes file_list_spec='@' ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) export_dynamic_flag_spec='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test no = "$ld_shlibs"; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct=no hardcode_direct_absolute=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi ;; esac fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi ;; esac fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' $wl-bernotok' allow_undefined_flag=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++ or Intel C++ Compiler. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl* | icl*) # Native MSVC or ICC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes file_list_spec='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC and ICC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test yes = "$lt_cv_ld_force_load"; then whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly* | midnightbsd*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test yes = "$GCC"; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 printf %s "checking if $CC understands -b... " >&6; } if test ${lt_cv_prog_compiler__b+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler__b=yes fi else lt_cv_prog_compiler__b=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } if test yes = "$lt_cv_prog_compiler__b"; then archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if test ${lt_cv_irix_exported_symbol+y} then : printf %s "(cached) " >&6 else case e in #( e) save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_irix_exported_symbol=yes else case e in #( e) lt_cv_irix_exported_symbol=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } if test yes = "$lt_cv_irix_exported_symbol"; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler ld_shlibs=yes archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' else archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='$wl-rpath,$libdir' fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes file_list_spec='@' ;; osf3*) if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test yes = "$GCC"; then wlarc='$wl' archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='$wl-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='$wl-z,text' allow_undefined_flag='$wl-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='$wl-Blargedynsym' ;; esac fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 printf "%s\n" "$ld_shlibs" >&6; } test no = "$ld_shlibs" && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc+y} then : printf %s "(cached) " >&6 else case e in #( e) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 printf %s "checking dynamic linker characteristics... " >&6; } if test yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([A-Za-z]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl* | *,icl*) # Native MSVC or ICC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC and ICC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly* | midnightbsd*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir ;; esac fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 printf "%s\n" "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 printf %s "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test yes = "$hardcode_automatic"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && test no != "$hardcode_minus_L"; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 printf "%s\n" "$hardcode_action" >&6; } if test relink = "$hardcode_action" || test yes = "$inherit_rpath"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi if test yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char dlopen (void); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes else case e in #( e) ac_cv_lib_dl_dlopen=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else case e in #( e) lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; esac fi ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes then : lt_cv_dlopen=shl_load else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 printf %s "checking for shl_load in -ldld... " >&6; } if test ${ac_cv_lib_dld_shl_load+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char shl_load (void); int main (void) { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_shl_load=yes else case e in #( e) ac_cv_lib_dld_shl_load=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld else case e in #( e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes then : lt_cv_dlopen=dlopen else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char dlopen (void); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes else case e in #( e) ac_cv_lib_dl_dlopen=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 printf %s "checking for dlopen in -lsvld... " >&6; } if test ${ac_cv_lib_svld_dlopen+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char dlopen (void); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_svld_dlopen=yes else case e in #( e) ac_cv_lib_svld_dlopen=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 printf %s "checking for dld_link in -ldld... " >&6; } if test ${ac_cv_lib_dld_dld_link+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char dld_link (void); int main (void) { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_dld_link=yes else case e in #( e) ac_cv_lib_dld_dld_link=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes then : lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi ;; esac fi ;; esac fi ;; esac fi ;; esac fi ;; esac fi ;; esac if test no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 printf %s "checking whether a program can dlopen itself... " >&6; } if test ${lt_cv_dlopen_self+y} then : printf %s "(cached) " >&6 else case e in #( e) if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 printf "%s\n" "$lt_cv_dlopen_self" >&6; } if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } if test ${lt_cv_dlopen_self_static+y} then : printf %s "(cached) " >&6 else case e in #( e) if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 printf %s "checking whether stripping libraries is possible... " >&6; } if test -z "$STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } else if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then old_striplib="$STRIP --strip-debug" striplib="$STRIP --strip-unneeded" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else case $host_os in darwin*) # FIXME - insert some real tests, host_os isn't really good enough striplib="$STRIP -x" old_striplib="$STRIP -S" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } ;; freebsd*) if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then old_striplib="$STRIP --strip-debug" striplib="$STRIP --strip-unneeded" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } ;; esac fi fi # Report what library types will actually be built { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 printf %s "checking if libtool supports shared libraries... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 printf "%s\n" "$can_build_shared" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 printf %s "checking whether to build shared libraries... " >&6; } test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 printf "%s\n" "$enable_shared" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 printf %s "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 printf "%s\n" "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC if test -n "$CXX" && ( test no != "$CXX" && ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || (test g++ != "$CXX"))); then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 printf %s "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if test ${ac_cv_prog_CXXCPP+y} then : printf %s "(cached) " >&6 else case e in #( e) # Double quotes because $CXX needs to be expanded for CXXCPP in "$CXX -E" cpp /lib/cpp do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : else case e in #( e) # Broken: fails on valid input. continue ;; esac fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : # Broken: success on invalid input. continue else case e in #( e) # Passes both tests. ac_preproc_ok=: break ;; esac fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok then : break fi done ac_cv_prog_CXXCPP=$CXXCPP ;; esac fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 printf "%s\n" "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : else case e in #( e) # Broken: fails on valid input. continue ;; esac fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : # Broken: success on invalid input. continue else case e in #( e) # Passes both tests. ac_preproc_ok=: break ;; esac fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok then : else case e in #( e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check See 'config.log' for more details" "$LINENO" 5; } ;; esac fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu else _lt_caught_CXX_error=yes fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= compiler_needs_object_CXX=no export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no inherit_rpath_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds reload_flag_CXX=$reload_flag reload_cmds_CXX=$reload_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_caught_CXX_error"; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC compiler_CXX=$CC func_cc_basename $compiler cc_basename=$func_cc_basename_result if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test yes = "$GXX"; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test yes = "$GXX"; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. if test ${with_gnu_ld+y} then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else case e in #( e) with_gnu_ld=no ;; esac fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 printf %s "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 printf %s "checking for GNU ld... " >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 printf %s "checking for non-GNU ld... " >&6; } fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 else case e in #( e) if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 printf "%s\n" "$LD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 else case e in #( e) # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test yes = "$with_gnu_ld"; then archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='$wl' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes file_list_spec_CXX='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no ;; esac if test yes = "$GXX"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag=$shared_flag' $wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec_CXX='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. always_export_symbols_CXX=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. # The "-G" linker flag allows undefined symbols. no_undefined_flag_CXX='-bernotok' # Determine the default libpath from the value encoded in an empty # executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO" then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi ;; esac fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO" then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi ;; esac fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' $wl-bernotok' allow_undefined_flag_CXX=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' fi archive_cmds_need_lc_CXX=yes archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl* | ,icl* | no,icl*) # Native MSVC or ICC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_CXX=' ' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=yes file_list_spec_CXX='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' enable_shared_with_static_runtimes_CXX=yes # Don't use ranlib old_postinstall_cmds_CXX='chmod 644 $oldlib' postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ func_to_tool_file "$lt_outputfile"~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' export_dynamic_flag_spec_CXX='$wl--export-all-symbols' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_CXX=no fi ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported if test yes = "$lt_cv_ld_force_load"; then whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec_CXX='' fi link_all_deplibs_CXX=yes allow_undefined_flag_CXX=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" module_expsym_cmds_CXX="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" fi else ld_shlibs_CXX=no fi ;; os2*) hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_minus_L_CXX=yes allow_undefined_flag_CXX=unsupported shrext_cmds=.dll archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes_CXX=yes file_list_spec_CXX='@' ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | dragonfly* | midnightbsd*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; haiku*) archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs_CXX=yes ;; hpux9*) hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='$wl-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) ;; *) export_dynamic_flag_spec_CXX='$wl-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; interix[3-9]*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' hardcode_libdir_separator_CXX=: inherit_rpath_CXX=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [1-5].* | *pgcpp\ [1-5].*) prelink_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' old_archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C++ 5.9 no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' hardcode_libdir_flag_spec_CXX='-R$libdir' whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object_CXX=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) ld_shlibs_CXX=yes ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no hardcode_direct_absolute_CXX=yes archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='$wl-E' whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else ld_shlibs_CXX=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) case $host in osf3*) allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' ;; *) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ $RM $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' ;; esac hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes,no = "$GXX,$with_gnu_ld"; then allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' case $host in osf3*) archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; *) archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test yes,no = "$GXX,$with_gnu_ld"; then no_undefined_flag_CXX=' $wl-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require '-G' NOT '-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='$wl-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_CXX='$wl-z,text' allow_undefined_flag_CXX='$wl-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='$wl-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ '"$old_archive_cmds_CXX" reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ '"$reload_cmds_CXX" ;; *) archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 printf "%s\n" "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no GCC_CXX=$GXX LD_CXX=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test x-L = "$p" || test x-R = "$p"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test no = "$pre_test_object_deps_done"; then case $prev in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX=$prev$p else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX=$prev$p else postdeps_CXX="${postdeps_CXX} $prev$p" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test no = "$pre_test_object_deps_done"; then if test -z "$predep_objects_CXX"; then predep_objects_CXX=$p else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX=$p else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken case $host_os in interix[3-9]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac compiler_lib_search_dirs_CXX= if test -n "${compiler_lib_search_path_CXX}"; then compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` fi lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= # C++ specific cases for pic, static, wl, etc. if test yes = "$GXX"; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi lt_prog_compiler_pic_CXX='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic_CXX='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_CXX='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static_CXX='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static_CXX= ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix[4-9]*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | dragonfly* | midnightbsd*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='$wl-a ${wl}archive' if test ia64 != "$host_cpu"; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='$wl-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64, which still supported -KPIC. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) # IBM XL 8.0, 9.0 on PPC and BlueGene lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-qpic' lt_prog_compiler_static_CXX='-qstaticlink' ;; *) case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C++ 5.9 lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic_CXX+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } if test ${lt_cv_prog_compiler_pic_works_CXX+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works_CXX=yes fi fi $RM conftest* ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test ${lt_cv_prog_compiler_static_works_CXX+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_prog_compiler_static_works_CXX=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works_CXX=yes fi else lt_cv_prog_compiler_static_works_CXX=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then : else lt_prog_compiler_static_CXX= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 printf %s "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 printf "%s\n" "$hard_links" >&6; } if test no = "$hard_links"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' case $host_os in aix[4-9]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX=$ltdll_cmds ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl* | icl*) exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' ;; esac ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 printf "%s\n" "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no with_gnu_ld_CXX=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc_CXX+y} then : printf %s "(cached) " >&6 else case e in #( e) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc_CXX=no else lt_cv_archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX ;; esac fi ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 printf %s "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl* | *,icl*) # Native MSVC or ICC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC and ICC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly* | midnightbsd*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec_CXX='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 else case e in #( e) lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO" then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir ;; esac fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 printf "%s\n" "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 printf %s "checking how to hardcode library paths into programs... " >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || test -n "$runpath_var_CXX" || test yes = "$hardcode_automatic_CXX"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct_CXX" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && test no != "$hardcode_minus_L_CXX"; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 printf "%s\n" "$hardcode_action_CXX" >&6; } if test relink = "$hardcode_action_CXX" || test yes = "$inherit_rpath_CXX"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test yes != "$_lt_caught_CXX_error" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_commands="$ac_config_commands libtool" # Only expand once: # --------------------------------------------------------------------------- # Build options # --------------------------------------------------------------------------- DBLDFLAGS="-lm " # Check whether --enable-optimized was given. if test ${enable_optimized+y} then : enableval=$enable_optimized; if test "x$enableval" = "xyes" ; then CFLAGS=`echo $CFLAGS|sed 's/\-g[^ ]*//g'` CFLAGS=`echo $CFLAGS|sed 's/\-O.//'` CFLAGS="$CFLAGS -O3" OPTIMIZED=1 else OPTIMIZED=0 fi else case e in #( e) OPTIMIZED=0 ;; esac fi # Check whether --enable-profiling was given. if test ${enable_profiling+y} then : enableval=$enable_profiling; if test "x$enableval" = "xyes" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports profiling options" >&5 printf %s "checking whether the compiler supports profiling options... " >&6; } svd_CFLAGS="$CFLAGS" CFLAGS="-pg $CFLAGS" if test "$cross_compiling" = yes then : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See 'config.log' for more details" "$LINENO" 5; } else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { return 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } CFLAGS=`echo $CFLAGS|sed 's/-O.//'` CFLAGS="$CFLAGS -g" PROFILE=1 else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } CFLAGS="$svd_CFLAGS" PROFILE=0 ;; esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi else PROFILE=0 fi else case e in #( e) PROFILE=0 ;; esac fi # Check whether --enable-zild was given. if test ${enable_zild+y} then : enableval=$enable_zild; if test "x$enableval" = "xyes" ; then ZILD_PROTECT=1 printf "%s\n" "#define PACKAGE_PROTECTED 1" >>confdefs.h printf "%s\n" "#define ZILD_PACKAGE_PROTECTED 1" >>confdefs.h else ZILD_PROTECT=0 fi else case e in #( e) ZILD_PROTECT=0 ;; esac fi if test $ZILD_PROTECT -eq 1; then WITH_ZILD_TRUE= WITH_ZILD_FALSE='#' else WITH_ZILD_TRUE='#' WITH_ZILD_FALSE= fi # Check whether --enable-protected was given. if test ${enable_protected+y} then : enableval=$enable_protected; if test "x$enableval" = "xyes" ; then PROTECT=1 printf "%s\n" "#define PACKAGE_PROTECTED 1" >>confdefs.h else PROTECT=0 fi else case e in #( e) PROTECT=0 ;; esac fi # Check whether --enable-openssl was given. if test ${enable_openssl+y} then : enableval=$enable_openssl; if test "x$enableval" = "xno" ; then OPENSSL=0 else OPENSSL=1 if test "x$enableval" = "xyes"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5 printf %s "checking for SSL_CTX_new in -lssl... " >&6; } if test ${ac_cv_lib_ssl_SSL_CTX_new+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lssl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char SSL_CTX_new (void); int main (void) { return SSL_CTX_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_ssl_SSL_CTX_new=yes else case e in #( e) ac_cv_lib_ssl_SSL_CTX_new=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5 printf "%s\n" "$ac_cv_lib_ssl_SSL_CTX_new" >&6; } if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes then : printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h LIBS="-lssl $LIBS" else case e in #( e) as_fn_error $? "libssl not found" "$LINENO" 5 ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 printf %s "checking for SHA1_Init in -lcrypto... " >&6; } if test ${ac_cv_lib_crypto_SHA1_Init+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char SHA1_Init (void); int main (void) { return SHA1_Init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_crypto_SHA1_Init=yes else case e in #( e) ac_cv_lib_crypto_SHA1_Init=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5 printf "%s\n" "$ac_cv_lib_crypto_SHA1_Init" >&6; } if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes then : printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h LIBS="-lcrypto $LIBS" else case e in #( e) as_fn_error $? "libcrypto not found" "$LINENO" 5 ;; esac fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl in $enableval" >&5 printf %s "checking for openssl in $enableval... " >&6; } LDFLAGS="-L$enableval/lib -lssl -lcrypto $LDFLAGS" CPPFLAGS="-I$enableval/include $CPPFLAGS" if test -r "$enableval/lib/libssl.a" -a -r "$enableval/lib/libcrypto.a"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 printf "%s\n" "ok" >&6; } else as_fn_error $? "openssl not found in $enableval" "$LINENO" 5 fi fi fi else case e in #( e) OPENSSL=0 ;; esac fi # Check whether --enable-sqliteunlock was given. if test ${enable_sqliteunlock+y} then : enableval=$enable_sqliteunlock; if test "x$enableval" = "xyes" ; then SQLITEUNLOCK=1 CFLAGS="$CFLAGS -DSQLITEUNLOCK" else SQLITEUNLOCK=0 fi else case e in #( e) SQLITEUNLOCK=0 ;; esac fi if test $PROTECT -eq 0 -a $ZILD_PROTECT -eq 0; then test_build=1 UNIT_TEST="test" else test_build=0 UNIT_TEST="" fi # ------------------------------------------------------------------------ # Functions # ------------------------------------------------------------------------ # Require a working setjmp { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking setjmp is available" >&5 printf %s "checking setjmp is available... " >&6; } if test ${libzdb_cv_setjmp_available+y} then : printf %s "(cached) " >&6 else case e in #( e) if test "$cross_compiling" = yes then : as_fn_error $? "cross-compiling: please set 'libzdb_cv_setjmp_available=yes|no'" "$LINENO" 5 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { jmp_buf env; setjmp(env); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else case e in #( e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "setjmp is required See 'config.log' for more details" "$LINENO" 5; } ;; esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libzdb_cv_setjmp_available" >&5 printf "%s\n" "$libzdb_cv_setjmp_available" >&6; } # Require that we have vsnprintf that conforms to c11. I.e. does bounds check { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking vsnprintf is c11 conformant" >&5 printf %s "checking vsnprintf is c11 conformant... " >&6; } if test ${libzdb_cv_vsnprintf_c11_conformant+y} then : printf %s "(cached) " >&6 else case e in #( e) if test "$cross_compiling" = yes then : as_fn_error $? "cross-compiling: please set 'libzdb_cv_vsnprintf_c11_conformant=yes|no'" "$LINENO" 5 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { char t[1]; va_list ap; int n = vsnprintf(t, 1, "hello", ap); if(n == 5) return 0;return 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else case e in #( e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "vsnprintf does not conform to c11 See 'config.log' for more details" "$LINENO" 5; } ;; esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libzdb_cv_vsnprintf_c11_conformant" >&5 printf "%s\n" "$libzdb_cv_vsnprintf_c11_conformant" >&6; } ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" if test "x$ac_cv_func_timegm" = xyes then : printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h fi # --------------------------------------------------------------------------- # Libraries # --------------------------------------------------------------------------- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 printf %s "checking for library containing pthread_create... " >&6; } if test ${ac_cv_search_pthread_create+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char pthread_create (void); int main (void) { return pthread_create (); ; return 0; } _ACEOF for ac_lib in '' pthread do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_pthread_create=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_pthread_create+y} then : break fi done if test ${ac_cv_search_pthread_create+y} then : else case e in #( e) ac_cv_search_pthread_create=no ;; esac fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 printf "%s\n" "$ac_cv_search_pthread_create" >&6; } ac_res=$ac_cv_search_pthread_create if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" else case e in #( e) as_fn_error $? "POSIX thread library is required" "$LINENO" 5 ;; esac fi # Database Libraries postgresql="yes" check_postgres_config() { # Extract the first word of "pg_config", so it can be a program name with args. set dummy pg_config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PGCONFIG+y} then : printf %s "(cached) " >&6 else case e in #( e) case $PGCONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PGCONFIG="$PGCONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_dummy="$PATH:/usr/local/bin:/usr/local/pgsql/bin" for as_dir in $as_dummy do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_PGCONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_PGCONFIG" && ac_cv_path_PGCONFIG="no" ;; esac ;; esac fi PGCONFIG=$ac_cv_path_PGCONFIG if test -n "$PGCONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PGCONFIG" >&5 printf "%s\n" "$PGCONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$PGCONFIG" = "xno" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pg_config is required to build libzdb with postgresql" >&5 printf "%s\n" "$as_me: WARNING: pg_config is required to build libzdb with postgresql" >&2;} postgresql="no" fi } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for postgresql" >&5 printf %s "checking for postgresql... " >&6; } # Check whether --with-postgresql was given. if test ${with_postgresql+y} then : withval=$with_postgresql; if test "xno" = "x$with_postgresql"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } postgresql="no" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } as_ac_File=`printf "%s\n" "ac_cv_file_$with_postgresql" | sed "$as_sed_sh"` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $with_postgresql" >&5 printf %s "checking for $with_postgresql... " >&6; } if eval test \${$as_ac_File+y} then : printf %s "(cached) " >&6 else case e in #( e) test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "$with_postgresql"; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" fi ;; esac fi eval ac_res=\$$as_ac_File { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } if eval test \"x\$"$as_ac_File"\" = x"yes" then : PGCONFIG=$with_postgresql else case e in #( e) check_postgres_config ;; esac fi fi else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } check_postgres_config ;; esac fi if test "xyes" = "x$postgresql"; then svd_CPPFLAGS=$CPPFLAGS svd_LDFLAGS=$LDFLAGS CPPFLAGS="-I`$PGCONFIG --includedir` $CPPFLAGS" LDFLAGS="-L`$PGCONFIG --libdir` $LDFLAGS" for ac_header in libpq-fe.h do : ac_fn_c_check_header_compile "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" if test "x$ac_cv_header_libpq_fe_h" = xyes then : printf "%s\n" "#define HAVE_LIBPQ_FE_H 1" >>confdefs.h else case e in #( e) postgresql="no" ;; esac fi done if test "xyes" = "x$postgresql"; then DBCPPFLAGS="$DBCPPFLAGS -I`$PGCONFIG --includedir`" DBLDFLAGS="$DBLDFLAGS -L`$PGCONFIG --libdir` -lpq" printf "%s\n" "#define HAVE_LIBPQ 1" >>confdefs.h else CPPFLAGS=$svd_CPPFLAGS LDFLAGS=$svd_LDFLAGS fi fi if test "xyes" = "x$postgresql"; then WITH_POSTGRESQL_TRUE= WITH_POSTGRESQL_FALSE='#' else WITH_POSTGRESQL_TRUE='#' WITH_POSTGRESQL_FALSE= fi sqlite="yes" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SQLite3" >&5 printf %s "checking for SQLite3... " >&6; } # Check whether --with-sqlite was given. if test ${with_sqlite+y} then : withval=$with_sqlite; if test "xno" = "x$with_sqlite"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } sqlite="no" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } as_ac_File=`printf "%s\n" "ac_cv_file_$with_sqlite" | sed "$as_sed_sh"` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $with_sqlite" >&5 printf %s "checking for $with_sqlite... " >&6; } if eval test \${$as_ac_File+y} then : printf %s "(cached) " >&6 else case e in #( e) test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "$with_sqlite"; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" fi ;; esac fi eval ac_res=\$$as_ac_File { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } if eval test \"x\$"$as_ac_File"\" = x"yes" then : svd_LDFLAGS=$LDFLAGS svd_CPPFLAGS=$CPPFLAGS LDFLAGS="-L$with_sqlite/lib $LDFLAGS" CPPFLAGS="-I$with_sqlite/include $CPPFLAGS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open" >&5 printf %s "checking for library containing sqlite3_open... " >&6; } if test ${ac_cv_search_sqlite3_open+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char sqlite3_open (void); int main (void) { return sqlite3_open (); ; return 0; } _ACEOF for ac_lib in '' sqlite3 do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -ldl -lm $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_sqlite3_open=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_sqlite3_open+y} then : break fi done if test ${ac_cv_search_sqlite3_open+y} then : else case e in #( e) ac_cv_search_sqlite3_open=no ;; esac fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open" >&5 printf "%s\n" "$ac_cv_search_sqlite3_open" >&6; } ac_res=$ac_cv_search_sqlite3_open if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" DBCPPFLAGS="$DBCPPFLAGS -I$with_sqlite/include" DBLDFLAGS="$DBLDFLAGS -L$with_sqlite/lib/ -lsqlite3" else case e in #( e) sqlite="no" ;; esac fi LDFLAGS=$svd_LDFLAGS CPPFLAGS=$svd_CPPFLAGS else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open" >&5 printf %s "checking for library containing sqlite3_open... " >&6; } if test ${ac_cv_search_sqlite3_open+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char sqlite3_open (void); int main (void) { return sqlite3_open (); ; return 0; } _ACEOF for ac_lib in '' sqlite3 do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -ldl -lm $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_sqlite3_open=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_sqlite3_open+y} then : break fi done if test ${ac_cv_search_sqlite3_open+y} then : else case e in #( e) ac_cv_search_sqlite3_open=no ;; esac fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open" >&5 printf "%s\n" "$ac_cv_search_sqlite3_open" >&6; } ac_res=$ac_cv_search_sqlite3_open if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" else case e in #( e) sqlite="no" ;; esac fi ;; esac fi fi else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open" >&5 printf %s "checking for library containing sqlite3_open... " >&6; } if test ${ac_cv_search_sqlite3_open+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char sqlite3_open (void); int main (void) { return sqlite3_open (); ; return 0; } _ACEOF for ac_lib in '' sqlite3 do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_sqlite3_open=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_sqlite3_open+y} then : break fi done if test ${ac_cv_search_sqlite3_open+y} then : else case e in #( e) ac_cv_search_sqlite3_open=no ;; esac fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open" >&5 printf "%s\n" "$ac_cv_search_sqlite3_open" >&6; } ac_res=$ac_cv_search_sqlite3_open if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" else case e in #( e) sqlite="no" ;; esac fi ;; esac fi if test "xyes" = "x$sqlite"; then printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_soft_heap_limit" >&5 printf %s "checking for library containing sqlite3_soft_heap_limit... " >&6; } if test ${ac_cv_search_sqlite3_soft_heap_limit+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char sqlite3_soft_heap_limit (void); int main (void) { return sqlite3_soft_heap_limit (); ; return 0; } _ACEOF for ac_lib in '' sqlite3 do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -ldl -lm $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_sqlite3_soft_heap_limit=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_sqlite3_soft_heap_limit+y} then : break fi done if test ${ac_cv_search_sqlite3_soft_heap_limit+y} then : else case e in #( e) ac_cv_search_sqlite3_soft_heap_limit=no ;; esac fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_soft_heap_limit" >&5 printf "%s\n" "$ac_cv_search_sqlite3_soft_heap_limit" >&6; } ac_res=$ac_cv_search_sqlite3_soft_heap_limit if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" printf "%s\n" "#define HAVE_SQLITE3_SOFT_HEAP_LIMIT 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_soft_heap_limit64" >&5 printf %s "checking for library containing sqlite3_soft_heap_limit64... " >&6; } if test ${ac_cv_search_sqlite3_soft_heap_limit64+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char sqlite3_soft_heap_limit64 (void); int main (void) { return sqlite3_soft_heap_limit64 (); ; return 0; } _ACEOF for ac_lib in '' sqlite3 do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -ldl -lm $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_sqlite3_soft_heap_limit64=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_sqlite3_soft_heap_limit64+y} then : break fi done if test ${ac_cv_search_sqlite3_soft_heap_limit64+y} then : else case e in #( e) ac_cv_search_sqlite3_soft_heap_limit64=no ;; esac fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_soft_heap_limit64" >&5 printf "%s\n" "$ac_cv_search_sqlite3_soft_heap_limit64" >&6; } ac_res=$ac_cv_search_sqlite3_soft_heap_limit64 if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" printf "%s\n" "#define HAVE_SQLITE3_SOFT_HEAP_LIMIT64 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_errstr" >&5 printf %s "checking for library containing sqlite3_errstr... " >&6; } if test ${ac_cv_search_sqlite3_errstr+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char sqlite3_errstr (void); int main (void) { return sqlite3_errstr (); ; return 0; } _ACEOF for ac_lib in '' sqlite3 do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -ldl -lm $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_sqlite3_errstr=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_sqlite3_errstr+y} then : break fi done if test ${ac_cv_search_sqlite3_errstr+y} then : else case e in #( e) ac_cv_search_sqlite3_errstr=no ;; esac fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_errstr" >&5 printf "%s\n" "$ac_cv_search_sqlite3_errstr" >&6; } ac_res=$ac_cv_search_sqlite3_errstr if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" printf "%s\n" "#define HAVE_SQLITE3_ERRSTR 1" >>confdefs.h fi fi if test "xyes" = "x$sqlite"; then WITH_SQLITE_TRUE= WITH_SQLITE_FALSE='#' else WITH_SQLITE_TRUE='#' WITH_SQLITE_FALSE= fi mysql="yes" check_mysql_config() { # Extract the first word of "mysql_config", so it can be a program name with args. set dummy mysql_config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_MYSQLCONFIG+y} then : printf %s "(cached) " >&6 else case e in #( e) case $MYSQLCONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_MYSQLCONFIG="$MYSQLCONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_dummy="$PATH:/usr/local/bin:/usr/local/mysql/bin" for as_dir in $as_dummy do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_MYSQLCONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_MYSQLCONFIG" && ac_cv_path_MYSQLCONFIG="no" ;; esac ;; esac fi MYSQLCONFIG=$ac_cv_path_MYSQLCONFIG if test -n "$MYSQLCONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MYSQLCONFIG" >&5 printf "%s\n" "$MYSQLCONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$MYSQLCONFIG" = "xno" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mysql_config is required to build libzdb with mysql" >&5 printf "%s\n" "$as_me: WARNING: mysql_config is required to build libzdb with mysql" >&2;} mysql="no" fi } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql" >&5 printf %s "checking for mysql... " >&6; } # Check whether --with-mysql was given. if test ${with_mysql+y} then : withval=$with_mysql; if test "xno" = "x$with_mysql"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } mysql="no" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } as_ac_File=`printf "%s\n" "ac_cv_file_$with_mysql" | sed "$as_sed_sh"` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $with_mysql" >&5 printf %s "checking for $with_mysql... " >&6; } if eval test \${$as_ac_File+y} then : printf %s "(cached) " >&6 else case e in #( e) test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "$with_mysql"; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" fi ;; esac fi eval ac_res=\$$as_ac_File { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } if eval test \"x\$"$as_ac_File"\" = x"yes" then : MYSQLCONFIG=$with_mysql else case e in #( e) check_mysql_config ;; esac fi fi else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } check_mysql_config ;; esac fi if test "xyes" = "x$mysql"; then svd_CPPFLAGS=$CPPFLAGS svd_LDFLAGS=$LDFLAGS CPPFLAGS="`$MYSQLCONFIG --include` $CPPFLAGS" LDFLAGS="`$MYSQLCONFIG --libs` $LDFLAGS" for ac_header in mysql.h do : ac_fn_c_check_header_compile "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default" if test "x$ac_cv_header_mysql_h" = xyes then : printf "%s\n" "#define HAVE_MYSQL_H 1" >>confdefs.h else case e in #( e) mysql="no" ;; esac fi done if test "xyes" = "x$mysql"; then DBCPPFLAGS="$DBCPPFLAGS `$MYSQLCONFIG --include`" DBLDFLAGS="$DBLDFLAGS `$MYSQLCONFIG --libs`" printf "%s\n" "#define HAVE_LIBMYSQLCLIENT 1" >>confdefs.h else CPPFLAGS=$svd_CPPFLAGS LDFLAGS=$svd_LDFLAGS fi fi if test "xyes" = "x$mysql"; then WITH_MYSQL_TRUE= WITH_MYSQL_FALSE='#' else WITH_MYSQL_TRUE='#' WITH_MYSQL_FALSE= fi oracle="yes" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for oracle" >&5 printf %s "checking for oracle... " >&6; } # Check whether --with-oci was given. if test ${with_oci+y} then : withval=$with_oci; if test "$withval" = "yes"; then if test -n "$ORACLE_HOME"; then oracle_home_dir="$ORACLE_HOME" else oracle_home_dir="" fi elif test -d "$withval"; then oracle_home_dir="$withval" else oracle_home_dir="" fi else case e in #( e) if test -n "$ORACLE_HOME"; then oracle_home_dir="$ORACLE_HOME" else oracle_home_dir="" fi ;; esac fi # Check whether --with-oci-include was given. if test ${with_oci_include+y} then : withval=$with_oci_include; oracle_home_include_dir="$withval" else case e in #( e) oracle_home_include_dir="" ;; esac fi # Check whether --with-oci-lib was given. if test ${with_oci_lib+y} then : withval=$with_oci_lib; oracle_home_lib_dir="$withval" else case e in #( e) oracle_home_lib_dir="" ;; esac fi ORACLE_OCI_CFLAGS="" ORACLE_OCI_LDFLAGS="" ORACLE_OCI_VERSION="" want_oracle_but_no_path="no" if test -n "$oracle_home_dir"; then if test "$oracle_home_dir" != "no" -a "$oracle_home_dir" != "yes"; then oracle_include_dir="$oracle_home_dir/rdbms/public" oracle_include_dir2="$oracle_home_dir/rdbms/demo" oracle_lib_dir="$oracle_home_dir/lib" elif test "$oracle_home_dir" = "yes"; then want_oracle_but_no_path="yes" fi elif test -n "$oracle_home_include_dir" -o -n "$oracle_home_lib_dir"; then if test "$oracle_home_include_dir" != "no" -a "$oracle_home_include_dir" != "yes"; then oracle_include_dir="$oracle_home_include_dir" elif test "$oracle_home_include_dir" = "yes"; then want_oracle_but_no_path="yes" fi if test "$oracle_home_lib_dir" != "no" -a "$oracle_home_lib_dir" != "yes"; then oracle_lib_dir="$oracle_home_lib_dir" elif test "$oracle_home_lib_dir" = "yes"; then want_oracle_but_no_path="yes" fi fi if test "$want_oracle_but_no_path" = "yes"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Oracle support is requested but no Oracle paths have been provided. \ Please, locate Oracle directories using --with-oci or \ --with-oci-include and --with-oci-lib options." >&5 printf "%s\n" "$as_me: WARNING: Oracle support is requested but no Oracle paths have been provided. \ Please, locate Oracle directories using --with-oci or \ --with-oci-include and --with-oci-lib options." >&2;} fi if test -n "$oracle_include_dir" -a -n "$oracle_lib_dir"; then saved_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$oracle_include_dir" if test -n "$oracle_include_dir2"; then CPPFLAGS="$CPPFLAGS -I$oracle_include_dir2" fi saved_LDFLAGS="$LDFLAGS" saved_LIBS="$LIBS" oci_ldflags="-L$oracle_lib_dir" oci_libs="-lclntsh" LDFLAGS="$LDFLAGS $oci_ldflags" LIBS="$LIBS $oci_libs" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Oracle OCI headers in $oracle_include_dir" >&5 printf %s "checking for Oracle OCI headers in $oracle_include_dir... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { #if defined(OCI_MAJOR_VERSION) #if OCI_MAJOR_VERSION == 10 && OCI_MINOR_VERSION == 2 /* Oracle 10.2 detected */ #endif #elif defined(OCI_V7_SYNTAX) /* OK, older Oracle detected */ /* TODO - mloskot: find better macro to check for older versions; */ #else # error Oracle oci.h header not found #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ORACLE_OCI_CFLAGS="-I$oracle_include_dir" if test -n "$oracle_include_dir2"; then ORACLE_OCI_CFLAGS="$ORACLE_OCI_CFLAGS -I$oracle_include_dir2" fi oci_header_found="yes" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else case e in #( e) oci_header_found="no" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 printf "%s\n" "not found" >&6; } ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$oci_header_found" = "yes"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Oracle OCI libraries in $oracle_lib_dir" >&5 printf %s "checking for Oracle OCI libraries in $oracle_lib_dir... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { OCIEnv* envh = 0; OCIEnvCreate(&envh, OCI_DEFAULT, 0, 0, 0, 0, 0, 0); if (envh) OCIHandleFree(envh, OCI_HTYPE_ENV); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ORACLE_OCI_LDFLAGS="$oci_ldflags $oci_libs" oci_lib_found="yes" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else case e in #( e) oci_lib_found="no" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 printf "%s\n" "not found" >&6; } ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi CPPFLAGS="$saved_CPPFLAGS" LDFLAGS="$saved_LDFLAGS" LIBS="$saved_LIBS" fi oracle_version_req= if test "$oci_header_found" = "yes" -a "$oci_lib_found" = "yes" -a \ -n "$oracle_version_req"; then oracle_version_major=`cat $oracle_include_dir/oci.h \ | grep '#define.*OCI_MAJOR_VERSION.*' \ | sed -e 's/#define OCI_MAJOR_VERSION *//' \ | sed -e 's/ *\/\*.*\*\///'` oracle_version_minor=`cat $oracle_include_dir/oci.h \ | grep '#define.*OCI_MINOR_VERSION.*' \ | sed -e 's/#define OCI_MINOR_VERSION *//' \ | sed -e 's/ *\/\*.*\*\///'` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Oracle OCI version is >= $oracle_version_req" >&5 printf %s "checking if Oracle OCI version is >= $oracle_version_req... " >&6; } if test -n "$oracle_version_major" -a -n $"oracle_version_minor"; then ORACLE_OCI_VERSION="$oracle_version_major.$oracle_version_minor" oracle_version_req_major=`expr $oracle_version_req : '\([0-9]*\)'` oracle_version_req_minor=`expr $oracle_version_req : '[0-9]*\.\([0-9]*\)'` oracle_version_req_number=`expr $oracle_version_req_major \* 1000000 \ \+ $oracle_version_req_minor \* 1000` oracle_version_number=`expr $oracle_version_major \* 1000000 \ \+ $oracle_version_minor \* 1000` oracle_version_check=`expr $oracle_version_number \>\= $oracle_version_req_number` if test "$oracle_version_check" = "1"; then oracle_version_checked="yes" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Oracle version = 10.x to use -lnnz10 flag" >&5 printf %s "checking for Oracle version = 10.x to use -lnnz10 flag... " >&6; } oracle_nnz_check=`expr $oracle_version_major \= 10` if test "$oracle_nnz_check" = "1"; then ORACLE_OCI_LDFLAGS="$ORACLE_OCI_LDFLAGS -lnnz10" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Oracle version = 12.x to use -lnnz12 flag" >&5 printf %s "checking for Oracle version = 12.x to use -lnnz12 flag... " >&6; } oracle_nnz_check=`expr $oracle_version_major \= 12` if test "$oracle_nnz_check" = "1"; then ORACLE_OCI_LDFLAGS="$ORACLE_OCI_LDFLAGS -lnnz12" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi else oracle_version_checked="no" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } as_fn_error $? "Oracle $ORACLE_OCI_VERSION found, but required version is $oracle_version_req" "$LINENO" 5 fi else ORACLE_OCI_VERSION="UNKNOWN" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Oracle version unknown, probably OCI older than 10.2 is available" >&5 printf "%s\n" "$as_me: WARNING: Oracle version unknown, probably OCI older than 10.2 is available" >&2;} fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Oracle support is enabled" >&5 printf %s "checking if Oracle support is enabled... " >&6; } if test "$oci_header_found" = "yes" -a "$oci_lib_found" = "yes"; then HAVE_ORACLE_OCI="yes" else HAVE_ORACLE_OCI="no" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_ORACLE_OCI" >&5 printf "%s\n" "$HAVE_ORACLE_OCI" >&6; } if test -n "$ORACLE_OCI_CFLAGS" -a -n "$ORACLE_OCI_LDFLAGS"; then DBCPPFLAGS="$DBCPPFLAGS $ORACLE_OCI_CFLAGS" DBLDFLAGS="$DBLDFLAGS $ORACLE_OCI_LDFLAGS" printf "%s\n" "#define HAVE_ORACLE 1" >>confdefs.h else oracle="no" fi if test "xyes" = "x$oracle"; then WITH_ORACLE_TRUE= WITH_ORACLE_FALSE='#' else WITH_ORACLE_TRUE='#' WITH_ORACLE_FALSE= fi # Test if any database system was found if test "xno" = "x$postgresql" -a "xno" = "x$mysql" -a "xno" = "x$sqlite" -a "xno" = "x$oracle"; then as_fn_error $? "No available database found or selected. Try configure --help" "$LINENO" 5 fi # --------------------------------------------------------------------------- # Data Types # --------------------------------------------------------------------------- ac_fn_c_check_type "$LINENO" "uchar_t" "ac_cv_type_uchar_t" "$ac_includes_default" if test "x$ac_cv_type_uchar_t" = xyes then : printf "%s\n" "#define HAVE_UCHAR_T 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include " if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes then : printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h fi # --------------------------------------------------------------------------- # Outputs # --------------------------------------------------------------------------- ac_config_headers="$ac_config_headers src/xconfig.h" ac_config_files="$ac_config_files src/zdb.h Makefile test/Makefile zdb.pc" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # 'ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* 'ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # 'set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # 'set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 printf %s "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 printf "%s\n" "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${WITH_ZILD_TRUE}" && test -z "${WITH_ZILD_FALSE}"; then as_fn_error $? "conditional \"WITH_ZILD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${WITH_POSTGRESQL_TRUE}" && test -z "${WITH_POSTGRESQL_FALSE}"; then as_fn_error $? "conditional \"WITH_POSTGRESQL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${WITH_SQLITE_TRUE}" && test -z "${WITH_SQLITE_FALSE}"; then as_fn_error $? "conditional \"WITH_SQLITE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${WITH_MYSQL_TRUE}" && test -z "${WITH_MYSQL_FALSE}"; then as_fn_error $? "conditional \"WITH_MYSQL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${WITH_ORACLE_TRUE}" && test -z "${WITH_ORACLE_FALSE}"; then as_fn_error $? "conditional \"WITH_ORACLE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case e in #( e) case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null then : eval 'as_fn_append () { eval $1+=\$2 }' else case e in #( e) as_fn_append () { eval $1=\$$1\$2 } ;; esac fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null then : eval 'as_fn_arith () { as_val=$(( $* )) }' else case e in #( e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } ;; esac fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" as_tr_sh="eval sed '$as_sed_sh'" # deprecated exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by libzdb $as_me 3.4.0, which was generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ '$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ libzdb config.status 3.4.0 configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\" Copyright (C) 2023 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) printf "%s\n" "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) printf "%s\n" "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: '$1' Try '$0 --help' for more information.";; --help | --hel | -h ) printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: '$1' Try '$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX printf "%s\n" "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ FILECMD \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ DLLTOOL \ sharedlib_from_linklib_cmd \ AR \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_import \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ lt_cv_nm_interface \ nm_file_list_spec \ lt_cv_truncate_bin \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib \ compiler_lib_search_dirs \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ LD_CXX \ reload_flag_CXX \ compiler_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_static_CXX \ lt_cv_prog_compiler_c_o_CXX \ export_dynamic_flag_spec_CXX \ whole_archive_flag_spec_CXX \ compiler_needs_object_CXX \ with_gnu_ld_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_separator_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX \ file_list_spec_CXX \ compiler_lib_search_dirs_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ configure_time_dlsearch_path \ configure_time_lt_sys_library_path \ reload_cmds_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ export_symbols_cmds_CXX \ prelink_cmds_CXX \ postlink_cmds_CXX; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "libtool_patch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool_patch" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "src/xconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS src/xconfig.h" ;; "src/zdb.h") CONFIG_FILES="$CONFIG_FILES src/zdb.h" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; "zdb.pc") CONFIG_FILES="$CONFIG_FILES zdb.pc" ;; *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to '$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with './config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with './config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script 'defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain ':'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is 'configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 printf "%s\n" "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`printf "%s\n" "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when '$srcdir' = '.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&5 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "libtool_patch":C) test `uname` = "OpenBSD" && perl -p -i -e "s/deplibs_check_method=.*/deplibs_check_method=pass_all/g" libtool ;; "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. case $CONFIG_FILES in #( *\'*) : eval set x "$CONFIG_FILES" ;; #( *) : set x $CONFIG_FILES ;; #( *) : ;; esac shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`$as_dirname -- "$am_mf" || $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$am_mf" : 'X\(//\)[^/]' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$am_mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` am_filepart=`$as_basename -- "$am_mf" || $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$am_mf" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` { echo "$as_me:$LINENO: cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles" >&5 (cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE=\"gmake\" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). See 'config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} { am_mf=; unset am_mf;} { am_rc=; unset am_rc;} rm -f conftest-deps.mk } ;; "libtool":C) # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 # Copyright (C) 2014 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # The names of the tagged configurations supported by this script. available_tags='CXX ' # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shared archive member basename,for filename based shared library versioning on AIX. shared_archive_member_spec=$shared_archive_member_spec # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # A file(cmd) program that detects file types. FILECMD=$lt_FILECMD # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # DLL creation program. DLLTOOL=$lt_DLLTOOL # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive (by configure). lt_ar_flags=$lt_ar_flags # Flags to create an archive. AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm into a list of symbols to manually relocate. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # The name lister interface. nm_interface=$lt_lt_cv_nm_interface # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and where our libraries should be installed. lt_sysroot=$lt_sysroot # Command to truncate a binary pipe. lt_truncate_bin=$lt_lt_cv_truncate_bin # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Detected run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects postdep_objects=$lt_postdep_objects predeps=$lt_predeps postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain=$ac_aux_dir/ltmain.sh # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? $SED '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: CXX # The linker used to build libraries. LD=$lt_LD_CXX # How to create reloadable object files. reload_flag=$lt_reload_flag_CXX reload_cmds=$lt_reload_cmds_CXX # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_CXX # A language specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU compiler? with_gcc=$GCC_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_CXX # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_CXX # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute_CXX # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_CXX # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_CXX # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_CXX # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_CXX # Specify filename containing input files. file_list_spec=$lt_file_list_spec_CXX # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_CXX postdep_objects=$lt_postdep_objects_CXX predeps=$lt_predeps_CXX postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # ### END LIBTOOL TAG CONFIG: CXX _LT_EOF ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi cat <= 3.5 * Added new configure option --enable-sqliteunlock which enables SQLite unlock notification. This feature requires SQLite >= 3.6.12 compiled with the SQLITE_ENABLE_UNLOCK_NOTIFY C-preprocessor symbol. This option greatly improves upon SQLite concurrency when libzdb and SQLite is used from a multi-threaded program. * Removed deprecated ResultSet_readData() from API Bug fixes: * PostgreSQL: Unescape values retrieved via ResultSet_getBlob() and via ResultSet_getBlobByName(). By an incurie, unescape was left out of libzdb version 2.5. Version 2.5 ----------- * Removed GPL license exceptions. The library is now licensed under the GPL version 3 only. * Deprecated ResultSet_readData(). This function _was_ useful for MySQL, but not for other drivers where it had some overhead. * Added GCC __attribute__ printf checks where applicable * PostgreSQL: Blob retrieval optimized * PostgreSQL: Added unix-socket parameter to connection URL * Internal optimizing changes and improvements Version 2.4 ----------- * The options --with_mysql= and --with_postgresql= to configure has a new meaning; If is given it is assumed to be the full path to respectively mysql_config and to pg_config. Example: ./configure --with_mysql=/usr/local/mysql/bin/mysql_config ./configure --with_postgresql=/usr/local/pgsql/bin/pg_config * From version 2.4, libzdb places its header files into a zdb sub-directory as in, /include/zdb. Clients must now use the include-dir compiler flag, -I/include/zdb. * Internal optimizing changes and improvements * Changed two prototypes to 'extern void foo(void)' so the library compiles without warning if -Wstrict-prototype is used with gcc. Thanks to Paul Stevens Bug fixes: * Fixed off-by-one bug in Vector_remove * PostgreSQL: Fixed PostgresqlResultSet_getColumnSize to report correct value. * PostgreSQL: Improved error reporting and fixed potential allocation bugs in prepared statements. * PostgreSQL: Calling PreparedStatement_setString with a NULL value now works Version 2.3 ----------- * Cleaned up API and changed function return type to void for those functions that can throw exception on error. * Support variable arguments in Connection_prepareStatement() to make it easy to build prepared statements in-place Version 2.2.3 ------------- Bug fixes: * Make sure connection properties, max rows and query timeout are reset on Connection_close(), if changed. * Ensure that timeout is set for new Connections. * SQLite: Fixed a bug so the SQLite driver now will retry executing on database lock. This should greatly improve concurrent usage of SQLite and reduce database locks from occurring Version 2.2.2 ------------- Bug fixes: * Ensure that reaper progress forward and remove all connections it can * Fixed a va_copy bug on 64 bits systems Version 2.2.1 ------------- * SQLite: Improved error reporting by using sqlite3_prepare_v2() when available. Thanks to Paul Stevens for suggesting this. Bug fixes: * MySQL and PostgreSQL: Fixed off-by-one count when verifying validity of parameter and column index. Thanks to Paul Stevens for bug report. * MySQL: Workaround mysql column truncation bug. Thanks to Paul Stevens for bug report. Version 2.2 ----------- * Detailed error message added to exception. In an exception handler, the variable Exception_frame.message, now provides an alternative to Connection_getLastError() for obtaining the latest error message * From this release, building with exceptions handling is no longer optional but required * Internal optimizing changes Bug fixes: * Fixed Connection_prepareStatement() error reported on a PostgreSQL Connection. Thanks to Paul Stevens for bug report. * MySQL: Fixed error in ResultSet_getBlob() and ResultSet_getString() which lead to a segfault when trying to obtain "large" strings and blobs. Again thanks to Paul Stevens. * PostgreSQL: Fixed the "syntax error at character 12" for prepared statement deallocation. Thanks to Paul Stevens for bug report. Version 2.1 ----------- * API: Connection_ping is promoted to a public method. Clients can use this method to test if a Connection is alive. * API: Connection_clear() is exposed as a public method. Normally it is not necessary to call this method, but in some situations, if you use PreparedStatement_executeQuery it is necessary to call this function to close a prepared statement explicit. Basically, if you see this SQLite error, "SQL statements in progress", call this function to close any previous opened statements before proceeding. * Upon returning a Connection, the Connection Pool previously tried to commit a Connection if it was in a non-committed state, while now it rollback instead, which is assumed to be more correct. * Improved retry when SQLite report database lock, which should reduce the chance to meet the infamous SQLite "database is locked" error * Removed section 3 from "Tildeslash License Exception" so libzdb is licensed clear and permissive. * Internal optimizing changes Version 2.0.2 ----------- * Don't normalize path during URL parsing. If the path needs to be normalized it is the responsibility of the caller * Minor internal changes * libzdb is now licensed under GNU General Public License version 3 Version 2.0.1 ----------- * ConnectionPool_version() is now a class method * Minor internal changes Version 2.0 ----------- * Exceptions handling added to the library. This change how clients should use the library. Methods in the library that can throw an SQL Exception should now be called from inside a try-catch block. Bug fixes: * Fixed a PostgreSQL prepared statement bug. If parts of a statement was defined after its last parameter, preparation failed. Version 1.1.3 ------------- Bug fixes: * This release fixes a MySQL prepared statement bug. If a prepared statement was used with two or more number parameters, the numbers were saved with a bogus value in the database. Thanks to José Antonio Sánchez Version 1.1.2 ------------- * ResultSet_next() can be given a NULL value, upon which false is returned. Version 1.1 ------------- * Added PostgreSQL support * Using 'mysql_config' when available. Thanks to Paul Stevens paul * Removed the viral clausal from the exceptions license * Note, the caller is now responsible for freeing the URL_T object used in ConnectionPool_new(), via the URL_free() method. Version 1.0.4 ------------- * Use libtool to set release information for the library. * Simplified and removed section 4 of the license exception. * Use new version of auto-tools so library extension is set correct * Include bootstrap script for recreating configure * Minor internal changes Version 1.0.3 ------------- * Clear any previous resultset when calling Connection_execute() also. This allow MySQL implementations to issue a Connection_executeQuery() followed by Connection_execute() without having to close the Connection first. Otherwise MySQL may return a 'commands out of sync' error. Bug fixes: * Changed declaration of AbortHandler() so clients are not required to provide this function. Version 1.0.2 ------------- Bug fixes: * Refactor and consolidate PreparedStatement clearResultSet * Do not free prepared statements on Connection_executeQuery(), only the ResultSet if any. * MySQL: Avoid unnecessary re-allocation in MysqlResultSet.ensureCapacity() and set the new buffer length properly. * MySQL: Stop MysqlResultSet_next() sooner when maxRows is reached for versions < 5.0 * MySQL: Do not try to bind params in PreparedStatement unless in-params are present in the statement Version 1.0.1 ------------- * API: Connection_beginTransaction(), Connection_commit() and Connection_rollback() now returns an int (true or false) instead of void. Bug fixes: * MySQL: Removed a debug statement in MySQL prepare statement so a potential error message is not lost - MySQL pops last error messages. * MySQL: Make room for a terminating NUL byte when fetching large strings. * configure.ac: Don't link with zlib unless mysql version was confirmed * configure.ac: Don't print a warning if re2c was not found - Not required Version 1.0 ----------- * Initial release libzdb-3.4.0/README000644 000765 000024 00000013305 14647573457 013767 0ustar00haukstaff000000 000000 Libzdb Introduction ------------ Libzdb is a database library with thread-safe connection pooling. The library can connect transparently to multiple database systems. It has zero runtime configuration and connection is specified via a URL scheme. System requirements ------------------- * Memory and Disk space A minimum of 1 megabytes RAM are required and around 700KB of free disk space. You may need more RAM depending on how many Connections the library should create. * C11 Compiler and Build System You will need a C11 compiler installed to build the library. The GNU C compiler (GCC) from the Free Software Foundation (FSF) is recommended. In addition, your PATH must contain basic build tools such as make and database configuration scripts for MySQL and PostgreSQL, that is, mysql_config and pg_config respectively. * Database systems This Software supports the following database systems, - MySQL - version 4.1 and later - PostgreSQL - version 8.0 and later - SQLite - version 3.0 and later - Oracle - version 10 and later Client libraries for at least one of these database systems must be installed on the host on which this Software will be built. Installation ------------ This library utilize the GNU auto-tools and provided the requirements above are satisfied, building the library is conducted via the standard; ./configure make make install Use ./configure --help for build and install options. By default, the library is built with support for MySQL, PostgreSQL and SQLite. You may change this with the --without- options to ./configure. E.g. --without-mysql, --without-postgresql or --without-sqlite. For Oracle, if you have Oracle installed locally, try configure --with-oci= otherwise download Oracle Instant Client library and header files and use --with-oci-lib=/lib and --with-oci-include=/include To verify the library and run unit tests, do 'make verify'. You may also want to take a look at test/select.c for an example on how to use the library. Note that unit tests cannot be built if the --enable-protected configure switch was used. This switch is used to package protect non-API objects in the library. It is strongly recommended to build the library with --enable-protected as it will be faster and reduce the risk for name symbol interposing API Documentation ----------------- The directory doc/api-docs/ and index.html contains the full API documentation for the library, generated by Doxygen. Start by reading the documentation for ConnectionPool.h Exceptions handling ------------------- The library implements an elegant solution for thread-safe exceptions handling in C. Use of exceptions frees programmers from the tedious return code idiom for dealing with errors. The API documents every method that can throw an exception. Methods that can throw an exception should be called from inside a try-block. Link and include ---------------- Include this interface in your C code to import the libzdb API; #include Compile and link a C program with libzdb; gcc -o select select.c -L//lib -lzdb -I//include/zdb Libzdb can be used directly in a C++ or in an Objective-C++ project. Instead of including , include which is a C++20 API for idiomatic usage of libzdb in your C++ project. Compile and link a C++ program with libzdb; g++ -o select select.cpp -std=c++20 -L//lib -lzdb -I//include/zdb On some systems you may have to explicit set LD_LIBRARY_PATH if libzdb was installed in a non-standard location License Notes ------------- This Software product is licensed under the GNU General Public License version 3. You can use this Software product free of charge to develop, use and distribute Open Source application programs, including reusable components and other software that link with the Software. You may also use and modify any example source code included with the Software for any purpose. See the file COPYING accompanying the Software for details. Reporting a bug --------------- If you believe you have found a bug, please use the issue tracker mentioned at https://www.tildeslash.com/libzdb/#contact to report the problem. Remember to include the necessary information that will enable us to understand and reproduce this problem. Alternatively, you can send us an email at bugs-libzdb@tildeslash.com Questions and support --------------------- If you have questions or comments about the software or documentation please subscribe to the libzdb general mailing list and post your questions there. https://tildeslash.com/mailman3/postorius/lists/libzdb-general.tildeslash.com/ Contributing ------------ You are welcome to contribute to this project, but please note that an electronically signed CLA is required to be on file before any Pull Request or patches are accepted or you are given commit rights to the project. To sign, go to https://tildeslash.com/cla/ Contact information ------------------- Libzdb is a product of Tildeslash Ltd. a company registered in Norway and in United Kingdom. For further information about this Software, please use the following contact information. E-mail: info@tildeslash.com Internet: https://www.tildeslash.com/libzdb/ Acknowledgments --------------- The design of this library was inspired by principles put forth by David R. Hanson in his excellent book "C Interfaces and Implementations". You can learn more about this book here http://www.cs.princeton.edu/software/cii/ libzdb-3.4.0/Makefile.am000644 000765 000024 00000007062 14652557242 015134 0ustar00haukstaff000000 000000 # Copyright (C) Tildeslash Ltd. All rights reserved. AUTOMAKE_OPTIONS = foreign no-dependencies subdir-objects ACLOCAL_AMFLAGS = -I m4 SUBDIRS = . $(UNIT_TEST) DIST_SUBDIRS = . test EXTRA_DIST = README AUTHORS CHANGES COPYING bootstrap doc test src tools config LIBRARY_NAME = zdb RE2C = @RE2C@ RE2CFLAGS = -i FILTERH = ./tools/bin/filterh AM_CPPFLAGS = $(CPPFLAGS) $(DBCPPFLAGS) AM_CPPFLAGS += -Isrc -Isrc/util -Isrc/net -Isrc/db -Isrc/db/oracle -Isrc/exceptions pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = $(LIBRARY_NAME).pc lib_LTLIBRARIES = libzdb.la libzdb_la_SOURCES = src/util/Str.c src/util/Vector.c src/util/StringBuffer.c \ src/system/Mem.c src/system/System.c src/system/Time.c \ src/db/ConnectionPool.c src/db/Connection.c src/db/ResultSet.c \ src/db/PreparedStatement.c \ src/exceptions/assert.c src/exceptions/Exception.c if ! WITH_ZILD libzdb_la_SOURCES += src/net/URL.c endif if WITH_MYSQL libzdb_la_SOURCES += src/db/mysql/MysqlConnection.c \ src/db/mysql/MysqlResultSet.c \ src/db/mysql/MysqlPreparedStatement.c endif if WITH_POSTGRESQL libzdb_la_SOURCES += src/db/postgresql/PostgresqlConnection.c \ src/db/postgresql/PostgresqlResultSet.c \ src/db/postgresql/PostgresqlPreparedStatement.c endif if WITH_SQLITE libzdb_la_SOURCES += src/db/sqlite/SQLiteConnection.c \ src/db/sqlite/SQLiteResultSet.c \ src/db/sqlite/SQLitePreparedStatement.c \ src/db/sqlite/SQLiteAdapter.c endif if WITH_ORACLE libzdb_la_SOURCES += src/db/oracle/OracleConnection.c \ src/db/oracle/OracleResultSet.c \ src/db/oracle/OraclePreparedStatement.c \ src/db/oracle/OracleAdapter.c endif API_INTERFACES = src/zdb.h src/zdbpp.h src/db/ConnectionPool.h \ src/db/Connection.h src/db/ResultSet.h src/net/URL.h \ src/db/PreparedStatement.h src/exceptions/SQLException.h \ src/exceptions/Exception.h nobase_nodist_include_HEADERS = $(patsubst %, $(LIBRARY_NAME)/%, $(notdir $(API_INTERFACES))) libzdb_la_LDFLAGS = $(DBLDFLAGS) -version-info 16:0:0 BUILT_SOURCES = $(nobase_nodist_include_HEADERS) CLEANFILES = $(BUILT_SOURCES) DISTCLEANFILES = *~ dist-hook:: -rm -rf `find $(distdir) -name ".git"` -rm -rf `find $(distdir) -name "._*"` -rm -rf `find $(distdir) -name ".DS_Store"` -rm -rf `find $(distdir) -name ".libs"` -rm -f $(distdir)/src/xconfig.h $(distdir)/src/stamp-* \ $(distdir)/tools/bin/filterh -rm -f $(distdir)/test/Makefile clean-local:: -rm -f `find src -name "*.o" -o -name "*.lo" -o -name "*.loT" \ -o -name "*~" -o -name ".#*" -o -name "core*"` distclean-local:: -rm -f Makefile.in Makefile \ src/zdb.h \ libzdb-[0-9].*tar.gz -rm -rf autom4te.cache/ \ build/ \ $(LIBRARY_NAME) -rm -f tools/bin/filterh \ src/xconfig.h.in verify: libzdb.la cd $(srcdir)/test && $(MAKE) verify doc: $(nobase_nodist_include_HEADERS) doxygen config/Doxyfile -cp doc/api-docs/files.html doc/api-docs/index.html define check-exit || exit 1 endef $(nobase_nodist_include_HEADERS): $(API_INTERFACES) $(shell test -d $(LIBRARY_NAME) || mkdir $(LIBRARY_NAME)) $(foreach file, $(API_INTERFACES), \ $(FILTERH) < $(file) > $(LIBRARY_NAME)/$(notdir $(file)) \ $(check-exit)) libzdb-3.4.0/COPYING000644 000765 000024 00000105357 13445042537 014134 0ustar00haukstaff000000 000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . License Exception In addition, as a special exception, The copyright holders give permission to link the code of portions of this program with the OpenSSL library under certain conditions as described in each individual source file, and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than OpenSSL. libzdb-3.4.0/m4/000755 000765 000024 00000000000 14652557242 013413 5ustar00haukstaff000000 000000 libzdb-3.4.0/doc/000775 000765 000024 00000000000 14652264443 013640 5ustar00haukstaff000000 000000 libzdb-3.4.0/Makefile.in000644 000765 000024 00000125502 14652557242 015145 0ustar00haukstaff000000 000000 # Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (C) Tildeslash Ltd. All rights reserved. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @WITH_ZILD_FALSE@am__append_1 = src/net/URL.c @WITH_MYSQL_TRUE@am__append_2 = src/db/mysql/MysqlConnection.c \ @WITH_MYSQL_TRUE@ src/db/mysql/MysqlResultSet.c \ @WITH_MYSQL_TRUE@ src/db/mysql/MysqlPreparedStatement.c @WITH_POSTGRESQL_TRUE@am__append_3 = src/db/postgresql/PostgresqlConnection.c \ @WITH_POSTGRESQL_TRUE@ src/db/postgresql/PostgresqlResultSet.c \ @WITH_POSTGRESQL_TRUE@ src/db/postgresql/PostgresqlPreparedStatement.c @WITH_SQLITE_TRUE@am__append_4 = src/db/sqlite/SQLiteConnection.c \ @WITH_SQLITE_TRUE@ src/db/sqlite/SQLiteResultSet.c \ @WITH_SQLITE_TRUE@ src/db/sqlite/SQLitePreparedStatement.c \ @WITH_SQLITE_TRUE@ src/db/sqlite/SQLiteAdapter.c @WITH_ORACLE_TRUE@am__append_5 = src/db/oracle/OracleConnection.c \ @WITH_ORACLE_TRUE@ src/db/oracle/OracleResultSet.c \ @WITH_ORACLE_TRUE@ src/db/oracle/OraclePreparedStatement.c \ @WITH_ORACLE_TRUE@ src/db/oracle/OracleAdapter.c subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/config/ax_info.m4 \ $(top_srcdir)/config/ax_lib_oracle_oci.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__DIST_COMMON) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/src/xconfig.h CONFIG_CLEAN_FILES = src/zdb.h zdb.pc CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgconfigdir)" \ "$(DESTDIR)$(includedir)" LTLIBRARIES = $(lib_LTLIBRARIES) libzdb_la_LIBADD = am__libzdb_la_SOURCES_DIST = src/util/Str.c src/util/Vector.c \ src/util/StringBuffer.c src/system/Mem.c src/system/System.c \ src/system/Time.c src/db/ConnectionPool.c src/db/Connection.c \ src/db/ResultSet.c src/db/PreparedStatement.c \ src/exceptions/assert.c src/exceptions/Exception.c \ src/net/URL.c src/db/mysql/MysqlConnection.c \ src/db/mysql/MysqlResultSet.c \ src/db/mysql/MysqlPreparedStatement.c \ src/db/postgresql/PostgresqlConnection.c \ src/db/postgresql/PostgresqlResultSet.c \ src/db/postgresql/PostgresqlPreparedStatement.c \ src/db/sqlite/SQLiteConnection.c \ src/db/sqlite/SQLiteResultSet.c \ src/db/sqlite/SQLitePreparedStatement.c \ src/db/sqlite/SQLiteAdapter.c src/db/oracle/OracleConnection.c \ src/db/oracle/OracleResultSet.c \ src/db/oracle/OraclePreparedStatement.c \ src/db/oracle/OracleAdapter.c am__dirstamp = $(am__leading_dot)dirstamp @WITH_ZILD_FALSE@am__objects_1 = src/net/URL.lo @WITH_MYSQL_TRUE@am__objects_2 = src/db/mysql/MysqlConnection.lo \ @WITH_MYSQL_TRUE@ src/db/mysql/MysqlResultSet.lo \ @WITH_MYSQL_TRUE@ src/db/mysql/MysqlPreparedStatement.lo @WITH_POSTGRESQL_TRUE@am__objects_3 = src/db/postgresql/PostgresqlConnection.lo \ @WITH_POSTGRESQL_TRUE@ src/db/postgresql/PostgresqlResultSet.lo \ @WITH_POSTGRESQL_TRUE@ src/db/postgresql/PostgresqlPreparedStatement.lo @WITH_SQLITE_TRUE@am__objects_4 = src/db/sqlite/SQLiteConnection.lo \ @WITH_SQLITE_TRUE@ src/db/sqlite/SQLiteResultSet.lo \ @WITH_SQLITE_TRUE@ src/db/sqlite/SQLitePreparedStatement.lo \ @WITH_SQLITE_TRUE@ src/db/sqlite/SQLiteAdapter.lo @WITH_ORACLE_TRUE@am__objects_5 = src/db/oracle/OracleConnection.lo \ @WITH_ORACLE_TRUE@ src/db/oracle/OracleResultSet.lo \ @WITH_ORACLE_TRUE@ src/db/oracle/OraclePreparedStatement.lo \ @WITH_ORACLE_TRUE@ src/db/oracle/OracleAdapter.lo am_libzdb_la_OBJECTS = src/util/Str.lo src/util/Vector.lo \ src/util/StringBuffer.lo src/system/Mem.lo \ src/system/System.lo src/system/Time.lo \ src/db/ConnectionPool.lo src/db/Connection.lo \ src/db/ResultSet.lo src/db/PreparedStatement.lo \ src/exceptions/assert.lo src/exceptions/Exception.lo \ $(am__objects_1) $(am__objects_2) $(am__objects_3) \ $(am__objects_4) $(am__objects_5) libzdb_la_OBJECTS = $(am_libzdb_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libzdb_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libzdb_la_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src depcomp = am__maybe_remake_depfiles = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libzdb_la_SOURCES) DIST_SOURCES = $(am__libzdb_la_SOURCES_DIST) RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DATA = $(pkgconfig_DATA) HEADERS = $(nobase_nodist_include_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir distdir-am dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/zdb.pc.in \ $(top_srcdir)/config/compile $(top_srcdir)/config/config.guess \ $(top_srcdir)/config/config.sub \ $(top_srcdir)/config/install-sh $(top_srcdir)/config/ltmain.sh \ $(top_srcdir)/config/missing $(top_srcdir)/src/xconfig.h.in \ $(top_srcdir)/src/zdb.h.in AUTHORS COPYING README \ config/compile config/config.guess config/config.sub \ config/install-sh config/ltmain.sh config/missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip # Exists only to be overridden by the user if desired. AM_DISTCHECK_DVI_TARGET = dvi distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DBCPPFLAGS = @DBCPPFLAGS@ DBLDFLAGS = @DBLDFLAGS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FILECMD = @FILECMD@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MYSQLCONFIG = @MYSQLCONFIG@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORACLE_OCI_CFLAGS = @ORACLE_OCI_CFLAGS@ ORACLE_OCI_LDFLAGS = @ORACLE_OCI_LDFLAGS@ ORACLE_OCI_VERSION = @ORACLE_OCI_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PGCONFIG = @PGCONFIG@ RANLIB = @RANLIB@ RE2C = @RE2C@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ UNIT_TEST = @UNIT_TEST@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ VERSION_REVISION = @VERSION_REVISION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign no-dependencies subdir-objects ACLOCAL_AMFLAGS = -I m4 SUBDIRS = . $(UNIT_TEST) DIST_SUBDIRS = . test EXTRA_DIST = README AUTHORS CHANGES COPYING bootstrap doc test src tools config LIBRARY_NAME = zdb RE2CFLAGS = -i FILTERH = ./tools/bin/filterh AM_CPPFLAGS = $(CPPFLAGS) $(DBCPPFLAGS) -Isrc -Isrc/util -Isrc/net \ -Isrc/db -Isrc/db/oracle -Isrc/exceptions pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = $(LIBRARY_NAME).pc lib_LTLIBRARIES = libzdb.la libzdb_la_SOURCES = src/util/Str.c src/util/Vector.c \ src/util/StringBuffer.c src/system/Mem.c src/system/System.c \ src/system/Time.c src/db/ConnectionPool.c src/db/Connection.c \ src/db/ResultSet.c src/db/PreparedStatement.c \ src/exceptions/assert.c src/exceptions/Exception.c \ $(am__append_1) $(am__append_2) $(am__append_3) \ $(am__append_4) $(am__append_5) API_INTERFACES = src/zdb.h src/zdbpp.h src/db/ConnectionPool.h \ src/db/Connection.h src/db/ResultSet.h src/net/URL.h \ src/db/PreparedStatement.h src/exceptions/SQLException.h \ src/exceptions/Exception.h nobase_nodist_include_HEADERS = $(patsubst %, $(LIBRARY_NAME)/%, $(notdir $(API_INTERFACES))) libzdb_la_LDFLAGS = $(DBLDFLAGS) -version-info 16:0:0 BUILT_SOURCES = $(nobase_nodist_include_HEADERS) CLEANFILES = $(BUILT_SOURCES) DISTCLEANFILES = *~ all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): src/xconfig.h: src/stamp-h1 @test -f $@ || rm -f src/stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) src/stamp-h1 src/stamp-h1: $(top_srcdir)/src/xconfig.h.in $(top_builddir)/config.status @rm -f src/stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status src/xconfig.h $(top_srcdir)/src/xconfig.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f src/stamp-h1 touch $@ distclean-hdr: -rm -f src/xconfig.h src/stamp-h1 src/zdb.h: $(top_builddir)/config.status $(top_srcdir)/src/zdb.h.in cd $(top_builddir) && $(SHELL) ./config.status $@ zdb.pc: $(top_builddir)/config.status $(srcdir)/zdb.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } src/util/$(am__dirstamp): @$(MKDIR_P) src/util @: > src/util/$(am__dirstamp) src/util/Str.lo: src/util/$(am__dirstamp) src/util/Vector.lo: src/util/$(am__dirstamp) src/util/StringBuffer.lo: src/util/$(am__dirstamp) src/system/$(am__dirstamp): @$(MKDIR_P) src/system @: > src/system/$(am__dirstamp) src/system/Mem.lo: src/system/$(am__dirstamp) src/system/System.lo: src/system/$(am__dirstamp) src/system/Time.lo: src/system/$(am__dirstamp) src/db/$(am__dirstamp): @$(MKDIR_P) src/db @: > src/db/$(am__dirstamp) src/db/ConnectionPool.lo: src/db/$(am__dirstamp) src/db/Connection.lo: src/db/$(am__dirstamp) src/db/ResultSet.lo: src/db/$(am__dirstamp) src/db/PreparedStatement.lo: src/db/$(am__dirstamp) src/exceptions/$(am__dirstamp): @$(MKDIR_P) src/exceptions @: > src/exceptions/$(am__dirstamp) src/exceptions/assert.lo: src/exceptions/$(am__dirstamp) src/exceptions/Exception.lo: src/exceptions/$(am__dirstamp) src/net/$(am__dirstamp): @$(MKDIR_P) src/net @: > src/net/$(am__dirstamp) src/net/URL.lo: src/net/$(am__dirstamp) src/db/mysql/$(am__dirstamp): @$(MKDIR_P) src/db/mysql @: > src/db/mysql/$(am__dirstamp) src/db/mysql/MysqlConnection.lo: src/db/mysql/$(am__dirstamp) src/db/mysql/MysqlResultSet.lo: src/db/mysql/$(am__dirstamp) src/db/mysql/MysqlPreparedStatement.lo: src/db/mysql/$(am__dirstamp) src/db/postgresql/$(am__dirstamp): @$(MKDIR_P) src/db/postgresql @: > src/db/postgresql/$(am__dirstamp) src/db/postgresql/PostgresqlConnection.lo: \ src/db/postgresql/$(am__dirstamp) src/db/postgresql/PostgresqlResultSet.lo: \ src/db/postgresql/$(am__dirstamp) src/db/postgresql/PostgresqlPreparedStatement.lo: \ src/db/postgresql/$(am__dirstamp) src/db/sqlite/$(am__dirstamp): @$(MKDIR_P) src/db/sqlite @: > src/db/sqlite/$(am__dirstamp) src/db/sqlite/SQLiteConnection.lo: src/db/sqlite/$(am__dirstamp) src/db/sqlite/SQLiteResultSet.lo: src/db/sqlite/$(am__dirstamp) src/db/sqlite/SQLitePreparedStatement.lo: \ src/db/sqlite/$(am__dirstamp) src/db/sqlite/SQLiteAdapter.lo: src/db/sqlite/$(am__dirstamp) src/db/oracle/$(am__dirstamp): @$(MKDIR_P) src/db/oracle @: > src/db/oracle/$(am__dirstamp) src/db/oracle/OracleConnection.lo: src/db/oracle/$(am__dirstamp) src/db/oracle/OracleResultSet.lo: src/db/oracle/$(am__dirstamp) src/db/oracle/OraclePreparedStatement.lo: \ src/db/oracle/$(am__dirstamp) src/db/oracle/OracleAdapter.lo: src/db/oracle/$(am__dirstamp) libzdb.la: $(libzdb_la_OBJECTS) $(libzdb_la_DEPENDENCIES) $(EXTRA_libzdb_la_DEPENDENCIES) $(AM_V_CCLD)$(libzdb_la_LINK) -rpath $(libdir) $(libzdb_la_OBJECTS) $(libzdb_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) -rm -f src/db/*.$(OBJEXT) -rm -f src/db/*.lo -rm -f src/db/mysql/*.$(OBJEXT) -rm -f src/db/mysql/*.lo -rm -f src/db/oracle/*.$(OBJEXT) -rm -f src/db/oracle/*.lo -rm -f src/db/postgresql/*.$(OBJEXT) -rm -f src/db/postgresql/*.lo -rm -f src/db/sqlite/*.$(OBJEXT) -rm -f src/db/sqlite/*.lo -rm -f src/exceptions/*.$(OBJEXT) -rm -f src/exceptions/*.lo -rm -f src/net/*.$(OBJEXT) -rm -f src/net/*.lo -rm -f src/system/*.$(OBJEXT) -rm -f src/system/*.lo -rm -f src/util/*.$(OBJEXT) -rm -f src/util/*.lo distclean-compile: -rm -f *.tab.c .c.o: $(AM_V_CC)$(COMPILE) -c -o $@ $< .c.obj: $(AM_V_CC)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: $(AM_V_CC)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs -rm -rf src/db/.libs src/db/_libs -rm -rf src/db/mysql/.libs src/db/mysql/_libs -rm -rf src/db/oracle/.libs src/db/oracle/_libs -rm -rf src/db/postgresql/.libs src/db/postgresql/_libs -rm -rf src/db/sqlite/.libs src/db/sqlite/_libs -rm -rf src/exceptions/.libs src/exceptions/_libs -rm -rf src/net/.libs src/net/_libs -rm -rf src/system/.libs src/system/_libs -rm -rf src/util/.libs src/util/_libs distclean-libtool: -rm -f libtool config.lt install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ done uninstall-pkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) install-nobase_nodist_includeHEADERS: $(nobase_nodist_include_HEADERS) @$(NORMAL_INSTALL) @list='$(nobase_nodist_include_HEADERS)'; test -n "$(includedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \ fi; \ $(am__nobase_list) | while read dir files; do \ xfiles=; for file in $$files; do \ if test -f "$$file"; then xfiles="$$xfiles $$file"; \ else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \ test -z "$$xfiles" || { \ test "x$$dir" = x. || { \ echo " $(MKDIR_P) '$(DESTDIR)$(includedir)/$$dir'"; \ $(MKDIR_P) "$(DESTDIR)$(includedir)/$$dir"; }; \ echo " $(INSTALL_HEADER) $$xfiles '$(DESTDIR)$(includedir)/$$dir'"; \ $(INSTALL_HEADER) $$xfiles "$(DESTDIR)$(includedir)/$$dir" || exit $$?; }; \ done uninstall-nobase_nodist_includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(nobase_nodist_include_HEADERS)'; test -n "$(includedir)" || list=; \ $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \ dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-zstd: distdir tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ *.tar.zst*) \ zstd -dc $(distdir).tar.zst | $(am__untar) ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-recursive all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(includedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-recursive install-exec: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -rm -f src/db/$(am__dirstamp) -rm -f src/db/mysql/$(am__dirstamp) -rm -f src/db/oracle/$(am__dirstamp) -rm -f src/db/postgresql/$(am__dirstamp) -rm -f src/db/sqlite/$(am__dirstamp) -rm -f src/exceptions/$(am__dirstamp) -rm -f src/net/$(am__dirstamp) -rm -f src/system/$(am__dirstamp) -rm -f src/util/$(am__dirstamp) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-recursive clean-am: clean-generic clean-libLTLIBRARIES clean-libtool clean-local \ mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-hdr distclean-libtool distclean-local distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-nobase_nodist_includeHEADERS \ install-pkgconfigDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-libLTLIBRARIES \ uninstall-nobase_nodist_includeHEADERS uninstall-pkgconfigDATA .MAKE: $(am__recursive_targets) all check install install-am \ install-exec install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ clean-libLTLIBRARIES clean-libtool clean-local cscope \ cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ dist-gzip dist-hook dist-lzip dist-shar dist-tarZ dist-xz \ dist-zip dist-zstd distcheck distclean distclean-compile \ distclean-generic distclean-hdr distclean-libtool \ distclean-local distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-libLTLIBRARIES install-man \ install-nobase_nodist_includeHEADERS install-pdf \ install-pdf-am install-pkgconfigDATA install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-libLTLIBRARIES \ uninstall-nobase_nodist_includeHEADERS uninstall-pkgconfigDATA .PRECIOUS: Makefile dist-hook:: -rm -rf `find $(distdir) -name ".git"` -rm -rf `find $(distdir) -name "._*"` -rm -rf `find $(distdir) -name ".DS_Store"` -rm -rf `find $(distdir) -name ".libs"` -rm -f $(distdir)/src/xconfig.h $(distdir)/src/stamp-* \ $(distdir)/tools/bin/filterh -rm -f $(distdir)/test/Makefile clean-local:: -rm -f `find src -name "*.o" -o -name "*.lo" -o -name "*.loT" \ -o -name "*~" -o -name ".#*" -o -name "core*"` distclean-local:: -rm -f Makefile.in Makefile \ src/zdb.h \ libzdb-[0-9].*tar.gz -rm -rf autom4te.cache/ \ build/ \ $(LIBRARY_NAME) -rm -f tools/bin/filterh \ src/xconfig.h.in verify: libzdb.la cd $(srcdir)/test && $(MAKE) verify doc: $(nobase_nodist_include_HEADERS) doxygen config/Doxyfile -cp doc/api-docs/files.html doc/api-docs/index.html define check-exit || exit 1 endef $(nobase_nodist_include_HEADERS): $(API_INTERFACES) $(shell test -d $(LIBRARY_NAME) || mkdir $(LIBRARY_NAME)) $(foreach file, $(API_INTERFACES), \ $(FILTERH) < $(file) > $(LIBRARY_NAME)/$(notdir $(file)) \ $(check-exit)) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libzdb-3.4.0/aclocal.m4000644 000765 000024 00000123050 14652557227 014737 0ustar00haukstaff000000 000000 # generated automatically by aclocal 1.16.5 -*- Autoconf -*- # Copyright (C) 1996-2021 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.72],, [m4_warning([this file was generated for autoconf 2.72. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # Copyright (C) 2002-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.16' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.16.5], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.16.5])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. AS_CASE([$CONFIG_FILES], [*\'*], [eval set x "$CONFIG_FILES"], [*], [set x $CONFIG_FILES]) shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`AS_DIRNAME(["$am_mf"])` am_filepart=`AS_BASENAME(["$am_mf"])` AM_RUN_LOG([cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles]) || am_rc=$? done if test $am_rc -ne 0; then AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE="gmake" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking).]) fi AS_UNSET([am_dirpart]) AS_UNSET([am_filepart]) AS_UNSET([am_mf]) AS_UNSET([am_rc]) rm -f conftest-deps.mk } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking is enabled. # This creates each '.Po' and '.Plo' makefile fragment that we'll need in # order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl m4_ifdef([_$0_ALREADY_INIT], [m4_fatal([$0 expanded multiple times ]m4_defn([_$0_ALREADY_INIT]))], [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) # Variables for tags utilities; see am/tags.am if test -z "$CTAGS"; then CTAGS=ctags fi AC_SUBST([CTAGS]) if test -z "$ETAGS"; then ETAGS=etags fi AC_SUBST([ETAGS]) if test -z "$CSCOPE"; then CSCOPE=cscope fi AC_SUBST([CSCOPE]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi dnl The trailing newline in this macro's definition is deliberate, for dnl backward compatibility and to allow trailing 'dnl'-style comments dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check whether make has an 'include' directive that can support all # the idioms we need for our automatic dependency tracking code. AC_DEFUN([AM_MAKE_INCLUDE], [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) AS_CASE([$?:`cat confinc.out 2>/dev/null`], ['0:this is the am__doit target'], [AS_CASE([$s], [BSD], [am__include='.include' am__quote='"'], [am__include='include' am__quote=''])]) if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* AC_MSG_RESULT([${_am_result}]) AC_SUBST([am__include])]) AC_SUBST([am__quote])]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_CC_C_O # --------------- # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([m4/libtool.m4]) m4_include([m4/ltoptions.m4]) m4_include([m4/ltsugar.m4]) m4_include([m4/ltversion.m4]) m4_include([m4/lt~obsolete.m4]) m4_include([config/ax_info.m4]) m4_include([config/ax_lib_oracle_oci.m4]) libzdb-3.4.0/src/000775 000765 000024 00000000000 14652557242 013664 5ustar00haukstaff000000 000000 libzdb-3.4.0/src/net/000775 000765 000024 00000000000 14652557242 014452 5ustar00haukstaff000000 000000 libzdb-3.4.0/src/util/000775 000765 000024 00000000000 14652556661 014645 5ustar00haukstaff000000 000000 libzdb-3.4.0/src/Config.h000644 000765 000024 00000007061 14647322744 015245 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef CONFIG_INCLUDED #define CONFIG_INCLUDED /** * Global defines, macros and types * * @file */ #include "xconfig.h" #include #include #include #include #include "Str.h" #include "system/Mem.h" #include "SQLException.h" #include "system/System.h" /** * The libzdb URL */ #define LIBZDB_URL "https://tildeslash.com/libzdb/" /** * Version, copyright and contact information */ #define ABOUT "libzdb/" VERSION " Copyright (C) Tildeslash Ltd. " LIBZDB_URL /* ----------------------------------- Error, Exceptions and report macros */ /** * The standard abort routine */ #define ABORT System_abort /** * The standard debug routine */ #define DEBUG System_debug /* --------------------------------------------- SQL standard value macros */ /** * Standard millisecond timeout value for a database call. */ #define SQL_DEFAULT_TIMEOUT 3000 /** * The default maximum number of database connections */ #define SQL_DEFAULT_MAX_CONNECTIONS 20 /** * The initial number of database connections */ #define SQL_DEFAULT_INIT_CONNECTIONS 5 /** * The standard sweep interval in seconds for a ConnectionPool reaper thread */ #define SQL_DEFAULT_SWEEP_INTERVAL 60 /** * Default Connection timeout in seconds, used by reaper to remove * inactive connections */ #define SQL_DEFAULT_CONNECTION_TIMEOUT 90 /** * Default number of rows to prefetch from the database ResultSet */ #define SQL_DEFAULT_PREFETCH_ROWS 100 /** * MySQL default server port number */ #define MYSQL_DEFAULT_PORT 3306 /** * PostgreSQL default server port number */ #define POSTGRESQL_DEFAULT_PORT 5432 /** * Oracle default server port number */ #define ORACLE_DEFAULT_PORT 1521 /* ------------------------------------------ General Purpose value macros */ /** * Standard String length */ #define STRLEN 256 /** * Milliseconds per second */ #define MSEC_PER_SEC 1000 /** * Microseconds per second */ #define USEC_PER_SEC 1000000 /** * Microseconds per millisecond */ #define USEC_PER_MSEC 1000 /* ------------------------------------- General Purpose functional macros */ #define IS Str_isEqual /* ------------------------------------------------------ Type definitions */ /** * The internal 8-bit char type */ #ifndef HAVE_UCHAR_T typedef unsigned char uchar_t; #endif /* -------------------------------------------------------------- Globals */ /** * Abort handler callback */ extern void(*AbortHandler)(const char *error); /** * Library Debug flag. If set to true, emit debug output */ extern int ZBDEBUG; #endif libzdb-3.4.0/src/zdb.h000644 000765 000024 00000007022 14652557235 014615 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef ZDB_INCLUDED #define ZDB_INCLUDED #ifdef __cplusplus extern "C" { #endif #include /** * Include this interface in your C code to import the libzdb API. * * @file */ /* --------------------------------------------------------------- Version */ #define LIBZDB_MAJOR 3 #define LIBZDB_MINOR 4 #define LIBZDB_REVISION 0 #define LIBZDB_VERSION "3.4.0" #define LIBZDB_VERSION_NUMBER ((LIBZDB_MAJOR * 1000000) + (LIBZDB_MINOR * 1000) + LIBZDB_REVISION) /* ------------------------------------------------- libzdb API interfaces */ #include #include #include #include #include #include #ifdef __cplusplus } #endif #ifndef __cplusplus /* --------------------------------------------------------- Utility Macro */ /** * @brief Provides a default value if the expression is NULL, 0, or negative. * * The valueOr macro is a convenient way to handle potentially unset or error * values returned by libzdb functions. It works with pointers, integers, and * floating-point types. * * This macro evaluates the expression only once, making it safe to use with * function calls or expressions that may have side effects. * * For pointers: * - Returns the default value if the expression evaluates to NULL. * - Otherwise, returns the original pointer value. * * For integers and floating-point types: * - Returns the default value if the expression evaluates to 0 or any negative value. * - Otherwise, returns the original numeric value. * * @param expr The expression to evaluate (typically a libzdb function call) * @param default_value The value to return if expr is NULL, 0, or negative * * @return If expr is not NULL, 0, or negative, returns expr. * Otherwise, returns default_value. * * @note This macro uses a GNU C extension and is compatible with GCC and Clang. * It may not work with other C compilers. * * @example * // Usage with string (pointer) return type * const char* host = valueOr(URL_getHost(url), "localhost"); * printf("Host: %s\n", host); * * // Usage with integer return type * int port = valueOr(ResultSet_getInt(r, 1), 5432); * printf("Port: %d\n", port); * * // Usage with floating-point return type * double percent = valueOr(ResultSet_getDouble(r, 1), 1.0); * printf("Percent: %.1f\n", percent); */ #define valueOr(expr, default_value) \ ({ \ __typeof__(expr) _t = (expr); \ (_t < 0 || _t == 0) ? (default_value) : _t; \ }) #endif /* not __cplusplus */ #endif libzdb-3.4.0/src/zdb.h.in000644 000765 000024 00000007103 14652555767 015232 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef ZDB_INCLUDED #define ZDB_INCLUDED #ifdef __cplusplus extern "C" { #endif #include /** * Include this interface in your C code to import the libzdb API. * * @file */ /* --------------------------------------------------------------- Version */ #define LIBZDB_MAJOR @VERSION_MAJOR@ #define LIBZDB_MINOR @VERSION_MINOR@ #define LIBZDB_REVISION @VERSION_REVISION@ #define LIBZDB_VERSION "@VERSION@" #define LIBZDB_VERSION_NUMBER ((LIBZDB_MAJOR * 1000000) + (LIBZDB_MINOR * 1000) + LIBZDB_REVISION) /* ------------------------------------------------- libzdb API interfaces */ #include #include #include #include #include #include #ifdef __cplusplus } #endif #ifndef __cplusplus /* --------------------------------------------------------- Utility Macro */ /** * @brief Provides a default value if the expression is NULL, 0, or negative. * * The valueOr macro is a convenient way to handle potentially unset or error * values returned by libzdb functions. It works with pointers, integers, and * floating-point types. * * This macro evaluates the expression only once, making it safe to use with * function calls or expressions that may have side effects. * * For pointers: * - Returns the default value if the expression evaluates to NULL. * - Otherwise, returns the original pointer value. * * For integers and floating-point types: * - Returns the default value if the expression evaluates to 0 or any negative value. * - Otherwise, returns the original numeric value. * * @param expr The expression to evaluate (typically a libzdb function call) * @param default_value The value to return if expr is NULL, 0, or negative * * @return If expr is not NULL, 0, or negative, returns expr. * Otherwise, returns default_value. * * @note This macro uses a GNU C extension and is compatible with GCC and Clang. * It may not work with other C compilers. * * @example * // Usage with string (pointer) return type * const char* host = valueOr(URL_getHost(url), "localhost"); * printf("Host: %s\n", host); * * // Usage with integer return type * int port = valueOr(ResultSet_getInt(r, 1), 5432); * printf("Port: %d\n", port); * * // Usage with floating-point return type * double percent = valueOr(ResultSet_getDouble(r, 1), 1.0); * printf("Percent: %.1f\n", percent); */ #define valueOr(expr, default_value) \ ({ \ __typeof__(expr) _t = (expr); \ (_t < 0 || _t == 0) ? (default_value) : _t; \ }) #endif /* not __cplusplus */ #endif libzdb-3.4.0/src/exceptions/000775 000765 000024 00000000000 14652556661 016051 5ustar00haukstaff000000 000000 libzdb-3.4.0/src/xconfig.h.in000644 000765 000024 00000007766 14652557230 016112 0ustar00haukstaff000000 000000 /* src/xconfig.h.in. Generated from configure.ac by autoheader. */ /* Define if building universal (internal helper macro) */ #undef AC_APPLE_UNIVERSAL_BUILD /* Define to 1 if the system is AIX */ #undef AIX /* Define to 1 if the system is OSX */ #undef DARWIN /* Define to 1 if the system is FreeBSD */ #undef FREEBSD /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the 'crypto' library (-lcrypto). */ #undef HAVE_LIBCRYPTO /* Define to 1 to enable mysql */ #undef HAVE_LIBMYSQLCLIENT /* Define to 1 to enable postgresql */ #undef HAVE_LIBPQ /* Define to 1 if you have the header file. */ #undef HAVE_LIBPQ_FE_H /* Define to 1 to enable sqlite3 */ #undef HAVE_LIBSQLITE3 /* Define to 1 if you have the 'ssl' library (-lssl). */ #undef HAVE_LIBSSL /* Define to 1 if you have the header file. */ #undef HAVE_MYSQL_H /* Define to 1 to enable oracle */ #undef HAVE_ORACLE /* sqlite3_errstr */ #undef HAVE_SQLITE3_ERRSTR /* sqlite3_soft_heap_limit */ #undef HAVE_SQLITE3_SOFT_HEAP_LIMIT /* sqlite3_soft_heap_limit64 */ #undef HAVE_SQLITE3_SOFT_HEAP_LIMIT64 /* Define to 1 if you have the header file. */ #undef HAVE_STDATOMIC_H /* Define to 1 if you have the header file. */ #undef HAVE_STDBOOL_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDIO_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if 'tm_gmtoff' is a member of 'struct tm'. */ #undef HAVE_STRUCT_TM_TM_GMTOFF /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the 'timegm' function. */ #undef HAVE_TIMEGM /* Define to 1 if the system has the type 'uchar_t'. */ #undef HAVE_UCHAR_T /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if the system is Linux */ #undef LINUX /* Define to the sub-directory where libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* Define to 1 if the system is NETBSD */ #undef NETBSD /* Define to 1 if the system is OpenBSD */ #undef OPENBSD /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to 1 to package protect (hide) non-api objects */ #undef PACKAGE_PROTECTED /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if the system is SOLARIS */ #undef SOLARIS /* Define to 1 if all of the C89 standard headers exist (not just the ones required in a freestanding environment). This macro is provided for backward compatibility; new code need not use it. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ #if defined AC_APPLE_UNIVERSAL_BUILD # if defined __BIG_ENDIAN__ # define WORDS_BIGENDIAN 1 # endif #else # ifndef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN # endif #endif /* Define to 1 if 'lex' declares 'yytext' as a 'char *' by default, not a 'char[]'. */ #undef YYTEXT_POINTER /* Define to 1 to hide objects for linking with zild */ #undef ZILD_PACKAGE_PROTECTED /* Define to empty if 'const' does not conform to ANSI C. */ #undef const libzdb-3.4.0/src/system/000775 000765 000024 00000000000 14652557242 015210 5ustar00haukstaff000000 000000 libzdb-3.4.0/src/Thread.h000644 000765 000024 00000005706 14646016775 015256 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef THREAD_INCLUDED #define THREAD_INCLUDED #include /** * This interface contains Thread and Mutex abstractions * via Macros. * * @file */ #define Thread_T pthread_t #define Sem_T pthread_cond_t #define Mutex_T pthread_mutex_t #define Once_T pthread_once_t #define ThreadData_T pthread_key_t #define _trapper(F) do { int status=F; \ if (status!=0 && status!=ETIMEDOUT) \ ABORT("Thread: %s\n", System_getError(status)); \ } while (0) #define Thread_create(thread, threadFunc, threadArgs) \ _trapper(pthread_create(&thread, NULL, threadFunc, (void*)threadArgs)) #define Thread_self() pthread_self() #define Thread_detach(thread) _trapper(pthread_detach(thread)) #define Thread_cancel(thread) _trapper(pthread_cancel(thread)) #define Thread_join(thread) _trapper(pthread_join(thread, NULL)) #define Thread_once(control, ctor) pthread_once(&(control), ctor) #define Sem_init(sem) _trapper(pthread_cond_init(&sem, NULL)) #define Sem_wait(sem, mutex) _trapper(pthread_cond_wait(&sem, &mutex)) #define Sem_signal(sem) _trapper(pthread_cond_signal(&sem)) #define Sem_broadcast(sem) _trapper(pthread_cond_broadcast(&sem)) #define Sem_destroy(sem) _trapper(pthread_cond_destroy(&sem)) #define Sem_timeWait(sem, mutex, time) \ _trapper(pthread_cond_timedwait(&sem, &mutex, &time)) #define Mutex_init(mutex) _trapper(pthread_mutex_init(&mutex, NULL)) #define Mutex_destroy(mutex) _trapper(pthread_mutex_destroy(&mutex)) #define Mutex_lock(mutex) _trapper(pthread_mutex_lock(&mutex)) #define Mutex_unlock(mutex) _trapper(pthread_mutex_unlock(&mutex)) #define LOCK(mutex) do { Mutex_T *_yymutex=&(mutex); \ _trapper(pthread_mutex_lock(_yymutex)); #define END_LOCK _trapper(pthread_mutex_unlock(_yymutex)); } while (0) #define ThreadData_create(key, dtor) _trapper(pthread_key_create(&(key), dtor)) #define ThreadData_set(key, value) pthread_setspecific((key), (value)) #define ThreadData_get(key) pthread_getspecific((key)) #endif libzdb-3.4.0/src/zdbpp.h000644 000765 000024 00000246621 14652547634 015171 0ustar00haukstaff000000 000000 /* * Copyright (C) 2016 dragon jiang * Copyright (C) 2019-2024 Tildeslash Ltd. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files(the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and / or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions : * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef _ZDBPP_H_ #define _ZDBPP_H_ #include "zdb.h" #include #include #include #include #include #include #include #include #include #include #include #include #include /** * * @brief zdbpp.h - C++ Interface for libzdb * *
* * This interface provides a C++ wrapper for libzdb, offering a convenient and * type-safe way to interact with various SQL databases from C++ applications. * * ## Features * * - Thread-safe Database Connection Pool * - Connect to multiple database systems simultaneously * - Zero runtime configuration, connect using a URL scheme * - Supports MySQL, PostgreSQL, SQLite, and Oracle * - Modern C++ features (C++20 or later required) * * ## Core Concepts * * The central class in this library is `ConnectionPool`, which manages database * connections. All other main classes (`Connection`, `PreparedStatement`, and * `ResultSet`) are obtained through the `ConnectionPool` or its derivatives. * * ### ConnectionPool and URL * * The `ConnectionPool` is initialized with a `URL` object, which specifies the * database connection details: * * ```cpp * zdb::URL url("mysql://localhost:3306/mydb?user=root&password=secret"); * zdb::ConnectionPool pool(url); * pool.start(); * ``` * * A ConnectionPool is designed to be a long-lived object that manages database * connections throughout the lifetime of your application. Typically, you would * instantiate one or more ConnectionPool objects as part of a resource management * class or in the global scope of your application. * * ### Best Practices for Using ConnectionPool * * 1. Create ConnectionPool instances at application startup. * 2. Maintain these instances for the entire duration of your application's runtime. * 3. Use a single ConnectionPool for each distinct database you need to connect to. * 4. Consider wrapping ConnectionPool instances in a singleton or dependency * injection pattern for easy access across your application. * 5. Ensure proper shutdown of ConnectionPool instances when your application * terminates to release all database resources cleanly. * * Example of a global ConnectionPool manager: * * ```cpp * class DatabaseManager { * public: * static ConnectionPool& getMainPool() { * static ConnectionPool mainPool("mysql://localhost/maindb?user=root&password=pass"); * return mainPool; * } * * static ConnectionPool& getAnalyticsPool() { * static ConnectionPool analyticsPool("postgresql://analyst:pass@192.168.8.217/datawarehouse"); * return analyticsPool; * } * * static void initialize() { * static std::once_flag initFlag; * std::call_once(initFlag, []() { * // Configure and start main pool * ConnectionPool& main = getMainPool(); * main.setInitialConnections(5); // Example value * main.setMaxConnections(20); // Example value * main.setConnectionTimeout(30); // 30 seconds timeout * main.start(); * * // Configure and start analytics pool * ConnectionPool& analytics = getAnalyticsPool(); * analytics.setInitialConnections(2); * analytics.setMaxConnections(10); * analytics.start(); * }); * } * * static void shutdown() { * getMainPool().stop(); * getAnalyticsPool().stop(); * } * }; * ``` * * ## Usage Examples * * ### Basic Query Execution * * ```cpp * auto& pool = DatabaseManager::getMainPool(); * auto con = pool.getConnection(); * * ResultSet result = con.executeQuery("SELECT name, age FROM users WHERE id = ?", 1); * if (result.next()) { * std::cout << "Name: " << result.getString("name").value_or("N/A") * << ", Age: " << result.getInt("age") << std::endl; * } * ``` * * ### Using PreparedStatement * * ```cpp * auto& pool = DatabaseManager::getAnalyticsPool(); * auto con = pool.getConnection(); * * auto stmt = con.prepareStatement("INSERT INTO logs (message, timestamp) VALUES (?, ?)"); * stmt.bindValues("User logged in", std::time(nullptr)); * stmt.execute(); * ``` * * ### Transaction Example * * ```cpp * Connection con = pool.getConnection(); * * // Use default isolation level * con.beginTransaction(); * con.execute("UPDATE accounts SET balance = balance - ? WHERE id = ?", 100.0, 1); * con.commit(); * * // Alternatively, specify the transaction's isolation level * con.beginTransaction(TRANSACTION_SERIALIZABLE)); * con.execute("UPDATE accounts SET balance = balance + ? WHERE id = ?", 100.0, 2); * con.commit(); * ``` * * ## Exception Handling * * All database-related errors are thrown as `sql_exception`, which derives from * `std::runtime_error`. * * ### Example of Exception Handling * * ```cpp * try { * Connection con = pool.getConnection(); * con.beginTransaction(); * con.execute("UPDATE accounts SET balance = balance - ? WHERE id = ?", 100.0, 1); * con.execute("UPDATE accounts SET balance = balance + ? WHERE id = ?", 100.0, 2); * con.commit(); * std::cout << "Transfer successful" << std::endl; * // Connection is automatically returned to pool when it goes out of scope * // If an exception occurred before commit, it will automatically rollback * } catch (const sql_exception& e) { * std::cerr << "Transfer failed: " << e.what() << std::endl; * } * ``` * Key points about exception handling in this library: * * 1. All database operations that can fail will throw `sql_exception`. * 2. `sql_exception` provides informative error messages through its `what()` method. * 3. You should wrap database operations in try-catch blocks to handle potential errors gracefully. * 4. The library ensures that resources are properly managed even when exceptions are thrown, preventing resource leaks. * * * @note For detailed API documentation, refer to the comments for each class in this header file. * Visit [libzdb's homepage](https://www.tildeslash.com/libzdb/) for additional documentation and examples. * @file */ namespace zdb { namespace version { constexpr int major = LIBZDB_MAJOR; constexpr int minor = LIBZDB_MINOR; constexpr int revision = LIBZDB_REVISION; constexpr int number = LIBZDB_VERSION_NUMBER; constexpr std::string_view string = LIBZDB_VERSION; constexpr bool is_compatible_with(int required_major, int required_minor, int required_revision = 0) { return (major > required_major) || (major == required_major && minor > required_minor) || (major == required_major && minor == required_minor && revision >= required_revision); } } // version namespace { // private // @cond hide #define except_wrapper(f) TRY { f; } ELSE { throw sql_exception(Exception_frame.message); } END_TRY constexpr std::optional _to_optional(const char* str) noexcept { return str ? std::optional{str} : std::nullopt; } std::function g_abortHandler; void bridgeAbortHandler(const char* error) { if (g_abortHandler) { g_abortHandler(error); } } struct noncopyable { noncopyable() = default; noncopyable(const noncopyable&) = delete; noncopyable& operator=(const noncopyable&) = delete; noncopyable(noncopyable&&) = delete; noncopyable& operator=(noncopyable&&) = delete; }; template inline constexpr bool always_false = false; template concept Stringable = std::convertible_to; template concept Numeric = (std::integral || std::floating_point) && !std::is_same_v; template concept Blobable = std::ranges::contiguous_range && std::same_as, std::byte>; // @endcond } // anonymous namespace /** * @brief Exception class for SQL related errors. * * Thrown for SQL errors. Inherits from `std::runtime_error`. * * Example: * @code * try { * con.executeQuery("invalid query"); * } catch (const zdb::sql_exception& e) { * std::cout << "SQL error: " << e.what() << std::endl; * } * @endcode */ class sql_exception : public std::runtime_error { public: /** * @brief Constructs a new sql_exception with an optional error message. * @param msg A C-string representing the error message. Defaults to "SQLException". */ explicit sql_exception(const char* msg = "SQLException") : std::runtime_error(msg) {} }; /** * @class URL * @brief Represents an immutable Uniform Resource Locator. * * A Uniform Resource Locator (URL), is used to uniquely identify a * resource on the Internet. The URL is a compact text string with a * restricted syntax that consists of four main components: * * ``` * protocol:// * ``` * * The `protocol` part is mandatory, the other components may or may not * be present in an URL string. For instance the `file` protocol only use * the path component while a `http` protocol may use all components. * * The following URL components are automatically unescaped according to the escaping * mechanism defined in RFC 2396; `credentials`, `path` and parameter * `values`. If you use a password with non-URL safe characters, you must URL * escape the value. * * An IPv6 address can be used for host as defined in * RFC2732 by enclosing the * address in [brackets]. For instance, * `mysql://[2010:836B:4179::836B:4179]:3306/test` * * For more information about the URL syntax and specification, see, * RFC2396 - * Uniform Resource Identifiers (URI): Generic Syntax * * ### Example: * * @code * URL url("postgresql://user:password@example.com:5432/database?use-ssl=true"); * * // Retrieve and print various components of the URL * std::cout << "Protocol: " << url.protocol() << std::endl; * std::cout << "Host: " << url.host().value_or("Not specified") << std::endl; * std::cout << "Port: " << url.port() << std::endl; * std::cout << "User: " << url.user().value_or("Not specified") << std::endl; * std::cout << "Password: " << (url.password().has_value() ? "Specified" : "Not specified") << std::endl; * std::cout << "Path: " << url.path().value_or("Not specified") << std::endl; * * // Get a specific parameter value * auto use_ssl = url.parameter("use-ssl").value_or("false"); * std::cout << "SSL Enabled: " << (use_ssl == "true") << std::endl; * @endcode */ class URL { public: /** * @brief Creates a new URL object from the given URL string. * @param url A string specifying the URL. * @throws sql_exception if the URL cannot be parsed. */ explicit URL(const std::string& url) : t_(URL_new(url.c_str())) { if (!t_) throw sql_exception("Invalid URL"); } /** * @brief Copy constructor. * @param r URL object to copy. * @private */ URL(const URL& r) : t_(URL_new(URL_toString(r.t_))) { if (!t_) throw sql_exception("Failed to copy URL"); } /** * @brief Move constructor. * @param r URL object to move. * @private */ URL(URL&& r) noexcept : t_(r.t_) { r.t_ = nullptr; } /** * @brief Copy assignment operator. * @param r URL object to copy assign. * @private */ URL& operator=(const URL& r) { if (this != &r) { URL tmp(r); std::swap(t_, tmp.t_); } return *this; } /** * @brief Move assignment operator. * @param r URL object to move assign. * @private */ URL& operator=(URL&& r) noexcept { if (this != &r) { if (t_) URL_free(&t_); t_ = r.t_; r.t_ = nullptr; } return *this; } /** * @brief Destroy the URL object. * @private */ ~URL() { if (t_) URL_free(&t_); } /// @name Properties /// @{ /** * @brief Gets the protocol of the URL. * @return The protocol name. */ [[nodiscard]] constexpr std::string_view protocol() const noexcept { return URL_getProtocol(t_); } /** * @brief Gets the username from the URL's authority part. * @return An optional containing the username or std::nullopt if not found. */ [[nodiscard]] constexpr std::optional user() const noexcept { return _to_optional(URL_getUser(t_)); } /** * @brief Gets the password from the URL's authority part. * @return An optional containing the password or std::nullopt if not found. */ [[nodiscard]] constexpr std::optional password() const noexcept { return _to_optional(URL_getPassword(t_)); } /** * @brief Gets the hostname of the URL. * @return An optional containing the hostname or std::nullopt if not found. */ [[nodiscard]] constexpr std::optional host() const noexcept { return _to_optional(URL_getHost(t_)); } /** * @brief Gets the port of the URL. * @return The port number of the URL or -1 if not specified. */ [[nodiscard]] constexpr int port() const noexcept { return URL_getPort(t_); } /** * @brief Gets the path of the URL. * @return An optional containing the path or std::nullopt if not found. */ [[nodiscard]] constexpr std::optional path() const noexcept { return _to_optional(URL_getPath(t_)); } /** * @brief Gets the query string of the URL. * @return An optional containing the query string or std::nullopt if not found. */ [[nodiscard]] constexpr std::optional queryString() const noexcept { return _to_optional(URL_getQueryString(t_)); } /** * @brief Gets the names of parameters contained in this URL. * @return A vector of parameter names, or an empty vector if no parameters. */ [[nodiscard]] std::vector parameterNames() const noexcept { std::vector names; const char **rawNames = URL_getParameterNames(t_); if (rawNames) { for (int i = 0; rawNames[i] != nullptr; i++) { names.emplace_back(rawNames[i]); } } return names; } /** * @brief Gets the value of the specified URL parameter. * @param name The parameter name to lookup. * @return An optional containing the parameter value, or std::nullopt if not found. */ [[nodiscard]] std::optional parameter(const std::string& name) const noexcept { return _to_optional(URL_getParameter(t_, name.c_str())); } /// @} /// @name Functions /// @{ /** * @brief Returns a string representation of this URL object. * @return The URL string. */ [[nodiscard]] constexpr std::string_view toString() const noexcept { return URL_toString(t_); } /// @} /** * @brief Cast operator to URL_T. * @return The internal URL_T representation. * @private */ operator URL_T() const noexcept { return t_; } private: URL_T t_; }; /** * @class ResultSet * @brief Represents a database result set. * * A ResultSet is created by executing a SQL SELECT statement using * Connection::executeQuery(). * * A ResultSet maintains a cursor pointing to its current row of data. * Initially, the cursor is positioned before the first row. * ResultSet::next() moves the cursor to the next row, and because * it returns false when there are no more rows, it can be used in a while * loop to iterate through the result set. A ResultSet is not updatable and * has a cursor that moves forward only. Thus, you can iterate through it * only once and only from the first row to the last row. * * The ResultSet class provides getter methods for retrieving * column values from the current row. Values can be retrieved using * either the index number of the column or the name of the column. In * general, using the column index will be more efficient. _Columns are * numbered from 1._ * * Column names used as input to getter methods are case sensitive. * When a getter method is called with a column name and several * columns have the same name, the value of the first matching column * will be returned. The column name option is designed to be used * when column names are used in the SQL query that generated the * result set. For columns that are NOT explicitly named in the query, * it is best to use column indices. * * ## Examples * * The following examples demonstrate how to obtain a ResultSet and * how to retrieve values from it. * * ### Example: Using column names * * In this example, columns are named in the SELECT statement, and we retrieve * values using the column names (we could of course also use indices if we * want): * * @code * Connection con = pool.getConnection(); * ResultSet result = con.executeQuery("SELECT ssn, name, photo FROM employees"); * while (result.next()) { * int ssn = result.getInt("ssn"); * auto name = result.getString("name"); * auto photo = result.getBlob("photo"); * if (photo) { * // Process photo data * } * // Process other data... * } * @endcode * * ### Example: Using column indices * * This example demonstrates selecting a generated result and printing it. * When the SELECT statement doesn't name the column, we use the column * index to retrieve the value: * * @code * Connection con = pool.getConnection(); * ResultSet r = con.executeQuery("SELECT COUNT(*) FROM employees"); * if (r.next()) { * std::cout << "Number of employees: " * << r.getString(1).value_or("none") * << std::endl; * } else { * std::cout << "No results returned" << std::endl; * } * @endcode * * ## Automatic type conversions * * A ResultSet stores values internally as bytes and converts values * on-the-fly to numeric types when requested, such as when getInt() * or one of the other numeric get-methods are called. In the above example, * even if *count(\*)* returns a numeric value, we can use getString() * to get the number as a string or if we choose, we can use getInt() * to get the value as an integer. In the latter case, note that if the column * value cannot be converted to a number, an sql_exception is thrown. * * ## Date and Time * * ResultSet provides two principal methods for retrieving temporal column * values as C types. getTimestamp() converts a SQL timestamp value * to a `time_t` and getDateTime() returns a `tm structure` representing * a Date, Time, DateTime, or Timestamp column type. To get a temporal column * value as a string, simply use getString() * * *A ResultSet is reentrant, but not thread-safe and should only be used by * one thread (at a time).* * * @note Remember that column indices in ResultSet are 1-based, not 0-based. * * @warning ResultSet objects are internally managed by the Connection that * created them and are not copyable or movable. Always ensure that the originating * Connection object remains valid for the entire duration of the ResultSet's * use. Basically, keep the Connection and ResultSet objects in the same scope. * Do not attempt to use ResultSet objects (including through references or * pointers) after their Connection has been closed and returned to the pool. */ class ResultSet : private noncopyable { public: /** * @brief Move constructor. * @param r ResultSet object to move. * @private */ ResultSet(ResultSet&& r) noexcept : t_(r.t_) { r.t_ = nullptr; } /** * @brief Conversion operator to ResultSet_T. * @return The underlying ResultSet_T. * @private */ operator ResultSet_T() noexcept { return t_; } /// @name Properties /// @{ /** * @brief Gets the number of columns in this ResultSet. * @return The number of columns. */ [[nodiscard]] int columnCount() const noexcept { return ResultSet_getColumnCount(t_); } /** * @brief Gets the designated column's name. * @param columnIndex The first column is 1, the second is 2, ... * @return An optional containing the Column name, or std::nullopt if not found. */ [[nodiscard]] std::optional columnName(int columnIndex) const noexcept { return _to_optional(ResultSet_getColumnName(t_, columnIndex)); } /** * @brief Gets the size of a column in bytes. * * If the column is a blob then this method returns the number of bytes * in that blob. No type conversions occur. If the result is a string * (or a number since a number can be converted into a string) then return * the number of bytes in the resulting string. * * @param columnIndex The first column is 1, the second is 2, ... * @return Column data size. * @throws sql_exception If columnIndex is outside the valid range. */ [[nodiscard]] long columnSize(int columnIndex) { except_wrapper(RETURN ResultSet_getColumnSize(t_, columnIndex)); } /** * @brief Sets the number of rows to fetch from the database. * * ResultSet will prefetch rows in batches of number of `rows` when next() * is called to reduce the network roundtrip to the database. This method * is only applicable to MySQL and Oracle. * * @param rows The number of rows to fetch (1..INT_MAX). */ void setFetchSize(int rows) noexcept { ResultSet_setFetchSize(t_, rows); } /** * @brief Gets the number of rows to fetch from the database. * * Unless previously set with setFetchSize(), the returned value * is the same as returned by Connection::getFetchSize() * @return The number of rows to fetch or 0 if N/A. */ [[nodiscard]] int getFetchSize() const noexcept { return ResultSet_getFetchSize(t_); } /// @} /// @name Functions /// @{ /** * @brief Moves the cursor to the next row. * * A ResultSet cursor is initially positioned before the first row; the * first call to this method makes the first row the current row; the * second call makes the second row the current row, and so on. When * there are no more available rows false is returned. An empty * ResultSet will return false on the first call to ResultSet::next(). * * @return true if the new current row is valid; false if there are no more rows. * @throws sql_exception If a database access error occurs. */ bool next() { except_wrapper(RETURN ResultSet_next(t_)); } /// @} /// @name Columns /// @{ /** * @brief Checks if the designated column's value is SQL NULL. * * A ResultSet returns an optional for reference types and 0 for value types. * Use this method if you need to differentiate between SQL NULL and std::nullopt/0. * * @param columnIndex The first column is 1, the second is 2, ... * @return true if column value is SQL NULL, false otherwise. * @throws sql_exception If a database access error occurs or columnIndex is invalid. */ [[nodiscard]] bool isNull(int columnIndex) { except_wrapper(RETURN ResultSet_isnull(t_, columnIndex)); } /** * @brief Gets the designated column's value as a string. * * _The returned string may only be valid until the next call to next() * and if you plan to use the returned value longer, you must make a copy._ * * @param columnIndex The first column is 1, the second is 2, ... * @return An optional containing the column value, or std::nullopt if NULL. * @throws sql_exception If a database access error occurs or columnIndex is invalid. */ [[nodiscard]] std::optional getString(int columnIndex) { except_wrapper(RETURN _to_optional(ResultSet_getString(t_, columnIndex))); } /** * @brief Gets the designated column's value as a string. * * _The returned string may only be valid until the next call to next() * and if you plan to use the returned value longer, you must make a copy._ * * @param columnName The SQL name of the column. case-sensitive. * @return An optional containing the column value, or std::nullopt if NULL. * @throws sql_exception If a database access error occurs or columnName does not exist. */ [[nodiscard]] std::optional getString(const std::string& columnName) { except_wrapper(RETURN _to_optional(ResultSet_getStringByName(t_, columnName.c_str()))); } /** * @brief Gets the designated column's value as an int. * @param columnIndex The first column is 1, the second is 2, ... * @return The column value; if the value is SQL NULL, the value returned is 0. * @throws sql_exception If a database error occurs, columnIndex is invalid or value is NaN. */ [[nodiscard]] int getInt(int columnIndex) { except_wrapper(RETURN ResultSet_getInt(t_, columnIndex)); } /** * @brief Gets the designated column's value as an int. * @param columnName The SQL name of the column. case-sensitive. * @return The column value; if the value is SQL NULL, the value returned is 0. * @throws sql_exception If a database error occurs, columnName is invalid or value is NaN. */ [[nodiscard]] int getInt(const std::string& columnName) { except_wrapper(RETURN ResultSet_getIntByName(t_, columnName.c_str())); } /** * @brief Gets the designated column's value as a long long. * @param columnIndex The first column is 1, the second is 2, ... * @return The column value; if the value is SQL NULL, the value returned is 0. * @throws sql_exception If a database error occurs, columnIndex is invalid or value is NaN. */ [[nodiscard]] long long getLLong(int columnIndex) { except_wrapper(RETURN ResultSet_getLLong(t_, columnIndex)); } /** * @brief Gets the designated column's value as a long long. * @param columnName The SQL name of the column. case-sensitive. * @return The column value; if the value is SQL NULL, the value returned is 0. * @throws sql_exception If a database error occurs, columnName is invalid or value is NaN. */ [[nodiscard]] long long getLLong(const std::string& columnName) { except_wrapper(RETURN ResultSet_getLLongByName(t_, columnName.c_str())); } /** * @brief Gets the designated column's value as a double. * @param columnIndex The first column is 1, the second is 2, ... * @return The column value; if the value is SQL NULL, the value returned is 0.0. * @throws sql_exception If a database error occurs, columnIndex is invalid or value is NaN. */ [[nodiscard]] double getDouble(int columnIndex) { except_wrapper(RETURN ResultSet_getDouble(t_, columnIndex)); } /** * @brief Gets the designated column's value as a double. * @param columnName The SQL name of the column. case-sensitive. * @return The column value; if the value is SQL NULL, the value returned is 0.0. * @throws sql_exception If a database error occurs, columnName is invalid or value is NaN. */ [[nodiscard]] double getDouble(const std::string& columnName) { except_wrapper(RETURN ResultSet_getDoubleByName(t_, columnName.c_str())); } /** * @brief Gets the designated column's value as a byte span. * * _The returned blob may only be valid until the next call to next() and * if you plan to use the returned value longer, you must make a copy._ * * @param columnIndex The first column is 1, the second is 2, ... * @return An optional span of bytes containing the blob data, or std::nullopt if NULL. * @throws sql_exception If a database access error occurs or columnIndex is invalid. */ [[nodiscard]] std::optional> getBlob(int columnIndex) { int size = 0; const void *blob = nullptr; except_wrapper(blob = ResultSet_getBlob(t_, columnIndex, &size)); if (blob == nullptr || size == 0) { return std::nullopt; } return std::span(static_cast(blob), size); } /** * @brief Gets the designated column's value as a byte span. * * _The returned blob may only be valid until the next call to next() and * if you plan to use the returned value longer, you must make a copy._ * * @param columnName The SQL name of the column. case-sensitive. * @return An optional span of bytes containing the blob data, or std::nullopt if NULL. * @throws sql_exception If a database access error occurs or columnName is invalid. */ [[nodiscard]] std::optional> getBlob(const std::string& columnName) { int size = 0; const void *blob = nullptr; except_wrapper(blob = ResultSet_getBlobByName(t_, columnName.c_str(), &size)); if (blob == nullptr || size == 0) { return std::nullopt; } return std::span(static_cast(blob), size); } /// @} /// @name Date and Time /// @{ /** * @brief Gets the designated column's value as a Unix timestamp. * * The returned value is in Coordinated Universal Time (UTC) and represents * seconds since the **epoch** (January 1, 1970, 00:00:00 GMT). * * Even though the underlying database might support timestamp ranges before * the epoch and after '2038-01-19 03:14:07 UTC' it is safest not to assume or * use values outside this range. Especially on a 32-bit system. * * *SQLite* does not have temporal SQL data types per se * and using this method with SQLite assumes the column value in the Result Set * to be either a numerical value representing a Unix Time in UTC which is * returned as-is or an [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) * time string which is converted to a `time_t` value. * * @param columnIndex The first column is 1, the second is 2, ... * @return The column value as seconds since the epoch in the GMT timezone. * If the value is SQL NULL, the value returned is 0. * @throws sql_exception If a database access error occurs, columnIndex is outside * the valid range or if the column value cannot be converted to a valid timestamp. */ [[nodiscard]] time_t getTimestamp(int columnIndex) { except_wrapper(RETURN ResultSet_getTimestamp(t_, columnIndex)); } /** * @brief Gets the designated column's value as a Unix timestamp. * * The returned value is in Coordinated Universal Time (UTC) and represents * seconds since the **epoch** (January 1, 1970, 00:00:00 GMT). * * Even though the underlying database might support timestamp ranges before * the epoch and after '2038-01-19 03:14:07 UTC' it is safest not to assume or * use values outside this range. Especially on a 32-bit system. * * *SQLite* does not have temporal SQL data types per se * and using this method with SQLite assumes the column value in the Result Set * to be either a numerical value representing a Unix Time in UTC which is * returned as-is or an [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) * time string which is converted to a `time_t` value. * * @param columnName The SQL name of the column. case-sensitive. * @return The column value as seconds since the epoch in the GMT timezone. * If the value is SQL NULL, the value returned is 0. * @throws sql_exception If a database access error occurs, columnName is not found * or if the column value cannot be converted to a valid timestamp. */ [[nodiscard]] time_t getTimestamp(const std::string& columnName) { except_wrapper(RETURN ResultSet_getTimestampByName(t_, columnName.c_str())); } /** * @brief Gets the designated column's value as a Date, Time or DateTime. * * This method can be used to retrieve the value of columns with the SQL data * type, Date, Time, DateTime or Timestamp. The returned `tm` structure follows * the convention for usage with mktime(3) where: * * - tm_hour = hours since midnight [0-23] * - tm_min = minutes after the hour [0-59] * - tm_sec = seconds after the minute [0-60] * - tm_mday = day of the month [1-31] * - tm_mon = months since January **[0-11]** * * If the column value contains timezone information, tm_gmtoff is set to the * offset from UTC in seconds, otherwise tm_gmtoff is set to 0. *On systems * without tm_gmtoff, (Solaris), the member, tm_wday is set to gmt offset * instead as this property is ignored by mktime on input.* The exception to * the above is **tm_year** which contains the year literal and *not years * since 1900* which is the convention. All other fields in the structure are * set to zero. If the column type is DateTime or Timestamp all the fields * mentioned above are set, if it is a Date or a Time, only the relevant * fields are set. * * @param columnIndex The first column is 1, the second is 2, ... * @return A tm structure with fields for date and time. * If the value is SQL NULL, a zeroed tm structure is returned. Use * isNull() if in doubt. * @throws sql_exception If a database access error occurs, columnIndex is * outside the valid range or if the column value cannot be converted * to a valid SQL Date, Time or DateTime type. */ [[nodiscard]] tm getDateTime(int columnIndex) { except_wrapper(RETURN ResultSet_getDateTime(t_, columnIndex)); } /** * @brief Gets the designated column's value as a Date, Time or DateTime. * * This method can be used to retrieve the value of columns with the SQL data * type, Date, Time, DateTime or Timestamp. The returned `tm` structure follows * the convention for usage with mktime(3) where: * * - tm_hour = hours since midnight [0-23] * - tm_min = minutes after the hour [0-59] * - tm_sec = seconds after the minute [0-60] * - tm_mday = day of the month [1-31] * - tm_mon = months since January **[0-11]** * * If the column value contains timezone information, tm_gmtoff is set to the * offset from UTC in seconds, otherwise tm_gmtoff is set to 0. *On systems * without tm_gmtoff, (Solaris), the member, tm_wday is set to gmt offset * instead as this property is ignored by mktime on input.* The exception to * the above is **tm_year** which contains the year literal and *not years * since 1900* which is the convention. All other fields in the structure are * set to zero. If the column type is DateTime or Timestamp all the fields * mentioned above are set, if it is a Date or a Time, only the relevant * fields are set. * * @param columnName The SQL name of the column. case-sensitive. * @return A tm structure with fields for date and time. * If the value is SQL NULL, a zeroed tm structure is returned. * Use isNull() if in doubt. * @throws sql_exception If a database access error occurs, columnName is * not found or if the column value cannot be converted to a valid * Date, Time or DateTime type. */ [[nodiscard]] tm getDateTime(const std::string& columnName) { except_wrapper(RETURN ResultSet_getDateTimeByName(t_, columnName.c_str())); } /// @} protected: friend class PreparedStatement; friend class Connection; /** * @brief Constructs a ResultSet from a ResultSet_T. * @param t The underlying ResultSet_T. * @private */ explicit ResultSet(ResultSet_T t) : t_(t) {} private: ResultSet_T t_; }; /** * @class PreparedStatement * @brief Represents a pre-compiled SQL statement for later execution. * * A PreparedStatement is created by calling Connection::prepareStatement(). The SQL * statement may contain *in* parameters of the form "?". Such parameters represent * unspecified literal values (or "wildcards") to be filled in later by the bind methods * defined in this class. Each *in* parameter has an associated index number which is * its sequence in the statement. The first *in* '?' parameter has index 1, * the next has index 2 and so on. * * Consider this statement: * ```sql * INSERT INTO employee(name, photo) VALUES(?, ?) * ``` * There are two *in* parameters in this statement, the parameter for setting * the name has index 1 and the one for the photo has index 2. To set the values * for the *in* parameters we use bindValues() with two values, one for each *in* * parameter. Or we can use bind() to set the parameter values one by one. * * ## Examples * * The following examples demonstrate how to create and use a PreparedStatement. * * ### Example: Binding all values at once * * This example shows how to prepare a statement, bind multiple values at once, and execute it: * * ```cpp * Connection con = pool.getConnection(); * PreparedStatement stmt = con.prepareStatement("INSERT INTO employee(name, photo) VALUES(?, ?)"); * stmt.bindValues("Kamiya Kaoru", jpeg); * stmt.execute(); * ``` * * ### Example: Binding values individually * * Instead of binding all values at once, we can also bind values one by one by * specifying the parameter index we want to set a value for: * * ```cpp * PreparedStatement stmt = con.prepareStatement("INSERT INTO employee(name, photo) VALUES(?, ?)"); * stmt.bind(1, "Kamiya Kaoru"); * stmt.bind(2, jpeg); * stmt.execute(); * ``` * * ## Reuse * * A PreparedStatement can be reused. That is, the method execute() can be called one * or more times to execute the same statement. Clients can also set new *in* parameter * values and re-execute the statement as shown in this example, where we also show use * of a transaction and exception handling: * * ```cpp * PreparedStatement stmt = con.prepareStatement("INSERT INTO employee(name, photo) VALUES(?, ?)"); * try { * con.beginTransaction(); * for (const auto& emp : employees) { * stmt.bind(1, emp.name); * if (emp.photo) { * stmt.bind(2, *emp.photo); * } else { * stmt.bind(2, nullptr); // Set to SQL NULL if no photo * } * stmt.execute(); * } * con.commit(); * } catch (const sql_exception& e) { * con.rollback(); * std::cerr << "Database error: " << e.what() << std::endl; * } * ``` * * ## Date and Time * * bindValues() or bind() can be used to set a Unix timestamp value as a `time_t` type. * To set Date, Time or DateTime values, simply use one of the bind methods to set a * time string in a format understood by your database. For instance to set a SQL Date value, * ```cpp * stmt.bind(parameterIndex, "2024-12-28"); * // or using bindValues * stmt.bindValues("2019-12-28", ...); * ``` * * ## Result Sets * * See Connection::executeQuery() * * ## SQL Injection Prevention * * Prepared Statement is particularly useful when dealing with user-submitted data, as * properly used Prepared Statements provide strong protection against SQL injection * attacks. By separating SQL logic from data, PreparedStatements ensure that user input * is treated as data only, not as part of the SQL command. * * *A PreparedStatement is reentrant, but not thread-safe and should only be used * by one thread (at a time).* * * @note Remember that parameter indices in PreparedStatement are 1-based, not 0-based. * * @note To minimizes memory allocation and avoid unnecessary data copying, string and blob * values are set by reference and _MUST_ remain valid until PreparedStatement::execute() * has been called. * * @warning PreparedStatement objects are internally managed by the Connection that * created them and are not copyable or movable. Always ensure that the originating * Connection object remains valid for the entire duration of the PreparedStatement's * use. Basically, keep the Connection and PreparedStatement objects in the same scope. * Do not attempt to use PreparedStatement objects (including through references or * pointers) after their Connection has been closed and returned to the pool. */ class PreparedStatement : private noncopyable { public: /** * @brief Move constructor. * @param r PreparedStatement object to move. * @private */ PreparedStatement(PreparedStatement&& r) noexcept : t_(r.t_) { r.t_ = nullptr; } /** * @brief Conversion operator to PreparedStatement_T. * @return The underlying PreparedStatement_T. * @private */ operator PreparedStatement_T() const noexcept { return t_; } /// @name Parameters /// @{ /** * @brief Binds a value to the prepared statement. * * This method can bind different types of values: * - String-like types (convertible to std::string_view) * - Numeric types (integral or floating-point, excluding time_t) * - Blob-like types (contiguous ranges of bytes) * - time_t for timestamp values * - nullptr_t for SQL NULL values * * @tparam T The type of the value to bind * @param parameterIndex The index of the parameter to bind (1-based) * @param x The value to bind * @throws sql_exception If a database access error occurs or parameterIndex * is invalid * @note For string-like and blob-like types, the data must remain valid until * execute() is called. This method does not copy the data but stores a * reference to it. * @note This method will fail to compile for unsupported types, providing a * clear error message. */ template void bind(int parameterIndex, T&& x) { if constexpr (std::is_same_v, std::nullptr_t>) { setNull(parameterIndex); } else if constexpr (Stringable>) { std::string_view sv(x); store_[parameterIndex] = sv; except_wrapper(PreparedStatement_setSString(t_, parameterIndex, sv.data(), static_cast(sv.size()))); } else if constexpr (Numeric>) { if constexpr (std::is_floating_point_v>) { except_wrapper(PreparedStatement_setDouble(t_, parameterIndex, static_cast(x))); } else if constexpr (sizeof(T) <= sizeof(int)) { except_wrapper(PreparedStatement_setInt(t_, parameterIndex, static_cast(x))); } else { except_wrapper(PreparedStatement_setLLong(t_, parameterIndex, static_cast(x))); } } else if constexpr (Blobable>) { if (std::empty(x)) { setNull(parameterIndex); } else { store_[parameterIndex] = std::span(std::data(x), std::size(x)); except_wrapper(PreparedStatement_setBlob(t_, parameterIndex, std::data(x), static_cast(std::size(x)))); } } else if constexpr (std::is_same_v, time_t>) { except_wrapper(PreparedStatement_setTimestamp(t_, parameterIndex, x)); } else { static_assert(always_false, "Unsupported type for bind"); } } /** * @brief Binds multiple values to the Prepared Statement at once. * * @param args Values to bind to the Prepared Statement. * @throws sql_exception If a database error occurs or if argument count * is incorrect * @note Reference types must remain valid until execute() is called. * This method does not copy any data. */ template void bindValues(Args&&... args) { if (sizeof...(Args) != getParameterCount()) { throw sql_exception("Number of values doesn't match placeholders in statement"); } bindValuesHelper(1, std::forward(args)...); } /// @} /// @name Functions /// @{ /** * @brief Executes the prepared SQL statement. * @throws sql_exception If a database access error occurs */ void execute() { except_wrapper(PreparedStatement_execute(t_)); store_.clear(); } /** * @brief Gets the number of rows affected by the most recent SQL statement. * * If used with a transaction, this method should be called *before* commit is * executed, otherwise 0 is returned. * * @return The number of rows changed. */ [[nodiscard]] long long rowsChanged() noexcept { return PreparedStatement_rowsChanged(t_); } /// @} /// @name Properties /// @{ /** * @brief Gets the number of parameters in the prepared statement. * @return The number of _in_ parameters in this prepared statement */ [[nodiscard]] int getParameterCount() noexcept { return PreparedStatement_getParameterCount(t_); } /// @} protected: friend class Connection; /** * @brief Constructs a PreparedStatement from a PreparedStatement_T. * @param t The underlying PreparedStatement_T. * @private */ explicit PreparedStatement(PreparedStatement_T t) : t_(t) {} /** * @brief Executes the prepared SQL query. * @return A ResultSet containing the query results. * @throws sql_exception If a database access error occurs * @private */ [[nodiscard]] ResultSet executeQuery() { except_wrapper( ResultSet_T r = PreparedStatement_executeQuery(t_); store_.clear(); RETURN ResultSet(r); ); } private: PreparedStatement_T t_; // A store to ensure that we have valid references to reference data std::unordered_map>> store_; // Sets the parameter at the given index to SQL NULL. void setNull(int parameterIndex) { except_wrapper(PreparedStatement_setNull(t_, parameterIndex)); } // Helper function to recursively bind all values template void bindValuesHelper(int index, T&& arg, Rest&&... rest) { bind(index, std::forward(arg)); if constexpr (sizeof...(Rest) > 0) { bindValuesHelper(index + 1, std::forward(rest)...); } } }; /** * @class Connection * @brief Represents a connection to a SQL database system. * * Use a Connection to execute SQL statements. There are three ways to * execute statements: execute() is used to execute SQL * statements that do not return a result set. Such statements are INSERT, * UPDATE or DELETE. executeQuery() is used to execute a SQL * SELECT statement and return a result set. These methods can only handle * values which can be expressed as C-strings. If you need to handle binary * data, such as inserting a blob value into the database, use a * PreparedStatement object to execute the SQL statement. The factory method * prepareStatement() is used to obtain a PreparedStatement object. * * The method executeQuery() will return an empty ResultSet (not null) * if the SQL statement did not return any values. A ResultSet is valid until the * next call to Connection execute or until the Connection is returned * to the ConnectionPool. If an error occurs during execution, an sql_exception * is thrown. * * Any SQL statement that changes the database (basically, any SQL * command other than SELECT) will automatically start a transaction * if one is not already in effect. Automatically started transactions * are committed at the conclusion of the command. * * Transactions can also be started manually using beginTransaction(). Such * transactions usually persist until the next call to commit() or rollback(). * A transaction will also rollback if the database is closed or if an * error occurs. Nested transactions are not allowed. * * ## Examples * * ### Basic Query Execution * @code * Connection con = pool.getConnection(); * ResultSet result = con.executeQuery("SELECT name, age FROM users WHERE id = ?", 1); * if (result.next()) { * std::cout << "Name: " << result.getString("name").value_or("N/A") * << ", Age: " << result.getInt("age") << std::endl; * } * @endcode * * ### Transaction Example * * @code * try { * Connection con = pool.getConnection(); * con.beginTransaction(); * con.execute("UPDATE accounts SET balance = balance - ? WHERE id = ?", 100.0, 1); * con.execute("UPDATE accounts SET balance = balance + ? WHERE id = ?", 100.0, 2); * con.commit(); * std::cout << "Transfer successful" << std::endl; * } catch (const sql_exception& e) { * // See note below why we don't have to explicit call rollback here * std::cerr << "Transfer failed: " << e.what() << std::endl; * } * @endcode * * ### Using PreparedStatement * @code * Connection con = pool.getConnection(); * auto stmt = con.prepareStatement("INSERT INTO logs (message, timestamp) VALUES (?, ?)"); * stmt.bindValues("User logged in", std::time(nullptr)); * stmt.execute(); * std::cout << "Rows affected: " << stmt.rowsChanged() << std::endl; * @endcode * * _A Connection is reentrant, but not thread-safe and should only be used by one * thread at a time._ * * @note When a Connection object goes out of scope, it is automatically * returned to the pool. If the connection is still in a transaction at * this point, the transaction will be automatically rolled back, ensuring * data integrity even in the face of exceptions. * * @warning Connection objects are internally managed by the ConnectionPool that * created them and are not copyable or movable. Always ensure that the originating * ConnectionPool object remains valid for the entire duration of the Connection's * use. It is recommended to obtain a Connection, use it for a specific task, and * then close it (return it to the pool) as soon as possible, rather than holding * onto it for extended periods. */ class Connection : private noncopyable { public: /** * @brief Destructor, closes the connection and returns it to the pool. * @private */ ~Connection() { if (t_) close(); } /** * @brief Implicit conversion to the underlying Connection_T type. * @return The underlying Connection_T object. * @private */ operator Connection_T() const noexcept { return t_; } /// @name Properties /// @{ /** * @brief Sets the query timeout for this Connection. * * If the limit is exceeded, the statement will return immediately with an error. * The timeout is set per connection/session. Not all database systems * support query timeout. The default is no query timeout. * * @param ms Timeout in milliseconds. */ void setQueryTimeout(int ms) noexcept { Connection_setQueryTimeout(t_, ms); } /** * @brief Gets the query timeout for this Connection. * @return The query timeout in milliseconds. */ [[nodiscard]] int getQueryTimeout() noexcept { return Connection_getQueryTimeout(t_); } /** * @brief Sets the maximum number of rows for ResultSet objects. * * If the limit is exceeded, the excess rows are silently dropped. * * @param max Maximum number of rows. */ void setMaxRows(int max) noexcept { Connection_setMaxRows(t_, max); } /** * @brief Gets the maximum number of rows for ResultSet objects. * @return The maximum number of rows. */ [[nodiscard]] int getMaxRows() noexcept { return Connection_getMaxRows(t_); } /** * @brief Sets the number of rows to fetch for ResultSet objects. * * The default value is 100, meaning that a ResultSet will prefetch rows in * batches of 100 rows to reduce the network roundtrip to the database. This * value can also be set via the URL parameter `fetch-size` to apply to all * connections. This method and the concept of pre-fetching rows are only * applicable to MySQL and Oracle. * * @param rows Number of rows to fetch. */ void setFetchSize(int rows) noexcept { Connection_setFetchSize(t_, rows); } /** * @brief Gets the number of rows to fetch for ResultSet objects. * @return The number of rows to fetch. */ [[nodiscard]] int getFetchSize() noexcept { return Connection_getFetchSize(t_); } /// @} /// @name Functions /// @{ /** * @brief Pings the database server to check if the connection is alive. * @return true if the connection is alive, false otherwise. */ [[nodiscard]] bool ping() noexcept { return Connection_ping(t_); } /** * @brief Clears any ResultSet and PreparedStatements in the Connection. * * Normally it is not necessary to call this method, but for some * implementations (SQLite) it *may, in some situations,* be * necessary to call this method if an execution sequence error occurs. */ void clear() noexcept { Connection_clear(t_); } /** * @brief Returns the connection to the connection pool. * * The same as calling ConnectionPool::returnConnection() on a connection. * If the connection is in an uncommitted transaction, rollback is called. * It is an unchecked error to attempt to use the Connection after this * method was called */ void close() noexcept { if (t_) { Connection_close(t_); setClosed(); } } /** * @brief Begins a new transaction with optional isolation level. * * Example usage: * @code * // Use default isolation level * connection.beginTransaction(); * * // Specify isolation level * connection.beginTransaction(TRANSACTION_SERIALIZABLE); * @endcode * * @param type The transaction isolation level (default: TRANSACTION_DEFAULT). * @see TRANSACTION_TYPE enum for available options. * @throws SQLException If a database error occurs or if a transaction is already in progress. * @note All transactions must be ended with either commit() or rollback(). * Nested transactions are not supported. */ void beginTransaction(TRANSACTION_TYPE type = TRANSACTION_DEFAULT) { except_wrapper(Connection_beginTransactionType(t_, type)); } /** * @brief Checks if this Connection is in an uncommitted transaction. * @return true if in a transaction, false otherwise. */ [[nodiscard]] bool inTransaction() const noexcept { return Connection_inTransaction(t_); } /** * @brief Commits the current transaction. * @throws SQLException If a database error occurs. */ void commit() { except_wrapper(Connection_commit(t_)); } /** * @brief Rolls back the current transaction. * * This method will first call clear() before performing the rollback to * clear any statements in progress such as selects. * * @throws SQLException If a database error occurs. */ void rollback() { except_wrapper(Connection_rollback(t_)); } /** * @brief Gets the last inserted row ID for auto-increment columns. * @return The last inserted row ID. */ [[nodiscard]] long long lastRowId() noexcept { return Connection_lastRowId(t_); } /** * @brief Gets the number of rows affected by the last execute() statement. * * If used with a transaction, this method should be called *before* commit is * executed, otherwise 0 is returned. * * @return The number of rows changed. */ [[nodiscard]] long long rowsChanged() noexcept { return Connection_rowsChanged(t_); } /** * @brief Executes a SQL statement, with or without parameters. * * This method can be used in two ways: * 1. With only a SQL string, which directly executes the statement(s). * 2. With a SQL string and additional arguments, which creates a PreparedStatement, * binds the provided parameters, and then executes it. * * @param sql The SQL statement to execute. * @param args (Optional) Arguments to bind to the statement. These can be of various types, * including string-like types, numeric types, blob-like types, time_t, and nullptr. * @throws sql_exception If a database access error occurs or if the types of the provided * arguments don't match the expected types in the SQL statement. * @note When used without arguments, this method is more efficient as it doesn't create * a PreparedStatement. When used with arguments, it provides protection against SQL * injection. * * Example usage: * @code * // Without parameters * con.execute("DELETE FROM users WHERE inactive = true"); * * // With parameters * con.execute("INSERT INTO users (name, age) VALUES (?, ?)", "John Doe", 30); * @endcode */ template void execute(const std::string& sql, Args&&... args) { if constexpr (sizeof...(Args) == 0) { except_wrapper(Connection_execute(t_, "%s", sql.c_str())); } else { PreparedStatement p(this->prepareStatement(sql)); bindValues(p, std::forward(args)...); p.execute(); } } /** * @brief Executes a SQL query and returns a ResultSet. * * This method can be used in two ways: * 1. With only a SQL string, which directly executes the query. * 2. With a SQL string and additional arguments, which creates a PreparedStatement, * binds the provided parameters, and then executes it. * * @param sql The SQL query to execute. * @param args (Optional) Arguments to bind to the query. These can be of various types, * including string-like types, numeric types, blob-like types, time_t, and nullptr. * @return A ResultSet containing the query results. * @throws sql_exception If a database access error occurs or if the types of the provided * arguments don't match the expected types in the SQL query. * @note When used without arguments, this method is more efficient as it doesn't create * a PreparedStatement. When used with arguments, it provides protection against SQL * injection. * * Example usage: * @code * // Without parameters * auto result1 = con.executeQuery("SELECT * FROM users"); * * // With parameters * auto result2 = con.executeQuery("SELECT * FROM users WHERE age > ? AND name LIKE ?", 18, "John%"); * @endcode */ template [[nodiscard]] ResultSet executeQuery(const std::string& sql, Args&&... args) { if constexpr (sizeof...(Args) == 0) { except_wrapper( ResultSet_T r = Connection_executeQuery(t_, "%s", sql.c_str()); RETURN ResultSet(r); ); } else { PreparedStatement p(this->prepareStatement(sql)); bindValues(p, std::forward(args)...); return p.executeQuery(); } } /** * @brief Prepares a SQL statement for execution. * * This method creates a PreparedStatement object that can be reused with different * parameters. It's particularly useful for statements that will be executed multiple * times with different values. * * @param sql The SQL statement to prepare. * @return A PreparedStatement object. * @throws SQLException If a database error occurs during preparation. * * Example usage: * @code * auto stmt = con.prepareStatement("INSERT INTO users (name, age) VALUES (?, ?)"); * for (const auto& user : users) { * stmt.bindValues(user.name, user.age); * stmt.execute(); * } * @endcode */ [[nodiscard]] PreparedStatement prepareStatement(const std::string& sql) { except_wrapper( PreparedStatement_T p = Connection_prepareStatement(t_, "%s", sql.c_str()); RETURN PreparedStatement(p); ); } /** * @brief Gets the last SQL error message. * @return The last error message as a string view. */ [[nodiscard]] std::optional getLastError() const noexcept { return _to_optional(Connection_getLastError(t_)); } /// @} /** * @brief Checks if the specified database system is supported. * @param url A database URL string or protocol. * @return true if supported, false otherwise. */ [[nodiscard]] static bool isSupported(const std::string& url) noexcept { return Connection_isSupported(url.c_str()); } protected: friend class ConnectionPool; /** * @brief Constructs a Connection with an existing Connection_T object. * @param C The existing Connection_T object. * @private */ explicit Connection(Connection_T C) : t_(C) {} /** * @brief Marks the connection as closed. * @private */ void setClosed() noexcept { t_ = nullptr; } /** * @brief Helper function to bind values to a PreparedStatement. * @private */ template void bindValues(PreparedStatement& stmt, Args&&... args) { int index = 1; (stmt.bind(index++, std::forward(args)), ...); } private: Connection_T t_; }; /** * @class ConnectionPool * @brief Represents a database connection pool. * * A ConnectionPool can be used to obtain connections to a database and execute statements. * This class opens a number of database connections and allows callers to obtain and use * a database connection in a reentrant manner. Applications can instantiate as many * ConnectionPool objects as needed and against as many different database systems as needed. * * ## Connection URL: * * The URL given to a Connection Pool at creation time specifies a database * connection in the standard URL format: * * ``` * database://[user:password@][host][:port]/database[?propertyName1][=propertyValue1][&propertyName2][=propertyValue2]... * ``` * * The property names `user` and `password` are always recognized and specify how to log in * to the database. Other properties depend on the database server in question. Username and * password can alternatively be specified in the auth-part of the URL. If port number is * omitted, the default port number for the database server is used. * * ### MySQL: * * Example URL for MySQL: * ``` * mysql://localhost:3306/test?user=root&password=swordfish * ``` * Or using the auth-part of the URL: * ``` * mysql://root:swordfish@localhost:3306/test * ``` * See [mysql options](mysqloptions.html) for all properties that can be set for a mysql connection URL. * * ### SQLite: * * For SQLite, the URL should specify a database file. SQLite uses [pragma commands](http://sqlite.org/pragma.html) for performance tuning and other special purpose * database commands. Pragma syntax in the form `name=value` can be added as properties to the URL. In addition to pragmas, the following properties are supported: * * - `heap_limit=value` - Make SQLite auto-release unused memory * if memory usage goes above the specified value [KB]. * - `serialized=true` - Make SQLite switch to serialized mode * if value is true, otherwise multi-thread mode is used (the default). * * Example URL for SQLite (with recommended pragmas): * ``` * sqlite:///var/sqlite/test.db?synchronous=normal&foreign_keys=on&journal_mode=wal&temp_store=memory * ``` * * ### PostgreSQL: * * Example URL for PostgreSQL: * ``` * postgresql://localhost:5432/test?user=root&password=swordfish * ``` * Or using the auth-part and SSL: * ``` * postgresql://root:swordfish@localhost/test?use-ssl=true * ``` * See [postgresql options](postgresoptions.html) for all properties that can be set for a postgresql connection URL. * * ### Oracle: * * Example URL for Oracle: * ``` * oracle://localhost:1521/servicename?user=scott&password=tiger * ``` * Or using the auth-part and SYSDBA role: * ``` * oracle://sys:password@localhost:1521/servicename?sysdba=true * ``` * See [oracle options](oracleoptions.html) for all properties that can be set for an oracle connection URL. * * ## Pool Management: * * The pool is designed to dynamically manage the number of active connections * based on usage patterns. A `reaper` thread is automatically started when the * pool is initialized, performing two functions: * * 1. Sweep through the pool at regular intervals (default every 60 seconds) * to close connections that have been inactive for a specified time (default * 90 seconds). * 2. Perform periodic validation (ping test) on idle connections to ensure * they remain valid and responsive. * * ## Realtime inspection: * * Three methods can be used to inspect the pool at runtime. The method * size() returns the number of connections in the pool, that is, both active * and inactive connections. The method active() returns the number of active * connections, i.e., those connections in current use by your application. * The method isFull() can be used to check if the pool is full and unable to * return a connection. * * ## Example Usage: * * @code * ConnectionPool pool("mysql://localhost/test?user=root&password=swordfish"); * pool.start(); * // ... * Connection con = pool.getConnection(); * ResultSet result = con.executeQuery("SELECT id, name, photo FROM employee WHERE salary > ?", 50000); * while (result.next()) { * int id = result.getInt("id"); * auto name = result.getString("name"); * auto photo = result.getBlob("photo"); * // Process data... * } * @endcode * * @note This ConnectionPool is thread-safe. * * @warning A ConnectionPool is neither copyable nor movable. It is designed to be a * long-lived object that manages database connections throughout the lifetime of your * application. Typically, you would instantiate one or more ConnectionPool objects * as part of a resource management class or in the global scope of your application. */ class ConnectionPool : private noncopyable { public: /** * @brief Constructs a ConnectionPool with the given URL string. * @param url The database connection URL string. * @throws sql_exception If the URL is invalid. */ explicit ConnectionPool(const std::string& url) : url_(url) { if (!url_) throw sql_exception("Invalid URL"); t_ = ConnectionPool_new(url_); } /** * @brief Constructs a ConnectionPool with a URL object. * @param url The database connection URL object to move from. * @throws sql_exception If the URL is invalid. */ explicit ConnectionPool(URL&& url) : url_(std::move(url)) { if (!url_) throw sql_exception("Invalid URL"); t_ = ConnectionPool_new(url_); } /** * @brief Destructor, releases resources allocated by the pool. * @private */ ~ConnectionPool() { ConnectionPool_free(&t_); } /** * @brief Implicit conversion to the underlying ConnectionPool_T type. * @return The underlying ConnectionPool_T object. * @private */ operator ConnectionPool_T() noexcept { return t_; } /// @name Properties /// @{ /** * @brief Gets the URL of the connection pool. * @return The URL of the connection pool. */ [[nodiscard]] const URL& getURL() const noexcept { return url_; } /** * @brief Sets the number of initial connections in the pool. * @param initialConnections The number of initial connections. */ void setInitialConnections(int initialConnections) noexcept { ConnectionPool_setInitialConnections(t_, initialConnections); } /** * @brief Gets the number of initial connections in the pool. * @return The number of initial connections. */ [[nodiscard]] int getInitialConnections() noexcept { return ConnectionPool_getInitialConnections(t_); } /** * @brief Sets the maximum number of connections in the pool. * * If max connections has been reached, getConnection() will fail on * the next call. It is a checked runtime error for maxConnections to * be less than initialConnections. * * @param maxConnections The maximum number of connections. */ void setMaxConnections(int maxConnections) noexcept { ConnectionPool_setMaxConnections(t_, maxConnections); } /** * @brief Gets the maximum number of connections in the pool. * @return The maximum number of connections. */ [[nodiscard]] int getMaxConnections() noexcept { return ConnectionPool_getMaxConnections(t_); } /** * @brief Sets the connection inactive timeout value in seconds. * * The method reapConnections(), if called, will close inactive * connections in the pool which have not been in use for * `connectionTimeout` seconds. The default connectionTimeout is * 90 seconds. * * @param connectionTimeout The timeout value in seconds. It is a * checked runtime error for connectionTimeout to be <= 0 */ void setConnectionTimeout(int connectionTimeout) noexcept { ConnectionPool_setConnectionTimeout(t_, connectionTimeout); } /** * @brief Gets the connection timeout value. * @return The connection timeout value in seconds. */ [[nodiscard]] int getConnectionTimeout() noexcept { return ConnectionPool_getConnectionTimeout(t_); } using AbortHandler = std::function; /** * @brief Sets the function to call if a fatal error occurs in the library. * * In practice this means Out-Of-Memory errors or uncaught exceptions. * Clients may optionally provide this function. If not provided * the library will call `abort(3)` or `exit(1)` upon encountering a fatal error. * It is an unchecked runtime error to continue using the library after * the `abortHandler` was called. * * @param abortHandler The handler function to call on fatal errors. */ void setAbortHandler(AbortHandler abortHandler = nullptr) noexcept { g_abortHandler = std::move(abortHandler); ConnectionPool_setAbortHandler(t_, g_abortHandler ? bridgeAbortHandler : nullptr); } /** * @brief Customizes the reaper thread behavior or disables it. * * By default, a reaper thread is automatically started when the pool * is initialized, with a default sweep interval of 60 seconds. This method * allows you to change the sweep interval or disable the reaper entirely. * * The reaper thread closes inactive Connections in the pool, down to the * initial connection count. An inactive Connection is closed if its * `connectionTimeout` has expired or if it fails a ping test. Active * Connections (those in current use) are never closed by this thread. * * This method can be called before or after ConnectionPool::start(). If * called after start, the changes will take effect on the next sweep cycle. * * @param sweepInterval Number of seconds between sweeps of the reaper thread. * Set to 0 or a negative value to disable the reaper thread, _before_ * calling ConnectionPool::start(). */ void setReaper(int sweepInterval) noexcept { ConnectionPool_setReaper(t_, sweepInterval); } /// @} /** * @brief Gets the current number of connections in the pool. * @return The total number of connections in the pool. */ [[nodiscard]] int size() noexcept { return ConnectionPool_size(t_); } /** * @brief Gets the number of active connections in the pool. * @return The number of active connections in the pool. */ [[nodiscard]] int active() noexcept { return ConnectionPool_active(t_); } /** * @brief Checks if the pool is full. * * The pool is full if the number of *active* connections equals max * connections and the pool is unable to return a connection. * * @return true if pool is full, false otherwise * @note A full pool is unlikely to occur in practice if you ensure that * connections are returned to the pool after use. */ [[nodiscard]] bool isFull() noexcept { return ConnectionPool_isFull(t_); } /** * @brief Prepares the pool for active use. * * This method must be called before the pool is used. It will connect to the database * server, create the initial connections for the pool, and start the reaper * thread with default settings, unless previously disabled via setReaper(). * * @throws sql_exception If a database error occurs. */ void start() { except_wrapper(ConnectionPool_start(t_)); } /** * @brief Gracefully terminates the pool. * * This method should be the last one called on a given instance * of this component. Calling this method closes down all connections in the * pool, disconnects the pool from the database server, and stops the reaper * thread if it was started. * * @throws sql_exception If there are active connections. */ void stop() { if (this->active() > 0) { throw sql_exception("Trying to stop the pool with active Connections. " "Please close all active Connections first"); } except_wrapper(ConnectionPool_stop(t_)); } /** * @brief Gets a connection from the pool. * * The returned Connection is guaranteed to be alive and connected to the database. * * An sql_exception may be thrown if the pool is full or if a database error occurs * (e.g., network issues, database unavailability). * * Here's a basic example of how to use getConnection and handle potential errors: * * ```cpp * try { * Connection con = pool.getConnection(); * // Use the connection ... * } catch (const sql_exception& e) { * std::cerr << "Error: " << e.what() << std::endl; * } * ``` * * @return A Connection object. * @throws sql_exception If a database connection cannot be obtained */ [[nodiscard]] Connection getConnection() { except_wrapper( Connection_T c = ConnectionPool_getConnectionOrException(t_); RETURN Connection(c); ); } /** * @brief Returns a connection to the pool. * * The same as calling Connection::close() on a connection. If the connection * is in an uncommitted transaction, rollback is called. It is an unchecked * error to attempt to use the Connection after this method is called. * * @param con The Connection to return. */ void returnConnection(Connection& con) noexcept { con.close(); } /** * @brief Reaps inactive connections in the pool. * @return The number of connections reaped. */ int reapConnections() noexcept { return ConnectionPool_reapConnections(t_); } private: URL url_; ConnectionPool_T t_; }; } // namespace zdb #endif libzdb-3.4.0/src/db/000775 000765 000024 00000000000 14652556741 014254 5ustar00haukstaff000000 000000 libzdb-3.4.0/src/db/Connection.h000644 000765 000024 00000043364 14652556740 016533 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef CONNECTION_INCLUDED #define CONNECTION_INCLUDED /** * @brief A **Connection** represents a connection to a SQL database system. * * Use a Connection to execute SQL statements. There are three ways to * execute statements: Connection_execute() is used to execute SQL * statements that do not return a result set. Such statements are INSERT, * UPDATE or DELETE. Connection_executeQuery() is used to execute a SQL * SELECT statement and return a result set. These methods can only handle * values which can be expressed as C-strings. If you need to handle binary * data, such as inserting a blob value into the database, use a * PreparedStatement object to execute the SQL statement. The factory method * Connection_prepareStatement() is used to obtain a PreparedStatement object. * * The method Connection_executeQuery() will return an empty ResultSet (not null) * if the SQL statement did not return any values. A ResultSet is valid until the * next call to Connection execute or until the Connection is returned * to the Connection Pool. If an error occurs during execution, an SQLException * is thrown. * * Any SQL statement that changes the database (basically, any SQL * command other than SELECT) will automatically start a transaction * if one is not already in effect. Automatically started transactions * are committed at the conclusion of the command. * * Transactions can also be started manually using * Connection_beginTransaction(). Such transactions usually persist * until the next call to Connection_commit() or Connection_rollback(). * A transaction will also rollback if the database is closed or if an * error occurs. Nested transactions are not allowed. * * ## Examples * * ### Basic Query Execution * @code * Connection_T con = ConnectionPool_getConnection(pool); * if (con) { * ResultSet_T result = Connection_executeQuery(con, "SELECT name, age FROM users WHERE id = %d", 1); * if (ResultSet_next(result)) { * const char* name = ResultSet_getString(result, 1); * int age = ResultSet_getInt(result, 2); * printf("Name: %s, Age: %d\n", valueOr(name, "N/A"), age); * } * Connection_close(con); * } * @endcode * * ### Transaction Example * @code * Connection_T con = NULL; * TRY * { * con = ConnectionPool_getConnectionOrException(pool); * Connection_beginTransaction(con); * Connection_execute(con, "UPDATE accounts SET balance = balance - %f WHERE id = %d", 100.0, 1); * Connection_execute(con, "UPDATE accounts SET balance = balance + %f WHERE id = %d", 100.0, 2); * Connection_commit(con); * printf("Transfer successful\n"); * } * ELSE * { * // The error message in Exception_frame.message specify the error that occured * printf("Transfer failed: %s\n", Exception_frame.message); * * // Connection_close() will automatically call Connection_rollback() if * // the connection is in an uncommitted transaction * } * FINALLY * { * if (con) Connection_close(con); * } * END_TRY; * @endcode * * ### Using PreparedStatement * @code * Connection_T con = ConnectionPool_getConnection(pool); * if (con) { * const char *sql = "INSERT INTO logs (message, timestamp) VALUES (?, ?)"; * PreparedStatement_T stmt = Connection_prepareStatement(con, sql); * PreparedStatement_setString(stmt, 1, "User logged in"); * PreparedStatement_setTimestamp(stmt, 2, time(NULL)); * PreparedStatement_execute(stmt); * printf("Rows affected: %lld\n", PreparedStatement_rowsChanged(stmt)); * Connection_close(con); * } * @endcode * * *A Connection is reentrant, but not thread-safe and should only be used * by one thread (at a time).* * * @note When Connection_close() is called on a Connection object, it is * automatically returned to the pool. If the connection is still in a * transaction at this point, the transaction will be automatically rolled * back. This ensures data integrity even when exceptions occur. It's * recommended to always call Connection_close() in a FINALLY block to * guarantee proper resource management and transaction handling. See the * Transaction Example above for a practical demonstration of this behavior. * * @see ResultSet.h PreparedStatement.h SQLException.h * @file */ #define T Connection_T typedef struct Connection_S *T; /** * Enum representing different transaction isolation levels and behaviors. * Support for specific types varies depending on the database system being used. * * Note: All transactions must be explicitly ended with either a commit or a rollback * operation, regardless of the isolation level or database system. */ typedef enum { /** * Use the default transaction behavior of the underlying database system. * - MySQL: REPEATABLE READ * - PostgreSQL: READ COMMITTED * - Oracle: READ COMMITTED * - SQLite: SERIALIZABLE */ TRANSACTION_DEFAULT = 0, /** * Lowest isolation level. Transactions can read uncommitted data. * Supported by: MySQL. * Not supported by: PostgreSQL, Oracle, SQLite */ TRANSACTION_READ_UNCOMMITTED, /** * Prevents dirty reads. A transaction only sees data committed before the transaction began. * Supported by: MySQL, PostgreSQL, Oracle. * Not applicable to SQLite (always SERIALIZABLE) */ TRANSACTION_READ_COMMITTED, /** * Prevents non-repeatable reads. * Supported by: MySQL, PostgreSQL. * Not supported by: Oracle. * Not applicable to SQLite (always SERIALIZABLE) */ TRANSACTION_REPEATABLE_READ, /** * Highest isolation level. Prevents dirty reads, non-repeatable reads, and phantom reads. * Supported by: MySQL, PostgreSQL, Oracle. * Default and only level for SQLite */ TRANSACTION_SERIALIZABLE, /** * SQLite-specific. Starts a transaction immediately, acquiring a RESERVED lock. * Not applicable to other database systems. */ TRANSACTION_IMMEDIATE, /** * SQLite-specific. Starts a transaction and acquires an EXCLUSIVE lock immediately. * Not applicable to other database systems. */ TRANSACTION_EXCLUSIVE } TRANSACTION_TYPE; //<< Protected methods /** * @brief Create a new Connection. * @param pool The parent connection pool * @param error Connection error or NULL if no error was found * @return A new Connection object or NULL on error */ T Connection_new(void *pool, char **error) __attribute__ ((visibility("hidden"))); /** * @brief Destroy a Connection and release allocated resources. * @param C A Connection object reference */ void Connection_free(T *C) __attribute__ ((visibility("hidden"))); /** * @brief Set if Connection is available * @param C A Connection object * @param isAvailable true if Connection is available, false otherwise */ void Connection_setAvailable(T C, bool isAvailable) __attribute__ ((visibility("hidden"))); /** * @brief Gets the availability of this Connection. * @param C A Connection object * @return true if this Connection is available otherwise false */ bool Connection_isAvailable(T C) __attribute__ ((visibility("hidden"))); /** * @brief Gets the last accessed time. * * The time is returned as the number of seconds since midnight, January 1, * 1970 GMT. Actions that your application takes, such as calling the public * methods of this class do not affect this time. * * @param C A Connection object * @return The last time (seconds) this Connection was accessed */ time_t Connection_getLastAccessedTime(T C) __attribute__ ((visibility("hidden"))); //>> End Protected methods /// @name Properties /// @{ /** * @brief Sets the query timeout for this Connection. * * If the limit is exceeded, the statement will return immediately with an * error. The timeout is set per connection/session. Not all database * systems support query (SELECT) timeout. The default is no query timeout. * * @param C A Connection object * @param ms The query timeout in milliseconds; zero (the default) means there * is no timeout limit. */ void Connection_setQueryTimeout(T C, int ms); /** * @brief Gets the query timeout for this Connection. * @param C A Connection object * @return The query timeout limit in milliseconds; zero means there * is no timeout limit */ int Connection_getQueryTimeout(T C); /** * @brief Sets the maximum number of rows for ResultSet objects. * * If the limit is exceeded, the excess rows are silently dropped. * * @param C A Connection object * @param max The new max rows limit; 0 (the default) means there is no limit */ void Connection_setMaxRows(T C, int max); /** * @brief Gets the maximum number of rows for ResultSet objects. * @param C A Connection object * @return The max rows limit; 0 means there is no limit */ int Connection_getMaxRows(T C); /** * @brief Sets the number of rows to fetch for ResultSet objects. * * The default value is 100, meaning that a ResultSet will prefetch rows in * batches of 100 rows to reduce the network roundtrip to the database. This * value can also be set via the URL parameter `fetch-size` to apply to all * connections. This method and the concept of pre-fetching rows are only * applicable to MySQL and Oracle. * * @param C A Connection object * @param rows The number of rows to fetch (1..INT_MAX) * @exception AssertException If `rows` is less than 1 */ void Connection_setFetchSize(T C, int rows); /** * @brief Gets the number of rows to fetch for ResultSet objects. * @param C A Connection object * @return The number of rows to fetch */ int Connection_getFetchSize(T C); /** * @brief Gets this Connections URL * @param C A Connection object * @return This Connections URL * @see URL.h */ URL_T Connection_getURL(T C); /// @} /// @name Functions /// @{ /** * @brief Pings the database server to check if the connection is alive. * @param C A Connection object * @return true if the connection is alive, false otherwise. */ bool Connection_ping(T C); /** * @brief Clears any ResultSet and PreparedStatements in the Connection. * * Normally it is not necessary to call this method, but for some * implementations (SQLite) it *may, in some situations,* be * necessary to call this method if an execution sequence error occurs. * * @param C A Connection object */ void Connection_clear(T C); /** * @brief Returns the connection to the connection pool. * * The same as calling ConnectionPool_returnConnection() on a connection. * If the connection is in an uncommitted transaction, rollback is called. * It is an unchecked error to attempt to use the Connection after this * method is called * * @param C A Connection object */ void Connection_close(T C); /** * @brief Begins a new (default) transaction. * @param C A Connection object * @exception SQLException If a database error occurs * @see SQLException.h * @note All transactions must be ended with either Connection_commit() * or Connection_rollback(). Nested transactions are not supported. */ void Connection_beginTransaction(T C); /** * @brief Begins a new specific transaction. * * This method is similar to Connection_beginTransaction() except * it allows you to specify the new transaction's isolation level * explicitly. Connection_beginTransaction() uses the default isolation * level for the database. * * @param C A Connection object * @param type The transaction type to start * @see TRANSACTION_TYPE enum for available options. * @exception SQLException If a database error occurs * @see SQLException.h * @note All transactions must be ended with either Connection_commit() * or Connection_rollback(). Nested transactions are not supported. */ void Connection_beginTransactionType(T C, TRANSACTION_TYPE type); /** * @brief Checks if this Connection is in an uncommitted transaction. * @param C A Connection object * @return true if in a transaction, false otherwise. */ bool Connection_inTransaction(T C); /** * @brief Commits the current transaction. * * Makes all changes made since the previous commit/rollback permanent * and releases any database locks currently held by this Connection * object. * * @param C A Connection object * @exception SQLException If a database error occurs * @see SQLException.h */ void Connection_commit(T C); /** * @brief Rolls back the current transaction. * * Undoes all changes made in the current transaction and releases any * database locks currently held by this Connection object. This method * will first call Connection_clear() before performing the rollback to * clear any statements in progress such as selects. * * @param C A Connection object * @exception SQLException If a database error occurs * @see SQLException.h */ void Connection_rollback(T C); /** * @brief Gets the last inserted row ID for auto-increment columns. * @param C A Connection object * @return The value of the rowid from the last insert statement */ long long Connection_lastRowId(T C); /** * @brief Gets the number of rows affected by the last execute() statement. * * If used with a transaction, this method should be called *before* commit is * executed, otherwise 0 is returned. * * @param C A Connection object * @return The number of rows changed by the last (DIM) SQL statement */ long long Connection_rowsChanged(T C); /** * @brief Executes a SQL statement, with or without parameters. * * Executes the given SQL statement, which may be an INSERT, UPDATE, * or DELETE statement or an SQL statement that returns nothing, such * as an SQL DDL statement. Several SQL statements can be used in the * sql parameter string, each separated with the `;` SQL * statement separator character. **Note**, calling this method * clears any previous ResultSets associated with the Connection. * * @param C A Connection object * @param sql A SQL statement * @exception SQLException If a database error occurs. * @see SQLException.h */ void Connection_execute(T C, const char *sql, ...) __attribute__((format (printf, 2, 3))); /** * @brief Executes a SQL query and returns a ResultSet. * * You may **only** use one SQL statement with this method. * This is different from the behavior of Connection_execute() which * executes all SQL statements in its input string. If the sql * parameter string contains more than one SQL statement, only the * first statement is executed, the others are silently ignored. * A ResultSet a valid until the next call to Connection_executeQuery(), * Connection_execute() or until the Connection is returned to the Connection * Pool. *This means that Result Sets cannot be saved between queries*. * * @param C A Connection object * @param sql A SQL statement * @return A ResultSet object that contains the data produced by the * given query. * @exception SQLException If a database error occurs. * @see ResultSet.h * @see SQLException.h */ ResultSet_T Connection_executeQuery(T C, const char *sql, ...) __attribute__((format (printf, 2, 3))); /** * @brief Prepares a SQL statement for execution. * * The `sql` parameter may contain IN parameter placeholders. An IN * placeholder is specified with a '?' character in the sql string. * The placeholders are then replaced with actual values by using the * PreparedStatement's setXXX methods. Only *one* SQL statement may be * used in the sql parameter, this in difference to Connection_execute() * which may take several statements. A PreparedStatement is valid until the * Connection is returned to the Connection Pool. * * @param C A Connection object * @param sql A single SQL statement that may contain one or more '?' * IN parameter placeholders * @return A new PreparedStatement object containing the pre-compiled * SQL statement. * @exception SQLException If a database error occurs. * @see PreparedStatement.h * @see SQLException.h */ PreparedStatement_T Connection_prepareStatement(T C, const char *sql, ...) __attribute__((format (printf, 2, 3))); /** * @brief Gets the last SQL error message. * * This method can be used to obtain a string describing the last * error that occurred. Inside a CATCH-block you can also find * the error message directly in the variable Exception_frame.message. * It is recommended to use this variable instead since it contains both * SQL errors and API errors such as parameter index out of range etc, * while Connection_getLastError() might only show SQL errors * * @param C A Connection object * @return A string explaining the last error */ const char *Connection_getLastError(T C); /// @} /// @name Class functions /// @{ /** * @brief Checks if the specified database system is supported. * * Clients may pass a full Connection URL, for example using * URL_toString(), or for convenience only the protocol * part of the URL. E.g. "mysql" or "sqlite". * * @param url A database url string or database name * @return true if supported, false otherwise. */ bool Connection_isSupported(const char *url); /// @} #undef T #endif libzdb-3.4.0/src/db/postgresql/000775 000765 000024 00000000000 14652556661 016460 5ustar00haukstaff000000 000000 libzdb-3.4.0/src/db/ResultSet.h000644 000765 000024 00000047674 14652556741 016377 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef RESULTSET_INCLUDED #define RESULTSET_INCLUDED #include //<< Protected methods #include "ResultSetDelegate.h" //>> End Protected methods /** * @brief A **ResultSet** represents a database result set. * * A ResultSet is created by executing a SQL SELECT statement using either * Connection_executeQuery() or PreparedStatement_executeQuery(). * * A ResultSet maintains a cursor pointing to its current row of data. * Initially, the cursor is positioned before the first row. * ResultSet_next() moves the cursor to the next row, and because * it returns false when there are no more rows, it can be used in a while * loop to iterate through the result set. A ResultSet is not updatable and * has a cursor that moves forward only. Thus, you can iterate through it * only once and only from the first row to the last row. * * The ResultSet interface provides getter methods for retrieving * column values from the current row. Values can be retrieved using * either the index number of the column or the name of the column. In * general, using the column index will be more efficient. *Columns * are numbered from 1.* * * Column names used as input to getter methods are case sensitive. * When a getter method is called with a column name and several * columns have the same name, the value of the first matching column * will be returned. The column name option is designed to be used * when column names are used in the SQL query that generated the * result set. For columns that are NOT explicitly named in the query, * it is best to use column indices. * * ## Examples * * The following examples demonstrate how to obtain a ResultSet and * how to retrieve values from it. * * ### Example: Using column names * * In this example, columns are named in the SELECT statement, and we retrieve * values using the column names (we could of course also use indices if we * want): * * @code * ResultSet_T r = Connection_executeQuery(con, "SELECT ssn, name, photo FROM employees"); * while (ResultSet_next(r)) * { * int ssn = ResultSet_getIntByName(r, "ssn"); * const char *name = ResultSet_getStringByName(r, "name"); * int photoSize; * const void *photo = ResultSet_getBlobByName(r, "photo", &photoSize); * if (photoSize > 0) * { * // Process photo data * } * // Process other data... * } * @endcode * * ### Example: Using column indices * * This example demonstrates selecting a generated result and printing it. * When the SELECT statement doesn't name the column, we use the column * index to retrieve the value: * * @code * ResultSet_T r = Connection_executeQuery(con, "SELECT COUNT(*) FROM employees"); * if (ResultSet_next(r)) * { * const char *count = ResultSet_getString(r, 1); * printf("Number of employees: %s\n", valueOr(count, "none")); * } * else * { * printf("No results returned\n"); * } * @endcode * * ## Automatic type conversions * * A ResultSet stores values internally as bytes and converts values * on-the-fly to numeric types when requested, such as when ResultSet_getInt() * or one of the other numeric get-methods are called. In the above example, * even if *count(\*)* returns a numeric value, we can use * ResultSet_getString() to get the number as a string or if we choose, we can use * ResultSet_getInt() to get the value as an integer. In the latter case, note * that if the column value cannot be converted to a number, an SQLException is thrown. * * ## Date and Time * * ResultSet provides two principal methods for retrieving temporal column * values as C types. ResultSet_getTimestamp() converts a SQL timestamp value * to a `time_t` and ResultSet_getDateTime() returns a * `tm structure` representing a Date, Time, DateTime, or Timestamp column type. * To get a temporal column value as a string, simply use ResultSet_getString() * * *A ResultSet is reentrant, but not thread-safe and should only be used by * one thread (at a time).* * * @note Remember that column indices in ResultSet are 1-based, not 0-based. * * @see Connection.h PreparedStatement.h SQLException.h * @file */ #define T ResultSet_T typedef struct ResultSet_S *T; //<< Protected methods /** * @brief Create a new ResultSet. * @param D the delegate used by this ResultSet * @param op delegate operations * @return A new ResultSet object */ T ResultSet_new(ResultSetDelegate_T D, Rop_T op) __attribute__ ((visibility("hidden"))); /** * @brief Destroy a ResultSet and release allocated resources. * @param R A ResultSet object reference */ void ResultSet_free(T *R) __attribute__ ((visibility("hidden"))); //>> End Protected methods /// @name Properties /// @{ /** * @brief Gets the number of columns in this ResultSet. * @param R A ResultSet object * @return The number of columns */ int ResultSet_getColumnCount(T R); /** * @brief Gets the designated column's name. * @param R A ResultSet object * @param columnIndex The first column is 1, the second is 2, ... * @return Column name or NULL if the column does not exist. You * should use the method ResultSet_getColumnCount() to test for * the availability of columns in the result set. */ const char *ResultSet_getColumnName(T R, int columnIndex); /** * @brief Gets the size of a column in bytes. * * If the column is a blob then this method returns the number of bytes * in that blob. No type conversions occur. If the result is a string * (or a number since a number can be converted into a string) then return * the number of bytes in the resulting string. * * @param R A ResultSet object * @param columnIndex The first column is 1, the second is 2, ... * @return Column data size * @exception SQLException If columnIndex is outside the valid range * @see SQLException.h */ long ResultSet_getColumnSize(T R, int columnIndex); /** * @brief Sets the number of rows to fetch from the database. * * ResultSet will prefetch rows in batches of number of `rows` when * ResultSet_next() is called to reduce the network roundtrip to the database. * This method is only applicable to MySQL and Oracle. * * @param R A ResultSet object * @param rows The number of rows to fetch (1..INT_MAX) * @exception SQLException If a database error occurs * @exception AssertException If `rows` is less than 1 * @see Connection_setFetchSize */ void ResultSet_setFetchSize(T R, int rows); /** * @brief Gets the number of rows to fetch from the database. * * Unless previously set with ResultSet_setFetchSize(), the returned value * is the same as returned by Connection_getFetchSize() * * @param R A ResultSet object * @return The number of rows to fetch or 0 if N/A * @see Connection_getFetchSize */ int ResultSet_getFetchSize(T R); /// @} /// @name Functions /// @{ /** * @brief Moves the cursor to the next row. * * A ResultSet cursor is initially positioned before the first row; the * first call to this method makes the first row the current row; the * second call makes the second row the current row, and so on. When * there are no more available rows false is returned. An empty * ResultSet will return false on the first call to ResultSet_next(). * * @param R A ResultSet object * @return true if the new current row is valid; false if there are no * more rows * @exception SQLException If a database access error occurs */ bool ResultSet_next(T R); /// @} /// @name Columns /// @{ /** * @brief Checks if the designated column's value is SQL NULL. * * If the column value is SQL NULL, a ResultSet returns the NULL for * reference types and 0 for value types. Use this method if you need to * differentiate between SQL NULL and the value NULL/0. * * @param R A ResultSet object * @param columnIndex The first column is 1, the second is 2, ... * @return true if column value is SQL NULL, false otherwise * @exception SQLException If a database access error occurs or * columnIndex is outside the valid range * @see SQLException.h */ bool ResultSet_isnull(T R, int columnIndex); /** * @brief Gets the designated column's value as a C-string. * * _The returned string may only be valid until the next call to * ResultSet_next() and if you plan to use the returned value longer, * you must make a copy._ * * @param R A ResultSet object * @param columnIndex The first column is 1, the second is 2, ... * @return The column value; if the value is SQL NULL, the value * returned is NULL * @exception SQLException If a database access error occurs or * columnIndex is outside the valid range * @see SQLException.h */ const char *ResultSet_getString(T R, int columnIndex); /** * @brief Gets the designated column's value as a C-string. * _The returned string may only be valid until the next call to * ResultSet_next() and if you plan to use the returned value longer, * you must make a copy._ * * @param R A ResultSet object * @param columnName The SQL name of the column. *case-sensitive* * @return The column value; if the value is SQL NULL, the value * returned is NULL * @exception SQLException If a database access error occurs or * columnName does not exist * @see SQLException.h */ const char *ResultSet_getStringByName(T R, const char *columnName); /** * @brief Gets the designated column's value as an int. * @param R A ResultSet object * @param columnIndex The first column is 1, the second is 2, ... * @return The column value; if the value is SQL NULL, the value * returned is 0 * @exception SQLException If a database access error occurs, columnIndex * is outside the valid range or if the value is NaN * @see SQLException.h */ int ResultSet_getInt(T R, int columnIndex); /** * @brief Gets the designated column's value as an int. * @param R A ResultSet object * @param columnName The SQL name of the column. *case-sensitive* * @return The column value; if the value is SQL NULL, the value * returned is 0 * @exception SQLException If a database access error occurs, columnName * does not exist or if the value is NaN * @see SQLException.h */ int ResultSet_getIntByName(T R, const char *columnName); /** * @brief Gets the designated column's value as a long long. * @param R A ResultSet object * @param columnIndex The first column is 1, the second is 2, ... * @return The column value; if the value is SQL NULL, the value * returned is 0 * @exception SQLException If a database access error occurs, * columnIndex is outside the valid range or if the value is NaN * @see SQLException.h */ long long ResultSet_getLLong(T R, int columnIndex); /** * @brief Gets the designated column's value as a long long. * @param R A ResultSet object * @param columnName The SQL name of the column. *case-sensitive* * @return The column value; if the value is SQL NULL, the value * returned is 0 * @exception SQLException If a database access error occurs, columnName * does not exist or if the value is NaN * @see SQLException.h */ long long ResultSet_getLLongByName(T R, const char *columnName); /** * @brief Gets the designated column's value as a double. * @param R A ResultSet object * @param columnIndex The first column is 1, the second is 2, ... * @return The column value; if the value is SQL NULL, the value * returned is 0.0 * @exception SQLException If a database access error occurs, columnIndex * is outside the valid range or if the value is NaN * @see SQLException.h */ double ResultSet_getDouble(T R, int columnIndex); /** * @brief Gets the designated column's value as a double. * @param R A ResultSet object * @param columnName The SQL name of the column. *case-sensitive* * @return The column value; if the value is SQL NULL, the value * returned is 0.0 * @exception SQLException If a database access error occurs, columnName * does not exist or if the value is NaN * @see SQLException.h */ double ResultSet_getDoubleByName(T R, const char *columnName); /** * @brief Gets the designated column's value as a void pointer. * * _The returned blob may only be valid until the next call to * ResultSet_next() and if you plan to use the returned value longer, * you must make a copy._ * * @param R A ResultSet object * @param columnIndex The first column is 1, the second is 2, ... * @param size The number of bytes in the blob is stored in size * @return The column value; if the value is SQL NULL, the value * returned is NULL * @exception SQLException If a database access error occurs or * columnIndex is outside the valid range * @see SQLException.h */ const void *ResultSet_getBlob(T R, int columnIndex, int *size); /** * @brief Gets the designated column's value as a void pointer. * * _The returned blob may only be valid until the next call to * ResultSet_next() and if you plan to use the returned value longer, * you must make a copy._ * * @param R A ResultSet object * @param columnName The SQL name of the column. *case-sensitive* * @param size The number of bytes in the blob is stored in size * @return The column value; if the value is SQL NULL, the value * returned is NULL * @exception SQLException If a database access error occurs or * columnName does not exist * @see SQLException.h */ const void *ResultSet_getBlobByName(T R, const char *columnName, int *size); /// @} /// @name Date and Time /// @{ /** * @brief Gets the designated column's value as a Unix timestamp. * * The returned value is in Coordinated Universal Time (UTC) and represents * seconds since the **epoch** (January 1, 1970, 00:00:00 GMT). * * Even though the underlying database might support timestamp ranges before * the epoch and after '2038-01-19 03:14:07 UTC' it is safest not to assume or * use values outside this range. Especially on a 32-bit system. * * *SQLite* does not have temporal SQL data types per se * and using this method with SQLite assumes the column value in the Result Set * to be either a numerical value representing a Unix Time in UTC which is * returned as-is or an [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) * time string which is converted to a `time_t` value. * * @param R A ResultSet object * @param columnIndex The first column is 1, the second is 2, ... * @return The column value as seconds since the epoch in the GMT timezone. * If the value is SQL NULL, the value returned is 0. * @exception SQLException If a database access error occurs, if * `columnIndex` is outside the range [1..ResultSet_getColumnCount()] * or if the column value cannot be converted to a valid timestamp * @see SQLException.h PreparedStatement_setTimestamp */ time_t ResultSet_getTimestamp(T R, int columnIndex); /** * @brief Gets the designated column's value as a Unix timestamp. * * The returned value is in Coordinated Universal Time (UTC) and represents * seconds since the **epoch** (January 1, 1970, 00:00:00 GMT). * * Even though the underlying database might support timestamp ranges before * the epoch and after '2038-01-19 03:14:07 UTC' it is safest not to assume or * use values outside this range. Especially on a 32-bit system. * * *SQLite* does not have temporal SQL data types per se * and using this method with SQLite assumes the column value in the Result Set * to be either a numerical value representing a Unix Time in UTC which is * returned as-is or an [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) * time string which is converted to a `time_t` value. * * @param R A ResultSet object * @param columnName The SQL name of the column. *case-sensitive* * @return The column value as seconds since the epoch in the GMT timezone. * If the value is SQL NULL, the value returned is 0. * @exception SQLException If a database access error occurs, if * `columnName` is not found or if the column value cannot be * converted to a valid timestamp * @see SQLException.h PreparedStatement_setTimestamp */ time_t ResultSet_getTimestampByName(T R, const char *columnName); /** * @brief Gets the designated column's value as a Date, Time or DateTime. * * This method can be used to retrieve the value of columns with the SQL data * type, Date, Time, DateTime or Timestamp. The returned `tm` structure follows * the convention for usage with mktime(3) where: * * - tm_hour = hours since midnight [0-23] * - tm_min = minutes after the hour [0-59] * - tm_sec = seconds after the minute [0-60] * - tm_mday = day of the month [1-31] * - tm_mon = months since January **[0-11]** * * If the column value contains timezone information, tm_gmtoff is set to the * offset from UTC in seconds, otherwise tm_gmtoff is set to 0. _On systems * without tm_gmtoff, (Solaris), the member, tm_wday is set to gmt offset * instead as this property is ignored by mktime on input._ The exception to * the above is **tm_year** which contains the year literal and _not years * since 1900_ which is the convention. All other fields in the structure are * set to zero. If the column type is DateTime or Timestamp all the fields * mentioned above are set, if it is a Date or a Time, only the relevant * fields are set. * * @param R A ResultSet object * @param columnIndex The first column is 1, the second is 2, ... * @return A tm structure with fields for date and time. If the value is SQL * NULL, a zeroed tm structure is returned. Use ResultSet_isnull() if in doubt. * @exception SQLException If a database access error occurs, if * `columnIndex` is outside the range [1..ResultSet_getColumnCount()] * or if the column value cannot be converted to a valid SQL Date, Time or * DateTime type * @see SQLException.h */ struct tm ResultSet_getDateTime(T R, int columnIndex); /** * @brief Gets the designated column's value as a Date, Time or DateTime. * * This method can be used to retrieve the value of columns with the SQL data * type, Date, Time, DateTime or Timestamp. The returned `tm` structure follows * the convention for usage with mktime(3) where: * * - tm_hour = hours since midnight [0-23] * - tm_min = minutes after the hour [0-59] * - tm_sec = seconds after the minute [0-60] * - tm_mday = day of the month [1-31] * - tm_mon = months since January **[0-11]** * * If the column value contains timezone information, tm_gmtoff is set to the * offset from UTC in seconds, otherwise tm_gmtoff is set to 0. _On systems * without tm_gmtoff, (Solaris), the member, tm_wday is set to gmt offset * instead as this property is ignored by mktime on input._ The exception to * the above is **tm_year** which contains the year literal and _not years * since 1900_ which is the convention. All other fields in the structure are * set to zero. If the column type is DateTime or Timestamp all the fields * mentioned above are set, if it is a Date or a Time, only the relevant * fields are set. * * @param R A ResultSet object * @param columnName The SQL name of the column. *case-sensitive* * @return A tm structure with fields for date and time. If the value is SQL * NULL, a zeroed tm structure is returned. Use ResultSet_isnull() if in doubt. * @exception SQLException If a database access error occurs, if * `columnName` is not found or if the column value cannot be * converted to a valid SQL Date, Time or DateTime type * @see SQLException.h */ struct tm ResultSet_getDateTimeByName(T R, const char *columnName); /// @} #undef T #endif libzdb-3.4.0/src/db/PreparedStatementDelegate.h000644 000765 000024 00000004604 14652177254 021507 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef PREPAREDSTATEMENTDELEGATE_INCLUDED #define PREPAREDSTATEMENTDELEGATE_INCLUDED /** * This interface defines the contract for the concrete database * implementation used for delegation in the PreparedStatement class. * * @file */ #define T PreparedStatementDelegate_T typedef struct T *T; typedef struct Pop_T { const char *name; void (*free)(T *P); void (*setString)(T P, int parameterIndex, const char *x, int size); void (*setInt)(T P, int parameterIndex, int x); void (*setLLong)(T P, int parameterIndex, long long x); void (*setDouble)(T P, int parameterIndex, double x); void (*setTimestamp)(T P, int parameterIndex, time_t timestamp); void (*setBlob)(T P, int parameterIndex, const void *x, int size); void (*execute)(T P); ResultSet_T (*executeQuery)(T P); long long (*rowsChanged)(T P); int (*parameterCount)(T P); } *Pop_T; /** * Throws exception if parameterIndex is outside the parameterCount range. * @return parameterIndex - 1. In the API parameterIndex starts with 1, * internally it starts with 0. */ static inline int checkAndSetParameterIndex(int parameterIndex, int parameterCount) { int i = parameterIndex - 1; if (parameterCount <= 0 || i < 0 || i >= parameterCount) THROW(SQLException, "Parameter index is out of range"); return i; } #undef T #endif libzdb-3.4.0/src/db/ConnectionPool.h000644 000765 000024 00000050166 14652472525 017361 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef CONNECTIONPOOL_INCLUDED #define CONNECTIONPOOL_INCLUDED /** * @brief A **ConnectionPool** represents a database connection pool. * * A connection pool can be used to get a connection to a database and * execute statements. This class opens a number of database * connections and allows callers to obtain and use a database connection in * a reentrant manner. Applications can instantiate as many ConnectionPool * objects as needed and against as many different database systems as needed. * The following diagram gives an overview of the library's components and * their method-associations: * *
* * The method ConnectionPool_getConnection() is used to obtain a new * connection from the pool. If there are no connections available, a new * connection is created and returned. If the pool has already handed out * *maxConnections* Connections, the next call to * ConnectionPool_getConnection() will return NULL. Use Connection_close() * to return a connection to the pool so it can be reused. * * A connection pool is created by default with 5 initial connections and * with 20 maximum connections. These values can be changed by the property * methods ConnectionPool_setInitialConnections() and * ConnectionPool_setMaxConnections(). * * ## Supported database systems: * * This library may be built with support for many different database * systems. To test if a particular system is supported, use the method * Connection_isSupported(). * * ## Life-cycle methods: * * Clients should call ConnectionPool_start() to establish the connection pool * against the database server before using the pool. To shutdown * connections from the database server, use ConnectionPool_stop(). Set * preferred properties *before* calling ConnectionPool_start(). Some * properties can also be changed dynamically after the pool was started, such as * changing the maximum number of connections or the number of initial connections. * Changing and tuning these properties at runtime is most useful if the pool was * started with a reaper-thread (see below) since the reaper dynamically changes the * size of the pool. * * ## Connection URL: * * The URL given to a Connection Pool at creation time specifies a database * connection in the standard URL format. The format of the connection URL * is defined as: * *
 * database://[user:password@][host][:port]/database[?propertyName1][=propertyValue1][&propertyName2][=propertyValue2]...
 * 
* * The property names `user` and `password` are always * recognized and specify how to log in to the database. Other properties * depend on the database server in question. Username and password can * alternatively be specified in the auth-part of the URL. If port number is * omitted, the default port number for the database server is used. * * ### MySQL: * * Here is an example of how to connect to a [MySQL](http://www.mysql.org/) * database server: * * ``` * mysql://localhost:3306/test?user=root&password=swordfish * ``` * * In this case, the username, `root` and password, `swordfish` * are specified as properties to the URL. An alternative is to * use the auth-part of the URL to specify authentication information: * * ``` * mysql://root:swordfish@localhost:3306/test * ``` * * See [mysql options](mysqloptions.html) for all properties that * can be set for a mysql connection URL. * * ### SQLite: * * For a [SQLite](http://www.sqlite.org/) database, the connection * URL should simply specify a database file, since a SQLite database * is just a file in the filesystem. SQLite uses * [pragma commands](http://sqlite.org/pragma.html) for * performance tuning and other special purpose database commands. Pragma * syntax in the form `name=value` can be added as properties * to the URL and will be set when the Connection is created. In addition * to pragmas, the following properties are supported: * * - `heap_limit=value` - Make SQLite auto-release unused memory * if memory usage goes above the specified value [KB]. * - `serialized=true` - Make SQLite switch to serialized mode * if value is true, otherwise multi-thread mode is used (the default). * * A URL for connecting to a SQLite database might look like this (with recommended pragmas): * * ``` * sqlite:///var/sqlite/test.db?synchronous=normal&foreign_keys=on&journal_mode=wal&temp_store=memory * ``` * * ### PostgreSQL: * * The URL for connecting to a [PostgreSQL](http://www.postgresql.org/) * database server might look like: * * ``` * postgresql://localhost:5432/test?user=root&password=swordfish * ``` * * As with the MySQL URL, the username and password are specified as * properties to the URL. Likewise, the auth-part of the URL can be used * instead to specify the username and the password: * * ``` * postgresql://root:swordfish@localhost/test?use-ssl=true * ``` * * In this example, we have also omitted the port number to the server, in * which case the default port number, *5432*, for PostgreSQL is used. In * addition, we have added an extra parameter to the URL, so connection to * the server is done over a secure SSL connection. * * See [postgresql options](postgresoptions.html) for all properties that * can be set for a postgresql connection URL. * * ### Oracle: * * The URL for connecting to an [Oracle](http://www.oracle.com/) * database server might look like: * * ``` * oracle://localhost:1521/servicename?user=scott&password=tiger * ``` * * Instead of a database name, Oracle uses a service name which you * typically specify in a `tnsnames.ora` configuration file. * The auth-part of the URL can be used instead to specify the username * and the password as in the example below. Here we also specify that * we want to connect to Oracle with the SYSDBA role. * * ``` * oracle://sys:password@localhost:1521/servicename?sysdba=true * ``` * * See [oracle options](oracleoptions.html) for all properties that * can be set for an oracle connection URL. * * ## Example: * * To obtain a connection pool for a MySQL database, the code below can be * used. The exact same code can be used for PostgreSQL, SQLite and Oracle, * the only change needed is to modify the Connection URL. Here we connect * to the database test on localhost and start the pool with the default 5 * initial connections. * * @code * URL_T url = URL_new("mysql://localhost/test?user=root&password=swordfish"); * ConnectionPool_T pool = ConnectionPool_new(url); * ConnectionPool_start(pool); * //.. * Connection_T con = ConnectionPool_getConnection(pool); * ResultSet_T result = Connection_executeQuery(con, "select id, name, photo from employee where salary>%d", anumber); * while (ResultSet_next(result)) * { * int id = ResultSet_getInt(result, 1); * const char *name = ResultSet_getString(result, 2); * int blobSize; * const void *photo = ResultSet_getBlob(result, 3, &blobSize); * // ... * } * Connection_close(con); * //.. * ConnectionPool_free(&pool); * URL_free(&url); * @endcode * * ## Optimizing the pool size: * * The pool is designed to dynamically manage the number of active connections * based on usage patterns. A `reaper` thread is automatically started when the * pool is initialized, performing two functions: * * 1. Sweep through the pool at regular intervals (default every 60 seconds) * to close connections that have been inactive for a specified time (default * 90 seconds). * 2. Perform periodic validation (ping test) on idle connections to ensure * they remain valid and responsive. * * This dual functionality helps maintain the pool's health by removing stale * connections and verifying the validity of idle ones. * * Only inactive connections will be closed, and no more than the initial number * of connections the pool was started with are closed. The property method, * `ConnectionPool_setReaper()`, can be used to customize the reaper's sweep * interval or disable it entirely if needed. * * Clients can also call the method `ConnectionPool_reapConnections()` to prune * the pool directly if manual control is desired. * * The reaper thread is especially beneficial for pools maintaining TCP/IP * Connections. * * ## Realtime inspection: * * Three methods can be used to inspect the pool at runtime. The method * ConnectionPool_size() returns the number of connections in the pool, that is, * both active and inactive connections. The method ConnectionPool_active() * returns the number of active connections, i.e., those connections in * current use by your application. The method ConnectionPool_isFull() can * be used to check if the pool is full and unable to return a connection. * * *This ConnectionPool is thread-safe.* * * @see Connection.h ResultSet.h URL.h PreparedStatement.h SQLException.h * @file */ #define T ConnectionPool_T typedef struct ConnectionPool_S *T; /** * Library Debug flag. If set to true, emit debug output */ extern int ZBDEBUG; /** * @brief Create a new ConnectionPool. * * The pool is created with 5 initial connections. Maximum connections is * set to 20. Property methods in this interface can be used to change * the default values. * * @param url The database connection URL. It is a checked runtime error * for the url parameter to be NULL. The pool **does not** take ownership * of the `url` object but expects the url to exist as long as the pool does. * @return A new ConnectionPool object * @see URL.h */ T ConnectionPool_new(URL_T url); /** * @brief Disconnect and destroy the pool and release allocated resources. * @param P A ConnectionPool object reference */ void ConnectionPool_free(T *P); /// @name Properties /// @{ /** * @brief Returns this Connection Pool's URL * @param P A ConnectionPool object * @return This Connection Pool's URL * @see URL.h */ URL_T ConnectionPool_getURL(T P); /** * @brief Sets the number of initial connections in the pool. * @param P A ConnectionPool object * @param initialConnections The number of initial pool connections. * It is a checked runtime error for initialConnections to be < 0 * @see Connection.h */ void ConnectionPool_setInitialConnections(T P, int initialConnections); /** * @brief Gets the number of initial connections in the pool. * @param P A ConnectionPool object * @return The number of initial pool connections * @see Connection.h */ int ConnectionPool_getInitialConnections(T P); /** * @brief Sets the maximum number of connections in the pool. * * If max connections has been reached, ConnectionPool_getConnection() * will return NULL on the next call. * * @param P A ConnectionPool object * @param maxConnections The maximum number of connections this * connection pool will create. It is a checked runtime error for * maxConnections to be less than initialConnections. * @see Connection.h */ void ConnectionPool_setMaxConnections(T P, int maxConnections); /** * @brief Gets the maximum number of connections in the pool. * @param P A ConnectionPool object * @return The maximum number of connections this pool will create. * @see Connection.h */ int ConnectionPool_getMaxConnections(T P); /** * @brief Set the Connection inactive timeout value in seconds. * * The method ConnectionPool_reapConnections(), if called, will * close inactive Connections in the pool which have not been in * use for `connectionTimeout` seconds. The default connectionTimeout * is 90 seconds. * * The reaper thread, see ConnectionPool_setReaper(), will use this * value when closing inactive Connections. * @param P A ConnectionPool object * @param connectionTimeout The number of `seconds` a Connection * can be inactive (i.e., not in use) before the reaper closes the Connection. * (value > 0) */ void ConnectionPool_setConnectionTimeout(T P, int connectionTimeout); /** * @brief Gets the connection timeout value. * @param P A ConnectionPool object * @return The time an inactive Connection may live before it is closed */ int ConnectionPool_getConnectionTimeout(T P); /** * @brief Sets the function to call if a fatal error occurs in the library. * * In practice, this means Out-Of-Memory errors or uncaught exceptions. * Clients may optionally provide this function. If not provided, * the library will call `abort(3)` upon encountering a * fatal error if ZBDEBUG is set; otherwise, exit(1) is called. This * method provides clients with a means to close down execution gracefully. * It is an unchecked runtime error to continue using the library after * the `abortHandler` was called. * * @param P A ConnectionPool object * @param abortHandler The handler function to call should a fatal * error occur during processing. An explanatory error message is passed * to the handler function in the string `error` * @see Exception.h */ void ConnectionPool_setAbortHandler(T P, void(*abortHandler)(const char *error)); /** * @brief Customize the reaper thread behavior or disable it. * * By default, a reaper thread is automatically started when the pool is * initialized, with a default sweep interval of 60 seconds. This method * allows you to change the sweep interval or disable the reaper entirely. * * The reaper thread closes inactive Connections in the pool, down to the * initial connection count. An inactive Connection is closed if its * `connectionTimeout` has expired or if it fails the ping test. Active * Connections (those in current use) are never closed by this thread. * * This method can be called before or after ConnectionPool_start(). If * called after start, the changes will take effect on the next sweep cycle. * * @param P A ConnectionPool object * @param sweepInterval Number of seconds between sweeps of the reaper thread. * Set to 0 or a negative value to disable the reaper thread, _before_ * calling ConnectionPool_start(). */ void ConnectionPool_setReaper(T P, int sweepInterval); /// @} /// @name Functions /// @{ /** * @brief Prepares the pool for active use. * * This method must be called before the pool is used. It will connect to the * database server, create the initial connections for the pool, and start the * reaper thread with default settings, unless previously disabled via * ConnectionPool_setReaper(). * * @param P A ConnectionPool object * @exception SQLException If a database error occurs. * @see SQLException.h */ void ConnectionPool_start(T P); /** * @brief Gracefully terminates the pool. * * This method should be the last one called on a given instance of this * component. Calling this method closes down all connections in the pool, * disconnects the pool from the database server, and stops the reaper * thread if it was started. * * @param P A ConnectionPool object */ void ConnectionPool_stop(T P); /** * @brief Get a connection from the pool. * * The returned Connection (if any) is guaranteed to be alive and connected to * the database. NULL is returned if a database error occurred or if the pool * is full and cannot return a new connection. * * This example demonstrates how to check if the pool is full before attempting * to get a connection, and how to handle potential errors: * * ```c * if (ConnectionPool_isFull(p)) { * // Consider increasing pool size before trying to get a connection * // ConnectionPool_setMaxConnections(p, ...) * } * * Connection_T con = ConnectionPool_getConnection(p); * if (!con) { * if (ConnectionPool_isFull(p)) { * // Pool is full * fprintf(stderr, "Connection pool is full. Cannot acquire a new connection.\n"); * } else { * // A database error occurred. This could be due * // to network issues or database unavailability * fprintf(stderr, "Database error: Unable to acquire a connection.\n"); * } * } else { * // Use the connection... * } * ``` * * @param P A ConnectionPool object * @return A connection from the pool or NULL if a database error occurred. * @see Connection.h * @see ConnectionPool_setMaxRetries(T P, int maxRetries) */ Connection_T ConnectionPool_getConnection(T P); /** * @brief Get a connection from the pool. * * The returned Connection is guaranteed to be alive and connected to the * database. The method ConnectionPool_getConnection() above is identical * except it will return NULL if the pool is full or if a database error * occured. This method will instead throw an SQLException in both cases * with an appropriate error message. * * This example demonstrates how to get a connection, and how to handle * potential errors: * * ```c * Connection_T con = NULL; * TRY * { * con = ConnectionPool_getConnectionOrException(p); * // Use the connection... * } * ELSE * { * // The error message in Exception_frame.message will specify * // if the pool was full or the database error that occured * fprintf(stderr, "Error: %s\n", Exception_frame.message); * } * FINALLY * { * if (con) Connection_close(con); * } * END_TRY; * ``` * * @param P A ConnectionPool object * @return A connection from the pool * @exception SQLException If a database connection cannot be obtained. The * error message is available in Exception_frame.message * @see Connection.h */ Connection_T ConnectionPool_getConnectionOrException(T P); /** * @brief Returns a connection to the pool. * * The same as calling Connection_close() on a connection. If the connection * is in an uncommitted transaction, rollback is called. It is an unchecked * error to attempt to use the Connection after this method is called. * * @param P A ConnectionPool object * @param connection A Connection object * @see Connection.h */ void ConnectionPool_returnConnection(T P, Connection_T connection); /** * @brief Reaps inactive connections in the pool. * * An inactive Connection is closed if and only if its `connectionTimeout` has * expired *or* if the Connection failed the ping test against the database. * Active Connections are *not* closed by this method. * * @param P A ConnectionPool object * @return The number of Connections that were closed * @see ConnectionPool_setConnectionTimeout * @see ConnectionPool_setInitialConnections * @see Connection_ping */ int ConnectionPool_reapConnections(T P); /** * @brief Gets the current number of connections in the pool. * @param P A ConnectionPool object * @return The total number of connections in the pool. */ int ConnectionPool_size(T P); /** * @brief Gets the number of active connections in the pool. * * I.e., connections in current use by your application. * * @param P A ConnectionPool object * @return The number of active connections in the pool */ int ConnectionPool_active(T P); /** * @brief Checks if the pool is full. * * The pool is full if the number of *active* connections equals max * connections and the pool is unable to return a connection. * * @param P A ConnectionPool object * @return true if pool is full, false otherwise * @note A full pool is unlikely to occur in practice if you ensure that * connections are returned to the pool after use. */ bool ConnectionPool_isFull(T P); /// @} /// @name Class functions /// @{ /** * @brief Gets the library version information. * @return The library version information */ const char *ConnectionPool_version(void); /// @} #undef T #endif libzdb-3.4.0/src/db/oracle/000775 000765 000024 00000000000 14652450503 015506 5ustar00haukstaff000000 000000 libzdb-3.4.0/src/db/ConnectionDelegate.h000644 000765 000024 00000003760 14651554426 020160 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef CONNECTIONDELEGATE_INCLUDED #define CONNECTIONDELEGATE_INCLUDED /** * This interface defines the contract for the concrete database * implementation used for delegation in the Connection class. * * @file */ #define T ConnectionDelegate_T typedef struct T *T; typedef struct Cop_T { const char *name; // Methods T (*new)(Connection_T delegator, char **error); void (*free)(T *C); bool (*ping)(T C); void (*setQueryTimeout)(T C, int ms); bool (*beginTransaction)(T C); bool (*beginTransactionType)(T C, TRANSACTION_TYPE type); bool (*commit)(T C); bool (*rollback)(T C); long long (*lastRowId)(T C); long long (*rowsChanged)(T C); bool (*execute)(T C, const char *sql, va_list ap); ResultSet_T (*executeQuery)(T C, const char *sql, va_list ap); PreparedStatement_T (*prepareStatement)(T C, const char *sql, va_list ap); const char *(*getLastError)(T C); } *Cop_T; #undef T #endif libzdb-3.4.0/src/db/PreparedStatement.h000644 000765 000024 00000030776 14652472572 020066 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef PREPAREDSTATEMENT_INCLUDED #define PREPAREDSTATEMENT_INCLUDED #include //<< Protected methods #include "PreparedStatementDelegate.h" //>> End Protected methods /** * @brief A **PreparedStatement** represents a single SQL statement pre-compiled * into byte code for later execution. * * The SQL statement may contain *in* parameters of the form `?`. Such parameters * represent unspecified literal values (or "wildcards") to be filled in later by the * various setter methods defined in this interface. Each *in* parameter has an * associated index number which is its sequence in the statement. The first * *in* '?' parameter has index 1, the next has index 2 and so on. A * PreparedStatement is created by calling Connection_prepareStatement(). * * Consider this statement: * ```sql * INSERT INTO employee(name, photo) VALUES(?, ?) * ``` * There are two *in* parameters in this statement, the parameter for setting * the name has index 1 and the one for the photo has index 2. To set the * values for the *in* parameters we use a setter method. Assuming name has * a string value we use PreparedStatement_setString(). To set the value * of the photo we submit a binary value using the * method PreparedStatement_setBlob(). * * ## Example * * To summarize, here is the code in context. * * ```c * PreparedStatement_T p = Connection_prepareStatement(con, "INSERT INTO employee(name, photo) VALUES(?, ?)"); * PreparedStatement_setString(p, 1, "Kamiya Kaoru"); * PreparedStatement_setBlob(p, 2, jpeg, jpeg_size); * PreparedStatement_execute(p); * ``` * * ## Reuse * * A PreparedStatement can be reused. That is, the method * PreparedStatement_execute() can be called one or more times to execute * the same statement. Clients can also set new *in* parameter values and * re-execute the statement as shown in this example: * * ```c * PreparedStatement_T p = Connection_prepareStatement(con, "INSERT INTO employee(name, photo) VALUES(?, ?)"); * for (int i = 0; employees[i]; i++) * { * PreparedStatement_setString(p, 1, employees[i].name); * PreparedStatement_setBlob(p, 2, employees[i].photo.data, employees[i].photo.size); * PreparedStatement_execute(p); * } * ``` * * ## Result Sets * * Here is another example where we use a Prepared Statement to execute a query * which returns a Result Set: * * ```c * PreparedStatement_T p = Connection_prepareStatement(con, "SELECT id FROM employee WHERE name LIKE ?"); * PreparedStatement_setString(p, 1, "%oru%"); * ResultSet_T r = PreparedStatement_executeQuery(p); * while (ResultSet_next(r)) * printf("employee.id = %d\n", ResultSet_getInt(r, 1)); * ``` * * A ResultSet returned from PreparedStatement_executeQuery() is valid until * the Prepared Statement is executed again or until the Connection is * returned to the Connection Pool. * * ## Date and Time * * PreparedStatement_setTimestamp() can be used to set a Unix timestamp value as * a `time_t` type. To set Date, Time or DateTime values, simply use * PreparedStatement_setString() to set a time string in a format understood by * your database. For instance to set a SQL Date value,, * ```c * PreparedStatement_setString(p, parameterIndex, "2019-12-28"); * ``` * * ## SQL Injection Prevention * * Prepared Statement is particularly useful when dealing with user-submitted data, * as properly used Prepared Statements provide strong protection against SQL * injection attacks. By separating SQL logic from data, PreparedStatements ensure * that user input is treated as data only, not as part of the SQL command. * * *A PreparedStatement is reentrant, but not thread-safe and should only be used * by one thread (at a time).* * * @note Remember that parameter indices in PreparedStatement are 1-based, not 0-based. * * @note To minimizes memory allocation and avoid unnecessary data copying, string * and blob values are set by reference and MUST remain valid until either * PreparedStatement_execute() or PreparedStatement_executeQuery() is called. * * @see Connection.h ResultSet.h SQLException.h * @file */ #define T PreparedStatement_T typedef struct PreparedStatement_S *T; //<< Protected methods /** * @brief Create a new PreparedStatement. * @param D the delegate used by this PreparedStatement * @param op delegate operations * @return A new PreparedStatement object */ T PreparedStatement_new(PreparedStatementDelegate_T D, Pop_T op) __attribute__ ((visibility("hidden"))); /** * @brief Destroy a PreparedStatement and release allocated resources. * @param P A PreparedStatement object reference */ void PreparedStatement_free(T *P) __attribute__ ((visibility("hidden"))); //>> End Protected methods /// @name Parameters /// @{ /** * @brief Sets the *in* parameter at index `parameterIndex` to the given string value. * * This method is less efficient than PreparedStatement_setSString() as it needs * to calculate the string length. Use PreparedStatement_setSString() if you know * the size of the string. * * @param P A PreparedStatement object * @param parameterIndex The first parameter is 1, the second is 2, ... * @param x The string value to set. The string must be a '\0' terminated C-string. * NULL is allowed to indicate a SQL NULL value. * @exception SQLException If a database access error occurs or if parameter * index is out of range * @see SQLException.h * @see PreparedStatement_setSString */ void PreparedStatement_setString(T P, int parameterIndex, const char *x); /** * @brief Sets the *in* parameter at index `parameterIndex` to the given `sized` * string value. * * This method is more efficient than PreparedStatement_setString() as it doesn't * need to calculate the string length. * * @param P A PreparedStatement object * @param parameterIndex The first parameter is 1, the second is 2, ... * @param x The string value to set. The string need not be '\0' terminated. * NULL is allowed to indicate a SQL NULL value. * @param size The length of the byte string. For instance, the value returned * by `strlen(3)`. If size is negative, it will be treated as 0. * @exception SQLException If a database access error occurs or if parameter * index is out of range * @see SQLException.h * @see PreparedStatement_setString */ void PreparedStatement_setSString(T P, int parameterIndex, const char *x, int size); /** * @brief Sets the *in* parameter at index `parameterIndex` to the given int value. * @param P A PreparedStatement object * @param parameterIndex The first parameter is 1, the second is 2,.. * @param x The int value to set * @exception SQLException If a database access error occurs or if parameter * index is out of range * @see SQLException.h */ void PreparedStatement_setInt(T P, int parameterIndex, int x); /** * @brief Sets the *in* parameter at index `parameterIndex` to the given long long value. * @param P A PreparedStatement object * @param parameterIndex The first parameter is 1, the second is 2,.. * @param x The long long value to set * @exception SQLException If a database access error occurs or if parameter * index is out of range * @see SQLException.h */ void PreparedStatement_setLLong(T P, int parameterIndex, long long x); /** * @brief Sets the *in* parameter at index `parameterIndex` to the given double value. * @param P A PreparedStatement object * @param parameterIndex The first parameter is 1, the second is 2,.. * @param x The double value to set * @exception SQLException If a database access error occurs or if parameter * index is out of range * @see SQLException.h */ void PreparedStatement_setDouble(T P, int parameterIndex, double x); /** * @brief Sets the *in* parameter at index `parameterIndex` to the given blob value. * @param P A PreparedStatement object * @param parameterIndex The first parameter is 1, the second is 2,.. * @param x The blob value to set. NULL is allowed to indicate a SQL NULL value * @param size The number of bytes in the blob. If size is negative, it will be treated as 0. * @exception SQLException If a database access error occurs or if parameter * index is out of range * @see SQLException.h */ void PreparedStatement_setBlob(T P, int parameterIndex, const void *x, int size); /** * @brief Sets the *in* parameter at index `parameterIndex` to the * given Unix timestamp value. * * The timestamp value given in `x` is expected to be a UTC timestamp, * representing the number of seconds since the Unix epoch, regardless of * the system's local timezone. For instance, a value returned by `time(3)` * is appropriate for this parameter. * * Note on database-specific behavior: * - SQLite: Stores the time_t value as a 64-bit integer. This preserves * the exact UTC timestamp, which can be correctly interpreted in any * timezone when retrieved. * - MySQL, PostgreSQL and Oracle: Convert and store the timestamp in their * respective datetime formats, preserving the UTC value. * * This approach ensures consistent timestamp handling across different timezones * and database systems. When retrieving the timestamp, use appropriate time * conversion functions to interpret the value in the desired timezone. * * @param P A PreparedStatement object * @param parameterIndex The first parameter is 1, the second is 2, ... * @param x The UTC timestamp value to set. E.g., a value returned by time(3) * @exception SQLException If a database access error occurs or if parameter * index is out of range * @see SQLException.h * @see ResultSet_getTimestamp */ void PreparedStatement_setTimestamp(T P, int parameterIndex, time_t x); /** * @brief Sets the *in* parameter at index `parameterIndex` to SQL NULL. * @param P A PreparedStatement object * @param parameterIndex The first parameter is 1, the second is 2,.. * @exception SQLException If a database access error occurs or if parameter * index is out of range * @see SQLException.h */ void PreparedStatement_setNull(T P, int parameterIndex); /// @} /// @name Functions /// @{ /** * @brief Executes the prepared SQL statement. * * Executes the prepared SQL statement, which may be an INSERT, UPDATE, * or DELETE statement or an SQL statement that returns nothing, such * as an SQL DDL statement. * * @param P A PreparedStatement object * @exception SQLException If a database error occurs * @see SQLException.h */ void PreparedStatement_execute(T P); /** * @brief Executes the prepared SQL query. * * Executes the prepared SQL statement, which returns a single ResultSet * object. A ResultSet is valid until the next call to a PreparedStatement * method or until the Connection is returned to the Connection Pool. * *This means that Result Sets cannot be saved between queries*. * * @param P A PreparedStatement object * @return A ResultSet object that contains the data produced by the prepared * statement. * @exception SQLException If a database error occurs * @see ResultSet.h * @see SQLException.h */ ResultSet_T PreparedStatement_executeQuery(T P); /** * @brief Gets the number of rows affected by the most recent SQL statement. * * If used with a transaction, this method should be called *before* commit is * executed, otherwise 0 is returned. * * @param P A PreparedStatement object * @return The number of rows changed by the last (DIM) SQL statement */ long long PreparedStatement_rowsChanged(T P); /// @} /// @name Properties /// @{ /** * @brief Gets the number of parameters in the prepared statement. * @param P A PreparedStatement object * @return The number of _in_ parameters in this prepared statement */ int PreparedStatement_getParameterCount(T P); /// @} #undef T #endif libzdb-3.4.0/src/db/sqlite/000775 000765 000024 00000000000 14652556661 015556 5ustar00haukstaff000000 000000 libzdb-3.4.0/src/db/ResultSetDelegate.h000644 000765 000024 00000004527 13471506034 020004 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef RESULTSETDELEGATE_INCLUDED #define RESULTSETDELEGATE_INCLUDED #include "system/Time.h" /** * This interface defines the contract for the concrete database * implementation used for delegation in the ResultSet class. * * @file */ #define T ResultSetDelegate_T typedef struct T *T; typedef struct Rop_T { const char *name; void (*free)(T *R); int (*getColumnCount)(T R); const char *(*getColumnName)(T R, int columnIndex); long (*getColumnSize)(T R, int columnIndex); void (*setFetchSize)(T R, int rows); int (*getFetchSize)(T R); bool (*next)(T R); bool (*isnull)(T R, int columnIndex); const char *(*getString)(T R, int columnIndex); const void *(*getBlob)(T R, int columnIndex, int *size); time_t (*getTimestamp)(T R, int columnIndex); struct tm *(*getDateTime)(T R, int columnIndex, struct tm *tm); } *Rop_T; /** * Throws exception if columnIndex is outside the columnCount range. * @return columnIndex - 1. In the API, columnIndex starts with 1, * internally it starts with 0. */ static inline int checkAndSetColumnIndex(int columnIndex, int columnCount) { int i = columnIndex - 1; if (columnCount <= 0 || i < 0 || i >= columnCount) THROW(SQLException, "Column index is out of range"); return i; } #undef T #endif libzdb-3.4.0/src/db/Connection.c000644 000765 000024 00000021161 14651554426 016513 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include "URL.h" #include "Vector.h" #include "system/Time.h" #include "ResultSet.h" #include "PreparedStatement.h" #include "Connection.h" #include "ConnectionPool.h" #include "ConnectionDelegate.h" /** * Implementation of the Connection interface * * @file */ /* ----------------------------------------------------------- Definitions */ #ifdef HAVE_LIBMYSQLCLIENT extern const struct Cop_T mysqlcops; #endif #ifdef HAVE_LIBPQ extern const struct Cop_T postgresqlcops; #endif #ifdef HAVE_LIBSQLITE3 extern const struct Cop_T sqlite3cops; #endif #ifdef HAVE_ORACLE extern const struct Cop_T oraclesqlcops; #endif static const struct Cop_T *cops[] = { #ifdef HAVE_LIBMYSQLCLIENT &mysqlcops, #endif #ifdef HAVE_LIBPQ &postgresqlcops, #endif #ifdef HAVE_LIBSQLITE3 &sqlite3cops, #endif #ifdef HAVE_ORACLE &oraclesqlcops, #endif NULL }; #define T Connection_T struct Connection_S { Cop_T op; URL_T url; int maxRows; int fetchSize; bool isAvailable; int queryTimeout; Vector_T prepared; int inTransaction; int fetchSizeDefault; time_t lastAccessedTime; ResultSet_T resultSet; ConnectionDelegate_T D; ConnectionPool_T parent; }; /* ------------------------------------------------------- Private methods */ static Cop_T _getOp(const char *protocol) { for (int i = 0; cops[i]; i++) if (Str_startsWith(protocol, cops[i]->name)) return (Cop_T)cops[i]; return NULL; } static bool _setDelegate(T C, char **error) { C->op = _getOp(URL_getProtocol(C->url)); if (! C->op) { *error = Str_cat("database protocol '%s' not supported", URL_getProtocol(C->url)); return false; } C->D = C->op->new(C, error); return (C->D != NULL); } static void _freePrepared(T C) { while (! Vector_isEmpty(C->prepared)) { PreparedStatement_T ps = Vector_pop(C->prepared); PreparedStatement_free(&ps); } } /* ----------------------------------------------------- Protected methods */ T Connection_new(void *pool, char **error) { assert(pool); T C; NEW(C); C->parent = pool; C->isAvailable = true; C->inTransaction = false; C->prepared = Vector_new(4); C->lastAccessedTime = Time_now(); C->url = ConnectionPool_getURL(pool); C->fetchSize = SQL_DEFAULT_PREFETCH_ROWS; if (! _setDelegate(C, error)) { Connection_free(&C); } else { C->fetchSizeDefault = C->fetchSize; } return C; } void Connection_free(T *C) { assert(C && *C); Connection_clear((*C)); Vector_free(&((*C)->prepared)); if ((*C)->D) (*C)->op->free(&((*C)->D)); FREE(*C); } void Connection_setAvailable(T C, bool isAvailable) { assert(C); C->isAvailable = isAvailable; C->lastAccessedTime = Time_now(); } bool Connection_isAvailable(T C) { assert(C); return C->isAvailable; } time_t Connection_getLastAccessedTime(T C) { assert(C); return C->lastAccessedTime; } /* ------------------------------------------------------------ Properties */ void Connection_setQueryTimeout(T C, int ms) { assert(C); assert(ms >= 0); C->queryTimeout = ms; if (C->op->setQueryTimeout) C->op->setQueryTimeout(C->D, ms); } int Connection_getQueryTimeout(T C) { assert(C); return C->queryTimeout; } void Connection_setMaxRows(T C, int max) { assert(C); C->maxRows = max; } int Connection_getMaxRows(T C) { assert(C); return C->maxRows; } URL_T Connection_getURL(T C) { assert(C); return C->url; } void Connection_setFetchSize(T C, int rows) { assert(C); assert(rows > 0); C->fetchSize = rows; } int Connection_getFetchSize(T C) { assert(C); return C->fetchSize; } /* -------------------------------------------------------- Public methods */ bool Connection_ping(T C) { assert(C); return C->op->ping(C->D); } void Connection_clear(T C) { assert(C); if (C->resultSet) ResultSet_free(&C->resultSet); _freePrepared(C); // Set properties back to default values C->maxRows = 0; if (C->queryTimeout != 0) Connection_setQueryTimeout(C, 0); C->fetchSize = C->fetchSizeDefault; } void Connection_close(T C) { assert(C); ConnectionPool_returnConnection(C->parent, C); } void Connection_beginTransaction(T C) { Connection_beginTransactionType(C, TRANSACTION_DEFAULT); } void Connection_beginTransactionType(T C, TRANSACTION_TYPE type) { assert(C); if (! C->op->beginTransactionType(C->D, type)) THROW(SQLException, "%s", Connection_getLastError(C)); C->inTransaction++; } bool Connection_inTransaction(T C) { assert(C); return (C->inTransaction > 0); } void Connection_commit(T C) { assert(C); if (C->inTransaction) C->inTransaction = 0; // Even if we are not in a transaction, call the delegate anyway and propagate any errors if (! C->op->commit(C->D)) THROW(SQLException, "%s", Connection_getLastError(C)); } void Connection_rollback(T C) { assert(C); if (C->inTransaction) { // Clear any pending resultset statements first Connection_clear(C); C->inTransaction = 0; } // Even if we are not in a transaction, call the delegate anyway and propagate any errors if (! C->op->rollback(C->D)) THROW(SQLException, "%s", Connection_getLastError(C)); } long long Connection_lastRowId(T C) { assert(C); return C->op->lastRowId(C->D); } long long Connection_rowsChanged(T C) { assert(C); return C->op->rowsChanged(C->D); } void Connection_execute(T C, const char *sql, ...) { assert(C); assert(sql); if (C->resultSet) ResultSet_free(&C->resultSet); va_list ap; va_start(ap, sql); bool success = C->op->execute(C->D, sql, ap); va_end(ap); if (! success) THROW(SQLException, "%s", Connection_getLastError(C)); } ResultSet_T Connection_executeQuery(T C, const char *sql, ...) { assert(C); assert(sql); if (C->resultSet) ResultSet_free(&C->resultSet); va_list ap; va_start(ap, sql); C->resultSet = C->op->executeQuery(C->D, sql, ap); va_end(ap); if (! C->resultSet) THROW(SQLException, "%s", Connection_getLastError(C)); return C->resultSet; } PreparedStatement_T Connection_prepareStatement(T C, const char *sql, ...) { assert(C); assert(sql); va_list ap; va_start(ap, sql); PreparedStatement_T p = C->op->prepareStatement(C->D, sql, ap); va_end(ap); if (p) Vector_push(C->prepared, p); else THROW(SQLException, "%s", Connection_getLastError(C)); return p; } const char *Connection_getLastError(T C) { assert(C); const char *s = C->op->getLastError(C->D); return STR_DEF(s) ? s : "?"; } /* --------------------------------------------------------- Class methods */ bool Connection_isSupported(const char *url) { return (url ? (_getOp(url) != NULL) : false); } libzdb-3.4.0/src/db/mysql/000775 000765 000024 00000000000 14652556661 015422 5ustar00haukstaff000000 000000 libzdb-3.4.0/src/db/ResultSet.c000644 000765 000024 00000013360 14300714631 016333 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include "ResultSet.h" #include "system/Time.h" /** * Implementation of the ResultSet interface * * @file */ /* ----------------------------------------------------------- Definitions */ #define T ResultSet_T struct ResultSet_S { Rop_T op; ResultSetDelegate_T D; int fetchSize; }; /* ------------------------------------------------------- Private methods */ static inline int _getIndex(T R, const char *name) { int columns = ResultSet_getColumnCount(R); for (int i = 1; i <= columns; i++) if (Str_isByteEqual(name, ResultSet_getColumnName(R, i))) return i; THROW(SQLException, "Invalid column name '%s'", name ? name : "null"); return -1; } /* ----------------------------------------------------- Protected methods */ T ResultSet_new(ResultSetDelegate_T D, Rop_T op) { T R; assert(D); assert(op); NEW(R); R->D = D; R->op = op; return R; } void ResultSet_free(T *R) { assert(R && *R); (*R)->op->free(&((*R)->D)); FREE(*R); } /* ------------------------------------------------------------ Properties */ int ResultSet_getColumnCount(T R) { assert(R); return R->op->getColumnCount(R->D); } const char *ResultSet_getColumnName(T R, int columnIndex) { assert(R); return R->op->getColumnName(R->D, columnIndex); } long ResultSet_getColumnSize(T R, int columnIndex) { assert(R); return R->op->getColumnSize(R->D, columnIndex); } void ResultSet_setFetchSize(T R, int rows) { assert(R); assert(rows > 0); if (R->op->setFetchSize) R->op->setFetchSize(R->D, rows); } int ResultSet_getFetchSize(T R) { assert(R); return R->op->getFetchSize ? R->op->getFetchSize(R->D) : 0; } /* -------------------------------------------------------- Public methods */ bool ResultSet_next(T R) { return R ? R->op->next(R->D) : false; } bool ResultSet_isnull(T R, int columnIndex) { assert(R); return R->op->isnull(R->D, columnIndex); } /* --------------------------------------------------------------- Columns */ const char *ResultSet_getString(T R, int columnIndex) { assert(R); return R->op->getString(R->D, columnIndex); } const char *ResultSet_getStringByName(T R, const char *columnName) { assert(R); return ResultSet_getString(R, _getIndex(R, columnName)); } int ResultSet_getInt(T R, int columnIndex) { assert(R); const char *s = R->op->getString(R->D, columnIndex); return s ? Str_parseInt(s) : 0; } int ResultSet_getIntByName(T R, const char *columnName) { assert(R); return ResultSet_getInt(R, _getIndex(R, columnName)); } long long ResultSet_getLLong(T R, int columnIndex) { assert(R); const char *s = R->op->getString(R->D, columnIndex); return s ? Str_parseLLong(s) : 0; } long long ResultSet_getLLongByName(T R, const char *columnName) { assert(R); return ResultSet_getLLong(R, _getIndex(R, columnName)); } double ResultSet_getDouble(T R, int columnIndex) { assert(R); const char *s = R->op->getString(R->D, columnIndex); return s ? Str_parseDouble(s) : 0.0; } double ResultSet_getDoubleByName(T R, const char *columnName) { assert(R); return ResultSet_getDouble(R, _getIndex(R, columnName)); } const void *ResultSet_getBlob(T R, int columnIndex, int *size) { assert(R); const void *b = R->op->getBlob(R->D, columnIndex, size); if (! b) *size = 0; return b; } const void *ResultSet_getBlobByName(T R, const char *columnName, int *size) { assert(R); return ResultSet_getBlob(R, _getIndex(R, columnName), size); } /* --------------------------------------------------------- Date and Time */ time_t ResultSet_getTimestamp(T R, int columnIndex) { assert(R); time_t t = 0; if (R->op->getTimestamp) { t = R->op->getTimestamp(R->D, columnIndex); } else { const char *s = ResultSet_getString(R, columnIndex); if (STR_DEF(s)) t = Time_toTimestamp(s); } return t; } time_t ResultSet_getTimestampByName(T R, const char *columnName) { assert(R); return ResultSet_getTimestamp(R, _getIndex(R, columnName)); } struct tm ResultSet_getDateTime(T R, int columnIndex) { assert(R); struct tm t = {.tm_year = 0}; if (R->op->getDateTime) { R->op->getDateTime(R->D, columnIndex, &t); } else { const char *s = ResultSet_getString(R, columnIndex); if (STR_DEF(s)) Time_toDateTime(s, &t); } return t; } struct tm ResultSet_getDateTimeByName(T R, const char *columnName) { assert(R); return ResultSet_getDateTime(R, _getIndex(R, columnName)); } libzdb-3.4.0/src/db/ConnectionPool.c000644 000765 000024 00000032705 14647322705 017351 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include "URL.h" #include "Thread.h" #include "system/Time.h" #include "Vector.h" #include "ResultSet.h" #include "PreparedStatement.h" #include "Connection.h" #include "ConnectionPool.h" /** * Implementation of the ConnectionPool interface * * This implementation provides a thread-safe, self-managing connection pool. * - Dynamic pool size management between initial and max connections * - Periodic connection reaping to remove idle and non-responsive connections * - Efficient "rolling window" approach: removing old connections from the start * of the pool vector, adding new ones to the end * - Double-check connection validity: both in reaping and before serving to clients * * @file */ /* ----------------------------------------------------------- Definitions */ #define T ConnectionPool_T struct ConnectionPool_S { URL_T url; bool filled; bool doSweep; char *error; Sem_T alarm; Mutex_T mutex; Vector_T pool; Thread_T reaper; int sweepInterval; int maxConnections; volatile bool stopped; int connectionTimeout; int initialConnections; }; int ZBDEBUG = false; #ifdef PACKAGE_PROTECTED #pragma GCC visibility push(hidden) #endif void(*AbortHandler)(const char *error) = NULL; #ifdef PACKAGE_PROTECTED #pragma GCC visibility pop #endif /* ------------------------------------------------------- Private methods */ static void _drainPool(T P) { while (! Vector_isEmpty(P->pool)) { Connection_T con = Vector_pop(P->pool); Connection_free(&con); } } static bool _fillPool(T P) { for (int i = 0; i < P->initialConnections; i++) { Connection_T con = Connection_new(P, &P->error); if (! con) { if (i > 0) { DEBUG("Failed to fill the pool with initial connections -- %s\n", P->error); FREE(P->error); return true; } return false; } Vector_push(P->pool, con); } return true; } static void _mapActive(const void *con, void *ap) { int *active = ap; if (!Connection_isAvailable((Connection_T)con)) *active += 1; } static int _active(T P) { int active = 0; Vector_map(P->pool, _mapActive, &active); return active; } static inline Connection_T _getAvailableConnection(T P) { Connection_T con = NULL; int size = Vector_size(P->pool); for (int i = 0; i < size; i++) { con = Vector_get(P->pool, i); if (Connection_isAvailable(con)) { Connection_setAvailable(con, false); return con; } } return NULL; } static inline Connection_T _createConnection(T P, char error[static STRLEN]) { Connection_T con = Connection_new(P, &P->error); if (con) { LOCK(P->mutex) { Connection_setAvailable(con, false); Vector_push(P->pool, con); } END_LOCK; } else { snprintf(error, STRLEN, "Failed to create a connection -- %s", STR_DEF(P->error) ? P->error : "unknown error"); FREE(P->error); } return con; } static Connection_T _getConnection(T P, char error[static STRLEN]) { Connection_T con = NULL; int size = 0; int activeConnections = 0; int availableConnections = 0; *error = 0; LOCK(P->mutex) { size = Vector_size(P->pool); activeConnections = _active(P); availableConnections = size - activeConnections; } END_LOCK; while (availableConnections > 0) { LOCK(P->mutex) { con = _getAvailableConnection(P); } END_LOCK; if (!con) { // No more available connections, break to try creation break; } if (Connection_ping(con)) { return con; } else { // Connection failed ping test, remove it and continue LOCK(P->mutex) { Vector_remove(P->pool, Vector_indexOf(P->pool, con)); size = Vector_size(P->pool); availableConnections--; } END_LOCK; Connection_free(&con); } } // If we're here, either all available connections failed or there were none // Try to create a new connection if the pool isn't full // Note: 'size' might not reflect the current pool size due to concurrent modifications. // We risk potential temporary over-allocation to prioritize getting a creation error // if the database is down. if (size < P->maxConnections) { con = _createConnection(P, error); if (con) return con; } else { snprintf(error, STRLEN, "Failed to get a connection -- pool is full (max connections reached)"); } DEBUG("%s\n", error); return NULL; } static int _reapConnections(T P) { int n = 0; int x = Vector_size(P->pool) - _active(P) - P->initialConnections; time_t timedout = Time_now() - P->connectionTimeout; // We don't always examine all idle connections in a single run, // but over multiple runs this should cycles through all connections for (int i = 0; ((n < x) && (i < Vector_size(P->pool))); i++) { Connection_T con = Vector_get(P->pool, i); if (Connection_isAvailable(con)) { if ((Connection_getLastAccessedTime(con) < timedout) || (! Connection_ping(con))) { Vector_remove(P->pool, i); Connection_free(&con); n++; i--; } } } return n; } static void *_doSweep(void *args) { T P = args; struct timespec wait = {}; Mutex_lock(P->mutex); while (! P->stopped) { wait.tv_sec = Time_now() + P->sweepInterval; Sem_timeWait(P->alarm, P->mutex, wait); if (P->stopped) break; _reapConnections(P); } Mutex_unlock(P->mutex); DEBUG("Reaper thread stopped\n"); return NULL; } /* ---------------------------------------------------------------- Public */ T ConnectionPool_new(URL_T url) { T P; assert(url); System_init(); NEW(P); P->url = url; Sem_init(P->alarm); Mutex_init(P->mutex); P->doSweep = true; P->sweepInterval = SQL_DEFAULT_SWEEP_INTERVAL; P->maxConnections = SQL_DEFAULT_MAX_CONNECTIONS; P->pool = Vector_new(SQL_DEFAULT_MAX_CONNECTIONS); P->initialConnections = SQL_DEFAULT_INIT_CONNECTIONS; P->connectionTimeout = SQL_DEFAULT_CONNECTION_TIMEOUT; return P; } void ConnectionPool_free(T *P) { Vector_T pool; assert(P && *P); pool = (*P)->pool; if (! (*P)->stopped) ConnectionPool_stop((*P)); Vector_free(&pool); Mutex_destroy((*P)->mutex); Sem_destroy((*P)->alarm); FREE((*P)->error); FREE(*P); } /* ------------------------------------------------------------ Properties */ URL_T ConnectionPool_getURL(T P) { assert(P); return P->url; } void ConnectionPool_setInitialConnections(T P, int initialConnections) { assert(P); assert(initialConnections >= 0); LOCK(P->mutex) { P->initialConnections = initialConnections; } END_LOCK; } int ConnectionPool_getInitialConnections(T P) { assert(P); return P->initialConnections; } void ConnectionPool_setMaxConnections(T P, int maxConnections) { assert(P); assert(P->initialConnections <= maxConnections); LOCK(P->mutex) { P->maxConnections = maxConnections; } END_LOCK; } int ConnectionPool_getMaxConnections(T P) { assert(P); return P->maxConnections; } void ConnectionPool_setConnectionTimeout(T P, int connectionTimeout) { assert(P); assert(connectionTimeout > 0); P->connectionTimeout = connectionTimeout; } int ConnectionPool_getConnectionTimeout(T P) { assert(P); return P->connectionTimeout; } void ConnectionPool_setAbortHandler(T P, void(*abortHandler)(const char *error)) { assert(P); AbortHandler = abortHandler; } void ConnectionPool_setReaper(T P, int sweepInterval) { assert(P); LOCK(P->mutex) { if (sweepInterval > 0) { P->doSweep = true; P->sweepInterval = sweepInterval; } else { P->doSweep = false; } } END_LOCK; } /* -------------------------------------------------------- Public methods */ void ConnectionPool_start(T P) { assert(P); LOCK(P->mutex) { P->stopped = false; if (! P->filled) { P->filled = _fillPool(P); if (P->filled) { if (P->doSweep) { DEBUG("Starting Database reaper thread\n"); Thread_create(P->reaper, _doSweep, P); } } } } END_LOCK; if (! P->filled) THROW(SQLException, "Failed to start connection pool -- %s", P->error); } void ConnectionPool_stop(T P) { bool stopSweep = false; assert(P); LOCK(P->mutex) { P->stopped = true; if (P->filled) { _drainPool(P); P->filled = false; stopSweep = (P->doSweep && P->reaper); } } END_LOCK; if (stopSweep) { DEBUG("Stopping Database reaper thread...\n"); Sem_signal(P->alarm); Thread_join(P->reaper); } } Connection_T ConnectionPool_getConnection(T P) { assert(P); return _getConnection(P, (char[STRLEN]){}); } Connection_T ConnectionPool_getConnectionOrException(T P) { assert(P); char error[STRLEN] = {}; Connection_T con = _getConnection(P, error); if (!con) { THROW(SQLException, "%s", error); } return con; } void ConnectionPool_returnConnection(T P, Connection_T connection) { assert(P); assert(connection); if (Connection_inTransaction(connection)) { TRY Connection_rollback(connection); ELSE DEBUG("Failed to rollback transaction -- %s\n", Exception_frame.message); END_TRY; } Connection_clear(connection); LOCK(P->mutex) { Connection_setAvailable(connection, true); } END_LOCK; } int ConnectionPool_reapConnections(T P) { int n = 0; assert(P); LOCK(P->mutex) { n = _reapConnections(P); } END_LOCK; return n; } int ConnectionPool_size(T P) { assert(P); return Vector_size(P->pool); } int ConnectionPool_active(T P) { assert(P); int n = 0; LOCK(P->mutex) { Vector_map(P->pool, _mapActive, &n); } END_LOCK; return n; } bool ConnectionPool_isFull(T P) { assert(P); bool full = false; LOCK(P->mutex) { full = (_active(P) >= P->maxConnections); } END_LOCK; return full; } /* --------------------------------------------------------- Class methods */ const char *ConnectionPool_version(void) { return ABOUT; } libzdb-3.4.0/src/db/PreparedStatement.c000644 000765 000024 00000007776 14652242026 020052 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include "ResultSet.h" #include "PreparedStatement.h" /** * Implementation of the PreparedStatement interface * * @file */ /* ----------------------------------------------------------- Definitions */ #define T PreparedStatement_T struct PreparedStatement_S { Pop_T op; ResultSet_T resultSet; PreparedStatementDelegate_T D; }; /* ------------------------------------------------------- Private methods */ static void _clearResultSet(T P) { if (P->resultSet) ResultSet_free(&P->resultSet); } /* ----------------------------------------------------- Protected methods */ T PreparedStatement_new(PreparedStatementDelegate_T D, Pop_T op) { T P; assert(D); assert(op); NEW(P); P->D = D; P->op = op; return P; } void PreparedStatement_free(T *P) { assert(P && *P); _clearResultSet((*P)); (*P)->op->free(&((*P)->D)); FREE(*P); } /* ------------------------------------------------------------ Parameters */ void PreparedStatement_setString(T P, int parameterIndex, const char *x) { int size = (x) ? (int)strlen(x) : 0; PreparedStatement_setSString(P, parameterIndex, x, size); } void PreparedStatement_setSString(T P, int parameterIndex, const char *x, int size) { assert(P); if (size < 0) size = 0; P->op->setString(P->D, parameterIndex, x, size); } void PreparedStatement_setInt(T P, int parameterIndex, int x) { assert(P); P->op->setInt(P->D, parameterIndex, x); } void PreparedStatement_setLLong(T P, int parameterIndex, long long x) { assert(P); P->op->setLLong(P->D, parameterIndex, x); } void PreparedStatement_setDouble(T P, int parameterIndex, double x) { assert(P); P->op->setDouble(P->D, parameterIndex, x); } void PreparedStatement_setBlob(T P, int parameterIndex, const void *x, int size) { assert(P); if (size < 0) size = 0; P->op->setBlob(P->D, parameterIndex, x, size); } void PreparedStatement_setTimestamp(T P, int parameterIndex, time_t x) { assert(P); P->op->setTimestamp(P->D, parameterIndex, x); } void PreparedStatement_setNull(T P, int parameterIndex) { assert(P); P->op->setString(P->D, parameterIndex, NULL, 0); } /* -------------------------------------------------------- Public methods */ void PreparedStatement_execute(T P) { assert(P); _clearResultSet(P); P->op->execute(P->D); } ResultSet_T PreparedStatement_executeQuery(T P) { assert(P); _clearResultSet(P); P->resultSet = P->op->executeQuery(P->D); if (! P->resultSet) THROW(SQLException, "PreparedStatement_executeQuery"); return P->resultSet; } long long PreparedStatement_rowsChanged(T P) { assert(P); return P->op->rowsChanged(P->D); } /* ------------------------------------------------------------ Properties */ int PreparedStatement_getParameterCount(T P) { assert(P); return P->op->parameterCount(P->D); } libzdb-3.4.0/src/db/mysql/MysqlConnection.c000644 000765 000024 00000025456 14651554426 020721 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include #include #include "MysqlAdapter.h" #include "StringBuffer.h" #include "ConnectionDelegate.h" /** * Implementation of the Connection/Delegate interface for mysql. * * @file */ /* ------------------------------------------------------------- Definitions */ #define T ConnectionDelegate_T struct T { MYSQL *db; int lastError; StringBuffer_T sb; Connection_T delegator; }; #define MYSQL_OK 0 extern const struct Rop_T mysqlrops; extern const struct Pop_T mysqlpops; /* --------------------------------------------------------- Private methods */ static MYSQL *_doConnect(Connection_T delegator, char **error) { #define ERROR(e) do {*error = Str_dup(e); goto error;} while (0) URL_T url = Connection_getURL(delegator); bool yes = 1; int connectTimeout = SQL_DEFAULT_TIMEOUT / MSEC_PER_SEC; unsigned long clientFlags = CLIENT_MULTI_STATEMENTS; MYSQL *db = mysql_init(NULL); if (! db) { *error = Str_dup("unable to allocate mysql handler"); return NULL; } const char *user = URL_getUser(url); if (! user) if (! (user = URL_getParameter(url, "user"))) ERROR("no username specified in URL"); const char *password = URL_getPassword(url); if (! password) if (! (password = URL_getParameter(url, "password"))) ERROR("no password specified in URL"); const char *host = URL_getHost(url); const char *unix_socket = URL_getParameter(url, "unix-socket"); if (unix_socket) { host = "localhost"; // Make sure host is localhost if unix socket is to be used } else if (! host) ERROR("no host specified in URL"); int port = URL_getPort(url); if (port <= 0) ERROR("no port specified in URL"); const char *database = URL_getPath(url); if (! database) ERROR("no database specified in URL"); else database++; // Options if (IS(URL_getParameter(url, "compress"), "true")) clientFlags |= CLIENT_COMPRESS; if (IS(URL_getParameter(url, "use-ssl"), "true")) { #ifndef LIBMARIADB enum mysql_ssl_mode ssl_mode = SSL_MODE_REQUIRED; mysql_options(db, MYSQL_OPT_SSL_MODE, &ssl_mode); #else // MariaDB hasn't got the memo that mysql_ssl_set is deprecated mysql_ssl_set(db, 0,0,0,0,0); #endif } #if MYSQL_VERSION_ID < 80000 if (IS(URL_getParameter(url, "secure-auth"), "true")) mysql_options(db, MYSQL_SECURE_AUTH, (const char*)&yes); else { bool no = 0; mysql_options(db, MYSQL_SECURE_AUTH, (const char*)&no); } #else if (URL_getParameter(url, "auth-plugin")) { mysql_options(db, MYSQL_DEFAULT_AUTH, URL_getParameter(url, "auth-plugin")); } #endif const char *timeout = URL_getParameter(url, "connect-timeout"); if (timeout) connectTimeout = Str_parseInt(timeout); mysql_options(db, MYSQL_OPT_CONNECT_TIMEOUT, (const char*)&connectTimeout); const char *charset = URL_getParameter(url, "charset"); if (charset) mysql_options(db, MYSQL_SET_CHARSET_NAME, charset); #if MYSQL_VERSION_ID >= 50013 mysql_options(db, MYSQL_OPT_RECONNECT, &yes); #endif // Set Connection ResultSet fetch size if found in URL const char *fetchSize = URL_getParameter(url, "fetch-size"); if (fetchSize) { int rows = Str_parseInt(fetchSize); if (rows < 1) ERROR("invalid fetch-size"); Connection_setFetchSize(delegator, rows); } // Connect if (mysql_real_connect(db, host, user, password, database, port, unix_socket, clientFlags)) return db; *error = Str_dup(mysql_error(db)); error: mysql_close(db); return NULL; } static bool _prepare(T C, const char *sql, int len, MYSQL_STMT **stmt) { if (! (*stmt = mysql_stmt_init(C->db))) { DEBUG("mysql_stmt_init -- Out of memory\n"); C->lastError = CR_OUT_OF_MEMORY; return false; } if ((C->lastError = mysql_stmt_prepare(*stmt, sql, len))) { StringBuffer_set(C->sb, "%s", mysql_stmt_error(*stmt)); mysql_stmt_close(*stmt); *stmt = NULL; return false; } return true; } /* -------------------------------------------------------- Delegate Methods */ static T _new(Connection_T delegator, char **error) { T C; assert(delegator); assert(error); MYSQL *db; if (! (db = _doConnect(delegator, error))) return NULL; NEW(C); C->db = db; C->delegator = delegator; C->sb = StringBuffer_create(STRLEN); return C; } static void _free(T *C) { assert(C && *C); mysql_close((*C)->db); StringBuffer_free(&((*C)->sb)); FREE(*C); } static bool _ping(T C) { assert(C); return (mysql_ping(C->db) == 0); } static void _setQueryTimeout(T C, int ms) { assert(C); #if MYSQL_VERSION_ID >= 50704 StringBuffer_set(C->sb, "SET SESSION MAX_EXECUTION_TIME=%d;", ms); C->lastError = mysql_query(C->db, StringBuffer_toString(C->sb)); #endif } static bool _beginTransactionType(T C, TRANSACTION_TYPE type) { assert(C); const char *sql; switch (type) { case TRANSACTION_READ_UNCOMMITTED: sql = "SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; START TRANSACTION;"; break; case TRANSACTION_READ_COMMITTED: sql = "SET TRANSACTION ISOLATION LEVEL READ COMMITTED; START TRANSACTION;"; break; case TRANSACTION_REPEATABLE_READ: sql = "SET TRANSACTION ISOLATION LEVEL REPEATABLE READ; START TRANSACTION;"; break; case TRANSACTION_SERIALIZABLE: sql = "SET TRANSACTION ISOLATION LEVEL SERIALIZABLE; START TRANSACTION;"; break; default: sql = "START TRANSACTION;"; } C->lastError = mysql_query(C->db, sql); return (C->lastError == MYSQL_OK); } static bool _beginTransaction(T C) { return _beginTransactionType(C, TRANSACTION_DEFAULT); } static bool _commit(T C) { assert(C); C->lastError = mysql_query(C->db, "COMMIT;"); return (C->lastError == MYSQL_OK); } static bool _rollback(T C) { assert(C); C->lastError = mysql_query(C->db, "ROLLBACK;"); return (C->lastError == MYSQL_OK); } static long long _lastRowId(T C) { assert(C); return (long long)mysql_insert_id(C->db); } static long long _rowsChanged(T C) { assert(C); return (long long)mysql_affected_rows(C->db); } static bool _execute(T C, const char *sql, va_list ap) { assert(C); va_list ap_copy; va_copy(ap_copy, ap); StringBuffer_vset(C->sb, sql, ap_copy); va_end(ap_copy); C->lastError = mysql_real_query(C->db, StringBuffer_toString(C->sb), StringBuffer_length(C->sb)); return (C->lastError == MYSQL_OK); } static ResultSet_T _executeQuery(T C, const char *sql, va_list ap) { assert(C); va_list ap_copy; va_copy(ap_copy, ap); StringBuffer_vset(C->sb, sql, ap_copy); va_end(ap_copy); MYSQL_STMT *stmt = NULL; if (_prepare(C, StringBuffer_toString(C->sb), StringBuffer_length(C->sb), &stmt)) { #if MYSQL_VERSION_ID >= 50002 unsigned long cursor = CURSOR_TYPE_READ_ONLY; mysql_stmt_attr_set(stmt, STMT_ATTR_CURSOR_TYPE, &cursor); #endif if ((C->lastError = mysql_stmt_execute(stmt))) { StringBuffer_set(C->sb, "%s", mysql_stmt_error(stmt)); mysql_stmt_close(stmt); } else return ResultSet_new(MysqlResultSet_new(C->delegator, stmt, false), (Rop_T)&mysqlrops); } return NULL; } static PreparedStatement_T _prepareStatement(T C, const char *sql, va_list ap) { assert(C); va_list ap_copy; va_copy(ap_copy, ap); StringBuffer_vset(C->sb, sql, ap_copy); va_end(ap_copy); MYSQL_STMT *stmt = NULL; if (_prepare(C, StringBuffer_toString(C->sb), StringBuffer_length(C->sb), &stmt)) { return PreparedStatement_new(MysqlPreparedStatement_new(C->delegator, stmt), (Pop_T)&mysqlpops); } return NULL; } static const char *_getLastError(T C) { assert(C); if (mysql_errno(C->db)) return mysql_error(C->db); return StringBuffer_toString(C->sb); // Either the statement itself or a statement error } /* ------------------------------------------------------------------------- */ const struct Cop_T mysqlcops = { .name = "mysql", .new = _new, .free = _free, .ping = _ping, .setQueryTimeout = _setQueryTimeout, .beginTransaction = _beginTransaction, .beginTransactionType = _beginTransactionType, .commit = _commit, .rollback = _rollback, .lastRowId = _lastRowId, .rowsChanged = _rowsChanged, .execute = _execute, .executeQuery = _executeQuery, .prepareStatement = _prepareStatement, .getLastError = _getLastError }; libzdb-3.4.0/src/db/mysql/MysqlResultSet.c000644 000765 000024 00000020050 14642617376 020541 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include #include "MysqlAdapter.h" /** * Implementation of the ResultSet/Delegate interface for mysql. * Accessing columns with index outside range throws SQLException * * @file */ /* ------------------------------------------------------------- Definitions */ #define MYSQL_OK 0 typedef struct column_t { char *buffer; #if MYSQL_VERSION_ID < 80000 || MARIADB_VERSION_ID my_bool is_null; #else bool is_null; #endif MYSQL_FIELD *field; unsigned long real_length; } *column_t; #define T ResultSetDelegate_T struct T { int stop; int keep; int maxRows; int fetchSize; int lastError; int needRebind; int currentRow; int columnCount; MYSQL_RES *meta; MYSQL_BIND *bind; MYSQL_STMT *stmt; column_t columns; Connection_T delegator; }; /* --------------------------------------------------------- Private methods */ static inline void _ensureCapacity(T R, int i) { if ((R->columns[i].real_length > R->bind[i].buffer_length)) { /* Column was truncated, resize and fetch column directly. */ RESIZE(R->columns[i].buffer, R->columns[i].real_length + 1); R->bind[i].buffer = R->columns[i].buffer; R->bind[i].buffer_length = R->columns[i].real_length; if ((R->lastError = mysql_stmt_fetch_column(R->stmt, &R->bind[i], i, 0))) THROW(SQLException, "mysql_stmt_fetch_column -- %s", mysql_stmt_error(R->stmt)); R->needRebind = true; } } static void _setFetchSize(T R, int rows); /* ------------------------------------------------------------- Constructor */ T MysqlResultSet_new(Connection_T delegator, MYSQL_STMT *stmt, int keep) { T R; assert(stmt); NEW(R); R->stmt = stmt; R->keep = keep; R->delegator = delegator; R->maxRows = Connection_getMaxRows(R->delegator); R->columnCount = mysql_stmt_field_count(R->stmt); if ((R->columnCount <= 0) || ! (R->meta = mysql_stmt_result_metadata(R->stmt))) { DEBUG("Warning: column error - %s\n", mysql_stmt_error(stmt)); R->stop = true; } else { R->bind = CALLOC(R->columnCount, sizeof (MYSQL_BIND)); R->columns = CALLOC(R->columnCount, sizeof (struct column_t)); for (int i = 0; i < R->columnCount; i++) { R->columns[i].buffer = ALLOC(STRLEN + 1); R->bind[i].buffer_type = MYSQL_TYPE_STRING; R->bind[i].buffer = R->columns[i].buffer; R->bind[i].buffer_length = STRLEN; R->bind[i].is_null = &R->columns[i].is_null; R->bind[i].length = &R->columns[i].real_length; R->columns[i].field = mysql_fetch_field_direct(R->meta, i); } if ((R->lastError = mysql_stmt_bind_result(R->stmt, R->bind))) { DEBUG("Error: bind - %s\n", mysql_stmt_error(stmt)); R->stop = true; } } if (!R->stop) { _setFetchSize(R, Connection_getFetchSize(R->delegator)); } return R; } /* -------------------------------------------------------- Delegate Methods */ static void _free(T *R) { assert(R && *R); for (int i = 0; i < (*R)->columnCount; i++) FREE((*R)->columns[i].buffer); mysql_stmt_free_result((*R)->stmt); if ((*R)->keep == false) mysql_stmt_close((*R)->stmt); if ((*R)->meta) mysql_free_result((*R)->meta); FREE((*R)->columns); FREE((*R)->bind); FREE(*R); } static int _getColumnCount(T R) { assert(R); return R->columnCount; } static const char *_getColumnName(T R, int columnIndex) { assert(R); columnIndex--; if (R->columnCount <= 0 || columnIndex < 0 || columnIndex > R->columnCount) return NULL; return R->columns[columnIndex].field->name; } static long _getColumnSize(T R, int columnIndex) { int i = checkAndSetColumnIndex(columnIndex, R->columnCount); if (R->columns[i].is_null) return 0; return R->columns[i].real_length; } static void _setFetchSize(T R, int rows) { assert(R); assert(rows > 0); if ((R->lastError = mysql_stmt_attr_set(R->stmt, STMT_ATTR_PREFETCH_ROWS, &rows))) DEBUG("mysql_stmt_attr_set -- %s", mysql_stmt_error(R->stmt)); R->fetchSize = rows; } static int _getFetchSize(T R) { assert(R); return R->fetchSize; } static bool _next(T R) { assert(R); if (R->stop) return false; if ((R->maxRows > 0) && (R->currentRow >= R->maxRows)) { R->stop = true; #if MYSQL_VERSION_ID >= 50002 /* Seems to need a cursor to work */ mysql_stmt_reset(R->stmt); #else while (mysql_stmt_fetch(R->stmt) == 0); #endif return false; } if (R->needRebind) { if ((R->lastError = mysql_stmt_bind_result(R->stmt, R->bind))) THROW(SQLException, "mysql_stmt_bind_result -- %s", mysql_stmt_error(R->stmt)); R->needRebind = false; } R->lastError = mysql_stmt_fetch(R->stmt); if (R->lastError == 1) THROW(SQLException, "mysql_stmt_fetch -- %s", mysql_stmt_error(R->stmt)); R->currentRow++; return ((R->lastError == MYSQL_OK) || (R->lastError == MYSQL_DATA_TRUNCATED)); } static bool _isnull(T R, int columnIndex) { assert(R); int i = checkAndSetColumnIndex(columnIndex, R->columnCount); return R->columns[i].is_null; } static const char *_getString(T R, int columnIndex) { assert(R); int i = checkAndSetColumnIndex(columnIndex, R->columnCount); if (R->columns[i].is_null) return NULL; _ensureCapacity(R, i); R->columns[i].buffer[R->columns[i].real_length] = 0; return R->columns[i].buffer; } static const void *_getBlob(T R, int columnIndex, int *size) { assert(R); int i = checkAndSetColumnIndex(columnIndex, R->columnCount); if (R->columns[i].is_null) return NULL; _ensureCapacity(R, i); *size = (int)R->columns[i].real_length; return R->columns[i].buffer; } /* ------------------------------------------------------------------------- */ const struct Rop_T mysqlrops = { .name = "mysql", .free = _free, .getColumnCount = _getColumnCount, .getColumnName = _getColumnName, .getColumnSize = _getColumnSize, .setFetchSize = _setFetchSize, .getFetchSize = _getFetchSize, .next = _next, .isnull = _isnull, .getString = _getString, .getBlob = _getBlob // getTimestamp and getDateTime is handled in ResultSet }; libzdb-3.4.0/src/db/mysql/MysqlPreparedStatement.c000644 000765 000024 00000017673 14652235541 022246 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include "MysqlAdapter.h" /** * Implementation of the PreparedStatement/Delegate interface for mysql. * * @file */ /* ------------------------------------------------------------- Definitions */ #define MYSQL_OK 0 typedef struct param_t { union { double real; int integer; long long llong; MYSQL_TIME timestamp; } type; unsigned long length; } *param_t; #define T PreparedStatementDelegate_T struct T { int lastError; param_t params; MYSQL_STMT *stmt; MYSQL_BIND *bind; int parameterCount; Connection_T delegator; }; #if MYSQL_VERSION_ID < 80000 || MARIADB_VERSION_ID static my_bool yes = true; #else static bool yes = true; #endif extern const struct Rop_T mysqlrops; /* ------------------------------------------------------------- Constructor */ T MysqlPreparedStatement_new(Connection_T delegator, MYSQL_STMT *stmt) { T P; assert(delegator); assert(stmt); NEW(P); P->delegator = delegator; P->stmt = stmt; P->parameterCount = (int)mysql_stmt_param_count(stmt); if (P->parameterCount > 0) { P->params = CALLOC(P->parameterCount, sizeof(struct param_t)); P->bind = CALLOC(P->parameterCount, sizeof(MYSQL_BIND)); } P->lastError = MYSQL_OK; return P; } /* -------------------------------------------------------- Delegate Methods */ static void _free(T *P) { assert(P && *P); FREE((*P)->bind); mysql_stmt_free_result((*P)->stmt); #if MYSQL_VERSION_ID >= 50503 /* In case the statement returns multiple result sets or in a stored procedure case, think it does, we need to run them down. mysql_stmt_reset does not seem to work here. */ while (mysql_stmt_next_result((*P)->stmt) == 0); #endif mysql_stmt_close((*P)->stmt); FREE((*P)->params); FREE(*P); } static void _setString(T P, int parameterIndex, const char *x, int size) { assert(P); int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); P->bind[i].buffer_type = MYSQL_TYPE_STRING; P->bind[i].buffer = (char*)x; if (size > 0) { P->params[i].length = size; P->bind[i].is_null = 0; } else { P->params[i].length = 0; P->bind[i].is_null = &yes; } P->bind[i].length = &P->params[i].length; } static void _setInt(T P, int parameterIndex, int x) { assert(P); int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); P->params[i].type.integer = x; P->bind[i].buffer_type = MYSQL_TYPE_LONG; P->bind[i].buffer = &P->params[i].type.integer; P->bind[i].is_null = 0; } static void _setLLong(T P, int parameterIndex, long long x) { assert(P); int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); P->params[i].type.llong = x; P->bind[i].buffer_type = MYSQL_TYPE_LONGLONG; P->bind[i].buffer = &P->params[i].type.llong; P->bind[i].is_null = 0; } static void _setDouble(T P, int parameterIndex, double x) { assert(P); int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); P->params[i].type.real = x; P->bind[i].buffer_type = MYSQL_TYPE_DOUBLE; P->bind[i].buffer = &P->params[i].type.real; P->bind[i].is_null = 0; } static void _setTimestamp(T P, int parameterIndex, time_t x) { assert(P); int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); struct tm ts = {.tm_isdst = -1}; gmtime_r(&x, &ts); P->params[i].type.timestamp.year = ts.tm_year + 1900; P->params[i].type.timestamp.month = ts.tm_mon + 1; P->params[i].type.timestamp.day = ts.tm_mday; P->params[i].type.timestamp.hour = ts.tm_hour; P->params[i].type.timestamp.minute = ts.tm_min; P->params[i].type.timestamp.second = ts.tm_sec; P->bind[i].buffer_type = MYSQL_TYPE_TIMESTAMP; P->bind[i].buffer = &P->params[i].type.timestamp; P->bind[i].is_null = 0; } static void _setBlob(T P, int parameterIndex, const void *x, int size) { assert(P); int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); P->bind[i].buffer_type = MYSQL_TYPE_BLOB; P->bind[i].buffer = (void*)x; if (size > 0) { P->params[i].length = size; P->bind[i].is_null = 0; } else { P->params[i].length = 0; P->bind[i].is_null = &yes; } P->bind[i].length = &P->params[i].length; } static void _execute(T P) { assert(P); if (P->parameterCount > 0) { if ((P->lastError = mysql_stmt_bind_param(P->stmt, P->bind))) THROW(SQLException, "%s", mysql_stmt_error(P->stmt)); } #if MYSQL_VERSION_ID >= 50002 unsigned long cursor = CURSOR_TYPE_NO_CURSOR; mysql_stmt_attr_set(P->stmt, STMT_ATTR_CURSOR_TYPE, &cursor); #endif if ((P->lastError = mysql_stmt_execute(P->stmt))) THROW(SQLException, "%s", mysql_stmt_error(P->stmt)); if (P->lastError == MYSQL_OK) { /* Discard prepared param data in client/server */ P->lastError = mysql_stmt_reset(P->stmt); } } static ResultSet_T _executeQuery(T P) { assert(P); if (P->parameterCount > 0) { if ((P->lastError = mysql_stmt_bind_param(P->stmt, P->bind))) THROW(SQLException, "%s", mysql_stmt_error(P->stmt)); } #if MYSQL_VERSION_ID >= 50002 unsigned long cursor = CURSOR_TYPE_READ_ONLY; mysql_stmt_attr_set(P->stmt, STMT_ATTR_CURSOR_TYPE, &cursor); #endif if ((P->lastError = mysql_stmt_execute(P->stmt))) THROW(SQLException, "%s", mysql_stmt_error(P->stmt)); if (P->lastError == MYSQL_OK) return ResultSet_new(MysqlResultSet_new(P->delegator, P->stmt, true), (Rop_T)&mysqlrops); THROW(SQLException, "%s", mysql_stmt_error(P->stmt)); return NULL; } static long long _rowsChanged(T P) { assert(P); return (long long)mysql_stmt_affected_rows(P->stmt); } static int _parameterCount(T P) { assert(P); return P->parameterCount; } /* ------------------------------------------------------------------------- */ const struct Pop_T mysqlpops = { .name = "mysql", .free = _free, .setString = _setString, .setInt = _setInt, .setLLong = _setLLong, .setDouble = _setDouble, .setTimestamp = _setTimestamp, .setBlob = _setBlob, .execute = _execute, .executeQuery = _executeQuery, .rowsChanged = _rowsChanged, .parameterCount = _parameterCount }; libzdb-3.4.0/src/db/mysql/MysqlAdapter.h000644 000765 000024 00000002563 14642617376 020205 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef MYSQLADAPTER_INCLUDED #define MYSQLADAPTER_INCLUDED #include #include #include "zdb.h" ResultSetDelegate_T MysqlResultSet_new(Connection_T delegator, MYSQL_STMT *stmt, int keep) __attribute__ ((visibility("hidden"))); PreparedStatementDelegate_T MysqlPreparedStatement_new(Connection_T delegator, MYSQL_STMT *stmt) __attribute__ ((visibility("hidden"))); #endif libzdb-3.4.0/src/db/sqlite/SQLitePreparedStatement.c000644 000765 000024 00000013227 14652212560 022421 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include #include "SQLiteAdapter.h" /** * Implementation of the PreparedStatement/Delegate interface for SQLite. * NOTE: SQLite starts parameter index at 1, so checkAndSetParameterIndex is not * needed * * @file */ /* ------------------------------------------------------------- Definitions */ #define T PreparedStatementDelegate_T struct T { sqlite3 *db; int lastError; sqlite3_stmt *stmt; Connection_T delegator; }; extern const struct Rop_T sqlite3rops; /* ------------------------------------------------------------- Constructor */ T SQLitePreparedStatement_new(Connection_T delegator, sqlite3_stmt *stmt) { T P; assert(stmt); NEW(P); P->delegator = delegator; P->stmt = stmt; P->db = sqlite3_db_handle(stmt); P->lastError = SQLITE_OK; return P; } /* -------------------------------------------------------- Delegate Methods */ static void _free(T *P) { assert(P && *P); sqlite3_finalize((*P)->stmt); FREE(*P); } static void _setString(T P, int parameterIndex, const char *x, int size) { assert(P); sqlite3_reset(P->stmt); P->lastError = sqlite3_bind_text(P->stmt, parameterIndex, x, size, SQLITE_STATIC); if (P->lastError == SQLITE_RANGE) THROW(SQLException, "Parameter index is out of range"); } static void _setInt(T P, int parameterIndex, int x) { assert(P); sqlite3_reset(P->stmt); P->lastError = sqlite3_bind_int(P->stmt, parameterIndex, x); if (P->lastError == SQLITE_RANGE) THROW(SQLException, "Parameter index is out of range"); } static void _setLLong(T P, int parameterIndex, long long x) { assert(P); sqlite3_reset(P->stmt); P->lastError = sqlite3_bind_int64(P->stmt, parameterIndex, x); if (P->lastError == SQLITE_RANGE) THROW(SQLException, "Parameter index is out of range"); } static void _setDouble(T P, int parameterIndex, double x) { assert(P); sqlite3_reset(P->stmt); P->lastError = sqlite3_bind_double(P->stmt, parameterIndex, x); if (P->lastError == SQLITE_RANGE) THROW(SQLException, "Parameter index is out of range"); } static void _setTimestamp(T P, int parameterIndex, time_t x) { assert(P); sqlite3_reset(P->stmt); P->lastError = sqlite3_bind_int64(P->stmt, parameterIndex, x); if (P->lastError == SQLITE_RANGE) THROW(SQLException, "Parameter index is out of range"); } static void _setBlob(T P, int parameterIndex, const void *x, int size) { assert(P); sqlite3_reset(P->stmt); P->lastError = sqlite3_bind_blob(P->stmt, parameterIndex, x, size, SQLITE_STATIC); if (P->lastError == SQLITE_RANGE) THROW(SQLException, "Parameter index is out of range"); } static void _execute(T P) { assert(P); P->lastError = zdb_sqlite3_step(P->stmt); switch (P->lastError) { case SQLITE_DONE: P->lastError = sqlite3_reset(P->stmt); break; case SQLITE_ROW: P->lastError = sqlite3_reset(P->stmt); THROW(SQLException, "Select statement not allowed in PreparedStatement_execute()"); break; default: P->lastError = sqlite3_reset(P->stmt); THROW(SQLException, "%s", sqlite3_errmsg(P->db)); break; } } static ResultSet_T _executeQuery(T P) { assert(P); if (P->lastError == SQLITE_OK) return ResultSet_new(SQLiteResultSet_new(P->delegator, P->stmt, true), (Rop_T)&sqlite3rops); THROW(SQLException, "%s", sqlite3_errmsg(P->db)); return NULL; } static long long _rowsChanged(T P) { assert(P); return (long long)sqlite3_changes(P->db); } static int _parameterCount(T P) { assert(P); return sqlite3_bind_parameter_count(P->stmt); } /* ------------------------------------------------------------------------- */ const struct Pop_T sqlite3pops = { .name = "sqlite", .free = _free, .setString = _setString, .setInt = _setInt, .setLLong = _setLLong, .setDouble = _setDouble, .setTimestamp = _setTimestamp, .setBlob = _setBlob, .execute = _execute, .executeQuery = _executeQuery, .rowsChanged = _rowsChanged, .parameterCount = _parameterCount }; libzdb-3.4.0/src/db/sqlite/SQLiteAdapter.h000644 000765 000024 00000003247 13741676571 020376 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef SQLITEDEFS_INCLUDED #define SQLITEDEFS_INCLUDED #include #include "zdb.h" int zdb_sqlite3_step(sqlite3_stmt *pStmt) __attribute__ ((visibility("hidden"))); int zdb_sqlite3_prepare_v2(sqlite3 *db, const char *zSql, int nSql, sqlite3_stmt **ppStmt, const char **pz) __attribute__ ((visibility("hidden"))); int zdb_sqlite3_exec(sqlite3 *db, const char *sql) __attribute__ ((visibility("hidden"))); ResultSetDelegate_T SQLiteResultSet_new(Connection_T delegator, sqlite3_stmt *stmt, int keep) __attribute__ ((visibility("hidden"))); PreparedStatementDelegate_T SQLitePreparedStatement_new(Connection_T delegator, sqlite3_stmt *stmt) __attribute__ ((visibility("hidden"))); #endif libzdb-3.4.0/src/db/sqlite/SQLiteAdapter.c000644 000765 000024 00000012042 14652150075 020346 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include "Thread.h" #include "system/Time.h" #include "SQLiteAdapter.h" #if defined SQLITEUNLOCK && SQLITE_VERSION_NUMBER >= 3006012 /* * SQLite unlock notify API * @see https://www.sqlite.org/unlock_notify.html */ typedef struct UnlockNotification { int fired; Sem_T cond; Mutex_T mutex; } UnlockNotification_T; static inline void unlock_notify_cb(void **apArg, int nArg) { for (int i = 0; i < nArg; i++) { UnlockNotification_T *p = (UnlockNotification_T *)apArg[i]; Mutex_lock(p->mutex); p->fired = 1; Sem_signal(p->cond); Mutex_unlock(p->mutex); } } static inline int wait_for_unlock_notify(sqlite3 *db){ UnlockNotification_T un; un.fired = 0; Mutex_init(un.mutex); Sem_init(un.cond); int rc = sqlite3_unlock_notify(db, unlock_notify_cb, (void *)&un); assert(rc == SQLITE_LOCKED || rc == SQLITE_OK); if (rc == SQLITE_OK) { Mutex_lock(un.mutex); if (! un.fired) Sem_wait(un.cond, un.mutex); Mutex_unlock(un.mutex); } Sem_destroy(un.cond); Mutex_destroy(un.mutex); return rc; } static inline int sqlite3_blocking_exec(sqlite3 *db, const char *zSql, int (*callback)(void *, int, char **, char **), void *arg, char **errmsg) { int rc; while (SQLITE_LOCKED == (rc = sqlite3_exec(db, zSql, callback, arg, errmsg))) { rc = wait_for_unlock_notify(db); if (rc != SQLITE_OK) break; } return rc; } // MARK: - Blocking API int zdb_sqlite3_step(sqlite3_stmt *pStmt) { int rc; while (SQLITE_LOCKED == (rc = sqlite3_step(pStmt))) { rc = wait_for_unlock_notify(sqlite3_db_handle(pStmt)); if (rc != SQLITE_OK) break; #if SQLITE_VERSION_NUMBER < 3070000 || defined SQLITE_OMIT_AUTORESET sqlite3_reset(pStmt); #endif } return rc; } int zdb_sqlite3_prepare_v2(sqlite3 *db, const char *zSql, int nSql, sqlite3_stmt **ppStmt, const char **pz) { int rc; while (SQLITE_LOCKED == (rc = sqlite3_prepare_v2(db, zSql, nSql, ppStmt, pz))) { rc = wait_for_unlock_notify(db); if (rc != SQLITE_OK) break; } return rc; } int zdb_sqlite3_exec(sqlite3 *db, const char *sql) { return sqlite3_blocking_exec(db, sql, NULL, NULL, NULL); } #else // NOT SQLITEUNLOCK // Exponential backoff https://en.wikipedia.org/wiki/Exponential_backoff // Expected mean backoff time: (2^10 - 1)/2 × slot = 2.6 seconds static inline void _backoff(int step) { static int slot = 51 * 100; // µs switch (step) { case 0: Time_usleep(slot * (random() % 2)); break; case 1: Time_usleep(slot * (random() % 4)); break; default: // slot µs * R[0...2^step - 1] Time_usleep(slot * (random() % (1 << step))); break; } } // MARK: - Backoff API // Backoff statement expression #define _exec_or_backoff(S) \ ({ \ int __status; \ for (int __i = 0, __steps = 10; __i < __steps; __i++) { \ __status = (S); \ if ((__status != SQLITE_BUSY) && (__status != SQLITE_LOCKED)) \ break; \ _backoff(__i); \ } \ __status; \ }) int zdb_sqlite3_step(sqlite3_stmt *pStmt) { return _exec_or_backoff(sqlite3_step(pStmt)); } int zdb_sqlite3_prepare_v2(sqlite3 *db, const char *zSql, int nSql, sqlite3_stmt **ppStmt, const char **pz) { return _exec_or_backoff(sqlite3_prepare_v2(db, zSql, nSql, ppStmt, pz)); } int zdb_sqlite3_exec(sqlite3 *db, const char *sql) { return _exec_or_backoff(sqlite3_exec(db, sql, NULL, NULL, NULL)); } #endif libzdb-3.4.0/src/db/sqlite/SQLiteResultSet.c000644 000765 000024 00000013042 14443366726 020733 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include "system/Time.h" #include "SQLiteAdapter.h" /** * Implementation of the ResultSet/Delegate interface for SQLite. * Accessing columns with index outside range throws SQLException * * @file */ /* ------------------------------------------------------------- Definitions */ #define T ResultSetDelegate_T struct T { sqlite3 *db; int keep; int maxRows; int lastError; int currentRow; int columnCount; sqlite3_stmt *stmt; Connection_T delegator; }; /* ------------------------------------------------------------- Constructor */ T SQLiteResultSet_new(Connection_T delegator, sqlite3_stmt *stmt, int keep) { T R; assert(stmt); NEW(R); R->delegator = delegator; R->stmt = stmt; R->db = sqlite3_db_handle(stmt); R->keep = keep; R->maxRows = Connection_getMaxRows(delegator); R->columnCount = sqlite3_column_count(R->stmt); return R; } /* -------------------------------------------------------- Delegate Methods */ static void _free(T *R) { assert(R && *R); if ((*R)->keep) sqlite3_reset((*R)->stmt); else sqlite3_finalize((*R)->stmt); FREE(*R); } static int _getColumnCount(T R) { assert(R); return R->columnCount; } static const char *_getColumnName(T R, int columnIndex) { assert(R); columnIndex--; if (R->columnCount <= 0 || columnIndex < 0 || columnIndex > R->columnCount) return NULL; return sqlite3_column_name(R->stmt, columnIndex); } static long _getColumnSize(T R, int columnIndex) { int i = checkAndSetColumnIndex(columnIndex, R->columnCount); return sqlite3_column_bytes(R->stmt, i); } static bool _next(T R) { assert(R); if (R->maxRows && (R->currentRow++ >= R->maxRows)) return false; R->lastError = zdb_sqlite3_step(R->stmt); if (R->lastError != SQLITE_ROW && R->lastError != SQLITE_DONE) { #ifdef HAVE_SQLITE3_ERRSTR THROW(SQLException, "sqlite3_step -- %s", sqlite3_errstr(R->lastError)); #else THROW(SQLException, "sqlite3_step -- error code: %d", R->lastError); #endif } return (R->lastError == SQLITE_ROW); } static bool _isnull(T R, int columnIndex) { assert(R); int i = checkAndSetColumnIndex(columnIndex, R->columnCount); return (sqlite3_column_type(R->stmt, i) == SQLITE_NULL); } static const char *_getString(T R, int columnIndex) { assert(R); int i = checkAndSetColumnIndex(columnIndex, R->columnCount); return (const char*)sqlite3_column_text(R->stmt, i); } static const void *_getBlob(T R, int columnIndex, int *size) { assert(R); int i = checkAndSetColumnIndex(columnIndex, R->columnCount); const void *blob = sqlite3_column_blob(R->stmt, i); *size = sqlite3_column_bytes(R->stmt, i); return blob; } static time_t _getTimestamp(T R, int columnIndex) { assert(R); int i = checkAndSetColumnIndex(columnIndex, R->columnCount); if (sqlite3_column_type(R->stmt, i) == SQLITE_INTEGER) return (time_t)sqlite3_column_int64(R->stmt, i); // Not an integer storage class, try parse as time string return Time_toTimestamp(sqlite3_column_text(R->stmt, i)); } static struct tm *_getDateTime(T R, int columnIndex, struct tm *tm) { assert(R); int i = checkAndSetColumnIndex(columnIndex, R->columnCount); if (sqlite3_column_type(R->stmt, i) == SQLITE_INTEGER) { time_t utc = (time_t)sqlite3_column_int64(R->stmt, i); if (gmtime_r(&utc, tm)) tm->tm_year += 1900; // Use year literal } else { // Not an integer storage class, try parse as time string Time_toDateTime(sqlite3_column_text(R->stmt, i), tm); } return tm; } /* ------------------------------------------------------------------------- */ const struct Rop_T sqlite3rops = { .name = "sqlite", .free = _free, .getColumnCount = _getColumnCount, .getColumnName = _getColumnName, .getColumnSize = _getColumnSize, .next = _next, .isnull = _isnull, .getString = _getString, .getBlob = _getBlob, .getTimestamp = _getTimestamp, .getDateTime = _getDateTime // get/setFetchSize is not applicable for SQLite }; libzdb-3.4.0/src/db/sqlite/SQLiteConnection.c000644 000765 000024 00000022326 14651554426 021102 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include "StringBuffer.h" #include "SQLiteAdapter.h" #include "ConnectionDelegate.h" /** * Implementation of the Connection/Delegate interface for SQLite * * @file */ /* ------------------------------------------------------------- Definitions */ #define T ConnectionDelegate_T struct T { sqlite3 *db; int maxRows; int lastError; StringBuffer_T sb; Connection_T delegator; }; static int kQueryTimeoutDelta = 5; extern const struct Rop_T sqlite3rops; extern const struct Pop_T sqlite3pops; /* --------------------------------------------------------- Private methods */ // Return options for the database connection static int _options(URL_T url) { int options = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE; // Specify the connection's threading mode. Multi-thread // is the default, setting URL parameter 'serialized=true' // enable the "serialized" threading mode instead // @see https://www.sqlite.org/threadsafe.html if (Str_parseBool(URL_getParameter(url, "serialized"))) { options |= SQLITE_OPEN_FULLMUTEX; } else { options |= SQLITE_OPEN_NOMUTEX; } return options; } static sqlite3 *_doConnect(Connection_T delegator, char **error) { int status; sqlite3 *db; URL_T url = Connection_getURL(delegator); const char *path = URL_getPath(url); if (! path) { *error = Str_dup("no database specified in URL"); return NULL; } #if SQLITE_VERSION_NUMBER >= 3005000 status = sqlite3_open_v2(path, &db, _options(url) , NULL); #else status = sqlite3_open(path, &db); #endif if (SQLITE_OK != status) { *error = Str_cat("cannot open database '%s' -- %s", path, sqlite3_errmsg(db)); sqlite3_close(db); return NULL; } return db; } static bool _setProperties(T C, char **error) { URL_T url = Connection_getURL(C->delegator); const char **properties = URL_getParameterNames(url); if (properties) { StringBuffer_clear(C->sb); for (int i = 0; properties[i]; i++) { if (IS(properties[i], "heap_limit")) { // There is no PRAGMA for heap limit as of sqlite-3.7.0, so we make it a configurable property using "heap_limit" [kB] #if defined(HAVE_SQLITE3_SOFT_HEAP_LIMIT64) sqlite3_soft_heap_limit64(Str_parseInt(URL_getParameter(url, properties[i])) * 1024); #elif defined(HAVE_SQLITE3_SOFT_HEAP_LIMIT) sqlite3_soft_heap_limit(Str_parseInt(URL_getParameter(url, properties[i])) * 1024); #else DEBUG("heap_limit not supported by your sqlite3 version, please consider upgrading sqlite3\n"); #endif } else if (IS(properties[i], "serialized")) { continue; // Handled in _doConnect, ignore } else { StringBuffer_append(C->sb, "PRAGMA %s = %s; ", properties[i], URL_getParameter(url, properties[i])); } } C->lastError = zdb_sqlite3_exec(C->db, StringBuffer_toString(C->sb)); if (C->lastError != SQLITE_OK) { *error = Str_cat("unable to set database pragmas -- %s", sqlite3_errmsg(C->db)); return false; } } return true; } /* -------------------------------------------------------- Delegate Methods */ static void _free(T *C) { assert(C && *C); while (sqlite3_close((*C)->db) == SQLITE_BUSY) Time_usleep(10); StringBuffer_free(&((*C)->sb)); FREE(*C); } static T _new(Connection_T delegator, char **error) { T C; assert(delegator); assert(error); sqlite3 *db; if (! (db = _doConnect(delegator, error))) return NULL; NEW(C); C->db = db; C->delegator = delegator; // Set a minimal timeout to install a busy_timeout handler. Actual concurrency timeout is handled by // SQLiteAdapter.h methods using either unlock notify or a backoff retry strategy sqlite3_busy_timeout(C->db, kQueryTimeoutDelta); C->sb = StringBuffer_create(STRLEN); if (! _setProperties(C, error)) _free(&C); return C; } static bool _ping(T C) { assert(C); C->lastError = zdb_sqlite3_exec(C->db, "select 1;"); return (C->lastError == SQLITE_OK); } static void _setQueryTimeout(T C, int ms) { assert(C); if (ms <= 0) ms = kQueryTimeoutDelta; // Ensure a minimal timeout to install a busy_timeout handler sqlite3_busy_timeout(C->db, ms); } static bool _beginTransactionType(T C, TRANSACTION_TYPE type) { assert(C); const char *sql; switch (type) { case TRANSACTION_IMMEDIATE: sql = "BEGIN IMMEDIATE TRANSACTION;"; break; case TRANSACTION_EXCLUSIVE: sql = "BEGIN EXCLUSIVE TRANSACTION;"; break; default: sql = "BEGIN TRANSACTION;"; } C->lastError = zdb_sqlite3_exec(C->db, sql); return (C->lastError == SQLITE_OK); } static bool _beginTransaction(T C) { return _beginTransactionType(C, TRANSACTION_DEFAULT); } static bool _commit(T C) { assert(C); C->lastError = zdb_sqlite3_exec(C->db, "COMMIT TRANSACTION;"); return (C->lastError == SQLITE_OK); } static bool _rollback(T C) { assert(C); C->lastError = zdb_sqlite3_exec(C->db, "ROLLBACK TRANSACTION;"); return (C->lastError == SQLITE_OK); } static long long _lastRowId(T C) { assert(C); return sqlite3_last_insert_rowid(C->db); } static long long _rowsChanged(T C) { assert(C); return (long long)sqlite3_changes(C->db); } static bool _execute(T C, const char *sql, va_list ap) { assert(C); va_list ap_copy; va_copy(ap_copy, ap); StringBuffer_vset(C->sb, sql, ap_copy); va_end(ap_copy); C->lastError = zdb_sqlite3_exec(C->db, StringBuffer_toString(C->sb)); return (C->lastError == SQLITE_OK); } static ResultSet_T _executeQuery(T C, const char *sql, va_list ap) { va_list ap_copy; const char *tail; sqlite3_stmt *stmt; assert(C); va_copy(ap_copy, ap); StringBuffer_vset(C->sb, sql, ap_copy); va_end(ap_copy); C->lastError = zdb_sqlite3_prepare_v2(C->db, StringBuffer_toString(C->sb), StringBuffer_length(C->sb), &stmt, &tail); if (C->lastError == SQLITE_OK) return ResultSet_new(SQLiteResultSet_new(C->delegator, stmt, false), (Rop_T)&sqlite3rops); return NULL; } static PreparedStatement_T _prepareStatement(T C, const char *sql, va_list ap) { va_list ap_copy; const char *tail; sqlite3_stmt *stmt; assert(C); va_copy(ap_copy, ap); StringBuffer_vset(C->sb, sql, ap_copy); va_end(ap_copy); C->lastError = zdb_sqlite3_prepare_v2(C->db, StringBuffer_toString(C->sb), -1, &stmt, &tail); if (C->lastError == SQLITE_OK) { return PreparedStatement_new(SQLitePreparedStatement_new(C->delegator, stmt), (Pop_T)&sqlite3pops); } return NULL; } static const char *_getLastError(T C) { assert(C); return sqlite3_errmsg(C->db); } /* ------------------------------------------------------------------------- */ const struct Cop_T sqlite3cops = { .name = "sqlite", .new = _new, .free = _free, .ping = _ping, .setQueryTimeout = _setQueryTimeout, .beginTransaction = _beginTransaction, .beginTransactionType = _beginTransactionType, .commit = _commit, .rollback = _rollback, .lastRowId = _lastRowId, .rowsChanged = _rowsChanged, .execute = _execute, .executeQuery = _executeQuery, .prepareStatement = _prepareStatement, .getLastError = _getLastError }; libzdb-3.4.0/src/db/oracle/OracleResultSet.c000644 000765 000024 00000037511 14652450503 020737 0ustar00haukstaff000000 000000 /* * Copyright (C) 2010-2013 Volodymyr Tarasenko * 2010 Sergey Pavlov * 2010 PortaOne Inc. * Copyright (C) Tildeslash Ltd. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ #include "Config.h" #include #include #include #include "OracleAdapter.h" #include "StringBuffer.h" /** * Implementation of the ResulSet/Delegate interface for oracle. * * @file */ /* ----------------------------------------------------------- Definitions */ typedef struct column_t { OCIDefine *def; int isNull; char *buffer; char *name; unsigned long length; OCILobLocator *lob_loc; OCIDateTime *date; } *column_t; #define T ResultSetDelegate_T struct T { int columnCount; int currentRow; int fetchSize; ub4 maxRows; OCIStmt* stmt; OCIEnv* env; OCISession* usr; OCIError* err; OCISvcCtx* svc; column_t columns; sword lastError; int freeStatement; Connection_T delegator; }; #ifndef ORACLE_COLUMN_NAME_LOWERCASE #define ORACLE_COLUMN_NAME_LOWERCASE 2 #endif #define LOB_CHUNK_SIZE 2000 #define DATE_STR_BUF_SIZE 255 /* ------------------------------------------------------- Private methods */ static bool _initaleDefiningBuffers(T R) { ub2 dtype = 0; int deptlen; int sizelen = sizeof(deptlen); OCIParam* pard = NULL; __attribute__((unused)) sword status; for (int i = 1; i <= R->columnCount; i++) { deptlen = 0; /* The next two statements describe the select-list item, dname, and return its length */ R->lastError = OCIParamGet(R->stmt, OCI_HTYPE_STMT, R->err, (void **)&pard, i); if (R->lastError != OCI_SUCCESS) return false; R->lastError = OCIAttrGet(pard, OCI_DTYPE_PARAM, &deptlen, &sizelen, OCI_ATTR_DATA_SIZE, R->err); if (R->lastError != OCI_SUCCESS) { // cannot get column's size, cleaning and returning OCIDescriptorFree(pard, OCI_DTYPE_PARAM); return false; } OCIAttrGet(pard, OCI_DTYPE_PARAM, &dtype, 0, OCI_ATTR_DATA_TYPE, R->err); /* Use the retrieved length of dname to allocate an output buffer, and then define the output variable. */ deptlen +=1; R->columns[i-1].length = deptlen; R->columns[i-1].isNull = 0; switch(dtype) { case SQLT_BLOB: R->columns[i-1].buffer = NULL; status = OCIDescriptorAlloc((dvoid *)R->env, (dvoid **) &(R->columns[i-1].lob_loc), (ub4) OCI_DTYPE_LOB, (size_t) 0, (dvoid **) 0); R->lastError = OCIDefineByPos(R->stmt, &R->columns[i-1].def, R->err, i, &(R->columns[i-1].lob_loc), deptlen, SQLT_BLOB, &(R->columns[i-1].isNull), 0, 0, OCI_DEFAULT); break; case SQLT_CLOB: R->columns[i-1].buffer = NULL; status = OCIDescriptorAlloc((dvoid *)R->env, (dvoid **) &(R->columns[i-1].lob_loc), (ub4) OCI_DTYPE_LOB, (size_t) 0, (dvoid **) 0); R->lastError = OCIDefineByPos(R->stmt, &R->columns[i-1].def, R->err, i, &(R->columns[i-1].lob_loc), deptlen, SQLT_CLOB, &(R->columns[i-1].isNull), 0, 0, OCI_DEFAULT); break; case SQLT_DAT: case SQLT_DATE: case SQLT_TIMESTAMP: case SQLT_TIMESTAMP_TZ: case SQLT_TIMESTAMP_LTZ: R->columns[i-1].buffer = NULL; status = OCIDescriptorAlloc((dvoid *)R->env, (dvoid **) &(R->columns[i-1].date), (ub4) OCI_DTYPE_TIMESTAMP, (size_t) 0, (dvoid **) 0); R->lastError = OCIDefineByPos(R->stmt, &R->columns[i-1].def, R->err, i, &(R->columns[i-1].date), sizeof(R->columns[i-1].date), SQLT_TIMESTAMP, &(R->columns[i-1].isNull), 0, 0, OCI_DEFAULT); break; default: R->columns[i-1].lob_loc = NULL; R->columns[i-1].buffer = ALLOC(deptlen + 1); R->lastError = OCIDefineByPos(R->stmt, &R->columns[i-1].def, R->err, i, R->columns[i-1].buffer, deptlen, SQLT_STR, &(R->columns[i-1].isNull), 0, 0, OCI_DEFAULT); } { char *col_name; ub4 col_name_len; char* tmp_buffer; R->lastError = OCIAttrGet(pard, OCI_DTYPE_PARAM, &col_name, &col_name_len, OCI_ATTR_NAME, R->err); if (R->lastError != OCI_SUCCESS) continue; // column name could be non NULL terminated // it is not allowed to do: col_name[col_name_len] = 0; // so, copy the string tmp_buffer = Str_ndup(col_name, col_name_len); #if defined(ORACLE_COLUMN_NAME_LOWERCASE) && ORACLE_COLUMN_NAME_LOWERCASE > 1 R->columns[i-1].name = CALLOC(1, col_name_len+1); OCIMultiByteStrCaseConversion(R->env, R->columns[i-1].name, tmp_buffer, OCI_NLS_LOWERCASE); FREE(tmp_buffer); #else R->columns[i-1].name = tmp_buffer; #endif /*COLLUMN_NAME_LOWERCASE*/ } OCIDescriptorFree(pard, OCI_DTYPE_PARAM); if (R->lastError != OCI_SUCCESS) { return false; } } return true; } static bool _toString(T R, int i) { const char fmt[] = "IYYY-MM-DD HH24.MI.SS"; // "YYYY-MM-DD HH24:MI:SS TZR TZD" R->columns[i].length = DATE_STR_BUF_SIZE; if (R->columns[i].buffer) FREE(R->columns[i].buffer); R->columns[i].buffer = ALLOC(R->columns[i].length + 1); R->lastError = OCIDateTimeToText(R->usr, R->err, R->columns[i].date, fmt, strlen(fmt), 0, NULL, 0, (ub4*)&(R->columns[i].length), (OraText *)R->columns[i].buffer); return ((R->lastError == OCI_SUCCESS) || (R->lastError == OCI_SUCCESS_WITH_INFO));; } static void _setFetchSize(T R, int rows); /* ------------------------------------------------------------- Constructor */ T OracleResultSet_new(Connection_T delegator, OCIStmt *stmt, OCIEnv *env, OCISession* usr, OCIError *err, OCISvcCtx *svc, int need_free) { T R; assert(stmt); assert(env); assert(err); assert(svc); NEW(R); R->delegator = delegator; R->stmt = stmt; R->env = env; R->err = err; R->svc = svc; R->usr = usr; R->maxRows = Connection_getMaxRows(R->delegator); R->freeStatement = need_free; /* Get the number of columns in the select list */ R->lastError = OCIAttrGet (R->stmt, OCI_HTYPE_STMT, &R->columnCount, NULL, OCI_ATTR_PARAM_COUNT, R->err); if (R->lastError != OCI_SUCCESS && R->lastError != OCI_SUCCESS_WITH_INFO) DEBUG("_new: Error %d, '%s'\n", R->lastError, OraclePreparedStatement_getLastError(R->lastError,R->err)); R->columns = CALLOC(R->columnCount, sizeof (struct column_t)); if (!_initaleDefiningBuffers(R)) { DEBUG("_new: Error %d, '%s'\n", R->lastError, OraclePreparedStatement_getLastError(R->lastError,R->err)); R->currentRow = -1; } if (R->currentRow != -1) { _setFetchSize(R, Connection_getFetchSize(R->delegator)); } return R; } /* -------------------------------------------------------- Delegate Methods */ static void _free(T *R) { assert(R && *R); if ((*R)->freeStatement) OCIHandleFree((*R)->stmt, OCI_HTYPE_STMT); for (int i = 0; i < (*R)->columnCount; i++) { if ((*R)->columns[i].lob_loc) OCIDescriptorFree((*R)->columns[i].lob_loc, OCI_DTYPE_LOB); if ((*R)->columns[i].date) OCIDescriptorFree((dvoid*)(*R)->columns[i].date, OCI_DTYPE_TIMESTAMP); FREE((*R)->columns[i].buffer); FREE((*R)->columns[i].name); } FREE((*R)->columns); FREE(*R); } static int _getColumnCount(T R) { assert(R); return R->columnCount; } static const char *_getColumnName(T R, int column) { assert(R); if (R->columnCount < column) return NULL; return R->columns[column-1].name; } static long _getColumnSize(T R, int columnIndex) { OCIParam* pard = NULL; ub4 char_semantics = 0; sb4 status; ub2 col_width = 0; assert(R); status = OCIParamGet(R->stmt, OCI_HTYPE_STMT, R->err, (void **)&pard, columnIndex); if (status != OCI_SUCCESS) return -1; status = OCIAttrGet(pard, OCI_DTYPE_PARAM, &char_semantics, NULL, OCI_ATTR_CHAR_USED, R->err); if (status != OCI_SUCCESS) { OCIDescriptorFree(pard, OCI_DTYPE_PARAM); return -1; } status = (char_semantics) ? /* Retrieve the column width in characters */ OCIAttrGet(pard, OCI_DTYPE_PARAM, &col_width, NULL, OCI_ATTR_CHAR_SIZE, R->err) : /* Retrieve the column width in bytes */ OCIAttrGet(pard, OCI_DTYPE_PARAM, &col_width, NULL, OCI_ATTR_DATA_SIZE, R->err); return (status != OCI_SUCCESS) ? -1 : col_width; } static void _setFetchSize(T R, int rows) { assert(R); assert(rows > 0); R->lastError = OCIAttrSet(R->stmt, OCI_HTYPE_STMT, (void*)&rows, (ub4)sizeof(ub4), OCI_ATTR_PREFETCH_ROWS, R->err); if (R->lastError != OCI_SUCCESS) DEBUG("OCIAttrSet -- %s\n", OraclePreparedStatement_getLastError(R->lastError, R->err)); R->fetchSize = rows; } static int _getFetchSize(T R) { assert(R); return R->fetchSize; } static bool _next(T R) { assert(R); if ((R->currentRow < 0) || ((R->maxRows > 0) && (R->currentRow >= R->maxRows))) return false; R->lastError = OCIStmtFetch2(R->stmt, R->err, 1, OCI_FETCH_NEXT, 0, OCI_DEFAULT); if (R->lastError == OCI_NO_DATA) return false; if (R->lastError != OCI_SUCCESS && R->lastError != OCI_SUCCESS_WITH_INFO) THROW(SQLException, "%s", OraclePreparedStatement_getLastError(R->lastError, R->err)); if (R->lastError == OCI_SUCCESS_WITH_INFO) DEBUG("_next Error %d, '%s'\n", R->lastError, OraclePreparedStatement_getLastError(R->lastError, R->err)); R->currentRow++; return ((R->lastError == OCI_SUCCESS) || (R->lastError == OCI_SUCCESS_WITH_INFO)); } static bool _isnull(T R, int columnIndex) { assert(R); int i = checkAndSetColumnIndex(columnIndex, R->columnCount); return R->columns[i].isNull != 0; } static const char *_getString(T R, int columnIndex) { assert(R); int i = checkAndSetColumnIndex(columnIndex, R->columnCount); if (R->columns[i].isNull) return NULL; if (R->columns[i].date) { if (!_toString(R, i)) { THROW(SQLException, "%s", OraclePreparedStatement_getLastError(R->lastError, R->err)); } } if (R->columns[i].buffer) R->columns[i].buffer[R->columns[i].length] = 0; return R->columns[i].buffer; } static const void *_getBlob(T R, int columnIndex, int *size) { assert(R); int i = checkAndSetColumnIndex(columnIndex, R->columnCount); if (R->columns[i].isNull) return NULL; if (R->columns[i].buffer) FREE(R->columns[i].buffer); oraub8 read_chars = 0; oraub8 read_bytes = 0; oraub8 total_bytes = 0; R->columns[i].buffer = ALLOC(LOB_CHUNK_SIZE); *size = 0; ub1 piece = OCI_FIRST_PIECE; do { read_bytes = 0; read_chars = 0; R->lastError = OCILobRead2(R->svc, R->err, R->columns[i].lob_loc, &read_bytes, &read_chars, 1, R->columns[i].buffer + total_bytes, LOB_CHUNK_SIZE, piece, NULL, NULL, 0, SQLCS_IMPLICIT); if (read_bytes) { total_bytes += read_bytes; piece = OCI_NEXT_PIECE; R->columns[i].buffer = RESIZE(R->columns[i].buffer, (long)(total_bytes + LOB_CHUNK_SIZE)); } } while (R->lastError == OCI_NEED_DATA); if (R->lastError != OCI_SUCCESS && R->lastError != OCI_SUCCESS_WITH_INFO) { FREE(R->columns[i].buffer); R->columns[i].buffer = NULL; THROW(SQLException, "%s", OraclePreparedStatement_getLastError(R->lastError, R->err)); } *size = R->columns[i].length = (int)total_bytes; return (const void *)R->columns[i].buffer; } /* ------------------------------------------------------------------------- */ const struct Rop_T oraclerops = { .name = "oracle", .free = _free, .getColumnCount = _getColumnCount, .getColumnName = _getColumnName, .getColumnSize = _getColumnSize, .setFetchSize = _setFetchSize, .getFetchSize = _getFetchSize, .next = _next, .isnull = _isnull, .getString = _getString, .getBlob = _getBlob // getTimestamp and getDateTime is handled in ResultSet }; libzdb-3.4.0/src/db/oracle/OracleAdapter.h000644 000765 000024 00000004376 13450477104 020376 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef ORACLEADAPTER_INCLUDED #define ORACLEADAPTER_INCLUDED #include #include "zdb.h" #include "system/Time.h" #define WATCHDOG(FUNCNAME, TYPENAME) \ static void *FUNCNAME(void *args) { \ TYPENAME S = args; \ while (S->svc) { \ if (S->running) { \ if (S->countdown <= 0) { \ OCIBreak(S->svc, S->err); \ S->running = false; \ } else { \ S->countdown -= 10; \ } \ } \ Time_usleep(10000); \ } \ return NULL; \ } const char *OraclePreparedStatement_getLastError(int err, OCIError *errhp) __attribute__ ((visibility("hidden"))); ResultSetDelegate_T OracleResultSet_new(Connection_T delegator, OCIStmt *stmt, OCIEnv *env, OCISession* usr, OCIError *err, OCISvcCtx *svc, int need_free) __attribute__ ((visibility("hidden"))); PreparedStatementDelegate_T OraclePreparedStatement_new(Connection_T delegator, OCIStmt *stmt, OCIEnv *env, OCISession* usr, OCIError *err, OCISvcCtx *svc) __attribute__ ((visibility("hidden"))); #endif libzdb-3.4.0/src/db/oracle/OraclePreparedStatement.c000644 000765 000024 00000027410 14652235422 022432 0ustar00haukstaff000000 000000 /* * Copyright (C) 2010-2013 Volodymyr Tarasenko * 2010 Sergey Pavlov * 2010 PortaOne Inc. * Copyright (C) Tildeslash Ltd. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ #include "Config.h" #include "Thread.h" #include #include #include #include #include #include "OracleAdapter.h" #include "StringBuffer.h" /** * Implementation of the PreparedStatement/Delegate interface for oracle. * * @file */ /* ----------------------------------------------------------- Definitions */ typedef struct param_t { union { double real; long integer; const void *blob; const char *string; OCINumber number; OCIDateTime* date; } type; OCIInd is_null; int length; OCIBind* bind; } *param_t; #define T PreparedStatementDelegate_T struct T { int timeout; int countdown; ub4 parameterCount; OCISession* usr; OCIStmt* stmt; OCIEnv* env; OCIError* err; OCISvcCtx* svc; param_t params; sword lastError; Thread_T watchdog; char running; ub4 rowsChanged; Connection_T delegator; }; extern const struct Rop_T oraclerops; /* --------------------------------------------------------- Private methods */ WATCHDOG(watchdog, T) /* ------------------------------------------------------------- Constructor */ T OraclePreparedStatement_new(Connection_T delegator, OCIStmt *stmt, OCIEnv *env, OCISession* usr, OCIError *err, OCISvcCtx *svc) { T P; assert(stmt); assert(env); assert(err); assert(svc); NEW(P); P->delegator = delegator; P->stmt = stmt; P->env = env; P->err = err; P->svc = svc; P->usr = usr; P->timeout = Connection_getQueryTimeout(P->delegator); P->lastError = OCI_SUCCESS; P->rowsChanged = 0; /* parameterCount */ P->lastError = OCIAttrGet(P->stmt, OCI_HTYPE_STMT, &P->parameterCount, NULL, OCI_ATTR_BIND_COUNT, P->err); if (P->lastError != OCI_SUCCESS && P->lastError != OCI_SUCCESS_WITH_INFO) P->parameterCount = 0; if (P->parameterCount) P->params = CALLOC(P->parameterCount, sizeof(struct param_t)); P->running = false; if (P->timeout > 0) { Thread_create(P->watchdog, watchdog, P); } return P; } /* -------------------------------------------------------- Delegate Methods */ static void _free(T *P) { assert(P && *P); OCIHandleFree((*P)->stmt, OCI_HTYPE_STMT); if ((*P)->params) { // (*P)->params[i].bind is freed implicitly when the statement handle is deallocated FREE((*P)->params); } (*P)->svc = NULL; if ((*P)->watchdog) Thread_join((*P)->watchdog); FREE(*P); } static void _setString(T P, int parameterIndex, const char *x, int size) { assert(P); int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); P->params[i].type.string = x; if (size > 0) { P->params[i].length = size; P->params[i].is_null = OCI_IND_NOTNULL; } else { P->params[i].length = 0; P->params[i].is_null = OCI_IND_NULL; } P->lastError = OCIBindByPos(P->stmt, &P->params[i].bind, P->err, parameterIndex, (char *)P->params[i].type.string, (int)P->params[i].length, SQLT_CHR, &P->params[i].is_null, 0, 0, 0, 0, OCI_DEFAULT); if (P->lastError != OCI_SUCCESS && P->lastError != OCI_SUCCESS_WITH_INFO) THROW(SQLException, "%s", OraclePreparedStatement_getLastError(P->lastError, P->err)); } static void _setTimestamp(T P, int parameterIndex, time_t time) { assert(P); struct tm ts = {.tm_isdst = -1}; ub4 valid; int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); P->lastError = OCIDescriptorAlloc((dvoid *)P->env, (dvoid **) &(P->params[i].type.date), (ub4) OCI_DTYPE_TIMESTAMP, (size_t) 0, (dvoid **) 0); if (P->lastError != OCI_SUCCESS && P->lastError != OCI_SUCCESS_WITH_INFO) THROW(SQLException, "%s", OraclePreparedStatement_getLastError(P->lastError, P->err)); gmtime_r(&time, &ts); OCIDateTimeConstruct(P->usr, P->err, P->params[i].type.date, //OCIDateTime *datetime, ts.tm_year+1900, ts.tm_mon+1, ts.tm_mday, ts.tm_hour, ts.tm_min, ts.tm_sec, 0/*fsec*/, (OraText*)0, 0); if (OCI_SUCCESS != OCIDateTimeCheck(P->usr, P->err, P->params[i].type.date, &valid) || valid != 0) { THROW(SQLException, "Invalid date/time value"); } P->params[i].length = sizeof(OCIDateTime *); P->lastError = OCIBindByPos(P->stmt, &P->params[i].bind, P->err, parameterIndex, &P->params[i].type.date, P->params[i].length, SQLT_TIMESTAMP, 0, 0, 0, 0, 0, OCI_DEFAULT); if (P->lastError != OCI_SUCCESS && P->lastError != OCI_SUCCESS_WITH_INFO) THROW(SQLException, "%s", OraclePreparedStatement_getLastError(P->lastError, P->err)); } static void _setInt(T P, int parameterIndex, int x) { assert(P); int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); P->params[i].type.integer = x; P->params[i].length = sizeof(x); P->lastError = OCIBindByPos(P->stmt, &P->params[i].bind, P->err, parameterIndex, &P->params[i].type.integer, (int)P->params[i].length, SQLT_INT, 0, 0, 0, 0, 0, OCI_DEFAULT); if (P->lastError != OCI_SUCCESS && P->lastError != OCI_SUCCESS_WITH_INFO) THROW(SQLException, "%s", OraclePreparedStatement_getLastError(P->lastError, P->err)); } static void _setLLong(T P, int parameterIndex, long long x) { assert(P); int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); P->params[i].length = sizeof(P->params[i].type.number); P->lastError = OCINumberFromInt(P->err, &x, sizeof(x), OCI_NUMBER_SIGNED, &P->params[i].type.number); if (P->lastError != OCI_SUCCESS) THROW(SQLException, "%s", OraclePreparedStatement_getLastError(P->lastError, P->err)); P->lastError = OCIBindByPos(P->stmt, &P->params[i].bind, P->err, parameterIndex, &P->params[i].type.number, (int)P->params[i].length, SQLT_VNU, 0, 0, 0, 0, 0, OCI_DEFAULT); if (P->lastError != OCI_SUCCESS && P->lastError != OCI_SUCCESS_WITH_INFO) THROW(SQLException, "%s", OraclePreparedStatement_getLastError(P->lastError, P->err)); } static void _setDouble(T P, int parameterIndex, double x) { assert(P); int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); P->params[i].type.real = x; P->params[i].length = sizeof(x); P->lastError = OCIBindByPos(P->stmt, &P->params[i].bind, P->err, parameterIndex, &P->params[i].type.real, (int)P->params[i].length, SQLT_FLT, 0, 0, 0, 0, 0, OCI_DEFAULT); if (P->lastError != OCI_SUCCESS && P->lastError != OCI_SUCCESS_WITH_INFO) THROW(SQLException, "%s", OraclePreparedStatement_getLastError(P->lastError, P->err)); } static void _setBlob(T P, int parameterIndex, const void *x, int size) { assert(P); int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); P->params[i].type.blob = x; if (size > 0) { P->params[i].length = size; P->params[i].is_null = OCI_IND_NOTNULL; } else { P->params[i].length = 0; P->params[i].is_null = OCI_IND_NULL; } P->lastError = OCIBindByPos2(P->stmt, &P->params[i].bind, P->err, parameterIndex, (void *)P->params[i].type.blob, (int)P->params[i].length, SQLT_LNG, &P->params[i].is_null, 0, 0, 0, 0, OCI_DEFAULT); if (P->lastError != OCI_SUCCESS && P->lastError != OCI_SUCCESS_WITH_INFO) THROW(SQLException, "%s", OraclePreparedStatement_getLastError(P->lastError, P->err)); } static void _execute(T P) { assert(P); P->rowsChanged = 0; if (P->timeout > 0) { P->countdown = P->timeout; P->running = true; } P->lastError = OCIStmtExecute(P->svc, P->stmt, P->err, 1, 0, NULL, NULL, OCI_DEFAULT); P->running = false; if (P->lastError != OCI_SUCCESS && P->lastError != OCI_SUCCESS_WITH_INFO) THROW(SQLException, "%s", OraclePreparedStatement_getLastError(P->lastError, P->err)); P->lastError = OCIAttrGet( P->stmt, OCI_HTYPE_STMT, &P->rowsChanged, 0, OCI_ATTR_ROW_COUNT, P->err); if (P->lastError != OCI_SUCCESS && P->lastError != OCI_SUCCESS_WITH_INFO) THROW(SQLException, "%s", OraclePreparedStatement_getLastError(P->lastError, P->err)); } static ResultSet_T _executeQuery(T P) { assert(P); P->rowsChanged = 0; if (P->timeout > 0) { P->countdown = P->timeout; P->running = true; } P->lastError = OCIStmtExecute(P->svc, P->stmt, P->err, 0, 0, NULL, NULL, OCI_DEFAULT); P->running = false; if (P->lastError == OCI_SUCCESS || P->lastError == OCI_SUCCESS_WITH_INFO) return ResultSet_new(OracleResultSet_new(P->delegator, P->stmt, P->env, P->usr, P->err, P->svc, false), (Rop_T)&oraclerops); THROW(SQLException, "%s", OraclePreparedStatement_getLastError(P->lastError, P->err)); return NULL; } static long long _rowsChanged(T P) { assert(P); return P->rowsChanged; } static int _parameterCount(T P) { assert(P); return P->parameterCount; } /* ------------------------------------------------------------------------- */ const struct Pop_T oraclepops = { .name = "oracle", .free = _free, .setString = _setString, .setInt = _setInt, .setLLong = _setLLong, .setDouble = _setDouble, .setTimestamp = _setTimestamp, .setBlob = _setBlob, .execute = _execute, .executeQuery = _executeQuery, .rowsChanged = _rowsChanged, .parameterCount = _parameterCount }; libzdb-3.4.0/src/db/oracle/OracleConnection.c000644 000765 000024 00000043726 14651554426 021121 0ustar00haukstaff000000 000000 /* * Copyright (C) 2010-2013 Volodymyr Tarasenko * 2010 Sergey Pavlov * 2010 PortaOne Inc. * Copyright (C) Tildeslash Ltd. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ #include "Config.h" #include "Thread.h" #include #include #include #include #include "OracleAdapter.h" #include "StringBuffer.h" #include "ConnectionDelegate.h" /** * Implementation of the Connection/Delegate interface for oracle. * * @file */ /* ----------------------------------------------------------- Definitions */ #define ERB_SIZE 152 #define ORACLE_TRANSACTION_PERIOD 10 // 10-second timeout (though not used with OCI_TRANS_NEW) #define T ConnectionDelegate_T struct T { Connection_T delegator; OCIEnv* env; OCIError* err; OCISvcCtx* svc; OCISession* usr; OCIServer* srv; OCITrans* txnhp; char erb[ERB_SIZE]; int maxRows; int timeout; int countdown; sword lastError; ub4 rowsChanged; StringBuffer_T sb; Thread_T watchdog; char running; }; extern const struct Rop_T oraclerops; extern const struct Pop_T oraclepops; /* ------------------------------------------------------- Private methods */ static const char *_getErrorDescription(T C) { sb4 errcode; switch (C->lastError) { case OCI_SUCCESS: return ""; case OCI_SUCCESS_WITH_INFO: return "Info - OCI_SUCCESS_WITH_INFO"; break; case OCI_NEED_DATA: return "Error - OCI_NEED_DATA"; break; case OCI_NO_DATA: return "Error - OCI_NODATA"; break; case OCI_ERROR: (void) OCIErrorGet(C->err, 1, NULL, &errcode, C->erb, (ub4)ERB_SIZE, OCI_HTYPE_ERROR); return C->erb; break; case OCI_INVALID_HANDLE: return "Error - OCI_INVALID_HANDLE"; break; case OCI_STILL_EXECUTING: return "Error - OCI_STILL_EXECUTE"; break; case OCI_CONTINUE: return "Error - OCI_CONTINUE"; break; default: break; } return C->erb; } static bool _doConnect(T C, char** error) { #define ERROR(e) do {*error = Str_dup(e); return false;} while (0) #define ORAERROR(e) do{ *error = Str_dup(_getErrorDescription(e)); return false;} while(0) URL_T url = Connection_getURL(C->delegator); const char *servicename, *username, *password; const char *host = URL_getHost(url); int port = URL_getPort(url); if (! (username = URL_getUser(url))) if (! (username = URL_getParameter(url, "user"))) ERROR("no username specified in URL"); if (! (password = URL_getPassword(url))) if (! (password = URL_getParameter(url, "password"))) ERROR("no password specified in URL"); if (! (servicename = URL_getPath(url))) ERROR("no Service Name specified in URL"); ++servicename; /* Create a thread-safe OCI environment with N' substitution turned on. */ if (OCIEnvCreate(&C->env, OCI_THREADED | OCI_OBJECT | OCI_NCHAR_LITERAL_REPLACE_ON, 0, 0, 0, 0, 0, 0)) ERROR("Create a OCI environment failed"); /* allocate an error handle */ if (OCI_SUCCESS != OCIHandleAlloc(C->env, (dvoid**)&C->err, OCI_HTYPE_ERROR, 0, 0)) ERROR("Allocating error handler failed"); /* server contexts */ if (OCI_SUCCESS != OCIHandleAlloc(C->env, (dvoid**)&C->srv, OCI_HTYPE_SERVER, 0, 0)) ERROR("Allocating server context failed"); /* allocate a service handle */ if (OCI_SUCCESS != OCIHandleAlloc(C->env, (dvoid**)&C->svc, OCI_HTYPE_SVCCTX, 0, 0)) ERROR("Allocating service handle failed"); StringBuffer_clear(C->sb); /* Oracle connect string is on the form: //host[:port]/service name */ if (host) { StringBuffer_append(C->sb, "//%s", host); if (port > 0) StringBuffer_append(C->sb, ":%d", port); StringBuffer_append(C->sb, "/%s", servicename); } else /* Or just service name */ StringBuffer_append(C->sb, "%s", servicename); // Set Connection ResultSet fetch size if found in URL const char *fetchSize = URL_getParameter(url, "fetch-size"); if (fetchSize) { int rows = Str_parseInt(fetchSize); if (rows < 1) ERROR("invalid fetch-size"); Connection_setFetchSize(C->delegator, rows); } /* Create a server context */ C->lastError = OCIServerAttach(C->srv, C->err, StringBuffer_toString(C->sb), StringBuffer_length(C->sb), OCI_DEFAULT); if (C->lastError != OCI_SUCCESS && C->lastError != OCI_SUCCESS_WITH_INFO) ORAERROR(C); /* Set attribute server context in the service context */ C->lastError = OCIAttrSet(C->svc, OCI_HTYPE_SVCCTX, C->srv, 0, OCI_ATTR_SERVER, C->err); if (C->lastError != OCI_SUCCESS && C->lastError != OCI_SUCCESS_WITH_INFO) ORAERROR(C); C->lastError = OCIHandleAlloc(C->env, (void**)&C->usr, OCI_HTYPE_SESSION, 0, NULL); if (C->lastError != OCI_SUCCESS && C->lastError != OCI_SUCCESS_WITH_INFO) ORAERROR(C); C->lastError = OCIAttrSet(C->usr, OCI_HTYPE_SESSION, (dvoid *)username, (int)strlen(username), OCI_ATTR_USERNAME, C->err); if (C->lastError != OCI_SUCCESS && C->lastError != OCI_SUCCESS_WITH_INFO) ORAERROR(C); C->lastError = OCIAttrSet(C->usr, OCI_HTYPE_SESSION, (dvoid *)password, (int)strlen(password), OCI_ATTR_PASSWORD, C->err); if (C->lastError != OCI_SUCCESS && C->lastError != OCI_SUCCESS_WITH_INFO) ORAERROR(C); ub4 sessionFlags = OCI_DEFAULT; if (IS(URL_getParameter(url, "sysdba"), "true")) { sessionFlags |= OCI_SYSDBA; } C->lastError = OCISessionBegin(C->svc, C->err, C->usr, OCI_CRED_RDBMS, sessionFlags); if (C->lastError != OCI_SUCCESS && C->lastError != OCI_SUCCESS_WITH_INFO) ORAERROR(C); OCIAttrSet(C->svc, OCI_HTYPE_SVCCTX, C->usr, 0, OCI_ATTR_SESSION, C->err); return true; } WATCHDOG(watchdog, T) /* -------------------------------------------------------- Delegate Methods */ static const char *_getLastError(T C) { return _getErrorDescription(C); } static void _free(T* C) { assert(C && *C); if ((*C)->svc) { OCISessionEnd((*C)->svc, (*C)->err, (*C)->usr, OCI_DEFAULT); (*C)->svc = NULL; } if ((*C)->srv) OCIServerDetach((*C)->srv, (*C)->err, OCI_DEFAULT); if ((*C)->env) OCIHandleFree((*C)->env, OCI_HTYPE_ENV); StringBuffer_free(&((*C)->sb)); if ((*C)->watchdog) Thread_join((*C)->watchdog); FREE(*C); } static T _new(Connection_T delegator, char **error) { T C; assert(delegator); assert(error); NEW(C); C->delegator = delegator; C->sb = StringBuffer_create(STRLEN); if (! _doConnect(C, error)) { _free(&C); return NULL; } C->txnhp = NULL; C->running = false; return C; } static bool _ping(T C) { assert(C); C->lastError = OCIPing(C->svc, C->err, OCI_DEFAULT); return (C->lastError == OCI_SUCCESS); } static void _setQueryTimeout(T C, int ms) { assert(C); assert(ms >= 0); C->timeout = ms; if (ms > 0) { if (!C->watchdog) { Thread_create(C->watchdog, watchdog, C); } } else { if (C->watchdog) { OCISvcCtx* t = C->svc; C->svc = NULL; Thread_join(C->watchdog); C->svc = t; C->watchdog = 0; } } } static bool _beginTransactionType(T C, TRANSACTION_TYPE type) { assert(C); // Allocate transaction handle if not already done if (C->txnhp == NULL) { C->lastError = OCIHandleAlloc(C->env, (void **)&C->txnhp, OCI_HTYPE_TRANS, 0, 0); if (C->lastError != OCI_SUCCESS) return false; OCIAttrSet(C->svc, OCI_HTYPE_SVCCTX, (void *)C->txnhp, 0, OCI_ATTR_TRANS, C->err); } // Set isolation level based on transaction type ub4 flags = OCI_TRANS_NEW; // Always start a new transaction switch (type) { case TRANSACTION_READ_COMMITTED: flags |= OCI_TRANS_READONLY; // This is actually READ COMMITTED in Oracle break; case TRANSACTION_SERIALIZABLE: flags |= OCI_TRANS_SERIALIZABLE; break; case TRANSACTION_READ_UNCOMMITTED: case TRANSACTION_REPEATABLE_READ: case TRANSACTION_IMMEDIATE: case TRANSACTION_EXCLUSIVE: case TRANSACTION_DEFAULT: default: flags |= OCI_TRANS_READONLY; // Default to READ COMMITTED } // Start the transaction C->lastError = OCITransStart(C->svc, C->err, ORACLE_TRANSACTION_PERIOD, flags); return (C->lastError == OCI_SUCCESS); } static bool _beginTransaction(T C) { return _beginTransactionType(C, TRANSACTION_DEFAULT); } static bool _commit(T C) { assert(C); C->lastError = OCITransCommit(C->svc, C->err, OCI_DEFAULT); return C->lastError == OCI_SUCCESS; } static bool _rollback(T C) { assert(C); C->lastError = OCITransRollback(C->svc, C->err, OCI_DEFAULT); return C->lastError == OCI_SUCCESS; } static long long _lastRowId(T C) { /*:FIXME:*/ /* Oracle's RowID can be mapped on string only so, currently I leave it unimplemented */ /* OCIRowid* rowid; */ /* OCIDescriptorAlloc((dvoid *)C->env, */ /* (dvoid **)&rowid, */ /* (ub4) OCI_DTYPE_ROWID, */ /* (size_t) 0, (dvoid **) 0); */ /* if (OCIAttrGet (select_p, */ /* OCI_HTYPE_STMT, */ /* &rowid, /\* get the current rowid *\/ */ /* 0, */ /* OCI_ATTR_ROWID, */ /* errhp)) */ /* { */ /* printf ("Getting the Rowid failed \n"); */ /* return (OCI_ERROR); */ /* } */ /* OCIDescriptorFree(rowid, OCI_DTYPE_ROWID); */ DEBUG("OracleConnection_lastRowId: Not implemented yet"); return -1; } static long long _rowsChanged(T C) { assert(C); return C->rowsChanged; } static bool _execute(T C, const char *sql, va_list ap) { OCIStmt* stmtp; va_list ap_copy; assert(C); C->rowsChanged = 0; va_copy(ap_copy, ap); StringBuffer_vset(C->sb, sql, ap_copy); va_end(ap_copy); StringBuffer_trim(C->sb); /* Build statement */ C->lastError = OCIHandleAlloc(C->env, (void **)&stmtp, OCI_HTYPE_STMT, 0, NULL); if (C->lastError != OCI_SUCCESS && C->lastError != OCI_SUCCESS_WITH_INFO) return false; C->lastError = OCIStmtPrepare(stmtp, C->err, StringBuffer_toString(C->sb), StringBuffer_length(C->sb), OCI_NTV_SYNTAX, OCI_DEFAULT); if (C->lastError != OCI_SUCCESS && C->lastError != OCI_SUCCESS_WITH_INFO) { OCIHandleFree(stmtp, OCI_HTYPE_STMT); return false; } /* Execute */ if (C->timeout > 0) { C->countdown = C->timeout; C->running = true; } C->lastError = OCIStmtExecute(C->svc, stmtp, C->err, 1, 0, NULL, NULL, OCI_DEFAULT); C->running = false; if (C->lastError != OCI_SUCCESS && C->lastError != OCI_SUCCESS_WITH_INFO) { ub4 parmcnt = 0; OCIAttrGet(stmtp, OCI_HTYPE_STMT, &parmcnt, NULL, OCI_ATTR_PARSE_ERROR_OFFSET, C->err); DEBUG("Error occured in StmtExecute %d (%s), offset is %d\n", C->lastError, _getLastError(C), parmcnt); OCIHandleFree(stmtp, OCI_HTYPE_STMT); return false; } C->lastError = OCIAttrGet(stmtp, OCI_HTYPE_STMT, &C->rowsChanged, 0, OCI_ATTR_ROW_COUNT, C->err); if (C->lastError != OCI_SUCCESS && C->lastError != OCI_SUCCESS_WITH_INFO) DEBUG("OracleConnection_execute: Error in OCIAttrGet %d (%s)\n", C->lastError, _getLastError(C)); OCIHandleFree(stmtp, OCI_HTYPE_STMT); return C->lastError == OCI_SUCCESS; } static ResultSet_T _executeQuery(T C, const char *sql, va_list ap) { OCIStmt* stmtp; va_list ap_copy; assert(C); C->rowsChanged = 0; va_copy(ap_copy, ap); StringBuffer_vset(C->sb, sql, ap_copy); va_end(ap_copy); StringBuffer_trim(C->sb); /* Build statement */ C->lastError = OCIHandleAlloc(C->env, (void **)&stmtp, OCI_HTYPE_STMT, 0, NULL); if (C->lastError != OCI_SUCCESS && C->lastError != OCI_SUCCESS_WITH_INFO) return NULL; C->lastError = OCIStmtPrepare(stmtp, C->err, StringBuffer_toString(C->sb), StringBuffer_length(C->sb), OCI_NTV_SYNTAX, OCI_DEFAULT); if (C->lastError != OCI_SUCCESS && C->lastError != OCI_SUCCESS_WITH_INFO) { OCIHandleFree(stmtp, OCI_HTYPE_STMT); return NULL; } /* Execute and create Result Set */ if (C->timeout > 0) { C->countdown = C->timeout; C->running = true; } C->lastError = OCIStmtExecute(C->svc, stmtp, C->err, 0, 0, NULL, NULL, OCI_DEFAULT); C->running = false; if (C->lastError != OCI_SUCCESS && C->lastError != OCI_SUCCESS_WITH_INFO) { ub4 parmcnt = 0; OCIAttrGet(stmtp, OCI_HTYPE_STMT, &parmcnt, NULL, OCI_ATTR_PARSE_ERROR_OFFSET, C->err); DEBUG("Error occured in StmtExecute %d (%s), offset is %d\n", C->lastError, _getLastError(C), parmcnt); OCIHandleFree(stmtp, OCI_HTYPE_STMT); return NULL; } C->lastError = OCIAttrGet(stmtp, OCI_HTYPE_STMT, &C->rowsChanged, 0, OCI_ATTR_ROW_COUNT, C->err); if (C->lastError != OCI_SUCCESS && C->lastError != OCI_SUCCESS_WITH_INFO) DEBUG("OracleConnection_execute: Error in OCIAttrGet %d (%s)\n", C->lastError, _getLastError(C)); return ResultSet_new(OracleResultSet_new(C->delegator, stmtp, C->env, C->usr, C->err, C->svc, true), (Rop_T)&oraclerops); } static PreparedStatement_T _prepareStatement(T C, const char *sql, va_list ap) { OCIStmt *stmtp; va_list ap_copy; assert(C); va_copy(ap_copy, ap); StringBuffer_vset(C->sb, sql, ap_copy); va_end(ap_copy); StringBuffer_trim(C->sb); StringBuffer_prepare4oracle(C->sb); /* Build statement */ C->lastError = OCIHandleAlloc(C->env, (void **)&stmtp, OCI_HTYPE_STMT, 0, 0); if (C->lastError != OCI_SUCCESS && C->lastError != OCI_SUCCESS_WITH_INFO) return NULL; C->lastError = OCIStmtPrepare(stmtp, C->err, StringBuffer_toString(C->sb), StringBuffer_length(C->sb), OCI_NTV_SYNTAX, OCI_DEFAULT); if (C->lastError != OCI_SUCCESS && C->lastError != OCI_SUCCESS_WITH_INFO) { OCIHandleFree(stmtp, OCI_HTYPE_STMT); return NULL; } return PreparedStatement_new(OraclePreparedStatement_new(C->delegator, stmtp, C->env, C->usr, C->err, C->svc), (Pop_T)&oraclepops); } /* ------------------------------------------------------------------------- */ const struct Cop_T oraclesqlcops = { .name = "oracle", .new = _new, .free = _free, .ping = _ping, .setQueryTimeout = _setQueryTimeout, .beginTransaction = _beginTransaction, .beginTransactionType = _beginTransactionType, .commit = _commit, .rollback = _rollback, .lastRowId = _lastRowId, .rowsChanged = _rowsChanged, .execute = _execute, .executeQuery = _executeQuery, .prepareStatement = _prepareStatement, .getLastError = _getLastError }; libzdb-3.4.0/src/db/oracle/OracleAdapter.c000644 000765 000024 00000006370 13761023542 020363 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include "Thread.h" #include "system/Time.h" #include "OracleAdapter.h" /* Error handling: Oracle requires a buffer to store error message, to keep error handling thread safe TSD is used */ /* Key for the thread-specific buffer */ static ThreadData_T error_msg_key; /* Once-only initialisation of the key */ static Once_T error_msg_key_once = PTHREAD_ONCE_INIT; /* Return the thread-specific buffer */ static char * get_err_buffer(void) { char * err_buffer = (char *) ThreadData_get(error_msg_key); if (err_buffer == NULL) { err_buffer = malloc(STRLEN); ThreadData_set(error_msg_key, err_buffer); } return err_buffer; } /* Allocate the key */ static void error_msg_key_alloc() { ThreadData_create(error_msg_key, free); } // MARK:- API /* This is a general error function also used in OracleResultSet */ const char *OraclePreparedStatement_getLastError(int err, OCIError *errhp) { sb4 errcode; Thread_once(error_msg_key_once, error_msg_key_alloc); char* erb = get_err_buffer(); assert(erb); assert(errhp); switch (err) { case OCI_SUCCESS: return ""; case OCI_SUCCESS_WITH_INFO: return "Info - OCI_SUCCESS_WITH_INFO"; break; case OCI_NEED_DATA: return "Error - OCI_NEED_DATA"; break; case OCI_NO_DATA: return "Error - OCI_NODATA"; break; case OCI_ERROR: OCIErrorGet(errhp, 1, NULL, &errcode, erb, STRLEN, OCI_HTYPE_ERROR); return erb; break; case OCI_INVALID_HANDLE: return "Error - OCI_INVALID_HANDLE"; break; case OCI_STILL_EXECUTING: return "Error - OCI_STILL_EXECUTE"; break; case OCI_CONTINUE: return "Error - OCI_CONTINUE"; break; default: break; } return erb; } libzdb-3.4.0/src/db/postgresql/PostgresqlPreparedStatement.c000644 000765 000024 00000015514 14652241440 024325 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include "system/Time.h" #include "PostgresqlAdapter.h" /** * Implementation of the PreparedStatement/Delegate interface for postgresql. * All parameter values are sent as text except for blobs. Postgres ignore * paramLengths for text parameters and it is therefor set to 0, except for blob. * * @file */ /* ----------------------------------------------------------- Definitions */ typedef struct param_t { char s[65]; } *param_t; #define T PreparedStatementDelegate_T struct T { int lastError; char *stmt; PGconn *db; PGresult *res; param_t params; int parameterCount; char **paramValues; int *paramLengths; int *paramFormats; Connection_T delegator; }; extern const struct Rop_T postgresqlrops; /* ------------------------------------------------------------- Constructor */ T PostgresqlPreparedStatement_new(Connection_T delegator, PGconn *db, char *stmt, int parameterCount) { T P; assert(db); assert(stmt); NEW(P); P->delegator = delegator; P->db = db; P->stmt = stmt; P->parameterCount = parameterCount; P->lastError = PGRES_COMMAND_OK; if (P->parameterCount) { P->paramValues = CALLOC(P->parameterCount, sizeof(char *)); P->paramLengths = CALLOC(P->parameterCount, sizeof(int)); P->paramFormats = CALLOC(P->parameterCount, sizeof(int)); P->params = CALLOC(P->parameterCount, sizeof(struct param_t)); } return P; } /* -------------------------------------------------------- Delegate Methods */ static void _free(T *P) { assert(P && *P); /* There is no C API function for explicit statement deallocation as of postgres v. 11 - the DEALLOCATE statement has to be used. The postgres documentation mentiones such a function as a possible future extension */ char stmt[STRLEN]; snprintf(stmt, STRLEN, "DEALLOCATE \"%s\";", (*P)->stmt); PQclear(PQexec((*P)->db, stmt)); PQclear((*P)->res); FREE((*P)->stmt); if ((*P)->parameterCount) { FREE((*P)->paramValues); FREE((*P)->paramLengths); FREE((*P)->paramFormats); FREE((*P)->params); } FREE(*P); } static void _setString(T P, int parameterIndex, const char *x, int size) { assert(P); int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); P->paramValues[i] = (char *)x; P->paramLengths[i] = size; P->paramFormats[i] = 0; } static void _setInt(T P, int parameterIndex, int x) { assert(P); int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); snprintf(P->params[i].s, 64, "%d", x); P->paramValues[i] = P->params[i].s; P->paramLengths[i] = 0; P->paramFormats[i] = 0; } static void _setLLong(T P, int parameterIndex, long long x) { assert(P); int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); snprintf(P->params[i].s, 64, "%lld", x); P->paramValues[i] = P->params[i].s; P->paramLengths[i] = 0; P->paramFormats[i] = 0; } static void _setDouble(T P, int parameterIndex, double x) { assert(P); int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); snprintf(P->params[i].s, 64, "%lf", x); P->paramValues[i] = P->params[i].s; P->paramLengths[i] = 0; P->paramFormats[i] = 0; } static void _setTimestamp(T P, int parameterIndex, time_t x) { assert(P); int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); P->paramValues[i] = Time_toString(x, P->params[i].s); P->paramLengths[i] = 0; P->paramFormats[i] = 0; } static void _setBlob(T P, int parameterIndex, const void *x, int size) { assert(P); int i = checkAndSetParameterIndex(parameterIndex, P->parameterCount); P->paramValues[i] = (char *)x; P->paramLengths[i] = size; P->paramFormats[i] = 1; } static void _execute(T P) { assert(P); PQclear(P->res); P->res = PQexecPrepared(P->db, P->stmt, P->parameterCount, (const char **)P->paramValues, P->paramLengths, P->paramFormats, 0); P->lastError = P->res ? PQresultStatus(P->res) : PGRES_FATAL_ERROR; if (P->lastError != PGRES_COMMAND_OK) THROW(SQLException, "%s", PQresultErrorMessage(P->res)); } static ResultSet_T _executeQuery(T P) { assert(P); PQclear(P->res); P->res = PQexecPrepared(P->db, P->stmt, P->parameterCount, (const char **)P->paramValues, P->paramLengths, P->paramFormats, 0); P->lastError = P->res ? PQresultStatus(P->res) : PGRES_FATAL_ERROR; if (P->lastError == PGRES_TUPLES_OK) return ResultSet_new(PostgresqlResultSet_new(P->delegator, P->res), (Rop_T)&postgresqlrops); THROW(SQLException, "%s", PQresultErrorMessage(P->res)); return NULL; } static long long _rowsChanged(T P) { assert(P); char *changes = PQcmdTuples(P->res); return changes ? Str_parseLLong(changes) : 0; } static int _parameterCount(T P) { assert(P); return P->parameterCount; } /* ------------------------------------------------------------------------- */ const struct Pop_T postgresqlpops = { .name = "postgresql", .free = _free, .setString = _setString, .setInt = _setInt, .setLLong = _setLLong, .setDouble = _setDouble, .setTimestamp = _setTimestamp, .setBlob = _setBlob, .execute = _execute, .executeQuery = _executeQuery, .rowsChanged = _rowsChanged, .parameterCount = _parameterCount }; libzdb-3.4.0/src/db/postgresql/PostgresqlAdapter.h000644 000765 000024 00000002603 13445042537 022263 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef POSTGRESQLADAPTER_INCLUDED #define POSTGRESQLADAPTER_INCLUDED #include #include "zdb.h" ResultSetDelegate_T PostgresqlResultSet_new(Connection_T delegator, PGresult *res) __attribute__ ((visibility("hidden"))); PreparedStatementDelegate_T PostgresqlPreparedStatement_new(Connection_T delegator, PGconn *db, char *stmt, int parameterCount) __attribute__ ((visibility("hidden"))); #endif libzdb-3.4.0/src/db/postgresql/PostgresqlResultSet.c000644 000765 000024 00000016716 13471505553 022643 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include #include #include "PostgresqlAdapter.h" /** * Implementation of the ResultSet/Delegate interface for postgresql. * Accessing columns with index outside range throws SQLException * * @file */ /* ----------------------------------------------------------- Definitions */ #define T ResultSetDelegate_T struct T { int maxRows; int rowCount; int currentRow; int columnCount; PGresult *res; Connection_T delegator; }; #define ISFIRSTOCTDIGIT(CH) ((CH) >= '0' && (CH) <= '3') #define ISOCTDIGIT(CH) ((CH) >= '0' && (CH) <= '7') #define OCTVAL(CH) ((CH) - '0') /* ------------------------------------------------------- Private methods */ /* Unescape the buffer pointed to by s 'in-place' using the (un)escape mechanizm described at http://www.postgresql.org/docs/9.0/static/datatype-binary.html The new size of s is assigned to r. Returns s. See _getBlob() below for usage and further info. See also Postgres' PQunescapeBytea() function which this function mirrors except it does not allocate a new string. */ static inline const void *_unescape_bytea(uchar_t *s, int len, int *r) { assert(s); register int i, j; if (s[0] == '\\' && s[1] == 'x') { // bytea hex format static const uchar_t hex[128] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 0, 0, 0, 10, 11, 12, 13, 14, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 12, 13, 14, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; for (i = 0, j = 2; j < len; j++) { // Whitespace between hex pairs is allowed 🤔 if (isxdigit(s[j])) { s[i] = hex[s[j]] << 4; s[i] |= hex[s[j + 1]]; i++; j++; } } } else { // bytea escaped format uchar_t byte; for (i = j = 0; j < len; i++, j++) { if ((s[i] = s[j]) == '\\') { if (s[j + 1] == '\\') j++; else if ((ISFIRSTOCTDIGIT(s[j + 1])) && (ISOCTDIGIT(s[j + 2])) && (ISOCTDIGIT(s[j + 3]))) { byte = OCTVAL(s[j + 1]); byte = (byte << 3) + OCTVAL(s[j + 2]); byte = (byte << 3) + OCTVAL(s[j + 3]); s[i] = byte; j += 3; } } } } *r = i; if (i < j) s[i] = 0; // If unescape was performed, terminate the buffer to mirror postgres behavior return s; } /* ------------------------------------------------------------- Constructor */ T PostgresqlResultSet_new(Connection_T delegator, PGresult *res) { T R; assert(delegator); NEW(R); R->delegator = delegator; R->res = res; R->maxRows = Connection_getMaxRows(delegator); R->currentRow = -1; R->columnCount = PQnfields(R->res); R->rowCount = PQntuples(R->res); return R; } /* -------------------------------------------------------- Delegate methods */ static void _free(T *R) { assert(R && *R); FREE(*R); } static int _getColumnCount(T R) { assert(R); return R->columnCount; } static const char *_getColumnName(T R, int columnIndex) { assert(R); columnIndex--; if (R->columnCount <= 0 || columnIndex < 0 || columnIndex > R->columnCount) return NULL; return PQfname(R->res, columnIndex); } static long _getColumnSize(T R, int columnIndex) { int i = checkAndSetColumnIndex(columnIndex, R->columnCount); if (PQgetisnull(R->res, R->currentRow, i)) return 0; return PQgetlength(R->res, R->currentRow, i); } static bool _next(T R) { assert(R); R->currentRow += 1; return (! ((R->currentRow >= R->rowCount) || (R->maxRows && (R->currentRow >= R->maxRows)))); } static bool _isnull(T R, int columnIndex) { assert(R); int i = checkAndSetColumnIndex(columnIndex, R->columnCount); return PQgetisnull(R->res, R->currentRow, i); } static const char *_getString(T R, int columnIndex) { assert(R); int i = checkAndSetColumnIndex(columnIndex, R->columnCount); if (PQgetisnull(R->res, R->currentRow, i)) return NULL; return PQgetvalue(R->res, R->currentRow, i); } /* * As a "hack" to avoid extra allocation and complications by using PQunescapeBytea() * we instead unescape the buffer retrieved via PQgetvalue 'in-place'. This should * be safe as unescape will only modify internal bytes in the buffer and not change * the buffer pointer. See also unescape_bytea() above. */ static const void *_getBlob(T R, int columnIndex, int *size) { assert(R); int i = checkAndSetColumnIndex(columnIndex, R->columnCount); if (PQgetisnull(R->res, R->currentRow, i)) return NULL; return _unescape_bytea((uchar_t*)PQgetvalue(R->res, R->currentRow, i), PQgetlength(R->res, R->currentRow, i), size); } /* ------------------------------------------------------------------------- */ const struct Rop_T postgresqlrops = { .name = "postgresql", .free = _free, .getColumnCount = _getColumnCount, .getColumnName = _getColumnName, .getColumnSize = _getColumnSize, .next = _next, .isnull = _isnull, .getString = _getString, .getBlob = _getBlob // get/setFetchSize is not applicable for Postgres or rather libpq // getTimestamp and getDateTime is handled in ResultSet }; libzdb-3.4.0/src/db/postgresql/PostgresqlConnection.c000644 000765 000024 00000023277 14651554426 023014 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #ifdef HAVE_STDATOMIC_H #include #else #define _Atomic(x) volatile x #endif #include "PostgresqlAdapter.h" #include "StringBuffer.h" #include "ConnectionDelegate.h" /** * Implementation of the Connection/Delegate interface for postgresql. * * @file */ /* ----------------------------------------------------------- Definitions */ #define T ConnectionDelegate_T struct T { PGconn *db; PGresult *res; StringBuffer_T sb; Connection_T delegator; ExecStatusType lastError; }; static _Atomic(uint32_t) kStatementID = 0; extern const struct Rop_T postgresqlrops; extern const struct Pop_T postgresqlpops; /* ------------------------------------------------------- Private methods */ static bool _doConnect(T C, char **error) { #define ERROR(e) do {*error = Str_dup(e); goto error;} while (0) URL_T url = Connection_getURL(C->delegator); /* User */ if (URL_getUser(url)) StringBuffer_append(C->sb, "user='%s' ", URL_getUser(url)); else if (URL_getParameter(url, "user")) StringBuffer_append(C->sb, "user='%s' ", URL_getParameter(url, "user")); else ERROR("no username specified in URL"); /* Password */ if (URL_getPassword(url)) StringBuffer_append(C->sb, "password='%s' ", URL_getPassword(url)); else if (URL_getParameter(url, "password")) StringBuffer_append(C->sb, "password='%s' ", URL_getParameter(url, "password")); else if (! URL_getParameter(url, "unix-socket")) ERROR("no password specified in URL"); /* Host */ if (URL_getParameter(url, "unix-socket")) { if (URL_getParameter(url, "unix-socket")[0] != '/') ERROR("invalid unix-socket directory"); StringBuffer_append(C->sb, "host='%s' ", URL_getParameter(url, "unix-socket")); } else if (URL_getHost(url)) { StringBuffer_append(C->sb, "host='%s' ", URL_getHost(url)); /* Port */ if (URL_getPort(url) > 0) StringBuffer_append(C->sb, "port=%d ", URL_getPort(url)); else ERROR("no port specified in URL"); } else ERROR("no host specified in URL"); /* Database name */ if (URL_getPath(url)) StringBuffer_append(C->sb, "dbname='%s' ", URL_getPath(url) + 1); else ERROR("no database specified in URL"); /* Options */ StringBuffer_append(C->sb, "sslmode='%s' ", IS(URL_getParameter(url, "use-ssl"), "true") ? "require" : "disable"); if (URL_getParameter(url, "connect-timeout")) { TRY StringBuffer_append(C->sb, "connect_timeout=%d ", Str_parseInt(URL_getParameter(url, "connect-timeout"))); ELSE ERROR("invalid connect timeout value"); END_TRY; } else StringBuffer_append(C->sb, "connect_timeout=%d ", SQL_DEFAULT_TIMEOUT/MSEC_PER_SEC); if (URL_getParameter(url, "application-name")) StringBuffer_append(C->sb, "application_name='%s' ", URL_getParameter(url, "application-name")); /* Connect */ C->db = PQconnectdb(StringBuffer_toString(C->sb)); if (PQstatus(C->db) == CONNECTION_OK) return true; *error = Str_dup(PQerrorMessage(C->db)); error: return false; } /* -------------------------------------------------------- Delegate Methods */ static void _free(T *C) { assert(C && *C); if ((*C)->res) PQclear((*C)->res); if ((*C)->db) PQfinish((*C)->db); StringBuffer_free(&((*C)->sb)); FREE(*C); } static T _new(Connection_T delegator, char **error) { T C; assert(delegator); assert(error); NEW(C); C->delegator = delegator; C->sb = StringBuffer_create(STRLEN); if (! _doConnect(C, error)) _free(&C); return C; } static bool _ping(T C) { assert(C); return (PQstatus(C->db) == CONNECTION_OK); } static void _setQueryTimeout(T C, int ms) { assert(C); StringBuffer_set(C->sb, "SET statement_timeout TO %d;", ms); PQclear(PQexec(C->db, StringBuffer_toString(C->sb))); } static bool _beginTransactionType(T C, TRANSACTION_TYPE type) { assert(C); const char *sql; switch (type) { case TRANSACTION_READ_COMMITTED: sql = "BEGIN TRANSACTION ISOLATION LEVEL READ COMMITTED;"; break; case TRANSACTION_REPEATABLE_READ: sql = "BEGIN TRANSACTION ISOLATION LEVEL REPEATABLE READ;"; break; case TRANSACTION_SERIALIZABLE: sql = "BEGIN TRANSACTION ISOLATION LEVEL SERIALIZABLE;"; break; default: sql = "BEGIN TRANSACTION;"; } PGresult *res = PQexec(C->db, sql); C->lastError = PQresultStatus(res); PQclear(res); return (C->lastError == PGRES_COMMAND_OK); } static bool _beginTransaction(T C) { return _beginTransactionType(C, TRANSACTION_DEFAULT); } static bool _commit(T C) { assert(C); PGresult *res = PQexec(C->db, "COMMIT TRANSACTION;"); C->lastError = PQresultStatus(res); PQclear(res); return (C->lastError == PGRES_COMMAND_OK); } static bool _rollback(T C) { assert(C); PGresult *res = PQexec(C->db, "ROLLBACK TRANSACTION;"); C->lastError = PQresultStatus(res); PQclear(res); return (C->lastError == PGRES_COMMAND_OK); } static long long _lastRowId(T C) { assert(C); return (long long)PQoidValue(C->res); } static long long _rowsChanged(T C) { assert(C); char *changes = PQcmdTuples(C->res); return changes ? Str_parseLLong(changes) : 0; } static bool _execute(T C, const char *sql, va_list ap) { assert(C); PQclear(C->res); va_list ap_copy; va_copy(ap_copy, ap); StringBuffer_vset(C->sb, sql, ap_copy); va_end(ap_copy); C->res = PQexec(C->db, StringBuffer_toString(C->sb)); C->lastError = PQresultStatus(C->res); return (C->lastError == PGRES_COMMAND_OK); } static ResultSet_T _executeQuery(T C, const char *sql, va_list ap) { assert(C); PQclear(C->res); va_list ap_copy; va_copy(ap_copy, ap); StringBuffer_vset(C->sb, sql, ap_copy); va_end(ap_copy); C->res = PQexec(C->db, StringBuffer_toString(C->sb)); C->lastError = PQresultStatus(C->res); if (C->lastError == PGRES_TUPLES_OK) return ResultSet_new(PostgresqlResultSet_new(C->delegator, C->res), (Rop_T)&postgresqlrops); return NULL; } static PreparedStatement_T _prepareStatement(T C, const char *sql, va_list ap) { assert(C); assert(sql); PQclear(C->res); va_list ap_copy; va_copy(ap_copy, ap); StringBuffer_vset(C->sb, sql, ap_copy); va_end(ap_copy); int paramCount = StringBuffer_prepare4postgres(C->sb); uint32_t t = kStatementID++; // increment is atomic char *name = Str_cat("__libzdb-%d", t); C->res = PQprepare(C->db, name, StringBuffer_toString(C->sb), 0, NULL); C->lastError = C->res ? PQresultStatus(C->res) : PGRES_FATAL_ERROR; if (C->lastError == PGRES_EMPTY_QUERY || C->lastError == PGRES_COMMAND_OK || C->lastError == PGRES_TUPLES_OK) return PreparedStatement_new(PostgresqlPreparedStatement_new(C->delegator, C->db, name, paramCount), (Pop_T)&postgresqlpops); FREE(name); return NULL; } static const char *_getLastError(T C) { assert(C); return C->res ? PQresultErrorMessage(C->res) : "unknown error"; } /* ------------------------------------------------------------------------- */ const struct Cop_T postgresqlcops = { .name = "postgresql", .new = _new, .free = _free, .ping = _ping, .setQueryTimeout = _setQueryTimeout, .beginTransaction = _beginTransaction, .beginTransactionType = _beginTransactionType, .commit = _commit, .rollback = _rollback, .lastRowId = _lastRowId, .rowsChanged = _rowsChanged, .execute = _execute, .executeQuery = _executeQuery, .prepareStatement = _prepareStatement, .getLastError = _getLastError }; libzdb-3.4.0/src/system/Time.h000644 000765 000024 00000012512 14646353445 016260 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef TIME_INCLUDED #define TIME_INCLUDED #include /** * Time is an abstraction of date and time. Time is stored internally * as the number of seconds and microseconds since the epoch, January 1, * 1970 00:00 UTC. * * @file */ /** @name Class functions */ //@{ /** * Returns a Unix timestamp representation of an ISO-8601 or RFC 7231 date * string in the GMT timezone. If the given string contains timezone offset * the time is expected to be in local time and the offset is added to the * returned timestamp to make the time UTC. If the string does not contain * timezone information, the time is expected and assumed to be in the GTM * timezone, i.e. in UTC. Example: *
 *  Time_toTimestamp("2013-12-15 00:12:58") -> 1387066378
 *  Time_toTimestamp("2013-12-14 19:12:58-05:00") -> 1387066378
 *  Time_toTimestamp("Sun, 15 Dec 2013 00:12:58 GMT") -> 1387066378
 * 
* @param s The Date String to parse. Time is expected to be in UTC, * but local time with timezone information is also allowed. The format * of the date string should be ISO-8601 or RFC 7231 IMF-fixdate * @return A UTC time representation of s * @exception SQLException If the parameter value cannot be converted * to a valid timestamp * @see SQLException.h */ time_t Time_toTimestamp(const char *s); /** * Returns a Date, Time or DateTime representation of an ISO-8601 or RFC 7231 * date string. Fields follows the convention of the tm structure where, * tm_hour = hours since midnight [0-23], tm_min = minutes after the hour * [0-59], tm_sec = seconds after the minute [0-60], tm_mday = day of the month * [1-31] and tm_mon = months since January [0-11]. tm_gmtoff is set to the * offset from UTC in seconds if the time string contains timezone information, * otherwise tm_gmtoff is set to 0. On systems without tm_gmtoff, (Solaris), * the member, tm_wday is set to gmt offset instead as this property is ignored * by mktime on input.The exception is tm_year which contains the year * literal and not years since 1900 which is the convention. All other * fields in the structure are set to zero. If the given date string * s contains both date and time all the fields mentioned above * are set, otherwise only the Date or Time fields are set. * @param s The Date String to parse. Time is expected to be in UTC, * but local time with timezone information is also allowed. The format * of the date string should be ISO-8601 or RFC 7231 IMF-fixdate * @param t A pointer to a tm structure * @return A pointer to the tm structure representing the date of s * @exception SQLException If the parameter value cannot be converted * to a valid Date, Time or DateTime * @see SQLException.h */ struct tm *Time_toDateTime(const char *s, struct tm *t); /** * Returns an ISO-8601 date string for the given UTC time. (The 'T' separating * date and time is omitted) The returned string represent the specified time * in GMT timezone. The submitted result buffer must be large enough to hold * at least 20 bytes. Example: *
 *  Time_toString(1386951482, buf) -> "2013-12-13 16:18:02"
 * 
* @param time Number of time seconds since the EPOCH in UTC * @param result The buffer to write the date string too * @return a pointer to the result buffer * @exception AssertException if result is NULL */ char *Time_toString(time_t time, char result[static 20]); /** * Returns the time since the Epoch (00:00:00 UTC, January 1, 1970), * measured in seconds. * @return A time_t representing the system's notion of the current GMT time * @exception AssertException If time could not be obtained */ time_t Time_now(void); /** * Returns the time since the Epoch (00:00:00 UTC, January 1, 1970), * measured in milliseconds. * @return A 64 bits long representing the system's notion of the * current GMT time in milliseconds * @exception AssertException If time could not be obtained */ long long Time_milli(void); /** * Suspends the calling process or thread for the specified * duration in microseconds. If sleep is interrupted by a signal, * the function aborts sleep and returns false. * @param microseconds The duration of the sleep in microseconds. * @return true if sleep was completed, false if sleep was interrupted * by a signal. */ bool Time_usleep(long long microseconds); //@} #undef T #endif libzdb-3.4.0/src/system/Mem.c000644 000765 000024 00000004311 13445042537 016062 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include #include "assert.h" #include "MemoryException.h" /** * Implementation of the Mem interface * * @file */ /* ----------------------------------------------------- Protected methods */ #ifdef PACKAGE_PROTECTED #pragma GCC visibility push(hidden) #endif void *Mem_alloc(long size, const char *func, const char *file, int line){ assert(size > 0); void *p = malloc(size); if (! p) Exception_throw(&(MemoryException), func, file, line, "%s", System_getLastError()); return p; } void *Mem_calloc(long count, long size, const char *func, const char *file, int line) { assert(count > 0); assert(size > 0); void *p = calloc(count, size); if (! p) Exception_throw(&(MemoryException), func, file, line, "%s", System_getLastError()); return p; } void Mem_free(void *p, const char *func, const char *file, int line) { if (p) free(p); } void *Mem_resize(void *p, long size, const char *func, const char *file, int line) { assert(p); assert(size > 0); p = realloc(p, size); if (! p) Exception_throw(&(MemoryException), func, file, line, "%s", System_getLastError()); return p; } #ifdef PACKAGE_PROTECTED #pragma GCC visibility pop #endif libzdb-3.4.0/src/system/System.c000644 000765 000024 00000004510 13445042537 016631 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include #include #include "Str.h" #include "system/Time.h" #include "system/System.h" /** * Implementation of the System Facade for UNIX Systems. * * @file */ /* ----------------------------------------------------- Protected methods */ #ifdef PACKAGE_PROTECTED #pragma GCC visibility push(hidden) #endif void System_init(void) { #ifdef ZILD_PACKAGE_PROTECTED Exception_init(); #endif srandom((unsigned)(Time_now())); } const char *System_getLastError(void) { return strerror(errno); } const char *System_getError(int error) { return strerror(error); } void System_abort(const char *e, ...) { va_list ap; va_start(ap, e); if (AbortHandler) { char *t = Str_vcat(e, ap); AbortHandler(t); FREE(t); } else { vfprintf(stderr, e, ap); if (ZBDEBUG) abort(); else exit(1); } va_end(ap); } void System_debug(const char *s, ...) { if (ZBDEBUG) { va_list ap; va_start(ap, s); vfprintf(stdout, s, ap); va_end(ap); } } #ifdef PACKAGE_PROTECTED #pragma GCC visibility pop #endif libzdb-3.4.0/src/system/Time.c000644 000765 000024 00000053000 14652557242 016246 0ustar00haukstaff000000 000000 /* Generated by re2c 3.1 on Thu Aug 1 03:02:26 2024 */ /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include #include #include #include #include #include #include "Str.h" #include "system/System.h" #include "system/Time.h" /** * Implementation of the Time interface * * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601 * @file */ /* ----------------------------------------------------------- Definitions */ #ifndef HAVE_TIMEGM /* * Spdylay - SPDY Library * * Copyright (c) 2013 Tatsuhiro Tsujikawa * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* Counter the number of leap year in the range [0, y). The |y| is the year, including century (e.g., 2012) */ static int count_leap_year(int y) { y -= 1; return y/4-y/100+y/400; } /* Returns nonzero if the |y| is the leap year. The |y| is the year, including century (e.g., 2012) */ static int is_leap_year(int y) { return y%4 == 0 && (y%100 != 0 || y%400 == 0); } /* The number of days before ith month begins */ static int daysum[] = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 }; /* Based on the algorithm of Python 2.7 calendar.timegm. */ time_t timegm(struct tm *tm) { int days; int num_leap_year; int64_t t; if(tm->tm_mon > 11) { return -1; } num_leap_year = count_leap_year(tm->tm_year + 1900) - count_leap_year(1970); days = (tm->tm_year - 70) * 365 + num_leap_year + daysum[tm->tm_mon] + tm->tm_mday-1; if(tm->tm_mon >= 2 && is_leap_year(tm->tm_year + 1900)) { ++days; } t = ((int64_t)days * 24 + tm->tm_hour) * 3600 + tm->tm_min * 60 + tm->tm_sec; if(sizeof(time_t) == 4) { if(t < INT_MIN || t > INT_MAX) { return -1; } } return t; } #endif /* !HAVE_TIMEGM */ #if HAVE_STRUCT_TM_TM_GMTOFF #define TM_GMTOFF tm_gmtoff #else #define TM_GMTOFF tm_wday #endif #define _i2a(i, x) ((x)[0] = ((i) / 10) + '0', (x)[1] = ((i) % 10) + '0') #define _isValidDate(tm) (((tm).tm_mday < 32 && (tm).tm_mday >= 1) && ((tm).tm_mon < 12 && (tm).tm_mon >= 0)) #define _isValidTime(tm) (((tm).tm_hour < 24 && (tm).tm_hour >= 0) && ((tm).tm_min < 60 && (tm).tm_min >= 0) && ((tm).tm_sec < 61 && (tm).tm_sec >= 0)) /* --------------------------------------------------------------- Private */ static inline int _a2i(const char *a, int l) { int n = 0; for (; *a && l--; a++) n = n * 10 + (*a - '0'); return n; } static inline int _m2i(const char m[static 3]) { char month[3] = {[0] = tolower(m[0]), [1] = tolower(m[1]), [2] = tolower(m[2])}; static char *months = "janfebmaraprmayjunjulaugsepoctnovdec"; for (int i = 0; i < 34; i += 3) { if (memcmp(months + i, month, 3) == 0) return i / 3; } return -1; } /* ----------------------------------------------------- Protected methods */ #ifdef PACKAGE_PROTECTED #pragma GCC visibility push(hidden) #endif time_t Time_toTimestamp(const char *s) { if (STR_DEF(s)) { struct tm t = {}; if (Time_toDateTime(s, &t)) { t.tm_year -= 1900; time_t offset = t.TM_GMTOFF; return timegm(&t) - offset; } } return 0; } struct tm *Time_toDateTime(const char *s, struct tm *t) { assert(t); assert(s); struct tm tm = {.tm_isdst = -1}; bool have_date = false, have_time = false; const char *limit = s + strlen(s), *marker, *token, *cursor = s; while (true) { if (cursor >= limit) { if (have_date || have_time) { *(struct tm*)t = tm; return t; } THROW(SQLException, "Invalid date or time"); } token = cursor; { unsigned char yych; unsigned int yyaccept = 0; yych = *cursor; switch (yych) { case '+': case '-': goto yy3; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy4; default: if (limit <= cursor) goto yy69; goto yy1; } yy1: ++cursor; yy2: { continue; } yy3: yyaccept = 0; yych = *(marker = ++cursor); switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy5; default: goto yy2; } yy4: yyaccept = 0; yych = *(marker = ++cursor); switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy7; default: goto yy2; } yy5: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy8; default: goto yy6; } yy6: cursor = marker; switch (yyaccept) { case 0: goto yy2; case 1: goto yy9; case 2: goto yy42; case 3: goto yy48; default: goto yy55; } yy7: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy11; case ':': goto yy12; default: if (limit <= cursor) goto yy6; goto yy10; } yy8: yyaccept = 1; yych = *(marker = ++cursor); switch (yych) { case '\n': goto yy9; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy14; default: if (limit <= cursor) goto yy9; goto yy13; } yy9: { // Timezone: +-HH:MM, +-HH or +-HHMM is offset from UTC in seconds if (have_time) { // Only set timezone if we have parsed time tm.TM_GMTOFF = _a2i(token + 1, 2) * 3600; if (isdigit(token[3])) tm.TM_GMTOFF += _a2i(token + 3, 2) * 60; else if (isdigit(token[4])) tm.TM_GMTOFF += _a2i(token + 4, 2) * 60; if (token[0] == '-') tm.TM_GMTOFF *= -1; } continue; } yy10: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy15; case 'A': case 'a': goto yy16; case 'D': case 'd': goto yy17; case 'F': case 'f': goto yy18; case 'J': case 'j': goto yy19; case 'M': case 'm': goto yy20; case 'N': case 'n': goto yy21; case 'O': case 'o': goto yy22; case 'S': case 's': goto yy23; default: goto yy6; } yy11: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy24; default: goto yy6; } yy12: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy25; case 'A': case 'a': goto yy16; case 'D': case 'd': goto yy17; case 'F': case 'f': goto yy18; case 'J': case 'j': goto yy19; case 'M': case 'm': goto yy20; case 'N': case 'n': goto yy21; case 'O': case 'o': goto yy22; case 'S': case 's': goto yy23; default: goto yy6; } yy13: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy26; default: goto yy6; } yy14: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy27; default: goto yy6; } yy15: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy28; default: goto yy6; } yy16: yych = *++cursor; switch (yych) { case 'P': case 'p': goto yy29; case 'U': case 'u': goto yy30; default: goto yy6; } yy17: yych = *++cursor; switch (yych) { case 'E': case 'e': goto yy31; default: goto yy6; } yy18: yych = *++cursor; switch (yych) { case 'E': case 'e': goto yy32; default: goto yy6; } yy19: yych = *++cursor; switch (yych) { case 'A': case 'a': goto yy33; case 'U': case 'u': goto yy34; default: goto yy6; } yy20: yych = *++cursor; switch (yych) { case 'A': case 'a': goto yy35; default: goto yy6; } yy21: yych = *++cursor; switch (yych) { case 'O': case 'o': goto yy36; default: goto yy6; } yy22: yych = *++cursor; switch (yych) { case 'C': case 'c': goto yy37; default: goto yy6; } yy23: yych = *++cursor; switch (yych) { case 'E': case 'e': goto yy38; default: goto yy6; } yy24: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy40; default: if (limit <= cursor) goto yy6; goto yy39; } yy25: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy41; default: goto yy6; } yy26: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy43; default: goto yy6; } yy27: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy43; default: goto yy9; } yy28: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy6; default: if (limit <= cursor) goto yy6; goto yy44; } yy29: yych = *++cursor; switch (yych) { case 'R': case 'r': goto yy45; default: goto yy6; } yy30: yych = *++cursor; switch (yych) { case 'G': case 'g': goto yy45; default: goto yy6; } yy31: yych = *++cursor; switch (yych) { case 'C': case 'c': goto yy45; default: goto yy6; } yy32: yych = *++cursor; switch (yych) { case 'B': case 'b': goto yy45; default: goto yy6; } yy33: yych = *++cursor; switch (yych) { case 'N': case 'n': goto yy45; default: goto yy6; } yy34: yych = *++cursor; switch (yych) { case 'L': case 'N': case 'l': case 'n': goto yy45; default: goto yy6; } yy35: yych = *++cursor; switch (yych) { case 'R': case 'Y': case 'r': case 'y': goto yy45; default: goto yy6; } yy36: yych = *++cursor; switch (yych) { case 'V': case 'v': goto yy45; default: goto yy6; } yy37: yych = *++cursor; switch (yych) { case 'T': case 't': goto yy45; default: goto yy6; } yy38: yych = *++cursor; switch (yych) { case 'P': case 'p': goto yy45; default: goto yy6; } yy39: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy46; default: goto yy6; } yy40: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy47; default: goto yy6; } yy41: yyaccept = 2; yych = *(marker = ++cursor); switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy42; default: if (limit <= cursor) goto yy42; goto yy44; } yy42: { // Time: HH:MM tm.tm_hour = _a2i(token, 2); tm.tm_min = _a2i(token + 3, 2); tm.tm_sec = 0; have_time = _isValidTime(tm); continue; } yy43: ++cursor; goto yy9; yy44: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy49; default: goto yy6; } yy45: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy6; default: if (limit <= cursor) goto yy6; goto yy50; } yy46: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy51; default: goto yy6; } yy47: yyaccept = 3; yych = *(marker = ++cursor); switch (yych) { case ',': case '.': goto yy52; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy53; default: goto yy48; } yy48: { // Compressed Time: HHMMSS tm.tm_hour = _a2i(token, 2); tm.tm_min = _a2i(token + 2, 2); tm.tm_sec = _a2i(token + 4, 2); have_time = _isValidTime(tm); continue; } yy49: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy54; default: goto yy6; } yy50: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy56; default: goto yy6; } yy51: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy6; default: if (limit <= cursor) goto yy6; goto yy57; } yy52: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy58; default: goto yy6; } yy53: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy59; default: goto yy6; } yy54: yyaccept = 4; yych = *(marker = ++cursor); switch (yych) { case ',': case '.': goto yy60; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy61; default: goto yy55; } yy55: { // Time: HH:MM:SS tm.tm_hour = _a2i(token, 2); tm.tm_min = _a2i(token + 3, 2); tm.tm_sec = _a2i(token + 6, 2); have_time = _isValidTime(tm); continue; } yy56: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy62; default: goto yy6; } yy57: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy63; default: goto yy6; } yy58: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy58; default: goto yy48; } yy59: ++cursor; { // Compressed Date: YYYYMMDD tm.tm_year = _a2i(token, 4); tm.tm_mon = _a2i(token + 4, 2) - 1; tm.tm_mday = _a2i(token + 6, 2); have_date = _isValidDate(tm); continue; } yy60: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy64; default: goto yy6; } yy61: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy65; default: goto yy6; } yy62: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy66; default: goto yy6; } yy63: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy67; default: goto yy6; } yy64: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy64; default: goto yy55; } yy65: ++cursor; { // Date: dd/mm/yyyy tm.tm_mday = _a2i(token, 2); tm.tm_mon = _a2i(token + 3, 2) - 1; tm.tm_year = _a2i(token + 6, 4); have_date = _isValidDate(tm); continue; } yy66: yych = *++cursor; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy68; default: goto yy6; } yy67: ++cursor; { // Date: YYYY-MM-DD tm.tm_year = _a2i(token, 4); tm.tm_mon = _a2i(token + 5, 2) - 1; tm.tm_mday = _a2i(token + 8, 2); have_date = _isValidDate(tm); continue; } yy68: ++cursor; { // Date: Parse date part of RFC 7231 IMF-fixdate (HTTP date), e.g. Sun, 06 Nov 1994 08:49:37 GMT tm.tm_mday = _a2i(token, 2); tm.tm_mon = _m2i(token + 3); tm.tm_year = _a2i(token + 7, 4); have_date = _isValidDate(tm); continue; } yy69: { // EOF THROW(SQLException, "Invalid date or time"); } } } return NULL; } char *Time_toString(time_t time, char result[static 20]) { assert(result); char x[2]; struct tm ts = {.tm_isdst = -1}; gmtime_r(&time, &ts); memcpy(result, "YYYY-MM-DD HH:MM:SS\0", 20); /* 0 5 8 11 14 17 */ _i2a((ts.tm_year+1900)/100, x); result[0] = x[0]; result[1] = x[1]; _i2a((ts.tm_year+1900)%100, x); result[2] = x[0]; result[3] = x[1]; _i2a(ts.tm_mon + 1, x); // Months in 01-12 result[5] = x[0]; result[6] = x[1]; _i2a(ts.tm_mday, x); result[8] = x[0]; result[9] = x[1]; _i2a(ts.tm_hour, x); result[11] = x[0]; result[12] = x[1]; _i2a(ts.tm_min, x); result[14] = x[0]; result[15] = x[1]; _i2a(ts.tm_sec, x); result[17] = x[0]; result[18] = x[1]; return result; } time_t Time_now(void) { struct timeval t; if (gettimeofday(&t, NULL) != 0) THROW(AssertException, "%s", System_getLastError()); return t.tv_sec; } long long Time_milli(void) { struct timeval t; if (gettimeofday(&t, NULL) != 0) THROW(AssertException, "%s", System_getLastError()); return (long long)t.tv_sec * 1000 + (long long)t.tv_usec / 1000; } bool Time_usleep(long long microseconds) { struct timespec req, rem; req.tv_sec = microseconds / 1000000LL; req.tv_nsec = (microseconds % 1000000LL) * 1000LL; while (nanosleep(&req, &rem) == -1) { if (errno == EINTR) { return false; } req = rem; } return true; } #ifdef PACKAGE_PROTECTED #pragma GCC visibility pop #endif libzdb-3.4.0/src/system/System.h000644 000765 000024 00000004113 13445042537 016635 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef SYSTEM_INCLUDED #define SYSTEM_INCLUDED #include /** * Systems routines * * @file */ /** * Initialize program */ void System_init(void); /** * Returns a String describing the last system error * @return The last error message */ const char *System_getLastError(void); /** * Returns a String describing the error code * @param error error code to lookup * @return The error string for the given code */ const char *System_getError(int error); /** * Prints the given error message to stderr and * abort(3) the application. If an AbortHandler callback * function is defined for the library, this function is called instead. * @param e A formated (printf-style) message string */ void System_abort(const char *e, ...) __attribute__((format (printf, 1, 2))); /** * Prints the given message to stdout if the ZBDEBUG * flag is set to true, otherwise this function does nothing. * @param s A formated (printf-style) message string */ void System_debug(const char *s, ...) __attribute__((format (printf, 1, 2))); #endif libzdb-3.4.0/src/system/Mem.h000644 000765 000024 00000011217 13445042537 016072 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef MEM_INCLUDED #define MEM_INCLUDED /** * General purpose memory allocation Class methods. * * @file */ /** * Allocate n bytes of memory. * @param n number of bytes to allocate * @return A pointer to the newly allocated memory * @exception MemoryException if allocation failed * @exception AssertException if n <= 0 * @hideinitializer */ #define ALLOC(n) Mem_alloc((n), __func__, __FILE__, __LINE__) /** * Allocate c objects of size n each. * Same as calling ALLOC(c * n) except this function also clear * the memory region before it is returned. * @param c number of objects to allocate * @param n object size in bytes * @return A pointer to the newly allocated memory * @exception MemoryException if allocation failed * @exception AssertException if c or n <= 0 * @hideinitializer */ #define CALLOC(c, n) Mem_calloc((c), (n), __func__, __FILE__, __LINE__) /** * Allocate p and clear the memory region * before the allocated object is returned. * @param p ADT object to allocate * @exception MemoryException if allocation failed * @hideinitializer */ #define NEW(p) ((p) = CALLOC(1, (long)sizeof *(p))) /** * Deallocates p * @param p object to deallocate * @hideinitializer */ #define FREE(p) ((void)(Mem_free((p), __func__, __FILE__, __LINE__), (p) = 0)) /** * Reallocate p with size n. * @param p pointer to reallocate * @param n new object size in bytes * @exception MemoryException if allocation failed * @exception AssertException if n <= 0 * @hideinitializer */ #define RESIZE(p, n) ((p) = Mem_resize((p), (n), __func__, __FILE__, __LINE__)) /** * Allocate and return size bytes of memory. If * allocation failed this method throws AssertException * @param size The number of bytes to allocate * @param func caller * @param file location of caller * @param line location of caller * @exception MemoryException if allocation failed * @exception AssertException if n <= 0 * @return a pointer to the allocated memory */ void *Mem_alloc(long size, const char *func, const char *file, int line); /** * Allocate and return memory for count objects, each of * size bytes. The returned memory is cleared. If allocation * failed this method throws AssertException * @param count The number of objects to allocate * @param size The size of each object to allocate * @param func caller * @param file location of caller * @param line location of caller * @exception MemoryException if allocation failed * @exception AssertException if c or n <= 0 * @return a pointer to the allocated memory */ void *Mem_calloc(long count, long size, const char *func, const char *file, int line); /** * Deallocate the memory pointed to by p * @param p The memory to deallocate * @param func caller * @param file location of caller * @param line location of caller */ void Mem_free(void *p, const char *func, const char *file, int line); /** * Resize the allocation pointed to by p by size * bytes and return the changed allocation. If allocation failed this * method throws AssertException * @param p A pointer to the allocation to change * @param size The new size of p * @param func caller * @param file location of caller * @param line location of caller * @exception MemoryException if allocation failed * @exception AssertException if n <= 0 * @return a pointer to the changed memory */ void *Mem_resize(void *p, long size, const char *func, const char *file, int line); #endif libzdb-3.4.0/src/exceptions/MemoryException.h000644 000765 000024 00000002475 13445042537 021346 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef MEMORYEXCEPTION_INCLUDED #define MEMORYEXCEPTION_INCLUDED #include /** * Thrown to indicate that a memory allocation failed. Every object * constructor method may throw a MemoryException if the underlying * allocator failed. * @see Exception.h, Mem.h * @file */ extern Exception_T MemoryException; #endif libzdb-3.4.0/src/exceptions/SQLException.h000644 000765 000024 00000002316 14652547705 020537 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef SQLEXCEPTION_INCLUDED #define SQLEXCEPTION_INCLUDED #include /** * @brief Signals that an SQL specific exception has occurred. * @see Exception.h * @file */ extern Exception_T SQLException; #endif libzdb-3.4.0/src/exceptions/Exception.c000644 000765 000024 00000007312 14644647575 020162 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * Copyright (c) 1994,1995,1996,1997 by David R. Hanson. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include "Thread.h" #include "Exception.h" /** * Implementation of the Exception interface. Defines the Thread local * Exception stack and Exceptions used in the library. * * This implementation is a minor modification of the Except code found * in David R. Hanson's excellent book "C Interfaces and Implementations". * See http://www.cs.princeton.edu/software/cii/ * * @file */ /* ----------------------------------------------------------- Definitions */ #define T Exception_T /* Placeholder for systems exceptions. */ T SQLException = {"SQLException"}; #ifdef ZILD_PACKAGE_PROTECTED #pragma GCC visibility push(hidden) #endif T AssertException = {"AssertException"}; T MemoryException = {"MemoryException"}; /* Thread specific Exception stack */ ThreadData_T Exception_stack; #ifdef ZILD_PACKAGE_PROTECTED #pragma GCC visibility pop #endif static Once_T once_control = PTHREAD_ONCE_INIT; /* -------------------------------------------------------- Privat methods */ static void init_once(void) { ThreadData_create(Exception_stack, NULL); } /* ----------------------------------------------------- Protected methods */ #ifdef PACKAGE_PROTECTED #pragma GCC visibility push(hidden) #endif void Exception_init(void) { Thread_once(once_control, init_once); } #ifdef PACKAGE_PROTECTED #pragma GCC visibility pop #endif /* -------------------------------------------------------- Public methods */ void Exception_reset(void) { ThreadData_set(Exception_stack, NULL); } #ifndef ZILD_PACKAGE_PROTECTED void Exception_throw(const T *e, const char *func, const char *file, int line, const char *cause, ...) { va_list ap; Exception_Frame *p = ThreadData_get(Exception_stack); assert(e); if (p) { p->exception = e; p->func = func; p->file = file; p->line = line; if (cause) { va_start(ap, cause); vsnprintf(p->message, EXCEPTION_MESSAGE_LENGTH, cause, ap); va_end(ap); } pop_Exception_stack; longjmp(p->env, Exception_thrown); } else if (cause) { char message[EXCEPTION_MESSAGE_LENGTH + 1]; va_start(ap, cause); vsnprintf(message, EXCEPTION_MESSAGE_LENGTH, cause, ap); va_end(ap); ABORT("%s: %s\n raised in %s at %s:%d\n", e->name, message, func ? func : "?", file ? file : "?", line); } else { ABORT("%s: 0x%p\n raised in %s at %s:%d\n", e->name, e, func ? func : "?", file ? file : "?", line); } } #endif libzdb-3.4.0/src/exceptions/assert.c000644 000765 000024 00000002047 13445042537 017506 0ustar00haukstaff000000 000000 /* * Copyright (c) 1994,1995,1996,1997 by David R. Hanson. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "assert.h" void (assert)(int e) { assert(e); } libzdb-3.4.0/src/exceptions/AssertException.h000644 000765 000024 00000002316 14642610216 021324 0ustar00haukstaff000000 000000 /* * Copyright (c) 1994,1995,1996,1997 by David R. Hanson. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef ASSERTEXCEPTION_INCLUDED #define ASSERTEXCEPTION_INCLUDED #include /** * Thrown to indicate that an assertion has failed. * @see Exception.h * @file */ extern Exception_T AssertException; #endif libzdb-3.4.0/src/exceptions/Exception.h000644 000765 000024 00000024354 14652547721 020163 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * Copyright (c) 1994,1995,1996,1997 by David R. Hanson. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef EXCEPTION_INCLUDED #define EXCEPTION_INCLUDED #include #include /** * @brief An **Exception** indicates an error condition from which recovery may * be possible. * * The Library *raises* exceptions, which can be handled by recovery code, if * recovery is possible. When an exception is raised, it is handled by the * handler that was most recently instantiated. If no handlers are defined an * exception will cause the library to call its abort handler to abort with * an error message. * * Handlers are instantiated by the TRY-CATCH and TRY-FINALLY statements, * which are implemented as macros in this interface. These statements handle * nested exceptions and manage exception-state data. The syntax of the * TRY-CATCH statement is, * * ```c * TRY * S * CATCH(e1) * S1 * CATCH(e2) * S2 * [...] * CATCH(en) * Sn * END_TRY; * ``` * * The TRY-CATCH statement establishes handlers for the exceptions named * `e1, e2,.., en` and execute the statements **S**. * If no exceptions are raised by **S**, the handlers are dismantled and * execution continues at the statement after the END_TRY. If **S** raises * an exception `e` which is one of *e1..en* the execution * of **S** is interrupted and control transfers immediately to the * statements following the relevant CATCH clause. If **S** raises an * exception that is *not* one of *e1..en*, the exception will raise * up the call-stack and unless a previous installed handler catch the * exception, it will cause the application to abort. * * Here's a concrete example calling a method in the libzdb API which may throw * an exception. If the method Connection_execute() fails it will throw an * SQLException. The CATCH statement will catch this exception, if thrown, * and log an error message * ```c * TRY * Connection_execute(c, sql); * CATCH(SQLException) * log("SQL error: %s\n", Connection_getLastError(c)); * END_TRY; * ``` * * The TRY-FINALLY statement is similar to TRY-CATCH but in addition * adds a FINALLY clause which is always executed, regardless if an exception * was raised or not. The syntax of the TRY-FINALLY statement is, * ```c * TRY * S * CATCH(e1) * S1 * CATCH(e2) * S2 * [...] * CATCH(en) * Sn * FINALLY * Sf * END_TRY; * ``` * * Note that `Sf` is executed whether **S** raises an exception * or not. One purpose of the TRY-FINALLY statement is to give clients an * opportunity to "clean up" when an exception occurs. For example, * ```c * TRY * { * Connection_execute(c, sql); * } * FINALLY * { * Connection_close(c); * } * END_TRY; * ``` * closes the database Connection regardless if an exception * was thrown or not by the code in the TRY-block. The above example also * demonstrates that FINALLY can be used without an exception handler, if an * exception was thrown it will be rethrown after the control reaches the * end of the finally block. Meaning that we can cleanup even if an exception * was thrown and the exception will automatically propagate up the call stack * afterwards. * * Finally, the RETURN statement, defined in this interface, must be used * instead of C return statements inside a try-block. If any of the * statements in a try block must do a return, they **must** do so with * this macro instead of the usual C return statement. * * ## Exception details * Inside an exception handler, details about an exception are * available in the variable `Exception_frame`. The following * demonstrates usage of this variable to provide detailed logging of an * exception. For SQL errors, Connection_getLastError() can also be used, * though `Exception_frame` is recommended since in addition to * SQL errors, it also covers API errors not directly related to SQL. * * ```c * TRY * { * * } * ELSE * { * fprintf(stderr, "%s: %s raised in %s at %s:%d\n", * Exception_frame.exception->name, * Exception_frame.message, * Exception_frame.func, * Exception_frame.file, * Exception_frame.line); * } * END_TRY; * ``` * * ## Volatile and assignment inside a try-block * * A variable declared outside a try-block and assigned a value inside said * block should be declared `volatile` if the variable will be * accessed from an exception handler. Otherwise the compiler will/may * optimize away the value set in the try-block and the handler will not see * the new value. Declaring the variable volatile is only necessary * if the variable is to be used inside a CATCH or ELSE block. Example: * ```c * volatile int i = 0; * TRY * { * i = 1; * TRHOW(SQLException, "SQLException"); * } * CATCH(SQLException) * { * assert(i == 1); // Unless declared volatile i would be 0 here * } * END_TRY; * assert(i == 1); // i will be 1 here regardless if it is declared volatile or not * ``` * * ## Thread-safe * * The Exception stack is stored in a thread-specific variable so Exceptions * are made thread-safe. *This means that Exceptions are thread local and an * Exception thrown in one thread cannot be caught in another thread*. * This also means that clients must handle Exceptions per thread and cannot * use one TRY-ELSE block in the main program to catch all Exceptions. This is * only possible if no threads were started. * * This implementation is a minor modification of the Except code found in * [David R. Hanson's](http://www.drhanson.net/) excellent * book [C Interfaces and Implementations](http://www.cs.princeton.edu/software/cii/). * @see SQLException.h * @file */ #define T Exception_T /** @cond hide */ #ifndef CLANG_ANALYZER_NORETURN #if defined(__clang__) #define CLANG_ANALYZER_NORETURN __attribute__((analyzer_noreturn)) #else #define CLANG_ANALYZER_NORETURN #endif #endif typedef struct T { const char *name; } T; #define EXCEPTION_MESSAGE_LENGTH 512 typedef struct Exception_Frame Exception_Frame; struct Exception_Frame { int line; jmp_buf env; const char *func; const char *file; const T *exception; Exception_Frame *prev; char message[EXCEPTION_MESSAGE_LENGTH + 1]; }; enum { Exception_entered=0, Exception_thrown, Exception_handled, Exception_finalized }; extern pthread_key_t Exception_stack; void Exception_init(void); void Exception_reset(void); void Exception_throw(const T *e, const char *func, const char *file, int line, const char *cause, ...) CLANG_ANALYZER_NORETURN; #define pop_Exception_stack pthread_setspecific(Exception_stack, ((Exception_Frame*)pthread_getspecific(Exception_stack))->prev) /** @endcond */ /** * Throws an exception. * @param e The Exception to throw * @param cause The cause. A NULL value is permitted, and * indicates that the cause is unknown. * @hideinitializer */ #define THROW(e, cause, ...) \ Exception_throw(&(e), __func__, __FILE__, __LINE__, cause, ##__VA_ARGS__, NULL) /** * Re-throws an exception. In a CATCH or ELSE block clients can use RETHROW * to re-throw the Exception * @hideinitializer */ #define RETHROW Exception_throw(Exception_frame.exception, \ Exception_frame.func, Exception_frame.file, Exception_frame.line, NULL) /** * Clients **must** use this macro instead of C return statements * inside a try-block * @hideinitializer */ #define RETURN switch((pop_Exception_stack,0)) default:return /** * Defines a block of code that can potentially throw an exception * @hideinitializer */ #define TRY do { \ volatile int Exception_flag; \ Exception_Frame Exception_frame; \ Exception_frame.message[0] = 0; \ Exception_frame.prev = (Exception_Frame*)pthread_getspecific(Exception_stack); \ pthread_setspecific(Exception_stack, &Exception_frame); \ Exception_flag = setjmp(Exception_frame.env); \ if (Exception_flag == Exception_entered) { /** * Defines a block containing code for handling an exception thrown in * the TRY block. * @param e The Exception to handle * @hideinitializer */ #define CATCH(e) \ if (Exception_flag == Exception_entered) pop_Exception_stack; \ } else if (Exception_frame.exception == &(e)) { \ Exception_flag = Exception_handled; /** * Defines a block containing code for handling any exception thrown in * the TRY block. An ELSE block catches any exception type not already * caught in a previous CATCH block. * @hideinitializer */ #define ELSE \ if (Exception_flag == Exception_entered) pop_Exception_stack; \ } else { \ Exception_flag = Exception_handled; /** * Defines a block of code that is subsequently executed whether an * exception is thrown or not * @hideinitializer */ #define FINALLY \ if (Exception_flag == Exception_entered) pop_Exception_stack; \ } { \ if (Exception_flag == Exception_entered) \ Exception_flag = Exception_finalized; /** * Ends a TRY-CATCH block * @hideinitializer */ #define END_TRY \ if (Exception_flag == Exception_entered) pop_Exception_stack; \ } if (Exception_flag == Exception_thrown) RETHROW; \ } while (0) #undef T #endif libzdb-3.4.0/src/exceptions/assert.h000644 000765 000024 00000002512 14642610230 017477 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * Copyright (c) 1994,1995,1996,1997 by David R. Hanson. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef ASSERTION_INCLUDED #define ASSERTION_INCLUDED #undef assert #ifdef NDEBUG #define assert(e) ((void)0) #else #include extern void assert(int e); #define assert(e) ((void)((e)||(Exception_throw(&(AssertException), __func__, __FILE__, __LINE__, #e),0))) #endif #endif libzdb-3.4.0/src/util/StringBuffer.h000644 000765 000024 00000013401 13445042537 017402 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef STRINGBUFFER_INCLUDED #define STRINGBUFFER_INCLUDED #include /** * A String Buffer implements a mutable sequence of characters. * * @file */ #define T StringBuffer_T typedef struct T *T; /** * Constructs a string buffer so that it represents the same sequence of * characters as the string argument; in other words, the initial contents * of the string buffer is a copy of the argument string. * @param s the initial contents of the buffer * @return A new StringBuffer object */ T StringBuffer_new(const char *s); /** * Factory method, create an empty string buffer * @param hint The initial capacity of the buffer in bytes (hint > 0) * @return A new StringBuffer object * @exception AssertException if hint is less than or equal to 0 * @exception MemoryException if allocation failed */ T StringBuffer_create(int hint); /** * Destroy a StringBuffer object and free allocated resources * @param S a StringBuffer object reference */ void StringBuffer_free(T *S); /** * The characters of the String argument are appended, in order, to the * contents of this string buffer, increasing the length of this string * buffer by the length of the arguments. * @param S StringBuffer object * @param s A string with optional var args * @return A reference to this StringBuffer */ T StringBuffer_append(T S, const char *s, ...) __attribute__((format (printf, 2, 3))); /** * The characters of the String argument are appended, in order, to the * contents of this string buffer, increasing the length of this string * buffer by the length of the arguments. * @param S StringBuffer object * @param s A string with optional var args * @param ap A variable argument list * @return A reference to this StringBuffer */ T StringBuffer_vappend(T S, const char *s, va_list ap); /** * Replace the content of this String Buffer with s. That is, the contents * of the string buffer is a copy of the argument string. * @param S StringBuffer object * @param s A string with optional var args * @return a reference to this StringBuffer * @exception MemoryException if allocation was used and failed */ T StringBuffer_set(T S, const char *s, ...) __attribute__((format (printf, 2, 3))); /** * Replace the content of this String Buffer with s. That is, the contents * of the string buffer is a copy of the argument string. * @param S StringBuffer object * @param s A string with optional var args * @param ap A variable argument list * @return a reference to this StringBuffer * @exception MemoryException if allocation was used and failed */ T StringBuffer_vset(T S, const char *s, va_list ap); /** * Returns the length (character count) of this string buffer. * @param S StringBuffer object * @return The length of the sequence of characters currently represented * by this string buffer */ int StringBuffer_length(T S); /** * Clear the contents of the string buffer. I.e. set buffer length to 0. * @param S StringBuffer object * @return a reference to this StringBuffer */ T StringBuffer_clear(T S); /** * Converts to a string representing the data in this string buffer. * @param S StringBuffer object * @return A string representation of the string buffer */ const char *StringBuffer_toString(T S); /** * Replace all occurences of ? in this string buffer with $n. * Example: *
 * StringBuffer_T b = StringBuffer_new("insert into host values(?, ?, ?);"); 
 * StringBuffer_prepare4postgres(b) -> "insert into host values($1, $2, $3);"
 * 
* @param S StringBuffer object * @return The number of replacements that took place * @exception SQLException If there are more than 99 wild card '?' parameters */ int StringBuffer_prepare4postgres(T S); /** * Replace all occurences of ? in this string buffer with :n. * Example: *
 * StringBuffer_T b = StringBuffer_new("insert into host values(?, ?, ?);"); 
 * StringBuffer_prepare4oracle(b) -> "insert into host values(:1, :2, :3);"
 * 
* @param S StringBuffer object * @return The number of replacements that took place * @exception SQLException If there are more than 99 wild card '?' parameters */ int StringBuffer_prepare4oracle(T S); /** * Remove (any) leading and trailing white space and semicolon [ \\t\\r\\n;]. * Trailing semicolon is not removed iff immediately preceded with 'END' to allow * for 'END;' to close a pl/sql block. Example *
 * StringBuffer_T a = StringBuffer_new("\t select a from b; \n");
 * StringBuffer_trim(a) -> "select a from b"
 * StringBuffer_T b = StringBuffer_new("\t declare pl/sql end; \n");
 * StringBuffer_trim(b) -> "declare pl/sql end;"
 * 
* @param S StringBuffer object * @return a reference to this StringBuffer */ T StringBuffer_trim(T S); #undef T #endif libzdb-3.4.0/src/util/Vector.c000644 000765 000024 00000007744 14646102232 016245 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include "Vector.h" /** * Implementation of the Vector interface. * * @file */ /* ----------------------------------------------------------- Definitions */ #define T Vector_T struct T { int length; int capacity; void **array; uint32_t timestamp; }; /* ------------------------------------------------------- Private methods */ static inline void _ensureCapacity(T V) { if (V->length >= V->capacity) { V->capacity = round(1.618 * V->length); RESIZE(V->array, V->capacity * sizeof (void *)); } } /* ----------------------------------------------------- Protected methods */ #ifdef PACKAGE_PROTECTED #pragma GCC visibility push(hidden) #endif T Vector_new(int hint) { T V; assert(hint >= 0); NEW(V); if (hint == 0) hint = 16; V->capacity = hint; V->array = CALLOC(V->capacity, sizeof (void *)); return V; } void Vector_free(T *V) { assert(V && *V); FREE((*V)->array); FREE(*V); } void Vector_insert(T V, int i, void *e) { assert(V); assert(i >= 0 && i <= V->length); V->timestamp++; _ensureCapacity(V); for (int j = V->length++; j > i; j--) V->array[j] = V->array[j-1]; V->array[i] = e; } void *Vector_set(T V, int i, void *e) { assert(V); assert(i >= 0 && i < V->length); V->timestamp++; void *prev = V->array[i]; V->array[i] = e; return prev; } void *Vector_get(T V, int i) { assert(V); assert(i >= 0 && i < V->length); return V->array[i]; } void *Vector_remove(T V, int i) { assert(V); assert(i >= 0 && i < V->length); V->timestamp++; void *x = V->array[i]; V->length--; for (int j = i; j < V->length; j++) V->array[j] = V->array[j+1]; return x; } void Vector_push(T V, void *e) { assert(V); V->timestamp++; _ensureCapacity(V); V->array[V->length++] = e; } void *Vector_pop(T V) { assert(V); assert(V->length>0); V->timestamp++; return V->array[--V->length]; } bool Vector_isEmpty(T V) { assert(V); return (V->length == 0); } int Vector_size(T V) { assert(V); return V->length; } void Vector_map(T V, void apply(const void *element, void *ap), void *ap) { assert(V); assert(apply); uint32_t stamp = V->timestamp; for (int i = 0; i < V->length; i++) { apply(V->array[i], ap); assert(V->timestamp == stamp); } } void **Vector_toArray(T V) { int i; assert(V); void **array = ALLOC((V->length + 1) * sizeof (*array)); for (i = 0; i < V->length; i++) array[i] = V->array[i]; array[i] = NULL; return array; } int Vector_indexOf(T V, void *e) { assert(V); for (int i = 0; i < V->length; i++) { if (V->array[i] == e) { return i; } } return -1; } #ifdef PACKAGE_PROTECTED #pragma GCC visibility pop #endif libzdb-3.4.0/src/util/Str.c000644 000765 000024 00000013610 14651554426 015554 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include #include #include #include /** * Implementation of the Str interface * * @file */ /* -------------------------------------------------------- Private methods */ static inline bool _is_equals_ci(const char *s, const char *literal) { for (int i = 0; ; i++) { if (literal[i] == 0) { return s[i] == 0 || isspace((unsigned char)s[i]); } if (tolower((unsigned char)s[i]) != tolower((unsigned char)literal[i])) { return false; } } } /* ----------------------------------------------------- Protected methods */ #ifdef PACKAGE_PROTECTED #pragma GCC visibility push(hidden) #endif bool Str_isEqual(const char *a, const char *b) { if (a && b) { while (*a && *b) if (toupper(*a++) != toupper(*b++)) return false; return (*a == *b); } return false; } bool Str_isByteEqual(const char *a, const char *b) { if (a && b) { while (*a && *b) if (*a++ != *b++) return false; return (*a == *b); } return false; } bool Str_startsWith(const char *a, const char *b) { if (a && b) { do { if (*a != *b) return false; if (*a++ == 0 || *b++ == 0) break; } while (*b); return true; } return false; } char *Str_copy(char *dest, const char *src, int n) { if (src && dest && (n > 0)) { char *t = dest; while (*src && n--) *t++ = *src++; *t = 0; } else if (dest) *dest = 0; return dest; } // We do not use strdup so we can throw MemoryException on OOM char *Str_dup(const char *s) { char *t = NULL; if (s) { size_t n = strlen(s) + 1; t = ALLOC(n); memcpy(t, s, n); } return t; } char *Str_ndup(const char *s, int n) { char *t = NULL; assert(n >= 0); if (s) { int l = (int)strlen(s); n = l < n ? l : n; // Use the actual length of s if shorter than n t = ALLOC(n + 1); memcpy(t, s, n); t[n] = 0; } return t; } char *Str_cat(const char *s, ...) { char *t = 0; if (s) { va_list ap; va_start(ap, s); t = Str_vcat(s, ap); va_end(ap); } return t; } char *Str_vcat(const char *s, va_list ap) { char *t = NULL; if (s) { va_list ap_copy; va_copy(ap_copy, ap); int size = vsnprintf(t, 0, s, ap_copy) + 1; va_end(ap_copy); t = ALLOC(size); va_copy(ap_copy, ap); vsnprintf(t, size, s, ap_copy); va_end(ap_copy); } return t; } int Str_parseInt(const char *s) { if (STR_UNDEF(s)) THROW(SQLException, "NumberFormatException: For input string null"); errno = 0; char *e; int i = (int)strtol(s, &e, 10); if (errno || (e == s)) THROW(SQLException, "NumberFormatException: For input string %s -- %s", s, System_getLastError()); return i; } long long Str_parseLLong(const char *s) { if (STR_UNDEF(s)) THROW(SQLException, "NumberFormatException: For input string null"); errno = 0; char *e; long long ll = strtoll(s, &e, 10); if (errno || (e == s)) THROW(SQLException, "NumberFormatException: For input string %s -- %s", s, System_getLastError()); return ll; } double Str_parseDouble(const char *s) { if (STR_UNDEF(s)) THROW(SQLException, "NumberFormatException: For input string null"); errno = 0; char *e; double d = strtod(s, &e); if (errno || (e == s)) THROW(SQLException, "NumberFormatException: For input string %s -- %s", s, System_getLastError()); return d; } bool Str_parseBool(const char *s) { if (STR_DEF(s)) { while (isspace((unsigned char)*s)) s++; switch (tolower((unsigned char)*s)) { case '1': return s[1] == '\0' || isspace(s[1]); case 'y': return _is_equals_ci(s, "yes"); case 't': return _is_equals_ci(s, "true"); case 'o': return _is_equals_ci(s, "on"); case 'e': return _is_equals_ci(s, "enable") || _is_equals_ci(s, "enabled"); default: return false; } } return false; } #ifdef PACKAGE_PROTECTED #pragma GCC visibility pop #endif libzdb-3.4.0/src/util/Str.h000644 000765 000024 00000015214 14651761770 015565 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef STR_INCLUDED #define STR_INCLUDED #include /** * General purpose String Class methods. * * @file */ /** * Test if the given string is defined. That is; not NULL nor the empty ("") string * @param s The string to test * @return true if s is defined, otherwise false * @hideinitializer */ #define STR_DEF(s) ((s) && *(s)) /** * Test if the given string is NULL or the empty ("") string * @param s The string to test * @return true if s is NULL or the empty string, otherwise false * @hideinitializer */ #define STR_UNDEF(s) (! STR_DEF(s)) /** * Returns true if the string a equals the string b. The * test is case-insensitive but depends on that all characters * in the two strings can be translated in the current locale. * @param a The string to test for equality with b * @param b The string to test for equality with a * @return true if a equals b, otherwise false */ bool Str_isEqual(const char *a, const char *b); /** * Returns true if the string a equals the string b. The * test is case-sensitive and compares byte by byte * @param a The string to test for equality with b * @param b The string to test for equality with a * @return true if a equals b, otherwise false */ bool Str_isByteEqual(const char *a, const char *b); /** * Returns true if the string a starts with the sub-string * b. The test is case-sensitive. * @param a The string to search for b in * @param b The sub-string to test a against * @return true if a starts with b, otherwise false */ bool Str_startsWith(const char *a, const char *b); /** * Strcpy that copy only n char from the given * string. The destination string, dest, is NUL * terminated at length n or if src is * shorter than n at the length of src * @param dest The destination buffer * @param src The string to copy to dest * @param n The number of bytes to copy * @return A pointer to dest */ char *Str_copy(char *dest, const char *src, int n); /** * Returns a copy of s. The caller must free the returned String. * @param s A String to duplicate * @return A pointer to the duplicated string, NULL if s is NULL * @exception MemoryException if allocation failed */ char *Str_dup(const char *s); /** * Strdup that duplicates only n char from the given string The caller * must free the returned String. If s is less than n characters long, all * characters of s are copied. I.e. the same as calling Str_dup(s). * @param s A string to duplicate * @param n The number of bytes to copy from s * @return A pointer to the duplicated string, NULL if s is NULL * @exception MemoryException if allocation failed * @exception AssertException if n is less than 0 */ char *Str_ndup(const char *s, int n); /** * Creates a new String by merging a formated string and a variable * argument list. The caller must free the returned String. * @param s A format string * @return The new String or NULL if the string could not be created * @exception MemoryException if memory allocation fails */ char *Str_cat(const char *s, ...) __attribute__((format (printf, 1, 2))); /** * Creates a new String by merging a formated string and a variable * argument list. The caller must free the returned String. * @param s A format string * @param ap A variable argument lists * @return a new String concating s and va_list or NULL on error * @exception MemoryException if memory allocation fails */ char *Str_vcat(const char *s, va_list ap); /** * Parses the string argument as a signed integer in base 10. * @param s A string * @return The integer represented by the string argument. * @exception SQLException If a parse error occurred */ int Str_parseInt(const char *s); /** * Parses the string argument as a signed long long in base 10. * @param s A string * @return The long long represented by the string argument. * @exception SQLException If a parse error occurred */ long long Str_parseLLong(const char *s); /** * Parses the string argument as a double. * @param s A string * @return The double represented by the string argument. * @exception SQLException If a parse error occurred */ double Str_parseDouble(const char *s); /** * Parses the string argument as a boolean value. It checks if the string, * after ignoring leading whitespace, starts with any of the following * values: "true", "yes", "1", "on", "enable", or "enabled", followed by * either whitespace or the end of the string. If such a pattern is found, * the function returns true. For any other value or pattern, it returns false. * Example: *
 * Str_parseBool("true")        -> true
 * Str_parseBool("TRUE")        -> true
 * Str_parseBool("yes")         -> true
 * Str_parseBool("  Yes  ")     -> true
 * Str_parseBool("1")           -> true
 * Str_parseBool(" 1 and 2")    -> true
 * Str_parseBool("on")          -> true
 * Str_parseBool("enable")      -> true
 * Str_parseBool("enabled")     -> true
 * Str_parseBool("truelove")    -> false
 * Str_parseBool("yesterday")   -> false
 * Str_parseBool("1234")        -> false
 * Str_parseBool("only")        -> false
 * Str_parseBool("enabler")     -> false
 * Str_parseBool("enabledment") -> false
 * 
* @param s A string representing a boolean value. * @return true if 's' starts with a boolean value ("true", "yes", "1", "on", * "enable", "enabled"), followed by a space or the end of the string, * false otherwise. The comparison is case-insensitive. If 's' is NULL or * the empty string, the function returns false. */ bool Str_parseBool(const char *s); #endif libzdb-3.4.0/src/util/Vector.h000644 000765 000024 00000012156 14646105011 016241 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef VECTOR_INCLUDED #define VECTOR_INCLUDED /** * A Vector represent a resizable, integer indexed array of * any object. Indexing starts at 0 and it is a checked runtime error to * access index out of the range. * * A Vector can also be used as a stack (LIFO) by only using the methods * Vector_push() and Vector_pop() which respectively act as push and pop * operations. * * @file */ #define T Vector_T typedef struct T *T; /** * Create a new Vector. * @param hint The initial capacity of the Vector (hint >= 0) * @return A Vector object */ T Vector_new(int hint); /** * Destroy a Vector object. * @param V A Vector object reference */ void Vector_free(T *V); /** * Insert the element at the specified location in the Vector. Shifts * the element currently at that position (if any) and any subsequent * elements to the right (adds one to their indices). The index, * i, must be in the range, (i >= 0 && i <= Vector_size()). * @param V A Vector object * @param i Index of object to insert * @param e Element to be inserted */ void Vector_insert(T V, int i, void *e); /** * Replace the element at the specified location in the Vector. The previous * element at this location is returned. The index, i, must be * in the range, (i >= 0 && i < Vector_size()). * @param V A Vector object * @param i Index of object to replace * @param e Element to be inserted * @return The previous object at this location */ void *Vector_set(T V, int i, void *e); /** * Returns the element at the specified position. The index, i, * must be in the range, (i >= 0 && i < Vector_size()). * @param V A Vector object * @param i Index of object to return * @return The object at the specified index */ void *Vector_get(T V, int i); /** * Remove the element at the specified position in the Vector. The object * removed is returned. Shifts any subsequent elements to the left * (subtracts one from their indices). The index, i, must be * in the range, (i >= 0 && i < Vector_size()). * @param V A Vector object * @param i Index of element to remove * @return The object that was removed */ void *Vector_remove(T V, int i); /** * Append the element to the end of this Vector increasing it's size with 1 * @param V A Vector object * @param e Element to be appended */ void Vector_push(T V, void *e); /** * Remove the last element from the Vector. The object removed is returned. * It is a checked runtime error to call this method if the Vector already * is empty. * @param V A Vector object * @return The object that was removed */ void *Vector_pop(T V); /** * Test if this Vector is empty. * @param V A Vector object * @return true if this Vector has no elements, i.e. it's size is 0 * otherwise false. */ bool Vector_isEmpty(T V); /** * Returns the number of elements in this Vector * @param V A Vector object * @return Number of elements in this vector */ int Vector_size(T V); /** * Apply the visitor function, apply(const void *element, void *ap), * for each element in the Vector. Clients can pass an application * specific pointer, ap, to Vector_map() and this pointer is * passed along to the apply function at each call. It is a * checked runtime error for apply to change the Vector. * @param V A Vector object * @param apply The function to apply * @param ap An application-specific pointer. If such a pointer is * not needed, just use NULL */ void Vector_map(T V, void apply(const void *element, void *ap), void *ap); /** * Creates a N + 1 length array containing all the elements * in this Vector. The last element in the array is NULL. * The caller is responsible for deallocating the array. * @param V A Vector object * @return A pointer to the first element in the array */ void **Vector_toArray(T V); /** * Returns the index of the first occurrence of element 'e' in the Vector. * @param V A Vector object * @param e The element to search for * @return The index of 'e' if found, or -1 if not found */ int Vector_indexOf(T V, void *e); #undef T #endif libzdb-3.4.0/src/util/StringBuffer.c000644 000765 000024 00000014605 13632535300 017375 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include #include "StringBuffer.h" /** * Implementation of the StringBuffer interface. * * @file */ /* ----------------------------------------------------------- Definitions */ #define T StringBuffer_T struct T { int used; int length; uchar_t *buffer; }; /* ------------------------------------------------------- Private methods */ static inline void _append(T S, const char *s, va_list ap) { va_list ap_copy; while (true) { va_copy(ap_copy, ap); int n = vsnprintf((char*)(S->buffer + S->used), S->length - S->used, s, ap_copy); va_end(ap_copy); if ((S->used + n) < S->length) { S->used += n; break; } S->length += STRLEN + n; RESIZE(S->buffer, S->length); } } /* Replace all occurences of ? in this string buffer with prefix[1..99] */ static int _prepare(T S, char prefix) { int n, i; for (n = i = 0; S->buffer[i]; i++) if (S->buffer[i] == '?') n++; if (n > 99) THROW(SQLException, "Max 99 parameters are allowed in a prepared statement. Found %d parameters in statement", n); else if (n) { int j, xl; char x[3] = {prefix}; int required = (n * 2) + S->used; if (required >= S->length) { S->length = required; RESIZE(S->buffer, S->length); } for (i = 0, j = 1; (j <= n); i++) { if (S->buffer[i] == '?') { if(j<10){xl=2;x[1]=j+'0';}else{xl=3;x[1]=(j/10)+'0';x[2]=(j%10)+'0';} memmove(S->buffer + i + xl, S->buffer + i + 1, (S->used - (i + 1))); memmove(S->buffer + i, x, xl); S->used += xl - 1; j++; } } S->buffer[S->used] = 0; } return n; } static inline bool _hasTrailingWs(T S) { if (S->used > 0) { if (isspace(S->buffer[S->used - 1])) return true; if (S->buffer[S->used - 1] == ';') { if (S->used > 3) return ! (tolower(S->buffer[S->used - 2]) == 'd' && tolower(S->buffer[S->used - 3]) == 'n' && tolower(S->buffer[S->used - 4]) == 'e'); return true; } } return false; } static inline T _ctor(int hint) { T S; NEW(S); S->length = hint; S->buffer = ALLOC(hint); *S->buffer = 0; return S; } /* ----------------------------------------------------- Protected methods */ #ifdef PACKAGE_PROTECTED #pragma GCC visibility push(hidden) #endif T StringBuffer_new(const char *s) { return StringBuffer_append(_ctor(STRLEN), "%s", s); } T StringBuffer_create(int hint) { if (hint <= 0) THROW(AssertException, "Illegal hint value"); return _ctor(hint); } void StringBuffer_free(T *S) { assert(S && *S); FREE((*S)->buffer); FREE(*S); } T StringBuffer_append(T S, const char *s, ...) { assert(S); if (STR_DEF(s)) { va_list ap; va_start(ap, s); _append(S, s, ap); va_end(ap); } return S; } T StringBuffer_vappend(T S, const char *s, va_list ap) { assert(S); if (STR_DEF(s)) { va_list ap_copy; va_copy(ap_copy, ap); _append(S, s, ap_copy); va_end(ap_copy); } return S; } T StringBuffer_set(T S, const char *s, ...) { assert(S); StringBuffer_clear(S); if (STR_DEF(s)) { va_list ap; va_start(ap, s); _append(S, s, ap); va_end(ap); } return S; } T StringBuffer_vset(T S, const char *s, va_list ap) { assert(S); StringBuffer_clear(S); if (STR_DEF(s)) { va_list ap_copy; va_copy(ap_copy, ap); _append(S, s, ap_copy); va_end(ap_copy); } return S; } int StringBuffer_length(T S) { assert(S); return S->used; } T StringBuffer_clear(T S) { assert(S); S->used = 0; *S->buffer = 0; return S; } const char *StringBuffer_toString(T S) { assert(S); return (const char*)S->buffer; } int StringBuffer_prepare4postgres(T S) { assert(S); return _prepare(S, '$'); } int StringBuffer_prepare4oracle(T S) { assert(S); return _prepare(S, ':'); } T StringBuffer_trim(T S) { assert(S); // Right trim while (_hasTrailingWs(S)) S->buffer[--S->used] = 0; // Left trim if (isspace(*S->buffer)) { int i; for (i = 0; isspace(S->buffer[i]); i++) ; memmove(S->buffer, S->buffer + i, S->used - i); S->used -= i; S->buffer[S->used] = 0; } return S; } #ifdef PACKAGE_PROTECTED #pragma GCC visibility pop #endif libzdb-3.4.0/src/net/URL.c000644 000765 000024 00000100544 14652557242 015262 0ustar00haukstaff000000 000000 /* Generated by re2c 3.1 on Thu Aug 1 03:02:26 2024 */ /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #include "Config.h" #include #include #include #include #include #include "URL.h" /** * Implementation of the URL interface. The scanner handle * ISO Latin 1 or UTF-8 encoded url's transparently. * * @file */ /* ----------------------------------------------------------- Definitions */ typedef struct param_t { char *name; char *value; struct param_t *next; } *param_t; #define T URL_T struct URL_S { int ip6; int port; char *ref; char *path; char *host; char *user; char *qptr; char *query; char *portStr; char *protocol; char *password; char *toString; param_t params; char **paramNames; uchar_t *data; uchar_t *buffer; uchar_t *marker, *ctx, *limit, *token; /* Keep the above align with zild URL_T */ }; /* Unsafe URL characters: [00-1F, 7F-FF] <>\"#%}{|\\^[] ` */ static const uchar_t urlunsafe[256] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; #define UNKNOWN_PORT -1 #define YYCURSOR U->buffer #define YYLIMIT U->limit #define YYTOKEN U->token #define SET_PROTOCOL(PORT) *(YYCURSOR-3)=0; U->protocol=U->token; U->port=PORT; goto authority /* ------------------------------------------------------- Private methods */ static bool _parseURL(T U) { param_t param = NULL; proto: if (YYCURSOR >= YYLIMIT) return false; YYTOKEN = YYCURSOR; { unsigned char yych; yych = *U->buffer; switch (yych) { case '\t': case '\n': case '\r': case ' ': goto yy3; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'n': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': goto yy4; case 'm': goto yy5; case 'o': goto yy6; case 'p': goto yy7; default: goto yy1; } yy1: ++U->buffer; yy2: { goto proto; } yy3: ++U->buffer; { goto proto; } yy4: yych = *(U->marker = ++U->buffer); switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case ':': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': goto yy9; default: goto yy2; } yy5: yych = *(U->marker = ++U->buffer); switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case ':': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'z': goto yy9; case 'y': goto yy12; default: goto yy2; } yy6: yych = *(U->marker = ++U->buffer); switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case ':': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': goto yy9; case 'r': goto yy13; default: goto yy2; } yy7: yych = *(U->marker = ++U->buffer); switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case ':': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': goto yy9; case 'o': goto yy14; default: goto yy2; } yy8: yych = *++U->buffer; yy9: switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': goto yy8; case ':': goto yy11; default: goto yy10; } yy10: U->buffer = U->marker; goto yy2; yy11: yych = *++U->buffer; switch (yych) { case '/': goto yy15; default: goto yy10; } yy12: yych = *++U->buffer; switch (yych) { case 's': goto yy16; default: goto yy9; } yy13: yych = *++U->buffer; switch (yych) { case 'a': goto yy17; default: goto yy9; } yy14: yych = *++U->buffer; switch (yych) { case 's': goto yy18; default: goto yy9; } yy15: yych = *++U->buffer; switch (yych) { case '/': goto yy19; default: goto yy10; } yy16: yych = *++U->buffer; switch (yych) { case 'q': goto yy20; default: goto yy9; } yy17: yych = *++U->buffer; switch (yych) { case 'c': goto yy21; default: goto yy9; } yy18: yych = *++U->buffer; switch (yych) { case 't': goto yy22; default: goto yy9; } yy19: ++U->buffer; { SET_PROTOCOL(UNKNOWN_PORT); } yy20: yych = *++U->buffer; switch (yych) { case 'l': goto yy23; default: goto yy9; } yy21: yych = *++U->buffer; switch (yych) { case 'l': goto yy24; default: goto yy9; } yy22: yych = *++U->buffer; switch (yych) { case 'g': goto yy25; default: goto yy9; } yy23: yych = *++U->buffer; switch (yych) { case ':': goto yy26; default: goto yy9; } yy24: yych = *++U->buffer; switch (yych) { case 'e': goto yy27; default: goto yy9; } yy25: yych = *++U->buffer; switch (yych) { case 'r': goto yy28; default: goto yy9; } yy26: yych = *++U->buffer; switch (yych) { case '/': goto yy29; default: goto yy10; } yy27: yych = *++U->buffer; switch (yych) { case ':': goto yy30; default: goto yy9; } yy28: yych = *++U->buffer; switch (yych) { case 'e': goto yy31; default: goto yy9; } yy29: yych = *++U->buffer; switch (yych) { case '/': goto yy32; default: goto yy10; } yy30: yych = *++U->buffer; switch (yych) { case '/': goto yy33; default: goto yy10; } yy31: yych = *++U->buffer; switch (yych) { case 's': goto yy34; default: goto yy9; } yy32: ++U->buffer; { SET_PROTOCOL(MYSQL_DEFAULT_PORT); } yy33: yych = *++U->buffer; switch (yych) { case '/': goto yy35; default: goto yy10; } yy34: yych = *++U->buffer; switch (yych) { case 'q': goto yy36; default: goto yy9; } yy35: ++U->buffer; { SET_PROTOCOL(ORACLE_DEFAULT_PORT); } yy36: yych = *++U->buffer; switch (yych) { case 'l': goto yy37; default: goto yy9; } yy37: yych = *++U->buffer; switch (yych) { case ':': goto yy38; default: goto yy9; } yy38: yych = *++U->buffer; switch (yych) { case '/': goto yy39; default: goto yy10; } yy39: yych = *++U->buffer; switch (yych) { case '/': goto yy40; default: goto yy10; } yy40: ++U->buffer; { SET_PROTOCOL(POSTGRESQL_DEFAULT_PORT); } } authority: if (YYCURSOR >= YYLIMIT) return true; YYTOKEN = YYCURSOR; { unsigned char yych; unsigned int yyaccept = 0; yych = *U->buffer; switch (yych) { case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case '\v': case '\f': case 0x0E: case 0x0F: case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: case '@': case ']': goto yy42; case '\t': case '\n': case '\r': goto yy44; case ' ': goto yy46; case '-': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': goto yy48; case '/': goto yy50; case ':': goto yy52; case '[': goto yy53; default: goto yy47; } yy42: ++U->buffer; yy43: { return true; } yy44: ++U->buffer; yy45: { goto authority; } yy46: yyaccept = 0; yych = *(U->marker = ++U->buffer); switch (yych) { case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case '\t': case '\n': case '\v': case '\f': case '\r': case 0x0E: case 0x0F: case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: case '[': case ']': goto yy45; default: goto yy55; } yy47: yyaccept = 1; yych = *(U->marker = ++U->buffer); switch (yych) { case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case '\t': case '\n': case '\v': case '\f': case '\r': case 0x0E: case 0x0F: case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: case '[': case ']': goto yy43; default: goto yy55; } yy48: yyaccept = 2; yych = *(U->marker = ++U->buffer); switch (yych) { case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case '\t': case '\n': case '\v': case '\f': case '\r': case 0x0E: case 0x0F: case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: case '[': case ']': goto yy49; case '-': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': goto yy48; case '.': goto yy59; case '@': goto yy57; default: goto yy54; } yy49: { U->host = Str_ndup(YYTOKEN, (int)(YYCURSOR - YYTOKEN)); goto authority; } yy50: yyaccept = 3; yych = *(U->marker = ++U->buffer); switch (yych) { case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case '\t': case '\n': case '\v': case '\f': case '\r': case 0x0E: case 0x0F: case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: goto yy51; case ' ': case '#': case ';': goto yy54; case '?': goto yy60; case '@': goto yy62; case '[': case ']': goto yy63; default: goto yy50; } yy51: { *YYCURSOR = 0; U->path = URL_unescape(YYTOKEN); return true; } yy52: yyaccept = 1; yych = *(U->marker = ++U->buffer); switch (yych) { case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case '\t': case '\n': case '\v': case '\f': case '\r': case 0x0E: case 0x0F: case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: case '[': case ']': goto yy43; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy65; default: goto yy55; } yy53: yyaccept = 1; yych = *(U->marker = ++U->buffer); switch (yych) { case '%': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case ':': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': goto yy67; default: goto yy43; } yy54: yych = *++U->buffer; yy55: switch (yych) { case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case '\t': case '\n': case '\v': case '\f': case '\r': case 0x0E: case 0x0F: case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: case '[': case ']': goto yy56; case '@': goto yy57; default: goto yy54; } yy56: U->buffer = U->marker; switch (yyaccept) { case 0: goto yy45; case 1: goto yy43; case 2: goto yy49; case 3: goto yy51; case 4: goto yy61; default: goto yy66; } yy57: ++U->buffer; yy58: { *(YYCURSOR - 1) = 0; U->user = YYTOKEN; char *p = strchr(U->user, ':'); if (p) { *(p++) = 0; U->password = URL_unescape(p); } URL_unescape(U->user); goto authority; } yy59: yych = *++U->buffer; switch (yych) { case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case '\t': case '\n': case '\v': case '\f': case '\r': case 0x0E: case 0x0F: case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: case '[': case ']': goto yy56; case '-': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': goto yy48; case '@': goto yy57; default: goto yy54; } yy60: yyaccept = 4; yych = *(U->marker = ++U->buffer); switch (yych) { case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case '\t': case '\n': case '\v': case '\f': case '\r': case 0x0E: case 0x0F: case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: case '[': case ']': goto yy61; default: goto yy55; } yy61: { *(YYCURSOR-1) = 0; U->path = URL_unescape(YYTOKEN); goto query; } yy62: yych = *++U->buffer; switch (yych) { case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case '\t': case '\n': case '\v': case '\f': case '\r': case 0x0E: case 0x0F: case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: case ' ': case '#': case ';': goto yy58; default: goto yy64; } yy63: yych = *++U->buffer; yy64: switch (yych) { case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case '\t': case '\n': case '\v': case '\f': case '\r': case 0x0E: case 0x0F: case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: case ' ': case '#': case ';': goto yy51; case '?': goto yy68; default: goto yy63; } yy65: yyaccept = 5; yych = *(U->marker = ++U->buffer); switch (yych) { case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case '\t': case '\n': case '\v': case '\f': case '\r': case 0x0E: case 0x0F: case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: case '[': case ']': goto yy66; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy65; case '@': goto yy57; default: goto yy54; } yy66: { U->portStr = YYTOKEN + 1; // read past ':' U->port = Str_parseInt(U->portStr); goto authority; } yy67: yych = *++U->buffer; switch (yych) { case '%': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case ':': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': goto yy67; case ']': goto yy69; default: goto yy56; } yy68: ++U->buffer; goto yy61; yy69: ++U->buffer; { U->ip6 = true; U->host = Str_ndup(YYTOKEN + 1, (int)(YYCURSOR - YYTOKEN - 2)); goto authority; } } query: if (YYCURSOR >= YYLIMIT) return true; YYTOKEN = YYCURSOR; { unsigned char yych; yych = *U->buffer; switch (yych) { case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case '\t': case '\n': case '\v': case '\f': case '\r': case 0x0E: case 0x0F: case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: case '#': goto yy71; default: goto yy72; } yy71: ++U->buffer; { return true; } yy72: yych = *++U->buffer; switch (yych) { case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case '\t': case '\n': case '\v': case '\f': case '\r': case 0x0E: case 0x0F: case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: case '#': goto yy73; default: goto yy72; } yy73: { *YYCURSOR = 0; U->query = Str_ndup(YYTOKEN, (int)(YYCURSOR - YYTOKEN)); YYCURSOR = YYTOKEN; // backtrack to start of query string after terminating it and goto params; } } params: if (YYCURSOR >= YYLIMIT) return true; YYTOKEN = YYCURSOR; { unsigned char yych; yych = *U->buffer; switch (yych) { case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case '\t': case '\n': case '\v': case '\f': case '\r': case 0x0E: case 0x0F: case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: case ' ': goto yy75; case '=': goto yy78; default: goto yy77; } yy75: ++U->buffer; yy76: { return true; } yy77: yych = *(U->marker = ++U->buffer); if (yych <= ' ') goto yy76; goto yy81; yy78: yych = *++U->buffer; switch (yych) { case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case '\t': case '\n': case '\v': case '\f': case '\r': case 0x0E: case 0x0F: case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: goto yy79; case '&': goto yy84; default: goto yy78; } yy79: { *YYTOKEN++ = 0; if (*(YYCURSOR - 1) == '&') *(YYCURSOR - 1) = 0; if (! param) // format error return true; param->value = URL_unescape(YYTOKEN); goto params; } yy80: yych = *++U->buffer; yy81: switch (yych) { case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case '\t': case '\n': case '\v': case '\f': case '\r': case 0x0E: case 0x0F: case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: case ' ': goto yy82; case '=': goto yy83; default: goto yy80; } yy82: U->buffer = U->marker; goto yy76; yy83: ++U->buffer; U->buffer -= 1; { NEW(param); param->name = YYTOKEN; param->next = U->params; U->params = param; goto params; } yy84: ++U->buffer; goto yy79; } return false; } static inline int _x2b(uchar_t *x) { register int b; b = ((x[0] >= 'A') ? ((x[0] & 0xdf) - 'A')+10 : (x[0] - '0')); b *= 16; b += (x[1] >= 'A' ? ((x[1] & 0xdf) - 'A')+10 : (x[1] - '0')); return b; } static inline uchar_t *_b2x(uchar_t b, uchar_t *x) { static const char _b2x_table[] = "0123456789ABCDEF"; *x++ = '%'; *x++ = _b2x_table[b >> 4]; *x = _b2x_table[b & 0xf]; return x; } static void _freeParams(param_t p) { for (param_t q = NULL; p; p = q) { q = p->next; FREE(p); } } static T _ctor(uchar_t *data) { T U; NEW(U); U->data = data; YYCURSOR = U->data; U->port = UNKNOWN_PORT; YYLIMIT = U->data + strlen(U->data); if (! _parseURL(U)) URL_free(&U); return U; } /* -------------------------------------------------------- Public methods */ T URL_new(const char *url) { if (STR_UNDEF(url)) return NULL; Exception_init(); return _ctor((uchar_t*)Str_dup(url)); } T URL_create(const char *url, ...) { if (STR_UNDEF(url)) return NULL; Exception_init(); va_list ap; va_start(ap, url); T U = _ctor((uchar_t*)Str_vcat(url, ap)); va_end(ap); return U; } void URL_free(T *U) { assert(U && *U); _freeParams((*U)->params); FREE((*U)->paramNames); FREE((*U)->toString); FREE((*U)->query); FREE((*U)->data); FREE((*U)->host); FREE(*U); } /* ------------------------------------------------------------ Properties */ const char *URL_getProtocol(T U) { assert(U); return U->protocol; } const char *URL_getUser(T U) { assert(U); return U->user; } const char *URL_getPassword(T U) { assert(U); return U->password; } const char *URL_getHost(T U) { assert(U); return U->host; } int URL_getPort(T U) { assert(U); return U->port; } const char *URL_getPath(T U) { assert(U); return U->path; } const char *URL_getQueryString(T U) { assert(U); return U->query; } const char **URL_getParameterNames(T U) { assert(U); if (U->params && (U->paramNames == NULL)) { param_t p; int i = 0, len = 0; for (p = U->params; p; p = p->next) len++; U->paramNames = ALLOC((len + 1) * sizeof *(U->paramNames)); for (p = U->params; p; p = p->next) U->paramNames[i++] = p->name; U->paramNames[i] = NULL; } return (const char **)U->paramNames; } const char *URL_getParameter(T U, const char *name) { assert(U); assert(name); for (param_t p = U->params; p; p = p->next) { if (Str_isByteEqual(p->name, name)) return p->value; } return NULL; } /* ---------------------------------------------------------------- Public */ const char *URL_toString(T U) { assert(U); if (! U->toString) { uchar_t port[11] = {}; if (U->portStr) // port seen in URL snprintf(port, 10, ":%d", U->port); U->toString = Str_cat("%s://%s%s%s%s%s%s%s%s%s%s%s", U->protocol, U->user ? U->user : "", U->password ? ":" : "", U->password ? U->password : "", U->user ? "@" : "", U->ip6 ? "[" : "", U->host ? U->host : "", U->ip6 ? "]" : "", port, U->path ? U->path : "", U->query ? "?" : "", U->query ? U->query : ""); } return U->toString; } /* --------------------------------------------------------- Class methods */ char *URL_unescape(char *url) { if (STR_DEF(url)) { register int x, y; for (x = 0, y = 0; url[y]; x++, y++) { if ((url[x] = url[y]) == '+') url[x] = ' '; else if (url[x] == '%') { if (! (url[y + 1] && url[y + 2])) break; url[x] = _x2b(url + y + 1); y += 2; } } url[x] = 0; } return url; } char *URL_escape(const char *url) { char *escaped = 0; if (url) { char *p; int i, n; for (n = i = 0; url[i]; i++) if (urlunsafe[(unsigned char)(url[i])]) n += 2; p = escaped = ALLOC(i + n + 1); for (; *url; url++, p++) { if (urlunsafe[(unsigned char)(*p = *url)]) p = _b2x(*url, p); } *p = 0; } return escaped; } libzdb-3.4.0/src/net/URL.h000644 000765 000024 00000016441 14652556761 015276 0ustar00haukstaff000000 000000 /* * Copyright (C) Tildeslash Ltd. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. */ #ifndef URL_INCLUDED #define URL_INCLUDED /** * @brief **URL** represents an immutable Uniform Resource Locator. * * A Uniform Resource Locator (URL), is used to uniquely identify a * resource on the Internet. The URL is a compact text string with a * restricted syntax that consists of four main components: * * ``` * protocol:// * ``` * * The `protocol` part is mandatory, the other components may or may not * be present in an URL string. For instance the `file` protocol only use * the path component while a `http` protocol may use all components. * * The following URL components are automatically unescaped according to the escaping * mechanism defined in RFC 2396; `credentials`, `path` and parameter * `values`. If you use a password with non-URL safe characters, you must URL * escape the value. * * An IPv6 address can be used for host as defined in * RFC2732 by enclosing the * address in [brackets]. For instance, * `mysql://[2010:836B:4179::836B:4179]:3306/test` * * For more information about the URL syntax and specification, see, * RFC2396 - * Uniform Resource Identifiers (URI): Generic Syntax * * ### Example: * * @code * URL_T url = URL_new("postgresql://user:password@example.com:5432/database?use-ssl=true"); * * // Retrieve and print various components of the URL * printf("Protocol: %s\n", URL_getProtocol(url)); * printf("Host: %s\n", valueOr(URL_getHost(url), "Not specified")); * printf("Port: %d\n", valueOr(URL_getPort(url), -1)); * printf("User: %s\n", valueOr(URL_getUser(url), "Not specified")); * printf("Password. %s\n", valueOr(URL_getPassword(url), "Not specified")); * printf("Path: %s\n", valueOr(URL_getPath(url), "Not specified")); * * // Get a specific parameter value * printf("SSL Enabled: %s\n", valueOr(URL_getParameter(url, "use-ssl"), "false")); * @endcode * * @file */ #define T URL_T typedef struct URL_S *T; /** * @brief Create a new URL object from the `url` parameter string. * @param url A string specifying the URL * @return A URL object or NULL if the `url` parameter * cannot be parsed as a URL. */ T URL_new(const char *url); /** * @brief Build a new URL object from the `url` parameter string. * * Factory method for building a URL object using a variable argument * list. *Important*: since the '%%' character is used as a format * specifier (e.g. %%s for string, %%d for integer and so on), * submitting a URL escaped string (i.e. a %%HEXHEX encoded string) * in the `url` parameter can produce undesired results. In * this case, use either the URL_new() method or URL_unescape() the * `url` parameter first. * * @param url A string specifying the URL * @return A URL object or NULL if the `url` parameter * cannot be parsed as a URL. */ T URL_create(const char *url, ...) __attribute__((format (printf, 1, 2))); /** * @brief Destroy a URL object. * @param U A URL object reference */ void URL_free(T *U); /// @name Properties /// @{ /** * @brief Gets the protocol of the URL. * @param U A URL object * @return The protocol name */ const char *URL_getProtocol(T U); /** * @brief Gets the username from the URL's authority part. * @param U A URL object * @return A username specified in the URL or NULL if not found */ const char *URL_getUser(T U); /** * @brief Gets the password from the URL's authority part. * @param U A URL object * @return A password specified in the URL or NULL if not found */ const char *URL_getPassword(T U); /** * @brief Gets the hostname of the URL. * @param U A URL object * @return The hostname of the URL or NULL if not found */ const char *URL_getHost(T U); /** * @brief Gets the port of the URL. * @param U A URL object * @return The port number of the URL or -1 if not specified */ int URL_getPort(T U); /** * @brief Gets the path of the URL. * @param U A URL object * @return The path of the URL or NULL if not found */ const char *URL_getPath(T U); /** * @brief Gets the query string of the URL. * @param U A URL object * @return The query string of the URL or NULL if not found */ const char *URL_getQueryString(T U); /** * Returns an array of string objects with the names of the * parameters contained in this URL. If the URL has no parameters, * the method returns NULL. The last value in the array is NULL. * To print all parameter names and their values contained in this * URL, the following code can be used: * ```c * const char **params = URL_getParameterNames(U); * if (params) { * for (int i = 0; params[i]; i++) * printf("%s = %s\n", params[i], URL_getParameter(U, params[i])); * } * ``` * @param U A URL object * @return An array of string objects, each string containing the name * of a URL parameter; or NULL if the URL has no parameters */ const char **URL_getParameterNames(T U); /** * Returns the value of a URL parameter as a string, or NULL if * the parameter does not exist. If you use this method with a * multi-valued parameter, the value returned is the first value found. * Lookup is *case-sensitive*. * @param U A URL object * @param name The parameter name to lookup * @return The parameter value or NULL if not found */ const char *URL_getParameter(T U, const char *name); /// @} /// @name Functions /// @{ /** * @brief Returns a string representation of this URL object. * @param U A URL object * @return The URL string */ const char *URL_toString(T U); /// @} /// @name Class functions /// @{ /** * @brief Unescape a URL string. * * The `url` parameter is modified by this method. * * @param url an escaped URL string * @return A pointer to the unescaped `url` string */ char *URL_unescape(char *url); /** * @brief Escape a URL string * * Converts unsafe characters to a hex (%HEXHEX) representation. The * following URL unsafe characters are encoded: <>\"#%{}|^ []\` * as well as characters in the interval 00-1F hex (0-31 decimal) and in * the interval 7F-FF (127-255 decimal). If the `url` parameter is NULL * then this method returns NULL, if it is the empty string "" a *new* * empty string is returned. _The caller must free the returned string._ * * @param url a URL string * @return The escaped string. */ char *URL_escape(const char *url); /// @} #undef T #endif libzdb-3.4.0/doc/HOWTO.md000644 000765 000024 00000003210 14646624776 015070 0ustar00haukstaff000000 000000 ## Configuring the Connection Pool using the URL: You can add custom parameters to the URL to configure various aspects of the pool. For example, you might have: ```c const char *db_url = getConfigValue("DATABASE_URL"); // Your config reading function URL_T url = URL_new(db_url); ``` This URL might have custom parameters for configuring the pool, for instance, initial and max connections and look like this: `mysql://root:swordfish@localhost/test?initialConnections=10&maxConnections=50` Here's an example of how you would use these URL parameters to configure your pool: ```c ConnectionPool_T pool = ConnectionPool_new(url); // Read custom parameters of the URL and use them to configure the pool before // starting: if (URL_getParameter(url, "initialConnections")) { ConnectionPool_setInitialConnections(pool, Str_parseInt(URL_getParameter(url, "initialConnections"))); } if (URL_getParameter(url, "maxConnections")) { ConnectionPool_setMaxConnections(pool, Str_parseInt(URL_getParameter(url, "maxConnections"))); } ConnectionPool_start(pool); ``` Note: The parameter names used here (like "initialConnections" and "maxConnections") are just examples. You can choose your own parameter names to match your application's conventions. Additionally, you can add other parameters as needed for your specific use case, following the same pattern shown above. This configuration method provides a flexible and centralized way to set up your connection pool, making it easier to manage different configurations for various environments or use cases, and adapt to your specific application needs. libzdb-3.4.0/doc/THIRDPARTY-LICENSE000644 000765 000024 00000002360 13445042537 016331 0ustar00haukstaff000000 000000 This product use some modified parts from the CII software library by David R. Hanson. (http://www.cs.princeton.edu/software/cii/) Copyright (c) 1994,1995,1996,1997 by David R. Hanson. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. libzdb-3.4.0/doc/LICENSE.pdf000644 000765 000024 00000274772 13445042537 015433 0ustar00haukstaff000000 000000 %PDF-1.3 %Äåòåë§ó ÐÄÆ 4 0 obj << /Length 5 0 R /Filter /FlateDecode >> stream xÍUÛnÚ@}÷WœG#µfw}—ªJÁ¡)MHp„”*l‘/©mªægû-µ1Ø„*¤})È2øræÌÌ™3ßq‰ï`ôµ}ž%KÌ¢óÅœîª;Éö™¸úÅWoÆXâ^;â*(3œíAðý3ŠõP^¾W'ЍÍ BxõE7_®ï"LÐCn0z)¼Ç7è³Ù¬ׂn„£ñép:>™~6‚‹¯=Üjá Ã*×nì…à¶e0fZ‡BèøÏ?=-|¬Ó¤ŠŠCÝO×f¾*©y ]Mç=´ðvè· ásÑÅÓª鏸„äq…צ¨µ›®ó6ljÌçò©\G1ò•“Y+Ç E™ž­ØöG ÇiFR`$Y¦ÔÝ¿’qT®~È ‹³|•È2_Í7-Âv7é «¾\©xa¢X‰FŠúx4¸9ìRm麃ã×0êdÙ• ³®Õ&\ùq[þWü M#À"*£»¨ˆWwy”?ïò*¢' ›qÓl€³ž³-3mž§æó.N›à4‰âQº€ŒŠg”Ö…|Gî1ƒQ¶Åû;ŠÜóÛ0m†wr^‚T!ÓR.p2½Ÿp\Ã%7ùW‚Âu:8m†A–¦Š"/YÇåê)–»¶ÏE)“â ”i8%îs㟤O564PèwÐ"IÞ|#ó¸=C¾NK2̳ô×Ã:§ÉËÒwê_•ǺX¥ˆp}5¦Ù\Ê„q‹ö}8¼0=ÃÜiXte»õÇWå/,j] §›M¸Ì{šÊFF ѽĦ ” &YS´uާmª›–I´5µØº´÷2¹ç…+ *w$†–4s5ÇÆà©«†É|™ÊÈ_Th³Œ[žå5K˜Vf-ýìügÃóáÕÉ“ëÁx€Žáùt¸sÃËß8â1 endstream endobj 5 0 obj 712 endobj 2 0 obj << /Type /Page /Parent 3 0 R /Resources 6 0 R /Contents 4 0 R /MediaBox [0 0 595 842] /Annots 15 0 R >> endobj 6 0 obj << /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] /ColorSpace << /Cs2 8 0 R /Cs1 7 0 R >> /ExtGState << /Gs1 18 0 R /Gs2 19 0 R >> /Font << /TT2.0 12 0 R /TT1.0 9 0 R /TT4.0 14 0 R /C3 13 0 R >> /XObject << /Im1 10 0 R >> >> endobj 15 0 obj [ 16 0 R 17 0 R ] endobj 10 0 obj << /Length 11 0 R /Type /XObject /Subtype /Image /Width 138 /Height 72 /Interpolate true /ColorSpace 20 0 R /Intent /Perceptual /BitsPerComponent 8 /Filter /DCTDecode >> stream ÿØÿàJFIFÿâÀICC_PROFILE°appl mntrRGB XYZ Ò acspAPPLapplöÖÓ-appl rXYZ gXYZ4bXYZHwtpt\chadp,rTRCœgTRCœbTRCœdesc@ocprt8vcgt¬0ndinÜ8dscmLòXYZ tK>ËXYZ Zs¬¦&XYZ (W¸3XYZ óRÏsf32 BÞÿÿó&’ý‘ÿÿû¢ÿÿý£ÜÀlcurvÍvcgt¸R¸R¸Rndin8¡HW K…šá'®¶P T9€€€textCopyright 2007 Apple Inc., all rights reserved.mluc enUS&~esES&‚daDK.êdeDE,¨fiFI(ÜfrFU(*itIT(VnlNL(nbNO&ptBR&‚svSE&jaJPRkoKR@zhTWlzhCNÔruRU"¤plPL,ÆYleinen RGB-profiiliGenerisk RGB-profilProfil Générique RVBN‚, RGB 0×0í0Õ0¡0¤0ëu( RGB ‚r_icÏðPerfil RGB GenéricoAllgemeines RGB-Profilfn RGB cÏðe‡NöGenerel RGB-beskrivelseAlgemeen RGB-profielÇ|¼ RGB Õ¸\Ó Ç|Profilo RGB GenericoGeneric RGB Profile1I89 ?@>D8;L RGBUniwersalny profil RGBdescGeneric RGB ProfileGeneric RGB Profileÿá@ExifMM*‡i Š HÿÛC      ÿÛC  ÿÀHŠ"ÿÄ ÿĵ}!1AQa"q2‘¡#B±ÁRÑð$3br‚ %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ ÿĵw!1AQaq"2B‘¡±Á #3RðbrÑ $4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚâãäåæçèéêòóôõö÷øùúÿÚ ?ýü¢¾Oýÿn¹õˆíð—ö“¼HügÈš­2¤+âxãPïªaõ‡h× "~ò1€Ê¿XW6KFŠ.ñ’º6¯Bxiºuš (¢ºLBŠ( Š( Š( Š( Š( Š( Š( ÅŸø(‹4OxZãSÕ5½Oºsí¥þ™«,Riת¦âÖîÂà02G V¹µ™z•¸¶oÞ$hÞ³ÿ¸ÿƒ<ñ/£ÀðP_xkÁÿtôeñ ×Å£x¦5\¬ë2“¼åFZ6!Iå ÎÕü©¿øaàMGð~¾4 ëN¾ÐÒäٛוVâ+©šçM ·Œƒ¨ˆÌ‘FÄÉ\!pÁk°ð×ÀO…:ž‰}Ö½ðòòâÆ{‹{ ^ÃT¾“UXoL–AÚÇü|¬‡NR0<‘ò¶òé_/‘à#‘Pt£6ã¾Û>½_ùŸAŽª±šÎ:®§îf»ÿºý’ü8Ð.¥ñóáã5Î<•·¿7&lœ‚%mà ŒŒò+Á}c“)Føýà…`H;šu޹&.+ñ~„>ðüÏáŸErÚt‘Ûé÷VÚF°¯mšæå.bdž}ÛèN¨SÊŒ«f6cèo¾x_Ón¬l,õê¾Òdû>Ÿ¨øòá$Ÿþ×Ó5$4èû¡6¨ì6Ä™ù½9fjÇOëúÿ#ÍXh>¬ý˜Ò¿à·_²6²[ì´7ÂÕØ6µ#Ýñ]Ÿ†ÿà§³‡‹­|zø=sŒƒÿ }‚ŸÄ4ÀŠü+Ñ?f¯…z„Z~›ãK»¯ xkÃ+m ßë·Þž ÑáÊÏeâké[r‹ãpÚaäÅ,±xÅŸ°o‚üw{¨O¬Ã¦øjoµÊº±]7+áˆ-bY4mU7¸_k ¤¥Õ·,òHÌg/ûRši?ëoó6þϺºlþ†<ûG|<ø…p"ð<®JÀš~·mrÄÈk³##kùSñßü×EÐD²ø—áÕÖ™{ml—L²ÓnÀÓ5»‰‡™áÑs fuµµoí9ýá(Ñ BÓ4Ÿ Þ| :Ì¿þ,|IÓD²Õ –«£kú¾o+Z\«X_­·ÝuÕ£2Ãmj›T<{÷ÉÌuÓ \&®ŒÞ÷?ªú+ùËø}ÿ"ý­¾øžËEøñþOI+\YÛvçL×,nnàÓáÔÙ'¸’š8–ÊFI&Wbnbd?/¿ü"ÿƒ˜þ2øH{ÏÚKá—‚|Y¥A‘z÷ºMÜþ¹‚ÇTBÖWw 3]@žiÀyªàeŠ…•h¾¦2ÁÎ'í­ð/Àÿø8ßö{øk³ã ñ—Â}BÿJ‹ÄÚ4†ÞÑò2Iqkæ¤,¬¥Yfò™7*ägí„ßüñçÃÇUø)â¿x³NVØ÷N¡ÚDÝÕÌlv0Á[c‘V¤žÌÂt§‰UcëùÒcÒ¨h¤Ç¡¥ Š( É-sþ qãOؤ©-„óÏåÏjñyka¼EäØ\Ú ¦DÖDØ<:ëü>ÿ‚]kÞ×m/ü7{i§$Omy )k ÈdÑdüÁªG™£;ƒ³ùˆ¯ÓõðfšÖΟe‹lÂã˜3è jÊè0$›¢D_½÷ˆ$ýx¯šþÈ®ãËϧõý#¹cZÙøsþ õâ}#WxtK{KM)ãžÚÛì÷H„e–mJe¶koIÝ’­Œñå“MýŽõ¿ ê7ºÇŒ&Õï­ÒN£ GåšÞæ ºÜqÄŠ ´÷Ã<@vS³a%OÜqÙÆŒ[bnn¤´­lÊ}«Î­Â؉§Ë_ðæ'Œæø¢~ok?°¶©ã¯hËñ¾!×t+½)´_iw7«x‚Œ²hV³mÂÈ–ÊÈ%’2¿<¤IæÛy[Ø ïY‹ÃÖ~6ðŸˆõ…އâ™.Ó_©mjŽ>uœò;úÓ$Ó ©hÓ(ÛÔí)õ¯çN|3ŠçR}>k¯¯kú{½#å/)øññö Ù…¬xÆÓâG‡ì$kz´–×ÑÜÜ]êÑ‹U¶—H¿º’_³[Y-¼0Íw+ÚÂL‹+È ²Hc$í?`x›Á×ÖìIš÷áÄ1‚ãâmÅÌVêotû-%ãM2ÆÕ$C;µÔ×— ·ï¥B§8?;øŸþ ÷â…¿|e>‹šG‰üi¬j:µµäpFëw=ºÃàä´Qΰ4{wHaxJ#¼l¾VÓÌq¦éR´š]nµºìÞ‰^ê×mt¹¢„ëÅJ'ýv9þý¥bÛCÆ >+ø9ÿh xjÿʵº±¶{Çhñ¤±štI]c–0â[dmÀîe5úEûÿÁv¾~×–v°6·©|9ñĦØé^2´:féÕ¶´Q^mf`à®Ô”¾F ƒÅ~R~Ö_~&þÀþ©¦7‹õ«»_‰úÿ†µß‰~ †%R\óJÚ˜Žî¯º_ÜÍ÷•%µRTrÜ—íWã?x*ˆrþÛÞ øq¯h’øy¬üâ ǧâ )ãI!µŠÚÉihÄ“Ía$QÄ®Ò2 ö0Ù¥J³äqM[t÷Ù=›ÚîÊÏ®œU°ÜT“ßóµÏé> Òê’ÙÖHäPÊÊr¬ ‚:Š}/Ÿ ÿl?ÚþÕñÃÞø}ñoH’!§iú¶¡àîl´U»´ŠäØ\ÊêÞe22~é£uùKœ?c¿`?ø/GÃÿÚ›Ä^ð'Ç«{‡?5ë`š zÔ-d¹hDÑÆ·!+KYÊ¥ŒØاZ5kfyõ°S¦¯Q÷­}(­N0 ô¢“$ƒ¨h¤Þàæ“Ìõ¥Ì€uÅœ2ägü)¯/š…c,¥—!‡QŸëSí#Ü i æ¼×âWÃ{Éâ{»MSZžˆ‰#¤Ð±çœʨüÅx¿ÅÙ×_øÁðËQo…~2ñ¿…¼GL¶’Áâ;ëtº\¤ÌgêOJðñ¹ïÔeiÑmwVÓÌíÃá#_z‰zŸXŒ\·ÅÝËÅm'Ä ½†¥<ÜÆ:Iåoö[!O³üX»ý¨ÿࣲwÆë_ hzå¿Å;KÛ‘ •†±¢C~Óó¿h€E:ô ³·¿5úÛû6ê_>0|gý²<'áßx®å6-¶«¶£GŒì^5ò¤W$l sŠíŽ&ž>“T]ôéù‚©ƒiÍ«tÔù—þ S¡xªîÞ]/áòM©øËÃÅ¥ðÕýùI}c¨Fð\ÚeT+˜æŽ–€x“‚OÉ_¶WüßÄþ5ðÆ¯©|¸/à߇:]¦Ÿmfê¿f·Tº[l ™K,ŽIÚ ±êkõ“ÅÚì=…„ÿô©%¿°ž2ÒÅøË‡Pe‹![ÛÔgi÷ÓÐõtÛ[¨µ©áû-̯2¹R"±’dm'žq÷ˆ¯‡xŠ”*ÎúNî×Û¥·é¿ã©éP¯*tãeuùí{}߉ù%ÿ øùÂÏþ _€ÚEÔ¾M2¤^ÙÀ²…²¿¶_:3£ UÁq,r‰Û‰••ð ödø7û-xßão‚¼7áë”×u&K¿O,¿Ù7ó˜ÕšÙ Y[Ƀ$Q­³4jѲOªïû=ø×\mWAðö—wæyÅbO9Dƒ8q»;ä g=ëÈ¿hË?ø?ÃÓ·ìËðVׯ®±2‹ÒÙl¯&Î[µ™ÄQlïÎüž8§7›¡·)¸¸#2°Î>E õö_€~h ¼3ðóJ²ÑôØ e·µˆ"–=]»³¥›$žI5ö™^®›Uuo»¿Ü´KäyøœÆ ¿fµüår‡Á/‡÷Ÿ þx_à ׵_xK·ÓçÕïÈ7Z›Å¡žR:»•ÜzœžIë]EWªx­¹;²¼:„wQ–·t`¬Tœô Gæ©Ãü(¢³§'8¦Ä#*¯$Ts[Gq¤À•“†ëEœ¹Z/²1Vûç-Ï~بmtÿ*D.ï•s+msó9ê9þxÔQXT„`Õ—õt;½‡ÜñtŽ— *“åœlpN2xÎsއ½L-šL•2G8¢Š˜ÒŽ&êkf4ìRO Z&¬·YeR[Ÿ-Xú¾Üoï÷²9­\ÑEtQ¡Oš§“n[‘¼Bt+2SÔ0æ5ojZœ­£ÜhÖVòí&FÓŒ·ó»Ÿ0'LvžùÍTÔÃÓ®—´Wdã±µ¤øn=2ßdÓ\ݱêÓ¾ìñØúZ‚1„AET°ô¨)z!6帴QEl ¢Š(ÿÙ endstream endobj 11 0 obj 6055 endobj 18 0 obj << /Type /ExtGState /AAPL:AA false >> endobj 19 0 obj << /Type /ExtGState /AAPL:AA true >> endobj 21 0 obj << /Length 22 0 R /N 3 /Alternate /DeviceRGB /Filter /FlateDecode >> stream x…”MHaÇÿ³±Ñ—ÅÐÁ$T& RÓõ+S¶eÕL b}wg§™Ý-E"„è˜uŒ.VD‡ˆNá¡C§:D™u‰ £E^"¶ÿ;“»cT¾03¿yžÿû|½ÃURŽcE4`ÊλÉÞ˜vztLÛüU¨F\)Ãs:‰Ÿ©•Ïõkõ-iYj”±Öû6|«v™P4*wd>,y<àã’/ä<5g$©4Ù!7¸CÉNò-òÖlˆÇCœžTµS“3—q";È-E#+c> ëvÚ´Éï¥=íSÔ°ßÈ79 Ú¸òý@Û`Ó‹ŠmÌÜv×Ulõ5ÀÎ`ñPÅö=éÏGÙõÊËjöÃ)ÑkúP*}¯6ß~^/•~Ü.•~ÞaÖñÔ2 nÑײ0å%Ôìfüäý‹ƒž|U °À9Žlú¯7?ûÛ‰j`¨‘Ël7¸òâ"çtæœi×ÌNäµf]?¢uðh…ÖgM Zʲ4ßåi®ð„[é&LYÎÙ_Ûx {xOö¹$¼î̥߬S]œ%šØÖ§´èê&7ïgÌž>r=¯÷·g8`候ï 8rʶâ<©‰ÔØãñ“dÆWT'“ó<çeLß~.u"A®¥=9™ë—š]ÜÛ>31Ä3’¬X3ñßüÆ-$eÞ}ÔÜu,ÿ›gm‘g…6ï64$Ñ‹áÀEzL*LZ¥_ÐjÂÃä_•å]½XážÏy¸[Æ?…Xs åšþNÿ¢/ë ú]ýó|m¡¾â™sϚƫk_Wf–ÕȸA2¾¬)ˆo°Úz-diâôä•õáê2ö|mÙ£Éâj|5Ô¥ejÄ8ãÉ®e÷E²Å7áç[Ëö¯éQû|öIM%ײºxf)ú|6\ kÿ³«`Ò²«ðä.> stream x…UßoÛT>‰oR¤? XG‡ŠÅ¯US[¹­ÆI“¥íJ¥éØ*$ä:7‰©Û鶪O{7ü@ÙH§kk?ì<Ê»øÎí¾kktüqóÝ‹mÇ6°nÆ¶ÂøØ¯±-ümR;`zŠ–¡Êðv x#=\Ó% ëoàYÐÚRÚ±£¥êùÐ#&Á?È>ÌÒ¹áЪþ¢þ©n¨_¨Ôß;j„;¦$}*}+ý(}'}/ýLŠtYº"ý$]•¾‘.9»ï½Ÿ%Ø{¯_aÝŠ]hÕkŸ5'SNÊ{äå”ü¼ü²<°¹_“§ä½ðì öÍ ý½t ³jMµ{-ñ4%ׯTÅ„«tYÛŸ“¦R6ÈÆØô#§v\œå–Šx:žŠ'H‰ï‹OÄÇâ3·ž¼ø^ø&°¦õþ“0::àm,L%È3â:qVEô t›ÐÍ]~ߢI«vÖ6ÊWÙ¯ª¯) |ʸ2]ÕG‡Í4Ïå(6w¸½Â‹£$¾ƒ"ŽèAÞû¾EvÝ mî[D‡ÿÂ;ëVh[¨}íõ¿Ú†ðN|æ3¢‹õº½âç£Hä‘S:°ßûéKâÝt·Ñx€÷UÏ'D;7ÿ®7;_"ÿÑeó?Yqx endstream endobj 24 0 obj 1047 endobj 8 0 obj [ /ICCBased 23 0 R ] endobj 25 0 obj << /Length 26 0 R /N 1 /Alternate /DeviceGray /Filter /FlateDecode >> stream x…UMlUgתŠ´U+•'þZEi´ * ®:i"×ÍRm×ÏñÖ›Ýewí6QO¹T!® „z¨Z~ÔæÒ^ЍTTÈ©H­ ª8â›õÚY‡CÖzö÷æÍÌ›ùfÆKÔ}Ñð<»KÍ;¡_˜Ìξ<{Ltß .Ò¨‡ðfàeK¥ ÆŽëHþí|î}K)–ÜÜ˾:Ï6Ý¥Ë20¡uË-æD|ÿÝXÏU·©ºú$Ö~uB}NR‡I¨/¨ÔçÕ<¤ÃêþÈÆ‡í¼®çÁ7ޅצ§×¨žŒçÜŽúÏ{ç%ÿUËüæÍß:,ÝvÜsˆ«¹ksöÜ$GÈ­ëÿ³!“|];ûåöD„bU½xüfϵ³t$Y‹¨:åµHßNßI¯âûVz-é#ýCz Ÿ[”E½ìˆÙydÇʈëx0q€ˆê¨+G¿·#Ç؅бéGœ¹‘U€ ü ËZÄT²æ‰žèÈ—sgWœs;<ïć̫|½x¯HK}úÇú/úúwú¯úªþÐÏÑ´ú¤Õ%Q÷)o)Ÿ)_)—”Ï•ë$”+ÊŠrY¹ª|¤|ݧ®(—à…u[=×ì±vfšq1ܱAÄk3o,mEp gë™Kä¶ñ†Î~nߥÔvjjyíaíqmBëÕöi´mÚ Ö€6ªíÆÉÎvߨq5y¶’=kÑlÄf³’UüúˆÒÀg=.žS‹f·E§#‚¨fàÿÓÊs…¹H½‚ÞµÔ]ê€:ÏQV݇I!ž´ÌH&ŸÉ’Èôf†3™ÃŒ}sÊDf7N‡ñ=ÒΈY1“:yÉ„sÚd{}^ø_‰{‰½4€mìd(ÏàE”s½ßš«†bPןY¼"¥sÌþ>aضˆŽáË@ú Yî'~ÿ²ÑG£÷jjëu³î7š2J¥¾&ú"jˆê endstream endobj 26 0 obj 1088 endobj 7 0 obj [ /ICCBased 25 0 R ] endobj 28 0 obj << /Length 29 0 R /Filter /FlateDecode >> stream xÍY]sÛÆ}篸}29CAHðÃítÆVdÇÕv*¦žLÕ‡°$QÄðÏö·ôÜÝÅ‚¤@ZåS“xb äîý8çÜ|§_é; ðo8 i: ¨ô2º¾Q>EŠ|Ržò“µûLªÿ6 T3¥-:¯ø >þãL¾ðŠÿÇçFkz?'d;"6ð¡ÒdЙ¯éz>¼¾5_P÷ãçßèãíçÛ¿¿»£¯¿½¿ûtCøsûùþ¶GóÓí\;ÔvCÇç[ùÞ£¡7F§nø'uÿÑ£0¤®,T’g4ìS0£_ªLR0Lzô¯Îü—sÑÌÜ3#2ð|òýiË%7ùfW$ËUIÝ›‡ž>›>½>Ý•’îóE¹EôÏô!¯²X”0¨OŸ²È£¿Àª A¶G¥ïxã¶0wL˜mÃÉÌ›†³ñ óVe¹y{}½P /‡ŒZ^›+;:ÈoÒ–qÐͽ»ùþ¦5Áû·y£I0šFÃÀ›Œga2¿Kéé«¡w-ÎúëFç,¥âE®jˆŽÜí³,v9ÒŸ(ÚÈb”¥Œ©Ì)B Id1ʼn*‹ä±*%á³HÓš&RÕt˜fm¨|aÀhÐ`1Ÿ/¨\áò4‰d¦$ÅyT­eVö WR´Ù2É–””la–—$Ò4ßÊØëuÎS¢¹<˜ >8è‡Ç÷ƒ_k\Šõc*÷‘÷#¯Â±7ž3°`:n6‘ÅÁó•$Mi™ÉB¤ôµz„—tg=…?‚5 d_‡<•‹ÒÅb‘¤,U utFòr% zJ²X·͋'å]dw0˜‹µÛ¦CÛ°ÎUé ±œehC6…ˆÊ$‚ƒÚ¯­±±TÉ23x*Å“$±;ÚåU±çwœ¯ojÕ蟭3/©×i„àÕéü= œÁ-DÍÆŠèýÑÎÊB(œÏS’•2‹#ËJ?KçˆUµó޶=šzÐæ´OÇJæ  _p>‘¬ã‚6Lù²ë«+DuÍQW•ËhTn-|¯Áßq‚9ñ0ÌST)Üã}Cñ˜tºÀ*Ç ‚nÀpVÐñÝ =A¢+¤Íâ™d9¸‚Œ³Cúü™uDl6)«—HUÎÈÙÎ"™ñëâ“J¡8ã,N ÛÇÅe€ ƒWDU®r×ßÁß§n^Q$2m!߯Öi¶$V!úy~–ð§Q4µòm%3Ú()žXRZPa@Þç5D­°EÁ* {›¯‚}­Ø›Šô|A>>¶j!’á º/ç˜b[+W,¦LÃQsL°úU®DÉÁ¥•x–Ζ³+{•Ï<Ëw‡-{âC×ꢢ[ ©ÅLYS²Ðwmµzè1{ìå—¡ ÍKbÔŒd‡ÀoØIH], tfl-%*)þ³AÉðãžEü«½ÌñCþð!ÌgTÿ B8ø¨Œ2¹ÝKüYº#mtÄ/Ó6LZ¼:F>‡ØEï)Ë·:®lt 2¯$Œc³% â%•c¸ß"¹Ê1¯éÙ(l)# Ÿ‚tŸ N‚™4%¢6Z>£‘1ÚÒ(-Ê],³Ó…ágl6‡px…Ba·P«¢Î+êOÁŸ¶‚O±c8z1w˜’ï¸Ì-±îËû ?"Y”¨NÕE'yLÒ¤d)µhj%ÌKõÙOû•u' Öº·§ÎÏ9zRê†a[ù¨}ƒÔ!lÛ!í¹là·PåËð3ië0?À_ù‡XoRTÎs±RU´BSühÑuÈZI6‰PÕK#¦k3-$Žc ­+ôg¡ð,cáb·jG£dÍPÃ/ógÚV/ø|%Ö:vMó£p¯•5w9kQ ¨þHÙ§mUc»ëuP¡ººÂõ´¤ÁïZÀ´Ç ‡kÞA8 0f–{u×8|9/wµ±j™Á•èSÀ`NRPFþqGZ„ð·¤–‚ÿa2q5kä·‰ßO4ÇXfCËÒ‹›L³úõ®ÁɱÑ6)WTn! ¥Ü¨·çt²ŽŽ‚¶áà¡ëc Ö zb1s>Qq0Ø÷õ¸òÐ ðÜâOϰ˜˜ôÂãOz„Ýk¡E@ºF`½ž•–És­Š©\bÔгªÒ; ž‡Õ9{"„bq Ô\æýpvÜEtX¡ùzíðÙ¤xìgY8p±Kõ4Û¾9¬8zC¢€ìGèP‹teÙ¤º—×ôÃÓºb˜‰ÍkÁËÎv#ˆj#yG ûAQ9©µXz´ÔnöíjjƇ#¿&n;€føR›ü½Jjí°˜ç˜ÿeÕM:SMñ„_ e;•¸oØõÁ âEZ7š¶i·ÓbìÀúm‚‘ˆ×0C”v1ú_S4±JÉ+…¬•6‡Ü&5A‚ÇΙˊL8h[ìÝçdÀ½ö©všû“ >†çhßTÉs’UTfý£xÃzÎRÍl£÷ü­M%ž É¿ˆ`¡?náƒH1UKˆî\‹¬Z`¹P·²PÛé©PóhÆpæí!ïŒàZ‰,Ê×TJ$Ìê ŽØZ™<˜ÊÊŠÉŠ¢'Û7{Œ°Süe.“—ZºiÓ_iÙDz ƒ#Ôp¬ß€¤+î¿26Øt¬üyU¨èÂ86n`ûøÊã*B­çþë!ˆf\aÌå4ãî$4ç|;IñpضèEô´£DIÄÝŠæÖz:Pf}Te ¹M)ãxMtëN4Ñzk†@αå>;Ê®³`À#ÇÌQÓËÙUÔù…ÃÉ‚Ž^H>šc LòÔcí4A†Ÿl~Ü£¢@$¹G++‹J»c¾X¬õ¼ÀÏc§}"Öª!ÿà]®Ü‹mþœÔ¥î\òNÎVá¸myd¼²1®UCµ:èzʳQG=ÇCŽs2éÌ4……i„tiz]UœÎÆ4h!Ó‡$ãxöÈ´‰¨šÅ®I ï½XÊU )`ÂZ,ût2€OìqŽ´ ¬ãÙ£ûCgJãfÙÌ´Ô-4@WŸË;q .¯Ø»N œµÛ°Žé@S;Üÿ¢ÏZšÊÕ¦*6 K–;lç `ŠWæZø÷ºˆs4^<è’ôœ'Œ-À yY©ä·K/71võzFE®Cf–m¸åUÖŽ G)‹tÀõP&×;øó­b‡[Eˆ8Zä=`×$KQX€°ÐÔ“‡»ÒLå̯¦ÿ@?ë–¤ü^ãô‚ö$^Çx§çbâÞè$ÔÁ@ñ²­’«cRÃÉ ÷NJ4”³<»j‚vÆÃ½ÑÂÙ5껆‹žjX@–s=¯•Yü¸¹F©ì7û0<ÒÕ½B„Ê…Ÿ9¿—éuøåâ¡îõ^Ýñë;û ïú#ÞÁ.Õ©7GSóšqJcŸß±šÌêâê×/L€oß°“f-ðæŸî~º½¿{wÿ³wóåo?H!¯ Ü~8òƒáˆ¯°)tWtéÿüŸæ5"¼&¢á`Æ!¶¸ÛéÍdóÚ …þÈÃK°àð<û~‘¾|êaéÕ&Ó}ùÅg“ßoüõ¿à/‘ endstream endobj 29 0 obj 2686 endobj 27 0 obj << /Type /Page /Parent 3 0 R /Resources 30 0 R /Contents 28 0 R /MediaBox [0 0 595 842] /Annots 32 0 R >> endobj 30 0 obj << /ProcSet [ /PDF /Text ] /ColorSpace << /Cs2 8 0 R /Cs1 7 0 R >> /ExtGState << /Gs1 18 0 R /Gs2 19 0 R >> /Font << /TT2.0 12 0 R /TT2.1 31 0 R /TT1.0 9 0 R >> >> endobj 32 0 obj [ 33 0 R 34 0 R 35 0 R 36 0 R ] endobj 38 0 obj << /Length 39 0 R /Filter /FlateDecode >> stream xÍZÛrÛÈ}çWLñ%`•D¤x{t¼Þ]§|Ù˜òC”‡!0¢Æ4.’™u~%§{f„hO±Ë& €¾œ>}z ¯âOñULðw¾ž‹ÕÍTäJ|F¼zS„"*D(ŠgéLZ¯IøÛD$|e"Äýà'Ö`5nö÷¤^ÓÝ7JÅ_7"¤ctt"¦³ù8\ÍBœlRñj³™'¸js/þ)‚ÍHLÆS¼ýûH\ó··b$f‹ñJ¯ý±þË/þ‹ xõà“»ÑùÒwÿ¹¹b`Ÿ|;ÿ›¿‰·Žã›/Æ‹õtŠ0œ‰Ú³÷lâ-»çÃ-6¹öAùßÝã>5‚Ò~Av² ðWâÞ?4ymS±Á³¹KÅ´•ŠáæA⽎”)ÔPä#"ê^å…(3ñ„O1Ù½(”øíã?Äoʨ\&âj›èÈ_< úX5_º0ÖVÃ7ÙþëÝC92)2‘*i ù£×‰~T"‘Ï0ñA–Bî÷ɬÍ`a.µ‰ ²÷9Ë‹+QTу…(Tª£ÌÄUTf¹HeñXÀæÍ—‹©ïˆãbuf1²¼ù2¸¡Žû,×§÷Ai Jü‘”†l—Ëô<)Òš`Èm¢ØS\PcQ™a([‰ ñV" n‰ȹŒc÷UÐUˆÐðUC¬í‡¯õ¤ _Zª@.M,†a‘ÞkeJNåAla’‰õ“Ž+d\ ?Œ›";iô¿e "[}p? §ˆóT#ÌRP†±¦Y¬ï0φт h"¼‰{go–’Q2–{à-I臽ÌK_5x€{ÜËâ*ÆÇök¥smvMÂÄ^å©.¨¬®úEz:uDÚ‚a¸PS‰:Ø‘}8 ¾É¨dFby#ä˜pƾ UTII‹­¨4xHˆ°±ùޝކÞ_%óDd|Æ~ëEÓÙÍi!í$LffÈδ×§f§óÅé#€×beðÌGÞÌ6J3™à?ÔA„€Âd~äÂd@X¿½µlìQõöÄì²Å1usA/ó˜Ý{Cör'K÷)xã y?€(­pEèÆÉòŠʪò†ÏY•Ä(DÐ*(@ÄÚÇ$*Á¬Èo¡ˆ9e®ñc¿*\­;0›h¦¯{ºíq;l Ž<ŒÂOþ¼ÍÜ@]¹‰Š#ÿ¥Wý5õìíÇÓØ]«Fn¢¾h¼Û*èˆâ¢ÕˆÉ˜‹Ì—.˜(ÊbÈ*cɃ…¾zizõµÓRhw ®ºÖõÕV·åŽ¡K@køiûE±\¦'õ¢§›%Í´íÑn VXRG3™¹f¯ðÊi}êÁuW?‚Ƚ-}é"‹wDóÄê^ê‚úš:b2pâ—¦D#ì 6>h'ÒÄ{ê`¤ÑŠã§Åê»rÞ/ÏQ¶ÃP‡£Çk ±ÍâƒP® ÝFbM¢ËC’+†s<Í'óŽ¸Â‹0]&j·±;°Wk| -–Q•HÌy¾‚iGgÙAƒš]%wh™Q–>ªgð)Zø£Sša]¬žT’aÞ+ú1Ë<<[‚0ÙÀž`óÃÛÒG’Íg­>ã»¡Š»=DSïõ6‡æ§®Ž` Vj³åRr]§ì¨€P ¤X†ãUÀõC– ` ¯»@¢"dîú˜¼é±3¿ñtW—Y@Ñ äD_T{=ÊëhñA~Aù¿Á€€ÔŒCPâ°McsöºjÆzD÷l9íaÜ[˜Q÷DªÓÐHô¿o#Í]]MÜÊY‚Ñk±–äèÙDr :Ý'vz’ÂW<ÓK«â™7­·HP¯An¾ ;Ôcýpž\(”²{d¡LŸñ9g Ì ®:qnÑKH !IJˆJÌD<ŸKp8¥²?ÏW]üLû`¦$£’ñ\?’¤»¦í8£Ré&†@)¸B¬`Áef€×d,“D‚ á@­ÚŸ—¦*:ÐR  :‚k?Ö]ãÔiæ•Á(Âd 8™ ˜š×°#J,f¥] Öoš R€ŽQwW|¯ïûCÑP¿ü`ýœ¡aCoˆÞdhà ^U 1ñ¶¥ŽÒ6–«Þauä×Q«%!ŒR¿T6;ÞÌ.AMÚ %H1Õø¥Úx±ç,¦g| %xpK9cOÀ€ÂG¶í§§Ã.»oÑJ‹åJ†tâž4#íQbRw“|ÍÀÍ¸Ž’ºäÇ‹Zl1[vÔøïÙ3úYÝ•1ÔÅ8Ó÷¢¿â´…0®l°“ë}•ïÉÔ2Ëìn¯;*mx[¯²ã}·V3}ù•MÜnVN92ôrÑ»Ùð¶PÅ) üi|[ÍòÊ{ÒClQ!¿¢± K$}YÑ +¼Lëp`~Öí€..»ÑY*>7Ôlîƒ.ùn°ŸúN'²(2H·Á]æ¨\xØçÖÖG]Vüh§Ë/¢íåªYvuBzdñàU+LK¼áúŒFâuêõ€3æ Šj[SI5ªÐ½ÝÔ”5óUØ•Ó;’¦(#Ÿ~Ú¬w{BÍxéÚ‹¡«ÖDS¿ûDtJ{ ±,™”ÓÊÀÎ\>.èÿ Ól±?¤ñUŒu²Ù„&…ŽÍ18i_H@4£N?^^Nº:Ë4õ#ZfZ="/ m*h§· ôv.`7³¯U™!,.£í·.ç®]â´Q¶ ÏÞ2ü zA¤úMbËÙi MŽ:‚—ª•`ïÛ•!™¡]Hlû’Ćøoö~ñÞoä Œø‹ú^Ú¿ú ¿°+^Ú×XÙÆ+±é ÷t)–kßÂÖ ãÏŸ?»wH›wïy{ûþõíïã7Ÿ>\JŠ£´úáüf<™àµᆴúø?ÿÓh}Dtú3OÖÒY‡»ƒ`ƃ4¿:þÙ ÍÛ1~az|?»gˆO¿‚†ý[íŸ6qºj›HoK›Œ„Ø@ò7üó¿a/^7 endstream endobj 39 0 obj 2875 endobj 37 0 obj << /Type /Page /Parent 3 0 R /Resources 40 0 R /Contents 38 0 R /MediaBox [0 0 595 842] /Annots 42 0 R >> endobj 40 0 obj << /ProcSet [ /PDF /Text ] /ColorSpace << /Cs2 8 0 R /Cs1 7 0 R >> /ExtGState << /Gs1 18 0 R /Gs2 19 0 R >> /Font << /TT5.0 41 0 R /TT2.0 12 0 R /TT2.1 31 0 R /TT1.0 9 0 R >> >> endobj 42 0 obj [ 43 0 R 44 0 R ] endobj 46 0 obj << /Length 47 0 R /Filter /FlateDecode >> stream xÍZÛrÜÆ}ÇWLôâeµÞû%z’e;QŠ¶åˆ‰*•ä w'ÂM¸âÏú[rºgz€Åbiró©(®°ÀL_OŸîÁõ«ú¢&ø»Ü.Õf1S¥VŸT¦¾}WMUT©©ª"|Kߤþž„?MTÂO&ê î‚g܃»±Ø¬I¾¦_´n”ªïnÕ”®ÑUˆ²¯¶³íT­ÖÁmª¾½½]Ž'xêöNýSfWêõd!Špàí¹†”¯àˆ°&5Uœ«,¯Éò÷úñ*X/ÔèZ=˜ú7ÑU‰ú*WINþwÖA”s~_–n°Çià±i ì,ᕆ g2̰Ž4×ÓÞÊ>¬fnVÑ }UNÑ”ENþ¼S‡ðžÂ^MÙŒFÝj5 'kZØÐ_£¤©óÈÆ¿¦€:Šv Y1™ˆƒh¤»%ýàÈÍ>¼nmÃÎû4ÊÓ»ð:—%Ñz= Á!vEv;yxÈ:u!EÜ•&LXö‡ƒ‰½`«%c<éðŸS’Ô«MEΠÕZÝQý‹ñ\.„øÍæŒNÇÐeóÃyH¥MUSŽ ü»,3Fìô!Lî®]áãK±qªéˆÏå ÆÂ°xhÎvd=•A  (È@ÁÚn´ñ™0;SÛ †Û9¾ÙAã…ÉB{½ï€J*-ü­ÏSØÃó—‘ŠÙl:€lïˆHLK&Bk17‚aY“¨IQ•³ò£ðp¥¬©fRj#ì…„ðµðeËøN'ùÃUÀp¬ÔÇfgaŒ¶ÃR„¿ã "„§Þ˜Ígª„ 6ÓñU¹Pƒ$¤†Ø5¤Ì44¨ÂòñJê¶F ˆù2³!*:[IïrѹåŠÁ ý#Z–*±öLÓ“ÐZ¦ðǽã•0óË¿É"žXúEüúþ«oÜCòð[Ì?²w7xzœôžø«l'rÉ·Tí7“M~tKxqD]Ï¢qç|5Ï|+¶m½ú¯ßõ7öËy[5n#¿îýU` ìõ;YWd‘/D蛾!«VÆñeq¹™·(HŸòs>P+U$KÔN«XëÙT„eMøf Š1ÙýÎè§L,˜wOU":dy’ïM„ê°j`8Û´iÄ•™Ãƒ$©»&ù-I(/ªY³í¢ÕÕ÷d92$ˆ‰»Û¹¬MúÄe ]åû¿´UHIiÒa ça {6Qß#eÓøßt»]qõ®Àד°TP€i …Z†_ÒÕë"eæ“!‚$\Õ¥¡±~Á¦¹à@«ªAÁ=2{õdí‹æ³!"ðéâÜ'€kìöh‹,¿¾æB ÂðDï <,'^°3h«:˜Þ‘0~,{uÍ©"!e.`Óó9‘€à¨ÿBÔ~¥öÃZmH"”†~ PËúͧL€@•6)29Ë5RŸ°ê#ÑÌÔ¼w d‘hyÊMlCLÖÊç=º"±©¢$4)»Êp7æZOnHUŽ*ËYDÝ¡µ’BDš¨5)ê@Ùƒ:ƒi‡ö{OlžY Øo*ê©ÊêúIEÜæ´æÎW“šËl2‚ž:ıH²ó‹Aç†ã äà±ø½ ´ ö¬l*ÖóX¿[¬Re¤Gƒ£wRJúã^žð5,ÂV)‘R[¤Tˆxí¿£]Œ×TyÂ×´]¿üøBè‹›­TÁÈF‘¬pÏÊö~u_™/C ÅàŒb¸Ä\b‡(M Ì»%¤å±Ý9Í“uF-ŽIGõM­o;#M¨e0@cCà…zhŒ¢ŽzµAæšè§2ñl/fC¤Z&jò¦—åÙWái}žª&Ž[s­T–t¬'þŽ›Jª(kïåoìt ìpóF}Öº€bu”¡’o¯Ã, ÈSe‚3<ô4óÓðÕ— tÔ)²B°h–g¯eÆÅ„ÚÊ0¦Ù<Š;PM¨ ½&aWÈ{§u48aÒgq±âbGÂ]¥ÑxX^„;,iòùø†E-¶¨ yd†\44ƒƒx‘ì‡Ê“Ò¥x¬÷ý‹ÖB»u „kdüCËåey‘Üß³œ§ggsp‰ < öÃWH'“Ž]XYz~‚ôÌÏéj‡¯0{ôp7uôâÉIr  «#>®¸(.—s©ûÝI;"Ë<\!nØ´ ò-ÎÏûÂã©Tk‹çª0FkÇ|‰ÐëÉx³^âðGæ ^äQø¯«ßÍ!JäËb3›­„Ó²[Ø”=È#¶Hв&Å+51rA_)Mˆä„j4•@/•®Ð—ðDߘUŒr‰´?Šýê,Êwgwt³»LùÓ•þå­( ޾è5¢_¢¦[ZèÐ u¶W]_bŒÖƒƒ½µÝVâs=¶'aRüpB"b¦äKë2:yhçûý{Púe¹•øWg¸Ê«K|ºš ·]äÓ•àSKþP†ÆÆrDBÃÞöˆ[â -e~|Ä” >˜gÈ’ lRšf¸Š“‹ ƒCêÏê/;&ó] 6öÄRìPÿxìÁ€)Bq)õvn Ã„Ìs‚–ÒPøuF<âX0¸Ø*aÀcðkasl Ë’Ðß¿ k[µ¸¿?>_U#‚‹ÄwéÄ‘†[h<%V÷rJ'°,IpÈH]hàõ,pDîuÜ7 Ñ>š÷Îl»Þ¿L—ÁN!Óµ%v.þús»Îì€qÎás†CJC h‡¸:8Œ¥Ž¿ð†=lc!á\¼~²ŸAÏÕºS:ìØq#Óèèû)úuZ:VB¦½·ÉlŠÒˆ%Úâß4R°p‚¦ác¦±öÇTE®úö¤IºááÔÏÜ UoÈùšÏ¸·x™Àn÷ÁE¹¿¨KjÃs3t8ÝWÕaém‡éŽh1£yŽø¿Ç[O†:¤·„M† 2|”7ì¼Î½!ÀMŽW‰6.ÜoŒÿ BÈp˜=.lóŽäÇ8 Òã* k4ïviLØ0·# ¬ºî8iùúQêßâYO—#$ËŸ Uÿ5 !CâÁ;0׫"y‹È\3o 1 †Ø¶çâ3ß¶Óc†‰Iªû©ÓY ½žT9dLUç%°‹:.„ÆÇ@ * 2ØsÀ¤o?À)êU¸ß‹é‚W’]Gë"$x¬šÄN¤å4·ƒœäAä%&ù‹`½uÔüd =²ƒIDM µ1…çÛÞVV~yÃcyÒ('¡; ±ùŵMªhÏ•ÝÄAž,;Ý‹ÃszåHlWòð²\…fuåð>Ý·›zûêÜ>ûšÙF­¦ôVÉz+¯ÕM;ï™}úôÉÞ¾¿ùþ‡7o?þyüî—Ÿžê0‘òtnî·˜bä9™Ì´…ë0ý#õþ§m¹`ÑÙs,ºœlɤóuƒ¦ÍÞqÏôÐrºãµÇÙñz ¿üØ…çŠ8ÛtE¤#™Ö#Ói+ã¯ÿ¼+ endstream endobj 47 0 obj 3362 endobj 45 0 obj << /Type /Page /Parent 3 0 R /Resources 48 0 R /Contents 46 0 R /MediaBox [0 0 595 842] /Annots 49 0 R >> endobj 48 0 obj << /ProcSet [ /PDF /Text ] /ColorSpace << /Cs2 8 0 R /Cs1 7 0 R >> /ExtGState << /Gs1 18 0 R /Gs2 19 0 R >> /Font << /TT5.0 41 0 R /TT2.0 12 0 R /TT2.1 31 0 R /TT1.0 9 0 R >> >> endobj 49 0 obj [ 50 0 R 51 0 R ] endobj 53 0 obj << /Length 54 0 R /Filter /FlateDecode >> stream xÕZ]sâÈ}ׯèøITÙ ƒ!o³“dR³;Ù¶¦RqÑ€v%5£–l“;¿%çÞî–ó”ìGÙ!õí{î9çÞæ«øE|ü;žÅô>…_D.Þ¼3C1&Æ»ôNV_“òo‘ò'S±«à‚kp5nö÷¤ÞѺoœ‰æbH¯Ñ«Xʤ?™E³¡˜<óL¼™ÏÇý>5_‰‰pÒwƒ~$Â~OðOá~¾óoh÷Bî~>Ù7‚Pù+vþ—äàÒµûÛßógáþ=ƒðî³¥r)ü¥±ÿ¥~œ¿Û{w©ÿ¨ûHfþ#Æÿ‚àþ-æ?Î9C[6³;6k6l:sµ6ìŸ=1E¨+‘Ɉuþ¤vBâ—'… §"TKñ¬‹?D’ ½ø]Å%Þ\*±ÒE&ª|© Qn”(U‘¡WÂàŠDçFÜ ™/ÅøVl‹^@7ÒOÉ7+7²;ƒþôa,†Q$,|ël„ò±×ó߻ӨJ¨Ó:ìï§Ñ¨ëN(„w6‘´í¤%ù­Ð…PÙB/ä‚þ–b»Ù™$–i“©e…4?†I§ïRë¢ebÊ"YT”e‘©eRe½Û³‰<½øÑèp°xÇ:ÛÊœV¸Ø1¼|æP§û™cˆ"sß^p1$Ų*8ÙuTv"®L©3Y$éNTWÁÂèUù,ÔÙ udàþ¾D`©(ÉQ¶‚âÌ×êUUëa2™=\œƒÉéEßéÿ&í&²?‰ÏER– $EE@¢þÐ Cø'®+~©Ñ ÊÎ Rq+ždšX8€™R%M Ìy¢Pb§da˜ÌZ‘j°‡4Leº0]òTa¶œ¥V_KÐfÑF^pB;7î ’j^6Õv«‹’ά[31×wOoE©Å:yRp§AmÏ-¶ÚEÿqíµ D% ”Ô0|ì±LlwŽ …Û‚‹D©a¯Ù¬#®vÖŒÕN¥+Ó”—çKØí(dŠX¡ò šCåèÁãVÖì·´Ù½›?öèýÀ œd¶^å€à‘šWPÑÜrAÄÄHäZdº†âË ˆ…ð/I£s¦ÁXÎÐ+O‡`¿«2E0Yl¸jÅB@[U !e¡´L’hI+ëÎclâà"ÜÅð¡lyz‡Ûè¦÷Ç„:êrU²#1ª€K(Ús):I‰Ñ(:$WD„_ãq,Ëu¬ïoÆW±vל´'°/0TdÛ˜ V­)ÙÓûg”ëA™64Àk\DXÈT]NäáN¦ì:`MÆÀjÛ²¾sra2eI½#3™Ë’H‹_Mõ3‹? ­ãXl,üg®s˜‰ dÏU'ôNO<ÜñÓ:ǕɊiÜO¬porªµ{ÚØw,^MnÑÃä0²½3§ÅT1rCzui"¼^âÈ"¹ÕžS–MµpÖ[Lý×dÂyhv$&ᨥսŽÔ»îtÂÂÞ]?ÑŠ#Ëè)ˆ–Ê$k)Û¦äø® àƒ…•¥Â–t`KšÜ*gÞ%õ;5‚bÔ×*ø«œ¨†÷# Þø¼Õ¯q0t‰\Cƒ5ž“<§kFfÜuœ.ÿºZoªü–ÝP"xlU¸u±I¾t<:aòÆ4º0’úŒÚð>ü18›A+ „¹_ÕÚ[øeJ^ÒûLc —™ <—õÎ]Æ9.Þ4Àœì5™nÞÕVÉÛ= £m†H“5ña€I‡sÉÖ—¬ŸO2IÙ*2U6 ‘© Æ†LWlÕ0óð kxFE}Mƒ;š7¸ê*«Ôq'äû„ìT†ºU€ñX„w¥¾£¿DYÈÜd‰!q4¹"ø&9ù]¡™Xé#™oᨱ 5Lìî'4¤ª¼"é³£¾1‘v}·Crf}²Çªñ°5=ë0 ¨:Ö*ç`TT[1yïÃìfhm;²|•©'¼÷Ã.Ù|‹"Ùº[šB;ß[êcÕv bç–àoõBc-@»å"ÎV> |º})>ïL©²W5QMH£®®ðc²(d±ëÖ•²(“’B&ìK%Âä™%ÛÖ$Êò~õ}Ç¢6 wñþ[qó¨Lüñ?7Ñ7Dýÿ Öd*¸ë¦A ~û†¶?½ÍÊ f ÔXB3XHµ¦­a#^)wîxDŽúbûîPz‘÷lštÑ~=ïóOG3-3L}'åÜh\µÑ)¤®*0!ýÂË®gÍwCl½õšHÞ2t1‘&²¤ñòœ@#ôM“+}ViŠGɯ„ q¬ÊKEÃö$§å€{˜‰h,à¦ì<ð`—Òœ[±ÔÕ¢\Uh%Íx̆F)›WÄEí ·’OåщvXˆ÷x.ü^™œiW«GÎ"‰«n`?¿׎Áä Ìæb¤ WXëuS£†R}cCÁ°xEÍé(w[žqcõÔ"O¸Ò2H,N¥•ñs ;ö4 ›5zàéºg¦ŒÜÖ»KÖ­Dm¨œM)˪îá¢$°yB‡}DblyÑ/•q‰™zZ„g|UªÆƒ.éQ/[ïp_ÅeÓݱ-"oHˆHPqç ~]Çk]= 7(¹ Œ‰ãçÀg{s3 &·ˆ½ÉM×Ù ¼8Ávÿ€2S¿ÎÝ\õ´K5¹ói<ɱBùjbRO¨I¬%ÍSwˆ†«Z?[Ó©£.T,©:y‘±…ÑÏBáØ)“G\µÞÉ K=0× ~»Å'òÔÌ5‡ïlëýá;‚ò“?w¾K£6/MôBz@F…VoÏ|ah‡b”¡sQœ¤ÓÉÐ!£}>`—Ï ŽãŠŽÑ +å[Ún ‚e]SKÔŠd½±§ö$Š. ¶‡ÖïrI ÷oÈŸg®Ûë≦óÚo7Ì"DÁVnUY%ð±ØeÚiiO¤É©ÁBz< 6ú™«‚î·U8‚À_ ̧0„µÒê ·}~]l£–R U°'Öž0%á*îP(c6€_¤!ôÁ9ý)1§üPQý#G~3ZôJóØRèåuñŒO #åvkÇû¹ë\¨¦àmOâÆ[·lj±½4 ²¹ aú<³ÐÕ Ý.Hà“ áAÉæÅjÝcHp¸J&“#Á Ջ̶©óZL5¹õ!g@䯟~zì¡ï¾tx_ۢɴK3æŒ{Kå‡yÃÖÔNÀf˜:[×Ö¢JN7õBA{¿ÿ°},'Eq2ë’šÜá\«,0*Ûaµ]bˆf\]󦳚Õ;_« ƒIpß\ñ:¶`Z&Dœ€ RwUTƒ£Ö*´MBR²G¶"åÜ ž_/”> endobj 55 0 obj << /ProcSet [ /PDF /Text ] /ColorSpace << /Cs2 8 0 R /Cs1 7 0 R >> /ExtGState << /Gs1 18 0 R /Gs2 19 0 R >> /Font << /TT5.0 41 0 R /TT2.0 12 0 R /TT2.1 31 0 R /TT1.0 9 0 R >> >> endobj 56 0 obj [ 57 0 R 58 0 R ] endobj 60 0 obj << /Length 61 0 R /Filter /FlateDecode >> stream xÍZÛrÛÈ}ÇWtüDVÉ4ï—ì“b;ÙMi³ë˜U®T”‡0g €¢•Õ·ätÏ  Mé){)‘8˜î>}út¿Ñ'úFCü;[Íh9S®é ¥ôî}1¢° !®ò•¤º'–WCŠå›1mè>¸àÜžaM~à[þÃë† ýeM+ûáŠfóÁ|5^h>Ö ½[¯Çƒ!¾³¾§Sï}–ç}-©§‹m–F&} ÏÙÎ}j ³ôQ?éèŠTÑ/iQª8V¥ÉR¼¹ÏòÄ¾Þæý€WÉMÄ7›”Tfnˆö¦ÜP¹1:”o'»¢¤;-w’]ˆúôZÿ>®vã…v-Ô¶«Ü¨’ð´íî.6aüDQî–:¢Û›";R)™dk¾b QÊÄê.ÖTfذv+ð6 ö‹X)~‰´lû¶o]#öx_~Ûÿ²6J°qhTp*XËe‡QiFÅV‡FÅ´UE±¯Ý›åôU?ñ~h—nUøq¼"·[­$¬¸fÛ'\T~îØ’Ãψ1Ũ”=‚F£…ƒÐ¬¡EŸÞcêaYù ‹'óÀpí¯DîŠÿkä}Ð+í ÀÆÝº¿Ê3v`MY{ݧÅd°\ýð3?>è%þ“¿¸ÄÎvžŒ&«ŽDysE†ËÎ×ybŠoŠ7¤ª@—ø¸f€¼b·u¨ Ù+ٽ̀ê´Ðt÷D‰âH‘þê-/^нO¤„²T‚–ø0ãÝ=L›-Sê…ÕI͆¶™²à<·öê6ÕZV›«`¢ ›©‚$ì%C4ýîü’=ä*¡bÚàt/½»§¢be»æàw¯ýUg^ðq}¢¡›ƒ×ZgÒ0Þ•8‡…‚\®|Šëï%¶ní“}ÀHgÅ£ŠM„œŠtN ƒcµïÓlÌýrOªò…'„ô2éŽÜ^dÑbÜaÑVå%ÀÀNc?[æe?Ã$†Ÿ\OÔ;|WÀòBã#x;±¶Àë@`ÈWt·ch:ED@õéÑrÒÀ‡ì‘Cÿ–KHŠý"5š‘²Î°?¿ àùv‡àu 0Î:öøe£SzÊv®$’:å0ð+Ù¿ÔQ”–,ÿz%·r |+§L2¼"å_AMÅõnð€¤.g‰)s7È©U{þ%ur<šw@ cŸôð$Þ—)îÛÞ 2pèÚç¦Dòp|l¤ö¹ôž ,ß§ÕU˜ E&†:/# U¡ Ú{çžÕÉj9wi€$‹Ì=IKD·}¢Á©£ ÎÜ [c…Z~"8P7:G½E‰˜A€KF¬õ1·†ú˜sÞoL¸‘ÛÎÙr’¢Ç“eø6 há Åò`9[H. -vX²RÛ>åæaƒô¯êÓàU¤3ž;ò¬dÍhe"c%ƒssjˆ?.Š–™ ¾*že·xWŠgàͦ­õNdspn{¹µUåæ¿Öù¯3gѪ =Eí°Mƒà »qä«ß+sQ%·ê–ËÿŸûÁúØ 8~1,3¯&ÇÎî©Û~ŸÖ\Vý–cÓåxÒ¹ÒS„±2 «Œ½Ês•–ˆZN1>*ùÃØ¨;|Ù»4#Û ôþÄÛ8îª"–¨'<…ú."¤èt>Zž™´`Ÿ#ô6ò’€:‡M°àQ‘ïÝÁa;¾rXÇJh‰þ©™ÁØ7׺Ðù£mØ0–àÏÀ£'6ÓVßÒ -˜]R‡ Ð1 ÖfµWBl~÷œ·1w¿â^¬Áb×ÉVÝœ މÓ<ÀÇò®áú+ö½ÿ’º(.bTu‘ùüÕbZ÷ÌeÕÞΧƒÉ ¥xmàlUÃ^±ýx¢ò¯x.6ë÷U¡k¯ž ÌÈS˜“™Z­ÖÈÔã<µ.\‰Goµßǵ×|ÙæÖè àí6>hŽ'jt¬tãYŠéBV\ÛÒ3cmwù2Vx;U‰}žÝUÆlîл®¢g™ç…D=¶‰Z¿Š¨»Vú ÃØ&Ĥ<ú)æ…칊4£ƒÐ{ØFþ`Xf wU¸Jâ´þÖBÎäŸÀxdùë,·÷þu–w¬Tó­A›•¤æ9¬¸¶&l,ºh6ò˜9 j„ûåý&C]ç‘w–uÄ!&‡WԈ餋^»øÁ” ¢°Ä ,wH/Ìiv‰ëí­ºÜ"̼AO^¡ÙÐÖ•„–¥UãNnép/âýEÙYÓi—:>µÉÈN®‚æt(ïq§Ug[ÆÎˆœm³Ž™£'Mç ¬&’טXY™fé[/eYñÖ}’u—[ Ì=eFôæ~—Ãc5»¨À2wÄĆcä*n¢•<Î#7— mOÏÁy‰:©ÍZv©gT®ºMgg•ë7jHz°>ÂϤuЄ]1ž¹0ƒü¶ hpovÊ)ƒNÛA';hg,y «~£îùñt5êhL8€ Á¯è¤ßë~XŒ¼¤–oònØÛᘟ×6­?¹¸Ì.^¬Ù°s¾‚ ñPÌ'§Ý+#„á½ð?Ji¶:¾yiw80Ùv8U¢Î±GCCŸK÷“i5µê”“8úعW,q¡™ÐûËÜÞ’‘ÚÕQ†: =„º‚¼]ä‘Üí©×µ¡³I«ìÀŒÛØÇâ_é5N4㬡ÎA8Hò9„ÌäÔ‚÷õ#×a™û‹²D}Ž5ʪ’”cƒ ’)hÁfÓ®²âç·˜N‚ÇãG$Z"¶aºð¬€ò‰y¬Æ)»Üg?£xÊ‘-ûî,oKóŠàfóÖ„¢9%r²8‡0$·s‹C.¿B Èp’‰ÌÊ]Ž“XÒÀ»õ¼ÒO˜v­¤±_‹^^Ñëí/ºÊN=‚ÿɺêŽçsÞ‰ó>*ÓI04èEÊÜNæÎúÓ%l×ÁÊ|èÛ¦æÁʲqŽáVÜ!HÐ}Bõ!ˆ?YIOTŽÎ\‚ž¿ãìæO‚a>iT»ªñ8³1]øî,ÛªW¹n@çGiÍ);áB©¿ã«vÌVÈ€j!KYmF)¹F E×­¡¼ÎæçIO[} ¸GtÉÞ@!©ª}´ 2R 3ãNM÷šâ5C÷ˆ 99;RöÈ 2…çv•ÔçcÒW1“ã ®7ÜtÎ8x8kÖéhÍ宊ÖûϹ +lû´ô®…¹žñ|X¡AÙn¤ûðªitÛËÏ1Ò>çÀÓ?g{Í#õ`…ƒE³%ýPcXL|’ôh2w -œY;ŒO@윞‡\VK4Ü2Þ6á.Vö8ÔNLí%Œ/dÐ[–dpZ ]P‰á¸ËNÜ—]¬ÂÍ£áÙáعþ.Eu¹€®w8K‹…‰ŽÇ”œ°Ì°:ç;Ÿe‰Q"-+ãQ«pÏ-OÈ„’UŠP×O„cLkwëÝbp¾jÔ¯ HLâ­íÞã@ÍX&e óx®Þ®ÐÕQD'¬ÏôjêÁ Çø¹_` L¦#™ƒÜ#ƒ¬{à1éÏò×ÉD_à̦ ¿_«3W{°cQ(©Ú•ô85y1¨¸8ºH0¶;ýÆsÄgh-ë/$þrúúƒßŸQôâÕËć1àÄB~à?ÞísÕTŒx{r:áCçšÞ>ô"]?á(WK>8ÀÓq›6êNÕ> endobj 62 0 obj << /ProcSet [ /PDF /Text ] /ColorSpace << /Cs2 8 0 R /Cs1 7 0 R >> /ExtGState << /Gs1 18 0 R /Gs2 19 0 R >> /Font << /TT5.0 41 0 R /TT2.0 12 0 R /TT2.1 31 0 R /TT1.0 9 0 R >> >> endobj 63 0 obj [ 64 0 R 65 0 R ] endobj 67 0 obj << /Length 68 0 R /Filter /FlateDecode >> stream xÍZM“Û6½óW`ç²R•Fõ­ã¬ãl¼ñnœxª\©=`HhĘ"59òäÇú·ìë@‘´’uÚ¤iD@7º_¿~à³øU<‹þ­fb9‹B‰Ï"oÞêPDZ„BG¸JW¶õ=)‰”ŸLÅF¬ƒ îÁÝìcÒ„·ôAãF[ñ·{±2?®Äl>œ¯Æ«PÌçÁýV¼¹¿Gxæ~-þ-z÷}†¡è©b›d²LòLäkñšW…(’§M©E•Ūå&ÑB«ˆïˆs¥E–—¢´)\W"M"•i\Â;Y” ¾î7¹ØÈ%Š~.1O¤’‹(ßÑå¼}ñqÿñîž]w¡-‹…Ç»àu›0U¾%;šëÿ`8â}ÛF^á£RÙÁ¢XÈ,f#w0Rf*+Ó×ÚŠ$Ó¥,U<à)âœo¼Ê’åÒcÉs%Ódý*Ê3²1Æo"Sûƒ›×ðù]Ë­[,§Hdjíu[ކ¢œõpHD1„Àuñ† afVLÐ[õÅíh8½a_ð'6p2ÂßwîJtôE¹_vö¡Rö3Lf©ªïÅÀ<Á¿Üù{Ø]ùÍ\ zõ3Ïö–Ê~&ö^4ÓÕwÆöŠkmFzõ­îÊOîYé¾¼¸/nxgÄSkР÷ÖÝè–îìwÖËÑîN¸õôn§r;œ¬ì^5“ûw›ÜÈéâˆ#Õ%ãs•¸ßc 6Ej‡´¦d·É" ‚½‰ ’¢ʄ¤”~¥Ô§ühgÈŸ ¹E¾ÝeQ’¦²x;;V¾“O5ÞHøú«g#ÕQþ¢Víóâ‹È£¨*Š${:OòXj^0Ðê¹RY¤hÝ•¦v ³™èÝ–ù-ý%ÊBfz›hMèx”’Öð4ù¢ö‰VÂ#6t2N‚Þÿ´í$Z‡s@t ®Àµ³«±qvÓ$¬€£Ê÷ŠÍ_!E´Ù²  â47Û“ã ' æ6b›¯Í6Á?…Øæ1a’Ì^¯´h1ö@ÝñnÁŠû‚'%W\ÓÞ)Ž0y‘0~Ã×Ξ°5ƒ¸8RZˆÇWk ûåÊú.'[:± ¿Spt£ÑÔŒ$‹“˜mj­±€öÐdP#ÿp0SçÃ+a|Ž=0:¼¹/žxîÀ´t(¶uÏÔ(^:@«aÜ¡ç;ìÑ 5ô9ðÔ®$¸[Ý…6ª¢°Û!×nŽÜzÜ•}?`[Ü5º–ˆƒN!¨Q½¶Ê û›¹·Q^jëÜOâ¹›¹¬§â‚ï&:ãÉ´ÄÚÞÉh#ÊeŸ27ʳ…Ä´±fxV,ùŒÆ.ø£¤++…¬Ê|ñ—2§i0 ÂEË㈔Á€-’#õÀS{=/4FG5¨²Á€Òñtæ±­†™¸S+ˆdÊÒš¥«Ç?ÀFiM@CÚÿŽE£õ=c§Þå™NS%ˆ@©¬‡ˆ!Ê·»4áLR`lë„ø=¤{<›7m Àº{57NJìbŽ"÷|'/|ò.7Øé¤„ T½ ”ÞàŠlþb¾¯•)Ž$$ˆÙó”€å‚s v÷$³äO.Ø*ð?0fàÂÿPRµB)ÁSy¦øž ËK“Átqò’Ä´CfQgQ[ªûü»ÁöîÊ5Â̿ӦåñeOM¾u•´Fc5X÷^E\&#qiìÔ@(JqŠî8ò×¹¯rÕ[*Ch ŒyLu‡®QG†ªƒšäÒ\›RœX—ô Ç{6A¾µ¹ ñ@6௚\na ŒÖ ÐÊ$CËbë².Ñ&ÆYQ^¥±xB—X·nÇÝ÷’䆓…uÙmb—âoišU²d—# U³\ôª0œŒ]Õlê·yá !ápü„^Ù኷ue#\Ø΄øÈÆ5º¯ñß»cMJöbïI•ôמ¤€Á…ýód2ñì˜[¡Ôy& •õ‹¡ za”jê½¼(õYðòT€ xöqà4Ú–­|e†—l±¯`„àžëª€‹Ðt؈Òe‘X¢HôA§¾º°ŠˆÛ0°ê3^ˆ4T~n:ŒupóͱuÅ÷7dƒŒð#F9Ù'»µÉ¼U¬£¾J”@'Õô®á.[ÅZák{þ*Óòµ/SâúX‹¡ùцº=ÆA[ãŽÒqƱq(éçU,œfÐLRRZFe ¸oŠOÛ>ô’,J+ƒð"rj}¥2ÙZd8 †ù(¾"÷ºJʇ¾@Rà(O0Š–¦ã±wë+­Z.»aŠÕš¦$æ†B~Á¬ÓB “¥)ÿ÷ô3Ù¨„rƒEÑ’"_(â!¡±-~šc—l£LõJJ¢—çt4ŸÊ3 ”vPyDíÁl:D\÷ ßµüù±æÍeƒÉÚÝ&½çVuESV3‚&ÄÀIw↠JòúZX.C¢ƒi 7yJú Žà·°Õ?!0V€ãèv˜ðÑ…ÉìVSáÔý&!Ž 8¹À±f#OƒˆùŒ4ÉóŒ=J­bÓ«š™Ë Ê™%à1Ñ5âè€ZHÃz”Ô¦3ê9©7—4‰žÅ.|Åî®;!Ê*‘tͬÒ7$.™F ؾ(ò}fÐÖKc>›ÄôºeU_Õb¿Q ñ2uËøJÑaºl:ñ%5®¨(–‰È5X ´‡æÔFqëAÔäQÕŠ'¿ÎY~Í2 XK)¡84>R{ lo¡×Ó¹{²ŠLWG­aÏ"È"‡Ø¼IP?ªÒ©&o±„¯`',̳z™+ÄŒqß'ßÏF¾ºOß7h"Ó:!ïl@¶PÙÝUQn8ØÃ±úFe%G7jRÃ52@ ®,¸—†4h¦ÈLÀEë™$¼'*³ÐWÇÑ«Ø&é õ §ˆ Úh.GLÜx16qÁ¶Eެr\ãÌúü'>³‰¯7dñ ì#J°­ìV}E%Ö`à¥4Þ'q—tÜ:v«ˆä³QÖèn[© À:ÀŒù~%d6=j ÑIª»Q#[X*PßTaäÛÅ%¸QMñ6±°ËBG[0­2+ÙæŒÜêörðºm›ÕŽ^s¿,ØŸ%Ü9b¶ôi°ï o^çišï åphÈ-œéµà`)nÚ›mª0¸ˆúZ·xýØSý<…³!oÛmRÒ_±1"µˆU–ó±#¤µ\ui3[5à½>Ôä£ÉÜJ;¼Ghͤ‹Ó‡ž®PÚé]<­ÛêBè+;8É&ÍG;¤çf>¸-ŠèÊplë—«Xó|t„ä(RŽa’ÏúD¬l‰NÙLN†8Ã\bUôI[ñ‡ÚbÊ {; Ûc ¶:ÞgXk?.>cgÚÓÔØ :GeTæåšNæÀd:L¿°£O|‡9ç%è=­~É8èJhúJIØu-2@ÀÍJââðy%4ŽBòŒGý5f>=ê=ˆÀ¼È$åš4:ÐÜh›‰“ôƒ „éh5…d…cÅxQTqˆòpfPRŸ8ʸ®¨'ÏTÉ:ÓËüÕi>[ybE«‚Ä)XešY—2NhjPBÜ!m‚C›õíÌ4—BIAÁÓ½Ý`$‰ý×»e"Þ¿[phIJڶ uÂð$)›/Ž”=¨#XИÚÓZ,α0[¬vI\h‹ 6ˆ¦FùyT™úÀ´:P»²Ò^3סlI¢ ªÜ5pÃøÐ›¦€’Ô`W0´ùÒ'é!®¦0|X ¾¢<š jö z¨9šÐ¹½·ç$ßÞü\gëuA·ò@7'þEMR,øÅT¼!'ЊÑþ**mv¤KXÂaÂÔq-¼94AhgÌ]eÆbä;„t Êß„(¼ºn£¼°!vjY±ö¬Êº’D?¥è¶>W ˆè ¿1&™­eöË]ÅUEqúŠ¢]o§}ëå".)’Uš@ãn¼õð‚jâCeù®w&¾§Þ¯¡=#w+â˜Þ@Ê!A2û’s|)襠US»Ç­ ¢@3ªÔRž£%îdý^f ¨:9þz²˜úꤙޞ?Ïó[SÕ0MS·.’¸ ®q˼ýår™N(Úy`(—̓3†øËÇbæknœôcgÃÉenºÚy†­Üë Ø c<ŒÖ;¡Å‡s”ãü°5‡êJÃh#ÏÛâÑÁó£ÞEÞøšŽìZçµCIB¹‚ÞR;ÙœîÚJNÝ ©å¶ÖÑ´ƒT°­ðD§­xOqLï)ކóú?¼døæïx}ñIŸ¢cKóöØRÌCzÙp¼‹•“Ãúå1Ñûüù³åx÷ï?üðîÓ‡»O? ßþòÏ3N£H®§!LŽF8ÇV•­§è‰ÿó•_âÑÙhE.xÌ z‹ÃáÃ¥;4 §C¼ :ng?Ä/?"€ÝôÅK/›K$Ýö°#!d7à¯ÿHH¹› endstream endobj 68 0 obj 3417 endobj 66 0 obj << /Type /Page /Parent 3 0 R /Resources 69 0 R /Contents 67 0 R /MediaBox [0 0 595 842] /Annots 70 0 R >> endobj 69 0 obj << /ProcSet [ /PDF /Text ] /ColorSpace << /Cs2 8 0 R /Cs1 7 0 R >> /ExtGState << /Gs1 18 0 R /Gs2 19 0 R >> /Font << /TT5.0 41 0 R /TT2.0 12 0 R /TT2.1 31 0 R /TT1.0 9 0 R >> >> endobj 70 0 obj [ 71 0 R 72 0 R ] endobj 74 0 obj << /Length 75 0 R /Filter /FlateDecode >> stream xÍZËrâXÝë+r¼iˆ (ÞÆK ˶¦1P —Û15 !„Ñ´($Œ™o™“÷! #l7³™®èKW÷æóäÉ¿è;ý¢þµ¯ÚÔm5hãÑ#…ôµ×É©N±‹»|g•® Ä·âÉ€–´0>±«±Ù/ìÉ~áÞ×]Ñ7›®äÅ+jwª«ÆU:Ã^ÑWÛnTkxÆ^Ð?¨Ô£µ“xaBïzaì‘ÓÅÜÝ¿òC'‰6û òä'4¼˜Â(!?tƒíÜ£Ÿ,ý’¥9¢µG¯‹É^¼óìUh½)õ.•¢¥?ã;¼Ô{õ6eâ«®ó¢E…¢ [¦’ýw2maÃ"¥Œc¥./éX)7 ç~âG¡7§H Fá—£“qlh)9… ,äÆ^ y„%.´\{®ÿ× ‚==oœ0ÁþÛpîm HV‰ž v½½·´röŸÐ¬À]Ýn¦™¡ÝÅæ‡v/ÞžigiJ²‹6²§ö84Ù7Éž’ˆœ×!õ³·b‡³÷° $WÊÏõÒ%”†:ʵ³mì‡^³wÉÆŸm?|~W+ãT^]eZ¥AG‹d—Ê\Q6Ý-}w)ÔY9zn/ä†&ì¡c¹gNœùÛ{Q ™a 9nâ¿ø°.Hû±¼›­Beã£Ø+ðP½^+PÆ uPHŠ…áW¤_„X¼Ž}å#ËvË‚mƒ9éØs=ÿ…•ö”×EZi¯/ÔªhÅÚVàÕs©HŸF½!Á"ÀÅÏ’ó³Ì¡«†¬Œ|‘@`M`ïBK7@…Ù^8ùg ™¨žZ9€—œVï©s2ÔêÍF{’eÔ‘çü, ìùYšA‡5ÏÙøHía/h¥ ¶ùÖNÉWk?pØŒsH!(˜8*‰$¦©zž:­f:2|·aÀÊ©ÔÖø Ûú¡Hbiê ¥…ˆoœ¹sbkŒÝ>ÔÂã.Ý#9EÄ!!µÚeõ= N z§i !­4Œ¸†v2Ͻ×5ø$Â!‹ –øW6ì½WlŠ䲓)¢—°$ü8pÇE r;/Âa i#áY(œ5ätÅum|gW6Úm*}ƨ@YëA0t]oÔ´YÛÕZZ)êeúR«6¨ÔÐ_°¿¸pŸC}#zscºŒ`Eî‘~ñô•P=3WŸét©>Fîn”úÂH=’,O>ëc~SKô³7âïœdé¹é-‘Öj¥÷z×¾'Q¤Ñ(b–(#’dĹr‹0¼ÖÁÉø³´[z" r. Q‚À•™ÖP¦+øpýŒ¯Lˆ<™:v9”L)˜lœ¹ï& OÃQËôéœÖhæXFÑŠÈ :-A4æ‘`}Ƚ-B›Õ2KZ·:%LF…`)~Äu¸K Š"ÒôæpÿW$ˆ¬=ÔåYSî1ap*ø_ ”÷kë…®Güe`itŠ˜Ûq%g8ÐpÆò ɼAœx¯€L[?„’¤wP Vª)Á¥In¨×]_´w$.~ *cçyޏY=ê3dµgä>®Å|GP¶#s[œNc-¨ÒJØtÞÛÁ""¢?Ò.žÁQxLì'”æ.XùyJt‹¸ƒŠjEÍò]Û{±áZ–ÉÌLBë°Rš±Ž”Ë€Éàó¡"ào¢Å–ð§É«€ß(5sÀwüúF ³)xjœÝ)ÜõÞ¦X­¤Ž½U¦å%=Ï6;Õ®Qêi‹ôqXJÖÛú$½_ºR—¯l¼©NŽÞ#P2è=Ʋ¢Qi¦nèR?´¢z/ýÄ@-Ì(ñŽÄ86bõ¬k6‹øøÓéè%xO“4¿ø1³nÁ´3UI²tÐ5½V~,!`?üSÖ0 HÇ¥ »ÕIªöð,¢×lµÞ6%Ñž‚ú0Ó R5u›p;| ðSŒ)ê"¨Òß²KYœk–Ñ­bÞÐx Lwu.¹¯ðŸÁÂÜhÅêJíPsÞœç0¶c ãìÖ¦ŒQu8ãYw¶[‘ßø È.dÁê­@¦‰¢içí¸+Dr7 ÿò•cU]¹¸wžÇ ‡C¢Ûa5¢ýÚ¦àÆ­xÚÝ)·‰Z:N±û³W¡X5’õf…­ârl~a‚²5ÑÓÀݲÕL–a·Ï<ͽDÚ{F8IõšÇä’ðÌ7d æÀµ?ÞºK$ü%¿¾[5ÝM·Bµ–3”‡øžè)½è+­&¥t‰fÅß~”©Ýª^‚sêgSNM寮ÞtÞLCvJñÓê ·xóˆQúßð5›'êåñ¤°…>ö8]9'oD ÁXM&Q X †ÒÕLÄÖ 0ñ2Í /Pò¤)ôv¤í 1N Sžù+°ÆL§S @§fŽô¦­p-Á–@œ)‚óP0Ï`. ÄhO1w 1Õô7à•üƒ6FÌtW)$Ñ…M0‡Gsy.YÇ)€æÝç† ïîÌç)0b s§s;Ç•S¥Ø˜¸¢ãå…?p`.ÎÀ#‹Þñ…3óÖe4˜U/@ò3fshÄxµEŒ0Péáv5cãnNAGĆ>à·j´Ìc ¡¡@ÇÁ„R=+å<ÝRÕΪ[­îÑ(1‚ŸÔ Ø’9f[h ”N$j¬’äÈ«­ÅB.ÐeD;6_—ÅKYëW­‚ü…—uî'ABaØP[]4Ö9ˉG éÜF>£Uga%*pSž¢‚ì¬r¨yóƒè*~#Ó®µßò$¼’9 Œô­‹(Æhfí¥až;»Pz‡³×]FÜ!±ö:8=|9¯Ñk×uýÊ¿PRy`GÝ‘žD×’ó„ùšÝó}*½R¸x…QðbdŽ;üFK¬Å6Ùj¤Òvú ¤óF€VLIæx£ÁÍçkTûxˆ€£Z…ËÑëþ·XF«Kh 53Zà‡ë­Ñ'`È„é?faFélÑ#oü#q¹‡f,CBœ¡c‚gœgÁK»p– –##îæÏtw¾'Ws @Iµ™¯8Ö”…’¨;âe ˆ,ôâö—ú .ƒY#åï¢gß…¢´¥GäæJzjŽ·ªr.XÆ Ú*ÊQ>:>_íÛWÍ‚xGëÇù,=+ ßz/Þ_Ò2 øå¤˜P‰ðšqOÂñ!†`Âù#Õˆ› ÿL/[Dn; ]83rk”Ò¡t[³N„¹½Ö7Ž˜£«ïÈÞÝ(¥Ý¾^šNz9- .Ž9bªz&‘îC+„j—d_¦ËfµóÁÌþd£Ñi•2ûΜ˜dMi8"ˆÕháíüdÒÚOt3šnÓx2ºôî+dÄßæ¶9´ilNî-Û6¯éÞ<¿KsŠ‘´SØÊöÆãÕï}˜4è• r]âI`þÑ7Ç6=Þ™C±èrêõhMMšÚ27zòƒ³†ô8±lkx+ïÆOëöÎ>OÜNQå¹ ®ÍÉ”zÃ믰—ŠÆeƒî)ñlËœ²X×fÞ¢tÑ›ÂôôhÙw£èuà æÆ;?M(x[Ô)h'G7ï‰~·†×2q–9%Çs:…‘ µu››¸i ûƒ‡kØ«Bß ÏpdÓÀ‚—±ÌUÎàOü Òi!G•:: Ë cCAÚ{sÒ¿C *‡~³â&¦ËBl›=ØYFfçþ܌ǿ(&ãÑÔDܱÀˆy ©2±¦¿ü¦’áûC/œ¹ï û&kÁ©Ü9Ãr—¸7c iÊ¡BO£5EÌ à˜ìd&]›7fß¶~˜^ a§÷2ðú£© ÑΧ¡Ç¾yÞÕ hhöá6{ýMuVþ°ú"’&¦ö“…™P4™°|£áAIÆ•ð3¢Ù1ð?ò/¾Þâ7LÏñ©‚Õ•¯&»Ô©ó/ŽðÞìòJ¿;«çÞL>>j±-dìtЛÞUû£ûcúðˆ:†µZ³ÅG¨šˆ#T7Jÿçÿe>‡EŸ±h»vÅ&mZTMG»‚Ðlú¬‡ÚõV? kî§8'ÌÁ–Ÿ±ÑÍ‹h`˜y¤ŽÂ¯'dßÿ ^È%( endstream endobj 75 0 obj 3232 endobj 73 0 obj << /Type /Page /Parent 3 0 R /Resources 76 0 R /Contents 74 0 R /MediaBox [0 0 595 842] /Annots 77 0 R >> endobj 76 0 obj << /ProcSet [ /PDF /Text ] /ColorSpace << /Cs2 8 0 R /Cs1 7 0 R >> /ExtGState << /Gs1 18 0 R /Gs2 19 0 R >> /Font << /TT5.0 41 0 R /TT2.0 12 0 R /TT2.1 31 0 R /TT1.0 9 0 R >> >> endobj 77 0 obj [ 78 0 R 79 0 R ] endobj 82 0 obj << /Length 83 0 R /Filter /FlateDecode >> stream xÍW]sªH}çWô¾A•׊¨¨³EÄÆ²öîALØBð InþýžA1Y+O›TœiºÏœÓ3ÝùEwô‹Tü}ƒzmö-)¥›a®Q˜“FyˆU¾²­m’òI¥¤|3¡'ÚHWØÀÎ~Á'øƒÜo¸¥OŸã³€Òivúz_£NWò·tãûFSÅ[þ†þ"YSè‡ÚÔI¦BåU£]q5n†’,&Š@¼Zˆ©¬²M«Qøó1qp~ôU»z8‹šœ}/Þê¶š’÷oòÿ$ËçìKéèØèÉèõé@†~B›ÑÌ!ëÞšù´˜Ù–ç‘kÝ-˜kh°"s>·ÙÐØÙ¦"ém’—ä¸dN\ ¾Cp°t™Ïf“w .kô”¦ª•D§¨–̶ɜ­hèÌW.›L}š:öÈrep,8þÔriFÉtÒz$û+ZNºuFlÌ,F7;tf÷ÖÊS¤ҮƧ!mʪñÉMs×™¸æ-™Í-÷–ù>è0νՠÈb%gàgå,h #óÖœX^„ íÅ|ñ *’ÿO%ãÕˆtý’zbÍ,×´äÍ­!ãˆÃFU‘úÈuÓæÌ êb&™.ó8gá“3&lï+)¥Ãq» e«uL^xËfæ€Ù ú€>wJáOùHÉfŽþ@é!Ál9錿ÃT»}LÇœ_¡’Žså—zn`qB\k†œ à®°*÷Äq!Ǽ…'(f3˜âÐpÉáÔŸ2wô“ÕÅuIøp(Γg8˜4VÈ0 1³. • Ö Âd¨Ø´EKæO˳U¡C"{?•Æ÷°v:°ò …Øì §ÕÑåX?;µS£…WÌÑ=óÀ¢Ø8fUæðøÎîvÏ“@.QU²ùŸ‰u©°èj§òú¾²H‡ÊÒåá¼²°³*QDÂr/v•É^©œÕ&߯:’ìÕ^BèÓÒ• Q²êŠiLb¥.^¢ì­+ô ~õ´ØV2J¼u¸²xézï\Fœe¶¡â)¢uœ‡Io£=ez öû -Þ(H×”ÄÛ¸Š8KùRqcmzyÉÈ^âu´¦à!{‰( Ò4+è!¢Çø%J)É ¡$zÄ'ø+a£™Ð›`£™ÿP÷w9¥¢ ú‹(,(à Šòë8}¤"ã@c.²¦ò~>OæO¯X½u©†Ñ~›7¨Š½ÄÑ+fÏû"§ü)H v»äMl(xš  m–&Ya ‚“ßñ6(¢‚˜> endobj 84 0 obj << /ProcSet [ /PDF /Text ] /ColorSpace << /Cs2 8 0 R /Cs1 7 0 R >> /ExtGState << /Gs1 18 0 R /Gs2 19 0 R >> /Font << /TT5.0 41 0 R /TT2.0 12 0 R /TT2.1 31 0 R /TT1.0 9 0 R >> >> endobj 85 0 obj [ 86 0 R 87 0 R ] endobj 89 0 obj << /Length 90 0 R /Filter /FlateDecode >> stream xÍYÛnÛH}×WÔú%2àÐ%ê’¯íxà±= ÃØ,°Õ¹!Ù I-G?;ß²§šl’ºù¢}Ù$€^ªëzêTéýA¿¨ƒ¿ÖØ¢QߤDÐEtzžvÉM©K©‹»|'¬ž Ô·êÍ€<š·Þ𠞆°_É~ä–ë†ôͦ._ã«êÇF§ß£Á°e‡tjÛ–‹dÏéÔþ~L;†ImyLê3/?©üÌô \è ŒµÏŠWZí¸|DåÿWZ¦–a—7¼òSèR-ªºÒxeØ3ÆÔ®î$ú¥P)ߦ¶~ º¶”¸ÐCj?Äà‹¶bYªPIÓïÞj©Õy-L ½¯ÞÑ›Â-¤©ã?Éþ­ua«ÔØ«qª1Yc06Ç]DñQ±2±ºžÓJ.i&þ#“C‘È)NŽ[]DE.'¦C‚Ò·J<¨rŒ‹Íþ7C„i "Ú«/Õ¨!ÜÌG® ÂíløÓ –©/#VK€«Ï*"JyÖ7õä2˜‘ç ‘œŒá°åxùÈ•ñ*ñ^vDør;HP?BìØÎÜ:74×4ÙbÛøèù2ÊHq8æ‰c(›ß™ãÃѦ;¯„?_8a•U°c¿)“Q·ªU6|H)rBmö4ñÅœü™p”/=¸ µ1“"5¾–Ä£qÓvWÖì\{~´ÏÓ—•p’¯ÐX)ƒ8:ËÌ“ EV¼Ï&ÊcÁøP›Ë~ µ”ßu5oVþ'g{ênA¦œÊu0ó竃¼cš[è¤âሢqôêö‘®D$' {˜tƒJ5lã+©'f4…Bï÷\¯·Çsœ®—º MÖò’3×ÉP'$|<›ÐRUdO+^jyBî> /™ý-4T®úÑFŽ¢7%$cÖ¹äD+ •Àß÷ûb°V´%gÙŸEu+˜‘©:ódÌWÔPî£ØÑÑðP÷'k¸Ùzco6‡Ã=ñA ¢§kûûÝ£Mg·ÏôtÜ2ûàKg·6˜È4ë3åˆÄ“èe…†~>²Eƒ&‚µ¦ØÁko›4˜£ÑÅ~¿x8ÿ ξ]ß\ÛÏȺ¼¶o/&º¼{ 3º?n •¾2Ù×ç7gtÿøp7¹@Çš /#±^Ò®¤Ÿ;´÷àã Õ4W•­¡Ì'süàÀNÞ3÷!Ò³îæËµ¥u0›Û7)]Iû•>ƒz½- *»‡HP N¸~9™E̹{PŠØ|iF#†TqËŽ1Ø3+´0+TÁ2»£o,Ú­Ž—eñ§ÓÓ<ÇŒ`YÔ6ÑÒ`$1Á)§à éiÓ¤œç“Î'•2“óƒKS£?4{­u1#s ¾ð5ÌIi=R½4U–5…l¦aûë!ý¾g1¶Wª‰ÑY‚ÈÍ}»¡‚c'òdÎ,Æ•x¢‚J4ˆT™f2ò]E{b'h†HôÃko¸ 3‘&Ü>Öû.S ÕÙüLq-h§:ˆfä@ª`åpe€Š”l|]¥#xYÄìD1UÐù6Ô’ÀuИŧfFìX«PUCPo¼Ͼ¬™Âòf"óQÞ‹«ýÎ{*kSS™šÈ!Â!|ªÊõìÛäîæÑ¾¸)áå™nïÐhGO`œ+Á²Ö¿àîœòÈÌýÔ~¿ÆfgO'P3ÍÕàVÓ-5EŠz‚lÌ^"`³8õku£EðÓ±·ÇŠJ”Ë  >â‚™ùœ‘éç¦cÜ ê•Ëa}k˲Q"Þ*–(Œn¨ Ø‚a¦U@T‰Ñå@£‚ÅååÄUfƉϣQŒ.­šÆNÎ?̃ƒ-2†¼¼›Cée’"’ŠA¡:=1gT…wÜâLÊÕ”ÇK`Á‘3e¶3•†gýÑ.<ÛîÙCïB”¹¸ôš±‰À ›üËØ$Vo’3Lí' jSÀš@$Bôf?reËlTR£B½5äú•uU¹À³“U}…W‹iÁ5ÕÛ/åû¦Kª|·ú[€¸Z«E^€i,§ª@[m/ƒšpîO' Ö@VÜR,I¦!ÓPµÚ,g;.ÜÒ|¬^~²áMh. ä²Ì«þ¢)6Vœ/$ÏÞñƲÌM^ ëÖ4/¨XìÌy$…71öaS mgX#ªElÜT<ŒÛ³gð£4άè,WNö8ãÐö¯$ÅHpXMv5Ƙwuí¿` Îì0'!€ÕRó6ïà0³èµÀÿ„Ãþÿ¿‚±ç2•±·:ͽÕG”ÌÇ`†—…ÁkΫ!dØ×b0h û²ô5…!­w*M!µ·Êm,F•j‹R¹ Ãxåwz…ŸšéÎù P;*~lAGësHñþa¨Ûø±áé T• ΰ¯oþ~1¹9›|7Îï~%ð cÕÝþذ, J8¢4¥:B‘=Þäü¿þi8ú Ãë[<ڱإ½æ¶ÚÝN#ÑߢnßÀÏAæºÀ²pèîPUÕÎ[u4ÇM¹ÁÖ!évkü¼§IH endstream endobj 90 0 obj 2346 endobj 88 0 obj << /Type /Page /Parent 81 0 R /Resources 91 0 R /Contents 89 0 R /MediaBox [0 0 595 842] /Annots 92 0 R >> endobj 91 0 obj << /ProcSet [ /PDF /Text ] /ColorSpace << /Cs2 8 0 R /Cs1 7 0 R >> /ExtGState << /Gs1 18 0 R /Gs2 19 0 R >> /Font << /TT5.0 41 0 R /TT2.0 12 0 R /TT2.1 31 0 R /TT1.0 9 0 R >> >> endobj 92 0 obj [ 93 0 R 94 0 R 95 0 R 96 0 R 97 0 R 98 0 R 99 0 R 100 0 R ] endobj 102 0 obj << /Length 103 0 R /Filter /FlateDecode >> stream xÍ—ÝRÔ@…ïç)úrR! ÉîæRqE¬•…ÚXhY^häOX”DQ^Ögq6™þ²l–B¸Šbj¦ûœî3=™k9”k‰Üo–g2J©ŽåH®dk§Ž¥¬%–ºt«‹•96—Í(’ËÆóRÎäÄüƒ³v`×sA¸¹ø·À-çò¼8õ³©$É(Œ’ #SÌe«(’0rNʼnØÉÞÎx6–ñ»ñA±7ݤø*ã¢Ic-nÞÂæ’ ÂAžä±ÄÑÈã÷ƒØ½@¢0{Èf3?ñI'¾ôç팱?¼­ŸûMmÛð&=ØzeÆX¨¿+ʱJëR×Ô ãßåq`Úd@z\¤ñ0Š-šÐ=S&”²$_ˆn+B=U?Ðé¥þ ƒCV¨i…b§šT7X)4±RÍ1¯k†ß‹S•ŒØtñ¾Æ^¨:“!a¨E§]?U LS‹PŸ¬TÙaQ)#Aù%Ó•6ⵊ« „ šómc‚º…®¨Î¹¦ùK‹¤–£)«8 G²¨ûR¼~ìqŽsiÛ„;Φiî8÷èé>õR’ìâl6 d{fMlÍNô÷ü³&Ö%]ÝjÖ?ÛÅ%íû›\©±;®¾÷°‰èˆjWZ§x!?• ^*Þi)0ŠNfÀ#ÀºìŽ·ÀXV±×¡%D]ÁÖòl5þ7,Ý0b ífó”½F;o,¶êvA­þx¿¥ 7VÎ!$HŠÂ„ÔØZw¥§¥XâQ„R<’9W½à¾ÀRçõ”³µ­ŸàåOe×±æ?ò’hĉèØRi}˜’<‘Ä'elßš¤*)9 iîZKƒ"¼ðišeÛk®ïÉãE“t493†öZœÐ›4h5ejì®/Ú}m3ou !¨èì3®Ëù;£Þ$@˜Ø°U¥ZO´5vK@[3¥nXc£+ýÀ`W“ ¸uw+UOœ~‘ŸVMqCÁ@¹¼“±Š¢ JsIvŒóëï.‡hÝI„±2÷J¿‰dÔ3!ÅžÐÓ»_Î¥¶ˆióål¯žáò)rÏ wá¯ÝU{ÀŸ{líº×ÆimîyŒÚ;üH²a˜¤i2”a>ôýxéttÈ0{“ãÙäÙìU¸3}˜{qš‡Y–¥ë(¬üç?Ñ×S4qŠÞ÷Ú"Ý,Ê’n¯Iר8îžW~‹ŒÓн²’»€í½ÌÊô¥«ÍGǘäË1÷"d×ïÄxø^CÛž endstream endobj 103 0 obj 944 endobj 101 0 obj << /Type /Page /Parent 81 0 R /Resources 104 0 R /Contents 102 0 R /MediaBox [0 0 595 842] /Annots 106 0 R >> endobj 104 0 obj << /ProcSet [ /PDF /Text ] /ColorSpace << /Cs2 8 0 R /Cs1 7 0 R >> /ExtGState << /Gs1 18 0 R /Gs2 19 0 R >> /Font << /TT1.0 9 0 R /TT2.0 12 0 R /TT2.1 31 0 R /TT6.0 105 0 R >> >> endobj 106 0 obj [ 107 0 R 108 0 R ] endobj 3 0 obj << /Type /Pages /Parent 109 0 R /Count 8 /Kids [ 2 0 R 27 0 R 37 0 R 45 0 R 52 0 R 59 0 R 66 0 R 73 0 R ] >> endobj 81 0 obj << /Type /Pages /Parent 109 0 R /Count 3 /Kids [ 80 0 R 88 0 R 101 0 R ] >> endobj 109 0 obj << /Type /Pages /MediaBox [0 0 595 842] /Count 11 /Kids [ 3 0 R 81 0 R ] >> endobj 110 0 obj << /Type /Catalog /Pages 109 0 R >> endobj 108 0 obj << /Subtype /Link /A 111 0 R /Rect [57.24427 48 149.5554 53] /Type /Annot /Border [ 0 0 0 ] >> endobj 111 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 112 0 obj (http://www.tildeslash.com) endobj 107 0 obj << /Subtype /Link /A 113 0 R /Rect [57.24427 43 149.5554 48] /Type /Annot /Border [ 0 0 0 ] >> endobj 113 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 100 0 obj << /Subtype /Link /A 114 0 R /Rect [57.24427 48 149.5554 53] /Type /Annot /Border [ 0 0 0 ] >> endobj 114 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 99 0 obj << /Subtype /Link /A 115 0 R /Rect [57.24427 43 149.5554 48] /Type /Annot /Border [ 0 0 0 ] >> endobj 115 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 98 0 obj << /Subtype /Link /A 116 0 R /Rect [62.09283 271 260.6746 277] /Type /Annot /Border [ 0 0 0 ] >> endobj 116 0 obj << /URI 117 0 R /Type /Action /S /URI >> endobj 117 0 obj (http://www.gnu.org/philosophy/why-not-lgpl.html) endobj 97 0 obj << /Subtype /Link /A 118 0 R /Rect [62.09283 266 260.6746 271] /Type /Annot /Border [ 0 0 0 ] >> endobj 118 0 obj << /URI 117 0 R /Type /Action /S /URI >> endobj 96 0 obj << /Subtype /Link /A 119 0 R /Rect [62.09283 337 178.317 343] /Type /Annot /Border [ 0 0 0 ] >> endobj 119 0 obj << /URI 120 0 R /Type /Action /S /URI >> endobj 120 0 obj (http://www.gnu.org/licenses/) endobj 95 0 obj << /Subtype /Link /A 121 0 R /Rect [62.09283 332 178.317 337] /Type /Annot /Border [ 0 0 0 ] >> endobj 121 0 obj << /URI 120 0 R /Type /Action /S /URI >> endobj 94 0 obj << /Subtype /Link /A 122 0 R /Rect [216.4585 513 332.6826 519] /Type /Annot /Border [ 0 0 0 ] >> endobj 122 0 obj << /URI 123 0 R /Type /Action /S /URI >> endobj 123 0 obj (http://www.gnu.org/licenses/) endobj 93 0 obj << /Subtype /Link /A 124 0 R /Rect [216.4585 508 332.6826 513] /Type /Annot /Border [ 0 0 0 ] >> endobj 124 0 obj << /URI 123 0 R /Type /Action /S /URI >> endobj 87 0 obj << /Subtype /Link /A 125 0 R /Rect [61.69227 48 154.0034 53] /Type /Annot /Border [ 0 0 0 ] >> endobj 125 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 86 0 obj << /Subtype /Link /A 126 0 R /Rect [61.69227 43 154.0034 48] /Type /Annot /Border [ 0 0 0 ] >> endobj 126 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 79 0 obj << /Subtype /Link /A 127 0 R /Rect [61.69227 48 154.0034 53] /Type /Annot /Border [ 0 0 0 ] >> endobj 127 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 78 0 obj << /Subtype /Link /A 128 0 R /Rect [61.69227 43 154.0034 48] /Type /Annot /Border [ 0 0 0 ] >> endobj 128 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 72 0 obj << /Subtype /Link /A 129 0 R /Rect [61.69227 48 154.0034 53] /Type /Annot /Border [ 0 0 0 ] >> endobj 129 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 71 0 obj << /Subtype /Link /A 130 0 R /Rect [61.69227 43 154.0034 48] /Type /Annot /Border [ 0 0 0 ] >> endobj 130 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 65 0 obj << /Subtype /Link /A 131 0 R /Rect [61.69227 48 154.0034 53] /Type /Annot /Border [ 0 0 0 ] >> endobj 131 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 64 0 obj << /Subtype /Link /A 132 0 R /Rect [61.69227 43 154.0034 48] /Type /Annot /Border [ 0 0 0 ] >> endobj 132 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 58 0 obj << /Subtype /Link /A 133 0 R /Rect [61.69227 48 154.0034 53] /Type /Annot /Border [ 0 0 0 ] >> endobj 133 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 57 0 obj << /Subtype /Link /A 134 0 R /Rect [61.69227 43 154.0034 48] /Type /Annot /Border [ 0 0 0 ] >> endobj 134 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 51 0 obj << /Subtype /Link /A 135 0 R /Rect [61.69227 48 154.0034 53] /Type /Annot /Border [ 0 0 0 ] >> endobj 135 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 50 0 obj << /Subtype /Link /A 136 0 R /Rect [61.69227 43 154.0034 48] /Type /Annot /Border [ 0 0 0 ] >> endobj 136 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 44 0 obj << /Subtype /Link /A 137 0 R /Rect [61.69227 48 154.0034 53] /Type /Annot /Border [ 0 0 0 ] >> endobj 137 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 43 0 obj << /Subtype /Link /A 138 0 R /Rect [61.69227 43 154.0034 48] /Type /Annot /Border [ 0 0 0 ] >> endobj 138 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 36 0 obj << /Subtype /Link /A 139 0 R /Rect [61.69227 48 154.0034 53] /Type /Annot /Border [ 0 0 0 ] >> endobj 139 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 35 0 obj << /Subtype /Link /A 140 0 R /Rect [61.69227 43 154.0034 48] /Type /Annot /Border [ 0 0 0 ] >> endobj 140 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 34 0 obj << /Subtype /Link /A 141 0 R /Rect [379.8596 727 432.7695 733] /Type /Annot /Border [ 0 0 0 ] >> endobj 141 0 obj << /URI 142 0 R /Type /Action /S /URI >> endobj 142 0 obj (http://fsf.org/) endobj 33 0 obj << /Subtype /Link /A 143 0 R /Rect [379.8596 722 432.7695 727] /Type /Annot /Border [ 0 0 0 ] >> endobj 143 0 obj << /URI 142 0 R /Type /Action /S /URI >> endobj 17 0 obj << /Subtype /Link /A 144 0 R /Rect [61.69227 48 154.0034 53] /Type /Annot /Border [ 0 0 0 ] >> endobj 144 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 16 0 obj << /Subtype /Link /A 145 0 R /Rect [61.69227 43 154.0034 48] /Type /Annot /Border [ 0 0 0 ] >> endobj 145 0 obj << /URI 112 0 R /Type /Action /S /URI >> endobj 41 0 obj << /Type /Font /Subtype /TrueType /BaseFont /GRUWQG+Helvetica-Bold /FontDescriptor 146 0 R /Encoding /MacRomanEncoding /FirstChar 32 /LastChar 222 /Widths [ 278 0 0 0 0 0 0 238 0 0 0 0 0 333 278 0 556 556 556 556 556 556 556 556 556 556 0 0 0 0 0 0 0 722 722 722 722 667 611 778 722 278 0 0 611 833 722 778 667 0 722 667 611 722 667 944 0 667 0 0 0 0 0 0 0 556 611 556 611 556 333 611 611 278 0 0 278 889 611 611 611 611 389 556 333 611 556 778 0 556 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 611 ] >> endobj 146 0 obj << /Type /FontDescriptor /FontName /GRUWQG+Helvetica-Bold /Flags 32 /FontBBox [-1018 -481 1436 1159] /ItalicAngle 0 /Ascent 770 /Descent -230 /CapHeight 720 /StemV 149 /XHeight 532 /AvgWidth 479 /MaxWidth 1500 /FontFile2 147 0 R >> endobj 147 0 obj << /Length 148 0 R /Length1 18288 /Filter /FlateDecode >> stream xÝ| tTEÖpU½­÷5½féîtw:ûFVä%dƒaK0YÄ E Ä •Ef7u¦ ŠAÔA\ùpE‘ê0£(Ð/ÿ­×M€|sæxÎ?çûÏùûåvU½­nÝ{ënUeKolEZÔT;½eñ\$J Ä>>{aËâpÛR€~dvû2w¸Í¥"Ĭ»øÚ…á¶âE„Ô®]°"ò¼­ ¡äwÚZ[愯£‹PæµÁ‰pç@ék[¸ì¦p;j”ÿX°hväºúG7-l¹)Ò?:m÷õ- [Ã÷—n‡2qñ¢–EÚ(7.^Ú¹×~" gG •H‰ "È`(|«Þ€X¸J¯|ÿØïëfê‹~BF…üº'é´rpCÿcçŽ_ ¨oQVÀ}Jù~zžá“¤$„4®®¾eð ½J?#zPcJª¨œ²S!¾‚×£¨¦~Q‰],R»>uüóuœ<8%qº¨Ñ"åì5E®ÙkÖT%•(q5Êg1rárä“˲nßs®<ªÛç…bd¸ Ýù±ÐB¢2ßç åÏr]ÌïQ`1Úõ‹ïw®s?ûŠ]?ù²\ïÃ}Gò+]‡Kàz·ë`râ=_‹E½ëßm®—ò“\/æpuà\·kg »]OåßæzòùÌÉr±Õ׃7w»§Ån×cðþGÖÈ?x{¸X|‡ÜÑ¢]rqý®òÜn×B_‚k<ˆEµ«É·ÀÕè+tM.éÁþnW }l·k\à°«švÝíÃå…ßžë“1Îw›êÛëJ ÷OïÍ.·oœ+ÞŸúø#®Tß WIrÞþrUb²¯*ðH^î—û  J‹ëÃÅìÀkxªDIx:òãM»ª’g¼¾ÛµŠÍ»ªóý=Ì·¢Éµ+P¸ À0¥OS… ÂaŠ0LH’„Á#Ä ÑB”¤0(t B¥P(x« ¤ˆêøRL¡’Ńìbijô›•ëBëð߈`AcQî´¶Û‹M£Œ…eÿâ«Y>Ù\–rùc¿\M±ãØà#Õ“êƒ;b‚Ù´2ÛpÅõÿ›jk)<]]·bWÝŠÓSË[½åÍÞòV€æàÝímö`Ç,·{çéô‚;È$4ÏšÝFË–Öà okYð´·Ì½³N~nÈå©ôr·l'šZ>¹~çT±µ¬»N¬+÷¶”5ìª-¯U_ëûª*ÿ}•Ó—UѾjåç†ô5ž^®¥}§}§}ÕŠµr_))åó&•"n2rûQ·Ų¥(¡cŸÓRš4ð=w©B} h7OáÄ…þ„ô2º4ÎhV"/êÃÙè3‹“ѧHBŸ£¿!'º=ßåè[ü3hšïp"Ü“‡nG@ ,F‹Q1ßbYPún`ÕÀ;¿¢RÔ…`›qìÀ”:áØŒ¶` ™5°ÙÑ8´4ûíè]tl {àïðþt}‹Î‚ÒMÂ¥ø&ò1ówæ ;‚Ý–ïäŸâ_ä?BްQp<àâÆ~ô"z¤îf1´}h4¾¸:éíCo¢ èW´mñHb(7¶¢žµÀÍ×ÐKÌͨ=@~GÆ3Û%Î8ïÊ~ brRb ÁïóÆ{Ü®¸Ø˜h§Ãn³Z¢Ì&£A¯ÓjÔ*¥Bà9–!¥–{+šÝÁ„æ ›à­ªJ£mo œh¹âDsÐ §*®¾'è¦ÏµÀ¥«îáιCîÃwŠƒwbƒ»¥¥ºË½îàá2¯»OŸXõ{˼ î`Ÿ\¯‘ëëåºê<à.··•¹ƒ¸Ù]¬hoë*o.KKÅ{D0ª´T´!©é‹ƒhtËjP®h4½£<èô–•^¨Ã5Æ_Þ2'X;±¾¼,ÚãiHK âѳ½³‚È[Ô§D§Ïô×ÕCßi©ó‚€?º[3Ç;çîÍj¦µ–Æú ÓÒ$Í´cJÐæ- ÚVž´_n^ª•ßsÅÅ ñW´´vUÅæ»è´ÙL[-÷@«z’^Kîl¨â;9Š„Œ{xa3áožï*½¥Þ¶®ùÍ@sT[ßíåÞæ²† ª«ïvˆ¹‘–ºÇ~ËeOZIZ -Gxì·„Ëoքϰ–ö[| euÝ ]0íÛ;Ð ºgC'@ Àµ€~µ ®Ù@>ø4`å<Àgt€(1þ çÓì˜A£¥­,‚Üü²n¥Ã)Û¥Ò¸¿¹Ë0÷¼î®ŸpÖÛ÷«Ï´DÎð~ÃOˆ^¤ü¡ n¹To§öÓ&©Íîm£ìk—Y m¯½üŠЦv+ ÎÔ꤬­ß‰ñ} =xàÎT» 3s\N¡7¯ ºƒFj*œHö@ 0¨€Ž*¨d¸»Ü]cæt¹+Üm R¬_.áBkWClR=M®÷ņèÁjkCÃpxO:}<·w5ÀæGÞ¥|*#7e¤Vèjë'Ö;Ê¢ƒbY„x_m}pÈoCÜ•9ˆ)`¼zž=‚sàœ™ ׳Ão·¦^ÑÐÕEß9©Þë îëêŠî¢³.Üyè 1r¢Ñ[(…{pG-< …×-“ÜãõZ ”¦Ã@€/ ¸õÿžÂ¹ƒxÓy€m®Láüÿ… ~ … …‡bz…GÎÃ)…‹þ÷(<ò* ú÷.ÄÛb™Â%ÿ! —þ þM.Äô* —Îe”Âÿ{®¼ŠÂUÿžÂcñ$Ƕcd Wÿ‡(<î·P¸æ7Qxü ¦WQxà<žR¸ö¯¢pÝ¿§ð¤A¼ÉÉ€í$™ÂSþCžú[(<í7Q¸~Ó«(Ü8×S O¤°DWêáŽ!jýÇó5W‘¼ñß“¼ip €õ @¿I&ùÌÿÉ› É[~Ég bzÉgγ(Éçü?$yë$GÜÛh3)Dƒf“(êì H¸/RæAy èùœH{$<›° ` 7=Í~¶ð…h ´é{ïÛ;Ðho€ó­pÏ“PÊ)pÍy.C¸ÅÁ9/¼{œ_e%”ÅPf^¨—tÂ;×Ü-ĞЎœ_ e‹n‡ûK#÷¯†ºúÔAIŸ<œ?„$ âñZh»Ñф͚¹ôa þGéò}*ÀS!5<©EºK7DJ=ä(È„Ì( b}+²ÉçíÈQx´Üo,D¯.è̓ Ç‘úÕò£@‰O&£™Zø¤¡tˆá3QÊFÃPÊ…L@>dÄçÿ¿|†G’㛎nB›!+P€_$ä ËÜÁ`G±ÝœÈuó>~%ÿ<ÿ…Ð,<$¼*üMѦ*yå8嫪FÕ=ª#êx Ñ,ÕZµ×këòtïé3õ;ôý†DC•áŒQ4>bì7Õš6›Ýæùæ×£â£š£~±ÌÌÄf`ïHÈ1ÀáQ¢‡ãc!þd…X©86–aˆSÉ ±9ÊžEœß_T*oø¹¨Æ*BÅE¡" Y™ÃŒc`3ûdÏÅÃÜþó£zغ ¤Äh6Ó‚—Éý¤Š6ò*ƒ8›Í‰¼ø!âe,wس~üîšþP?dºÊN¡âš¾¬LÌx¼,û…lnè1Ò~WÐg!¡8{DŠg°“;]Àk>ö¬® ¯ém2œªAð³ÇèÉ £BûÉ~é,ÜÔÈü rX JÍ8‘QQ<ðbúðbÏ­áñÕ„®À€¾ gHïãdéÚ?AâÀq6‘{æ‚ Ý(6Øp@8ªg ´ùú|s¥Z[¦/3O°l´¼l~Åò–ù=‹Ö†&ñí¨gyþþ=£mZnN½F·Í•EGuD­z<*u$êL”娴7´°Ô´¤·¦ÏЇŠûŠai¥´ Ž›!Ãq-wÁ˜0dm#p;`ng‹qI\!G´ø’ÕhÔ»²À­ÉÔ4k‚V£¯Ô…±ê=(÷”šÌ¹yùò‘Keà¾Î¼©y~³ºO:Î|»Ÿ×˜ %óù©Ì·Ðk4n'èµb‹…Ùh!f‘‰acØjŸ‹›ÙYüµÎ øa²Ñù V#‡Á‘ãÈac,aãô*ÑÌÅmõhâbXF'ì²ÞàÂD7[³k›Áƒ{:<ë={‚ž#ž3Áã­Œ¿LÁþ¾ÂBCŸÑVˆŠCÅ}… nÊÊlZ‚–\Â=È)ð‚ÚžlÖ%ðz¬Ã‚Çâ)+ùõ›ÃæÎ¼=#š“N EK±÷64¯_zÝ„h²â¢kËm?jtëŸz¤ïÞ½î:wò€ÿÜV°$Zt¿X®ÓTiª´÷kŽk8—× +…uÂ&a»ÀqÚ íí'ZÖ¨Å,‡R«Â µVÅh4ZíO&žxÀª´ç׃ljJF£8 ³Kµz+ñ³»xV™F5õõ†ŠŒ…Àü~ª¯ qgz »Úð¦^¯-“ &ö‚ôzr±Ç8ÌcÄlÆSÒw 7,X|J*—ÆÒ;¸àWfñÅv²4tŸÌÓcÀÓ `ÕfˆV^¿Õd2™µºýf¥h³Åš¶êYH¡MŒ«5˜MZįqêß@‹tÎmîøJa<à½5½!˜à€]a/p¦9°/TØ€â(~qÀ 0Ç€G~3ˆ$|F¥yâ}\glnœ¿¨íúœ„Ññh.ã ý)§Ô?ªáE¬‘$ià¿¥ŸõøŽ¦Ö‡—,Ú¤µ—@òô¬ôFŠÎvö›w¥_’uÚ16™ëëž :mÌ8í¸ÔFmc*›Ÿ0ÍLR*bQˆv{\À(&qn"ÆiUí¢Ô›¹EÑ–^Í¢èm†øÌx²8¾#~}üãñÁø#ñgâ…øôÊ´ý›–Œï­ 4ôÁ&ôÂŒ²¯ÐXh‚›P ‹§< -˜Š)T4M‘4æ\’UžqKËÌ…7OS0?Þt÷·&÷žé>wv@úçí­:GÕ¨wïyïŒO}èþ¥·v¦–<@–z“˶LÝ^<\:è ôÞÉ]8ú™¶=«æuü÷óÀKXý` €—:°‚>+±0ç8i¶jYA£¶ oio@Û  É Ö*õ—'_xLÅ¡B:Ì'ÉlÊ÷˜=lØ[3r–ô©öÇßÏ¥±,b{Š¥×žï”V®Æwá§1w-¸_ è‡c¬ôƒ|£ 4K´¶¹°S§S$$¸SÅ(°n­Ó6;©ÏÜÍ­‰Õgg@U´ª×Än7x3½äqoÐ{Ä{ÆËz³*3/ã½g _—ÔÂáÂô€&|ܼŗ—ŸŽss@ `öóB±òÆ“Ü+ïÁ3ÍšµhIsóéÓE×Í+þçgŸý³xÞu ¤~üñ<.m™:mæÌiS[ððööëÝpâkßÊ®x²ò'Nü¡òÉ¢¢·V¾, `ü26g΄©--S©.9ð ›Æíÿ0Mó⼇˜œ¬òŠ„ÓE•6Ngéu¯áu‹´7ñÛ 1™1¤#f}Ìã1Á˜#1gbø˜ÔÊ”ËcÙ䤉jø7åIDe,+Ó„†¹ÍV£A tªxè\9ýá÷å²M(ð–(ë°‘X{W¯ªÝ!íxRºhÆ1ªú1÷ºÔÚ_úIvNË sÆäÔÍ[È>Œ=ÒçÏH?H¿¥Þ#Ön™út–3óû¯¾µiÕú$qÓm·QÝÏPÙⶃïCdÿù¸x]Á.QUÀç+«ø6ÕMªµìZ~3ó0»‘ßÁ<Ínç{pêüŽêSæS• ?Îáölò¼05<ö>ðÈkŒ…àÈ.@5"ÔöSÕjÆm³Ú< T«*ét xxäKoÄÿý"¶âeÏϤCq“ŸÞ¾ÿ𞘒áÂY‰Ì[iÿîÝd=;íýÝýëºæç5K?üò˹ù…K>8t·2Nãàã*™àìŠÙËMXP„€¦Þ4ߴн‡éb»L™ìFÓ Œ–$[”É d|¾ÁéÀ~‹ÃîèÁî]žºÈ`Bt0Ô¿»x™ᩚ±š,0“€•À­˜cS3îýàµkm®)h\êÝIV±û/Ž:ÚþäW?HqÃÖ^?€–IÇI}” ëŸ\ ÔÕ(ƒîtyÂ[%ª†.¼¡á#è9Ú­† j¸Ÿ–4®NÉÌ×`ð`¿¸ØO…r˜Ì O²…ìkÒÛHºS:G;Á”ìNn¼8_´ É,«d’Q*øvìT3 ¿Ò¡R÷àòsWÊ.8a± G.áÞ¶°–P,é ­þÂí“BÒ (ôÐ|ÊÀgÜŸ¸o!¢ö¢;ÅêwŸ+Î;õ°I$ÑSh®¶7X6zÞrìýE©4«Lñ¹tÉz½‰-ñº“BUbSzÍ`¥´L?Š<ºú!°¶ðn3©$dŠF–À–-˦Ç¿û<8w祎 eµ „*ÍH5€wKÁÙ›¸ý°#,;@T8”$ê!%œ‚q ðå…«åb¼ÆÂ¡âK±çcÎrû/TJçdl€]TÕ˜Ð>q½ …’3Ze (R”>c²)_ÈU) LóQ«qºÑ¸ÝeÜŒ1nGÏßFç¿(c8…JiUØ•¬`r N•ÍbeÌ0ŠUŦ•¦=Êݦ·M:½ W•ÞdT*§cR ŒÎˆˆNÁ(¢€„eĤ×êz‡™Ò¬ ä †ãÇí¡"C$².‚œ#…¬4‚¸þ(/ròÀÇQV Ì.Ä{¥¯ˆôô±tšH_á}XC“ ÌÉ”G“/¤°'?šr1ȱ‚ò hÁ•qoʹªib†‚L#„ð’M0•*ØÑ¤Ra^AœSzJéPkþ‡PøˆR›È‚=4t®ß Â]ð0ƒ¿ x4©Æ.éPèÀq`qåÎbm¾$@ZZA÷ÿt¿Z΃•ˆ«ÆjrD9œœWccÔ%ze É1G;ãùfGlÜ Ïé!:=¢Ñiß>Sn‘u¸i˜Oàeý-Ï,›Õˆ™G¾üò±c/“ý'¶I¤Û¾ür.ÂEÛN„FǺ_Ázé쯿JgW~øüóâ{ñßþ t£¡´{h§9R@o”³oà‰T—ŽIÖ;§…ÑúuŽ(K޽B[ÓlPX]SŸ^V Ô”‚ÅE,­@•µ0ÇV,ö¹®ÀYÒ/?IoK!·Ó¨y–4~þ RèÓÐ?¹ý½ßËóâ²pQoX/&»½Ñv 0'€C‹’“H VëŽ7ó¶x>ß=ÍàLE¢#%µÇ Ŭ÷@èšþE¢+ˆÿÏAWÀ›gµQ/€ú±4T¶Y¨±ÌÀé²Oœ>‚›Úr²ç|¾mxfÁü•s§(4©Ò :^b5{­´_ú|^Á2{òÍw¥;Cek§Í;˜œ´áÑÙ­¾ÂhVܨ’u÷ν£¢ºû§¹ Î'Åù =ì¼Kp¨z›Ç–0WÓª2MdH²$:Ã-Î=–÷,Ç-¤ž6Ÿ¶þj>oý5M¯CFu¼Ýå·)üñ:5kOÿ(ÅþQLIFÖ¤(3ìdm$:³\yÆi(/Ý‘™%ÓgÐiè—݆>ªÜ#BF#ÑðĤ@D³ƒÑ¥Nõ›20&7S#.8Ï6« Ã=4 u£\ŒWé’ªw/,»M×m9Uÿ0vcÛwxŒBúT± êºå÷U¤ýNÚ6åé tJúRÚM&â·[³¯±§¯“ˆó挜ûÙ[˜?wúÎóÔ §wdâè¶7ß“~ÂÂ)6ô§ìëA ¤€ D æ“Â*” ~P®ï&~ð{ëE%YË}êóBÖ2‹á¼^ µ±Ô_¥r {Pª”ޓʹýÒ… £Ù×`Çø3Àš¥Ùìab´¸Ì—•V«E•¯uÚI¾Åa³_Öa2‚ôS¿“:Ã6”.@1è¼K:Ssñ\è+xuoŽY+Ý&ݶn ™Èí¿Ø¾±âæ›+62]ÛO¯9sfÍi¦ ¦Œ3æÁÀƒGËE 7ë7q<—±ß§x†ƒ­µ„! Õ¼÷`c7ÃAø`ÜÍ:„ÿáíG|ý°R­ÆuÖÐ uê 8õä_xù@&ðçá`.`QRJ•tx ©e·UÆ1v'/Mx¾xVÅrœRÃƲå\•f-ÛÉuiÖj;õw>crŸk>1­ÈÉFq­MÏÁÜA Ë‚†8ˆp­Bg×%CßÂó 5oL6•Mm׬`V°í\;ßn|…y…}‘{‰—y—}‹{‹ÿŒùŒý„û„ÿŽùŽ=Åâ]õÌtv 7ŸfœÇÌcçrsù6õ\£šbåÐX /©÷OªOÏ©~RÿhT«UÄAã)Ai4‡  Æ ›‘å”*ȂѠB©†\1¯´#ÂF2–FG¨ÁS½Ž{€:ܳÛä0·ž¼gõö†Ât¯¡îµváÂl3h£vP޶ªënZi8ÐiHY®Ñ‰·d j‚Sº«.@²ÊlË7{ä/º Ü­o$§<ƒËÿ”–ö&.”Z¤cÝ99ÝÒߤ _/ž>ÅL„ï¿1SÀrÎÀ±Òן–Á‡ÐÕ®t…g›8nÚ ¾5IâÆ’±Üt2›«xHñ,y–{Qñ¦âkÅy…N­Àœçý&AP»,Œà pˆ%ì„©䢓rÆKJñ 0!gÐ ©RoºƒÀ«b}*µ…qš]¼‹ °N—3OëˆsmôT•_Ô…ú{ÁÀS“抜.£™XðÓ ùxDQ¾Ä™+dåf° Òé‘[–ý—tã£/ßÒ:ªnõËW°Ójˆâ¼¸¡¥çžÅ6,^\úâýïLÍyíž /Á<Ì€5áÀH;@Ìúœ8¦Bѵo‚<Vr¼sVs†1î»ðúN—б26³Õl«RŒ³Ž³q6ZmÓÇñçìw±ß¸Ï¹ cq…a-·ÆÀBzëaqØÝLÝ"£ÓEó¾x`3¥F«­ ‰gòl«âãš5°Ââô—îá8‡×¤¸$T8› wÒÛ—&ÇáplÛña8,A0Á'Áñ…d®‰Œ4ã# ux¯°êšµÇ*E³š„¬|ˈIõùq6ìUO¿çâi?vŒb–Ý<ɧç^ßÒQ}ïS¥IÙÑ™-sÃp4£á§4ðÁàs r7÷>¬.ÞV’-ròVÏ'@ì9œ±Ájà#ÌG%ÐT¾²ÎÚ`Í]w3°ÂB½%¬«ë mFÂÝØ'ïÀ:à@3ì8F½ ‡‹>º´îZL×w‹ûš k ãO8ã-Ã,tyÄ›;Œêža$;5Á¾$eï^©÷±-#Fõqï3Ì· “ëv½{ñfÑ»*8”J¥ì à¹V^ÉŸ.ºâ@r¾Ì ÁÄûµ>Èh‹îwª]ŸI\&—?™jvfÇܦÌKude_!²aµj,±…y:L—€S4zÄM¾Kë#ò”3£ û@ý.šó0l$Õ³4±c–O^ëZsý#…qîá¨G¶‰ØR¹Rzæ}éÎÓD§/ÜœŸ”1eíÎ~qÍß7<ýè÷V_?sl³Ô‘rÃï/üüáu=O=™m \[º¥¢Â[‚ÄÕL˜à›Îà^N‹~ŽH½®MÇFÙLHã³ A¥È㜳!`„¼×ëžÚÈ”Œd/©wFu¤lä¨È./‡ðr@l„%fôÓ¹iQÒ_ã —Ü(õâ˜QONggTT¼íÁPÙPŸ7nÃ=¡nîµÐ¹™Õ'ûòÞÁŽh„?è6ìiâ•ì;ó,€ËÜ} %y¡?¼_,/ǃbÅ ÃéhXø9‡´üÂëTvï†/šëf_4ƒG*¯¯£†õõÁ×®¯CNCÎám—¾Æ±Ô‘×çù-ìtØû±¿¤v{À+@¶ È1="ÍCz4$|”+¡\e”› Üå³{¾¹¡ƒû=Uf@úµÈï´Ëß~  Þ 3Gs%#2kxXTb=·àäU>³Ú¡ShíÚ<ƒ3žwE»ìÇ¿ôd #[\pƒÂW^éŒx ¹&jN¼Ô+¢6XfÙ ·×ÓZT·|u,VJ¡C·OÍH“NaczÎÌ5ä±ý¿Óë5i=›H!DÓßC<ýA‰¯<ô÷ýÖʤ1@fÀ½Hª=<æÅ=åÓ¸¿Ç_4ØdH£è|NµUǸÌ.kÀâŒWåÅÊØuÀC§J7¢s!ÎÀN‚+Õ®Ç8è:S£ãGnZ°&®`£89k6K§ÜÞõšô3Vøà–I·Î™pß3Ï.©ZÇÜ3:aÚç $¿ôZœ~pÕàÁ“ l#X¯±{ƒ+w½âÛJÑa´¼Få&™D$Œ…Æ¿:u@#ç¦æìòÔν4G?’SŽ5M€:Åû#êà€9§næ ‘É_Õæèdíó#<£2”fÕv°Ã²¸xMè[úúÂÄÑaZ–|¿5j‘÷©Ý"NPø‡–Q²µºZ5F]é)sW%e±ñnе¦°VgjªI`SÕ©©z‹Êk­‰,iBß™®A±5ú4T“âHK¿ÂäkX²Ï,çÝåDL8·:l8,'¯f4Í€ÕfÙ²É^³_NÊÀîUIYEA’x¶2.÷þɳ¥=ãÆõ=„_óŽŒ%M’“vL™üÃEià'øáUã8wavv¦Ã12½¼¬cÃgO¾“ï>¾S« 8íjg γ;¢c.›bªOL…5¡dš‚I¦J_™Ó¡þ1]2„©škôã­ÖÀÒóà§mÒiÖm½zòÙÉølihQSƤvq™xáõÍ\¶¹(õÍ{ɱ@;'èæil)X¢?ˆüd~ÿ4ÿüŒÇR —V’eÌr–¯„šÜn÷2÷ó †Í\Œ›e&È‘7¬Ê¹ BsAåi;•kÕÕ=j>*J£Ð·F0ABˆˆK¡À;­jUVî%r‘T³Ë ¬ Ô:­ZdÞTPŠóƒ G«ÅúlXºÛ!åØk¿Ù ƒ©·bØíÓ Ž‚¼ªä ©’üysX„ø´N—F2.1R«t—V L%>lBïô%s:RXi1ùϯ`E½kÁ-¯%¤§ãÛß'De2.аK/g|ŽHï=Œ>ŠÚ[ØÌNƒØ‚ún4_,GÆ15ºFÒÈ4éxµKçS¹Ü˜Ù ·ñQŽÆhoTñ0ZÎ…ŠêRY›+æAjÝ`¤ßµfòG½_…zÃÚV-ˆ"ÀÐÁpAãÊŽ#óÃÝz6$¢`F` ô¥^)”•=:Ž„Ã‹šò¸ƒÒÅ® opï³ä[ŒÇNˆŠœRÖÉô Ð_Åþ«Ï8 ;Zå]Ê—÷(_ÞŸü?÷_Þw|i×1ÍÁï‚ËQü· ¸Wï•'€G8Õ¡Ih2üÎw*š¿Îm€½¼ð{Qª!MôÃÓ¸®²nÊ´‰•)U­ Ú[—͛ݒVºhÁz×¥O¸éoêÝ™" 7,èXð8@`À€/ÎPc`pdˆµÍ‹:Ö<ØpàK€3”P7@&€P Ð ° `=ÀãA€}G¾8‚ƒ n€L  `1@ÀúÈÁg°Ž‘{H;0¤6¤-‡ÌW<ý]õ¾¬!íì!íaCÚ°Wçªçs‡´aÿâU×ó‡´éîô+Ç#ïT¿¿’!×K‡´Gi— i—iW iWiÃÿ4¹ Ù¼ú?L®Ä·fH{üö„!màëUÏ× iOÒž<¤=eH6†]õ¾iCÚ CÚ-CÚ³†´giÏÒnÒž;¤}ívÛö¼!íCÚòÿš¹‚Þ×¹¾hHæÇUã_2¤½tHû†!íeCÚ7i·i/Ò†Eô+û¿€iûÿ) x¨ endstream endobj 148 0 obj 12111 endobj 12 0 obj << /Type /Font /Subtype /TrueType /BaseFont /GNZWIN+HelveticaNeue /FontDescriptor 149 0 R /Encoding /MacRomanEncoding /FirstChar 32 /LastChar 223 /Widths [ 278 0 426 0 0 0 0 278 259 259 0 0 278 389 278 333 556 556 556 556 556 556 556 556 556 556 278 278 600 0 600 0 0 648 685 722 704 611 574 759 722 259 519 667 556 871 722 760 648 760 685 648 574 722 611 926 611 648 611 0 0 0 0 0 222 537 593 537 593 537 296 574 556 222 222 519 222 853 556 574 593 593 333 500 315 556 500 758 518 500 480 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 518 518 ] >> endobj 149 0 obj << /Type /FontDescriptor /FontName /GNZWIN+HelveticaNeue /Flags 32 /FontBBox [-951 -481 1446 1077] /ItalicAngle 0 /Ascent 952 /Descent -213 /CapHeight 714 /StemV 95 /Leading 28 /XHeight 517 /StemH 80 /AvgWidth 447 /MaxWidth 1500 /FontFile2 150 0 R >> endobj 150 0 obj << /Length 151 0 R /Length1 16368 /Filter /FlateDecode >> stream xå{ t\ՙ潯öE¥*Õ¾¨¶W‹T*Õ¢RU©J¥ÒbÉ–,[–lË–dda,oÇ M»“‹;i '!Ò L脇™&²ºÉ80$@H'ÓCħ³0ÉtÓÂtH *Ï÷¿W¥Åq8LsÎÌûüz·^½wï¿ÿ¿ÿvo¼î†CÌÈN18xüÀµLú§~1þ¹ƒ7ž ÊŸù"®ÊÃ×9^ÿ|ÛŽ\sóaù³NÉXAyôÐzŽþýT8ŠÒ'Æ»q=~ò&ù³êô_¹æÄÁú÷ZzïáãnªÏ.àsðÃŽ’Ÿï×¶kO\²þY‹ë¹k¯;TžÏà³qãg†ÀÝì>¦c!&à?ýó34”møŽþKÏx^­|v¡¹ò&·(þžybÓ•taßýœrâ7cµ€êeuõ¤wK;˜OuߟR="õ$½Sÿ³c‰Ù:–˜Ä:˜ÙpMŽ/1ÝäÌ×9ÿ“Ù%~ñãKìõ,zU,ìï\b< Ž>ïÄ!‰‰ZŠdpóEtóÎq6x:xzlñtpsðèÅ3ʨtŇNϦƒgØ®™cø»{&tf`Ö»Ú<4;[F?Jê¯àñÓ³èáêz¸J·Ò+xH•žQÄ&g¦fΜöžžõ†BÁ‘3ç&gΜö†fgñ”z•SpüûÇ\už5àYÀ÷Z¹—]è]Ìž>M}â“ 9wú´÷4f"ÝCKœÕo`¦ôŒ":²Ä&gè«1ä¥bH Ùaô­KŽïš'!âDÿ[²áuVųF°g mú€ 5½H›ß¤æUN7@jÏf‚´åòŠïè*—Aø”Œð©Ë lÝ€°í½¶¯ò &àÖ.!ìü€v½„Ýï aÏ*§ö‚g!ì[ExÀ{†­*->u‰Ê²ß©ÃÿRÈ[×AÎÿ™å¸&æ+ì8®Ç¸‚¥¹ââÛhïâg]ÒuûÅ_I–í¹@­ HÅ@] 6PXzï 3,%ÑßcÂ÷Y‡p׃ *èm|þ>›Àx; sâ^’M(ްIÜß.ü ýÞ‰{t¥÷ïdQ¼'à»­èƒ)bFºâ¾€«ƒýÝÅW7‹SlSý¡+oÃsUÜO²öwlÏýãáÊFÓl€îKßÓ{Sx~;ë&ÞËtôÚ&á-fÔL‡¶–ÿ¼ªÑ'¶W¶éðLÍOãs“l³lûÉ8+˜’©¨ÁÔLô°¿zfÀóMÌÄš™™YX ³ÂbÛ1Ɯғ.æfæe>Ö ÿ@¯!f"‹°(‹±8kcí,;Ÿd,ÅÒ,òÒ{òŸ.–cÝ,Ï ¬ÈzX‰•Y/«°>VeýÀ` ±Mllf[Ø(c[Ù8Û¶îýÿ—›ÛÙ„Ä~ëbW°Ù9näe¾æ· m„ð¢â¯•‚òÕœêvõ§5š[5ßÔ\ÐüJÛ¦}M7§{J÷Ïú þŒþ5ƒÚP5\k¸Çð²Ñc\n 7½h:lz§9ؼ§ùÆæ3Í?6›Ì=æm½å -¶–Ç­ëa›ËvµíÓ¶ïÛ•v¿}ÉÁ;{œãüëa×?¹‡ÜW¹?ï~Ö#xbž‡½äç/ÏB;4¬(ûnmî¤¼ß Òšáß΃pO¸À–ñ¬Š9;–¡OГŽL–‡,!«%dá÷×¾Çs¹Úá•Ï÷¯”„ïà ëùYÞ'¯SÝeÙY:„¾»Øë|¯BøhIS-²ÚCù.âÕÉI÷i|ónoãybD-¿ëþQ/qñ ¾,©_â†4*“ÕñçŽÚK£¼MøáŠ]øG<+°ÄÅ7Axv.Ǿ»ÄºñpÔÙ¹0;M炤L²‡1¼UmíݺtèРoƒêšÁ  RÈ£×V’éTæeØÛWAu¹š Wäj‚\M« r5A®&ÈÕ¹š Wäj‚\M« Ý5+¬1‰ÄŠEÔ‰%EíN bí®*s]~¥ÝfÄ0dmóãsU ¹+ŰIùG\g uE"]!‹Ž«¼•B¡âUÍ)ÍþîÅž‰n¿Y)·‹;¨Íç=ýý•NŸ¯³Òßïi;¸·RÙ{0ß=¹¥¶Lî¦öh!,ŒNîÆd9Û‹?‹ÀUÏÄe|DÆxcu3( ùº©·!‹hRˆöœ…/jbÅáÈ’ðL[·ß0\Sâeúz}u°{19¼Ji‹ÜMv‰…©AÆÔL L ÀÔL ÀÔL ÀÔL ÀÔL ÀÔL ÀÔL ÒZ £Gdï ÅA[Ö`í‚OTÀpÅa'hø8ᜋU-ГBʇªŠbUA @ ÉiÞÎG}]Q‡³s¸3:\Uü?Õ>­Ž‡B¡j¦U¬L¥zfz}üù`W %œnödÒ>G×Ðlÿx(—ŒÛì©Òhºk[ÎÛtaÛzñM^UlÉa3f(€·©×,é—XhXh…Xh…Xh…Xh…Xh…Xh…XhÅ2”˼XÙËp÷Z©´!$î›q‰%R'ð'Ôò² ò7ß7qó7qó7qó7qó7qó7qó7/ÉÀ‹ÞÈÇ4aÕÑôš0½8,†Œû2b…Ô.ãAˆŸ§UN +XYbŒ¾é;Oö¤ÐŽÅEµòª ùîXh±Üûà;|ð>ø|‡¾ÃßáƒïðÁwøà;|ð>"E>øÁJþ¢·70nÆíÒÿþŽfAÇ@7ƒîÝztôˆâ¤–ƒÔ¬¸–h}¥ wÄh L+ÕS[‰¶ ±=µ]xPRÆ Àñ ­ f6€[ÖMÝ’·Éc1ñ‡¦µGg¶-VÜ–î+wlÚWtù‹S¹ò¬_à¦èP!W½%RˆX¬‘¼(£6k¬ ˜g殾k¬ç¦ÅΑÝñìîª˜Ì íû§òå§=½¡@)év'Ê¡Po‡›ì`þ¾šX`ŽFF_O>F‡Õ!Ô-„+ ±‡`œsU_©åùÉž[ÓêUjl¿píØdï'þô«s»Î<ò)’«‚µA®Jȵ™Ì G<–©¡ €‰Á01Y²ôU73l’Í@²H6Éf Ù $›d3l’Í4$›d3&YpËHK׌u…hƒdýØî2:¡²ÄÊi©Ï2ô§ÜП2ô§ ­(c–¡?eèOúS†þ”¡?eèOúS†þ”¡?eI‚H·,ˆ~—¡ørk‰m"]ê‡"húSrjw m€Q§¶m+Ú†úËrKŠUdÓ«–#‡S˜fzÍJ#ªÁ“²³…1ÐJ¹»7 å<©°m®ÐYˆÎä²{ú£Õμ+·³Ü>^:Û‹¾ÍiçƒCÓB“·Íg*"à1ù:‚™©û|aªàñ'»‡öÙl;2áÁ\À•ÚTûD +bµG²­þ®¨}L^óáºï ^ü!Ùû&05 Òbš¦KÆ#K1ă ă@<ă@<ă@<ă@<ă@<ă@<ă¤*”“$s:–€Ž% c èX:–€Ž% c èX:–€Ž% c‰†Ž% c /ó”'µb•“­`Øý¦¶í(Æ vtÝz/"?Èu‘Œ¼ì EHØóz`IKDrû´öÆÙ?¼!>4Ó•ÛS ·–vºg\‚rb"·•›l±B(‹Ú›CùX¤µ~õйg–}l[ Ü7ëž©ŠùNáïèᥬñBk¨’öy:Ë’•rúˆ‹ä°´Á*Åf±{^n«Ïc~TÛ /ɆqZÍ҃б¼h·À >uâ¿ïĉÚKR® HùÍÓRßf6rù¾i ò¿¸8Æ¥5E£7Ÿ‡­1Jžø·Fªg?qŒXOò¼>òº$r–ºøk!!´ýQö«DŸjÌ…†"륲«òQ!QSòßÔöòoÿ¼ú³Mߺ̻ä˜) R£W¥ônÑÍGíª^TòG+›~Výùð·˜pñ8°{¤¼ÙÙÓˆr\A–“Õ½,†ð”{òòœUÁsÅ3ÇŸ»Yø½¯Ö^=0ÉSÇjÿÀã|{íßñ/®~ðôI6UáÚzø”$焬œgS°â®à–ãT V‰¦±J4Ò·í¸QfAÇ@7ƒîÝztôˆb‡v\Ý’\Úe[÷øÊØ:¸nY•wZй§h%…¡ ¤]aLÈ€éQ›,ƒY¤6¡ç@›Ir°æe»¥9ò®uág,žRˆŠÕoûf ˜pm™ª½ÂgóSEßæ¡\1+š;»óÎ󒿧ó¥Ÿö++•xn¥ –¶Æ‡®0 ¶]¥ÂV»^¯â+·¿mð¦Äʰ¤ß¾‚\8ÊŽ/£t'ËÀ/û.?øóîøaWü°+~Ø?ìŠvÅ»â‡]ñîøaWü°+þ†]ñîø!0 à†û¢Ùº1[u}æjò¸9Lk5V >ÊbaxAÛ=±Ø³ó¦“í;oÝu×C¦…??–¸¢×çëÝ70~œÿ²´·ìï=|×ÄÄ‹¥ûîHn+2SÇûzŽNe¤â  éØÐ1J‰y¥…Ø,±C«“rbl‹ÿ·µ ³…PWeÛ\—y3f[´Ô½’RT )‰W|ì᡹’Û›È2æ•7g?º»íñ/M ‰è–CCóÕˆU%ܲRèZøã¹¯}£7Z3UÌÇÀrˈfd“B›R¶l¤căè~iëÖN PyË7þOð7j'øõµOò?ž_)L¾=ùÊäÚ"ÆÐÉ)¸<y,lÙŽõ«y®4_’(Uáäþ'øhm‰ßH]ó-Ô5g¤gg¡gIögrî@õ9R ²ž”ÉPår†(®Q³\U¡àÇ 4CÍÐA3tÐ 4CÍÐA3tÐ 4CÍÐAsCÍÐA³äÛh/zõ¦!!^c%¥|}‰Ôš_@VäÄL¤úÔšJúTëÖk¬°è®Ô¾óßʾjÐ×;?ض¥'¦YÐ§Ž”§ÿ`º#5sÛdÿ­³³ü¦Éìt$½ãHOéøt·5ÖÛÞ?[öö_ýɉÍ]ìE)\–íI²ÝBLÊØ¹P×E¨Æ, ʳT¸jIT»¢j¢\¥ W–‡¾!©2²@"7-,Ôî”%R;‹*)*°4îN õuŒ«`ïUݹ@oâ1üãÌúºzP7Ú @)HXó¼u]Q×ÃÒ(j´6)‚ëã¢Ýæ eÀÏ.dÅN·~ášÅÊTÖþ¸àZy«w³=Öð' 77°yHÂ5Æ5lVur­¬…~êÁFݦZrù"Ïé8lêÄÂïqá¦ÚwxçGj÷ÑdÞ9Qû,ÿ Ö>½{ÿ8ÆPQ®@Û4'å ´¨ÊD7”ud™à/Õn§~&…[ˆG,…ï›ØÞõuHâWÎH–Mè—‚[ †?•¥HÁBœÓºm´šê-y}å®çH¦>9'ühêGÂÜGúI6;WþB z~åËØÆ’ä´ö<‚…ñ<­•ÖäR€:¥O¯ãJÖ«õm@Õ’ãTqùö9ßptN5Kè[yã?)l¢ñ)ÿ}Cø>Ö¼•™ï.±6(j;¨ ÚkÈ6´?¸Úi;zõÚëek®GÌ oÄ z8=b=b=b=b=b=b=b=b=b=b=b=ŒlE3^#©7Ctb}Ф² ©vº.ß5 ÷Uöî¯ø×…Ž=§¦§Oíéh\ù¡Â±Ý¹Üîc…Æu쎣}}GïõZ=z‡„Ùû« ?-¼ [ÇP‘µJ)>cÆfÌX%ÏX…«3Vuf¬ÂŒU˜± 3VaÆ*ÌX…«0cf¬ÂŒU˜± 3†A²+T=Òa0š½³§ýBjS-vžÊ`ê8‡"æÿcâcËSããSµÿ¾ðò5'N\ÃOrõ¦aÎ÷ÀDøµ‹‹(¼“><-éƒ•èŸ J‚üÓ FÑg´}ˆ«ð0óIqU wt²/ÐÁèð…¾@_ ƒ/ÐÁèà tð:ø|¾@_ kø|§`†>ôf•ñ²/k/+𢚌xY—xY—x|Ðý GAgAÏ !KÌ)­ÚŽºmXF,+WKBdï4NÉÚ5 @¦qãkɪœ/ùS];2¹õêÒ–¸>³¿Ph( ]޾Pî·­W˜¡›OV¶>½³®1¤9}‰U½¡Ø=ˆ,ûOeo‹0SbRÄüɃ§mÎÜo•pŽË¨ÄJ¼J¨ÄJ¨ÄJ¨ÄJ¨ÄJ¨ÄJ¨ÄJ\F…¼‘ ȬtÃuÏDѰí0­Û4$‡N¿‚Ü+B]¹æ"B^©Ú:±ð÷bÂcTªA£¿º¹Y+ ƒ3ì½þpÇ·_ÛTñvVÈò¬]L{<…tÌÐ’î.x<™¸O-´\5¸w±ö_âÙV=X‚VGa—Â.•Ø')æ•7Hü`¬ÛÚ¤æ’-Bõ=0±50±›ôd ×1Ð,èèfÐ] ûA‚΂žÑÊêÂ:¥^{)3À.¿4Œ¥ö%1±º±/“׊ijY•üç„ö-û‹Ùù±d|pçôÎÁx°{0ض­$Î¥§>TÉœÌÕï{;Ëþ­ ü×½Ó=wnG!;Øî¶¶´¦¢ñ®V£-1Ø9¸Ðçwæ¦JùÍ)¯Íâi‰iŸqDÆ !š@û±_ï?$?A‰\k¥À„DÅùº´RÀû8'¡øÞoF-ª[QÍp½§–û!OÝh™.í[êŸ<¶ð_þýÂCG>qà¿$|cÉÎz'‚ª™•/×y^Ę,"9¦Óc¼F®¯Àð-[ejkE)·ÂŠX@üÕ¯®þö¹“ï¾võòã×ñµ{y¼ö?þ?pé€,ÇZŠÙèh¥ \)ਸ6š¦ŽB'ôCÏoà–kþó‹ÿŠÛ`Щ}ï®ÍÕè"8s ï ð®ïÔ¹œ‡¬\)ÀWœ§€ŠWÚE¦À©èêzj%þW+oñ&'‘ýHê‚=ÚW…mìkX£÷ha%âŽì~x÷Ý4¶À"¨Åê J¥Cìée‘—Vš¥!C%ÒÈÙl|Và=*ðx ¼GÞ£ïQ÷¨À{Tà=*ðxJÃ{Tà=*Xþ´íaà…§kÚƒ %11Úå¢ví,Ú´ †i­a*ˆ‰"2Öó Ú/‚jSGdÒ@&š‡Ó€ª×wi+¾ž:Òîa£ÄFËä­[X¥ o6Ø4áž±c¢¦£[{ÈîËô‹¡þ¬ß›®Š…y1ŠŸl‰UÖ¨×Òš*—º…!•ÏÏõ=}KûP¦Ô®n û\î&FÝ"ö$ãE±9šHD¹coK»èÔ¶´ÚƒQ›NC18°ßì;!w²:쥰²]ø‚¦KÛäg¤í\©|D~Þ„©Ò½Æþ© m·ìyܰ²î†•u£étni7¬¬VÖ +놕uÃʺaeݰ²nXY7¬¬[²²Ô³xD±,?t’Ø!ãnÅ)$j[á›Ãäsþ ;@¢åÒŠå¦iÁÔžJ[{g{[ý½³•œ]à½æHo2Y·Xb•Žö¾¸•\ψ3ТMŒ]U,^5žŒwpC­/6Ú¶Ä"›‹á` *']åï@WEv3íÉ6Ð÷íAלHxi†NÌV]ß«!ëL‡s̸Úä=šõY,=YKrü_Ϩb½Û“}Wôù}ûz^oÚ«ÝÒßVŽXÌÑjª0ÀR›’öŽñCåòͱ£WV†‚ùáH|¬'\u‚Ö£ :a…Nü•{ÐA1b‹âUŠ;¨J†>|p±?í;Ê9Œ¼Ù8™A÷-Uè@AÎ.­]º›¤(—êfØ,bŽbüV„ÁÔn…†/‰ñU”ïl(söÛÌ‘JÇzeà÷H:“²­×™Ú%ºð2²ï·œ«¶CÒ˜­ÉXÒܺ-S@?ô°Rû–9È‘‰ ¬ÙëëŠ0´8fEFÕˆ«‘êÍuÃGóðHæ ¹W9¤¡Ð>B/àg]øÅPA>‹`§%Qà^ûàˆåC´º{·a¤¨¶µpþ1Á^Ü7’ŸŒê¾êÌIÞM»&Îxá/r]¾t_8}t¦Ô6zUoïâhÛ F†åí8ÿèd;ÖÇr­‡¸o‚bÒÕFÒ ÚÍ$@ûºë§Üð4}¬$Ö/V°ˆÃSyÚvT·¢ªppzq10x Æ€qóØ^¾\ÛÌ—ÇGÃ.…r«R9Ø¿Ùä3Ò8a=¨°'i‹SNnh‹s-ýÂ`=çA` '·X¤=t×~^ÚwIA±SU %’‚GIÁ£¤àQRð()x”'–6‹Ñáî@0?ŽŒ–kp6€?¯ÁxèÔeÄ>)¤©n÷Èò“Ç$/A×ú)(€ H„öM¬õâ ^r£×ÕºŽEZž;ô á)EËÀ´5VŠg{¦-‰áœ3ÛÑ Rb{“®žLí |wb¤Ë§·‡\Ü’U¦ú0ía°Ke¯g$ 5i§Jz@ž'’[)~`zZ¸êèÑù•w±I„}“_✞ܧ•ö¢”õ„P‰~ú£«)£O ƒåÍA9 Þз§2P-ÃI“XÜN1/Æ™¶ùZ”•ÍYÚDC®Ì ›Wžm p>¦ìÇL8Íç êõá÷¨“­¯/m¨ëä‹Öœ¢(j,#Ó“_¿æÂ÷®ƒW ÿqkíŸøØ_ÿ”ÿ¹ÆÝ66å;g¤†\åpѳw#Àž]h4‚Ʃ催VÄ{òé#:úÓÜÛ ¾v0£ÖUþ“tR†ôÌrãëµ{¹(fÅkT|ÖíMÃ!ÊÁì`55”O­¡%¨óÓØ¿Œ¶FºéÑþ@Ü¡vwöÇsÓóDæxYT+ïò¡æÎ„ßH¸kñ¡ÊhK áBë#m¥ˆ%•È´ÍH{õcíYÙÆõC³³ƒMrdÂ¥ÙÕgµqõÈó’5#1¼nÅ\Ÿ—9¼d¹ìG‰X޳=áÿoµ¼ÛÜÉ^(ÁÁ’úu.8°¿¯:? ÌWûö¹ëòxºÆÒ鱬ǓK—®ko»ªT:8–HŒ„`(VîE¬l’þß+“ï]‹×ÇÍu_{I¬œW­åÒîþûŒ•U(Óè7Ë›/ —¤o½ˆ#Iß’ìÑF)ÿçâH=Ö“ëÉ “@m9v”Ûr–‡ÕeVk‘âúò·£F.ùç wÎò/‹k„ç‘g¬koV¿”`|»`…«‘ê4rÙ–lCæÒ$×õ©r oDèÈ{!z"k©aú¦mÉÑÜÈ\@Zÿ?ïÚ^ðÍ •~ü”‘³r–!‡2ûêZj¬G¦´q–E;(YÕ¬¼³žE—mäqY¸í,,oy\y\y\y\y\y\y\y\y\y\VÊã õ¸0«Dû^Љ õȶ€£+(¨ˆâËF–Cí"\œLYMîPTl”`×má­|>9-D*ñýñÖt_Ð_ÉlÁ¸ÕÞv —¶&Ã#E±k|f¼ËMÚ<ٸ닙Mí-ͱj:Ú²i4MÖV‡ÍݬÖÙBît´Ù"öÄ»z{8ä ˜Õzg8b»–· Þ#²¿4ÒPCN$/ ®_:1g’E«±qs=L¥m·R+TxÐN~ §Xè˜4j†½> endobj 153 0 obj << /Length 154 0 R /Filter /FlateDecode >> stream x]Ánà †ï<…í¡"aW„4uª”úiÙ€€‰@„òö3´ë¤þƒû3?æçáe¾ÏÑŒXÀù`3®qËaÂÙÖ °Þ”{Õ<³èÄ8Áã¾\†à"HÉø!kÉ;žmœðX½·l1û0Ãáë<6gÜRúÆCŽ)­{ÕéªÞÐÓ`©ïË~"êoâsO”ˆˆþÉD‹kÒ³32ÙuJ^.Ša°ÿZâLî>)z%«ÜD “BPI¢ò©á¿ƒuSýñ#¡Ùr¦pí,-wÍã>.—bªï7ý°çsä endstream endobj 154 0 obj 232 endobj 152 0 obj << /Type /FontDescriptor /FontName /QKWTFF+HelveticaNeue /Flags 4 /FontBBox [-951 -481 1446 1077] /ItalicAngle 0 /Ascent 952 /Descent -213 /CapHeight 714 /StemV 95 /Leading 28 /XHeight 517 /StemH 80 /AvgWidth 447 /MaxWidth 1500 /FontFile2 155 0 R >> endobj 155 0 obj << /Length 156 0 R /Length1 2316 /Filter /FlateDecode >> stream x­VMlE~³»þImš8ã'x7&!ìÄM¡¨nq¬‹*%⽚Øâ6*nT$|á²ÄJQÏ=qX.hÙSE ÑJW|D!Žp¢qøfw»uˆiSÔY¿yoÞ¾ùæÛÙ·n\»^¡ 5I¤ìZ½´IVóÜŒ¬m5dÛfe tys½îØU˜“ë\¶mÏ6‘ðGµRâq¼=@?Y…òˆ¾X­7nضçS`pãêš3ï1`ûë¥ÎúÔ‚-_)Õ+v¼ÿàäæÕ÷ŽýðÕÍk'ža÷ÛG‰¼"}N=¤€‹·ÀÜ1Ç/+fø÷Ó7W{OÿÅBâo<ä›7.q ¿Î?XhÇ–ËËÌlç™Yxëõ3’ô¦$ëÚyþMázülé‘‚þ¿vÓĤ$McKO¯Í4¶”ÆÖ’ÀçieÐ,4ãr}=Ý¡_ Ëò'ÛMGߎI½˜O…úO=TÔ¤˜ëéÔö%,lkkk=ó´ãYø2OÔzu™·'I.¼[ýn÷ï‡ßß½Û4‹Sr°‰8ª}ׯÔògÓi3d8]ö›äÅט.V.æó‰s•­J£¶V:_Á¿ úùÖ-ô endstream endobj 156 0 obj 1058 endobj 13 0 obj << /Type /Font /Subtype /Type0 /Encoding /Identity-H /DescendantFonts [157 0 R] /BaseFont /YEDRQH+HiraKakuProN-W3 >> endobj 157 0 obj << /Type /Font /Subtype /CIDFontType0 /BaseFont /YEDRQH+HiraKakuProN-W3 /CIDSystemInfo << /Registry (Adobe) /Ordering (Japan1) /Supplement 6 >> /W 158 0 R /DW 1000 /FontDescriptor 159 0 R >> endobj 158 0 obj [ ] endobj 159 0 obj << /Type /FontDescriptor /FontName /YEDRQH+HiraKakuProN-W3 /Flags 32 /FontBBox [-417 -404 1263 1297] /ItalicAngle 0 /Ascent 880 /Descent -120 /CapHeight 766 /StemV 77 /Leading 500 /XHeight 545 /StemH 63 /AvgWidth 1000 /MaxWidth 1680 /FontFile3 160 0 R >> endobj 160 0 obj << /Length 161 0 R /Subtype /CIDFontType0C /Filter /FlateDecode >> stream xcd`ab`ddtu ôÐöÈ,JôNÌ. (Ê÷Ó 7Iyüþ!3‘Gî‡,ã9&æS<,Äþpʰ\aùÄú=q²,㣊|“yäÁ åŸÂÿCœõ§Öß#@Þñï@ÌúWóï!Q KìûÙ?b¬µ6‰þœËþýüIV¾ïû¾[0þ0ûnÁü£ãG’h\ZZ\܆´;6lر#mCœ<ÈJqÝ Я •›¹6soæáÙŒ¡ÇG endstream endobj 161 0 obj 453 endobj 14 0 obj << /Type /Font /Subtype /TrueType /BaseFont /TERFNC+HelveticaNeue-Bold /FontDescriptor 162 0 R /Encoding /MacRomanEncoding /FirstChar 32 /LastChar 85 /Widths [ 278 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 685 704 741 0 648 0 759 0 295 0 0 593 0 741 0 667 0 722 649 0 741 ] >> endobj 162 0 obj << /Type /FontDescriptor /FontName /TERFNC+HelveticaNeue-Bold /Flags 32 /FontBBox [-1018 -481 1437 1141] /ItalicAngle 0 /Ascent 975 /Descent -217 /CapHeight 714 /StemV 157 /Leading 29 /XHeight 517 /StemH 132 /AvgWidth 478 /MaxWidth 1500 /FontFile2 163 0 R >> endobj 163 0 obj << /Length 164 0 R /Length1 4272 /Filter /FlateDecode >> stream x­Wl[W>÷ÚÏvâäÕNâ8‰cÇϯq;‰øÅIÚ,s;m—®Ë¯‚ÝÒ´¡IÛLÍZJ[ÖJ@ź•FŒ_•ªN[VFahÐ #PçYP*4!­ ¨ìTiÒ†@Bˆ V-ß}ÏŽZ(S}ÎÉýñîûî9ß¹÷»ï;z|Ž*è4™(±oaæé—e Š3ûNómöK”ûX(¶ß%2·8tr¿Ñ¶ü™¨,}pnfÖhÓ‡(ãÑQ¯¡\páØ“FÛâ@Ùwèð¾â}‹À÷-ÌK’÷uDeÚ3Ý‘#Öî÷§æ“Y¶ ÞŽŽ‚š©Ý?’55L¤ÕŒÑ¿¸uvÑ?â?83›57ë%nÌ-f"þ,M¦çñ*­dÏZu.“Ù³ÀÁ#¾˜ÂãE”zWdƒ¤öQÖK§³§“žl"™ñ(Š?•½>–Î^Oz”L£,kžÂc½á³>[B¸o3P&ˆÌâ¢ÀD‹•ìõÅEÏ""Ñ{T%ǨØHÅSs*Çciq+¡*Ñ¡*ª?2I`—µN¦SðDž”ÿ¥”¼ƒRûš£[÷ì:¥•ˆRù~(]w_”:Ö<½‹R'|vJ«îM©ú„®1œ¸ç †O߃áê»®ùh†]k~ÃÉZxëÒv? †ëî‡áúûb¸aÍÓ»öÀçÁpãà O–Ö->ýoK–þëþ_)÷ÞA9û;9Y-4òÕÕÛü:¥ø;ä_Dù ²”ãz_Š?ò7°säÆ˜!(Ž¡§‰²Ð ´ýGßÿ{q¨¥ ̳ê€6ü/ƒ•Ã옑¨FÔß'™Ÿ}•ýŒoçóE~ôÁô+óQóÜåPB»Å…[©×Ðh[Ûf^†FÂlèÈMúø2´Ö„¹Ýá¼î…;íbŠS©v*Nv¶ð.«ÛUˆð=â»V¶ò×Ä«·ñïGP]dTäC@v„'êvÔ‰šÖØs¡N:{Õ=±nwÕXTæTºyld=Z'WM¸U몑¹z뼫ÅWÞ`;£»6‡6 E»”©Ø¿¬ö‡Üì•ïX«üõ­LY‰×u?ÞSíÞïN¶U­d߈ô6®w•Á“àê_ùOùï©…„›ï>èµ Y Ââ°ØÇ`ûa'`ÏÀ.À^†]…ýV¹„þ•w`|7"¯'‡a=¢µ€,¹Å5ë4©Qúx 1öª2SˆumçÊEk|r~ãÄS;£ÑOM =1Ñm¹X6¾¥ç‘N—«ó‘oO¨‘½=¸wS`ÃþscÛÏÎö·n;4¼%Ý–ÜÑI§Úªb‹µµkËN±¼¾Á„eÈ‹ù&¼3ë¹yÀ[nˆUlÃ*u¼Ä®è)ýRÜWø<ÛYx™ä7Vâg¾ê9ñWäð'à°•^ÊQ[Dl0‹aÒSŒº¾ÚÚ0«‚U¡`ëÈË:Ã2–Á° †e0,ƒa Ë`XÃâ]OÃ2–Á°\bXòÁpž7‚ÊS#^¨D½›‹q˜u'‚T¦¯­fwÌ©¸bw’]ë¾+q¾Õ1[øí‹ÖÛK\÷É,ñɽ¥lhûÇÇÙŽ>Vb{`à¡é„RÊ„xu3¸§[ºnx'Øêpͤe¨ Çœ©%A©.Åœ ¢!Q“x14ž“x†@®‘3$°”gŠ}Pø–ž>RÊù7ôœÞ9oûÓ¦û`…BË‘òHÑ¡h³ç{1M‚â»~ÆXÌ©:U–:ÏYÛÒy^xKLËþPð…ýQÄÍõ5÷9Ì_Üs9òAÎEôB¼°Zè²uùÁ(šºî&â1U%&SUêy7v ®Šªí`"]X )·Nyºƒnw°ÛSxoéÛÃÓ=žÓÃìÔ[6w(¹ml !RKb2Ü>‘h)ÆwñÙ ¯+^|L”âë<€ø$#> ê*•ÔU‚ HPW ê*A]%¨«u• ®ÔU‚ºJPW ê*A]%]]kö›@Dé@é@˜Mø~D]ެU£Kè™p¢LÜP\±£›ÄyjäÐO!¬‚Z·‰Åß‚¿ž¢ÂÞºÇUxmii£f³X*—ìv‰3n¯ zz¼½FÙÙ7#Z<ʆÁŠ[ë OÖ…£NO¼C±ñºO<ܶ9!ëÐ mýtá!zIHŒp.—CòýpLCÝÇr¤'‘®´W¸ÒÀ•®4p¥+ \iàJW¸ÒÀ•®4p¥é\Ùq…0—§¨q!v0÷°8‰ú‹ÒÔ雩Aç««£WµB,ŽðQÒawL;E¡vûLúÙÎ^dÝ;oÜzx4Ù\3<qÔ4«½]A7¿;ÐÝ»-Ò<°­µeÛ@sc(êjÚnøËÐÞAoà¡©®G;]fgmmƒËí«±•×…üƒï«oˆ÷v¥:½åöªºõ^Zc]×ÔP†Àãe¬·j±ý+Š;©ˆQcÕ÷pXÄ;V~Ê`·âçŠ¨ÕÆºãüòRb*Úï/_ºôµ¯|“ÉìÇ…äØ¨'Ü絯éY‘;ãËšV_ÀÛ×½.|ŠCÐÖƒÁ T?Dí¡.|âö@Çûô¾…wE ÒHS©‰‘íÃá-s‡NÌ›ß7³}îø\ÇÐáC³ô/.oÛ endstream endobj 164 0 obj 2455 endobj 9 0 obj << /Type /Font /Subtype /TrueType /BaseFont /OHLDSR+HelveticaNeue /FontDescriptor 165 0 R /Encoding /MacRomanEncoding /FirstChar 32 /LastChar 87 /Widths [ 278 0 0 0 0 0 0 0 0 0 0 0 0 0 278 0 556 556 556 556 556 556 556 556 556 556 0 0 0 0 0 0 0 648 0 722 704 611 574 0 722 259 0 0 556 871 0 760 0 0 0 648 574 0 0 926 ] >> endobj 165 0 obj << /Type /FontDescriptor /FontName /OHLDSR+HelveticaNeue /Flags 32 /FontBBox [-951 -481 1446 1077] /ItalicAngle 0 /Ascent 952 /Descent -213 /CapHeight 714 /StemV 95 /Leading 28 /XHeight 517 /StemH 80 /AvgWidth 447 /MaxWidth 1500 /FontFile2 166 0 R >> endobj 166 0 obj << /Length 167 0 R /Length1 6884 /Filter /FlateDecode >> stream x­Y lçyþ¾;’G‘´DšÔ/©ÓN$%R?”NGJ”LýX¶¥X“©?›”#+‚¤XÊâÚh]/6VÌKÛØVÓ"-Ö¬n» X#YÚAÝ€Nº-Ømq:Ìȶvëk1`ˆ Ã,+*zÏ{w”í5+‚!Þû¾»ûîýyÞ¿ïN?þÉ5æcW™È†WÎ-_`æÏù>†ë+—.*Ö9_ÅèxüÂÙsöù:N[Ï>yùqëܵÍXð[ëkË´Ž~?¥×qÁ„p:7‘}„‡Ã[l?hðÕÿ²ìÿŒáÿ/ä@Îÿ“é¼%¦†Í í,:ª5‚" õ€ZAÍÂõ{?ÞdIáU6%¬€r 7ÙÙ îO‰gY^xÏ\gQÜÄPñ©ŠQýCÝd.v£Âú~®Ž™ ìÕO‘9˜ë%æFåò0¯ÉéÁUpRɪ˜Ÿ0;È‚æÍ«Æ»Ì_-«3ÇzóØÃzØ${ŸËü–ð¬ð¦ø„#á8é\uÉ®)×÷¤é¤ô´ôGÒßIï»GÝ?®¸TñõŠà9éŒóï $–±ê­» %äØE½¹ý¨IwA¸&첬u²Úä¬`SÝ\ ¨Á€à7KÉu½tVøêÞ—…›{ýŸcg³8þ ;çÂô0@EýàDwé„ùSÝ™jݘ=® ,qï=A^cµÐðmÖ Ù¨ºÔA—:ÌÙîH(ZˆÄ0¦AGA'AÔS/ž=ºú.èÏ@Gœìo1ù'°Îàƒ¥•»¸ñ# ÿ6HXû LêAm ~ШÚ]Ýݽ º zt`–Y“iYпÃ:€-YÙ+ƒ½9‡Þ#;ªC•‚ÖÜ)ÄC2Îs£·Ó¡5W:>Ã+jOKK¨àÎð`:=v.8ürï‰LßT¯ìwXóÌ šóņ¡¡ÁŽH¤cph¨¡uåÔàà©•x|.,ÝÔ”>–Ÿ£ùxZQÒãù9ËÙ)V«‡i;8Eã„bÜÏp H»v̨¤‹´UZ¥¨Uë¾:"Å2c-ÛÂk­½²w¬äÀÃuàõx%Ùa¥T°ø‘±Û¬˜z-L½ÀÔ[ÆÔ L½ÀÔ L½ÀÔ L½ÀÔ L½ÀÔ L½ÀÔ L½ÀÔ LÁ kàû(Ê1·âX×!/DÄcÑ@âㄳË Z  ¥JQR 5'fr"€ð•Bû<¯j6¢‘žhMmÇXGt,­9ù_•~ÃÏŒªj.Õ¨ Nwö"üŽ2ÔÓt°¹«1Ú—êŠÔôŒ‡Ž«z{ƒÛ0Õ€¨CdÒ˜Gí±pßaY$8ͳX(‚ø]Š,RXdYS1ºsè.÷Áç>øÜŸûàs|îƒÏ}ð¹>÷Áç>øÜŸûàsŸk HSa¼.$8Ëî'û‹Ù.†ë ÌcX޾`¨bmŽß÷2Ê&‹–—) ]R<ÃPúíщú‘DË@¢¶®-#+F¼~mÉMwæsM-¹¹®–‰Z!&|ìxé9‡­Kh‰¡DuPë §|ñÑùŽC§Éõ Â÷|Cïà;eØOv ²Uå"P.ëÉ€ ßìDqÚGÐ;"èôŽzG½#‚ÞAwDÐ;"èböŽzG„`¥~ÑŒÛÊ·ã6ó¯Ç P´º ºº ztô:ˆj[¼¦ÃkAŒý”_ˆ;R´J;ðæEsæu¬Åœ×a¡Œ»ÀYïäTÒªCå²ÁÍëÉ.‚Ôm $aÞ½^˜\¬ô>vâðéLœ™Ö³EYà•ÑÑ´ž»Ò’n [ MËDCÁXZð‡Ÿ¸1Ñ÷ÔêpÇ‘¹x÷\NkïÚÎLÙ?mH¨Mýíõõ‰¬ª$±á¨ÌŒ×JÖ´ƒð·Ð÷P©@vv…P¥!Õ*гžù^Éàû–ér-9;'Î&òÏþÖ+ ³[·¾D~Y+üê€_«XáË;,e¡€‰¡H1˳t+…‹)x6ϦàÙ<›‚gSðl žMÁ³)x6ϦʞMÁ³)8“*x K™©ëG^a·A¾þjwL(AP$»LžYÄO¶?YÄOQ‘EŽf?YÄOñ“Eüd?YÄOñ“Eüd?Y3~”]Ší¦€ïßšm³ÃKCh@Í`JbïFó$æ^uš{1bîµ¶fæ^Å*½.k§RS[ÉïÇX,~¿JcW³ßlQÌ¿R;ë{ê Í¡…tÇàpt¤ wŸŠæ†;Œ:}&Ûv<ÛX½8”žN7D2ùÞÑӡЉTóˆÞT×y¸ôlSOK°º¥»Qî‰VOX9ßl÷Þ&ìߢ"dußL“°)'3%¤LƒåEˆ+eÄ ®qˆ+@\â W€¸Ä ®qˆ+@\¡P¡g0'c ÄX1–@Œ%c ÄX1–@Œ%c ÄX1–(ÇX1–€xK'ƒ|Ôˆ,'%¡°ñMsæQÈ yô|Ïh2ŠjºÜ"-—¤3ð°çöÆ’R*ï3óîKÅ_ÿd|´Ð£ŸÌ57öÏ¥{ u‚cjJ„W†biµIVW©F¬% ¾òèÂkÛkŸžlj>4¯÷ršÑ!|îZ_nêO"ÇÓê`W¤¡#KuöÞOqxN¸ƒÌôBO«ýP¤,gvG`°A@Ì9[©î0׃"×3j­Î_¿,üÊ+¥·—ó¼sj£ô/<Ωôûü›{éþ<©Ž$ï½+üŽðà}nŸœ¼&²•ß2p‘½ ìe`/{ØËÀ^ö2°—½ ìe`/—±—½ ìy=Rœ°­‡Ž.$ Í]T•ôNñ~=MghlOÔSalÉÝ;µÚ7ókóím3¿:{ã…Ê%Q6&º†ˆDN?Çÿ£ÿTVxüÆÔÔõÕþ篵OfšRÓçõ­O§&­xv_…ôzñ)ì ÍmC•©ímiŸUƒ~ Yñ*!^¥r¼JxDB¼JˆW ñ*!^%Ä«„x•¯âUB¼JˆW ñ*ÁtX‹}‹Éž> endobj 168 0 obj << /Type /FontDescriptor /FontName /LJMHVT+Helvetica /Flags 32 /FontBBox [-951 -481 1445 1122] /ItalicAngle 0 /Ascent 770 /Descent -230 /CapHeight 717 /StemV 98 /XHeight 523 /StemH 85 /AvgWidth -441 /MaxWidth 1500 /FontFile2 169 0 R >> endobj 169 0 obj << /Length 170 0 R /Length1 14124 /Filter /FlateDecode >> stream xÝ{y|TÕÙð9箳d23™}ÉÌÍdf2Ù’È @bX„ &@ hÀŒÞ¨  È"ðZpa3„„—R°VÁ**Zk+RmMíÛm ÉÌûœ;!Bºüü£¿þñÍÍsö{–ç<çÙÎMóâP jC ªšVß4É¿!™‘ÞY 뛢ù¸ñáM³ZšÝÑ<—„³`NÓ܅Ѽø BJçÜ­ýï‡ ߨØP?;Zz!ΣÑ<†z”ظ°ù¡h^ßñ–÷Ïê¯7\|åÂú‡úÇGŸ@Þ}_ý†hû!jˆ›î 9šÏÙqSÓâ†þö¸æ÷ÂPêCë‘Ý‹DžZ„„/•NÄB-­‡ßCg¼uOlÑ·H'Êù{*ž–ãŸo¾ö“¿6ôúUëÄ¿Aâf{óp!5†úÕºù=|ÝhRJ7*(ÈHI¹Ã‚Úð.ôc€ š‡ŸD­«ž`R{!w?ÙÉŠÁc¸ÙðØ ŠuM6X]¥Êõn7滞s}dùü8¶Âîý[;câ%Þ‚f#~ yñÃh JÂ[¸ê j/jh`äã½ñÙ®“8yY ïøP<‹»~—•æú"«›àN×i7 ÑOã!Œur>çúç\×I€ýѪ}hqص׹Àµ!¾oít­wvcxg]4zÐ ¯v- lrÍÎ’ëÇoê&û;]P?%¨rå •\¹Î+® ·ˆ!ŸæïJÎú…+^„fnèÔԹΠ®aPï,ó8Ž÷ám(oëôŽuƒ$,÷Py`è¦nü£Cc’²¼Ýøá`Þ˜¤M1~o`¼Ëå÷CzÊ9a¹p·p‡-¤I‚O»`õ¢VÔˆjQ)Š¢Ð_î,vñÇñ~T hÙHäE®¿…ìq|@.ükü9þß Q#I!ÍdÙON“·™yÌFæYæ×Ì·ìŽp;¹/x¯ðqxfxuøíHaä7‘¿‹‘;S‚*Ñ=¨VÛ„† ÿ‚U€§ví z—ŸÏ±õ ¿ÖcÎÆðTâ;ñ<?‡ÁsRžËw6‚(ˆŽ˜‰ƒL"3ÉBÒFÞ'mŒIfÆ2Ó˜xÎ1—˜Ì –cãX#;š-GkØ…ìVxv±{ØNö®€ÁUrS¸6n5·†™Å]ä.ñËøµ|'ÿ ÿ'`‹ã…û…5°;çf ´üýʼn0ûltš…KñL´ vc'®Gí@]³ñ*ÀWJŠÔ2˘Ñ$¨á$úPëV´­f¦£‘™}è ”ÐeÚÍ– '·vç1” TÔÿÉ$¿Ï›èIÜÀòv›Õb6 qz6F­R*DçX†`”ZæUçùêB¬Ï3fLÍ{ê¡ þ–‚:8ÊîШÛÛ„Üô½z¨º­eZÎÔ2mh‰µî"T”–ê.ó¸C¿(õ¸»ñ´ Õ~ªÔSãõÈé 9ýc9iI‚Üe–ÆRw×¹ËB£ZÛËêJÓRñÑ  C™–JG©hÇ!4²~)0X4’¶( Ù<¥e!«ÒPÇxËêg‡ª&T—•Ú%©Ê hb5Œ‘–:/óDOªg{f?ÙD3ëhª~zuˆ©¯ ‘:Ú—.%dö”†Ìaù>{3U¶æ–ÊñŽªoh Ö= È¥Ù:š«_¹q“ÜÐ-YQSÂ+ú'Aç8fJ§• ÞºùîÂSâilŸ_ÈE«;mA›Ì|C¨ªºÓ´Ê™´Ô£–e…¬þhÚiwиP²,‹Æ¿{´êè¸fÈ·AZýêi `pÀÔnú”Ԉǫ ïFÿCMüø#PÊüÚU!NnÀC(€¡sJ°š¨WŒþb¢Ñ@¨A±àùÒÕ‡ `Mš Æ Ù]ž·Ń%ç›%yÀ²üÿåçí_Ȱ¾æ 'p:…ïÃgH ÙÂÌfÖ3—Ù"Žçš¸?ó3Àîiâq«B©HUìQ²ÊG”T QÔ³Õ'c&kˆ¦Hón,õ\°ë{ü ì@qÔ×'f€B j»º@óf>éF,‚´ð :o 4%åôÂAœ™•£“t~€vmwïo¹×Gv³7Ào”³/|·¡ËHƒÒ‚&äÑ(g‹J­Ùl†(g#Ñ;«Á’R©½VQÔ×SYÖPzWô¼×“•iÎËÏËâó{rsŒ^ØWæˆÅd᥺–‹ê»Ò’•pùÍ%]FŠ ö’Ç`/‡“%àÙÈÊr³%:@J嵊¾î³2ósŒžŽ‹/ƒóƒâbVä#jË”s18ÂÎ?WƉ]Üxµã°› б¬ÑÄhš–™H¬IÃ>‘ ÕÅÇéõFaXcc†Ùâñ0ñún<.¨eØ,¦Pë³y•YñÖDpæÍ=$ÍoŠÎ¤§Rû]Eϵ>mN_Š‹{àRE}ErQA-†Š}AVæÈÖ`ª]Bj‡×íÃ^µ]™D ±Ù˜0«rÆd#…KÈÆ|´)X[¤-¢^¡””G­ÅµÈlŠó¤cOÒiõRvbœ”+é<~^à=n¿O§ÍÏ“üÌÕÍg½žøÛ—ß u³g1Ç„‡m™ •¿¾ñÚ/ÎÄé÷yÕáÏvn¿¾¾>ò;L^êýã‰ûSÆî}/Æ‹._ ƒÕðz™¶ÌÔk|Lf é)à#¢$E22³ârtžóçÏSRJð}³ã =‡²‚qˆ0$žåDÆ&`â啿¤CRË {E}E•Z š(ÎÊ„ž$£´ý,ù²wt÷çØOèK†þH‰Z‚†|<”'6c?« ý’n¼-hÖó¼@‘Á¤JF©Ä¼£CÝ«kS "m¥T «J½Cj‰î^tüïhD7IÞ¿¢â"H²+ÓSV.}=+Òãr°ÖˆáoûÈÕ¿î‹=I†q'nLcw]ɾtãn˜åžU‘÷¹/öbe>ÖL] Lù,þ9'žWò#Eã°XÆ>LP8ˆÃ¡Òg1¶xK–ÊêŒÿPš?çVrºIIpt€h²‘-Fáå|&%x¦>ÛDHiyH™ÕÆlG °*íÙHÇB@éÓ€þ…[³I§ˆ¥½„ô¹ZD‰È —vÛñõ»Ï„7†œ>ðÌIp“Ùÿþß?\ ölÔp_\ÿYøBøÈåúìC<'¿‡µ×ŸÇ­ß‚˪(|6üεðAnìœ[ö¯€%̯>˜;O=Oߪ~XÏŽ1T XAŒ×iµJ¬‰g³R$¼^Í* †,ÖfŠUx‘ÕhêÆªCÒÆÕýgH㻊>Þ\ÇŠž§è±ÂµY™µqR6x`x?òû ’²ór;ÈÆ3ºôi8û,ÓöPÉáf¼æ‰Ý܉_{9Ò·=:Ìfÿ˜òˆºÈûìw°Oàç gbýŸ/O“+öÍô=¬Y’¨¸W´hÌ^R£iÔìK`”ša ‰ J†uXž0dd¤8†vXŠ"“(5¢.1Á•”™©³xÍå¢7É–íòêÊ‘7Ú•½Cšß¿˜žkýŒ‚ò½€Ì-håæ‚ô¾œÚEòŽW$¥ë\H$>âKóò^›IE)(-]ޏd1;ã\)Èn´¤`«§±)HáW¥`¯ §CZ@¯w@¥ ™´Z™™Pzøž¡e`“Ù”“Mٳߗ}~_îÄœlÖè¤'7Ì&mc4°”Ãäc/ ™u½izç¸ñÏŸýÙ„5Xãwxäñج»/‡¶N+¼ðöÆ kÂÿý‡ð·mcH¾¼´r½{ÄŽ‡r²½i©¹Ó¼þõ·-Å<3sA¶;3#¡pî™kï®yò¬Šò høȤ!Aæã‘@XQüÝ Œ—coðVq °*c®E\ë2ÿÈÊÄF ”ËžëÞ ë¸×ÿÌi€0éžï¹}S}£(è1s~n¨–Q" Ó*LŒÉdPxÕ6 ö¬fËiãmüýæ,ÚÃ:À‰Œ2` ò¡b|V,áæ¢š_öÝõfùá5á5+ÊÉHîDoóŽù;Ìø ³¦÷løׇ¿ÃÊõ8–)€ù$_ ó¡ÓÓÁäU,6$±^=CäÕcL8¸Ð0Ã2¸š‚Q(X¤L0,x‚ žŽ÷bz=„^EVåZÀŠ5Š–K_QÁð ­õZŒàl*˜ŠÍ”±¥q++€·¥[è=ÊŽ%Œˆ0aW.Õž‘X 0<žçÑÅ%‰wá]_õ½vw¢o9Ý»¡/DªzÓÊ ‰‘Odn,øê‹Ð¯‚C“3±R«²«þœ1ÚyŠùZ¡@Ô«Œ=[HT8µjga I)$…ÙÉ^½VàD‡?ÁìèÆí°%N—àw¦«ˆ3WU$9 B yO¢m„=àëj>â5¼ˆä(Þ„úÙeôX]é;ss‡zŠ{àDÑãT OïIï¡òWgŽÊߤ¼|cÂV/΋•%ıÉm°”€ò‰„lN³DA¿ì•Ùç£ô˜Ô&Ê{>kp,qkÄQÆ“ ð‚gÎɆ3¢3@#BÚïóÓÎS^~Ö,®¼§f“Ô˜½pfÖ$Ü5¨~üá§ %åî//œhyÐìUÇë’S}µÉ&EþÛle½ÜiЯãQS0}—°ÛñƒIcã (êf''è”ñN•Êàmn[º6Îêr¯”NÔÞÊW®ÈZ ’•™b].Š=‹ÞÄ+M¼Á‡õJŒ‚Ù‡ãñ>@Š&àzÈ0z©â×ÏHrZ: _¬;÷·ï.?<9»`™³nÝS?:ê}š;Ý÷‡Š ážðµp8Tè©X½ôË“{?=|qóŒƒòÙ…[ æ[)Û»ƒ»­x‹e¸ÏÂŒuÛ cà6!ÆiPٻݬõë1ã':›Sé7[pµ+’/ý^ÀUôP¾{ –ùîd½j£Ò‡4qZX¥.V+X!Ç!F‚#É2*SŒÅê!PXxf1/Éb¶_MëWÖdzA&³¬¨©D©"‡’¹›#KŸ›;´‹—½<6sÕú¦Ç­ñ:þîu¬ÏÁV†>˜õøž…;v~²zÉû¯ãœ«p3Œƒ}¹ÌôÀ¾ª- fçkFk¦jv³{íœW4X§‰N§§$N³ŠKK×tz›Kå·Yã]+¥Å%·.¿ïÊ•Á{k³8J„±Eks@€¬Ä‡”vÑ ”wV¥§äÝ¿Ÿ R˜©V”K—…r‡ès¾[¿séÎ]¯Ú‹Û'e?ð|ñË÷ _ÿæS|Ï—œÿùÏ.¼Iò‡Ä#Îë#6ΪÆi×§¹ÌÚàVÈvž«ƒ­›Ågm»] §!±œÁ¨ÑÇ AuÐ lxœê0s¿Áœµ(~¤¸äúÐó¥ùKê¬î¬žL9)1v«É™XÀ ‚Ir:¥Ó¤ò ›»Gà °^S¬×ÁY•jA§ñÇ:ýœÍŸ˜.ø­VŸÿ=iW”ø+ú¢¤ÿ^¨ìÀF¨æžQ;@'7µz™ZF!Ë1på†9–wò­×Æi Z–W{ì‰>°_>ïT˜R5>£ñØ$(â -@W1Z¢Êʲ`NNI~/ªE‹jk„¨ä•âáHåçå¯áeÝåPY ç ôß®KCóôÚÞo¸o~jr¦á pgÖÄÖ;&ž ÿ[~‹]ª¤±ÙÃa;úÞ»&,ûü ¯×æ.\—^åÐbÜ;\ö=8ê±Cíø*+1µÁ‰™{¬òŠ`Šàä•NÇ L1¼^i!¤‰ÑÌzA«qÚk°Z¬½ÒÜeQë«-8#›?· çbÙÔççåd›ÌÆt Þvˆ° s_õwéÍ«j¢»³«sãF®dÈtB^$ø®WÖöÎf¶¯Ý#Ë›ááBæK Jƒ›ê#ÁŠà´*õNelºžÎ9˜tSzZ€³eª5þ˜>¿Ãš‘y˹ÖS ëW¾…Ýïç`ÒE9yßS=I¶x•.Ñ«õyâ}>”dƒ@§ÒH(V£Žñ:|ØoŸPƒ¢Ý/Húu®G)“¤''7Ggx)ÁçÏéWÀdi‘¨ö€`_û¹èe˜<2#'wWQSøü¯5GbüÃ'ècò¶,}%| Çpé‹ÿur”wÃ#§ïL _dKFxF®ìÍ~«åò¶—Æø‹ÖOùÕĪ¿`'ŽÁéá§:ïÙúꉎYËIš¼ÏËAˆSžbB“‚©pjD³`ý¬?îAáAQŒ‹!q`”뜼`T+cJÐŽŒdý¾ø9$ÍŒò”~#ª¢Ì8 ×bjíÊÂddT0zt _ÒM×y–ws¦>öÕ¤´£ñY+›wóÿd‚TðBÍs}È -ùÕ[/õ£tHàk„ AG¢~¼ Cø‚âä%U n [±ïû™œé+:3@và|MJ(mùø±É7.q'Þ’×Þk§öŠ íή!x˜ˆ­˜™ŸÊÍåZù‡„•ÜQæy}«wÃeÜ‚°‹ý~@ xRnAXàQWMÔþö¬îê’-yÊÿ¼— _­­ ¢ ácÍ¢YcŽõ‹~`¡c¬STsUjWisz¬Jš½’ÓìŒáÄÛ^&N™¥ ÀÇH¸Ó ß`AƤ{ápXýIÝ8æV"º¢½~”þɘ‹Àä«è‘í"ªÀݤ(c?E™oj\@Xýtu …u‡Ô,j«LM,z¾áÃÊäã÷VÌöˆ-Ð4gw›±åÎÄáʼn£¦LÚ>ym_>ùòÞªµ»úÖ‘ã ³Ç=÷¥<™î˜à3Ô#9#˜u„?Ë–7ð~C ß,p51X´ I!Þ¢RÚ› © ›§[Vdµƒ:{ÛñˆŠ”(7uõ|D¨ªm¼e)ôŒ×`8'xùþñû¯T¥qf. ÆM³wáÝ0ÿ2õyzVfÍŽ1•ä.š×÷LNIaä#V=I-{SÌÙ"nÒ>kz‰Ý#îÒî5u‹çÄØ/4_ÔÃDÞiÔN½Ê*X­FâµÙ~£ÕfïÆ Ð–ú¥aÔhàƒQö.gŸ*N’KG|X0CŠ‹”Ò ö!¬…@4rÄh   ´P/D¢žZ™²2hÊу‹H 9È Ñg+2Ç{iÓ¦à#¤Þð_~îÅúßñÍ8vצÏôvî¿Â\ êa_øœÒ JxêD-á»X/,]Þ¾æ`ê^q·™$‰n‡NÃ;B,¯q:T â·Ø• éJ„X«'ñjº²ª«»é§s˜ìˆ³ùX²ÃÂ8تñ!Æ,¯I^eåT»î5”spN”>áÃ*§ÁÐyÈ»½£Ž/óBNïÈ Þý£Ãá#Í[['fvµþòݶéÏÞúÈÔ]ÌÁµåIEá¯`Ïoº'7¾¼ïWô Â9&ëá êÐAŸŸñÅä3£YV#j‰F¡S¨ý"%CR´Åaªó!«>®—ÁÁŠŠc`6@~àb+®(>Ów†j4ôož—xb”lJœå ‡3N`é[ST‚B£%Ê2l.‹Éâ7Hò þ$[–Æå׎@þtkfVç€þ,$*¿ ´¢Ë-È€°ßÛB­CÊm£n–ñ8øŒà^‘4. )àóK  ürê¡Ìn°HØ› !)A#ú•öyJð¸HðÍ-ñ:‡D½,Q‹48ôr%zÙ~DµÔ‡(‹ù[Ý,²dþÞÏ„ãóãoDoéžÙ[†ûxzõÍýó½#É>Î7âÙ9óÊ’*—œ.™÷ѧߜð\5-sêÔ»ËAóMH.tËkk§5Ï]•lsf¤–=óô…v¿-™#ß7 ¸ÃÄWcÒ•§4¸½¬©ÀÌð¥ÎF ˜ £Æ˸ÀÑk²Zm Ûõ[Oƒt» ʤûŠz´}WdIK5:Ù9Òoûr©z·çðþý>cVL¼Á5Ò¿lÚºuÜ´ðûúʆƩ0Y«K^ß Ëû¶Èç̧pžémÐŒà°nÃ9QĉkœÕÄ/a>a‹8ñ1Jx—E°XÀ$KWÔ*› èdß½© TPæEɶ¿ß1_D "êӽ͋ãÉ—õjp~é¼x¨-óñ×J½]ûˆgÈÜ _LJÃlF_ÁÄ!u{¦ý7ÑܸøÜðäÉÏN\M>´Ñó Ž+æ÷lܰ‘`z ~45’Ff.¿’]ÅíF{ˆ_’2v,÷»š;ËžãÄò¤’¨GX­¬6ƒ+¦;ÒÔ†„ü;a˜…z> HãyÐ2`$Žg 7 Ï P=”"ݬr S-iù!ÜÁ[­•×,}Ÿ}Ög•Å(Õ/d¯OT‚  ^h+¯TÑ(e܄֠—ô â¸ÏÁ޹­sPf:8ô}¿}ƒzæm üŠ&Kí¢8ê7òàOp¸£…p ±)±?EoqìØ Ú%U0ã¿úîo‡7ãÖ«áïÂá+¸•ͯĭ\ß¾ñúð}D¾È$È.—í1zwûfð¾vã*Ën Cuè¡ú1újý\a ³DXcØ‚6s[Œ›M›Í{Гv gm>odK¹78²’Û…váÝÜ3—˜ÄYŒfèøFµ*Ö)j¨rb²Ã&R:4-ê§M £¼=5@îW,·m^ô¨Ã¶f[3, ]S—'†í êàø5-Ô›Ícz ,pÅC·ƒF"Ä€ù¬ÌE j×âž!‘q.5¾óòGà|Ø †‘ÎúŸY²½m»/Ÿ‘¬ÍÎÐr#4áæ·° ³sÃëÂ_¿žÓÅ‹/Æð’E|&‘­òŒêf`S3É6µì×ú`žý +úÞ¶v‚qíÒ)%X«=>`qý‰í–Þ•æö{qØð%pHôkÌ`HP^L í✕ùÏlm/ÜÁ à·ù;››ÄuÁïï-o×[o½qIæÏÀæ ðô?úBëŒM%¾çÎ@YðenÊCùðex*Eeh”ü­u9ü{ý¢ºÝ)ó=¾ã¾ MASQ5ªAÓàÛèéè”<åXNñðÅ?¶bÌ”É)c´44Ï›U5ÑZÚdÀ˯P º2¾è…FjÀ?N(0`À#k¶¼ ðÀ[Ÿ| Ð ŠÀ P0`:À€GÖlxà5€·>ø:Òÿƒy 4FîAùÔAùôAùуò ìßÖßøAùÊAù;å«å' ÊO”¿kP¾fPžîÄ­ë›9(?kP~ö ¼LO·àgΠú¹ƒòƒòóåï”_0(/ÿŸØ-ãQ‹ùÖùß?(ß4(¿xPþAyùÿÀnéÿÁAõ-ƒòKå”o½=C¦úÿ1 endstream endobj 170 0 obj 9210 endobj 171 0 obj (ZDB_LICENSE) endobj 172 0 obj (Mac OS X 10.8.4 Quartz PDFContext) endobj 173 0 obj (Jan-Henrik Haukeland) endobj 174 0 obj (Pages) endobj 175 0 obj (D:20130818085646Z00'00') endobj 176 0 obj () endobj 177 0 obj [ ] endobj 1 0 obj << /Title 171 0 R /Author 173 0 R /Producer 172 0 R /Creator 174 0 R /CreationDate 175 0 R /ModDate 175 0 R /Keywords 176 0 R /AAPL:Keywords 177 0 R >> endobj xref 0 178 0000000000 65535 f 0000092874 00000 n 0000000827 00000 n 0000042132 00000 n 0000000022 00000 n 0000000808 00000 n 0000000946 00000 n 0000010980 00000 n 0000009731 00000 n 0000077589 00000 n 0000001221 00000 n 0000007480 00000 n 0000060976 00000 n 0000073219 00000 n 0000074429 00000 n 0000001187 00000 n 0000047655 00000 n 0000047486 00000 n 0000007501 00000 n 0000007555 00000 n 0000008523 00000 n 0000007608 00000 n 0000008503 00000 n 0000008560 00000 n 0000009710 00000 n 0000009767 00000 n 0000010959 00000 n 0000013799 00000 n 0000011016 00000 n 0000013778 00000 n 0000013921 00000 n 0000071274 00000 n 0000014101 00000 n 0000047315 00000 n 0000047109 00000 n 0000046940 00000 n 0000046771 00000 n 0000017121 00000 n 0000014149 00000 n 0000017100 00000 n 0000017243 00000 n 0000047824 00000 n 0000017437 00000 n 0000046602 00000 n 0000046433 00000 n 0000020930 00000 n 0000017471 00000 n 0000020909 00000 n 0000021052 00000 n 0000021246 00000 n 0000046264 00000 n 0000046095 00000 n 0000024749 00000 n 0000021280 00000 n 0000024728 00000 n 0000024871 00000 n 0000025065 00000 n 0000045926 00000 n 0000045757 00000 n 0000028276 00000 n 0000025099 00000 n 0000028255 00000 n 0000028398 00000 n 0000028592 00000 n 0000045588 00000 n 0000045419 00000 n 0000032140 00000 n 0000028626 00000 n 0000032119 00000 n 0000032262 00000 n 0000032456 00000 n 0000045250 00000 n 0000045081 00000 n 0000035819 00000 n 0000032490 00000 n 0000035798 00000 n 0000035941 00000 n 0000036135 00000 n 0000044912 00000 n 0000044743 00000 n 0000037541 00000 n 0000042256 00000 n 0000036169 00000 n 0000037520 00000 n 0000037664 00000 n 0000037858 00000 n 0000044574 00000 n 0000044405 00000 n 0000040335 00000 n 0000037892 00000 n 0000040314 00000 n 0000040458 00000 n 0000040652 00000 n 0000044234 00000 n 0000044015 00000 n 0000043845 00000 n 0000043627 00000 n 0000043456 00000 n 0000043218 00000 n 0000043049 00000 n 0000042879 00000 n 0000041772 00000 n 0000040729 00000 n 0000041751 00000 n 0000041899 00000 n 0000082433 00000 n 0000042095 00000 n 0000042709 00000 n 0000042494 00000 n 0000042348 00000 n 0000042441 00000 n 0000042606 00000 n 0000042664 00000 n 0000042821 00000 n 0000042991 00000 n 0000043160 00000 n 0000043331 00000 n 0000043389 00000 n 0000043569 00000 n 0000043739 00000 n 0000043797 00000 n 0000043957 00000 n 0000044128 00000 n 0000044186 00000 n 0000044347 00000 n 0000044516 00000 n 0000044685 00000 n 0000044854 00000 n 0000045023 00000 n 0000045192 00000 n 0000045361 00000 n 0000045530 00000 n 0000045699 00000 n 0000045868 00000 n 0000046037 00000 n 0000046206 00000 n 0000046375 00000 n 0000046544 00000 n 0000046713 00000 n 0000046882 00000 n 0000047051 00000 n 0000047222 00000 n 0000047280 00000 n 0000047428 00000 n 0000047597 00000 n 0000047766 00000 n 0000048500 00000 n 0000048749 00000 n 0000060953 00000 n 0000061693 00000 n 0000061961 00000 n 0000071252 00000 n 0000071780 00000 n 0000071449 00000 n 0000071759 00000 n 0000072047 00000 n 0000073197 00000 n 0000073352 00000 n 0000073560 00000 n 0000073581 00000 n 0000073853 00000 n 0000074408 00000 n 0000074744 00000 n 0000075020 00000 n 0000077567 00000 n 0000077926 00000 n 0000078194 00000 n 0000082411 00000 n 0000083063 00000 n 0000083316 00000 n 0000092619 00000 n 0000092641 00000 n 0000092672 00000 n 0000092725 00000 n 0000092765 00000 n 0000092790 00000 n 0000092833 00000 n 0000092853 00000 n trailer << /Size 178 /Root 110 0 R /Info 1 0 R /ID [ <10226c78f3fdb178a300eb04ad7c9b44> <10226c78f3fdb178a300eb04ad7c9b44> ] >> startxref 93041 %%EOF libzdb-3.4.0/doc/api-docs/000775 000765 000024 00000000000 14652557242 015341 5ustar00haukstaff000000 000000 libzdb-3.4.0/doc/api-docs/tab_bd.png000644 000765 000024 00000000255 14652557242 017262 0ustar00haukstaff000000 000000 ‰PNG  IHDR$ÇÇ[tIDATxíÝ[ Â0Л™6‘6)IZ_%¾)(.Ãýï(z¿üè* ÃÌäüúÀu­ë9–7óüd:.L‡…qwgÜ?8LWÛÃxÔÊOô¹Ð§ùVöq†ˆl` þ€1+¤¶ºS€^Z§™´› í~dA .YBIEND®B`‚libzdb-3.4.0/doc/api-docs/globals_type.html000644 000765 000024 00000003264 14652557242 020716 0ustar00haukstaff000000 000000 Globals ⬅
Here is a list of all typedefs with links to the files they belong to:

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/splitbar.png000644 000765 000024 00000000472 14652557242 017670 0ustar00haukstaff000000 000000 ‰PNG  IHDRM¸¿IDATxíÝ¡JCa‡ñç(˜ ëƒ%±Ø4 b±È˜Í¶3˜v^Á±˜…ãó–ŽELƒõ…¥•³ ,ÿb;íç{Ã/¼ðÞÀaYÕ¯åóøq:¼º¹›\òIIIIIIIIIIIIIIIIII-Òçl¹›«õ抢è_t/Ï»ã£ÑíYQVõðêäíã÷´×ùY¬Úÿµ§¦ivók¾_íåýÛ£I@$I@$I@$I@$I@$I@$I@$I@$I@$I@$I@$I@$I@$I@$I@$I@$I@$I@$ýC[Vì=ü[„fÆIEND®B`‚libzdb-3.4.0/doc/api-docs/namespacemembers_vars.html000644 000765 000024 00000003573 14652557242 022577 0ustar00haukstaff000000 000000 Namespace Members ⬅
Here is a list of all namespace variables with links to the namespace documentation for each variable:

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/globals_eval.html000644 000765 000024 00000004563 14652557242 020667 0ustar00haukstaff000000 000000 Globals ⬅
Here is a list of all enum values with links to the files they belong to:

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/classzdb_1_1ConnectionPool.html000644 000765 000024 00000151311 14652557242 023346 0ustar00haukstaff000000 000000 ConnectionPool ⬅
ConnectionPool

Detailed Description

Represents a database connection pool.

A ConnectionPool can be used to obtain connections to a database and execute statements. This class opens a number of database connections and allows callers to obtain and use a database connection in a reentrant manner. Applications can instantiate as many ConnectionPool objects as needed and against as many different database systems as needed.

Connection URL:

The URL given to a Connection Pool at creation time specifies a database connection in the standard URL format:

database://[user:password@][host][:port]/database[?propertyName1][=propertyValue1][&propertyName2][=propertyValue2]...

The property names user and password are always recognized and specify how to log in to the database. Other properties depend on the database server in question. Username and password can alternatively be specified in the auth-part of the URL. If port number is omitted, the default port number for the database server is used.

MySQL:

Example URL for MySQL:

mysql://localhost:3306/test?user=root&password=swordfish

Or using the auth-part of the URL:

mysql://root:swordfish@localhost:3306/test

See mysql options for all properties that can be set for a mysql connection URL.

SQLite:

For SQLite, the URL should specify a database file. SQLite uses pragma commands for performance tuning and other special purpose database commands. Pragma syntax in the form name=value can be added as properties to the URL. In addition to pragmas, the following properties are supported:

  • heap_limit=value - Make SQLite auto-release unused memory if memory usage goes above the specified value [KB].
  • serialized=true - Make SQLite switch to serialized mode if value is true, otherwise multi-thread mode is used (the default).

Example URL for SQLite (with recommended pragmas):

sqlite:///var/sqlite/test.db?synchronous=normal&foreign_keys=on&journal_mode=wal&temp_store=memory

PostgreSQL:

Example URL for PostgreSQL:

postgresql://localhost:5432/test?user=root&password=swordfish

Or using the auth-part and SSL:

postgresql://root:swordfish@localhost/test?use-ssl=true

See postgresql options for all properties that can be set for a postgresql connection URL.

Oracle:

Example URL for Oracle:

oracle://localhost:1521/servicename?user=scott&password=tiger

Or using the auth-part and SYSDBA role:

oracle://sys:password@localhost:1521/servicename?sysdba=true

See oracle options for all properties that can be set for an oracle connection URL.

Pool Management:

The pool is designed to dynamically manage the number of active connections based on usage patterns. A reaper thread is automatically started when the pool is initialized, performing two functions:

  1. Sweep through the pool at regular intervals (default every 60 seconds) to close connections that have been inactive for a specified time (default 90 seconds).
  2. Perform periodic validation (ping test) on idle connections to ensure they remain valid and responsive.

Realtime inspection:

Three methods can be used to inspect the pool at runtime. The method size() returns the number of connections in the pool, that is, both active and inactive connections. The method active() returns the number of active connections, i.e., those connections in current use by your application. The method isFull() can be used to check if the pool is full and unable to return a connection.

Example Usage:

ConnectionPool pool("mysql://localhost/test?user=root&password=swordfish");
pool.start();
// ...
Connection con = pool.getConnection();
ResultSet result = con.executeQuery("SELECT id, name, photo FROM employee WHERE salary > ?", 50000);
while (result.next()) {
int id = result.getInt("id");
auto name = result.getString("name");
auto photo = result.getBlob("photo");
// Process data...
}
Represents a database connection pool.
Definition zdbpp.h:1771
Represents a connection to a SQL database system.
Definition zdbpp.h:1333
ResultSet executeQuery(const std::string &sql, Args &&... args)
Executes a SQL query and returns a ResultSet.
Definition zdbpp.h:1563
Represents a database result set.
Definition zdbpp.h:590
int getInt(int columnIndex)
Gets the designated column's value as an int.
Definition zdbpp.h:731
bool next()
Moves the cursor to the next row.
Definition zdbpp.h:677
std::optional< std::string_view > getString(int columnIndex)
Gets the designated column's value as a string.
Definition zdbpp.h:707
std::optional< std::span< const std::byte > > getBlob(int columnIndex)
Gets the designated column's value as a byte span.
Definition zdbpp.h:795
Note
This ConnectionPool is thread-safe.
Warning
A ConnectionPool is neither copyable nor movable. It is designed to be a long-lived object that manages database connections throughout the lifetime of your application. Typically, you would instantiate one or more ConnectionPool objects as part of a resource management class or in the global scope of your application.

Represents a database connection pool. More...

Public Member Functions

 ConnectionPool (const std::string &url)
 Constructs a ConnectionPool with the given URL string.
 
 ConnectionPool (URL &&url)
 Constructs a ConnectionPool with a URL object.
 
int size () noexcept
 Gets the current number of connections in the pool.
 
int active () noexcept
 Gets the number of active connections in the pool.
 
bool isFull () noexcept
 Checks if the pool is full.
 
void start ()
 Prepares the pool for active use.
 
void stop ()
 Gracefully terminates the pool.
 
Connection getConnection ()
 Gets a connection from the pool.
 
void returnConnection (Connection &con) noexcept
 Returns a connection to the pool.
 
int reapConnections () noexcept
 Reaps inactive connections in the pool.
 

Properties

using AbortHandler = std::function<void(std::string_view)>
 
const URLgetURL () const noexcept
 Gets the URL of the connection pool.
 
void setInitialConnections (int initialConnections) noexcept
 Sets the number of initial connections in the pool.
 
int getInitialConnections () noexcept
 Gets the number of initial connections in the pool.
 
void setMaxConnections (int maxConnections) noexcept
 Sets the maximum number of connections in the pool.
 
int getMaxConnections () noexcept
 Gets the maximum number of connections in the pool.
 
void setConnectionTimeout (int connectionTimeout) noexcept
 Sets the connection inactive timeout value in seconds.
 
int getConnectionTimeout () noexcept
 Gets the connection timeout value.
 
void setAbortHandler (AbortHandler abortHandler=nullptr) noexcept
 Sets the function to call if a fatal error occurs in the library.
 
void setReaper (int sweepInterval) noexcept
 Customizes the reaper thread behavior or disables it.
 

Member Typedef Documentation

◆ AbortHandler

using AbortHandler = std::function<void(std::string_view)>

Constructor & Destructor Documentation

◆ ConnectionPool() [1/2]

ConnectionPool ( const std::string & url)
explicit

Constructs a ConnectionPool with the given URL string.

Parameters
urlThe database connection URL string.
Exceptions
sql_exceptionIf the URL is invalid.

◆ ConnectionPool() [2/2]

ConnectionPool ( URL && url)
explicit

Constructs a ConnectionPool with a URL object.

Parameters
urlThe database connection URL object to move from.
Exceptions
sql_exceptionIf the URL is invalid.

Member Function Documentation

◆ getURL()

const URL & getURL ( ) const
nodiscardnoexcept

Gets the URL of the connection pool.

Returns
The URL of the connection pool.

◆ setInitialConnections()

void setInitialConnections ( int initialConnections)
noexcept

Sets the number of initial connections in the pool.

Parameters
initialConnectionsThe number of initial connections.

◆ getInitialConnections()

int getInitialConnections ( )
nodiscardnoexcept

Gets the number of initial connections in the pool.

Returns
The number of initial connections.

◆ setMaxConnections()

void setMaxConnections ( int maxConnections)
noexcept

Sets the maximum number of connections in the pool.

If max connections has been reached, getConnection() will fail on the next call. It is a checked runtime error for maxConnections to be less than initialConnections.

Parameters
maxConnectionsThe maximum number of connections.

◆ getMaxConnections()

int getMaxConnections ( )
nodiscardnoexcept

Gets the maximum number of connections in the pool.

Returns
The maximum number of connections.

◆ setConnectionTimeout()

void setConnectionTimeout ( int connectionTimeout)
noexcept

Sets the connection inactive timeout value in seconds.

The method reapConnections(), if called, will close inactive connections in the pool which have not been in use for connectionTimeout seconds. The default connectionTimeout is 90 seconds.

Parameters
connectionTimeoutThe timeout value in seconds. It is a checked runtime error for connectionTimeout to be <= 0

◆ getConnectionTimeout()

int getConnectionTimeout ( )
nodiscardnoexcept

Gets the connection timeout value.

Returns
The connection timeout value in seconds.

◆ setAbortHandler()

void setAbortHandler ( AbortHandler abortHandler = nullptr)
noexcept

Sets the function to call if a fatal error occurs in the library.

In practice this means Out-Of-Memory errors or uncaught exceptions. Clients may optionally provide this function. If not provided the library will call abort(3) or exit(1) upon encountering a fatal error. It is an unchecked runtime error to continue using the library after the abortHandler was called.

Parameters
abortHandlerThe handler function to call on fatal errors.

◆ setReaper()

void setReaper ( int sweepInterval)
noexcept

Customizes the reaper thread behavior or disables it.

By default, a reaper thread is automatically started when the pool is initialized, with a default sweep interval of 60 seconds. This method allows you to change the sweep interval or disable the reaper entirely.

The reaper thread closes inactive Connections in the pool, down to the initial connection count. An inactive Connection is closed if its connectionTimeout has expired or if it fails a ping test. Active Connections (those in current use) are never closed by this thread.

This method can be called before or after ConnectionPool::start(). If called after start, the changes will take effect on the next sweep cycle.

Parameters
sweepIntervalNumber of seconds between sweeps of the reaper thread. Set to 0 or a negative value to disable the reaper thread, before calling ConnectionPool::start().

◆ size()

int size ( )
nodiscardnoexcept

Gets the current number of connections in the pool.

Returns
The total number of connections in the pool.

◆ active()

int active ( )
nodiscardnoexcept

Gets the number of active connections in the pool.

Returns
The number of active connections in the pool.

◆ isFull()

bool isFull ( )
nodiscardnoexcept

Checks if the pool is full.

The pool is full if the number of active connections equals max connections and the pool is unable to return a connection.

Returns
true if pool is full, false otherwise
Note
A full pool is unlikely to occur in practice if you ensure that connections are returned to the pool after use.

◆ start()

void start ( )

Prepares the pool for active use.

This method must be called before the pool is used. It will connect to the database server, create the initial connections for the pool, and start the reaper thread with default settings, unless previously disabled via setReaper().

Exceptions
sql_exceptionIf a database error occurs.

◆ stop()

void stop ( )

Gracefully terminates the pool.

This method should be the last one called on a given instance of this component. Calling this method closes down all connections in the pool, disconnects the pool from the database server, and stops the reaper thread if it was started.

Exceptions
sql_exceptionIf there are active connections.

◆ getConnection()

Connection getConnection ( )
nodiscard

Gets a connection from the pool.

The returned Connection is guaranteed to be alive and connected to the database.

An sql_exception may be thrown if the pool is full or if a database error occurs (e.g., network issues, database unavailability).

Here's a basic example of how to use getConnection and handle potential errors:

try {
Connection con = pool.getConnection();
// Use the connection ...
} catch (const sql_exception& e) {
std::cerr << "Error: " << e.what() << std::endl;
}
Exception class for SQL related errors.
Definition zdbpp.h:275
Returns
A Connection object.
Exceptions
sql_exceptionIf a database connection cannot be obtained

◆ returnConnection()

void returnConnection ( Connection & con)
noexcept

Returns a connection to the pool.

The same as calling Connection::close() on a connection. If the connection is in an uncommitted transaction, rollback is called. It is an unchecked error to attempt to use the Connection after this method is called.

Parameters
conThe Connection to return.

◆ reapConnections()

int reapConnections ( )
noexcept

Reaps inactive connections in the pool.

Returns
The number of connections reaped.

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/doxygen.css000644 000765 000024 00000101552 14652557242 017532 0ustar00haukstaff000000 000000 /* The standard CSS for doxygen 1.11.0*/ body { background-color: white; color: black; } body, table, div, p, dl { font-weight: 400; font-size: 14px; font-family: Roboto,sans-serif; line-height: 22px; } /* @group Heading Levels */ .title { font-family: Roboto,sans-serif; line-height: 28px; font-size: 150%; font-weight: bold; margin: 10px 2px; } h1.groupheader { font-size: 150%; } h2.groupheader { border-bottom: 1px solid #879ECB; color: #354C7B; font-size: 150%; font-weight: normal; margin-top: 1.75em; padding-top: 8px; padding-bottom: 4px; width: 100%; } h3.groupheader { font-size: 100%; } h1, h2, h3, h4, h5, h6 { -webkit-transition: text-shadow 0.5s linear; -moz-transition: text-shadow 0.5s linear; -ms-transition: text-shadow 0.5s linear; -o-transition: text-shadow 0.5s linear; transition: text-shadow 0.5s linear; margin-right: 15px; } h1.glow, h2.glow, h3.glow, h4.glow, h5.glow, h6.glow { text-shadow: 0 0 15px cyan; } dt { font-weight: bold; } p.startli, p.startdd { margin-top: 2px; } th p.starttd, th p.intertd, th p.endtd { font-size: 100%; font-weight: 700; } p.starttd { margin-top: 0px; } p.endli { margin-bottom: 0px; } p.enddd { margin-bottom: 4px; } p.endtd { margin-bottom: 2px; } p.interli { } p.interdd { } p.intertd { } /* @end */ caption { font-weight: bold; } span.legend { font-size: 70%; text-align: center; } h3.version { font-size: 90%; text-align: center; } div.navtab { padding-right: 15px; text-align: right; line-height: 110%; } div.navtab table { border-spacing: 0; } td.navtab { padding-right: 6px; padding-left: 6px; } td.navtabHL { background-image: url('tab_a.png'); background-repeat:repeat-x; padding-right: 6px; padding-left: 6px; } td.navtabHL a, td.navtabHL a:visited { color: white; text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); } a.navtab { font-weight: bold; } div.qindex{ text-align: center; width: 100%; line-height: 140%; font-size: 130%; color: #A0A0A0; } #main-menu a:focus { outline: auto; z-index: 10; position: relative; } dt.alphachar{ font-size: 180%; font-weight: bold; } .alphachar a{ color: black; } .alphachar a:hover, .alphachar a:visited{ text-decoration: none; } .classindex dl { padding: 25px; column-count:1 } .classindex dd { display:inline-block; margin-left: 50px; width: 90%; line-height: 1.15em; } .classindex dl.even { background-color: white; } .classindex dl.odd { background-color: #F8F9FC; } @media(min-width: 1120px) { .classindex dl { column-count:2 } } @media(min-width: 1320px) { .classindex dl { column-count:3 } } /* @group Link Styling */ a { color: #3D578C; font-weight: normal; text-decoration: none; } .contents a:visited { color: #4665A2; } a:hover { text-decoration: none; background: linear-gradient(to bottom, transparent 0,transparent calc(100% - 1px), currentColor 100%); } a:hover > span.arrow { text-decoration: none; background : #F9FAFC; } a.el { font-weight: bold; } a.elRef { } a.code, a.code:visited, a.line, a.line:visited { color: #4665A2; } a.codeRef, a.codeRef:visited, a.lineRef, a.lineRef:visited { color: #4665A2; } a.code.hl_class { /* style for links to class names in code snippets */ } a.code.hl_struct { /* style for links to struct names in code snippets */ } a.code.hl_union { /* style for links to union names in code snippets */ } a.code.hl_interface { /* style for links to interface names in code snippets */ } a.code.hl_protocol { /* style for links to protocol names in code snippets */ } a.code.hl_category { /* style for links to category names in code snippets */ } a.code.hl_exception { /* style for links to exception names in code snippets */ } a.code.hl_service { /* style for links to service names in code snippets */ } a.code.hl_singleton { /* style for links to singleton names in code snippets */ } a.code.hl_concept { /* style for links to concept names in code snippets */ } a.code.hl_namespace { /* style for links to namespace names in code snippets */ } a.code.hl_package { /* style for links to package names in code snippets */ } a.code.hl_define { /* style for links to macro names in code snippets */ } a.code.hl_function { /* style for links to function names in code snippets */ } a.code.hl_variable { /* style for links to variable names in code snippets */ } a.code.hl_typedef { /* style for links to typedef names in code snippets */ } a.code.hl_enumvalue { /* style for links to enum value names in code snippets */ } a.code.hl_enumeration { /* style for links to enumeration names in code snippets */ } a.code.hl_signal { /* style for links to Qt signal names in code snippets */ } a.code.hl_slot { /* style for links to Qt slot names in code snippets */ } a.code.hl_friend { /* style for links to friend names in code snippets */ } a.code.hl_dcop { /* style for links to KDE3 DCOP names in code snippets */ } a.code.hl_property { /* style for links to property names in code snippets */ } a.code.hl_event { /* style for links to event names in code snippets */ } a.code.hl_sequence { /* style for links to sequence names in code snippets */ } a.code.hl_dictionary { /* style for links to dictionary names in code snippets */ } /* @end */ dl.el { margin-left: -1cm; } ul.check { list-style:none; text-indent: -16px; padding-left: 38px; } li.unchecked:before { content: "\2610\A0"; } li.checked:before { content: "\2611\A0"; } ol { text-indent: 0px; } ul { text-indent: 0px; overflow: visible; } ul.multicol { -moz-column-gap: 1em; -webkit-column-gap: 1em; column-gap: 1em; -moz-column-count: 3; -webkit-column-count: 3; column-count: 3; list-style-type: none; } #side-nav ul { overflow: visible; /* reset ul rule for scroll bar in GENERATE_TREEVIEW window */ } #main-nav ul { overflow: visible; /* reset ul rule for the navigation bar drop down lists */ } .fragment { text-align: left; direction: ltr; overflow-x: auto; overflow-y: hidden; position: relative; min-height: 12px; margin: 10px 0px; padding: 10px 10px; border: 1px solid #C4CFE5; border-radius: 4px; background-color: #FBFCFD; color: black; } pre.fragment { word-wrap: break-word; font-size: 10pt; line-height: 125%; font-family: 'JetBrains Mono',Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace,fixed; } .clipboard { width: 24px; height: 24px; right: 5px; top: 5px; opacity: 0; position: absolute; display: inline; overflow: auto; fill: black; justify-content: center; align-items: center; cursor: pointer; } .clipboard.success { border: 1px solid black; border-radius: 4px; } .fragment:hover .clipboard, .clipboard.success { opacity: .28; } .clipboard:hover, .clipboard.success { opacity: 1 !important; } .clipboard:active:not([class~=success]) svg { transform: scale(.91); } .clipboard.success svg { fill: #2EC82E; } .clipboard.success { border-color: #2EC82E; } div.line { font-family: 'JetBrains Mono',Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace,fixed; font-size: 13px; min-height: 13px; line-height: 1.2; text-wrap: unrestricted; white-space: -moz-pre-wrap; /* Moz */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ white-space: pre-wrap; /* CSS3 */ word-wrap: break-word; /* IE 5.5+ */ text-indent: -53px; padding-left: 53px; padding-bottom: 0px; margin: 0px; -webkit-transition-property: background-color, box-shadow; -webkit-transition-duration: 0.5s; -moz-transition-property: background-color, box-shadow; -moz-transition-duration: 0.5s; -ms-transition-property: background-color, box-shadow; -ms-transition-duration: 0.5s; -o-transition-property: background-color, box-shadow; -o-transition-duration: 0.5s; transition-property: background-color, box-shadow; transition-duration: 0.5s; } div.line:after { content:"\000A"; white-space: pre; } div.line.glow { background-color: cyan; box-shadow: 0 0 10px cyan; } span.fold { margin-left: 5px; margin-right: 1px; margin-top: 0px; margin-bottom: 0px; padding: 0px; display: inline-block; width: 12px; height: 12px; background-repeat:no-repeat; background-position:center; } span.lineno { padding-right: 4px; margin-right: 9px; text-align: right; border-right: 2px solid #00FF00; color: black; background-color: #E8E8E8; white-space: pre; } span.lineno a, span.lineno a:visited { color: #4665A2; background-color: #D8D8D8; } span.lineno a:hover { color: #4665A2; background-color: #C8C8C8; } .lineno { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } div.classindex ul { list-style: none; padding-left: 0; } div.classindex span.ai { display: inline-block; } div.groupHeader { margin-left: 16px; margin-top: 12px; font-weight: bold; } div.groupText { margin-left: 16px; font-style: italic; } body { color: black; margin: 0; } div.contents { margin-top: 10px; margin-left: 12px; margin-right: 8px; } p.formulaDsp { text-align: center; } img.dark-mode-visible { display: none; } img.light-mode-visible { display: none; } img.formulaInl, img.inline { vertical-align: middle; } div.center { text-align: center; margin-top: 0px; margin-bottom: 0px; padding: 0px; } div.center img { border: 0px; } address.footer { text-align: right; padding-right: 12px; } img.footer { border: 0px; vertical-align: middle; width: 104px; } .compoundTemplParams { color: #4665A2; font-size: 80%; line-height: 120%; } /* @group Code Colorization */ span.keyword { color: #008000; } span.keywordtype { color: #604020; } span.keywordflow { color: #E08000; } span.comment { color: #800000; } span.preprocessor { color: #806020; } span.stringliteral { color: #002080; } span.charliteral { color: #008080; } span.xmlcdata { color: black; } span.vhdldigit { color: #FF00FF; } span.vhdlchar { color: #000000; } span.vhdlkeyword { color: #700070; } span.vhdllogic { color: #FF0000; } blockquote { background-color: #F7F8FB; border-left: 2px solid #9CAFD4; margin: 0 24px 0 4px; padding: 0 12px 0 16px; } /* @end */ td.tiny { font-size: 75%; } .dirtab { padding: 4px; border-collapse: collapse; border: 1px solid #2D4068; } th.dirtab { background-color: #374F7F; color: #FFFFFF; font-weight: bold; } hr { height: 0px; border: none; border-top: 1px solid #4A6AAA; } hr.footer { height: 1px; } /* @group Member Descriptions */ table.memberdecls { border-spacing: 0px; padding: 0px; } .memberdecls td, .fieldtable tr { -webkit-transition-property: background-color, box-shadow; -webkit-transition-duration: 0.5s; -moz-transition-property: background-color, box-shadow; -moz-transition-duration: 0.5s; -ms-transition-property: background-color, box-shadow; -ms-transition-duration: 0.5s; -o-transition-property: background-color, box-shadow; -o-transition-duration: 0.5s; transition-property: background-color, box-shadow; transition-duration: 0.5s; } .memberdecls td.glow, .fieldtable tr.glow { background-color: cyan; box-shadow: 0 0 15px cyan; } .mdescLeft, .mdescRight, .memItemLeft, .memItemRight, .memTemplItemLeft, .memTemplItemRight, .memTemplParams { background-color: #F9FAFC; border: none; margin: 4px; padding: 1px 0 0 8px; } .mdescLeft, .mdescRight { padding: 0px 8px 4px 8px; color: #555; } .memSeparator { border-bottom: 1px solid #DEE4F0; line-height: 1px; margin: 0px; padding: 0px; } .memItemLeft, .memTemplItemLeft { white-space: nowrap; } .memItemRight, .memTemplItemRight { width: 100%; } .memTemplParams { color: #4665A2; white-space: nowrap; font-size: 80%; } /* @end */ /* @group Member Details */ /* Styles for detailed member documentation */ .memtitle { padding: 8px; border-top: 1px solid #A8B8D9; border-left: 1px solid #A8B8D9; border-right: 1px solid #A8B8D9; border-top-right-radius: 4px; border-top-left-radius: 4px; margin-bottom: -1px; background-image: url('nav_f.png'); background-repeat: repeat-x; background-color: #E2E8F2; line-height: 1.25; font-weight: 300; float:left; } .permalink { font-size: 65%; display: inline-block; vertical-align: middle; } .memtemplate { font-size: 80%; color: #4665A2; font-weight: normal; margin-left: 9px; } .mempage { width: 100%; } .memitem { padding: 0; margin-bottom: 10px; margin-right: 5px; -webkit-transition: box-shadow 0.5s linear; -moz-transition: box-shadow 0.5s linear; -ms-transition: box-shadow 0.5s linear; -o-transition: box-shadow 0.5s linear; transition: box-shadow 0.5s linear; display: table !important; width: 100%; } .memitem.glow { box-shadow: 0 0 15px cyan; } .memname { font-weight: 400; margin-left: 6px; } .memname td { vertical-align: bottom; } .memproto, dl.reflist dt { border-top: 1px solid #A8B8D9; border-left: 1px solid #A8B8D9; border-right: 1px solid #A8B8D9; padding: 6px 0px 6px 0px; color: #253555; font-weight: bold; text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); background-color: #DFE5F1; box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); border-top-right-radius: 4px; } .overload { font-family: 'JetBrains Mono',Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace,fixed; font-size: 65%; } .memdoc, dl.reflist dd { border-bottom: 1px solid #A8B8D9; border-left: 1px solid #A8B8D9; border-right: 1px solid #A8B8D9; padding: 6px 10px 2px 10px; border-top-width: 0; background-image:url('nav_g.png'); background-repeat:repeat-x; background-color: white; /* opera specific markup */ border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); /* firefox specific markup */ -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; /* webkit specific markup */ -webkit-border-bottom-left-radius: 4px; -webkit-border-bottom-right-radius: 4px; -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); } dl.reflist dt { padding: 5px; } dl.reflist dd { margin: 0px 0px 10px 0px; padding: 5px; } .paramkey { text-align: right; } .paramtype { white-space: nowrap; padding: 0px; padding-bottom: 1px; } .paramname { white-space: nowrap; padding: 0px; padding-bottom: 1px; margin-left: 2px; } .paramname em { color: #602020; font-style: normal; margin-right: 1px; } .paramname .paramdefval { font-family: 'JetBrains Mono',Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace,fixed; } .params, .retval, .exception, .tparams { margin-left: 0px; padding-left: 0px; } .params .paramname, .retval .paramname, .tparams .paramname, .exception .paramname { font-weight: bold; vertical-align: top; } .params .paramtype, .tparams .paramtype { font-style: italic; vertical-align: top; } .params .paramdir, .tparams .paramdir { font-family: 'JetBrains Mono',Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace,fixed; vertical-align: top; } table.mlabels { border-spacing: 0px; } td.mlabels-left { width: 100%; padding: 0px; } td.mlabels-right { vertical-align: bottom; padding: 0px; white-space: nowrap; } span.mlabels { margin-left: 8px; } span.mlabel { background-color: #728DC1; border-top:1px solid #5373B4; border-left:1px solid #5373B4; border-right:1px solid #C4CFE5; border-bottom:1px solid #C4CFE5; text-shadow: none; color: white; margin-right: 4px; padding: 2px 3px; border-radius: 3px; font-size: 7pt; white-space: nowrap; vertical-align: middle; } /* @end */ /* these are for tree view inside a (index) page */ div.directory { margin: 10px 0px; border-top: 1px solid #9CAFD4; border-bottom: 1px solid #9CAFD4; width: 100%; } .directory table { border-collapse:collapse; } .directory td { margin: 0px; padding: 0px; vertical-align: top; } .directory td.entry { white-space: nowrap; padding-right: 6px; padding-top: 3px; } .directory td.entry a { outline:none; } .directory td.entry a img { border: none; } .directory td.desc { width: 100%; padding-left: 6px; padding-right: 6px; padding-top: 3px; border-left: 1px solid rgba(0,0,0,0.05); } .directory tr.odd { padding-left: 6px; background-color: #F8F9FC; } .directory tr.even { padding-left: 6px; background-color: white; } .directory img { vertical-align: -30%; } .directory .levels { white-space: nowrap; width: 100%; text-align: right; font-size: 9pt; } .directory .levels span { cursor: pointer; padding-left: 2px; padding-right: 2px; color: #3D578C; } .arrow { color: #9CAFD4; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: pointer; font-size: 80%; display: inline-block; width: 16px; height: 22px; } .icon { font-family: Arial,Helvetica; line-height: normal; font-weight: bold; font-size: 12px; height: 14px; width: 16px; display: inline-block; background-color: #728DC1; color: white; text-align: center; border-radius: 4px; margin-left: 2px; margin-right: 2px; } .icona { width: 24px; height: 22px; display: inline-block; } .iconfopen { width: 24px; height: 18px; margin-bottom: 4px; background-image:url('folderopen.svg'); background-repeat: repeat-y; vertical-align:top; display: inline-block; } .iconfclosed { width: 24px; height: 18px; margin-bottom: 4px; background-image:url('folderclosed.svg'); background-repeat: repeat-y; vertical-align:top; display: inline-block; } .icondoc { width: 24px; height: 18px; margin-bottom: 4px; background-image:url('doc.svg'); background-position: 0px -4px; background-repeat: repeat-y; vertical-align:top; display: inline-block; } /* @end */ div.dynheader { margin-top: 8px; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } address { font-style: normal; color: #2A3D61; } table.doxtable caption { caption-side: top; } table.doxtable { border-collapse:collapse; margin-top: 4px; margin-bottom: 4px; } table.doxtable td, table.doxtable th { border: 1px solid #2D4068; padding: 3px 7px 2px; } table.doxtable th { background-color: #374F7F; color: #FFFFFF; font-size: 110%; padding-bottom: 4px; padding-top: 5px; } table.fieldtable { margin-bottom: 10px; border: 1px solid #A8B8D9; border-spacing: 0px; border-radius: 4px; box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); } .fieldtable td, .fieldtable th { padding: 3px 7px 2px; } .fieldtable td.fieldtype, .fieldtable td.fieldname { white-space: nowrap; border-right: 1px solid #A8B8D9; border-bottom: 1px solid #A8B8D9; vertical-align: top; } .fieldtable td.fieldname { padding-top: 3px; } .fieldtable td.fielddoc { border-bottom: 1px solid #A8B8D9; } .fieldtable td.fielddoc p:first-child { margin-top: 0px; } .fieldtable td.fielddoc p:last-child { margin-bottom: 2px; } .fieldtable tr:last-child td { border-bottom: none; } .fieldtable th { background-image: url('nav_f.png'); background-repeat:repeat-x; background-color: #E2E8F2; font-size: 90%; color: #253555; padding-bottom: 4px; padding-top: 5px; text-align:left; font-weight: 400; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom: 1px solid #A8B8D9; } .tabsearch { top: 0px; left: 10px; height: 36px; background-image: url('tab_b.png'); z-index: 101; overflow: hidden; font-size: 13px; } .navpath ul { font-size: 11px; background-image: url('tab_b.png'); background-repeat:repeat-x; background-position: 0 -5px; height:30px; line-height:30px; color:#283A5D; border:solid 1px #C2CDE4; overflow:hidden; margin:0px; padding:0px; } .navpath li { list-style-type:none; float:left; padding-left:10px; padding-right:15px; background-image:url('bc_s.png'); background-repeat:no-repeat; background-position:right; color: #364D7C; } .navpath li.navelem a { height:32px; display:block; outline: none; color: #283A5D; font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); text-decoration: none; } .navpath li.navelem a:hover { color: white; text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); } .navpath li.footer { list-style-type:none; float:right; padding-left:10px; padding-right:15px; background-image:none; background-repeat:no-repeat; background-position:right; color: #2A3D61; font-size: 8pt; } div.summary { float: right; font-size: 8pt; padding-right: 5px; width: 50%; text-align: right; } div.summary a { white-space: nowrap; } table.classindex { margin: 10px; white-space: nowrap; margin-left: 3%; margin-right: 3%; width: 94%; border: 0; border-spacing: 0; padding: 0; } div.ingroups { font-size: 8pt; width: 50%; text-align: left; } div.ingroups a { white-space: nowrap; } div.header { background-image: url('nav_h.png'); background-repeat:repeat-x; background-color: #F9FAFC; margin: 0px; border-bottom: 1px solid #C4CFE5; } div.headertitle { padding: 5px 5px 5px 10px; } .PageDocRTL-title div.headertitle { text-align: right; direction: rtl; } dl { padding: 0 0 0 0; } /* dl.section { margin-left: 0px; padding-left: 0px; } dl.note { margin-left: -7px; padding-left: 3px; border-left: 4px solid; border-color: #D0C000; } dl.warning, dl.attention, dl.important { margin-left: -7px; padding-left: 3px; border-left: 4px solid; border-color: #FF0000; } dl.pre, dl.post, dl.invariant { margin-left: -7px; padding-left: 3px; border-left: 4px solid; border-color: #00D000; } dl.deprecated { margin-left: -7px; padding-left: 3px; border-left: 4px solid; border-color: #505050; } dl.todo { margin-left: -7px; padding-left: 3px; border-left: 4px solid; border-color: #00C0E0; } dl.test { margin-left: -7px; padding-left: 3px; border-left: 4px solid; border-color: #3030E0; } dl.bug { margin-left: -7px; padding-left: 3px; border-left: 4px solid; border-color: #C08050; } */ dl.bug dt a, dl.deprecated dt a, dl.todo dt a, dl.test a { font-weight: bold !important; } dl.warning, dl.attention, dl.important, dl.note, dl.deprecated, dl.bug, dl.invariant, dl.pre, dl.post, dl.todo, dl.test, dl.remark { padding: 10px; margin: 10px 0px; overflow: hidden; margin-left: 0; border-radius: 4px; } dl.section dd { margin-bottom: 2px; } dl.warning, dl.attention, dl.important { background: #f8d1cc; border-left: 8px solid #b61825; color: #75070f; } dl.warning dt, dl.attention dt, dl.important dt { color: #b61825; } dl.note, dl.remark { background: #faf3d8; border-left: 8px solid #f3a600; color: #5f4204; } dl.note dt, dl.remark dt { color: #f3a600; } dl.todo { background: #e4f3ff; border-left: 8px solid #1879C4; color: #274a5c; } dl.todo dt { color: #1879C4; } dl.test { background: #e8e8ff; border-left: 8px solid #3939C4; color: #1a1a5c; } dl.test dt { color: #3939C4; } dl.bug dt a { color: #5b2bdd !important; } dl.bug { background: #e4dafd; border-left: 8px solid #5b2bdd; color: #2a0d72; } dl.bug dt a { color: #5b2bdd !important; } dl.deprecated { background: #ecf0f3; border-left: 8px solid #5b6269; color: #43454a; } dl.deprecated dt a { color: #5b6269 !important; } dl.note dd, dl.warning dd, dl.pre dd, dl.post dd, dl.remark dd, dl.attention dd, dl.important dd, dl.invariant dd, dl.bug dd, dl.deprecated dd, dl.todo dd, dl.test dd { margin-inline-start: 0px; } dl.invariant, dl.pre, dl.post { background: #d8f1e3; border-left: 8px solid #44b86f; color: #265532; } dl.invariant dt, dl.pre dt, dl.post dt { color: #44b86f; } #projectrow { height: 56px; } #projectlogo { text-align: center; vertical-align: bottom; border-collapse: separate; } #projectlogo img { border: 0px none; } #projectalign { vertical-align: middle; padding-left: 0.5em; } #projectname { font-size: 200%; font-family: Tahoma,Arial,sans-serif; margin: 0px; padding: 2px 0px; } #projectbrief { font-size: 90%; font-family: Tahoma,Arial,sans-serif; margin: 0px; padding: 0px; } #projectnumber { font-size: 50%; font-family: 50% Tahoma,Arial,sans-serif; margin: 0px; padding: 0px; } #titlearea { padding: 0px; margin: 0px; width: 100%; border-bottom: 1px solid #5373B4; background-color: white; } .image { text-align: center; } .dotgraph { text-align: center; } .mscgraph { text-align: center; } .plantumlgraph { text-align: center; } .diagraph { text-align: center; } .caption { font-weight: bold; } dl.citelist { margin-bottom:50px; } dl.citelist dt { color:#334975; float:left; font-weight:bold; margin-right:10px; padding:5px; text-align:right; width:52px; } dl.citelist dd { margin:2px 0 2px 72px; padding:5px 0; } div.toc { padding: 14px 25px; background-color: #F4F6FA; border: 1px solid #D8DFEE; border-radius: 7px 7px 7px 7px; float: right; height: auto; margin: 0 8px 10px 10px; width: 200px; } div.toc li { background: url("data:image/svg+xml;utf8,&%238595;") no-repeat scroll 0 5px transparent; font: 10px/1.2 Verdana,'DejaVu Sans',Geneva,sans-serif; margin-top: 5px; padding-left: 10px; padding-top: 2px; } div.toc h3 { font: bold 12px/1.2 Verdana,'DejaVu Sans',Geneva,sans-serif; color: #4665A2; border-bottom: 0 none; margin: 0; } div.toc ul { list-style: none outside none; border: medium none; padding: 0px; } div.toc li.level1 { margin-left: 0px; } div.toc li.level2 { margin-left: 15px; } div.toc li.level3 { margin-left: 15px; } div.toc li.level4 { margin-left: 15px; } span.emoji { /* font family used at the site: https://unicode.org/emoji/charts/full-emoji-list.html * font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", Times, Symbola, Aegyptus, Code2000, Code2001, Code2002, Musica, serif, LastResort; */ } span.obfuscator { display: none; } .inherit_header { font-weight: bold; color: gray; cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .inherit_header td { padding: 6px 0px 2px 5px; } .inherit { display: none; } tr.heading h2 { margin-top: 12px; margin-bottom: 4px; } /* tooltip related style info */ .ttc { position: absolute; display: none; } #powerTip { cursor: default; /*white-space: nowrap;*/ color: black; background-color: white; border: 1px solid gray; border-radius: 4px 4px 4px 4px; box-shadow: 1px 1px 7px gray; display: none; font-size: smaller; max-width: 80%; opacity: 0.9; padding: 1ex 1em 1em; position: absolute; z-index: 2147483647; } #powerTip div.ttdoc { color: grey; font-style: italic; } #powerTip div.ttname a { font-weight: bold; } #powerTip a { color: #4665A2; } #powerTip div.ttname { font-weight: bold; } #powerTip div.ttdeci { color: #006318; } #powerTip div { margin: 0px; padding: 0px; font-size: 12px; font-family: Roboto,sans-serif; line-height: 16px; } #powerTip:before, #powerTip:after { content: ""; position: absolute; margin: 0px; } #powerTip.n:after, #powerTip.n:before, #powerTip.s:after, #powerTip.s:before, #powerTip.w:after, #powerTip.w:before, #powerTip.e:after, #powerTip.e:before, #powerTip.ne:after, #powerTip.ne:before, #powerTip.se:after, #powerTip.se:before, #powerTip.nw:after, #powerTip.nw:before, #powerTip.sw:after, #powerTip.sw:before { border: solid transparent; content: " "; height: 0; width: 0; position: absolute; } #powerTip.n:after, #powerTip.s:after, #powerTip.w:after, #powerTip.e:after, #powerTip.nw:after, #powerTip.ne:after, #powerTip.sw:after, #powerTip.se:after { border-color: rgba(255, 255, 255, 0); } #powerTip.n:before, #powerTip.s:before, #powerTip.w:before, #powerTip.e:before, #powerTip.nw:before, #powerTip.ne:before, #powerTip.sw:before, #powerTip.se:before { border-color: rgba(128, 128, 128, 0); } #powerTip.n:after, #powerTip.n:before, #powerTip.ne:after, #powerTip.ne:before, #powerTip.nw:after, #powerTip.nw:before { top: 100%; } #powerTip.n:after, #powerTip.ne:after, #powerTip.nw:after { border-top-color: white; border-width: 10px; margin: 0px -10px; } #powerTip.n:before, #powerTip.ne:before, #powerTip.nw:before { border-top-color: gray; border-width: 11px; margin: 0px -11px; } #powerTip.n:after, #powerTip.n:before { left: 50%; } #powerTip.nw:after, #powerTip.nw:before { right: 14px; } #powerTip.ne:after, #powerTip.ne:before { left: 14px; } #powerTip.s:after, #powerTip.s:before, #powerTip.se:after, #powerTip.se:before, #powerTip.sw:after, #powerTip.sw:before { bottom: 100%; } #powerTip.s:after, #powerTip.se:after, #powerTip.sw:after { border-bottom-color: white; border-width: 10px; margin: 0px -10px; } #powerTip.s:before, #powerTip.se:before, #powerTip.sw:before { border-bottom-color: gray; border-width: 11px; margin: 0px -11px; } #powerTip.s:after, #powerTip.s:before { left: 50%; } #powerTip.sw:after, #powerTip.sw:before { right: 14px; } #powerTip.se:after, #powerTip.se:before { left: 14px; } #powerTip.e:after, #powerTip.e:before { left: 100%; } #powerTip.e:after { border-left-color: gray; border-width: 10px; top: 50%; margin-top: -10px; } #powerTip.e:before { border-left-color: gray; border-width: 11px; top: 50%; margin-top: -11px; } #powerTip.w:after, #powerTip.w:before { right: 100%; } #powerTip.w:after { border-right-color: gray; border-width: 10px; top: 50%; margin-top: -10px; } #powerTip.w:before { border-right-color: gray; border-width: 11px; top: 50%; margin-top: -11px; } @media print { #top { display: none; } #side-nav { display: none; } #nav-path { display: none; } body { overflow:visible; } h1, h2, h3, h4, h5, h6 { page-break-after: avoid; } .summary { display: none; } .memitem { page-break-inside: avoid; } #doc-content { margin-left:0 !important; height:auto !important; width:auto !important; overflow:inherit; display:inline; } } /* @group Markdown */ table.markdownTable { border-collapse:collapse; margin-top: 4px; margin-bottom: 4px; } table.markdownTable td, table.markdownTable th { border: 1px solid #2D4068; padding: 3px 7px 2px; } table.markdownTable tr { } th.markdownTableHeadLeft, th.markdownTableHeadRight, th.markdownTableHeadCenter, th.markdownTableHeadNone { background-color: #374F7F; color: #FFFFFF; font-size: 110%; padding-bottom: 4px; padding-top: 5px; } th.markdownTableHeadLeft, td.markdownTableBodyLeft { text-align: left } th.markdownTableHeadRight, td.markdownTableBodyRight { text-align: right } th.markdownTableHeadCenter, td.markdownTableBodyCenter { text-align: center } tt, code, kbd, samp { display: inline-block; } /* @end */ u { text-decoration: underline; } details>summary { list-style-type: none; } details > summary::-webkit-details-marker { display: none; } details>summary::before { content: "\25ba"; padding-right:4px; font-size: 80%; } details[open]>summary::before { content: "\25bc"; padding-right:4px; font-size: 80%; } body { scrollbar-color: #9CAFD4 #F9FAFC; } ::-webkit-scrollbar { background-color: #F9FAFC; height: 12px; width: 12px; } ::-webkit-scrollbar-thumb { border-radius: 6px; box-shadow: inset 0 0 12px 12px #9CAFD4; border: solid 2px transparent; } ::-webkit-scrollbar-corner { background-color: #F9FAFC; } libzdb-3.4.0/doc/api-docs/index.html000644 000765 000024 00000011136 14652557242 017336 0ustar00haukstaff000000 000000 File List ⬅
File List
Here is a list of all files with brief descriptions:
[detail level 12]
  zdb
 Connection.hA Connection represents a connection to a SQL database system
 ConnectionPool.hA ConnectionPool represents a database connection pool
 Exception.hAn Exception indicates an error condition from which recovery may be possible
 PreparedStatement.hA PreparedStatement represents a single SQL statement pre-compiled into byte code for later execution
 ResultSet.hA ResultSet represents a database result set
 SQLException.hSignals that an SQL specific exception has occurred
 URL.hURL represents an immutable Uniform Resource Locator
 zdb.hInclude this interface in your C code to import the libzdb API
 zdbpp.hZdbpp.h - C++ Interface for libzdb

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/doxygen_crawl.html000644 000765 000024 00000047100 14652557242 021074 0ustar00haukstaff000000 000000 Validator / crawler helper libzdb-3.4.0/doc/api-docs/functions.html000644 000765 000024 00000026121 14652557242 020237 0ustar00haukstaff000000 000000 Data Fields ⬅
Here is a list of all struct and union fields with links to the structures/unions they belong to:

- a -

- b -

- c -

- e -

- g -

- h -

  • host() : URL

- i -

- l -

- n -

- p -

- q -

  • queryString() : URL

- r -

- s -

- t -

  • toString() : URL

- u -

  • URL() : URL
  • user() : URL

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/sync_off.png000644 000765 000024 00000001525 14652557242 017656 0ustar00haukstaff000000 000000 ‰PNG  IHDRàw=øIDATxíÝKhTWÀñÿä1I&3™8M¦Iš™†I3Ú©b$cÌ I1V1±-(Tö±±Ð.* t!‚K[¥Ä¥ˆ„¨´f£`l(øl©"Y”¤6ÆgÌTú}·sgîܹ ±d{8?æÌ¹÷;çÜuíÚ`:!±F¬¢BäŠ?ŰÄm'yÊÅ>ÑlU¯½üý‰è_‹?€Œê ]€Y(ŠNñ±8fý1°Öqún-eâ¨øtºmâÈ Ó0}b›ù%·©µ×Œ®=Ÿ0´³?Š1sŸ‹0€¯8À‘;_ ‹W|%\ Zð— >舽ln¨p©.aÇ{ )t;Ú b nŸš¯›65°¢¡2çÅÔ?Žž>Oдàuönm¤¢Ì`×­Z¬WjC~>‘Ö¾0+á {{©fÝ×Mæ·æÅ•ìÙ¼˜` Ý›%uA6´½ÅÆö¨Á,]k¢ÄW¼™u±›]‹ˆ7§¯iòh€ ¶¶¬ÏÖu1 ló —Ҷ̺–:ÞÍ\ÄcãÏxøhR²Êè‡Qt$¿ß§¨ ª fdºü<4BÿÙ[•f¸d7=.Mé9/—éªÃëù/ÿO Üaàò}€,‘j?Ÿõ.5Úšm?œÿŸ®ŽXÿ2¬#¸d píæ(£?cÛú¼!½›a1¥Þ—ŽòØ©ܾ7dÔK:‚ùÒ‰ì)Ê3‚Ü™àÌà]€,±H€µ+køöäu<|`·LhC7¹ÔeÍ Ÿ×Ÿ˜tÜ‹ óH$^2%l.êaeÐäýE”ÌÉ|ÅÜìî‰Ýsä }¸ýDû^hzé~ðR›¦Ã¡¿]|#ü¯@×—Ö‡[k¹–<|š(Ç*€Ý¹dÇtMé:Ýñø«Ø,êÅû¢]”' øXÓ_nò¡Æ|Øý /c§fžâOIEND®B`‚libzdb-3.4.0/doc/api-docs/doxygen.svg000644 000765 000024 00000036145 14652557242 017546 0ustar00haukstaff000000 000000 libzdb-3.4.0/doc/api-docs/namespacemembers_func.html000644 000765 000024 00000002605 14652557242 022552 0ustar00haukstaff000000 000000 Namespace Members ⬅
Here is a list of all namespace functions with links to the namespace documentation for each function:

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/sync_on.png000644 000765 000024 00000001515 14652557242 017517 0ustar00haukstaff000000 000000 ‰PNG  IHDRàw=øIDATxíÝ_HTYÀñï8ã¤ó§i§4-g6ÆËÕ&kQ)¨Ô!Š0ÒURKÚ…„ê¡/»PEÁ>ìK-+KÁ²Ñ.Y”¾dEPaA‰ø°¥¶›ZSÓïÜ;3wºŠ–¯—߯gfîïœsçœWKÇñ.€ÉøD­¨a‘'¬âq_ôˆk¢ÀŒ ÀDŽøQ´ÄïC¨¶åñÏÿgÅ ñ 0„Y‚:qZ¦Á)~õâ€èLý0HVñ× žz-¿‰C“%¨g¦˜6€é8%Úõ¬ëwêÙUÏ¿˜ª³Ä }? ?€·3ÀÀž©Š À”K• @hà a±ðaÇæUe‹ sù~ë2²ì“&Ú&B*AÄljæºììi*˨,Ëçí»÷oÆ£T”,d[˜¼3-*ÁÀ…>å‡Ë çLÉŸçfk˜Ò éw#*AEjKUy>ûšËÉõ&{µ¢8—m5Ki¬ jjƒD*¿NŽÖigwÃ7Dª’mz骹úKÛ¾±ˆ¶M!æ¤ÍkÐ?šoý¬_åÓlXí#Ò~–¸¬ê×ÒÑXŠÓ‘ùRÙ*Eû‚ՂדðEÜ;6«e"Q(²Ù=–¿Ezæ5Kؼָ_ 1òzBªJë ±XŒì96åªjL^7{ùãJÑ÷1½i@%8'7M©_\Qœ#ÓUŒËñýÿyõ Wo Éx8¼s¥v¯ªì|×SnÜ q_m Ýé î>bèÕí[JX,½4[Tú{R£ë¼ôˆ¾þa€tÝjjzzÅ'ÅìȶiIžŽòwÏs ¡€—ÕKøõâC^ŽŒ˜Y­¨µÉ%6¨´êˆº]vÛðhâ½iWv–hôëê°Ò¨¾'æÌ‚·ñ|[ßìúÅ^€YrD=<ýDû]äÇ÷s€Ïõ‹8™ºCì? À ¨—t4õᩎ¡Jã‡W‹É± îr¼cjMɘìx| šE©øNÔ‰œøA¢þ«–€Z¼ñ‡jó î#™§¢¢4gIEND®B`‚libzdb-3.4.0/doc/api-docs/libzdb.css000644 000765 000024 00000003767 14647323460 017331 0ustar00haukstaff000000 000000 body {background-color:white;} body,div,p,dl, .memname, .memberdecls, .paramname, .params, .paramname, .tparams, .exception { font: normal normal normal 17px/23px "HelveticaNeue", Helvetica, "Arial Narrow", Arial, sans-serif; } h1, h2, h3, h4 {color: rgba(1,1,1,.8);} #nav-path {display:none;} h2:first-of-type {margin-top:2px; border:none;} h2.groupheader {font-size:26px; line-height:28px;color:#286796;} h2.desc, h2 {font-weight:lighter; margin-top:1em;} div.groupheader { font-weight:600; font-size:18px;color: rgb(51, 51, 51);} h3 {font-size:20px; font-weight:lighter;} div.header { background-image:none; background-color: #3498db; color:white; position: absolute;width: 100%;top: 0;} div.contents {margin-top: 80px;} div.title {text-align:center;font-size: 28px; font-weight:100;} div.fragment {border:none; margin:8px; background-color:transparent;} div.line{font-size:15px;} .summary {display:none;} dl.section {border:none;} code { background: rgba(200,200,200,0.15); padding: 0 3px 0 3px; } /* Responsive image */ .resp-img { max-width: 100%; height: auto; } table.memberdecls { font-size: 15px; } .memproto > *, .memitem > * { box-shadow: none!important; background-image:none!important; } .memtitle { display: none; } .memproto { border-top-left-radius: 5px; border-bottom: 1px #b8c8e9 solid; background-color: #E4F1FE; } .memname { color: #2c3e50!important; text-shadow: none; font-weight: 600 !important; } pre {white-space: pre-wrap;padding-left:1em;} .textinfo {color: #428bca;} .textnote {color: #a94442;} a.back { font-size: 28px; text-decoration:none; color:white; position:fixed; top: 10px; right:20px; padding: 10px 20px; background-color: rgba(59,150,215, 0.4); cursor:pointer; transition: all 0.25s ease; z-index:20; } a.back:hover { padding-left:15px; padding-right:25px; background-color:#2980b9; } libzdb-3.4.0/doc/api-docs/annotated.html000644 000765 000024 00000007372 14652557242 020213 0ustar00haukstaff000000 000000 Data Structures ⬅
Data Structures
Here are the data structures with brief descriptions:
[detail level 12]
 Nzdb
 CConnectionRepresents a connection to a SQL database system
 CConnectionPoolRepresents a database connection pool
 CPreparedStatementRepresents a pre-compiled SQL statement for later execution
 CResultSetRepresents a database result set
 Csql_exceptionException class for SQL related errors
 CURLRepresents an immutable Uniform Resource Locator

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/namespacezdb.html000644 000765 000024 00000011440 14652557242 020661 0ustar00haukstaff000000 000000 zdb Namespace Reference ⬅
zdb Namespace Reference

Namespaces

namespace  version
 

Data Structures

class  Connection
 Represents a connection to a SQL database system. More...
 
class  ConnectionPool
 Represents a database connection pool. More...
 
class  PreparedStatement
 Represents a pre-compiled SQL statement for later execution. More...
 
class  ResultSet
 Represents a database result set. More...
 
class  sql_exception
 Exception class for SQL related errors. More...
 
class  URL
 Represents an immutable Uniform Resource Locator. More...
 

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/PreparedStatement_8h.html000644 000765 000024 00000135220 14652557242 022256 0ustar00haukstaff000000 000000 PreparedStatement.h File Reference ⬅
PreparedStatement.h File Reference

Detailed Description

A PreparedStatement represents a single SQL statement pre-compiled into byte code for later execution.

The SQL statement may contain in parameters of the form ?. Such parameters represent unspecified literal values (or "wildcards") to be filled in later by the various setter methods defined in this interface. Each in parameter has an associated index number which is its sequence in the statement. The first in '?' parameter has index 1, the next has index 2 and so on. A PreparedStatement is created by calling Connection_prepareStatement().

Consider this statement:

INSERT INTO employee(name, photo) VALUES(?, ?)

There are two in parameters in this statement, the parameter for setting the name has index 1 and the one for the photo has index 2. To set the values for the in parameters we use a setter method. Assuming name has a string value we use PreparedStatement_setString(). To set the value of the photo we submit a binary value using the method PreparedStatement_setBlob().

Example

To summarize, here is the code in context.

PreparedStatement_T p = Connection_prepareStatement(con, "INSERT INTO employee(name, photo) VALUES(?, ?)");
PreparedStatement_setString(p, 1, "Kamiya Kaoru");
PreparedStatement_setBlob(p, 2, jpeg, jpeg_size);
PreparedStatement_T Connection_prepareStatement(T C, const char *sql,...)
Prepares a SQL statement for execution.
void PreparedStatement_setString(T P, int parameterIndex, const char *x)
Sets the in parameter at index parameterIndex to the given string value.
void PreparedStatement_execute(T P)
Executes the prepared SQL statement.
void PreparedStatement_setBlob(T P, int parameterIndex, const void *x, int size)
Sets the in parameter at index parameterIndex to the given blob value.

Reuse

A PreparedStatement can be reused. That is, the method PreparedStatement_execute() can be called one or more times to execute the same statement. Clients can also set new in parameter values and re-execute the statement as shown in this example:

PreparedStatement_T p = Connection_prepareStatement(con, "INSERT INTO employee(name, photo) VALUES(?, ?)");
for (int i = 0; employees[i]; i++)
{
PreparedStatement_setString(p, 1, employees[i].name);
PreparedStatement_setBlob(p, 2, employees[i].photo.data, employees[i].photo.size);
}

Result Sets

Here is another example where we use a Prepared Statement to execute a query which returns a Result Set:

PreparedStatement_T p = Connection_prepareStatement(con, "SELECT id FROM employee WHERE name LIKE ?");
ResultSet_T r = PreparedStatement_executeQuery(p);
while (ResultSet_next(r))
printf("employee.id = %d\n", ResultSet_getInt(r, 1));
ResultSet_T PreparedStatement_executeQuery(T P)
Executes the prepared SQL query.
bool ResultSet_next(T R)
Moves the cursor to the next row.
int ResultSet_getInt(T R, int columnIndex)
Gets the designated column's value as an int.

A ResultSet returned from PreparedStatement_executeQuery() is valid until the Prepared Statement is executed again or until the Connection is returned to the Connection Pool.

Date and Time

PreparedStatement_setTimestamp() can be used to set a Unix timestamp value as a time_t type. To set Date, Time or DateTime values, simply use PreparedStatement_setString() to set a time string in a format understood by your database. For instance to set a SQL Date value,,

PreparedStatement_setString(p, parameterIndex, "2019-12-28");

SQL Injection Prevention

Prepared Statement is particularly useful when dealing with user-submitted data, as properly used Prepared Statements provide strong protection against SQL injection attacks. By separating SQL logic from data, PreparedStatements ensure that user input is treated as data only, not as part of the SQL command.

A PreparedStatement is reentrant, but not thread-safe and should only be used by one thread (at a time).

Note
Remember that parameter indices in PreparedStatement are 1-based, not 0-based.
To minimizes memory allocation and avoid unnecessary data copying, string and blob values are set by reference and MUST remain valid until either PreparedStatement_execute() or PreparedStatement_executeQuery() is called.
See also
Connection.h ResultSet.h SQLException.h

Macros

#define T   PreparedStatement_T
 

Typedefs

typedef struct PreparedStatement_S * T
 

Functions

Parameters
void PreparedStatement_setString (T P, int parameterIndex, const char *x)
 Sets the in parameter at index parameterIndex to the given string value.
 
void PreparedStatement_setSString (T P, int parameterIndex, const char *x, int size)
 Sets the in parameter at index parameterIndex to the given sized string value.
 
void PreparedStatement_setInt (T P, int parameterIndex, int x)
 Sets the in parameter at index parameterIndex to the given int value.
 
void PreparedStatement_setLLong (T P, int parameterIndex, long long x)
 Sets the in parameter at index parameterIndex to the given long long value.
 
void PreparedStatement_setDouble (T P, int parameterIndex, double x)
 Sets the in parameter at index parameterIndex to the given double value.
 
void PreparedStatement_setBlob (T P, int parameterIndex, const void *x, int size)
 Sets the in parameter at index parameterIndex to the given blob value.
 
void PreparedStatement_setTimestamp (T P, int parameterIndex, time_t x)
 Sets the in parameter at index parameterIndex to the given Unix timestamp value.
 
void PreparedStatement_setNull (T P, int parameterIndex)
 Sets the in parameter at index parameterIndex to SQL NULL.
 
Functions
void PreparedStatement_execute (T P)
 Executes the prepared SQL statement.
 
ResultSet_T PreparedStatement_executeQuery (T P)
 Executes the prepared SQL query.
 
long long PreparedStatement_rowsChanged (T P)
 Gets the number of rows affected by the most recent SQL statement.
 
Properties
int PreparedStatement_getParameterCount (T P)
 Gets the number of parameters in the prepared statement.
 

Macro Definition Documentation

◆ T

#define T   PreparedStatement_T

Typedef Documentation

◆ T

typedef struct PreparedStatement_S* T

Function Documentation

◆ PreparedStatement_setString()

void PreparedStatement_setString ( T P,
int parameterIndex,
const char * x )

Sets the in parameter at index parameterIndex to the given string value.

This method is less efficient than PreparedStatement_setSString() as it needs to calculate the string length. Use PreparedStatement_setSString() if you know the size of the string.

Parameters
PA PreparedStatement object
parameterIndexThe first parameter is 1, the second is 2, ...
xThe string value to set. The string must be a '\0' terminated C-string. NULL is allowed to indicate a SQL NULL value.
Exceptions
SQLExceptionIf a database access error occurs or if parameter index is out of range
See also
SQLException.h
PreparedStatement_setSString

◆ PreparedStatement_setSString()

void PreparedStatement_setSString ( T P,
int parameterIndex,
const char * x,
int size )

Sets the in parameter at index parameterIndex to the given sized string value.

This method is more efficient than PreparedStatement_setString() as it doesn't need to calculate the string length.

Parameters
PA PreparedStatement object
parameterIndexThe first parameter is 1, the second is 2, ...
xThe string value to set. The string need not be '\0' terminated. NULL is allowed to indicate a SQL NULL value.
sizeThe length of the byte string. For instance, the value returned by strlen(3). If size is negative, it will be treated as 0.
Exceptions
SQLExceptionIf a database access error occurs or if parameter index is out of range
See also
SQLException.h
PreparedStatement_setString

◆ PreparedStatement_setInt()

void PreparedStatement_setInt ( T P,
int parameterIndex,
int x )

Sets the in parameter at index parameterIndex to the given int value.

Parameters
PA PreparedStatement object
parameterIndexThe first parameter is 1, the second is 2,..
xThe int value to set
Exceptions
SQLExceptionIf a database access error occurs or if parameter index is out of range
See also
SQLException.h

◆ PreparedStatement_setLLong()

void PreparedStatement_setLLong ( T P,
int parameterIndex,
long long x )

Sets the in parameter at index parameterIndex to the given long long value.

Parameters
PA PreparedStatement object
parameterIndexThe first parameter is 1, the second is 2,..
xThe long long value to set
Exceptions
SQLExceptionIf a database access error occurs or if parameter index is out of range
See also
SQLException.h

◆ PreparedStatement_setDouble()

void PreparedStatement_setDouble ( T P,
int parameterIndex,
double x )

Sets the in parameter at index parameterIndex to the given double value.

Parameters
PA PreparedStatement object
parameterIndexThe first parameter is 1, the second is 2,..
xThe double value to set
Exceptions
SQLExceptionIf a database access error occurs or if parameter index is out of range
See also
SQLException.h

◆ PreparedStatement_setBlob()

void PreparedStatement_setBlob ( T P,
int parameterIndex,
const void * x,
int size )

Sets the in parameter at index parameterIndex to the given blob value.

Parameters
PA PreparedStatement object
parameterIndexThe first parameter is 1, the second is 2,..
xThe blob value to set. NULL is allowed to indicate a SQL NULL value
sizeThe number of bytes in the blob. If size is negative, it will be treated as 0.
Exceptions
SQLExceptionIf a database access error occurs or if parameter index is out of range
See also
SQLException.h

◆ PreparedStatement_setTimestamp()

void PreparedStatement_setTimestamp ( T P,
int parameterIndex,
time_t x )

Sets the in parameter at index parameterIndex to the given Unix timestamp value.

The timestamp value given in x is expected to be a UTC timestamp, representing the number of seconds since the Unix epoch, regardless of the system's local timezone. For instance, a value returned by time(3) is appropriate for this parameter.

Note on database-specific behavior:

  • SQLite: Stores the time_t value as a 64-bit integer. This preserves the exact UTC timestamp, which can be correctly interpreted in any timezone when retrieved.
  • MySQL, PostgreSQL and Oracle: Convert and store the timestamp in their respective datetime formats, preserving the UTC value.

This approach ensures consistent timestamp handling across different timezones and database systems. When retrieving the timestamp, use appropriate time conversion functions to interpret the value in the desired timezone.

Parameters
PA PreparedStatement object
parameterIndexThe first parameter is 1, the second is 2, ...
xThe UTC timestamp value to set. E.g., a value returned by time(3)
Exceptions
SQLExceptionIf a database access error occurs or if parameter index is out of range
See also
SQLException.h
ResultSet_getTimestamp

◆ PreparedStatement_setNull()

void PreparedStatement_setNull ( T P,
int parameterIndex )

Sets the in parameter at index parameterIndex to SQL NULL.

Parameters
PA PreparedStatement object
parameterIndexThe first parameter is 1, the second is 2,..
Exceptions
SQLExceptionIf a database access error occurs or if parameter index is out of range
See also
SQLException.h

◆ PreparedStatement_execute()

void PreparedStatement_execute ( T P)

Executes the prepared SQL statement.

Executes the prepared SQL statement, which may be an INSERT, UPDATE, or DELETE statement or an SQL statement that returns nothing, such as an SQL DDL statement.

Parameters
PA PreparedStatement object
Exceptions
SQLExceptionIf a database error occurs
See also
SQLException.h

◆ PreparedStatement_executeQuery()

ResultSet_T PreparedStatement_executeQuery ( T P)

Executes the prepared SQL query.

Executes the prepared SQL statement, which returns a single ResultSet object. A ResultSet is valid until the next call to a PreparedStatement method or until the Connection is returned to the Connection Pool. This means that Result Sets cannot be saved between queries.

Parameters
PA PreparedStatement object
Returns
A ResultSet object that contains the data produced by the prepared statement.
Exceptions
SQLExceptionIf a database error occurs
See also
ResultSet.h
SQLException.h

◆ PreparedStatement_rowsChanged()

long long PreparedStatement_rowsChanged ( T P)

Gets the number of rows affected by the most recent SQL statement.

If used with a transaction, this method should be called before commit is executed, otherwise 0 is returned.

Parameters
PA PreparedStatement object
Returns
The number of rows changed by the last (DIM) SQL statement

◆ PreparedStatement_getParameterCount()

int PreparedStatement_getParameterCount ( T P)

Gets the number of parameters in the prepared statement.

Parameters
PA PreparedStatement object
Returns
The number of in parameters in this prepared statement

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/tab_hd.png000644 000765 000024 00000000264 14652557242 017270 0ustar00haukstaff000000 000000 ‰PNG  IHDR$ÇÇ[{IDATxíK Â@D»«Ì€‚"ˆà"I¢ ñ·w1šE¢.½”gŽÌAêñêÝBnßÜtÄÍX\?,Îoæ§óã“Ûº5:úªô=}ù`V5ÌÊûØé!0݇áCD¸Üì ¨*D£mö£Ç#JÀŒI24×þÂùÊÿÒì®eVKIEND®B`‚libzdb-3.4.0/doc/api-docs/doc.svg000644 000765 000024 00000002737 14652557242 016636 0ustar00haukstaff000000 000000 libzdb-3.4.0/doc/api-docs/hierarchy.html000644 000765 000024 00000010016 14652557242 020201 0ustar00haukstaff000000 000000 Class Hierarchy ⬅
Class Hierarchy
This inheritance list is sorted roughly, but not completely, alphabetically:
[detail level 12]
 Cnoncopyable
 CConnectionRepresents a connection to a SQL database system
 CConnectionPoolRepresents a database connection pool
 CPreparedStatementRepresents a pre-compiled SQL statement for later execution
 CResultSetRepresents a database result set
 Cruntime_error
 Csql_exceptionException class for SQL related errors
 CURLRepresents an immutable Uniform Resource Locator

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/bc_s.png000644 000765 000024 00000001244 14652557242 016754 0ustar00haukstaff000000 000000 ‰PNG  IHDR€_ kIDATxíËkQÆÏ¹É̤I&“¦mš&156*nÄ…”ܸR,4 +Hµ(U­b”ª1‚ŠˆJ.º(E·mßúhëJmKS'C›(‚èäÑ…¤ï &äÖþ ‡ïrÎåü3gö(z÷ýÒ&_9ó}’ÕŸ@‰mÚu ` Øh`ñ÷Ô¯  „ú&·ññ×Ù~“½—Üò‡ÎÝÑM4¸%‰3²§?Êêh)€ÿù™\ÄYi>Jb @gûßiÞˆú²Ñkg§ãê\è½­šEUæv+?E€î"pæÖÛB\ƒY&ðØó$vM+ê’Dn¼)}òþ:§Xoâ ƒ3ŠÚ¯'¯¿.‚fÁ0ìuŠ9òLýj€f6¸%«3Gf”Ô#Ôsm(,ùÃk*Ê’³Jª…¯¼JË¢o䆔¼u_~ °r]%%mnu]z°r5[ÍÆ°«Úò•Xeµ’†Iù<ÈèÐÅg@IÔÚÞàµë3‚:/<JÇ’ÐQ) ñ¹…tÚß÷(Mû\63éCgl!ýí;ÿ¸4Ùhâñ=÷Zë29­w’ÝÒ´·ˆV;ÊL3ƒj&7©·º½÷a!I†)ëë$-öÇÓú³›‹7tIV¾VàñÔübf¨8¡ÈƒB<﫵imnÿœÈ‡„ lߣù‡ÛD —#É5“­'Æ4?쬲øM’™›°»g¬‚|5Åçµ½GNdÓÐr|ô”Ã&„ì"7+'³@ 5‡G➑Džâɬ^;õã–.3Òr"ý_R³¿Â@²oI¾å$IEND®B`‚libzdb-3.4.0/doc/api-docs/nav_g.png000644 000765 000024 00000000137 14652557242 017140 0ustar00haukstaff000000 000000 ‰PNG  IHDRô1&IDATxíÝ1 ÁOHf„á_ ->~¸åM iËMèÀƒS½ü‚<IEND®B`‚libzdb-3.4.0/doc/api-docs/nav_f.png000644 000765 000024 00000000231 14652557242 017132 0ustar00haukstaff000000 000000 ‰PNG  IHDR8³»`IDATxíÝK€ EÑ–·[†øBÑmkâÄÂH—prÓ¼.‚Žó‚ꎤR6Z VI±E‚5j³„lóš›iI˜¬ÞêçJ0ŒÑÑ/Žû›™uøñóÞ¿6sH ÝõyIEND®B`‚libzdb-3.4.0/doc/api-docs/tabs.css000644 000765 000024 00000024350 14652557242 017006 0ustar00haukstaff000000 000000 .sm{position:relative;z-index:9999}.sm,.sm ul,.sm li{display:block;list-style:none;margin:0;padding:0;line-height:normal;direction:ltr;text-align:left;-webkit-tap-highlight-color:rgba(0,0,0,0)}.sm-rtl,.sm-rtl ul,.sm-rtl li{direction:rtl;text-align:right}.sm>li>h1,.sm>li>h2,.sm>li>h3,.sm>li>h4,.sm>li>h5,.sm>li>h6{margin:0;padding:0}.sm ul{display:none}.sm li,.sm a{position:relative}.sm a{display:block}.sm a.disabled{cursor:not-allowed}.sm:after{content:"\00a0";display:block;height:0;font:0/0 serif;clear:both;visibility:hidden;overflow:hidden}.sm,.sm *,.sm *:before,.sm *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.main-menu-btn{position:relative;display:inline-block;width:36px;height:36px;text-indent:36px;margin-left:8px;white-space:nowrap;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0)}.main-menu-btn-icon,.main-menu-btn-icon:before,.main-menu-btn-icon:after{position:absolute;top:50%;left:2px;height:2px;width:24px;background:#364D7C;-webkit-transition:all .25s;transition:all .25s}.main-menu-btn-icon:before{content:'';top:-7px;left:0}.main-menu-btn-icon:after{content:'';top:7px;left:0}#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon{height:0}#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:before{top:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:after{top:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}#main-menu-state{position:absolute;width:1px;height:1px;margin:-1px;border:0;padding:0;overflow:hidden;clip:rect(1px,1px,1px,1px)}#main-menu-state:not(:checked) ~ #main-menu{display:none}#main-menu-state:checked ~ #main-menu{display:block}@media(min-width:768px){.main-menu-btn{position:absolute;top:-99999px}#main-menu-state:not(:checked) ~ #main-menu{display:block}}.sm-dox{background-image:url('tab_b.png')}.sm-dox a,.sm-dox a:focus,.sm-dox a:hover,.sm-dox a:active{padding:0 12px;padding-right:43px;font-family:'Lucida Grande',Geneva,Helvetica,Arial,sans-serif;font-size:13px;font-weight:bold;line-height:36px;text-decoration:none;text-shadow:0px 1px 1px rgba(255, 255, 255, 0.9);color:#283A5D;outline:0}.sm-dox a:hover{background-image:url('tab_a.png');background-repeat:repeat-x;color:white;text-shadow:0px 1px 1px rgba(0, 0, 0, 1.0)}.sm-dox a.current{color:#d23600}.sm-dox a.disabled{color:#bbb}.sm-dox a span.sub-arrow{position:absolute;top:50%;margin-top:-14px;left:auto;right:3px;width:28px;height:28px;overflow:hidden;font:bold 12px/28px monospace !important;text-align:center;text-shadow:none;background:rgba(255, 255, 255, 0.5);-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.sm-dox a span.sub-arrow:before{display:block;content:'+'}.sm-dox a.highlighted span.sub-arrow:before{display:block;content:'-'}.sm-dox>li:first-child>a,.sm-dox>li:first-child>:not(ul) a{-moz-border-radius:5px 5px 0 0;-webkit-border-radius:5px;border-radius:5px 5px 0 0}.sm-dox>li:last-child>a,.sm-dox>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul{-moz-border-radius:0 0 5px 5px;-webkit-border-radius:0;border-radius:0 0 5px 5px}.sm-dox>li:last-child>a.highlighted,.sm-dox>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.sm-dox ul{background:white}.sm-dox ul a,.sm-dox ul a:focus,.sm-dox ul a:hover,.sm-dox ul a:active{font-size:12px;border-left:8px solid transparent;line-height:36px;text-shadow:none;background-color:white;background-image:none}.sm-dox ul a:hover{background-image:url('tab_a.png');background-repeat:repeat-x;color:white;text-shadow:0 1px 1px black}.sm-dox ul ul a,.sm-dox ul ul a:hover,.sm-dox ul ul a:focus,.sm-dox ul ul a:active{border-left:16px solid transparent}.sm-dox ul ul ul a,.sm-dox ul ul ul a:hover,.sm-dox ul ul ul a:focus,.sm-dox ul ul ul a:active{border-left:24px solid transparent}.sm-dox ul ul ul ul a,.sm-dox ul ul ul ul a:hover,.sm-dox ul ul ul ul a:focus,.sm-dox ul ul ul ul a:active{border-left:32px solid transparent}.sm-dox ul ul ul ul ul a,.sm-dox ul ul ul ul ul a:hover,.sm-dox ul ul ul ul ul a:focus,.sm-dox ul ul ul ul ul a:active{border-left:40px solid transparent}@media(min-width:768px){.sm-dox ul{position:absolute;width:12em}.sm-dox li{float:left}.sm-dox.sm-rtl li{float:right}.sm-dox ul li,.sm-dox.sm-rtl ul li,.sm-dox.sm-vertical li{float:none}.sm-dox a{white-space:nowrap}.sm-dox ul a,.sm-dox.sm-vertical a{white-space:normal}.sm-dox .sm-nowrap>li>a,.sm-dox .sm-nowrap>li>:not(ul) a{white-space:nowrap}.sm-dox{padding:0 10px;background-image:url('tab_b.png');line-height:36px}.sm-dox a span.sub-arrow{top:50%;margin-top:-2px;right:12px;width:0;height:0;border-width:4px;border-style:solid dashed dashed dashed;border-color:#283A5D transparent transparent transparent;background:transparent;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.sm-dox a,.sm-dox a:focus,.sm-dox a:active,.sm-dox a:hover,.sm-dox a.highlighted{padding:0 12px;background-image:url('tab_s.png');background-repeat:no-repeat;background-position:right;-moz-border-radius:0 !important;-webkit-border-radius:0;border-radius:0 !important}.sm-dox a:hover{background-image:url('tab_a.png');background-repeat:repeat-x;color:white;text-shadow:0px 1px 1px rgba(0, 0, 0, 1.0)}.sm-dox a:hover span.sub-arrow{border-color:white transparent transparent transparent}.sm-dox a.has-submenu{padding-right:24px}.sm-dox li{border-top:0}.sm-dox>li>ul:before,.sm-dox>li>ul:after{content:'';position:absolute;top:-18px;left:30px;width:0;height:0;overflow:hidden;border-width:9px;border-style:dashed dashed solid dashed;border-color:transparent transparent #bbb transparent}.sm-dox>li>ul:after{top:-16px;left:31px;border-width:8px;border-color:transparent transparent white transparent}.sm-dox ul{border:1px solid #bbb;padding:5px 0;background:white;-moz-border-radius:5px !important;-webkit-border-radius:5px;border-radius:5px !important;-moz-box-shadow:0 5px 9px rgba(0,0,0,0.2);-webkit-box-shadow:0 5px 9px rgba(0,0,0,0.2);box-shadow:0 5px 9px rgba(0,0,0,0.2)}.sm-dox ul a span.sub-arrow{right:8px;top:50%;margin-top:-5px;border-width:5px;border-color:transparent transparent transparent #555555;border-style:dashed dashed dashed solid}.sm-dox ul a,.sm-dox ul a:hover,.sm-dox ul a:focus,.sm-dox ul a:active,.sm-dox ul a.highlighted{color:#555555;background-image:none;border:0 !important}.sm-dox ul a:hover{background-image:url('tab_a.png');background-repeat:repeat-x;color:white;text-shadow:0px 1px 1px rgba(0, 0, 0, 1.0)}.sm-dox ul a:hover span.sub-arrow{border-color:transparent transparent transparent white}.sm-dox span.scroll-up,.sm-dox span.scroll-down{position:absolute;display:none;visibility:hidden;overflow:hidden;background:white;height:36px}.sm-dox span.scroll-up:hover,.sm-dox span.scroll-down:hover{background:#eee}.sm-dox span.scroll-up:hover span.scroll-up-arrow,.sm-dox span.scroll-up:hover span.scroll-down-arrow{border-color:transparent transparent #d23600 transparent}.sm-dox span.scroll-down:hover span.scroll-down-arrow{border-color:#d23600 transparent transparent transparent}.sm-dox span.scroll-up-arrow,.sm-dox span.scroll-down-arrow{position:absolute;top:0;left:50%;margin-left:-6px;width:0;height:0;overflow:hidden;border-width:6px;border-style:dashed dashed solid dashed;border-color:transparent transparent #555555 transparent}.sm-dox span.scroll-down-arrow{top:8px;border-style:solid dashed dashed dashed;border-color:#555555 transparent transparent transparent}.sm-dox.sm-rtl a.has-submenu{padding-right:12px;padding-left:24px}.sm-dox.sm-rtl a span.sub-arrow{right:auto;left:12px}.sm-dox.sm-rtl.sm-vertical a.has-submenu{padding:10px 20px}.sm-dox.sm-rtl.sm-vertical a span.sub-arrow{right:auto;left:8px;border-style:dashed solid dashed dashed;border-color:transparent #555 transparent transparent}.sm-dox.sm-rtl>li>ul:before{left:auto;right:30px}.sm-dox.sm-rtl>li>ul:after{left:auto;right:31px}.sm-dox.sm-rtl ul a.has-submenu{padding:10px 20px !important}.sm-dox.sm-rtl ul a span.sub-arrow{right:auto;left:8px;border-style:dashed solid dashed dashed;border-color:transparent #555 transparent transparent}.sm-dox.sm-vertical{padding:10px 0;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.sm-dox.sm-vertical a{padding:10px 20px}.sm-dox.sm-vertical a:hover,.sm-dox.sm-vertical a:focus,.sm-dox.sm-vertical a:active,.sm-dox.sm-vertical a.highlighted{background:#fff}.sm-dox.sm-vertical a.disabled{background-image:url('tab_b.png')}.sm-dox.sm-vertical a span.sub-arrow{right:8px;top:50%;margin-top:-5px;border-width:5px;border-style:dashed dashed dashed solid;border-color:transparent transparent transparent #555}.sm-dox.sm-vertical>li>ul:before,.sm-dox.sm-vertical>li>ul:after{display:none}.sm-dox.sm-vertical ul a{padding:10px 20px}.sm-dox.sm-vertical ul a:hover,.sm-dox.sm-vertical ul a:focus,.sm-dox.sm-vertical ul a:active,.sm-dox.sm-vertical ul a.highlighted{background:#eee}.sm-dox.sm-vertical ul a.disabled{background:white}}libzdb-3.4.0/doc/api-docs/database.png000644 000765 000024 00000210030 14647232120 017572 0ustar00haukstaff000000 000000 ‰PNG  IHDR«úA!sRGB®Îé²eXIfMM*bj(1r‡iˆ––Pixelmator Pro 3.6.5   «~žé¼ pHYsgŸÒR ÃiTXtXML:com.adobe.xmp 3 pixelmatorPro 14.5.0 Mac14,12 True com.pixelmatorteam.pixelmator.document-pro-sidecar.binary macOS 60537 2 c9832e1 6FC4FC61-FD63-4463-AED9-E5BC3B563D1D iCloud database 6FC4FC61 3.6.5 2 2 1 1500000/10000 5 1500000/10000 683 1 1305 2024-07-21T18:16:16+02:00 Pixelmator Pro 3.6.5 V#@IDATxìÝ€ÅÇñ½ƒ4¤)‚…"*Š]¬ˆØ{Á‚¢XÁ‚bgïX±`ET¤X  ‚RQŠôÞ;‚t¸÷ úÉå²Éå.›|óxçdvvwæ3É&ÿììlFVVV€ € € €D-P ê’D@@@ ±4¯@@@¼ K{ó¢4 € € €ÄÒ¼@@@ð&@,íÍ‹Ò € € €Kó@@@@À›±´7/J#€ € € @,Ík@@@oÄÒÞ¼( € € €±4¯@@@¼ K{ó¢4 € € €ÄÒ¼@@@ð&@,íÍ‹Ò € € €Kó@@@@À›±´7/J#€ € € @,Ík@@@oÄÒÞ¼( € € €±4¯@@@¼ K{ó¢4 € € €ÄÒ¼@@@ð&@,íÍ‹Ò € € €Kó@@@@À›±´7/J#€ € € @,Ík@@@oÄÒÞ¼( € € €±4¯@@@¼ K{ó¢4 € € €ÄÒ¼@@@ð&@,íÍ‹Ò € € €Kó@@@@À›±´7/J#€ € € @,Ík@@@oÄÒÞ¼( € € €±4¯@@@¼ K{ó¢4 € € €ÄÒ¼@@@ð&@,íÍ‹Ò € € €Kó@@@@À›@¦·â”FˆU`ûÎÀ¨…9kK76mu+¬‡øY x¡@Õ’ÚåÇÖ*èç–PwH{bé´ €‰˜½&ðäÈÀWÓ¶%~gìðƒ@©Âsêîk8¨¼ªK@Œ¬¬¬L2@rG`Ç®@·ážcJèQ¡X ^…@…â¢ü’™;Àl|&°eG`õ¦ÀŒÕÕ›ƒ5Ï,èØ<ðè‰Á@À_ÄÒþê/j‹~X·%py¿ÀˆyÁ:·¨¸ôÐ` ‘á§&PW@ :•£pºÏäÀèEÁÍŸP3ðq»@Ù¢‰ØÛD%@,(Y¶‹i. Ñmúéb™.-ƒ±4@—€bé§F6ï†Ó/åì´‹‡§ ÔŒ§Iêî¡r à_ í6ôs§Hû·©9$V@¿3ê ©ßuÀÔa“ à#biuUEßh²1]#­‡ÎH×.ç›jSQ@ ïtÔ¡R6uðäøE€XÚ/=E=@ÀOšµ[c¼u¾…¡Ý~ê6êŠù$`Ž–:lêàÉð‹±´_zŠz"€€otiÝþJM6Æ@ sÀÔÁS‡P €€/ˆ¥}ÑMTü$0jað>ÒæöW~ª7uEòO x¿ÀbÁƒ§¡<@_Kû¢›¨$øI`Îîëý¸ý•ŸúŒº"€@~ è~:lêa¡ù]öä,@,³%@OK7‹W(îi% #€é.`›æšî´ü @,í‡^¢Ž à+MÛƒÕ-šé«JSY@ ¿ÌaÓBó».ìÈY€X:g#J € € € à –vjF@@@ gbéœ( € € €€S€XÚ©A@@@œˆ¥s6¢ € € €Nbi§i@@@ràž-9Q@@rE`׎¬õÓwn^¾kÛÚ¬[³re›l$‚E2 —Ë(V¹@™ú dfij©t[—X:Ýzœö"€ € ›–íšßëªñ;vn·½³Ë  ì×$óÀ¶EŠWaðrŽZÁÄÒQ1Q@@bص3knß­‹†lÏÚÜ@¡RÅ«È,•Q°PlÛc­Üع=°cCÖ¦¥»¶oÈZ>rÇŠßvTo]¨ÖÅE äuÎÄÒ9±@@bØþoÖ”—6¯› £K×-X¹efñý dd§Å,š³²²6-Ù¥XúŸ™;~³}ü] ;+T‚nФÍéûH:,C@@˜tFÚÒ j]T¸öÅEJT+H ³gâVT§¨kÔAê&u–~ûPÇ©û·ÇØ2±t t"M@@@ 4´[Q™b³ºW-S!±ÉØG®:©›ÔY&œV÷¹–òÔ)@,íÔ  € €¹# ÉÆt´¶uày…5Mtîl”­$^@¥.Ó~Ô}êÄÄïЯ{à5íמ£Þ € €$³€fíÖdcºFš3ÒÉÜMaë¦.SÇ©ûÔ‰a )bi^ € € ˺´n¥j²±\Þ4›ËÓqêDuežìÐ;!–ö_ŸQc@@’\`ýôºtðöWûq$y_…¯ž:NݧNTW†/‘ö¹¼²Óþ% € €¹-°yyð:[ÝGšY»s›6¶§ŽS÷ig¦+óh¯¾Ú ±´¯º‹Ê"€ € àmkƒƒ3Kqƒb?ôV6u4Ýgº2›"iM,ÖÝOã@@H„ÀέÁXº`¡Dl›mæ‘€é>Ó•y´K_í†XÚWÝEe@@@’@€X: :* € € €øJ€XÚWÝEe@@@’@€X: :* € € €øJ€XÚWÝEe@@@’@€X: :* € € €øJ€XÚWÝEe@@@’@€X: :* € € €øJ€XÚWÝEe@@@’@€X: :* € € €øJ€XÚWÝEe@@@’@€X: :* € € €øJ€XÚWÝEe@@@’@€X: :* € € €øJ€XÚWÝEe@@@’@€X: :* € € €øJ€XÚWÝEe@@@’@€X: :* € € €øJ€XÚWÝEe@@@’@€X: :* € € €øJ€XÚWÝEe@@@’@€X: :* € € €øJ ÓWµ¥² €é(°}Û¶ ¿ùýÀÙÿµzå²m[6/UºF­z5j×; vý“Ϲ¤xÉRéè’{mÎÊÊ?êÇmÛ¶j“õmR¡R•ÜÛ¶·-M8vÝš•Ö)R´˜:½b•jÊä墉£Ú´i£öX¯áûUÞ?/w;@ a£¾Û¾c»J–/[¡Ùa-"¯²héÂ)3þ2eŽ<´YÅ •lùIO\²b±}6Q¬H±†õW(·_Ø¥Êܾ}ûO£ܹk§Òõj5¨uÀAÙ•$ßÄÒ¾è&*‰¤¯Àðo>µûÝ+–.t¬^¹táœéƒyï>ß­ÃOŸÖö gÒž¶lÞt×§šU½_«3Î÷´z.îq×UÁžÍéQ¬xÉcN9ç–žÉ÷ úž«Ïضu³êûЋŸzÞe9Uœå ××ßsùºõkµ×c›µúúýÝÙWaį?ÜöÐ fyß×ÖêL[¶sN£'Œ²O#$¬^«iãæíκäŒÏq›·hÎ…7m2¾³Ç7tqà©¿ãí¯þ¢¶ €@ ìܹóñNWt»õ"W í"P\ÝýÎ+o»¨Õ¦ƒ§yDûówÜØVÿžêÜ>B±ä_´yÓÆõ¹â¤ßõÿ(ùkK @ ­æ/šÛïÛ¾—ÝÚ¶ý=—ëƒ,­Úžnå¼tºõ8íEü! QÇt¼ä§Á_Øê–,]öÐ&ÇÔmxDíz‡jTíÒsF~?hÞÌ)¦ÀŸc~ºKûGz~jË“˜õ÷Ÿ#¿ üŠUª‡.MªœB…‹T¨TÕY%½$Ö¬\¶}÷@t“¯ˆúéûnlиÙÕw–$$N `Á‚ûWsݲuóÊÕ+œûUD]¹bÕ]žuf’N%béTêMÚ‚¤ŽÀ°¯ú:éæÇŸÞõ…ËV¨èlaû{ºë´ä ݪ˜JùþîÛ¨YËvWwt–!€.B¾ïéw·mÝ¢Âu="šU]F?š¼Ñÿ7×^vìØ±xÞ¬YS'¾òøŠ«µT㫟ì|ýkýFºJòH@ýüc茰_½vÕäi>ùêcv4x¯O^½ëÆû"\Av;dúE€1Þ~é)ꉤ‘€&{ë™mƒo¸§Ç3ïvÒZZ @Öí®zè¥32ö|œ½óÜC ¨³nÑ'$yæEמweýÛ¿F­èWÌã’™™™Öipò¹—ôüü— ÷œµž<~Ô¦ò¸&ìPÌÜêè“ûõÜüð£ÍRM66tÄ7¡%ÉI béÔèGZ¤”À€^×Üb¦IG}Ò•ÈÈÈÈ®…-O=÷ìKÚ›¥ÿY7e‚ûd¦]qó¦'ÿuôðÁË/°™Ñ'–/Y8oæß»víŠ~•ܶu묩þ³n§µT~þ¬i«–/ÑÀæ(WÔ9[íHãÞ§Ož°aýº(×òZlÉ‚9¿þøõߎÓte^×"ì^ª×¬s\ë¶vѼ™SmÚ•ˆ¹Óãi©«¬ùñz¾Úî[’ôíõüà~ïk ÇÚæú»õÃWß~þÞÔ?Ƭ^±D™šAºÞ¡GžtöÅm¯ºå¿{Ù|Óy{î¶òìûƒ )úÑ«OLó“.QÞ±}›JîÀAÞüæ.OV®v€sEgzÜ/ßúøÍé“Ç/[4Ï䫞Ú××vªY÷`gIgZ¿ô~ù1|6ƒ´Í¢Úõ]sG·V­Ï7?C<ÔáÂ…sg¬_½çvS+—-º¦õa*Ù´å)»>'¢.×í™Zöº;qªØ¤ßG½ýÜC3§ü¡_+Ìö5 ZÍ:í®¹íü«nuýÒ±uK.P˜½Dø[«nC»tÁœé‡q”}ª„×N·ëzj©]‹Dò¬Z½öëï>¢QƒÃr}òtKÚÕD/@Ûæ6¬·i)&@,bJs@ß ,ž?{ýÚU¦GŸxVÃ#s¸¨J6hÜôÅO†íÚ}ÇNׄU çÎÔLàŠ3].Š Gý0è÷‘?´¿ûñ ¯¿CƒœmÕ+–Ι¼¿hƒÓÔV_ÚË.RB×fkž3ýûwã?WÜrŸ]¤óÕf-åLžð›®â^»j¹]ªÄ’³õO1yÏϽ““†¦¿ûB7…ß6Ú7몞ƒ>ySÁüµwéì‹t•¯na­±ÊŠ·_yìÎÇ_ÿܰ ݇ù•϶S[—-¿ß}ϼ«Ë†çΘ¬2ÿ1Æ–t%®êØU×Z› ‰u3Ò&ÇœtïÿÞ|ôöKM±©ÇÔ9dÏÕtšÄKáŸÉ×)_Å«EŠ5OK–.söÅ×—.Sþá[.Ô0ì;w íÿá¥7Þc–¾þ¿Î欵.]VHÜâÄ3L¾þߺíŒÉ>èÙ]iWè^/¦;]½þDg3æ\—m¿üéç5ÛŠÆ{¼Õ_g¤§þ1Z{é×û•3/¼VgÅml"z »Ššš[Å9s”^¿fÕòÅó‡}ýÙ¤ßGÚE×ßõ˜¢s§çJKm•H$N`Óæ-?üôÛ ¡ÃÇL˜”¸½°e"ü»iã—ß~Z`ý†uK–/6êû “Æ™¥eJ—}ç¹Ot‚ÐÂ䤆]›ýH+@ÔX¶x¾mLå8bé>o=c¶£AÝ×ßý¸Ý¦MœxÖ…Á»Xé§œñ£~°ùÎÄuw>ji“¯oEššËÄÒëö^×í\Eéª5j_Óéa׌\G½oºbB»Ê7Ÿ½«™ÀÌÓÎOö²´- Àø#Zh(µr¾ýì=K+<žðÛ0Sæ¼+:8i“Ùöª[?yói3íÙÄÑ#bˆ¥gO›4öç¡fkg]|½36™ÅŠ—P…¯9½‘ž¯¸þmxh,í‰ÂlÖü7sÊ­íŽuæ„M×9äðs/¿É.Š­Ós¥¥¶$! ë Æý1yàáßÿüÛæÍ[rÜ…ëÝ—cy ½ÀÊÕ+®¿ç²ËW­´ÿ—oiPgß(9®Bß Kû®Ë¨0 âE‹·-,œÓÕ¼¶dhÂÞ'©Õít>9´€rN8óKëäíÚU+ÊíWÉYLAxë öÝ×Ä.:èà=§”wîØ®[.)¤´‹L⬋®Ë,TÈ•Y¾bårûU6’mX¿Ö.5eϼhšèÛ5µ-ÓüøÓL,=ÖTSÏù³§Ù¥'s±MÛD…JUº½ÜG§q•ã ãmP%Ͻôưåk×?´Fíú çL×RM¦ZÆEèê‘sN?ÿª;}E§ým1[gOn×Òvbn©­‰Ü˜¿pÉ ¡#¾ún„uG¿åmÛ·oÙºUå5Ø{÷C)]CøüÏÞGôT0¿yËÖí;vdéw£]»‚÷ªÓ˜Ý·¬Ó"=즜éÈ™vi°jÙ?ìæ5ß^pã{÷µ÷¿Á5ÃîTù®-»÷³÷¹-æ¿wapû¶@ðÉîGhÎÞ%Áÿª>%KèH¾ï½é\š&é»vêLuš46m›I,¶]OÃ@$Ðf[³¥ ç…žµK#$t…ðÒ…sMÝû*»’Î9« ºbér*9ã4»‘ «Ø´¾XÛ´M¸æ·ùš¸ËÄÒ»öÞšK‹lªùÉz¿ô˜-ìLèÒhûT'«žKæÏ69 ømrŒ]êL´:ã|çS¯éÅÁ™Ï‚UÛ9M·É´ehbé…³ÃÄÒž(ì6•ÐÕìeËWt昴~j9°ÎÁÚéáGµ:ê„ÖÎ1wz®´ÔYÒñ lÚ´ù›~8dØŸS¼®rÜþÝÝö Kɱ¤)`"CýU¹'žÜÖÒ`VpäE–náåÖ(&Ì‚;«k©ÀAù®Q°@Œ!½½x$´ -›ŸàÊÔÏ›·lÒ)ë…Kæ›E+V-?óÊz¿ðé9§Æu(v툧I%@,TÝAe@¥Ê:cé¹QÆÒËÍ×MªÄW¦ü~ûUªºbÉÂíÛ‚g¥ô¨Tµ†I„þUa›©{qÖü8ûT‰°±œ³@0íu%æ-œsÅmí¦Ì^ϯøžë)biQ*=%–N¥Þ¤- €@*P»¾m†nÈlÓ‘·_r‚¹KS£¦-_ýâÝ#Ú–/íÎm¦IhÞ/›£{PÙ´Iè>X®œ0O]ßXw—ÈqEû=Uó‰­[íaäª6o¾êÆW¦2v¾î0u‹/ËFÔtǯ5‰ž"¾Ê×¶V:BC;Ý®a-m3rKƒ5à‘{Š[4i¬ÞyãàGüã_S÷üêÍN^ìÞå覇ÛRï¸ÝÝ¡ IÃËàS=´ÁàŸ`jOzo¦;n,X°@Å û~싦&é\fö'[¶ç»@…²ûÍÙýËàŠÕûîƒ]­Ö¬[m•/[Á¦£O(ÒþúýaO©½a÷í§ÌøKu„SÜÑo™’I(@,„B•@´8âèlû5/W»kn³O³KÌ›ù·½Ý±&S±ýªT³…m¤dslÂF¤ÊÙÿ€Ú6?ÏC® ±ÍÜc <ºc×ç#ïZÆÁ‡7W;vz}6óŸEÞN4K­á*Ç¡+®Ü}I¶òóÐY[aezêt»¢_ZêluʧuÙí…瞦sæ/RDýÕПV­Ù7Ý@vÍ/R¸pñbQü–Ýúä§€ ‰—­X’c³40Û–©°wÐ͉2Q¶L¹£›÷ÝÏߪüöíÛ5ð»²ãÊ (7B1_Kû¢›¨$ F É*íÀŠ% ÔæYS'Žúá«cO9'rû|ôº-дå)JWªZ½p‘bÛ¶nVÚ†Ù¶ŒMÌú{ß}žó+¬Q«ž‰¥u…pÃ#[غENT¯UÏЧ·mÝv’¶þ¼¶h÷Ù˜ãN;ï𣲽h<»U¯Y×,Òm¨tšÎ5šÔ,Òyõ¹3¦˜t~ÚúÇÜé¾k©mrZ%jXý®›¯îtÃ#Çþ1àÛGüú{„ ˜Ã¾\ÓŠ‹ÆZê{/óÙ´yÓè £Zé#ÇŽ0+–*QªtÈ`%»ÍG4jjbi•ÔuÔ9–§€O ø´ÞT@ …t;hÛ:MÇ᳊͟5mÐ'ošòÅJ”:´Ið{’¾IW;pÏœ7?~Ý×nÍ•øñ«OMNÙ •Š—,åZš7Oí´^ºmõ¿‚—|‡>¾êÓëÒVuõï–ó÷| ´kidêÈ¢Ëª_íqÏçï¼ Î[v‡–Ì.§z­=±ô¿ÖýihØbãGý¸~Íž1êÕ¬¶LžeÆÜé¾kiž‘&áŽ4”£ÕÑM_x¼Ëð/ßérÛõõëÔLÂJR¥¤8µÕ¶>ö{צC§ŒŸ<ý/“òq§Çó‹LG¾‰X:Ô:Urˆ¥S¥'i Bí®îXjïlÞÓ'ý~×§fwQñߎëxÑñæ.ʸ¹Ë“öþÌšî ;ÿž8fÒø_Cy¦Ož0ež٭ξ¤}h¼É±³poÚøÏ—¼ºÓM7ôz¶«æÇÒ¿Òåö\¿×¸iË"E÷Ü<ìË÷{†®¥sõæ´¼Õªµ«€¹Ô•ézzpãf3 ™Ì¾o‡|>àÃ×LbÅK†½5—k›‰~[§û±¥‰–Lþí—-SúŠ ÎþB¿½ýüåíÎ*[æ?¿…9gáJþ¶PÄ ´jqrñ½·Zü¤ÿûïôy#ìî4[Ø7žeyR›Ž!Q¢xI»Ö潓JØ)#@,2]IC@ÔÐ)âÛ~Á¶gâèíÏi:zø`çiÛukV ýòÃN—œhÏ‹Þâ„ó®ì`׺úö‡l´ùÐÍí9ÛEJhÖî.×îùÚ¤8ðâöw9—æeúÔó.¯ß¨©Ùã‡={ü<¤¿sﺛô÷^´nõ “yÆט„îV}Qû;Mú¯q¿<ûÀÍšÞÆ<ÕßßGþðÎs™§º¶.É6é"{gS[µ|Éœé“mù°‰ÊÕh{å-fÑï#¿®ë-Ñí,ùZ{í)ñó¯îyâ.犉KÇÖé~liâ }·åukÝw{ûaýÞyþ±ÎÇ·hR €™Iû?óiû®QT8Š)zi›«ìïy¼ã«½_X¿a½Íùgã?ßýôí¹×œb¦ûV~•ŠU[Ÿx¶-C¢dñ}?îdwö‚Åó~?2ò?Í ÃÞY%ϸ^:ϨÙ €€Öí®Z4wæ=»›utùtçkÏÔØm]”«¹º!°½‘)P¹Ú÷=ýŽsHžÈKn¸ûýWW5+—Ý~Q«ã[Ÿ_¿Q“Œ¦þ1fìÏCm®8°ÌÞ󽪘KE5¿ë¿zóyºR:kËæ»ÞÜî¸ÓÏkиY©Òeu)òˆÁ_˜[Rko'žu‘ó–Ñ—ÝÔyÐÇoš¹Ç4Ê}òø_uËå²ûUš1yÂÈï4ê;8qÁ‚™w=¾ï\wãfÇí­uÖ½WŸ! Mxvy‡.{3Ýÿ½¦ÓÃCú½¿ñŸuZ0ð£×§ÿõ{“cO®Q»¾n(ý׸‘“~iVþqÃÝî•óãyÌî»–æ‡nRï³P¡B§¶:ZÿV­^;hèˆòeË$uu©\Þ ¢† €@š è$ó9—Þðñð隊,##üVÕêµz¼Ùÿþgß ¤¥V´XñG^éÓù©·í`o'¥Î¦v{åÓŽ]ŸËÌüO<™YhÏEÂEö^bç\Ë™ÖåÄöŠb^¶•Ô~ÅBÓE÷^êlitú[ƒÆÕnÐØæØ„æE»¦S·×ú mcýCìõÕï-N ž±·åMâàÃzùÓ]‡3_¤·>ø¬f8wf*¡òÍ?í½!qô‰®UÌÓæ­Z¿ýõøz‡á\akÎb&í¢ÈÜ{…vhÉ(sbëtm<†–j-ûj‰²zC|ÐYèaŸépU'{‹,W54­Ý)ǵþ¡ïoW^pk‘yjNÅB¡¡åëÕ>Ø~²Ìœ;ýí>{n6QÈã!®hQ÷á:t_ää£@F4³äcýØ5 à; ¼8:pÁ!öGú®îÉ[áMÿnœ?ëïy3§êŸÎ0׬{ˆÎÓÔ Q©2墩´.´Öí¯t‡-]$\²T™ƒ9¬ÎÁ‡pPû]'šäA]¬fj¶æôÞ±}{ŪÕ5 ý˜“Î{Ë+g}4?™Öš>i¼>ÖµŠnòT³îÁÎδ¦ø^8gÆ?ëV—(UF’ÅŠ—p. ›ÖfÍ›%À™S'®[µâÀ:ë·®ÄNžÓѡՎ­ÓýØÒжû4çí /¦îhèq²O[@µÿ#0û“- ¿Ù^©Eæþ§þÏ‚|}¢>ÿ4úG ^¶réª5+5–»’n1_¥Æ)Ǿ_ùŠùZµdÜù’¶­½£ÆY…ºŒ¶‡é bé0(d!€ñKǣǺ ¶ÄÒ)ÖõÉK§r¢›C,Y8ü¹Èë°@@@t –NçÞ§í € € €±KÇ¢Æ: € € €é,@,νOÛ@@@b –ŽEu@@@ÒY€X:{Ÿ¶#€ € €Ä"@,‹ë € € €¤³±t:÷>mG@@ˆE€X:5ÖA@@Hgbétî}ÚŽ € € ‹±t,j¬ƒ € € ÎÄÒéÜû´@@@ béXÔX@@@ ˆ¥Ó¹÷i; € € €@,ÄÒ±¨± € € €@: K§sïÓv@@@Xˆ¥cQc@@@t –NçÞ§í € € €±KÇ¢Æ: € € €é,@,νOÛ@@@b –ŽEu@@@ÒY€X:{Ÿ¶#€ € €Ä"@,‹ë € € €¤³±t:÷>mG@@ˆE€X:5ÖA@@‹dhéÎíа(ÙL÷™®LöºæGýˆ¥óC}"€ € Ò…Ëcé²Rº•)Þ8Ó}¦+S¼©15X:&6VB@@ìŠU›–îÊÊ"œÎž)‰—¨ãÔ}ª éÊ$®i¾UX:ßèÙ1 € €©*P¦~Á‚ÅÛ7dmZŒÇxøN@§îS'ª+}Wù¼©0±tÞ8³@@ÒH @fÆ~M2Õàå#w¤Q³S¨©¦ãÔ‰êÊjVn6…X:75Ù € €ÛÉ(øgæÎõ3§}ö¢P—©ãÔ}êDŸU=«K,‡Øì @@´(^¥@õÖ…ÔÜù¶m^ÎHoßt¼:K]¦êªûÔ‰¾©wžWš<'g‡ € €¤‡@­‹‹”mXp×¶ÀÌ÷·pvÚ}®nRg©ËÔqê>_Ô9¿*I,_òì@@(P0£a§b&œžûÙ¶9}·þ»x'3{'a¯«SÔ5ê u“ ¤Õqê¾$¬jòT)8@@@ …Jd4îRlnß­‹†l×%¸úW¨TFñª2Ke ç‘Ï;·o®Û_iÖnUE×Hkh·ÎHHçØ1ÄÒ9Q@@bPTvÐeE«žTx~ÿ­«ÆïP̶~ÃÎØ7Çš‰Ðí¯4k·&ãé(‰¥£„¢ € €Ä. íàÅvíÈZ?}§f·Ú¶6kçÖà‰Pù+P°HFárÅ*Ð}¤¹ý•§¾ –öÄEa@@ˆ]@ÑZ¹†™åƾÖD I˜{,I:‚j € € €øF€XÚ7]EE@@@’D€X:I:‚j € € €øF€XÚ7]EE@@@’D€X:I:‚j € € €øF€XÚ7]EE@@@’D€X:I:‚j €@ê/lË–©Ó"Z‚ä€9lšChìŽ] €q KÇ Èê €€[ jÉ`ÎêMî|ž#€D0‡MsPŒE €@’K'IGP HÚåƒm™±:••:¢% €@BtÀÔaSsMè¾Ø8 +ÄÒ¹ÂÈF@}ÇÖ”*X½yÏ÷Â} H!€d#0}u𰩃§¡<@_Kû¢›¨$øI PÁÀ9õƒî3ÙOÕ¦® €@> ô™ܹž:„ò@|!@,í‹n¢’ à3ûZ2 F/ þã Y@‡Ê1‹ƒ‡M¤©À–ÝGZ·¿Ò¬ÝzèD´†v?z"g¤Óôõ@³ðµ±´¯»Ê#€€?f¯ <92ðÕôÀ†mþ¨0µD- Û_iÖnM6Æ5Ò‰¦fû béÁ²Y@À-°mgà×…9kK76mw/åy‚vlݼlƸ*õše)– ]°Yˆ^@SHT-¨]>xin½%@ ˆ¥“°S¨ €@® ¼ýq¿—Þú¨ÓW´¿¼]®m” !€ €@Ú 0[bÚ¿@RZ`ý?Õ>ó7¥JãbX¿!øòà €@ ÄÒ1 ±  €¤‚ÀCO¼’ Í   €ù!@,êì@ò[àÏ)Ó‡«¿ù]ö àKbi_v•F@8 ¦-˜¿qnŠÕ@ÒP€X: ;&#€ î[·n2l¤ôWétç ý €Þˆ¥½›± €ø\àÇ_Foüw“¡¿Jû¼5T@ ˆ¥ó]"€ €@þ <ÜVÀ™¶™$@ˆ,@,Ù‡¥ € jËW®=þOÛ*¥•cŸ’@@ béh”(ƒ €©#0hèð¬¬,Û¥•cŸ’@@ béh”(ƒ €©#0hˆ;rÍIÖÒ@ÄK'Æ•­"€ €@R Lœ¹~ýúyV íhõêÕþù§ê\¹rå† æKå¿úê+ÊtìêÔ©Ó›o¾9a„SO=õ‚ .ȗʰSrQ€OêØ0óå“:¶ªF³–¿>j·nÝzï½÷êo—.]j×®Í19š.¦ A,þPÀ \v/\}!6l˜Z“§5mÖ¬™q›6mZžíø¯¿þÊ®³l~‰%®¹æý,’gµÒŽFm*pÞyçåå~s}_+W®¼á† ?¾F¿VÜu×]ëׯÏõý¦À¿ùæó¸ä’Kò¥9úÕC?å¨/¿ü²*ðå—_*]ºtéÅ‹çz}ž}­÷¡ÇŸ§¿¹¾e6èwD¼6ø¤ŽùU‘/ŸÔ1×6ÇýõQûøãë ¼ÿþûoÙ²EMKè19G: à#ðßAÍw,þ&•Àƒ>¨3ÏsæÌÉ®VS¦L9餓T,»é?räHŠÔCA”/Ú«s×½{÷ÖIÔ±cÇú¢ÂyYÉȽ9{öì&MšôêÕk×®]akµcÇŽçŸþàƒž?~Øi’©hÙ¼)æÎ›ùĵÔù4A¯(ç.NP±ÙŸþÙ|uÓLΉõ“S‡¥‰ûöí›h1¶@î ðIíòLÄÑC»HÂO·8[çê.öž>úè£Z«páÂíÛ·w®Î1Ù©A숥³“I–|]ªÓ•¦6;vÔÅÙÕìÀÔXV³44–Öœ½·ÝvÛ±Ç[ªT)snÚ´©" 3‘¯sƒú«¯³z Êñ ù؞̟ԮaŽ-u•w=þ0kVÔÅJúáX7"Ùo¿ý4G£ú~ár˜è¿_ýúë¯Ã‡×^Úµk§»êÉ1ÙÂSÂè>É,ðî»ïšnS ¬80rU53Ù‡»š¤×Yòµ×^ {â®P¡BºŒW·@°…íì¾úÚv Õú,´å•0oêî\üñ‡B£Ð™¦²p–WzçÎÚ~Øé—;î¸Ðfê+»â´Ð-+G'uõ‘¦m~úé§a ˜)²³›4¡2ö©Õ¹Ñ”"Ûóå“:†—e4-Õf³û¨õt˜Õvô¨só®ß‹õû¯³ ^¿_iö³AMµãÜŽM'â˜l7NàžXÉÞ‰ŠÌaîÄOŒ­®fôŽÙˆfÍÕIã3Ï<Ó9áNÛ-Û/Çö`­YÍš7o®)lŽîË¥³Ávûág¦õR„¬`I_”!–¦ª¶å•8ÿüóíÖtƒeÝØFGÊ×yB}PÙò:×­ì¶¼ö®&8ƒ„›nºI…u*^™ºVܔԷzª‡‰Ìm%—Œ&Z&šXZ{â5uVPm[í©nZËSùì>àíÞ£Lè‡Û/JÔ¬YÓùº2‹œ±´~)·_ô㎮×ÍÔS¦°fŸ2»ŽÐ›šÅœjÖ*º×z”UuÓKÂÜI[ÐÏIzm\vÙešnÀþ¸£NØUì‹'ÊWx o¢èeL­¢|S\zé¥z [ýÕ{GOõRÑFl%±´W»»‹ö›´†ß[agÂÜ—EÔ©ig~<éÜŠ—â©ë&§@n½6ø¤Žò áØ®Wˆ=Øæå'µ×Wf”-ÕfÃ~Ôz=ÌNš4É~Jê»Ð9眣,ýækºæl‚§ïWZÑ~FdwoÎD“&€ßˆ¥“½5êÆ15&6†ºêf­6zÑo+aO‡*èÕ)e³qç—cE,S¤q§f‘>­úèÂVÆ~ø)_að/¿übi&m=5•×Ð_[þ믿6™ÌùÆoØ|ÕÁFìW^y¥Í·—¼*Âqž0|ê©§ÌvTOݫ֔ÏnF[Iû 29ÆÒ®!ô¦ú«!î¦^ëæµ|Øx eBÓeÛÁ¬«1ZQ¯+Ý”Òþ¢¡FÙXZ‹l/˜)¸ÍŽ4ªß\ `œ?£„íM}±°bºG”µuÓ„¥f úiiòäÉvÑôéÓuY¤±ß6ßV[‹¢y…{}Å ãéMa/È·/~5ÍVÒK{•±‘L”‡ ÇÈìj@IDATŒ° XagÂ΂£«?œùñ¤s+^Ч¬›œ¹õÚà“ÚÓA)ì±]¯{°µ+¯Ÿn1”¼¾2£oiØZ¯‡Yy6ÇÌsÏ=W?¾ÛÚÚÉ557­FŒ›|¯ß¯ôj6®6»eW"Çd×.xŠ€¯ˆ¥“½ûì¯ö”§ëŠs lÛ¶mèŠ_|±Yª+EÍRçç‚U×*:ÛlÊ¿÷Þ{v‘ýðS¢ em¾öî\º–Ûäk0’nuk6b£,»ŠÂ$sÊQñ¿Ù”®ê´ç·]ô¡bcuã5‰þ:dl,­ö*fv>tO]ý¾àŒ9ã¼ÖÍkù°ð¶¢Lè2*Ó-[¶t1ûþûïÍ"ýµ½¬ØÉdêôµsöf³;]5m–ê"^[°½©XÝ”ÔPaû®’cB—5j<¹Ù‚î'ç*¯«»u¦Ú,7nœYêé®U¼¾‰¼Êx}SDKÇ ãµ¥ÂÑí¾ ¯ý®ìêýxg è·6çGW1OOs+^ò´S ûB ·^|Rû÷“ÚÓ ÕÓá7ô£6†Ã¬=€8ÐUUûªÓ|œZäõû•V±óe8Tuí%Çd×.xŠ€¯˜{Ì|mKÞ¿ºƒ´©œ½±§º*È4åí%1ÎÕ5Ô9–±óÛin<û-ʬuÊ)§èºw×>úè#“£1Æv¬„-sÅW˜´™Ëæ‡&ì;B£Ì•·¡e"ä¨Úf~;Í]g²åõÕ¤aÆæiè›"šW¸Ý”Q¾‰¼Ê$èML”-•ÉŠ+ ‘„âSZ!´¹ ó‡=θÊód°Ç%>©}ýIãk)ÎÃo ‡YûµJ³“hž³†?þø£‚s[6SÕxý~¥Måx@VŽÉNsÒ„ ¸' -ANþ è¬fN _+×­[gÖÒ7ÝÐØFí²3H/Z´Há«3ÂÑ5Ïö+`O)kº/›iGy¤M›„¢\TèbËë7]³H’;ëÚuI§æ…ÖS¶Ò_}N˜Eö÷W[R -ÖÙe:e²«•BкuëjÊ1Íl¬+SÌkÝÄs/gW±óõÅQ}©˜úÑžit®¥Óìíï̱]¯«ŽCÃT½ÎMaM¸­ÙSÇÎ-˜´-iö› ¡Å²ËÑr³Èž w•Ô›Bç«•i~ôq.æî,å›È«L‚ÞñÈDÙRg6ßÕkÎAN4¥uѵ¹  ¾çÙ+Û]exŠ@R ðImº#%?©¯´8¿1fõ³¯¢¥Ù¶õK®—Öw†N8A_–4í¶sæmûQå÷+µËÆÒÎYiœí5iŽÉ¡&ä `ˆ¥-E’&lä #š*jRnSLײڣv­ZµÂ®«y¿t VP¤ÁšÛyš.ìY£È§£YÅÆ'ºÇ¬sw¡ÕSH©ÌÈŸ[¡kE™“Ç2ª•ùiÀY=ajè»Qly­›†u™ucèe»S¯ Û/ú8»®s29ÐËR×W›’º9ì*&S/E®AÙw„¶©kòs< ¤q á´qýr!óyíŒñö{‰­m4¯p[X‰hÊÇ cñÃ~muVÀS:dÌ¡FµÒ™;Ó[h%õ½Í¼Zô=Ï-FÉ#`K|Rçb§äxPÊÝï0ÑÔ<ÎÃoŽ- ýÒUF5hÐ UOŸ_ì~(­_±uµÆfÛ€^¿_i#+W®4­7Ô䛿“¤p 0ÆÛ’tOm¬bનi't2Yó%^g›Maç/—®Õu«-“ã:h¦,vŽü4šU4H䨥úÌPZ·Ž09aO~ÚÂ^y,£³p:¥ïzÔ©S'4VC¼ÖÍky¯VaËÛAõöõã*f¯°2ù z5Ö«LvOM×g·Ô¾#T š7…™*\o ÝMZ«äÈe[äzGhÝh^áÎjGS>™üzSÄ/cÎ6‹ÈuQ€Mi+¯V\‹xŠ@r ØãR4%>©£ìÄ×ÚNvÇ¥h¿QVÃY,ÎÃoŽ- mŽŽ‡ýúõ{ÿý÷:ê(ç8¬¿ÿþ[“Ú(ö¶wñðúýJíâ˜ìì\ÒÄ&ÀyéØÜòn-Íx¬ëQµ?ÈÕTÉö;l 켎ÿ£U«V5Åì0žÐµtïeêÝYÍÐUâÉÑÐ#³ºnê`g§ »Aýª|{fO³U…-[fÊØ†x­›½N//{Ùö£ýUÛÖß$\çáÕ(‡4á´Æ~Gþ–c;ݵMóT›ÒÀx £ÐSÍö⻢Fk?Þ<Õ°s%´º&S";.ûu$ò{Íî"ÎD 2Ö'×߉–±ãº5êDq²ó{¡“ÑÎ#ax‚³õ£y•µ=¼~çNBËëµn^ËÛÅ“Pøà³®~m1gAíO6Ìvn\¿ãØæäý›"J™½)ò@FgW4K™0™¢ù5Mýáâg¯‘F ßø¤6]òŸÔq~½fõ«±ùd<ûì³]/ò¦M›jŒ·É4¿SÛY})Šæû•Öµ“nD8 «Çd>Op K;5’4ݵkW¼Rå4Ë”î6ôꫯº*ª›Ç´k×Ά šZçM™k¯½Ö$tEëØªhç7Þ0K‡»¶™ §:ú7jÔH×U:ö"»¯wß}wìØ±zªßJÍ0uýŽ`~7Õ©õ×_Ý–TB‡™JW›óðÎ¥‘?T2Ùdœ•÷Z7¯åûŠ9­—œYW¿h˜9½ÍS½ÌôS޹ÝnßVR/`;8Í,Õ0uû <ÿüóí*6áêM}c¸òÊ+ÍRýH¤aÞö"4»Šîq­Q—f¼æ§ùßÿþg]xá…f„¹¦‘·×D˜Eú±F‘¹½c–^«vk Mx•IЛ"odÔ)ÓœN …ÕóâÑmó"_Vº.9䣟ÔÂOùO꘿æ•éõ0«yUÌ–nU: ÌNi&”ñúýJU:þøãMŲ; k)ÇdCÄ_²Ð×GÉ/ðÉ'Ÿ8¯-Ô Ø×_½~’|öÙguh… ¶ƒ9棶-R`cNM«€ÆÿhPô‚ t-«NÊÙË~µÚòv”¸¶o3mÂþªpÝf6kÖÌì]#‘l¦M˜[=é;±Íùé§Ÿlm5TIWþhÅ_ýõ–[n±ù/¼ð‚-ÿôÓOÛü»ï¾[ç«u¬jbïà¥ÛbÙÂvUq©ŒN¼ë‡-µ•TÛMá<±w~Rel £Ix­›×òúT6¤ºh4õ [Fñ­¹¦]›ÒçO>ù¤~ÍÑ=Ã]3xk¾]]÷ö0ûÕŠºÔYS§èG÷O?ýT«›|%4–Ì–Ï®7U@¿ÅØ;ºi]>óÌ3õ]V¯œ{ï½Wѵ Ãt¶NzÛm*áüG1¼uëìºboŸkƒzYÚUì‹'ÊWx o"¯2žÞhx[¶l©Qñú¹JM³•Ô{жԫŒÝHô‡ u·©Œ¦K°ûu&TCS cÇŽÎüxÒϾÖûÐãÏÓßx6º))»¯ >©Í›×_ŸÔ^_ØÑ~Ã~Ôz=ÌÚÛ7ê›^ÿþýõi¥¡X#GŽìÖ­›¾T_«L+¼~¿ÒZæL»†z麛°‰8&‡Ý™øT àÓz§aµ{÷îm£bóqåú«€íÖ[oÕuÈ.œ¾}ûF¸ZC.ÏØUbørì5ÒоìIHWÌS™´õQBÁpÛ¶mÖT¦.‚5Ѳ]E¿ã: /_¾\‹l%m,­ÌDËÄK{­›×òa?൯¶3—8Í5ŒB—4›&°›¾1á,oÒ7®°Ö6‰°½iilÅÏ¡Ûqæ(8·_2ì–õQTé,æL+övþT¤µì‹'q±´WOo ºt6°C‡j”}§;ci¯2v#ÑÇÒê5SM–c{Ä™PõLmÜ™O:wã¥xjºÉ&ë¯ >©G›NæOj¯¯Éè¿a?j½f5êJ7´’J8Ϭè©ÎC8›àéû•V¼é¦›ÌÆu}“s;6ˆc²Ý8 R@€1ÞÎTR§urI³%i†­°÷eUÈ¡y{öìiÏÖÚÆèGM‰ {O)-Rôâ WìÙ<3ªÜnÄ$ÂfÚUÂNvÃÔMAì‰q»Í7¦±¸ qmŽú!@7„P¾kSÊ×H¦výR ÓÑö<§ÝŽ­¤s#y&ãÜ©­Rä„§ºiSžÊÛYè\t‘«ºT×6k`˜‚1{]«äë2EAvÔ½3ØÖÈÍm¯ÿ·Ô+G—@kšúæÍ›ÛL“Û›fQ•*U´#Åóa§ WÓàéç ;†ÍnYïv~衇BßJú¹JÛ|ðÁma%ì‹'ÊW¸-¶ßÃfz•Që¢SœuÖY—_~¹«±a+³LØF…ÍT¯™Ià4ºÄÎ kµõ™ªã˜žª&fÞu»ˆ¾à“ÚõÆ×Á*É?©½¾®¢?ü†ý¨õz˜ÕìܺþÙ^§­Úê8iꬠõÕH£±œMðôýJ+žqÆfu3IsSJsLvðPàÐÓÐ\r’Y`Æ «F&é‹©.?Öìv2Æìj®YštîKwk^¨Ê•+k”¸‘Otg·©ÜÊ×U‘ uô•Z§ûÔ]©‰Ç옥нèrñÉ“'kB)}>iQÏ®Õ*i¡5j„nÊ™“„2¶z^ëæµ¼ÝQü ÝJJìöWŒ;ï¼óÅ_Ôf5vZѵkûêqõ£^êJ[SÔá|u޽©ƒ˜.ÀÖ;Býäß°aC½)ô ±ßc\{·Ou™·ê`¦IÓëDï]‰ãZvõD$<ɨÑ¿)t­6®É`·ë»`äÊ'TFÃû¯»î:Uàå—_¾í¶Ûœ5Ñ«EåèõóüóÏ;Å“~îõ÷{:àšKλ»ÃžáîñluSI q¯ >©Sþ“:úÃoØ·Œ§Ã¬®ÝÓ‡¦fŸÕ=À”Ö'¦¾2µhÑ"ôœ„ÙWô߯´5}\êŠ*}3Ôg„ë;X‚ŽÉaAÈDÀ§ÄÒ>í8ª@® èú+… ÑoNñ˜NDëêh3%˜®Ø×O!®Õu†yܸqÊÔ´%yss)Wxš´ºØO¿¹è~,£Ÿ?œõÔ„všÓA¡¾¾Ø…¾¨œ%=¥/yª…“P€×FvJžU)¶Ï¾<«^žíH?kjh˜v§QãæÜo‚ŽÉÎ]FÀïÜ_Úï=HýˆW@—ÙñÅÑoEcª5[c¡?ûì3­¥_²]§_yåHë1tô°iRRC@Ÿxâ Í^®ñ5ºBÏŽ0Ôœ´ ‚fËÅ@:MTi&xˆí³Ïë^’¿¼.™Öý5tÖG¹3–昜ü}G “A€X:z: ŸböJàìêd. hݺµ‰¥5S·¦ÑÖ œõW—Cëš+3Í©æGéܹsv!?tM©n% ©h5¥­¥uáŸn¯I~øátÆ¡í 7±}öåMÝòr/ú}S³íèúM 3dÈ}¸›½sLÎË^`_þ`Œ·ûŽš#ŸºTL÷‘ÖyÅì*¡ÏfýêŸÝRòÓ\@£»8âÝÍ[/!}uÓ n]¬® þuÓ,ý.“»8ŒãÍ]ÏTÚ¯TêMÚÀW\ññÇë fúñ„“ã©'ë"lÌãl=B}ð‡€f(ÑÈpÝ%Ø9S·ª®ù¢5-Üo¼A íŽÌ§ZêEòÀhZ]x¯*èNBºLZç¨s=Χö±[@ÀOš\SjzZMòªzsLöSçQ×|à¼t¾ò³sü/°qãFÍ/ªi¢×­[§)å›4i¢ÉÿÍ¢©#À¹ÇÔéËÜn ¯Üe{ €@z p½tzõ7­E ×9‡ÞÃ9×÷Â@@H*Æx'UwP@@@Kû “¨" € € €@R K'UwP@@@Kû “¨" € € €@R K'UwP@@@Kû “¨" € € €@R K'UwP@@@Kû “¨" € € €@R d&Um¨  €1 ¬Y·¾ÓƒOfee9·°dùJ=ý懟ÿ˜ô·3?##ã¥÷•/[Æ™I@ˆR€X:J(Š!€$»€cÒN™ZÑ•«ÖèŸ3ÿ°†õ ¤ ¤@@À“c¼=qQ@ ©Î;ã¤(ë}É(7H1@H+bé´ên‹¤¸Àé'[¤pá©2*™c1 € €Ù Kg'C> €€ÿJ•,qòñGåXo•QÉ‹Q@ÈN€X:;ò@|)Цõ‰9Ö»Mëh‡‚ç¸) € €@z K§g¿Ój@ eZ49¬rÅ š§¥-š4ŽP€E € €@ŽÄÒ9Q@ÀO 8ç´"ÔXKU&B!€ €9 ðe"G" €øL Í‘†yG^곦R]@È'bé|‚g· € ¨Y£šnvóÊ×Ò°‹ÈD@¢ –ŽÞŠ’ €¾Ènv±ìò}Ó0*Š €É!@,ý@-@rU õIÇ.TȵIå(ß•ÉS@@ béÐX@ Ùvßhº…«–'ß‚ÛJ»LxŠ €± KÇæÆZ €É.p^È d¡9ÉÞê‡ €É*@,¬=C½@âЦ+íWÞnCi娧$@@xˆ¥ãÑc]@äÐM¤Ï=}ßͱ”æ¶ÒÉÛ[Ô @¿ Kû­Ç¨/ €@Ôç¶vÄÒŽtÔ   € ^€X:¼ ¹ €) Pë€=7šÖm¥•NÑ@Hbé$éª sCin+\6Š €@ K§qçÓt@ tCéÒ%Kp[é4èjšˆ €@ž Kç)7;CÈcÝPºûý·s[é €€ßV._öL·®>ýÄÕ% þ1vŒÉ<³m»ûº?Q¥ZuWžF/ðQ¯×ßyå%•¯wHïýŠ”D@ ã„B•@òN`â¸1­›H»jðmÿ~§7;ü«Ïûºòyê9ì‡[.¿Xÿ¸­ƒkO@H%ÎK§RoÒ@o:í|Ýùçü»q£]­Á¡=âÈCV~¿ŠÁ1ÉS'ûåÛ·oWÍ›6ÝßñæƒêÕ?ä°Ãmy.¿'Múᛯ”Yyÿj®Eà§_K•)ã*ÆÓνèÒ5k©XÙòr,L@’\€X:É;ˆê!€$J ßGÌž>Íl]g›_ïóy̓ê„î¬FÍš=?øäªsϘ0f´–.œ7÷óß¿®ãí¡%ɉ,pp£Æú¹ K@ð‹×Kû¥§¨' €@n hÀöËOt·[|ìÅžaiS p‘"/¼óA{>4ú~ˆ]14±`ÞÜáC¾ýkÂïÚEèÒÈ9:ïý÷¤¿Ö­]¹XèÒ¥‹Íš>m×®]¡‹²ËÑ^fϘ¾|é’¬¬¬ìʸòwìØ¡êýøí×S&þñϺu®¥¹õtÓ¿ÿêg‹Ÿ¾ª¹ßbØf 1ì…U@à¼4¯@tèóîÛ+–-5-oyÒ)ÍŽ96²BÕêÕ?å´ß£èߥ‘á%J–t®2~ôo/öxtê_nX¿ÞägddXû +oêpÅ 7+í,¼eóæ OierÞþb@‘¢Eß|þ™±#GN›ü—¹6[c¡kÒôžGºï_£†sÅw{¾Ü¿ÏGÊ9ù̳ïxðáaƒ¿é÷ñ‡þ>δEÃÔvø™ç_pyû›œk9Ó£†ÿØç½w¦Lœ «ÁM¾Æ«ŸÕö‚«:ÜZ§~gIgZ‘mϧžø{ÒŸŠöm¾¦ã¾­Ë§{žiF¿Ï›5sͪU¦Àò%‹Ï9¶¹ÒÇœpâý=žRâÓÞï îßO µ®ûK¯šböïÖ-[^èþÈð!ƒçÍžeÃ{ÕM7${àOP«¶-iñS¸6ÈS@< K{â¢0 €@ŠüùûXÛ’;êfÓÝž}ñê9³L‚ Ú’ üÞzñ¹»?ª °m¦ÊWXøx绿é÷ù¯¾©[UÛ¥:<}ÊdótâØ1Üsçê•+ìR%4’\ÿþ?îão¿¯â˜Äkåò¥fEֵ͑ӭŸ½ÿžs-Ñ÷ë(ýÛ¸aÃMwÞã\¤´ª÷òÿãùgl¤j (øW”Ûïãn»¿ëÍwݺ–šöæ ϺòõtÆÔ)ŠŸÏ¾à¢çßî­§ ¤m£LaóôÀ½#ççÏžõÛO#´H·ï6ì_Auºæ ô¶9&¡ºé÷‚_G »ãÁn×ÜÒÑ ÐÒx(\{á) €1KÇ€Æ* €¾˜7g¶iCé²eÑ$šöT;àý -Ùí®NŸ¾÷¶Í߯Re°?g–=ñ«ËW·9sð˜?\§²Í* Gíºš<|‹††ÿû¯ÉY8o^û Î {+æ}ûص4½l¹òö4»òŸ{ôášµ:½M[[Fñ³6¥“Ò6Gû*Uºôü½:þücÝT¬ÃÝm%èxsÿ>Ûœ¢ÅŠÕoØhùÒÅË/6™_ñYÓ£¹ìú‹èôz±b:åî,¬táÂ…mNØ„êжÕ1v¸ÌÌ̇6.\¤ð䉘ÓàÚæ“]ï+˜Yðê›o Ý‚WŠÐ-ƒ €@ \/« €ø^@çHMªp`<™6yRßÞï˜-(:ýbØÏ¿Î˜Û{À×Ãÿšöóԙǜp’Y¤ÈóÅEØÑÑ­NÐ*£gÍ¿`Ùû¿-Qª”)¬s¿¡gkív4¨ûÑ^ž´lÍÈi³GÏ^ÐæâKí¢Ÿ}jÓJ úìSH×=øME®}}?aÒøùK{¼üš=Í®׫V,·+Nž8ÁÒúÑ¡×çýŸ·äóFü €žˆ¥=qQ@ V._fÏýV«æTsô|úáÍi]ÙûÑ7CÙÔ®«±Ù¯}Ü÷°¦Ák†õøðÍ×x›´ëï-÷té=àsÒ[a­âêÇ_ìiËh¤·M; V¿5îÒkۛ˕ËWØO#É'›2ºˆÚÖ©nÅ«æ©Î™9|¤½E¶ª}áU×¼Ôû#3|ZãÀ|ºïŒ·ZgÖÒ.žëõ^«SO×9p“sÚ9m®º±ƒIk$ö´áÙfQŽ'Ž3t`Sì’kÛ?úüK:¹mžê„ö™mÛ=Ûë=Ó@ÅÛ=èvƒÑS„]L@b –ŽU@ü-°xáÛ€ý㈥u=ðÈa?˜M]xåÕ¡swédi—÷L²¥3·c~ùÉî×&tÏ­[»<`ÂE›Ùâ¸ãmzíêÕ6íLtº¿«Öuæhtt“ǘœµ«÷̦§_|ô¾f3ùÝ_~Uc±k)­Àøðf{b~]8m–ê|øèŸ÷TXC¸H»Öºü†›ìIã1#v-òéÛ/¿hJ*\øŽ®{~çºgœwþ©ç´19ºpڹȦ£§°«@@ Nbé8Y@ÀÅŠ·•.\xÏb›}B·¡²…/¾æz›v&tØÎ:6gæLç"“nwÅÕ6"µKuÑu…Š•ÌÓÖ­µù6¡È³íeWا6qp£F&­ûWÙsïv”¸&Ð>|ïyr»ŠIh2s“Ð=·ÍDhsfΰe47¸MÛDÅÊUžçý®O=«Çžx²Í÷”˜5íoSþôsÏÓ©õ°ë¶Þ{á·N€»&iSyOa·O& €10÷X h¬‚ ào2åÊÙØÂlNô ;q—B_0‡®^§ÁÁsg£è¹³öE§¶X¥ÊUlÚ™¨X¹²‰ÃÞ5ºBÅŠö"gçZª‰}jWœ»7*VtÝó©ÿÙ΄&ú²O—.^¤H~ÁÜ9&GÁê‘Gµ°K ÀΧ^ÓªáÂùóÌZÍŽm™ÝêÎþú=ÂþÊ`Ê{¢Ènä#€ àU€XÚ«å@|/ Y¯mÍŸoÓ‘šMÚÏ Ê.Ø; vÕjÕ#¬[®B³ÔF§ÎÂå÷ 2Ö–q ÿ6ùšçÌÈ.aWœ;k–)£àüå'ºgWÞæoúw“Ò¶¶Ù«¶|̉¥‹m߶ͬÁКZ¹nî‰"檲" €.Æx»@xŠ úšÝªJµj¦º³™<,ÇfÛ¿ß9Ç67ÿÆüòöÎ>Šã‹ã@Á½¸;-P¤hq(RZh)^´(îÜ‚»;…âEжh¡www‡`ÿxìïn³w¹Kî’_zå3;úæ»{·ófÞ¼y·=øöÍ›ª”v¡Û²¸þR‘±bDZLµÜ½¬ËcU<Ÿ>Àt™µ—ª ܉ݿ«?ÏY›Í2ü:0‘·®_WIVŶ,å@ Έ–Rq5Æ©Ús¶pŽ—.Õ< ]A^’ @pp]:8ôX–H€HÀS ä/\TKüðÁý «W~õMÅ {²eÝŸ*\|}þE^„'K¦bàÜ ø­ï•RlW6Èæ¢$¬ŸÃ͵ò=c¾~ƒƒh(bÄÏó¼ë]¢$ïÏm9? ¢ɉ“¾ŸÑ@^™˜°,'Z=’B…¡¥HŒ!  êÒ|H€H€Â#EŠ)]Ÿ0lpºôÍë×6®]­HA‘Ž3&ÂiÒgP1p ŽE`±©V‘ê_, Ÿ9ñÞ½–Îí¶6›KÃi3dPº4v>çÌ›ßd[i2dT9qâôË€9 K[|î´É—οÛV]ºÂ·ùloxÖцa€eù€/yí²McûGK)êÒ‚‚  Ð%@ïÐåÏÖI€H€B‡@¹ï*Ë®éc`iÚXŽ}{AŸTyŠ”.£iÒ¥W'ÿ³q½ÕvlÙ,ÇS¥þßjN×E¦Iÿ^+>~øDµÚÐÂY3JçʆOõ2%T†´f p¹aÍ*ËRðd6¨{×YÆâséÜû-Ù–Ù b0û*m:•aÍÒ%¶r®^²X%aktÌX±lec< „$êÒ!I›m‘ ¸ ,,7hÑJ¤ióSÝå æÉ¥6€…eß–M%5EêÔõ›¶P²çþöÞ*p6†OÜøï=¥å)XËUæß¦L´,5oúTµ¤Œ¤"¥¿ÒgxûVcí:Oþ‚*úо=ûwí´Ì‚™Žƒ{v«øjuë[f` „ êÒ¡‚’ „>ºMšáðg%Öœ;ýòsÿÎpx•øú‚“™›Öªöûœ_EÜc&B+V—ÉR¦¬õsÞþ÷¦^íZ£ˆäD`p®?¬èÖnô‹¬„kó„@¸bµÙræV M6xÝÊ?´Â¹wëúµÅ?YåÇVãx­ÍZªœ{wlïÙ¦¥²…ÈÿÞ4j@•š%[ö$ÉÞï|ö‰ê£"±Küôñc*lðo³N]DcoQ§&4gmfèöªUV1À®þÐfc˜H€H€Bž÷K‡uú 2gÑfІ±¼|ñì™îÇŠ;Cæ¬Ð‡µ©¶Âð1~âè‘G9q³dˆé2eÖiѶŠ3Þ€ÀºÛo·ßP!©w­TQ ²1‰H€HÀ<êÒæY1' „Ô¥ÃÈd7HÀ4êÒ¦Q1# ˜%@o³¤˜H€H€H€H€H€H€êÒ|H€H€H€H€H€H€HÀ>Ô¥íãÅÜ$@$@$@$@$@$@$@]šÏ ØG€º´}¼˜›H€H€H€H€H€H€¨Kó       ûP—¶s“ ui>$@$@$@$@$@$@$`êÒöñbn       .Íg€H€H€H€H€H€H€ì#@]Ú>^ÌM$@$@$@$@$@$@Ô¥ù €}¨KÛÇ‹¹I€H€H€H€H€H€H€º4Ÿ      °uiûx17 P—æ3@$@$@$@$@$@$@ö .m/æ&      êÒ|H€H€H€H€H€H€HÀ>Þöe7ûÕ«W[¶lYµjÕÙ³goݺååå•1cÆL™2}úé§•*UòövU»¦tÓŒ{÷î}üø1„+P @ôèÑÝTJŠå/^,Y²ääÉ“øR\¾|ù“O>I›6m† ªT©’8qb‡ªd¡`X¹r%~£ð£ÔºuëÉ“'ïß¿ÿ«¯¾ÂíV¥,L$@$R8ÚtŒ4G›Žqó¬R÷ïß_¶lÙ?ÿüsãÆÛ·oG5Q¢D)S¦ÄP§téÒ1bÄð¬îK«Ñ]¿~½OŸ>P6‡ ÝŒøöí[cáH]±bEÛ¶mÏŸ?oµìgŸ}6vìØ%JXM ç‘ùòåÛ³g @ãÊœ9s8§–ºÿûï¿wìØñâÅ‹–¯[ýúõ»uë–"E ËTƸˆÀƒð»sçΘ1cZ¶l‰÷MåÊ•cÇŽ}âĉdÉ’¹¨Q7©60ðõ¢ë¯Wß,?B™DÝD*ŠA$àRën¿ý÷ÞÛ§¶ÖÊ“6g¶,.m+d*çhÓaÎm:ŒÎ# >}ú´K—.X$Àd“U±\×µkWŒK}||¬fð¬H݈ºm®\¹:Ô¡C‡¡C‡ºº/ηñ†J€•g[Š4úsìØ±’%K"›«ûæÎõoÛ¶ ãxüµk×Îå¤lN!€orÕªU­*Ò¨ëÕ“&MÂìfµÍ9ñ!©Q£†zÞ.\¸ m" ‡ƒì2~‚ H'I’¤Q£FàðÝwß}þùç° iÓ¦MÆrùê* Û–­Þ8ðåË0ÜMvHÀ*—wo­1¥^Ën³,·šÁƒ"9Ú4s³œ80Óó8FÀ¹· *XöìÙÇgK‘†Ïž=ëÑ£GžìjQ¬Kc1ÝÏÏO µu¬N/_¾æ¬¡€­5LáÌŒ÷Ù¤ðΣ4ü8q⨠Ã(kõ;I¡w|óÍ7H}øð!,(»wï®r4ãd„¡‚BEÒ‡51ሆ…Õ`mÂ&…´5ÌÆ]Ãè õà6aÔ‡å ]ýØ29sæLDB*ȦR FtêcHã‡H <À÷ßz|÷å§àé³ç­»ÂO>CÆÍÀ(\’Ü6ÀÑ&nM8m¢§æ‡ XÌPïnè8Cû7iÒD%Á K#’d¾rUÄ väœ?¾jcHiKuêÔQ©ëׯGdã=óBBË*(Ò¢A@ÎT‚ïÉ&æßX‘HÀL–ÓÚ$óB¢ƺªÝ0{îDáÂ’›¶~†-¡*†*&ÈÝ¿ÿþ«Š`ײBgÅè-NU“ü ÅU•úâ‹/ÄÁ˜­z°n‰éü}ýõÇEí4kÖ 3JÁ¹.Œû‘ªfD°w2e¢­º.f/ƒFáâ«s*Óø^“63¸ßxbð|à†AÂxº‡ÊƒI=У~e€µ>,úÉÒ"Žk›NÕ¨ºDŒviT%É¿!CFš3€¶¯&¥@ªŽ¬EÃP˹àcYæÅU5&œä;cgU­]­ã¶BÅU!*¾0[}ûXAŃg)-ž+5³¨’äáW•¨•^üdã©Ãaàê÷ ž½ ´ã™‘ÚÐGdP—Ð`{öì)ËÔ’<·xœð§Œ)ŒÌÛA•Uû)ðØûí·xOÀ12WÆ`;d°\¬êÇäŽV·Äc‰K|¿Tª]}±P¯~ýQ¾A2ÿ…Ù( ÀW9“&M*Ú>†˜ø”pছüòwo/Ôð&ÐÊ#a,Ú«0L]$Ò‹W¬û©u{eÎfÁ”¡ysfóÄ^Pf ׈-êȾšÖ¯Ž&f/ZñKǾüßíÔsç?Ž6ÃÕhÓüP6¥2@€+6½›6m³Y´ÂŒNo󕣈IìR¹É€ñx•˜ÃK¨Óª]“k°:ªüâ«Ì¤Øºlæ…ÔÔ ³a5 âˆf@IDAT«•krÚœCüã?T$ôGrD½ Ë9ȼaÃ5öSü¯³”r©*É ¨8P'l³eã"ÿà; *A }ûöªf(½ÐTU¼,‘! ZìŠa§ª’´'‰AUaÔÒ–ª  ”=•OÚb ŽTÉ{•·GI¡Ò¨RøèâJ0Y樯Z †²Õ^z!ö ¢)I¹sçÖ^"Œá>¼FÁLWòËvS¯Ê2 ¶Öâ”ojÍ"^fƒ Kh³©0|5áÏ2>Ș&¤<º ˜SÐÅàË¿j3­0‘<âÕIbìå,0Ù:¾EbV€]4˜¡ÄƒŠ?°‚*ßCmÍ*ŒGËrbHÆ$‚ådxVCåxœðPIµÀ‚Ÿr\B©ÆZ76i㊴d€" ‡ŠðR(öH’¤ hUhütJ`6#›ItE¬^:ÜœR(^TÍò•”íÒ¢LFÈNi×ä—KªBÀÌ—W›_† jÇ>ÖlÅø\——Ø…®¶£ãñ€¿zË î³fÃÖžƒÇ¼|™&e²1~¾iSÙ–ÄáK«Hc›. *Ki±­ÚŒí´R=تo/þ´MK/0Á†íô˜Õ“_3Ú>æðuƒÛy­"{_q¸%MØ 8ЩJ¾ŒcWÀᛎVÌ|y „Q«ÍÈ [Wב̉è’Üðò±ÿÓfû+Eúç;Ð—Š´Þ&ŠDD r…Ò3G÷K/Ω³«7ê°÷Ð1÷ž£Mu/Âüh38CíŠÂÚKEÏÞÊ8ÈWΡÌ|¡ìR»ùÙŒ.ľÒÖZ¦NNKáíR[¡å0©0;WN²VfÞØÔ ¶»"ÿ?þ(5¸ÏˆÎiëÒði¬œoa! ’òc'}Ö¦M›¦.•w5ÙD •C›MV퀣Éû­-ë@X,%àÉ@üd«LŸ I–˰CÃVNâÝŒô“FP,-uQÑÿu›Ò¥ 6`/g)k¾u¸¦“=ç¥K—†4=‚)²Òùñ;¢N·’š ¸è¯R§¡™ëuê‘À×~åÊ•¨‹Ïº=ÆÒô:lé'0hnÐÀá3\6ðK `EÏ䃃Í?X/S¦ Èá õ`êŽ %³AÀ¾ÔfW’Ã7Ý®V¬f»n`m«¿ã((ŽèÌ,³[m(Ä"Ï_¼Ò²ÛÀËWoDõ‰Ò¯KËr% ‡XÓlˆH È™-Ë‚)ÃZw/ ÚöòmÓ¸jÅ2îÐ_Ž6Õ]ó£M‡‡ k×®-¬ ’Ài¼ÃjŸ^{+wâ _ß´ÂØ Û+$ÆXVQ 98! Ž“-kÆàã^uö'tTµ%Ùä4PË"ÚKáíR[›­0–—”‡#èÒ8¹Þj#0Ö<(ë>#:§éÒØâ‰¬âÞÀúTm µŠ ‹iâ„'6#L¥ÀÈ5XN UÚ…´f¾\æk2'–îáëBeSÓœV‹¨i2¬Zì:±Z0$#§Ì^ÜÒ׊ô9?[8eé„϶H œˆêã3¤g»Ökã÷pÑŠ¿°@}ÿá£Ðí;G›Š˜m:6ThÞ¼¹²cÅs+¿B… †åp?¦Þ슞½•ËÀÌ v9Xš=bžyÇ`ö ‰®õîÝ[-ä`²E‹:“ll°…CrЀÿ xzÆr½¢FöZ#Æ–üPg”W0UJýë€Úâ¶ÂbË PÙ–bHÎU¥LŽèduDŒ l5êp¼ÓtiH€sƒÑU°ÜcZñD/Âa-&Áa’Šéß¿¿(ð "qÔnx9 ̨TèáR›KXS…Ý,š€®‘tmá:ø[F$NôUfê˜G@1XÄÑÁÚüPºÔR-ö¨uxmªÁ€^es72Záq·n!÷TýŠa•5þüÚÌVÃörÖVb²u™¿ãsU -O;ÓÖo5,··¸ˆT9qP‡<Ÿ•+WV‘˜P–pز¥?6dÃÏ}»víT~ü^[ºÐ>$ÒËŸã¡C‡ª™U•ÕµUÙÛ«:œ›î@sÚ.£8æ T%–/9©PåÏÓ¢ø¥v EWÁ‰5íz;}ªñ]ù©ÃûÄ‹û‡ü¹ZÖO$®ÀÎØÃI{ûÇ©{§Î~ôý*8Úö0?Út`¨°páB1ZÆ ËQ®+kVŒ±N+«½•Û5ÈGåj?´ÆªðSS·n]‘Áj@;b±WHT­JŽ ‚9$NA‚% aýŠR¶q” ”2$AyQ[t%›^+$U4p,üH6p@H] V/E—ÆÈ>ƾٕž¥Í䈙1ÆVEd ][ƒSÂÎÔ¥19¿yê‚:Áb1N’`µdÙsE8tWúЭ[7µ4 ;~$-[¶ ýá_¸tSÇ Bkµzb–TâÄÆÐ²¹‡ Ãjç᫈ͨ˜ôjذ¡j«gÏžê¡Ä Æâ³ŠDl±Æ™à84 }Çd˜Š‡ê"N›d"sTȃ/¿ǥ녻‘ÑŠ‡I¾òåËÃg=ΗCëÔ©Ó¯_?•GO+2Úü–a{9kk0Ù:¾çªÄÃo+~×° ã¨úòCØNËÜ•¶]Vúj½ö$¨¶4ðÅW~ÁáûèѣȥiYÇö•Ñ£G«Jðlã j3žjøƒí~¿`ø ÿþòc‡9EiÑêC"Ýpü(ã_€ qÞ¦Å&mA*ÙO%UAÛǬ*\#¢{û"‚3œ›n¾i«]Fqùåµe;#ÎñËc¾¹ËyõÆ­:ͺ¬ß²ûtj»ð»b­³! ðI hÁErD'Â1Œ´,î¬g®K«>cæëÉPDçàY±>–|a¬Gvð0œ¶êåIÐO´Ï™( ʪ\W•ÕH)bU³²Z. ±»@7…ƒ¶ào jT\m»˜ÀŒâuU!Œou3Pø±€©­aR[‰«Éèd0y ,p` ½)(¶è,6Ìk+gr:’Ç.Ϊ”ùÖ±\Œû"žUqh¼õë×ÇCodÊ;âÕ6þ ¥Å4'¼/ˆwéúÞºukXqëæÒëϰkó奈 `Â`­XL$ƒÕ‡dòäÉXc—<*©°[6Mš4Ñ%á²B… 0˜±üJÚÕ«§jKW ˆ N¹éÒ´ù/¯­.Ér·oß>ˆœ*€Vü@!Œ(x¸Ñ¥†îåÜ%«1Š}ôØ?[–ŒØ /»¡+['obÇŠ1ap÷zÕ+¢ã“~]/ßpÙZ8ÚÔ½pÃähÓäø+®pß­EXCõ’ǃ:X1(VÐe“02˜¬\U¼æùØBˆ¡šnÁ *ÆieË–Ù´«ã={…Qa† mµ<®mE…±ä‰•jÑ·±r?Þ˜S©ÃTSwÆ*¶©¶jÕ œ-÷!¢”]$ƒf+1°n$c? ’¥”JUÿèGž Œ µŽˆ±£sk”ÚàiéĉØ”[Sô&9rä°4v—ü*}keXK„ý-<CŸñB·®§_Âú³ycM Á£‰‰´kÌÁw ŒÄÜA~¨ÐmººsïF«Ãzw(øÅçÎ’Šº´³H²ðÎÕ¥Ñë»÷@V3}›7¨]åOAA9C˜€c£Í’͹£Wˆç5_ýµlVGtÈípƒU@Œî\º:òÑM‘”L «`–¬µ²›¡kl¤xÌ@& `£Tâˆrœx'º4œ@‘†7øç7YK³Á¨»ïð‰¯^fH›j ¬(“9sÜ'Ò;ÓîWï·G¹´¬œHÀ-¨ï»úî;E „ âÍÝ?Sü¹yðØé8+«G»_‚¿Å)²±·"ÀѦ[Ýwçì@ïÅ®L¥Hc£ Òl‰muD³påçã¸T‘†T\—¶uko“@è® ‡në6¡0ÁÓÀº;W®\8²®)àjFÝ8ƒÛæq@-Oé!ÖÅÀÀ×Ã&Κûû*´Xªh¿®­¢GæÜÖ7Ýœ~áe–˜j¤à~iç¢em$à¦\}{òI„†i£”Lääu”Ù‹V Ÿø+æ"?ÿ,ó¨~¡c»)ŠE$àÞÔ _dÄQÊÊÒ[b¬t#:äÁ1O8/ª8‰3«eƒé|?ÞÁ—‰5 €« À) ¯¯/<ºÏž=mÁFÛ¤1ýêŠôÃGá¯[)ÒÍÔÙ·“Óiô7±Ï;úÚ‹®s?éê;ÈúI€ÌÀ7ßwü©ï¾ù‚frÂä¡=±åбSÕw8zò¬™RÌC$@¶À :ìÍ(Ò¨A7¢ƒ?ÂeË–a€æ®V¤Ñ:×¥mÝDÆÛ$¯zHƒ'¤P1ùÝÖmBa 8ƒÀ©s[û¼vóvôhQvoS²p~gÔj¥ŽÀ7oÙÿüùë?§Ž"—¦­ b „%WŸ¿v)B4¯“rGóþo‹‡Ó{wåÚ]ýÎ_º 3ï>šóU1§7Á I€Â6x>ÇÁ@°ÊÆ©IX£öˆÎR—öˆÛD!I€Â>uoï>pÌó)“'ëç‹Ãf\Úç‰ç¶Ý}9f„š4óv)hVNn@`ÞÕ·§ŸD(œÐ«iz׉ƒã¦»ôù÷¿{ÐDƒšßµi\Óî®kŽ5“ @¨ðžìP‚ @x&óËqÓç=;¥ ~‘sòð^Iâj )£GÚx;ðÎËI}"$üÏäÛÕ-²~ P!pÊÿí–{¼"Fh•Ñ'¦· íP¢DŽ\¾dáÀׯ÷>~ðèÉ#'Î+ô…O”àg*ÐØ( ˜!Àui3”˜‡H€\EàÉÓgXÉÙ²}/¨W½bÛ&uCÌ®IŒ%R„ŸREHÕ…#lW±c½$@A¸ùâíŒË^¾‰P!©w­T!¤Öþµù_XÙ¼x™:E²±}Ó¦J”˜L' $@]Ú#o…&.]¹Þ²ÛÀ ¡´ÃðõÛ·ƒO{üÆ'R„ÊI#dŽEu:läÚ6ÑÎ>åÿæVÀÛ/ß¼ùoÚD)f!p>‘"Æ‹1±OÄ̱"¹èiÇzº÷Ð1Ø{?xô8A¼8£úwÉ™-‹cõ° ¸êÒnu;( @X&°ïÐñv=‡`aü¸q`×çóOÃroÙ7 и~óvKß§Ï]ôööîÑ®Iå ¥5‰ ’ €G .í‘·B“ x±rÌš1¬CàiCDI€Â6ç/pVÖº¿·£›?þP¡C³ÞÞ^a»Ëì @Ø&@]:lß_öŽH ô ÀûŽß¨©¿ÿç}§|©"};ÓûNèßJ@$Z&ýºhüŒùh=_®ì#úvŒ;VhIÂvI€H ˜¨K ‹“ €»÷®ûÀ‘8¦Mã:?Õâ©0F¸˜F$lÚ¶«kÿQÏž¿H‘4ñ¿®Ó¥½fI€ÂêÒaïž²G$@îBàØ©s­» ¼uç^¬˜Ñ‡ôl_8nw‘Œr @¨8{á2¶O_½~3Z´¨»µ)U$¨ŠÃÆI€HÀÔ¥¡Æ2$@$$Uë·ô2!àåË´©SŒÐ5uÊdAa ?=öïÐ{ØÎ}‡Ñåæ?ÕlR·*ìwÂO÷ÙS 0@€ºt¸‰ì €{xýúõÈÉs~]øÄ*Vè‹AÝÛÆŒݽD¤4$@$àðk9t¬¹¿¯‚,¥‹àÛ:z´¨n E  S¨K›ÂÄL$@$`’À#ÿ'ú ß¾ç ò7ªS¥eÃZ\i1‰ŽÙH€Â'ek6ö1éÕ«ÀLéRñóMž4QøäÀ^“ xêÒwË(0 €û8wñJK_¿+×nF‹êÓ¿k«2Å ¹¯¬”ŒH€܆À¡c§ZwtïþøqbèÓ)o®ln#! ›¨KÛDà °‹€x¦Mž$Ñh¿®™Ó§±«83“ @x&7P§<ëå©k«Ÿ«W><Ó`ßI€<‚ui¸M’HÀ­ ¼}ûvòìÅrbêð>âÆ‰íÖS8 p?/{Ç­Ê·e|Û4Šìíí~bR" xO€º4 gÏžû³qëNÔòã:4kàíí¬Y˜H€Â1™ó—Á}#æ(seÏ:²_§ñâ†cì: €[ .íÖ·‡Â‘ ¸9+×oâé3ç/GŽìÝ£Ý/ß]Êͦx$@$àþ¶íÚß©ïpÿ'Ï’$J8f@׬™Ò¹¿Ì”H  .o:»L$à8µ}¯¡ýŸ$Œoô€.9>ÍäœzY „{¯\kÙÕïâ•ëQ}¢ôëÒ²\ÉÂá  ¸êÒnwK( €G˜³xå° ³Þ¼y“=kF(ÒŸ$ˆïbSH ðþOžvî7âŸû!ðϵÀƒ‘"Eòá)' @x @]:<Üeö‘HÀ™^¾|ÕgØÄmF¥•Ê•èÙ¾i”(‘Ùë" øæ+GM™3sþr\+ôÅ îmcƈN6$@$à&¨K»É $@žAàöÝû­» :zò Nm›±ÚU¾ñ ¹)% x,Õë·ö2>àåË´©SŒóóM•"©Çv…‚“ „)Ô¥ÃÔídgH€\JààÑ“mz ¾wÿaœØ±pðUþÜ9\Ú+' PŽ:G8ƒ:vÌC{·/”7É @¨ .ê·€ x¥«7ô19000SºÔ£ýº¦HšØ3䦔$@$&ܽÿ°M÷A‡ŽÂ®éöMëÕ­V1Lt‹ ð`Ô¥=øæQt !øzȸó—­As_+Ø¿k«èÑ¢†LÓl…H€H@¼zõ sšËÖlDLŲ%zu » aà @( . ÐÙ$ €[¸qëNÒÄŸØéÁÃÇíz Ù{ð2´hX³qª#F´•™ñ$@$@®&0wÉê¡ãg¼~ô1 —¯ÞàæjWßÖOá™ÏwŸ}'ˆ€#Lø©ÍÉ3¬²8uöB& HLjm¬Ÿo“ºÕ¨H[ÅH 1?þPaò°^ð[qäÄ™ê:9qÚjÓŽœ¨òs»KW®[Me$ Ÿuéà3d $@L`ИéþOžµê6ðþÃGºnü¹i[íf]®ß¼ƒeyÿ2¯./I€H€B…\?Ο<$CÚTwî=¨×²ÛŠ?ßR¨ý»yû.\E>þ;t´ñ “ € xõîÝÛ‰Õ±* ð ›·íž2g1~òôÙÑg¾ùª\Úà'šŽ™6wðØé¯_™/×䡽’$NèAý¢¨$@$æ ĉ³b™âç/]9wñʦm»ž>{^ Oõþ"  qû>W®Ý„KWodÏš1uŠda;H$ò¨K‡Ñ8SI€H€Ü„~Ø;övéjGI3 ŽÊÜDfŠA$P—7‘] °ƒÀï+×>w1È+ÿú{ö¢Afc  P'0ròœí{)Æáã§ñÛd6f  “¨K›Ål$@a¼¹Ž™6ÏdO†Oœ¥=UÅd)f# IP]ø‡É¡u?{öÜdff# cÔ¥ù0•H L€"-JÙ±7oÞŽ6÷U``9™H€H T<0ÙóMß½ÿ`òœÅæó3' à™Xp˜D$¦œ:{¡Z£öЃìUÊäIÊÿ²l‰/³dLdff  ]8Y%ÿÚü﹋W‚”‡5üñëØT)’™“H€HÀ˜uic>L%;êµôÝø„AR$ƒ ]*tÖLé ²1‰H€HÀ= @—VJ5´k ‹übü n˜D$@fP—6C‰yH€<žÀš [;÷iµJ….S¢Ï”¶Ê‡‘$@$àqNŸ»„ej|l9÷ž8¤Gáü¹=®_˜HÀ­P—v«ÛAaH€\BàÙóßÖn~ûî}mí)’&†þŒUhªÐZ, “ @X"pòÌhÔnþ÷êõ›Ú~¥I™lé¬Ñ‘½½µ‘ “ €]¨KÛ…‹™I€<’Àè©¿Mûm‰*´GÞB M$@Á#pìÔ¹¿6¿ÛS}ýæUSû¦õëר¼ZYšH \ .®o?;OáÀ•k7*Õk•8a‚¯Š,[¢ðg™Ó‡‡^³$@$@V 9qú?óïíþOž®š;!aü¸V³1’H€‚$@]:HDÌ@$àÙpFt¬˜1²eÉàÙÝ ô$@$@Î#ðöíÛCÇN½yó&wŽOW+k"_¨K‡¯ûÍÞ’ Ÿ@¤àWÁH€H€H€H€H€H€H \ ÷ºÝ0%¶œ/_½ „AQµÊfH€Â%H‘"EŽìÕ' ŒÛ#FŒ.°Ó$@và(ÅXÌJaއ ßRêÒ£3[0 à%xôøåËW¯ß¼yûæm„øðH€\G bÄH½"EŠ%r¼8±“%ùÄÇ'ŠëcÍ$@žK€£Ͻw”œœG€ÃYr¿´ƒàÌÃ,ïÕë·nÞ¾‹åè—/½½¼¢G‹êÅ;—‰Ìàc G ¼yû6ðe NÕ|ý:J”w ÔI%L‘,1ר%Êr$ p”o*»Dà°Á!lï Q—v]_¿~}ö•û=3ËO>‰#z´ Ê0™H€œJàé³çwîÜÇ“hÑ|âÇ‹“!mJ///§¶ÀÊH€<’G)yÛ(4 ¸˜‡ ö¦.m/1Sù1×{úÜ¥»÷¼J2iìX1Mc& pÇþO.]¹áãǨfJŸš«Ó.`Ì*IÀ“p”âIw‹²’@ˆà°ÁL%      =êÒz"¼&      cÔ¥ù0•H€H€H€H€H€H€ô¨Kë‰ðšH€H€H€H€H€H€Œ P—6æÃT      Р.­'Âk      0&@]Ú˜SI€H€H€H€H€H€H@O€º´ž¯I€H€H€H€H€H€HÀ˜uic>L%      =êÒz"¼&      cÔ¥ù0•H€H€H€H€H€H€ô¨Kë‰ðšH€H€H€H€H€H€Œ P—6æÃT      Р.­'Âk      0&@]Ú˜SI€H€H€H€H€H€H@O€º´ž¯I€H€H€H€H€H€HÀ˜uic>L%      =êÒz"¼&      cÔ¥ù0•H€H€H€H€H€H€ô¨Kë‰ðšH€H€H€H€H€H€Œ P—6æÃT      Р.­'Âk      0&@]Ú˜SI€H€H€H€H€H€H@O€º´ž¯I€H€H€H€H€H€HÀ˜uic>L%      =êÒz"¼&      cÔ¥ù0•H€H€H€H€H€H€ô¨Kë‰ðšH€H€H€H€H€H€Œ P—6æÃT      Р.­'Âk      0&@]Ú˜SI€H€H€H€H€H€H@O€º´ž¯I€H€H€H€H€H€HÀ˜uic>L%      =o}¯Ãýû÷Ý»{× ¯Q£FË1CÒ¤É ò0)8üý¯ZµJÕPµj5oo+_Æ{÷î-]úûù³ç.\8OÄH‘R§Â©3dÈXµZõøñãG–%  pŒÀÓ§Owlÿ÷íÛ·Å#EŠ”8I’¬Y?õòò2ÈæÎI·nÞ<|ø$Œ=Æ—… Û+*‡1öc~#ÑøWÀãúê_¹vóÒ•ë±bÅL–$Q¨ c @ÁyÏ=kA%ň£LÙr½ûô¥R$+{3€?î‚*uþÂ嘱bikxõêÕŒéÓ†ôøñcm¼„£E‹öcíºÍ[´Hž<…D2@A¸~ó¶¿ÿ“Ô)“¥Lž$ÈÌÌ@$ÆxÊ(Åý±oݲ¥Êß™‘3zôè9>Ï™?¦Íš{Ü$øØ1£ûõín¦M—n×î}fú«òpcž•›çä°ÁøYY 3.ÀÔpEӮ˖.Y÷ןC†ÇBh¸ê{(v600°òwwíÚi ÃóçϧMüÇò¥ë6lÒ©Ó›7oš5s:ÊÆ‹Ô豕˜OrEæ[wÛœ­[6øè!Äû©a£bÅŠ»­œŒH€H ´<{ölçŽíøÌ™=kæ¬Ù }Z’8±]ãQA0‡1Ëi,•ÃÕ²  .m'\$E‰%qâÄÚ®Â^éöí[/_¾”HhÔí۵ɕ+w†Œ%’×è×_«HóÍ·9>ÿ¬Zï޽뉿¿»‹îùòý³u«tbòÔé–Š4R±R½jõŸâËdßþ½R„   w €ÑT–,Y›üÒtÚôY"ÏênG%&Œ8Œ c7”Ý1&@]Ú˜OxOM—.]… ß…S§OIØ2³ðãÇÁÙ2IÅ`õÌéÓ7oܰËãÝ›7o®]»ºgÏîëׯ٪Ù2®#zôèÈ‘#—.]²zË -l%0©oд. õ\¾|½|]R—hN-þ™™H€H€HÀ¯+T€Co•zãÆu«ï8)kï;+Þx•CƒÅ‚°Zý–ªB%àŠaLpÞæ¡†´ñ?÷ÚÁžfΜEJÂT)Ož/ÔeÙ¯JAÙðòöšóÛ¼˜1cöêÙcá‚ùøO”(ÑÑãÿ§rÿý÷f¸Û8tèà•+WTÙØ±c÷}åÆM~É”)³T®¾]»œ:uáV­ÛæË—ü¸1Ó§M…b¬RQy¡/ Ã8J·Ç[*sìiS§,^¼Pëþ‡Rà ‡ºuë]á›È‘#KfæÍ›;eÒDÔ©s—7tíÜñâÅ‹ˆ:lD½ú ?»:"¥Vü±|íÚ5ûöîQÕFµDÉ’è]Ü8q%6påòeuéíÄ×óË/ /_¶™¡^Q‚ 6¨wîܹ»÷ÞŸv†vñ¢ïN°(Z¬Xß~¤x×DÁ©S'cºA;¯¼Õª×¨S·~Ú´i%³É:‘ß.>'ŒÇƒR¹óä1rôÊ•+F  {uÕ.¶ñÿX»N§Î]Ñ)H8n옿þ\‹©µ?]úôpˆÚ€_¬X±ENmó#†ݵs'”aµŸ©xtkÖúÕÊz¾*‚ åË~¥Â .ö‰uô¨Û·ÿ‹mW…ø4iÒäʧGÏ^)R¤TÙ0dÁö„¥ò®]:M213fÍÆ ”ÊÆI€H€H@È–-;fê†ZøìÙSË÷—]ïPU'Î7…“í;vˆrŽANÆŒïì [µn1bD©ü¾¯¤ÞøÃFŒ´œ©ÇºEÉâEUþ~ƒ Ž¿ rTœaŒ¬æßæAJ¥«™—$à,A ÖÕ ëñ\Z]K«þ8q›¨Ñ¯Ç÷èÑÍêr4~ÜÍD[ Š@Ñýë¬ùóævìÜ¥M›vZ8‡À4b¾ø"߈áÃÄɖʃÍÛP·ý³u¤)Å‹—ÐDxÎì_;´o«k ñxC@ùÁç{Á…¦VÆ!ÛXKGždÉ“O›6Å·Kg]êÒŽ¨‚ú÷C÷µuƒmܰÁ·[m¼„Ó¤M»oß;›íS§NB×ý*Ôl\â3iòTsáÂK«p‚…víÙ·~Ãæ™¿ÎYºlÅÑc'5þE%awñŽÛU8È:ã£*—ñ„¬^û×ù —Ï_¼2yÊ4økQIÊVúð’¥ #§ÏžGªL¬¬^½RG¨ÌØbÐ¥KG¶CÇÎ.]ݾc79<ù TÙ®^½2zÔHiÚ2P¤hÑ}áN= íÆŒKåÁô ŒÆÆC¢ÀBVI8€]Åhçn,kf @x#€Wy“F ÅmGíÚÿ§â:öüßö4üôÓÏö8¼lùl½ë~@IDATÊY³à }ïþC?øRÁ‰ÖÿnÛætÚAŽ ‚3ŒQÒ:ð6R*§s`…$ ÐÆ;¼? 0õÑ®<+÷ïÝ»rõÊŠåËÅâ;wñµµæ­lÆÌ_EÃAf(ØýûõUµeÍú)~ã°ª.cÇŽƒ=«qãÅà Tb˜6-^´°y‹–*Uû/T÷‰'ÇŒõ^“Éž#ÇØqΞ9}ôèQdÜ+>X|VE”’ƒp¥ï¾¯S·ž¶žœ¹rõèÕ»eófˆTN¶°Á[›A…¡Þ£þ*U«i“îΩRõ@·‡Ïm1Õ¥î=z¥J•æèÚ†$ ócì¹­]«Þ%*zþÖ­[ðÁ%Ôòœ9såËŸ¿D‰R SŠÄ‚ ÙF§,–U¬Ábòúuž1Øß.3*ƒÕ棭 Gá Qz)öwa£:;÷·9*ó׬]7î»íåxxŠ ¿q‰ÀÅ‹ ‡«œ3gN‰ñ&ýPåý22ꄊ‹½Ð5ªWݵs2ÿþû¢^}ú¦*¨ý·m»]ºúªmfx$ W1²IãŸUžýûöaÏ›6?Ã$@$@áœ6i·)x‰ß¼yŽfþøcùÓfÕx…Õ®óQ—vì ߨhQµ‚á“x5C ƣƌƒó¥ºcCµìØ ±{üaŒSÞæ!Ö_6Î p]:œ?ï6å~óu9ݧn»uí¢U¤³e˦sÄ%à Mš/Àô ò(EZâ¿,\DÂ÷ï¿oNb  çfLŸÖ¸QCݧYÓ&}ûôš7÷7Q¤¡÷ÂL 3ì‚˱w¨¿¿?^yª’Hm*€Õ‚Þ}úýÔðg|R§I£K ™Ëà cœò6™n²êÒ| ‚&P­Z?V®ÆÕ¬X½LöA“ rJ| ‹ëoIUâ%Þ;Ã)²IUò`^~¼åRˆO•*•º¼xá‚ÄÔ÷ðÑãøÈJµ$]¹r»¯åÒV yË––IŽudïž=RLß%,¬ð7jÜD.-ÅŠÇR-ìµ°F ŸÕVןq‚ÔèÑ#áxSüœ[Ö£‹Áн¢x]Þ^X >x`¿.ÞøÒ1>º:áN'N‰Á:¼„U Vìî»á UEbîFŽûá‡*º"ê$eZgÛ¶,óÔú±¶åÚ6ÈŽt(á–¥C$@$@Ax©›Íw욢KU—XÐÆ§]ûŽX%†‡óÝ»wã¬&ìÒnFë׫³déríT·ÕÚ´‘¨ððáCÇÃDƒ‚Læur©Ê1>R8–“ýáïõa¿4bR§N#ñ³g>:î†QÀ¥K­f–)¡k×®YfHœøýùŸº¤D‰«éìJÐ%ñ’H€H œ€f›9K„ÀÀ×þãe¤Ì­‘ ½w÷îðá";æ~‡Vªôýôéï=¡À¸,3à¤ÌB… +Z}bœÁdjð‡1Ny››”–ÙH ølôƒ_5k·`F ÑÊ÷Œõí?ÀÖúrçΣ˃ùU]Œ\^¿þÞ:W+Ú»wÏ€þ}•žƒÚ°ÑºDÉ’… }™&MZø·D N¨úmÎl©ÁdÀáŽ$M–L5ñøÑ#[mݸqÃ2iÔÈêÄHØÞŸ:sÞxIÖ·[œ>ýàÁÔ³vËÚ,cš7ûEÀ¨ÖûÅK”ü,[6¬Ÿ+Cë*WºvíªeA«1ó±Z[0#S¤øh¢?}æ¯Iƒ²pKöá³]'  cåÊ•1|¨Ê#;Œ‚ÿ…‹/|`Cþîø«·ýóÏVhÑ" 6c·k×fÊÔécxøÐæpÅ ”eRð‡1|›[ReŒ; .íÎwǃeKŸ!½Ò¥#G‰uÚžœ8~ÜV)lñUIPUç`«¬P›ÇŸhij…•^[µÇ;Ö‘téÒ«jñÊ|õê•¥;+¤^½rŲétéÓ©H”ÚºeË×*Xæ‘l¸J•:µÒ¥e;–¤Znݺ¥ÖBe/^²GLé²YÕðuy´—ŽñÑÖà¬púôï™£Âøñâ;öÔ9KÖC$@$@B‡zâ•­*Úc2œòÅ)XÆÍÁ*pé’Å~úc}—›?)"’ `ÕñÇ™3§µy÷¹ÃðY0TD •VÙh˜'>}ÕÇ#‡ûû?¶Ú_¬©æÏ›Ÿ åßoÒf;yê¤U{Ú«W¯ìؾ]å,R¤¨ ˆâ=B–Š4òˆ©mÂLرŽÈ»¥V¯Ziµ¡%K~·ŒÏ’ùýQÉHÚ°aem ÀJÇá'N›d5¼oï^‰ïØ©³5EúºœÏ,9Žñ1®Ó±Ôt9Çô¼ÕJ°Õ¼ìW¥ÔS·Ô«¥I$@$@Á!€%è1bªžÿ§åª°cïÐÑ£FªYë–ÍuRÁ Lʇ ®âqÞ‡Z~ðòú¸x&.]´eá‡E{ép8øÃ¾Í†Ï‚¡B€ºt¨`ûæÍ›OuòÉÿéÓ§Yv{xúõ‡#nüÅ‹ß2ÎcÄO–ñãÇŽ Tñ…‹¼?øo céñ×®]]÷Ÿ¯2ËÚ‚Œq¬#yóæÇ‹SU>uÊdËI3§Oÿ¹veëP‰eûåËÿÙºÕ2Ä,˜?ºººÌbáAñºv_¿ù¸)=f¬XRfΘ!a[]Žñ±Uypâqr`S5ÀWê“'V¶~M™<éÀýê©Ë!cpšÓ•ÕaÑ¥ò’H€H œÀê±"ðìùsAáØ;û¿Ô‹ “òVwD'Høñ|µNëY§xˆ*°ÿ>8%ÕEš¼Ô½þ‚?ŒqÊÛ\'•ɾ0 8@€º´ÐX$hUªVñÊ7jÄðÕ«WiËÀ±ÖÏ ˆ²5kiS%>>Ӧς©.‘aù²¥cR™Ò%áO«X±bÎ_عsû±cÇtÓ“}ûöΞ=G“_šJqm£º°Ã騩ËâE‹°, q¨Ã±£G .7^<è·«V®°t£-í6oÑrãÆõð"‚ljêÙ£è†î‡ù‚„ ?ÁI•§OŸÂ²¶vÃUý?a/–ÔP @! רV“Ø< §ßðÔ 7ÝX¥GêâE ÷ìÞõmÅJñâÅßµkçî];Õ¾k)¸~ݺ ãÇåÎq!ÒV󑆜([®<6Œá¸Ô¹i㆒ŋ–)['¨Ý½{g×Îÿ½Yµ—§ØTï”vó(¨ì V®\Q©â7ñãÅÃ9%2^qJ¬„H€H g¢0º†ö«Œ×{‡Â]kþüðwïz÷6Ç6ã{÷ïïÜþïÖ­[Õ‹©8KÐ}[±âÄ ãq ¼VÍjyóåK™"åÞ}{íÝÛ¥*´5*@jð‡1¿Í ¤ €s P—v.OÖö‘~ë¡NCÄÆˆ]³f5>“ÿ AE9j´.R]b& 'Ô`8¢ÄG—ÇoààìÙ³K$sZºô÷mÿüƒ¼$Öýõ'>’#f̱ã&`•ûÌ®5 Fâós£Æ˜¦•<Ç:‚=KS§ÏhÒ¨áãÇï¶‹Ÿn¨nß¡ãžÝ»UNüwÛ6mf,lÀ‹&iãm… FÁÆ QÇÞæRÙêãI ˜hãL€žZ<²wä`Šîm¢†?5\·a“Xbk[„ªÙ¡cçÕkþŒ+¶6^Â5ký8qÒËÔ´iÓÎúõ·:uëINð^™>ã×êÕkj#U¦P­Û€¥ï;ÉfÉ&›“%ÆjÀ±ŽàÄ©u6c¾@W'tø–­ZOœz§b‚&Z´ÿ;öüûï°ŠK[?Ã$@$@a@äȧ㣚x‘ÉÉ#@ѵK'-Þ¡™2e^û׆,š­[Ú 1BèêÛmÎÜùòvC*Ž.ú}iÉR¥µ‘ˆÇ@«{^ã'Limwl “ŒGÁÆ@*Þæ(e,2ðœN ¢ÎüÕé „· ¯\»yéÊõX±b&K’(¼õÝVa˳døº€Oo¸ Ãï#ŒË”) ;mË"ðé­›5oåVõ´vÍjl0†¾;vìL™³àÔhØèZT1GÁ–iL¬â×?å…¾üR«ÊbSСƒ ztþÜ9xÁB1.±àŒ£q4|˜[õ&eï?¸;¸eÆ›U’ધPÂØþö­Û‰'‚ÏÌÒ¥¿·mheßÞ=W¯^7nÞ|ùÕV+UÖ NdpŒHåܶ”ã‘ÃnyXÅ'ˆŸ'~cƒç¶¢j;wöìÕkW#{{'KžBüŸ¹¢!§Ôyýæmÿ'©S&K™<‰S*d%$@D€£·½Y¼CQ#+]qöìxÜŒ+†x aÿQâĉmõ¯r -Ž9ìíå 7œ9>Ïay®‡­²ºxãQ2g£Úràm¤Tº^ðÒ˜‡ Æ|¨Kó±;•o)»‘ý.ýÿ‰¼".¾ƒKåIÀ“ p”âÉw²“@(à°Á:m¼ù0•H€H€H€H€H€H€ô¨Kë‰ðšH€H€H€H€H€H€Œ P—6æÃT      Р.­'Âk      0&ðÑ¡¿q>¦’@Ȉ?¾ò8%Š/ß!#[!     cÔ¥ù05¤ ü6w~H7ÉöH€H€H€H€H€HÀN´ñ¶³“ „{Ô¥Ãý#@$@$@$@$@$@$@v .m'0f'     ÷¨K‡ûG€H€H€H€H€H€H€ì$ð¿öÎì¶©þãÝ뺆B‘ˆÒ QóœR‘f¥y.% 2T*cD<S¢R‘¡ Ii ¥ñvEBÄårÝûÿðû÷k=ûœ÷¼{Ÿû¾ç=çìÏûxŽuÖ^{ ŸµÏ¾ë»~¿µ–Zº!0“K@€$  H@@ë ¨¥[ÿ@€$  H@€PK7fr H@€$  H@h=µtëH@€$  H@@Cjé†ÀL. H@€$  H@­' –ný# H@€$  H@hH@-ݘÉ%  H@€$  H õÔÒ­  H@€$  H@ ¨¥3¹$  H@€$  ´ž€Zºõ€$  H@€$  H !µtC`&—€$  H@€$ ÖPK·þ€$  H@€$  4$ –nÌä€$  H@€$ÐzjéÖ?€$  H@€$ †ÔÒ ™\€$  H@€ZO@-ÝúG@€$  H@€$ЀZº!0“K@€$  H@@ë ¨¥[ÿ@€$  H@€PK7fr H@€$  H@h=µtëH@€$  H@@Cjé†ÀL. H@€$  H@­' –ný# H@€$  H@hH@-ݘÉ%  H@€$  H õÔÒ­  H@€$  H@ ¨¥3¹$  H@€$  ´ž€Zºõ€$  H@€$  H !µtC`“%Ÿ=¤³/Y2YB¯K@˜w¿fÝý¦šÒ-R˜YŽRf–¿¥K`ä8lèÝejéÞ|_]vÙ9³fÏZtû¢Æwzƒ$ é'ÀÛ‰woªé/Ê$ ¡#à(eèºÄ I`¸ 8lèÝ?jéÞ|_]~¹¹ËÌž½àÖÛßé €¦Ÿo'ÞQ¼©¦¿(K€†Ž€£”¡ë+$á&à°¡wÿ¨¥{ói|u¥{ÝsîÜeÝyç- nm|³7H@˜N¼—x;ñŽâM5嘷$0¤¥ iÇX- %‡ “v‹ZzRDÍÌš5ë>«¬Tÿ¹ù–›þss㛽AÀôàtó- x;ñŽšžÌUŽRF “¬¢†€€Ã†: –®C©Yšå–›»æýî»Â Ëý튫n½ma³›M- H`ð.âÄ{‰·ï¨i(Á,% Ñ à(e4úÉZJ`F 8l¨‰_-]T³dXkUï³ÊrË-;oþZ§›±3µ$0Õx ý寗óFâ½ÄÛiª³7? H`Ä8J±³º,‡ õyÏZâIÈõi5Iyçwþeþ×ßpã­·.d«ÕW_õž+®Ð$ÓJ@XZìÂÞ ,9Á"Þ`ýu–Yf™¥ÍÔû% Ñ'à(eôûÐH`ê 8lhÊT-Ý”XƒôÌSüýWÿóšݶðöÛo_4g™eV\aù9sçÌvןÛžôꫯ>ák_yÍë޸ƚÛþ0Ôoÿâ%K8’s,îÞµ{k¤qíÆå–cõšRcOÀQÊØw± ”@Mj‚êL¦–îd2Å1 Þþ^{Ã7Ý~ûw.^¼dñ’{܃ÿü“@-_úÂç¾|äÞöŽw½ó]ï©uƒ‰$pY³fÏâiŽ¿b×n¶r´Ï…$Е€£”®XŒ”@Ë8lè³ÃçôyŸ·Õ&ÀvýõÖ^oñýÙAõw,Z¼xqí»MØvËͽëGÊçzë¬Õv¶¿6Ù³g/»ì]æh˜h‹®Í„h#G)mìõnm¾üòË×]wÝnWŒúîcµtßèšÝÈ3ºòJ÷Zy¥fw™Z<6@àsµ×”†$  H`:8J™ª£•çG>´ýn»í¶á†ŽVµ­­f–€ûxÏ,K—€$  H@ÀL¸ñÆO>ùä#^•€$  H@Àx(ÒÑÂK.¹äüóÏÏÖÚ* L5µôT5? H@€$  = pVg55Mw21F] ¨¥»b1R€$  H@ãLओNºùæ›;[xüñÇ/\¸°3Þ H B@-]âW H@€$  Œ?8Vº³7Üp2»3Þ H B@-]âW H@€$  Œ9+¯¼òŒ3Θ¨‘ºyODÆx ”ÔÒ% À$  H@œ}ÅXµóôÓO¿âŠ+&ºj¼$ÔÒ> €$  H@hμËöWÎ./–€’€Z:Q€$  H@ÀøàÔ«K/½´w;uóîÍÇ«€€ZÚÇ@€$  H@-"0Ñ®c%‚yóæsÎ9eŒa H B@-]âW H@€$  Œ-;S¯ê4OÓtJ¦i3µt›{ß¶K@€$  ´‹À©§žzÝu×Õió 'œÐõê:÷šFm  –nC/ÛF H@€$  ÜE ŽƒwZ°`rZjÀDæLtÁx H@€$  H`ÌvØa‡zè¬ÿþÍž=ûâ‹/ÞtÓM×^{í‹.ºè¿Ñ³ˆ'µt}V¦”€$  H@À¸PK[ÚžAPKŠ´åH@€$  H`øx¾ôðõ‰5 jéÑè'k) H@€$ é  ]z:¨šg¨¥ÛÐ˶Q€$  H@Ý ¨¥»s1V“PKOFÈë€$  H@_jéñí[[6½ÔÒÓË×Ü%  H@€$0ÌÔÒÃÜ;Öm˜ ¨¥‡¹w¬›$  H@€¦—@hiÏ—ž^Êæ>ŽÔÒãØ«¶I€$  H@õh—®ÇÉT¨PKW‰ø]€$  H@í! –nO_ÛÒ©% –žZžæ& H@€$ Q"àùÒ£Ô[Öu˜¨¥‡©7¬‹$  H@€K@»ô`y[ÚøPKO_Ú H@€$  4% –nJÌôjiŸ H@€$  ´—€Zº½}oË—Ž€Zzéøy·$  H@€F™€Zz”{ϺÏ$µôLÒ·l H@€$  Ì,ÐÒž/=³½`é£H@-=нf%  H@€$05´KO GsiµtûúÜK@€$  Hà¿BKÿ÷›ÿ—€êPK×%e: H@€$  Œ8_šv-Y²düZg‹$0}ÔÒÓÇÖœ%  H@€$0ìÒ.­–ö®²~CF@-=dbu$  H@€$0@j鶨±" –«î´1€$  H@hD@-Ý—‰%Ô҉€$  H@€ZG@-ݺ.·ÁSD`Îåc6€ÆÀe—]vë­·vmÕ2Ë,³îºë.¿üò]¯Ù•ÀÕW_}ýõ×sià 7ìLð§?ýé§?ýéüùóÿö·¿Ýë^÷zà¸þúëo¶Ùf+¯¼rgbc$06®½öÚï~÷»óæÍ»êª«î¼óÎ5×\“wË‹_üb~cÓÆïÿû_þò—y®°Â ÷¼ç=?÷¹Ï-»ì²cÓºñhHji˜µ# –j ’€FŒÀ³žõ¬¿ÿýïUš‘Ç:묳ñÆêSŸZ{íµ'Jf|xéK_ú«_ýН†Ü3–¯Dî½÷ÞßùÎw:÷¼¹÷½ï½ýöÛo·Ýv*êÄh`lüûßÿÞzë­¿ùÍoò‹¨4êýï?ïôç(êo¼ñï|ç?þñûõ¯V?âØqÇ+MöëÌH-ÝùžÙŠYº†œ€>ÞCÞAVO˜1½‡\½üòË=ö؇?üá'Ÿ|òŒÕrt ^´hQgeüã3gñío»+m†Ý»ï¾û‹^ô¢;rïSžò”öýîw¿J|_§0«>JŸ‘[N:é$èñwàÎHF®Ð)'vÑE=ñ‰O<á„:…tÀá§ñ„'<á{ßûÞȱªTx§vBH¯´ÒJ{íµ×‡?üa®î¹çž×\sM%™_g–€Zzfù[úèÐ.=º}gÍ% xÇ;ÞQZž.\xÅW\pÁ¸%Sƒ›o¾ù]ïz‚pµÕVP…Æ¥¾üå/‡' zÈC²í¶Ûnºé¦Èãýë__|ñA„×7—Î=÷\LÓ‡vXÙî›nº {×”xŠNaVe ‡9|ûí·CÞvÛmÃ\Ïá©ÛÔ;ñÄßúÖ·ÆÜž_õªW=ýî?–üâ¿øÙÏ~ö­o}‹_k"pöÞgŸ}>úÑŠF5Áëäˆ#Žà–|ä#«¯¾ú?øÁOúÓ,÷Øe—]"¾Qn&ž>é+ÔuZsúÊ5g Œ:µô¨÷ õ—€¦À»ßýnL—•bXTvôÑGoµÕVõî¿ÿþûî»o%_{øÚ×¾ŠŸÏsÎ9''#°—n°Á¯|å+‘Їr™~øáŸøÄ'î{ßûöÎЫ~7Üp¯”Ò<Ò,–~êSŸšÕ~ØÃ†ÌþØÇ>¶ùæ›ÿá@Øì¼óÎ(êG?úÑ™f„̈фå–[¯uªÍbiÚŽš—'Ÿk¬±Æµe¼«ª]z¼û×ÖM}¼§­9K@ãL€Yü·¿ýíï}ï{£‘^xá8·vzÚfgòþÀ>Bº,ê€À…>b°×•— K`D °Ã‹¨<{Œýüç?/…t¶ˆeÒ¸c<ùÉO&†ÙºµK³›Ú7¾ñ šÀ\dѺ7¾ñ°ó3A1~µô0ô‚uEÚ¥G±×¬³$0,XÊû™Ï|†Ú`AŠ:ao¹å–[%¿ä%/Á sê©§²šš½©1±2 Œ4ÄŸ}öÙçwÞùçŸ'äO{ÚÓÞüæ7³uÙ°SN9…%ÙÄ„;ègœc9Ë,W]uUÙüq;Š—·d/tÖrÿå/aû4*s ö.,½¬ÀÌ4êÔöÊ+¯<묳¨ê%—\Â`zЃÞð†7°Ô³Ì§ “ …€oçŸÿügÊE*¼þõ¯gŸ¶2M„ýë_G`­µÖê¼J ­ ëa´4H÷»ß±Ž”¯÷øduŒÈ™ÚxÏ{ÞCLü!?ØÌ È4Ÿ}’‹éóž÷¼—½ìe«¬²J¤©™‰ë@6°¤–Ä<!æV~ò“Ÿà¬ûŸÿü‡nzæ3ŸùÜç>7Ê¥Õ4;|<'\B]Ì™ÓåŸãšÏ -¥™4ðÕ¯~5þêäÌ$ü1>îq{Å+^ñ¤'=)Šæ“í¬,XÀƒ1Ô$Dž•g#o™4P‡O '<ðä¯äI5è"ð€ÐGåÕ:™gz\Öi;­ãïºë®[o½õüàóËâ÷˜i°Eÿi§F€&wºœðkågËÕM6Ù„©œšÄjv?ÌC=4*³Ç{@#ŸüvHÕ£¶ b72’5ª|%Û:0ÿú׿²í67n¹å–,¸àÁþ¾Àš \H¶Øb â1&ã”^É™¯üè>ÿùÏÃ¥Ñ0'/îØéàMozS¦çEv:ˆÝ¼?þñó”æ%3H@-=ƒð-z´ ðÖóOZ±S ŸC[Ã1®X®‘FÅMÔL¸ñoßHƒ †0ë¨KÍpä‘GF‚þóŸe|þ°Zô¾0®¢Æ³2™žÀ ^ðCy a¶2‹²«6ã<-òæ-“Öö˜cŽ©(ü¨ÀûÞ÷¾2ŸÈq3Ûn—5Œ0+B>ø`t]|¥†‘‘1ˆó¬R%€ÿüïþCkq鳟ýlgþÄÐÞ¼%?ÑîÇÈ€„\'+ò¬IAcz§ÜÎJ¾ímo#·®F[1eý#Pÿ9yüãOq!†Nã³R4ó»îºkf>‘Wí'?ùÉLÓ(P“®Q1´¬,‚9—|ÆÂ%8¯ÖÌ<Ò3sôØÇ>¶Ò|¾²¨ž¤y83Ûì,VífdpºŽLèG"ë«ßYpŽÌùEc›ÍB' <ç9ωôLHEšF•/³­ ó‹_üb”ȶgl ˜'ÿ%z»z™s„Ï<ó̸‘‰¶ˆÙh£ˆ™;w.sezöí”?øÁÊxÃ3H ö­ _˜4™ÁjX´FŽÀ=F®ÆVX­"Zš½¯00\cËÆÜ¨ öL4ü³‡% Ù† sCþEdˆ†)ÅÒ©vZEo)›òµ‡–ŽÕ¼Œ?°¾Fq©N9*Æ‹ñZúÒK/E3g<‰K“,¦ÅRf¤–Îô¨ìl¥-+1vª²¥±.1oÁ ü˜Ç<¦Ü£‹±r¦ï]ÛÔ?äÆƒRiDÚf›mÊŒ§.ìfY4ºŽå‘ù5©¥ÙŽ(#1ç†Zκu L$€)(Òã Pº‹SaôU  ‘rÒ¬HVŸ@*œ4"!úЇò™mÄáW\‘%âåA_cËö6zNBK“'û·Eþ÷¹Ï}8Ä»ì¬ÓO?=òOE”µŠ þË Ô ×çë)”ÅH‰ÄÅÃ"êÀFte¹õ3ç.fµÒã€Üx\ó÷™s,Sfžµ4Z:‰5ꬴвþ?ëÓ#>Ò4©¨HÖ¨ò™s}˜©¥©a9%ǃÓaå;$‹` Æ@‘xŽÄvVX¡3MБòCúPå’_gŠ?Éè:n¦ê`¹EjéQì5ëÜ"œ&ÿ¼Íì'>{xKbëC¹¡å0£!PV8@2dä#ù¨G=Š­q-Œ’o1xÂ4g)æYD&æÇg<ã 6»~ö³Ÿ¥Wü'ŸÿüçcYÅH‹hÄ•5…/]c*þ„ø$ãLˆçêk^óš×¾öµXf0`â‹á[Þò<ŸY±ÌD£d†qc±>áèËf¬¦HJö…fÛXœ«wØaŽ3e܆x)¶A| '}Œr,>‘–Æa2wà «#y†:Íþ‚ žœœªÊ<WÓÑ—†ÏŸ??ê€].ã°2ñ¥–ÆpÇñ9̘p‰©”yÚ‹Gz>9{&Šf̈Ce\bæ%]gK#pÚâ YQ4Cç0ë1Þ"Û´"âü™EãÞ™­¦ÉxVs‰»°ó¨ä%©¥çÍ›Wª\.ñ€Ñ}Çw—2ç2@Ûñgæ/œc™#ˆ¯L0E2ž( a‹5SK±µ—Ø?œÈI³jD E bé 6—¢¦½xø£\>é5ö1ÌDì¶Ûnq‰øìwîÊç¡ÎsZ:òá×—Ó1Ó³‰‘lPÄBL1p/{cÞ$¶)K¦Œ.ǘc;¢Ê%¤/L`ÖFY±N!à»ÎîDüáÑÀ†Þé œ :HSŒÀüáÉÌ öJ¶‹˜®*‰›ÈÛ™Á«"¿H­‹rÈß#¦9ZÊW~•Ù÷s‚•;½"+8`êG¥c\å·™ª,®.Íg|p'a =vÅ£§ð4¡#xz©çÉå\_›fŽ@´…_bÅÓxŽ˜ÂC)ɦð³QgñÌ:”k=zÔ‡E¾"8IÃJŸœ±êqKåRS˜åí¼”Ê~ÁA‰ s‹ôó¥Í?çâýC&¸EDV][zÿûß?Ô8ÉxDËB»†™­ãÇÂÌ_º¦4²?ùO/Šþrð. ´“€Zºýn«ÛN7< m§0íG°!8eº3³Î]¦rZ„Ad:c程çIQy ò —†­hibðx¼âù+Ó`™¤Ü_þò—±ßxy© Wj›UÅ)#|™2ÂemÑÒlûñøäWä\Ä#œð¾.¥ræÉŽ…²üá&Š YŽ[8¥qnÉ‚«3J;Üæ½•S ôËHJ9ÁºS¶p+/õ7%¹¡ä3\¾ù£&ØâÒÏ<Ó¤¡2c²è¦ÏIîå–Y@ÿð‰j¥ËÂF]^í;œ•¬ù„dA¸—ó4Ò)é(Á²VadM3Ïǯë| óPø2ÿ) gUëtª˜U!¬G ØÏÓó¥G}HBš4±®¡Gâ®—²†M{ –\’9ó+ŽŸØW¾ò•ÔÒ<Ûñãb‹„ôxOGî< +3!‘ÌêÖÑÒü›UÞ^ #°qm¸[hÿOi§äî(•ydyi¼ÓUµtåéò«zPK÷æãU H@÷`ø‰É‚¡1,g¸™K@ój*–dì*6—Xþ]I\~eµ!ʧ”=¹§T™ŒpƧ–ŽH ,ÕHPŒÆ©H+÷V¾Vj‹­8°ª“¿Jâò+Ca¾²¼9"YN_^Í0#]¦orñgÆ—Œê,§çHïáÄŽwhL`ÍÃVÏ a/oé†Þ‰'žÈþFhr*–²¿kâ‰"›È|:Õr^ê:ËW#°4ÏIº‹WòœŽ¯}óá÷‚ 3mõÌ2pèT¥†2çQ‰£ã[FéJÎSûµÎÂ#´4oƒ:®yØMÿ£ú7‚YæWÒ±Œ!Ì‹‚)­ßüæ7·Jg³ "Yövfýò–šZ:Íו‚}Eþ1×èw%@÷ñ®îzÉH H +µtW,FJ@øÖÙ–ŽŽÿ»0qˆIÅèÄŽëáÎ:ñMÿ…q!+ÖÊý–ôØycÚjbtNîeÓ5ü¢Ë²!û1Z–+!ËÜ:kË ç2ApMë"M¹˜ËË#%v¼¸—¥¼åÎÛq•:c‹æºØ@ŽHìxHñ»Gš®Ÿ¸cO›g¤ÁË”åßPEt½«3²)Îú‹Yšçdƒà¥áË‚&M¦Kr){D6ÊÍÓ%ýIÍþº)îꣳÐÒx^p;jçBŒÎÊäô»v^­Óf™ae1/±Ëc,U`ÀXZÞÌs•49íÕÕΙs…550Z|øãÍV?0 éáÆóu†ú”u(÷šÊ‹:ûÝ€$Е€Zº+#%  ,<ËÃÈ mŒ7oXoØR®GîÜX iR¢=:Õ&ña&ûœ^[4#ÙßÇi €ˆUœŸIÆ:U¤ Ê_gmÓâ¤WÒ—_Ú^šiŒ*ÓD¸âÖ~ÄGÄY»¸—Lj¼ób8Ëg¿ýö‹{±3÷ÖÒÁ|[;7R% Ø4žy„p(Å¿¾–nJ kåûˆ\šç¤âú¾¥o>ôNe¶ècI|fH•2\çñ£s™DÀ:ͳ‡H ×wÓrbhÒú謔ÄLl±¾½sš nLµáßAsø™D5r/ÀÞµê¬|#˜eæ]×9“€ÝÅ8õ¬ßgŸ}ĉÜlÏ«&sÈÛ»ºÆd=ó(„¼±k T×dFJ@0µô€[œ$Ð HÙÎv²—5+E‰gtÛuîÍŒ£Óiœ»Ø¡ª3ÃÈøô¬F-G²£Ž:Š3ÃÊ[°ÿàü\Æd¸³¶ø®ÇUVxæ)>™žûx…½+Œ9^Ï*•‰ c….­‘ĤWy¹Íuå.¾R7ZZ—ÚÎe ËbCHs¤6+®+K‘»®Ö.o/ÃM ”÷.e¸ïçd)Ëmt{|°ƒaºŒ æzPYì zäœ6ƒ´«7Êœy"–é²9×q§æD¶áWBÑlØK²¥Df8dá®W3Yšvx¦øíÐvöÛC”–òóggÎôÂï÷ „ôùçŸO&Ø€°LI¸kõ:+ßfYDçk!®ò³Â¢Î~o¸Öó+ã·¿¬Üu,’õÖÒ)°3YY´a H@£B`ò…g£Òë) H`È °GWÔ°ë6`gžy&N•˜y+»@sËAÔuÜœG:#I†fˆM˜p´FœThp¸T¸ÂVâ»~%ðï!ÎÖ^IÆVÞT•?²åM‹ô§Ÿ~: )+‰ùJ“1²•ñ¥–æ®òRÆr‚HŒÌå¥Îp¦ÜrË-+B€6 jJ ³2}Çôýœô]b7öLJ}¡YÇNq¬þÅ{­s1tÜ®»îšÕhšyœjÆí,°ÏL2Àj^޶Fd†{ñéåÁO&‹óMyÌUåRׯM;‹:°©xd…¨fG½2[¦À8\ŠÉ`ü¨óðm¹̤iå›Â,ë3Q7ï¸Äd‹]+/®t®éº":XÔÒA6^  /ü“€$ N¹à¹‚‡-3!€fËs¤P}q)—Ó£KYéyNRè’!R6/MD¬ig‘!‡ŸåRd*Œ§t–Bæ3-â“Q®&e•o3wU`²#+Ö@¢S7êëGX‹QICGpé¯\âl°¸ •K~•€$0ZîòòO€: L¹–¦οñ%Ê!&¢WFÏ)¤W_}uÌ8Q™RKs»Âì¿ÿþœê|衇–—°neå3dn¢låÍH}ûí·Ï]ÊÈ=ÃÙ°xfrW-gn$ƆI,ifpÌ®fXŸr«êÝwß=‹Æ$žû qxì.»ì‚¼<úè£ñüŒqs4œÏÔÒ‘Æ+â9^›á;@p÷Åw§vÊå—hæŠÎ£wpçw¦&¥EÔH¬þð‡äYÙ0™cÃðMÍšwÍŠ«L¡–¦èFÏIZ:Í¡LÄl³Í6,YÇ¿ Ô 4⃀̵îH»²ˆ´gò‹c¸¸Ô(snÁQ"0~YXMyìéz~/iöäÈy4sz>³<§—Ç&›l’O)RK÷ Ö¨³¢u¬üÏ-Çy¶éA¶ ¤Îµ4·°§q""+Äãû² •±‘ñD2|sYg(}»í¶Ëx”LfØ5«¸ZŸÀÔjéFÏIZkmE°•32IfÒ@}>)81E†EfÎ÷|¶Øb‹Œ¯Ÿ9·à Q>ÞÙÑ Πʜ pjZ%M|e¦éàƒŽpLÐÄ]=ˆ5ꬬSféÞµ>D2u…ÌÎû¨<·Ô‡YSKÓ‰9§Ö©–£¶o¼1õLJ™”²þÌFc;×e2À†Ÿ€ZzøûÈJ@3C ?-Û€!{Tš$f±ÒZ‹1Μ%[Þ•ZšC’÷ÜsÏ\'É0”{q¥Æ×ºLa2gs Uã“ʰc0î£'Ÿ|rXŠˆQ줵å$*¬¸…Œ—8R<­|e¨*Âòt"Ü›o¾9ùÄŒ¨(pð@%Ë:G˜ÏðÖî4yQ"f«­¶â®p›'eTÇw—lQGOúÓ/¾øbä¢ÓÒ¹t¢¬"ÚRKïµ×^qcù[Íuõñ¦ÑØôñÎk>'¡¥[NRd&]}¼¹J…¹1]*ÆÏ¼}Ò@>i‡¤¥L¸tæY: r3AÌ31O8ðs-CP &ß4wgbx@¤q˜Ä<3!ò²Ë.‹{K-MúÞÄjvVY*ÌF:_D¡ñ‰ Þ›m¶YFV*Ó´ò”[& ‰B1Ô—µí óC‹”hãΫÄà 8£¾L°é¦›Ïüû–ñ†%  ŒYÔ8Þt~J@À °Ð÷·¿ý-F9Fÿà„¬”ŽÅ£›HÁ ú‘ BFŸˆê6Ú(ͼ•»øŠ¦ÂãKëÙâ˜qy¦aaN¬%7â3²N€Ü¨-ÂùÍ,¶âwñ/  i€d¦ Gâ¸DYŠñ?–Sb0Gc0ãÐßY8h'*aX±1U:ŸSÇb¡aÈ9­j“Ö-4"P3Ï:É&}Nêd2€4ÓʧQælÂÇ/…§hƒ 6`^©ìý ‡xP™Ãâ1cvr›bIDATõ~ço°’~Ò¯}tu`¶ˆÇþª«®â7O>ûöǬ³`œ;Eš<Åeú®|#˜e‰•0ç{±q:sUÔ¼œ>ËdìàÀ¤ÝÁ|r:ây-ÐF~ïì¯6‘w@æ`@ÀPKyY= H ½*Zº½ lùô`~áÒK/­Yþáy¢xÍ[LÖ7“N:‰ÕÚéyÞw>S{#«38œÆ•ø®_QG]ã{œñÎN ,€¿ð i,*º‡& X°Bï»ï¾ûí·ßÖ[oÍÑbi}~øácÏÊJ@m  ]º ½l% ‘$ ]z$»ÍJK`| °Š›ƒÊ£}ì8pÞyçåQg5šÍ™|á¾vØopWo»í¶‡rÈDé—€$0B´KPgYU H ]ØßH–²…X»Znk% ¡$À¾ƒìsÎöï8i³ýþ¤BšF°ºž ½;ì0¶ýc#@nÜ{g²qVJ@cÚ¥#ó H@€$ÐNØ¥9?¬Îæüíäc«% VPK·ª»m¬$  H@€$  LÉÏüœ‚BÌB€$  H@€$0FÔÒcÔ™6E€$  H@€B@-=Ì" H@€$  H@cD@-=FiS$  H@€$  H` ÔÒÁl!€$  H@€$0FÔÒcÔ™6E€$  H@€B@-=Ì" H@€$  H@cD@-=FiS$  H@€$  H` ÔÒÁl!€$  H@€$0FÔÒcÔ™6E€$  H@€B@-=Ì" H@€$  H@cD@-=FiS$  H@€$  H` ÔÒÁl!€$  H@€$0FÔÒcÔ™6E€$  H@€B@-=Ì" H@€$  H@cD@-=FiS$  H@€$  H` ÔÒÁl!€$  H@€$0FÔÒcÔ™6E€$  H@€B@-=Ì" H@€$  H@cD@-=FiS$  H@€$  H` ÔÒÁl!€$  H@€$0FÔÒcÔ™6E€$  H@€B@-=Ì" H@€$  H@cD@-=FiS$  H@€$  H` ÔÒÁl!€$  H@€$0FÔÒcÔ™6E€$  H@€B@-=Ì" H@€$  H@cDàÿsñˆßOgIEND®B`‚libzdb-3.4.0/doc/api-docs/closed.png000644 000765 000024 00000000204 14652557242 017312 0ustar00haukstaff000000 000000 ‰PNG  IHDR à‘KIDATxíÝm @!†ÑGk™É7À-`&séts¦Àñþòð@åk}ª2€… P%Á_Ëþ¿N² .:0Dk¥‹Â›x" Ö›)¡xÒ5õIEND®B`‚libzdb-3.4.0/doc/api-docs/minusd.svg000644 000765 000024 00000001106 14652557242 017355 0ustar00haukstaff000000 000000 libzdb-3.4.0/doc/api-docs/splitbard.png000644 000765 000024 00000000432 14652557242 020030 0ustar00haukstaff000000 000000 ‰PNG  IHDRM¸¿áIDATxíÝ1jPFÑE$H3’f¬é´°Ò ˆÖB¬Ü€PÜ…®Õü 6÷qß_¾EÜ=o^¾ûvõøÙåÃ'ç‡{÷/îÀþ(ÂE˜¢SaŠ"LQ„)Š0E¦(ÂE˜¢SaŠ"LQ„)Š0E¦(Âý r8Þ¼¾ý~º×¯>žî©_«3gOŸ¿ÿpûéÁåÕç¯?þÛêÅÛ/§Õ£ë7¿Wø»(ÂE˜¢SaŠ"LQ„)Š0E¦(ÂE˜¢SaŠ"LQ„)Š0E¦(ÂE˜¢?ï'œV+qÄ.×äIEND®B`‚libzdb-3.4.0/doc/api-docs/folderopend.svg000644 000765 000024 00000006216 14652557242 020366 0ustar00haukstaff000000 000000 libzdb-3.4.0/doc/api-docs/mysqloptions.html000644 000765 000024 00000011100 14652454540 020774 0ustar00haukstaff000000 000000 libzdb | MySQL Options

MySQL URL properties

Property Description Type
user The MySQL login ID. This property is required unless the auth-part of the URL was used.

Example: user=root

String
password The password for user. This property is required unless the auth-part of the URL was used.

Example: password=swordfish

String
connect-timeout Specifies the connect timeout in seconds. This is the duration to wait when establishing a connection to the database. The default value is 3 seconds. It is a checked runtime error to use a value less than or equal to 0.

Example: connect-timeout=5

Integer (seconds)
compress Use the compressed client/server protocol. Default is false.

Example: compress=true

Boolean (true/false)
use-ssl Used for establishing secure connections using SSL. OpenSSL support must be enabled/linked in the client library. Default is false.

Example: use-ssl=true

Boolean (true/false)
charset Use this character set when communicating with the server. MySQL charsets, e.g. "utf8" or "latin1".

Example: charset=utf8

String
auth-plugin The name of the authentication plugin to use. For MySQL 8 or later

Example: auth-plugin=mysql_native_password

String
secure-auth Whether to connect to a server that does not support the password hashing used in MySQL 4.1.1 and later. Default is false. Not applicable to MySQL 8 or later

Example: secure-auth=true

Boolean (true/false)
unix-socket Connect to the database server over a unix socket on localhost. The unix-socket value should be the full path to the socket file. MySQL use default the file /tmp/mysql.sock. Note that this is different from the PostgreSQL unix-socket parameter which specify the path to the directory where the socket file is located.

Example: unix-socket=/tmp/mysql.sock

String (file path)
fetch-size The number of rows that should be fetched from the database when more rows are needed for ResultSet objects. Default is 100 rows. Rows are retrieved in-memory. A larger value will make libzdb use more memory.

Example: fetch-size=10

Number [1..int.max]
libzdb-3.4.0/doc/api-docs/tab_s.png000644 000765 000024 00000000270 14652557242 017134 0ustar00haukstaff000000 000000 ‰PNG  IHDR$ÇÇ[IDATxíÝ ‚@@Ñ£?Q…¤"š¢%¦I‘—Šf–6[´HÃäQƒ<Þâõþ]ždr Í’s?ˆO=Ñññw'ÌF‡Ž íðö-~rÃ[œèŠ­ì¬mƒÖ¬ƒݯнŠÕF)Yº% §`nÌ,9B ™’©!ÑŒ\ý<Å#üîî•IEND®B`‚libzdb-3.4.0/doc/api-docs/files.html000644 000765 000024 00000011136 14652557242 017331 0ustar00haukstaff000000 000000 File List ⬅
File List
Here is a list of all files with brief descriptions:
[detail level 12]
  zdb
 Connection.hA Connection represents a connection to a SQL database system
 ConnectionPool.hA ConnectionPool represents a database connection pool
 Exception.hAn Exception indicates an error condition from which recovery may be possible
 PreparedStatement.hA PreparedStatement represents a single SQL statement pre-compiled into byte code for later execution
 ResultSet.hA ResultSet represents a database result set
 SQLException.hSignals that an SQL specific exception has occurred
 URL.hURL represents an immutable Uniform Resource Locator
 zdb.hInclude this interface in your C code to import the libzdb API
 zdbpp.hZdbpp.h - C++ Interface for libzdb

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/_2Users_2hauk_2src_2libzdb_2zdb_2zdb_8h-example.html000644 000765 000024 00000034041 14652557242 027076 0ustar00haukstaff000000 000000 /Users/hauk/src/libzdb/zdb/zdb.h ⬅
/Users/hauk/src/libzdb/zdb/zdb.h

Provides a default value if the expression is NULL, 0, or negative.

Provides a default value if the expression is NULL, 0, or negative.The valueOr macro is a convenient way to handle potentially unset or error values returned by libzdb functions. It works with pointers, integers, and floating-point types.

This macro evaluates the expression only once, making it safe to use with function calls or expressions that may have side effects.

For pointers:

  • Returns the default value if the expression evaluates to NULL.
  • Otherwise, returns the original pointer value.

For integers and floating-point types:

  • Returns the default value if the expression evaluates to 0 or any negative value.
  • Otherwise, returns the original numeric value.
Parameters
exprThe expression to evaluate (typically a libzdb function call)
default_valueThe value to return if expr is NULL, 0, or negative
Returns
If expr is not NULL, 0, or negative, returns expr. Otherwise, returns default_value.
Note
This macro uses a GNU C extension and is compatible with GCC and Clang. It may not work with other C compilers.

// Usage with string (pointer) return type const char* host = valueOr(URL_getHost(url), "localhost"); printf("Host: %s\n", host);

// Usage with integer return type int port = valueOr(ResultSet_getInt(r, 1), 5432); printf("Port: %d\n", port);

// Usage with floating-point return type double percent = valueOr(ResultSet_getDouble(r, 1), 1.0); printf("Percent: %.1f\n", percent);

/*
* Copyright (C) Tildeslash Ltd. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* In addition, as a special exception, the copyright holders give
* permission to link the code of portions of this program with the
* OpenSSL library under certain conditions as described in each
* individual source file, and distribute linked combinations
* including the two.
*
* You must obey the GNU General Public License in all respects
* for all of the code used other than OpenSSL.
*/
#ifndef ZDB_INCLUDED
#define ZDB_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
/**
* Include this interface in your C code to import the libzdb API.
*
* @file
*/
/* --------------------------------------------------------------- Version */
#define LIBZDB_MAJOR 3
#define LIBZDB_MINOR 4
#define LIBZDB_REVISION 0
#define LIBZDB_VERSION "3.4.0"
#define LIBZDB_VERSION_NUMBER ((LIBZDB_MAJOR * 1000000) + (LIBZDB_MINOR * 1000) + LIBZDB_REVISION)
/* ------------------------------------------------- libzdb API interfaces */
#include <SQLException.h>
#include <URL.h>
#include <ResultSet.h>
#include <Connection.h>
#include <ConnectionPool.h>
#ifdef __cplusplus
}
#endif
#ifndef __cplusplus
/* --------------------------------------------------------- Utility Macro */
/**
* @brief Provides a default value if the expression is NULL, 0, or negative.
*
* The valueOr macro is a convenient way to handle potentially unset or error
* values returned by libzdb functions. It works with pointers, integers, and
* floating-point types.
*
* This macro evaluates the expression only once, making it safe to use with
* function calls or expressions that may have side effects.
*
* For pointers:
* - Returns the default value if the expression evaluates to NULL.
* - Otherwise, returns the original pointer value.
*
* For integers and floating-point types:
* - Returns the default value if the expression evaluates to 0 or any negative value.
* - Otherwise, returns the original numeric value.
*
* @param expr The expression to evaluate (typically a libzdb function call)
* @param default_value The value to return if expr is NULL, 0, or negative
*
* @return If expr is not NULL, 0, or negative, returns expr.
* Otherwise, returns default_value.
*
* @note This macro uses a GNU C extension and is compatible with GCC and Clang.
* It may not work with other C compilers.
*
* @example
* // Usage with string (pointer) return type
* const char* host = valueOr(URL_getHost(url), "localhost");
* printf("Host: %s\n", host);
*
* // Usage with integer return type
* int port = valueOr(ResultSet_getInt(r, 1), 5432);
* printf("Port: %d\n", port);
*
* // Usage with floating-point return type
* double percent = valueOr(ResultSet_getDouble(r, 1), 1.0);
* printf("Percent: %.1f\n", percent);
*/
#define valueOr(expr, default_value) \
({ \
__typeof__(expr) _t = (expr); \
(_t < 0 || _t == 0) ? (default_value) : _t; \
})
#endif /* not __cplusplus */
#endif
A ConnectionPool represents a database connection pool.
A Connection represents a connection to a SQL database system.
A PreparedStatement represents a single SQL statement pre-compiled into byte code for later execution...
A ResultSet represents a database result set.
Signals that an SQL specific exception has occurred.
URL represents an immutable Uniform Resource Locator.

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/tab_a.png000644 000765 000024 00000000216 14652557242 017112 0ustar00haukstaff000000 000000 ‰PNG  IHDR$ÇÇ[UIDATxíK €0C'o¤(Šˆ[Žà%Üxÿ#Ù©­ç ùÁöó¦W¦e# 3t I 3+¼øEã~\D½9¯Ûàè’wM·¿öÿ}Yõ_êA4Yžã}IEND®B`‚libzdb-3.4.0/doc/api-docs/functions_func.html000644 000765 000024 00000025703 14652557242 021257 0ustar00haukstaff000000 000000 Data Fields - Functions ⬅
Here is a list of all functions with links to the structures/unions they belong to:

- a -

- b -

- c -

- e -

- g -

- h -

  • host() : URL

- i -

- l -

- n -

- p -

- q -

  • queryString() : URL

- r -

- s -

- t -

  • toString() : URL

- u -

  • URL() : URL
  • user() : URL

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/plusd.svg000644 000765 000024 00000001270 14652557242 017207 0ustar00haukstaff000000 000000 libzdb-3.4.0/doc/api-docs/plus.svg000644 000765 000024 00000001270 14652557242 017043 0ustar00haukstaff000000 000000 libzdb-3.4.0/doc/api-docs/URL_8h.html000644 000765 000024 00000114025 14652557242 017271 0ustar00haukstaff000000 000000 URL.h File Reference ⬅
URL.h File Reference

Detailed Description

URL represents an immutable Uniform Resource Locator.

A Uniform Resource Locator (URL), is used to uniquely identify a resource on the Internet. The URL is a compact text string with a restricted syntax that consists of four main components:

protocol://<authority><path><query>

The protocol part is mandatory, the other components may or may not be present in an URL string. For instance the file protocol only use the path component while a http protocol may use all components.

The following URL components are automatically unescaped according to the escaping mechanism defined in RFC 2396; credentials, path and parameter values. If you use a password with non-URL safe characters, you must URL escape the value.

An IPv6 address can be used for host as defined in RFC2732 by enclosing the address in [brackets]. For instance, mysql://[2010:836B:4179::836B:4179]:3306/test

For more information about the URL syntax and specification, see, RFC2396 - Uniform Resource Identifiers (URI): Generic Syntax

Example:

URL_T url = URL_new("postgresql://user:password@example.com:5432/database?use-ssl=true");
// Retrieve and print various components of the URL
printf("Protocol: %s\n", URL_getProtocol(url));
printf("Host: %s\n", valueOr(URL_getHost(url), "Not specified"));
printf("Port: %d\n", valueOr(URL_getPort(url), -1));
printf("User: %s\n", valueOr(URL_getUser(url), "Not specified"));
printf("Password. %s\n", valueOr(URL_getPassword(url), "Not specified"));
printf("Path: %s\n", valueOr(URL_getPath(url), "Not specified"));
// Get a specific parameter value
printf("SSL Enabled: %s\n", valueOr(URL_getParameter(url, "use-ssl"), "false"));
const char * URL_getPassword(T U)
Gets the password from the URL's authority part.
const char * URL_getUser(T U)
Gets the username from the URL's authority part.
T URL_new(const char *url)
Create a new URL object from the url parameter string.
const char * URL_getProtocol(T U)
Gets the protocol of the URL.
const char * URL_getParameter(T U, const char *name)
Returns the value of a URL parameter as a string, or NULL if the parameter does not exist.
int URL_getPort(T U)
Gets the port of the URL.
const char * URL_getHost(T U)
Gets the hostname of the URL.
const char * URL_getPath(T U)
Gets the path of the URL.
#define valueOr(expr, default_value)
Definition zdb.h:107

Macros

#define T   URL_T
 

Typedefs

typedef struct URL_S * T
 

Functions

T URL_new (const char *url)
 Create a new URL object from the url parameter string.
 
T URL_create (const char *url,...)
 Build a new URL object from the url parameter string.
 
void URL_free (T *U)
 Destroy a URL object.
 
Properties
const char * URL_getProtocol (T U)
 Gets the protocol of the URL.
 
const char * URL_getUser (T U)
 Gets the username from the URL's authority part.
 
const char * URL_getPassword (T U)
 Gets the password from the URL's authority part.
 
const char * URL_getHost (T U)
 Gets the hostname of the URL.
 
int URL_getPort (T U)
 Gets the port of the URL.
 
const char * URL_getPath (T U)
 Gets the path of the URL.
 
const char * URL_getQueryString (T U)
 Gets the query string of the URL.
 
const char ** URL_getParameterNames (T U)
 Returns an array of string objects with the names of the parameters contained in this URL.
 
const char * URL_getParameter (T U, const char *name)
 Returns the value of a URL parameter as a string, or NULL if the parameter does not exist.
 
Functions
const char * URL_toString (T U)
 Returns a string representation of this URL object.
 
Class functions
char * URL_unescape (char *url)
 Unescape a URL string.
 
char * URL_escape (const char *url)
 Escape a URL string.
 

Macro Definition Documentation

◆ T

#define T   URL_T

Typedef Documentation

◆ T

typedef struct URL_S* T

Function Documentation

◆ URL_new()

T URL_new ( const char * url)

Create a new URL object from the url parameter string.

Parameters
urlA string specifying the URL
Returns
A URL object or NULL if the url parameter cannot be parsed as a URL.

◆ URL_create()

T URL_create ( const char * url,
... )

Build a new URL object from the url parameter string.

Factory method for building a URL object using a variable argument list. Important: since the '%' character is used as a format specifier (e.g. %s for string, %d for integer and so on), submitting a URL escaped string (i.e. a %HEXHEX encoded string) in the url parameter can produce undesired results. In this case, use either the URL_new() method or URL_unescape() the url parameter first.

Parameters
urlA string specifying the URL
Returns
A URL object or NULL if the url parameter cannot be parsed as a URL.

◆ URL_free()

void URL_free ( T * U)

Destroy a URL object.

Parameters
UA URL object reference

◆ URL_getProtocol()

const char * URL_getProtocol ( T U)

Gets the protocol of the URL.

Parameters
UA URL object
Returns
The protocol name

◆ URL_getUser()

const char * URL_getUser ( T U)

Gets the username from the URL's authority part.

Parameters
UA URL object
Returns
A username specified in the URL or NULL if not found

◆ URL_getPassword()

const char * URL_getPassword ( T U)

Gets the password from the URL's authority part.

Parameters
UA URL object
Returns
A password specified in the URL or NULL if not found

◆ URL_getHost()

const char * URL_getHost ( T U)

Gets the hostname of the URL.

Parameters
UA URL object
Returns
The hostname of the URL or NULL if not found

◆ URL_getPort()

int URL_getPort ( T U)

Gets the port of the URL.

Parameters
UA URL object
Returns
The port number of the URL or -1 if not specified

◆ URL_getPath()

const char * URL_getPath ( T U)

Gets the path of the URL.

Parameters
UA URL object
Returns
The path of the URL or NULL if not found

◆ URL_getQueryString()

const char * URL_getQueryString ( T U)

Gets the query string of the URL.

Parameters
UA URL object
Returns
The query string of the URL or NULL if not found

◆ URL_getParameterNames()

const char ** URL_getParameterNames ( T U)

Returns an array of string objects with the names of the parameters contained in this URL.

If the URL has no parameters, the method returns NULL. The last value in the array is NULL. To print all parameter names and their values contained in this URL, the following code can be used:

const char **params = URL_getParameterNames(U);
if (params) {
for (int i = 0; params[i]; i++)
printf("%s = %s\n", params[i], URL_getParameter(U, params[i]));
}
const char ** URL_getParameterNames(T U)
Returns an array of string objects with the names of the parameters contained in this URL.
Parameters
UA URL object
Returns
An array of string objects, each string containing the name of a URL parameter; or NULL if the URL has no parameters

◆ URL_getParameter()

const char * URL_getParameter ( T U,
const char * name )

Returns the value of a URL parameter as a string, or NULL if the parameter does not exist.

If you use this method with a multi-valued parameter, the value returned is the first value found. Lookup is case-sensitive.

Parameters
UA URL object
nameThe parameter name to lookup
Returns
The parameter value or NULL if not found

◆ URL_toString()

const char * URL_toString ( T U)

Returns a string representation of this URL object.

Parameters
UA URL object
Returns
The URL string

◆ URL_unescape()

char * URL_unescape ( char * url)

Unescape a URL string.

The url parameter is modified by this method.

Parameters
urlan escaped URL string
Returns
A pointer to the unescaped url string

◆ URL_escape()

char * URL_escape ( const char * url)

Escape a URL string.

Converts unsafe characters to a hex (HEXHEX) representation. The following URL unsafe characters are encoded: <>"#%{}|^ []` as well as characters in the interval 00-1F hex (0-31 decimal) and in the interval 7F-FF (127-255 decimal). If the url parameter is NULL then this method returns NULL, if it is the empty string "" a new empty string is returned. The caller must free the returned string.

Parameters
urla URL string
Returns
The escaped string.

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/namespaces.html000644 000765 000024 00000010013 14652557242 020337 0ustar00haukstaff000000 000000 Namespace List ⬅
Namespace List
Here is a list of all namespaces with brief descriptions:
[detail level 12]
 Nzdb
 Nversion
 CConnectionRepresents a connection to a SQL database system
 CConnectionPoolRepresents a database connection pool
 CPreparedStatementRepresents a pre-compiled SQL statement for later execution
 CResultSetRepresents a database result set
 Csql_exceptionException class for SQL related errors
 CURLRepresents an immutable Uniform Resource Locator

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/tab_b.png000644 000765 000024 00000000251 14652557242 017112 0ustar00haukstaff000000 000000 ‰PNG  IHDR$ÇÇ[pIDATxíÝMƒ EáÇ»ÐÔ¸¸u`âÀ´V0РÆ}:t]DÁ²s¿ä®‚¶ýËu¥ø|’xùî½À>ÿ1»& mÄ8ÜSÙÑxÜLÀUûšÞ²ÄiE–ŠåOs„¢’nxàÒêÓKN²~jIEND®B`‚libzdb-3.4.0/doc/api-docs/classzdb_1_1URL.html000644 000765 000024 00000067131 14652557242 021065 0ustar00haukstaff000000 000000 URL ⬅

Detailed Description

Represents an immutable Uniform Resource Locator.

A Uniform Resource Locator (URL), is used to uniquely identify a resource on the Internet. The URL is a compact text string with a restricted syntax that consists of four main components:

protocol://<authority><path><query>
constexpr std::string_view protocol() const noexcept
Gets the protocol of the URL.
Definition zdbpp.h:402

The protocol part is mandatory, the other components may or may not be present in an URL string. For instance the file protocol only use the path component while a http protocol may use all components.

The following URL components are automatically unescaped according to the escaping mechanism defined in RFC 2396; credentials, path and parameter values. If you use a password with non-URL safe characters, you must URL escape the value.

An IPv6 address can be used for host as defined in RFC2732 by enclosing the address in [brackets]. For instance, mysql://[2010:836B:4179::836B:4179]:3306/test

For more information about the URL syntax and specification, see, RFC2396 - Uniform Resource Identifiers (URI): Generic Syntax

Example:

URL url("postgresql://user:password@example.com:5432/database?use-ssl=true");
// Retrieve and print various components of the URL
std::cout << "Protocol: " << url.protocol() << std::endl;
std::cout << "Host: " << url.host().value_or("Not specified") << std::endl;
std::cout << "Port: " << url.port() << std::endl;
std::cout << "User: " << url.user().value_or("Not specified") << std::endl;
std::cout << "Password: " << (url.password().has_value() ? "Specified" : "Not specified") << std::endl;
std::cout << "Path: " << url.path().value_or("Not specified") << std::endl;
// Get a specific parameter value
auto use_ssl = url.parameter("use-ssl").value_or("false");
std::cout << "SSL Enabled: " << (use_ssl == "true") << std::endl;
Represents an immutable Uniform Resource Locator.
Definition zdbpp.h:333

Represents an immutable Uniform Resource Locator. More...

Public Member Functions

 URL (const std::string &url)
 Creates a new URL object from the given URL string.
 
Properties
constexpr std::string_view protocol () const noexcept
 Gets the protocol of the URL.
 
constexpr std::optional< std::string_view > user () const noexcept
 Gets the username from the URL's authority part.
 
constexpr std::optional< std::string_view > password () const noexcept
 Gets the password from the URL's authority part.
 
constexpr std::optional< std::string_view > host () const noexcept
 Gets the hostname of the URL.
 
constexpr int port () const noexcept
 Gets the port of the URL.
 
constexpr std::optional< std::string_view > path () const noexcept
 Gets the path of the URL.
 
constexpr std::optional< std::string_view > queryString () const noexcept
 Gets the query string of the URL.
 
std::vector< std::string_view > parameterNames () const noexcept
 Gets the names of parameters contained in this URL.
 
std::optional< std::string_view > parameter (const std::string &name) const noexcept
 Gets the value of the specified URL parameter.
 
Functions
constexpr std::string_view toString () const noexcept
 Returns a string representation of this URL object.
 

Constructor & Destructor Documentation

◆ URL()

URL ( const std::string & url)
explicit

Creates a new URL object from the given URL string.

Parameters
urlA string specifying the URL.
Exceptions
sql_exceptionif the URL cannot be parsed.

Member Function Documentation

◆ protocol()

std::string_view protocol ( ) const
nodiscardconstexprnoexcept

Gets the protocol of the URL.

Returns
The protocol name.

◆ user()

std::optional< std::string_view > user ( ) const
nodiscardconstexprnoexcept

Gets the username from the URL's authority part.

Returns
An optional containing the username or std::nullopt if not found.

◆ password()

std::optional< std::string_view > password ( ) const
nodiscardconstexprnoexcept

Gets the password from the URL's authority part.

Returns
An optional containing the password or std::nullopt if not found.

◆ host()

std::optional< std::string_view > host ( ) const
nodiscardconstexprnoexcept

Gets the hostname of the URL.

Returns
An optional containing the hostname or std::nullopt if not found.

◆ port()

int port ( ) const
nodiscardconstexprnoexcept

Gets the port of the URL.

Returns
The port number of the URL or -1 if not specified.

◆ path()

std::optional< std::string_view > path ( ) const
nodiscardconstexprnoexcept

Gets the path of the URL.

Returns
An optional containing the path or std::nullopt if not found.

◆ queryString()

std::optional< std::string_view > queryString ( ) const
nodiscardconstexprnoexcept

Gets the query string of the URL.

Returns
An optional containing the query string or std::nullopt if not found.

◆ parameterNames()

std::vector< std::string_view > parameterNames ( ) const
nodiscardnoexcept

Gets the names of parameters contained in this URL.

Returns
A vector of parameter names, or an empty vector if no parameters.

◆ parameter()

std::optional< std::string_view > parameter ( const std::string & name) const
nodiscardnoexcept

Gets the value of the specified URL parameter.

Parameters
nameThe parameter name to lookup.
Returns
An optional containing the parameter value, or std::nullopt if not found.

◆ toString()

std::string_view toString ( ) const
nodiscardconstexprnoexcept

Returns a string representation of this URL object.

Returns
The URL string.

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/nav_fd.png000644 000765 000024 00000000251 14652557242 017300 0ustar00haukstaff000000 000000 ‰PNG  IHDR8³»pIDATxíMƒ F¾• (‚(jM¬M[⼋÷¿”°ê¢ð’73oî@ã¶s æ¾Â´KôÝÌ‘ y=¥[î>Pî\U/ÜÊgdH­´È¢‡(zNÞCè™´œˆ.Á??;ƒ£þÏïy@AôKïIEND®B`‚libzdb-3.4.0/doc/api-docs/navtree.css000644 000765 000024 00000004063 14652557242 017520 0ustar00haukstaff000000 000000 #nav-tree .children_ul { margin:0; padding:4px; } #nav-tree ul { list-style:none outside none; margin:0px; padding:0px; } #nav-tree li { white-space:nowrap; margin:0px; padding:0px; } #nav-tree .plus { margin:0px; } #nav-tree .selected { background-image: url('tab_a.png'); background-repeat:repeat-x; color: white; text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); } #nav-tree .selected .arrow { color: #9CAFD4; text-shadow: none; } #nav-tree img { margin:0px; padding:0px; border:0px; vertical-align: middle; } #nav-tree a { text-decoration:none; padding:0px; margin:0px; } #nav-tree .label { margin:0px; padding:0px; font: 12px 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; } #nav-tree .label a { padding:2px; } #nav-tree .selected a { text-decoration:none; color:white; } #nav-tree .children_ul { margin:0px; padding:0px; } #nav-tree .item { margin:0px; padding:0px; } #nav-tree { padding: 0px 0px; font-size:14px; overflow:auto; } #doc-content { overflow:auto; display:block; padding:0px; margin:0px; -webkit-overflow-scrolling : touch; /* iOS 5+ */ } #side-nav { padding:0 6px 0 0; margin: 0px; display:block; position: absolute; left: 0px; width: $width; overflow : hidden; } .ui-resizable .ui-resizable-handle { display:block; } .ui-resizable-e { background-image:url('splitbar.png'); background-size:100%; background-repeat:repeat-y; background-attachment: scroll; cursor:ew-resize; height:100%; right:0; top:0; width:6px; } .ui-resizable-handle { display:none; font-size:0.1px; position:absolute; z-index:1; } #nav-tree-contents { margin: 6px 0px 0px 0px; } #nav-tree { background-repeat:repeat-x; background-color: #F9FAFC; -webkit-overflow-scrolling : touch; /* iOS 5+ */ } #nav-sync { position:absolute; top:5px; right:24px; z-index:0; } #nav-sync img { opacity:0.3; } #nav-sync img:hover { opacity:0.9; } @media print { #nav-tree { display: none; } div.ui-resizable-handle { display: none; position: relative; } } libzdb-3.4.0/doc/api-docs/classzdb_1_1Connection.html000644 000765 000024 00000164270 14652557242 022524 0ustar00haukstaff000000 000000 Connection ⬅

Detailed Description

Represents a connection to a SQL database system.

Use a Connection to execute SQL statements. There are three ways to execute statements: execute() is used to execute SQL statements that do not return a result set. Such statements are INSERT, UPDATE or DELETE. executeQuery() is used to execute a SQL SELECT statement and return a result set. These methods can only handle values which can be expressed as C-strings. If you need to handle binary data, such as inserting a blob value into the database, use a PreparedStatement object to execute the SQL statement. The factory method prepareStatement() is used to obtain a PreparedStatement object.

The method executeQuery() will return an empty ResultSet (not null) if the SQL statement did not return any values. A ResultSet is valid until the next call to Connection execute or until the Connection is returned to the ConnectionPool. If an error occurs during execution, an sql_exception is thrown.

Any SQL statement that changes the database (basically, any SQL command other than SELECT) will automatically start a transaction if one is not already in effect. Automatically started transactions are committed at the conclusion of the command.

Transactions can also be started manually using beginTransaction(). Such transactions usually persist until the next call to commit() or rollback(). A transaction will also rollback if the database is closed or if an error occurs. Nested transactions are not allowed.

Examples

Basic Query Execution

Connection con = pool.getConnection();
ResultSet result = con.executeQuery("SELECT name, age FROM users WHERE id = ?", 1);
if (result.next()) {
std::cout << "Name: " << result.getString("name").value_or("N/A")
<< ", Age: " << result.getInt("age") << std::endl;
}
Represents a connection to a SQL database system.
Definition zdbpp.h:1333
ResultSet executeQuery(const std::string &sql, Args &&... args)
Executes a SQL query and returns a ResultSet.
Definition zdbpp.h:1563
Represents a database result set.
Definition zdbpp.h:590
int getInt(int columnIndex)
Gets the designated column's value as an int.
Definition zdbpp.h:731
bool next()
Moves the cursor to the next row.
Definition zdbpp.h:677
std::optional< std::string_view > getString(int columnIndex)
Gets the designated column's value as a string.
Definition zdbpp.h:707

Transaction Example

try {
Connection con = pool.getConnection();
con.execute("UPDATE accounts SET balance = balance - ? WHERE id = ?", 100.0, 1);
con.execute("UPDATE accounts SET balance = balance + ? WHERE id = ?", 100.0, 2);
con.commit();
std::cout << "Transfer successful" << std::endl;
} catch (const sql_exception& e) {
// See note below why we don't have to explicit call rollback here
std::cerr << "Transfer failed: " << e.what() << std::endl;
}
void execute(const std::string &sql, Args &&... args)
Executes a SQL statement, with or without parameters.
Definition zdbpp.h:1525
void commit()
Commits the current transaction.
Definition zdbpp.h:1470
void beginTransaction(TRANSACTION_TYPE type=TRANSACTION_DEFAULT)
Begins a new transaction with optional isolation level.
Definition zdbpp.h:1454
Exception class for SQL related errors.
Definition zdbpp.h:275

Using PreparedStatement

Connection con = pool.getConnection();
auto stmt = con.prepareStatement("INSERT INTO logs (message, timestamp) VALUES (?, ?)");
stmt.bindValues("User logged in", std::time(nullptr));
stmt.execute();
std::cout << "Rows affected: " << stmt.rowsChanged() << std::endl;
PreparedStatement prepareStatement(const std::string &sql)
Prepares a SQL statement for execution.
Definition zdbpp.h:1596
void bindValues(Args &&... args)
Binds multiple values to the Prepared Statement at once.
Definition zdbpp.h:1161

A Connection is reentrant, but not thread-safe and should only be used by one thread at a time.

Note
When a Connection object goes out of scope, it is automatically returned to the pool. If the connection is still in a transaction at this point, the transaction will be automatically rolled back, ensuring data integrity even in the face of exceptions.
Warning
Connection objects are internally managed by the ConnectionPool that created them and are not copyable or movable. Always ensure that the originating ConnectionPool object remains valid for the entire duration of the Connection's use. It is recommended to obtain a Connection, use it for a specific task, and then close it (return it to the pool) as soon as possible, rather than holding onto it for extended periods.

Represents a connection to a SQL database system. More...

Public Member Functions

Properties
void setQueryTimeout (int ms) noexcept
 Sets the query timeout for this Connection.
 
int getQueryTimeout () noexcept
 Gets the query timeout for this Connection.
 
void setMaxRows (int max) noexcept
 Sets the maximum number of rows for ResultSet objects.
 
int getMaxRows () noexcept
 Gets the maximum number of rows for ResultSet objects.
 
void setFetchSize (int rows) noexcept
 Sets the number of rows to fetch for ResultSet objects.
 
int getFetchSize () noexcept
 Gets the number of rows to fetch for ResultSet objects.
 
Functions
bool ping () noexcept
 Pings the database server to check if the connection is alive.
 
void clear () noexcept
 Clears any ResultSet and PreparedStatements in the Connection.
 
void close () noexcept
 Returns the connection to the connection pool.
 
void beginTransaction (TRANSACTION_TYPE type=TRANSACTION_DEFAULT)
 Begins a new transaction with optional isolation level.
 
bool inTransaction () const noexcept
 Checks if this Connection is in an uncommitted transaction.
 
void commit ()
 Commits the current transaction.
 
void rollback ()
 Rolls back the current transaction.
 
long long lastRowId () noexcept
 Gets the last inserted row ID for auto-increment columns.
 
long long rowsChanged () noexcept
 Gets the number of rows affected by the last execute() statement.
 
template<typename... Args>
void execute (const std::string &sql, Args &&... args)
 Executes a SQL statement, with or without parameters.
 
template<typename... Args>
ResultSet executeQuery (const std::string &sql, Args &&... args)
 Executes a SQL query and returns a ResultSet.
 
PreparedStatement prepareStatement (const std::string &sql)
 Prepares a SQL statement for execution.
 
std::optional< std::string_view > getLastError () const noexcept
 Gets the last SQL error message.
 

Static Public Member Functions

static bool isSupported (const std::string &url) noexcept
 Checks if the specified database system is supported.
 

Member Function Documentation

◆ setQueryTimeout()

void setQueryTimeout ( int ms)
noexcept

Sets the query timeout for this Connection.

If the limit is exceeded, the statement will return immediately with an error. The timeout is set per connection/session. Not all database systems support query timeout. The default is no query timeout.

Parameters
msTimeout in milliseconds.

◆ getQueryTimeout()

int getQueryTimeout ( )
nodiscardnoexcept

Gets the query timeout for this Connection.

Returns
The query timeout in milliseconds.

◆ setMaxRows()

void setMaxRows ( int max)
noexcept

Sets the maximum number of rows for ResultSet objects.

If the limit is exceeded, the excess rows are silently dropped.

Parameters
maxMaximum number of rows.

◆ getMaxRows()

int getMaxRows ( )
nodiscardnoexcept

Gets the maximum number of rows for ResultSet objects.

Returns
The maximum number of rows.

◆ setFetchSize()

void setFetchSize ( int rows)
noexcept

Sets the number of rows to fetch for ResultSet objects.

The default value is 100, meaning that a ResultSet will prefetch rows in batches of 100 rows to reduce the network roundtrip to the database. This value can also be set via the URL parameter fetch-size to apply to all connections. This method and the concept of pre-fetching rows are only applicable to MySQL and Oracle.

Parameters
rowsNumber of rows to fetch.

◆ getFetchSize()

int getFetchSize ( )
nodiscardnoexcept

Gets the number of rows to fetch for ResultSet objects.

Returns
The number of rows to fetch.

◆ ping()

bool ping ( )
nodiscardnoexcept

Pings the database server to check if the connection is alive.

Returns
true if the connection is alive, false otherwise.

◆ clear()

void clear ( )
noexcept

Clears any ResultSet and PreparedStatements in the Connection.

Normally it is not necessary to call this method, but for some implementations (SQLite) it may, in some situations, be necessary to call this method if an execution sequence error occurs.

◆ close()

void close ( )
noexcept

Returns the connection to the connection pool.

The same as calling ConnectionPool::returnConnection() on a connection. If the connection is in an uncommitted transaction, rollback is called. It is an unchecked error to attempt to use the Connection after this method was called

◆ beginTransaction()

void beginTransaction ( TRANSACTION_TYPE type = TRANSACTION_DEFAULT)

Begins a new transaction with optional isolation level.

Example usage:

// Use default isolation level
connection.beginTransaction();
// Specify isolation level
connection.beginTransaction(TRANSACTION_SERIALIZABLE);
@ TRANSACTION_SERIALIZABLE
Highest isolation level.
Definition Connection.h:181
Parameters
typeThe transaction isolation level (default: TRANSACTION_DEFAULT).
See also
TRANSACTION_TYPE enum for available options.
Exceptions
SQLExceptionIf a database error occurs or if a transaction is already in progress.
Note
All transactions must be ended with either commit() or rollback(). Nested transactions are not supported.

◆ inTransaction()

bool inTransaction ( ) const
nodiscardnoexcept

Checks if this Connection is in an uncommitted transaction.

Returns
true if in a transaction, false otherwise.

◆ commit()

void commit ( )

Commits the current transaction.

Exceptions
SQLExceptionIf a database error occurs.

◆ rollback()

void rollback ( )

Rolls back the current transaction.

This method will first call clear() before performing the rollback to clear any statements in progress such as selects.

Exceptions
SQLExceptionIf a database error occurs.

◆ lastRowId()

long long lastRowId ( )
nodiscardnoexcept

Gets the last inserted row ID for auto-increment columns.

Returns
The last inserted row ID.

◆ rowsChanged()

long long rowsChanged ( )
nodiscardnoexcept

Gets the number of rows affected by the last execute() statement.

If used with a transaction, this method should be called before commit is executed, otherwise 0 is returned.

Returns
The number of rows changed.

◆ execute()

template<typename... Args>
void execute ( const std::string & sql,
Args &&... args )

Executes a SQL statement, with or without parameters.

This method can be used in two ways:

  1. With only a SQL string, which directly executes the statement(s).
  2. With a SQL string and additional arguments, which creates a PreparedStatement, binds the provided parameters, and then executes it.
Parameters
sqlThe SQL statement to execute.
args(Optional) Arguments to bind to the statement. These can be of various types, including string-like types, numeric types, blob-like types, time_t, and nullptr.
Exceptions
sql_exceptionIf a database access error occurs or if the types of the provided arguments don't match the expected types in the SQL statement.
Note
When used without arguments, this method is more efficient as it doesn't create a PreparedStatement. When used with arguments, it provides protection against SQL injection.

Example usage:

// Without parameters
con.execute("DELETE FROM users WHERE inactive = true");
// With parameters
con.execute("INSERT INTO users (name, age) VALUES (?, ?)", "John Doe", 30);

◆ executeQuery()

template<typename... Args>
ResultSet executeQuery ( const std::string & sql,
Args &&... args )
nodiscard

Executes a SQL query and returns a ResultSet.

This method can be used in two ways:

  1. With only a SQL string, which directly executes the query.
  2. With a SQL string and additional arguments, which creates a PreparedStatement, binds the provided parameters, and then executes it.
Parameters
sqlThe SQL query to execute.
args(Optional) Arguments to bind to the query. These can be of various types, including string-like types, numeric types, blob-like types, time_t, and nullptr.
Returns
A ResultSet containing the query results.
Exceptions
sql_exceptionIf a database access error occurs or if the types of the provided arguments don't match the expected types in the SQL query.
Note
When used without arguments, this method is more efficient as it doesn't create a PreparedStatement. When used with arguments, it provides protection against SQL injection.

Example usage:

// Without parameters
auto result1 = con.executeQuery("SELECT * FROM users");
// With parameters
auto result2 = con.executeQuery("SELECT * FROM users WHERE age > ? AND name LIKE ?", 18, "John%");

◆ prepareStatement()

PreparedStatement prepareStatement ( const std::string & sql)
nodiscard

Prepares a SQL statement for execution.

This method creates a PreparedStatement object that can be reused with different parameters. It's particularly useful for statements that will be executed multiple times with different values.

Parameters
sqlThe SQL statement to prepare.
Returns
A PreparedStatement object.
Exceptions
SQLExceptionIf a database error occurs during preparation.

Example usage:

auto stmt = con.prepareStatement("INSERT INTO users (name, age) VALUES (?, ?)");
for (const auto& user : users) {
stmt.bindValues(user.name, user.age);
stmt.execute();
}

◆ getLastError()

std::optional< std::string_view > getLastError ( ) const
nodiscardnoexcept

Gets the last SQL error message.

Returns
The last error message as a string view.

◆ isSupported()

static bool isSupported ( const std::string & url)
staticnodiscardnoexcept

Checks if the specified database system is supported.

Parameters
urlA database URL string or protocol.
Returns
true if supported, false otherwise.

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/globals_vars.html000644 000765 000024 00000002716 14652557242 020711 0ustar00haukstaff000000 000000 Globals ⬅
Here is a list of all variables with links to the files they belong to:

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/clipboard.js000644 000765 000024 00000005674 14652557242 017650 0ustar00haukstaff000000 000000 /** The code below is based on the Doxygen Awesome project, see https://github.com/jothepro/doxygen-awesome-css MIT License Copyright (c) 2021 - 2022 jothepro Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ let clipboard_title = "Copy to clipboard" let clipboard_icon = `` let clipboard_successIcon = `` let clipboard_successDuration = 1000 $(function() { if(navigator.clipboard) { const fragments = document.getElementsByClassName("fragment") for(const fragment of fragments) { const clipboard_div = document.createElement("div") clipboard_div.classList.add("clipboard") clipboard_div.innerHTML = clipboard_icon clipboard_div.title = clipboard_title $(clipboard_div).click(function() { const content = this.parentNode.cloneNode(true) // filter out line number and folded fragments from file listings content.querySelectorAll(".lineno, .ttc, .foldclosed").forEach((node) => { node.remove() }) let text = content.textContent // remove trailing newlines and trailing spaces from empty lines text = text.replace(/^\s*\n/gm,'\n').replace(/\n*$/,'') navigator.clipboard.writeText(text); this.classList.add("success") this.innerHTML = clipboard_successIcon window.setTimeout(() => { // switch back to normal icon after timeout this.classList.remove("success") this.innerHTML = clipboard_icon }, clipboard_successDuration); }) fragment.insertBefore(clipboard_div, fragment.firstChild) } } }) libzdb-3.4.0/doc/api-docs/globals_enum.html000644 000765 000024 00000002512 14652557242 020674 0ustar00haukstaff000000 000000 Globals ⬅
Here is a list of all enums with links to the files they belong to:

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/tab_sd.png000644 000765 000024 00000000274 14652557242 017304 0ustar00haukstaff000000 000000 ‰PNG  IHDR$ÇÇ[ƒIDATxíÝ{ ‚0Àáá/›i¾r:'V3"¢ t„.Ôå3é$ß?ß)ÄðþPõ/LÿÄ´GŒ_ÊöN¹»¡›m¯äö2ýˆÚœQëª>²ª©Ù“莤èˆò†HYÂlK˜Ö‰ÁKüHã‡Þ2C)rãÊÀB€ëMæ0“8¸?j  üHZ-IEND®B`‚libzdb-3.4.0/doc/api-docs/namespacemembers.html000644 000765 000024 00000004006 14652557242 021534 0ustar00haukstaff000000 000000 Namespace Members ⬅
Here is a list of all namespace members with links to the namespace documentation for each member:

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/folderopen.svg000644 000765 000024 00000006305 14652557242 020221 0ustar00haukstaff000000 000000 libzdb-3.4.0/doc/api-docs/folderclosed.svg000644 000765 000024 00000003714 14652557242 020532 0ustar00haukstaff000000 000000 libzdb-3.4.0/doc/api-docs/postgresoptions.html000644 000765 000024 00000006053 14652454542 021512 0ustar00haukstaff000000 000000 libzdb | PostgreSQL Options

PostgreSQL URL properties

Property Description Type
user The PostgreSQL login ID. This property is required unless the auth-part of the URL was used.

Example: user=root

String
password The password for user. This property is required unless the auth-part of the URL was used.

Example: password=swordfish

String
connect-timeout Specifies the connect timeout in seconds. This is the duration to wait when establishing a connection to the database. The default value is 3 seconds. It is a checked runtime error to use a value less than or equal to 0.

Example: connect-timeout=5

Integer (seconds)
use-ssl Used for establishing secure connections using SSL. OpenSSL support must be enabled/linked in the client library. Default is false.

Example: use-ssl=true

Boolean (true/false)
unix-socket Connect to the database server over a unix socket on localhost. The unix-socket value should be the name of the directory in which the unix socket file is stored. Note that this is different from the MySQL unix-socket parameter which specify the full path to the socket file.

Example: unix-socket=/tmp

String (directory path)
application-name Optionally specify the application name. The name will show up in PostgreSQL logs for connections and operations made through libzdb.

Example: application-name=My Application

String
libzdb-3.4.0/doc/api-docs/nav_hd.png000644 000765 000024 00000000162 14652557242 017303 0ustar00haukstaff000000 000000 ‰PNG  IHDR ,é@9IDATxíÝ»À Q ‡„;rìè¿5 WÊ v«ï?P_E2Ñâ¥Ö7Ìÿ„¶jAŒ v Äê#IEND®B`‚libzdb-3.4.0/doc/api-docs/namespacezdb_1_1version.html000644 000765 000024 00000023041 14652557242 022727 0ustar00haukstaff000000 000000 zdb::version Namespace Reference ⬅
zdb::version Namespace Reference

Functions

constexpr bool is_compatible_with (int required_major, int required_minor, int required_revision=0)
 

Variables

constexpr int major = LIBZDB_MAJOR
 
constexpr int minor = LIBZDB_MINOR
 
constexpr int revision = LIBZDB_REVISION
 
constexpr int number = LIBZDB_VERSION_NUMBER
 
constexpr std::string_view string = LIBZDB_VERSION
 

Function Documentation

◆ is_compatible_with()

bool is_compatible_with ( int required_major,
int required_minor,
int required_revision = 0 )
constexpr

Variable Documentation

◆ major

int major = LIBZDB_MAJOR
constexpr

◆ minor

int minor = LIBZDB_MINOR
constexpr

◆ revision

int revision = LIBZDB_REVISION
constexpr

◆ number

int number = LIBZDB_VERSION_NUMBER
constexpr

◆ string

std::string_view string = LIBZDB_VERSION
constexpr

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/globals_func.html000644 000765 000024 00000033315 14652557242 020670 0ustar00haukstaff000000 000000 Globals ⬅
Here is a list of all functions with links to the files they belong to:

- c -

- p -

- r -

- u -

  • URL_create() : URL.h
  • URL_escape() : URL.h
  • URL_free() : URL.h
  • URL_getHost() : URL.h
  • URL_getParameter() : URL.h
  • URL_getParameterNames() : URL.h
  • URL_getPassword() : URL.h
  • URL_getPath() : URL.h
  • URL_getPort() : URL.h
  • URL_getProtocol() : URL.h
  • URL_getQueryString() : URL.h
  • URL_getUser() : URL.h
  • URL_new() : URL.h
  • URL_toString() : URL.h
  • URL_unescape() : URL.h

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/nav_h.png000644 000765 000024 00000000142 14652557242 017135 0ustar00haukstaff000000 000000 ‰PNG  IHDR ,é@)IDATxíÝA @BQ­³šÛ›Ð¢Žáà) )ëý éaÅèÜ¿Æo‡RlÐßIEND®B`‚libzdb-3.4.0/doc/api-docs/database++.png000644 000765 000024 00000165225 14651764220 017745 0ustar00haukstaff000000 000000 ‰PNG  IHDR4_ÎáÎNsRGB®Îé²eXIfMM*bj(1r‡iˆ––Pixelmator Pro 3.6.5  4 _ÿ7ŽÉ pHYsgŸÒR ÅiTXtXML:com.adobe.xmp 3 pixelmatorPro 14.5.0 Mac14,12 True com.pixelmatorteam.pixelmator.document-pro-sidecar.binary macOS 29882 2 c9832e1 BC8CEA38-2743-4F81-AEC7-C173E49FA931 iCloud database++ BC8CEA38 3.6.5 2 2 1 1500000/10000 5 1500000/10000 607 1 1332 2024-07-29T21:08:00+02:00 Pixelmator Pro 3.6.5 Ç麉@IDATxìÝ€ÔÄÇñ=î轃€"¨€ Á†b»ˆ½|ŠbWl(6ì]ì + " X@QPŠ Jï½K“wÜû-s qÉÞîmûîã³É$™ùÌn²ÿd2ÉÊÏÏ÷ñB@@@Ä KܦÙ2 € € €øÎù € € € `‚ó7›G@@@€àœÏ € € €  8Op°y@@@Îù € € € `‚ó7›G@@@€àœÏ € € €  8Op°y@@@Îù € € € `‚ó7›G@@@€àœÏ € € €  8Op°y@@@Îù € € € `‚ó7›G@@@€àœÏ € € €  8Op°y@@@Îù € € € `‚ó7›G@@@€àœÏ € € €  8Op°y@@@Îù € € € `‚ó7›G@@@€àœÏ € € €  8Op°y@@@Îù € € € `‚ó7›G@@@€àœÏ € € €  8Op°y@@@Îù € € € `‚ó7›G@@@€àœÏ € € €  8Op°y@@@Îù € € € `‚ó7›G@@@€àœÏ € € €  8Op°y@@@r @Hfmy¾ |³Wù–¬÷mÜ–Ì%¥l €@¼Ê÷Õ.çkXÅwT=_ñìxm…õ"€‰ 8O¬?[G ÌZå{j¸ï›i¾u[Ãæa QåKøÎlâ»·µoï*Uo*‹!•ŸŸŸ¥’ €@êän÷uýÉ×}´O ½ª–ö5®ê«ZÆWŠª©Óˆ”b(°9×·r£oúJßÊMþµæóujå{ä8‚ 6çiÓ”TÒD`Ífߥ}|?ÏõWç𺾋›ù#ó¬¬4©Õ@¢Ð%Åç='úF.ô¯ãØú¾OÛû*•Šz},ˆ$—Áyrµ¥A Ð¥ò³{ú#óÒ9¾{Zûƒs^ € ΟîÛ”ëÏû_ÌõóÞ"€@ª Ð(U[Žr#€@Z ¨7»‰ÌŸ?…È<-[˜J!€@ tâR;IÄÔS»M^ €@zœ§G;R H§ûÌõÒ5ó†•Ó¡FÔˆ“€v’ÚUê¥Ý¦vž¼@4 8OƒF¤  &›]ÝÚuEˆÞìiÒ¢Tâ)`ö–ÚmjçÉ H‚ó4hDª€é  ç™ë©izi8^ €nÌS;OíBy!€©.@pžê-Hù@ MF,ð?ÏÜ<5-MªD5@8 ø3YÚ¿óÔ.” êç©Þ‚”ÒD`öŽ{&yjZš4'Õ@"Ðc&µÛÔËìB‹d›lˆ—Áy¼dY/ àI`Ézöªe<-Df@ ÓÌnÓìB3Ý‚ú#€@Š œ§xR|HÛü5)•“.õ¡ €@‘˜Ý¦Ù…ÉÙ /‚óxɲ^@@@\ œ»„" € € €ñ 8—,ëE@@@À¥Á¹K(²!€ € € /‚óxɲ^@@@\ œ»„" € € €ñà¡=ñ’e½ € € í¹ùk§åmZ¶}ëêü¼-ù1Y'+)Œ@vɬ•³J×,V±Iv±œ¬Â¬Še­Á¹¥  € €É%°qéöy}·ü367oSrŒÒìÒ¾j-röjW²L-:eöCAp^XA–G@@˜ lÏËŸÓ{ËÂÁÛòóüë.^>«Líb9å³²‹Ç|S¬Ð³@Þ6_îºüK¶o[—¿lxîòßsë¶-Þà’Ų¹ŠîÓ.@pn)H € € €@RlÛ?éåMk&ùãò ûd×lSfbYY~IÑ:¶ùùùoWpþßn[7w{Ó[K/K3Y!o úxó"7 € €ÄU@×ÌMd^¬„¯Á%^X²ll"ó¸šG·r5ŠšF ¤fRcédŠNÍÝÚXŠàœÏ € €$‘€z³+ÌS°·Ï•¥*6¦«o5M¸¢¨™ÔX&>Wó…ËÆôÈç‘}˜‹ € €E' àtŸ¹¶·×9%4xÑm˜-N@¥&Ó:Ô|jÄ­,C—æãž¡ Oµ@@HBÍ®àtŸ9×Ì“°u"IM¦†Só©#çdnH‚ó,LD@@¢ÐóÌõÔ4mU#Àõ¶Ù^,LéÕ”±X_f­ƒà<³Ú›Ú"€ € ´k§åéyæþ§¦íAœ’´­©`j85ŸQM)óB ð¡¥Â4@@(rMËü÷*ëyæŒÍ^äö±Ù Nͧu™¦ŒÍJ3f-çÓÔT@@äغÚß:§<ÊNîvŠX:Ó|¦)#fdf Áy ï@@@ !y[üÁyvñ„lœÆFÀ4ŸiÊØ¬1cÖBpž1MME@@@’U€à„ÖÍ}B’§]põ9—wÔ¿=ê5p¿`çÌÉÉ٫Ѿ'œuQ÷/~­Z½àºúı#6®_WÄ%as €@°€‚ð6GœÐçA­:ÂÌÕpßýümpN¦¤½ÁyÚ71D2E ß'ohÀ7SÛCŽ8þòN÷gee…«|ë“Î:ã¢fîú×Lx¹Õ.¸iㆠcùÓ e‹æÛ‰îË/˜;cÊöíÛÝ/¢œ[·l™9ù¯׬ò´”òÏ›9õŸe‹Õ—Û傺ª¬ ©«ÿ´‰ãÖ­]ãr)¯ÙÏŸýÛSþ£1ä¼.EÈ­Ô­ßèè¶í쬹3&Ût@"êF/LMÊÀ[È(2¥Ë\ÒîJ[åù‹çÙ4‰Ì [{æ´55EÒY@—Í?zõq[ÃëîîfÓág^|Ý7=ß6sGþ4ð€–­9·lÞüîó]R.œ3#?¿ ´Öì¶:¦Óƒ/ÔÙ+ðI6½ßyaPŸµ†£O:ûÚ;ñã7¿ø`òŸ£V._¬‰'¼q³CŽ?ãÂvWÜøß­lºþœ‚‡ô<÷á %K}òÚ“ãG ÓmÞ¹Û¶*ç{î½ßA­n¸ç©šuöt.èLùõ‡¯?}kÚıKÎ5ÓUNm뼫o­¿Ï~ΜδN7ôxåQuö6ýÒͬ†Mš_u[×6mÏ5ç5ìxþ‚9Ó×®,xJÙŠ¥ ¯j{ rÚúÄN]žÑ=× |Íí*Û„?F¼ûüƒ3&ý©Ófýê­P§~£öWÝ|î7œ:Ù²9f+þ6ا©;ö´ý>̾UÂk£Ûe=ÕÔ.E"IÔqfÄèñý½¨Ý©-j–$¥¢(Ð|_ÿÖ¼þ]·vg’ÿfÁy56UEÒX`ѼYkWÿc*xÄq§7=d7¥UÎ}8ô¥Ï†nßñ䨀QÄÌ™¡ñÞ¸ˆ)Èñã× ÿ±Ãímê×m3¬\¾döTÿsníw ÆÐë;K Ýß®ÁçôoÃú/»ñ^;KWÔÍRš2qÜïº~õ?Ëì\%ÏŸ¥ ò»ñKðÀT¼ÿbWÅóöôYVåüú³·tvàêÛ¾ü¦ûœ+TZK©'ÿ'¯?åó^`Ÿ=mÂCÏ;ñìKzùSåTdn‹gVbÞÖ«¿ÞŠnÜoOjwùN:èÒý§o<½ã~\³ ù«r.œ3ýå®7ùº×}Ͼ¯gÎÛ¹…¤°ë‰œÈwT¹|ÅÊÎÌQ4º¢¦Î’N¬ÀôYó¾þnè€~Y¹Êþ¨ý'%¶äÈ>>÷ë±ËNXóâgCÊ”«`Ô5mÝnW¢Äý>µ‘yƒÆÍÞ0NK}öóô¯îüô»ÙÙçßui}ÕŠ]Wã§M;¸ÏGf=å*T~æƒßþµJ#œùûüÇßüªlùŠfÖÛÏÞ¯KÙoõõÃÔ 7Ü÷Œ™¨K÷z«溺™üwÖ”¿¿þ¬à~/x«ÿè~c–¼ðÉ÷ŸŸÓgäÂC[\œÔ¹]Z^ÜNqOa‰œøî«õœs“§B¥ªµƒØE×豪iäb37VdëÇa¿ß|ÿÇ·»æéîïDæÚ Áy¬¨YOƒ~úæ•÷Ÿ3 ê²ùÉÇœÅJX$Õ¸ržê-Hù@üÎ+çµêì5ʤq#íÃØÎ¾ô†;Ý®ªx‰ÇŸq~¾ëQêêž­þÕGoì/l›ÐóÀ_ýâ;€y¥*Õî}ö}Ýz=gúDå™òç(›3 qE§.º_ÝDz(n‹#¿û‰·¹åb“mòøQö/¸#Q#«)ž4ÓuQZpÉR¥ÌÛr*žqáµ*VyèÆóÕóš5vÄÁ4åšÛ±‘¹É ŸY/ÍçkvÞ°líz ¯ºõ¡€kw±«ã½‚L»È·Ÿ¿¯áÙÌÛÎO½c#s›A‘öþ®Þãš2ðóLp®x{ÜïCMžs.ëèŒÌÍÄvWÜôÙ[Ϙ±èÆü9Šà|ÖÔ £ùάíô ¯uFæfbé2eUà«Ni®·þ»Öÿ)88÷DaVkþÎ1é¦öG9§„L7Úÿ ³.½ÞΊ®ÑcRS[ñX¶bå€ï‡©ûúœy_–xl…u"àF`ÅÊå×ÞuÉnsÖ®±ÇWïÞ·Ñ®›nv»ÒI€àþöÇ_6nÚÅÚžîþ^K±Hl=ãʾ&±]gkË.¶ëü§Åíý2ÁKµnulÀDÙ´y£.ª/X<ÏÌZþϲÓ.?¶Ç‹½Î<©P»â€ ñ6UÎS¥¥(' €@$ò•œÁù—ÁùÒ…óôl3­·b•jÕjÔ^¾xÁ¶­[ÌfjÔ®n{Êlgén¶:Ú¾U"dpèÌàO;®)ÙY•ª†ˆ*íÜ íº.¥‡œ™YŠÛ5ä›3[È´®Õkú¢ùÁy¸3!—õ4qѼ‚à< VX±r¡-’s+ž(œ êaòÜÎ9e·é¨=&5ÝmñÈàI bùr7^}Q½:µúEWöZ5ª•*YÂ^Ý.¸bí¿äìŸVðǵh•­`žyDߎ|f¢ÿº¢®³u5kT yiÝÖ.øÚrð›9 á/Ù_fYífüÿóïoÌw^Üßqÿ¿K„xgÊogüg+;7h':3Çæ±«RÂ9ÑYÓªU*Õ¯²g2<à[7~¯Üq ’†íp–Ai1|áí§ Î-]F%Î3ª¹©, ¶{6Üu¥EwYÏ[.:Ö<Ü«ù¡­_ûòW=«Ü.XÁíÛ‰&¡ÁØì=ºÌ¦MBO ˜âmÀ¯×9v» ý9«AÞÖ¬\bµá'™ß—z^šÉbGe¿D”s¬a@­ZŠ‹P÷Q–Ò±˜-°¦E(sp£Û#,¥uF®©£ $c#P­jå«/n§OžÞoàAC‡¯ß°ë yOv¹íЛFÎÃÜx ÌúlóZß¶xoe·ë¯Z©Úì§—¯Üõ´‹pK­Z³ÒΪR©ªM»O(tðáÐNl¸nÇS<'Mÿ[!z„‹ðî×LÎÔ 8O­ö¢´ €¡>âX;Cƒ¥µ¿êfû6\bîŒ)ö±Û­MÙªÕªc3ÛÐËN± âjÊ{6´Ó‹,¡ qöÜ ×ô#:uy!ò¦uaj¿ƒZ)í.¾6Ì t‘×ãf®5üÇq¦#xÁ;nk×ô„:Ëc ¬‰žÝ.˜*5uÖ:ÒìßXÿ:ß|Í_Fõ4dÔ¸ öôV¸ê\_7›é™$`cì¥Ëï¶Þê‹nóTÝÙ-ÈNq™¨T±ò-Žþþ—ʯÇþ©¯{MÇÍP.WB¶T 8Oõ¤ü €~Åx5öØsùâùJÏœ<~Äßu♑iú}ò†Íphë•®Q»n‰’¥·nÙ¤´Ûm›˜9e×óÆ[ÖkÐØçºËºé!‡Û²ENÔmÐØdГϷnÙrä¼¾½¾pÇõ¢£O>ç ÃÂÞxnCuëïcfééeŠ…œVí"ºò?gú$ó6Q€¶0Q7zÊÕÔV9£¥J–<ý¤côoɲzšZÿAC.ÙGP„ºÝ$ o3E îÎ;›6nÚ8r܈Éôˆá£6.åË–¯ÔÊ=ÙÁÍ5Á¹ѽèî$gÚK›šP@ ÐcÉ­€ÆHËÍt£à¼™S¿þì-“¿tÙòÍZøx)’¬³×Þfâ½íÚC¾ée¦TªZ£L¹òs‹æ­kMOß°ÎÛ|ð뛞ï\Üfý»ñÜ‚Ÿ•v)Ýò9ü‡þÁ‹èÖô׺ÝõÅ{/êŸóÑñÁ9ÃM©Û  8ß°níèaß…Ì6vĵ« ºå×Ý«QÈEýF‚ó`ë ˜BpžL@Ìhe§ò;ÇlŸ6á;.;)ÜÙSþÓé‚cÌÓ¼esÃ=OÙç„7?´ Ž2~Ô„±¿ËM›8nÒ¸‚!Çθ¨Cp†¢™bÇZ߸þ߯>z-x£ׯ{ç¹.´Lÿ*T.¸ò€C[—,Uð̹¯>ì¼”z˜ŽšuX›ÿŒj®)»í¬<ûÐ2;§¸YsïwC÷·ï÷ñë&Cé2åB>ÑÍÌ-²¿Ñ5z*Ö´ÈH“vC œZÔ¬Ûý·üÜ÷ƒG:ßtpóý’¶¨,±m?¡ÌÎ't~Ö÷Ã÷z¾²<Âí¼ÿngvüÙ6E¢l™rv©M;æ°SHd‚Áy&´2uD2B@±o~èE[Õñ#îpæ¡#ä¼°¼fÕ?ß}õñ­g¯Ütø±ç\ÞÑ.uå-ÚðõÁÚ+·³”ÐØì÷\]ð;Lå…îpÎ-ÊôIç\Ú¤ù¡f‹wïöËà¾Î­ë©æÝtÁš•ËÍÄSÏ»Ê$ôÔô :ÜnÒùõ¹ûoИCæ­þþ1üÇ÷žмÕSÙu[»I—Ü9ÄÝ?ËÏž6Ñæ™¨YgÏv—ßhfý1ü‡ç»Ü¨NìΜ¯w»Û^´?÷ÊN‘GSs.¿ttžŠ5ŸaÊ­¹L™Òçž~âGÝŸðÉk.k_³ºÿVa®y¦œŽ,Pªd©‹Ï¾Âæ¹ë±N¯õxqíºµvÊ¿ëÿý~ØÀ³®:Ñ ê®éµª×n{Ü6C‰revuÅ w¯ûüEs;<ò?ýÅÖY$¸ç<Z2 €ÄF mû+ΙñQ÷ÇÍêt zç«OÓOnÝØ¬NÈz0µ}ü•ÉP³Î^÷>óžó¹"Ò‹®»óÃWS†U+–ÞrA›cÚžÛ¤y‹¬bÅ&ÿ9jô/ßÙ¨^eÅW¤cSz/kÑ(¾·?öÚ çènóüÍ›6t¹¡ýѧœ³ï-ËW¨¤Û¹ô¥y4ºVyÜé8]~Éõ¿þô-3 œ:öOû›ý]©ZéÇ ÿ^ÝýHÊÎιã±]Wãhyô΢åß}å©ÒÐ(t—v¼gçÄÀÿ^uëCƒû|¸þß5šÑÿ“7¦ýýG‹£N¨×°‰lþ÷˜áþnðŸÝ¸îÎÀ…ñ>êFO¹š&B7Ù·¹W½=n½î²›¯½ä÷?þÒ£Ô’½¸”¯¹ëé¡¿ý0gçã?ºÒ¿€<t¸ãÚ;ý|_ûÔJ!t÷ÇïØºe³‚ê_¿ë«åiؤyç§þó3Nõ}îãïÔ)ÀŒx7{Úý XªãýÏÚžÞšÕhÿ+V©nÎJh:ýSô°ˆó­.†?ܽ÷c·^jš`êßcôÏ™AéZuë?þæW•OŒÈPÄo£kôT¬iÃ¦Êæt¶ë¨V§Ji)gÑ”-S¶çký®¸õüé³§š-êÖž©3'ë_@J–(ùl—W=òÄ€é^ßVv<Âó£/ß»¼ý5zܺו?¥èÖžÒÍGá@tüÌ‹¯ûô§i.++ôa®vÝÝÞê{ßsGæZ]©Òe~µgç§ßµýÛÛÐõÞ®¯öêÔåùœœÿ¨9Å n´.¹ó6EçRδnɶwe+$°…ÔvÙ‚Ó¥vÞ.ng©CþÛ_i¸ïvŠMh°º«níúzŸÁulÒìw¾ùãðãü} l~“Øï Ã^éõó×Þæœ.Ò›xNãØ;'*¡ð­Ž9ùƒÁ|Äq‹˜·­Ú´}wÀØÆÍþ EX[ðJ(rvÞåœÓå”è]+¢¦ZÊ~Z\l ]'úù¨ŽWÜjŸ¬P =ØòÄ£ÛþØû÷ËÏ»&`–yk÷N¥ƒv¡Áù7ÜÏYfÌ™önÏ‚GŠ÷¸‹+U*pw¼-¦$§@–›Á]’³è” H'†ø^é;o_‡CÒ©Z ®ËÆ ëçÍœ2wÆdýÓ5ðúûì¯+É{ïÛ¼|ÅÊnJ¦›ÕõÔ4=˜M7Z—+_qïýl´ß{ýñäf%EG7u«šê—®‘Ûs·m«^»®úðyü!Ÿ”æ,ÓRÓ&ŒÕ-¢gƒÕß'ìøXÈ}Áìéÿ®YY¶|EI–.SÖ¹ªi­váÜ™œ1yüš–ïÕh?]„×ÝìÉsÁ<¸ØÑ5z*Ö4¸î):åÝq¾/'ûn;Ü×í„­ÅþÀ¬Ï6/øv[Ãsö8±Äf$ô<>lä]B_ºbÉ?«V¨ûzjµêÔªwâѧT«R=¡EKÆ/þqëò‘¹õN/¾÷%¥’±|I\&‚ó$nІ™$@pžI­M]@ fç1£LŽ%gpž6)S ‚ó¨›*t¿¨WÇ‚ € € € àU€àÜ«ù@@@ˆ±ÁyŒAY € € €^Î½Š‘@@@ œÇ”Õ!€ € € àU€àÜ«ù@@@ˆ±ÁyŒAY € € €^Î½Š‘@@@ œÇ”Õ!€ € € àU€àÜ«ù@@@ˆ±ÁyŒAY € € €^Î½Š‘@@@ œÇ”Õ!€ € € àU€àÜ«ù@@@ˆ±ÁyŒAY € € €^Î½Š‘@@@ œÇ”Õ!€ € € àU€àÜ«ù@@@ˆ±ÁyŒAY € € €^Î½Š‘@@@ œÇ”Õ!€ € € àU€àÜ«ù@@@ˆ±ÁyŒAY € € €^Î½Š‘@@@ œÇ”Õ!€ € €@tÙ%³´`Þ¶è–f©¤0Ígš2) ”:… 8O¶¢¤ € €¤µ@‰ÊþàJ0Ñ ©áÔ|*…iÊD'ŶOpžb Fq@@HWŠM²³Kû¶­Ë߸ØàñJ95œšO¨¦L¹Â'¼Àç o € € €~b9YÕZä(±lx."©(`N¨¦LÅò'¶Ìç‰õgë € € °K`¯v%³²}ÿÎÈ[;ø|KJ¤Ôdj85Ÿ1% œl…$8O¶¡< € €d®@™ZÅê¶-®úÏë·uÓ2:·§Ì'A¥&SqÕ|jÄ”)w2µdj Ê‚ € €@Æ 4¸°d¥¦ÙÛ·úf|¸™ëç)ñqP3©±Ôdj85_J”9 Ipž„B‘@@È\bÙYMo-mâó9ŸoÝ{ˆEyŒßž„5ŠšF ¤f2‘¹NÍ—„EM‰"ù‡[à… € €$@ñ²YÜSzNï- oÓmÌúW¼|V™ÚÅrÊgeûû¼óJ°@Þ6ÿãèõÔ4Í®¢è>sõf×5s"óÂ4 ÁyaôX@@â" 0oïKJÕ>¾Ä¼¾[þ›« píº¼¸l‰•B@OMÓØìŽûÌ ¡X°(Áyá Y € €ÄE@!ß~KoÏÍ_;-OCŽm]Ÿ·Å©–Wb²Kf•¨œUºf1=Ïœ§¦Åª-Îc%Éz@@@ . ÿ*7Í©Ü4.+g¥$‰Â%ICP @@@Ì 8Ïܶ§æ € € €I"@pž$ A1@@@2W€àû4nÜxÿý÷?ûì³srø„n³?þøãßÿÕ¼Ã?¼L™2¡3Åzê† Fn­j¬ Ô­[7+++\ž8M…@´òêÕ«7oÞy·td@ =Bÿ<5?¿ø›<ð€®Ïž=;\]&MštüñÇ+[¸ ™0}øðáºXª—¢²”¨¯®®÷èÑC—yG.ÊBFnÍY³fµhÑâwÞÙ¾}{ÈRåææ¾ð ûí·ß¼yóBfȉ ¿Í—bΜ9ÉSeí©tn¥V­Z:½¢Ré<Ѩ M·Ýv[ò’’ àU€#µ±Èûv7k OlæÎûÄOh;w.Y²¤ì“c+ÌÚ2S€à<Ûý™gž1ûMUR×o¿ýö~ýúÍŸ?_¿eǯ¹U«V5õW¶¾}û¦³EĺmܸqúŽ×’%Kœ…¦W©R¥t¥Ú9½ÈÒ]þûR žrÊ):Em  «»W^y¥NWYyRbCáZS…_½zu›6mô0Q\÷Æoè&‚õë×+ÿî»ïÚ¶mkf-^¼øüóÏߺukJT9…”’ùR8ÔÝÀ|)*W®F^çØ±cÕgRyÔ‹RßJ%tsG×®]•øâ‹/yqæ"œ©]¶K¸}»Ù)%ðHí²üé—M÷mÚ´©FÿûßÿLíØ'§_+S£¤Gj, ;iË•+g>RõêÕÓ½µÁy«Ø›‡+V¬¨KRÁy2aŠ¢2•¨ÎºNdÛ­]9çtgZÁ‰ÝY¼ýöÛÎYñK§J_»­ét»ñÆM7¼±wß}×ÚêrVÀÜÌy{ÄG‡¢¼§#2ï±Ç«"U©RE=GlNõ€Øwß}5½Q£F:`§>®Ë…/kH~68R»oÐûv÷+Iþœ©r¨ýù矵ãÕëÉ'ŸtªÆoŸìÜ iÒX€+çfß’†}ôQ]TÅJ—.ýûï¿yä‘Á•¬T©’FW2Cé2ìÀƒó˜)ú„ën‘d›®îÊñ(RBdt¥ÅÆN6˜®×²yͼÅdž¢KÁ¯¾úª)á-·ÜòÚk¯™nxe¾öÚk·›‰Ÿ}öYÀ\çÛ8}¢œ›ˆw:NUˆÇjùåó[P£-8GgÔ9¬Ž; J£]öîÝ;Þb¬Ø p¤ðŒÇÞC›H£[!kZÈÅØ£xûÈ#h©%JtèÐÁ¹8ûd§i¢`˜î(ÐR`ÝX« ª¦ :uÒHÔá ½×^{©ûî‡~¨ ί¸â gN̬ ‰Y‰¼¼<§žÀ lô×™M?‹ŸþyM9묳N=õTü:íÞÂ¥I95X‹z_ï½÷ÞÎE^zé¥iÓ¦©—¬b$]:ÐÔ:[¬n«ê.«üê{P»¬N4hýÊ9aÂõ8fÇK½u„°ylB—F_|ñEݨ¦Ñ\Õ/@¦^w«^xá…f<°3fèc•ß,¢l懾¢ßòåË«ÏóÂ… 5KýÉ«U«fW«Düdœ[‰ÖÓ¢P†É“'dsY6»”×üvA“а¦$âUë;ç~üñÇÄUSÎ<óLï휥•î¤P£ÿóÏ?š¥®¿þz ÷en¯ÐéŸ1uh|ÿý÷Õ@ZP=>tnB-¯vWƒÚÕFn͇~ØÜ ›"²p×]w©éõcN·[뺱¹0k¶¢ßCúÄþúë¯þù§æªÊp€ ¯/EñâÅmI”ðú âKd6çFÆY°Ý~)ô“K_Iû¹’›ÎâIûâ‹/VGw³¯P­õ%r®Ö½Lt5}üñÇÍælÿI»uí+î½÷^õ®Ôwù²Ë.³ÓI ä©Mív§yßž¨#u¸c_¸éªìnkùë~7kÖ£û³žzê)M£½®:é!ú§Ÿ|ö®€Í¹ÿ}õÛo¿ýôÓOZ¼}ûö¿Ž4‘}r,oð&  ¼ÒO@aŒù(ÂTð¹‚.NA”^ŠÙ™óõ×_yiQAˆn…VÐe3Û1œõ;>äÈLºMZW›_ 3¼ªê¦ G1vð§Vã‹8ó+­³ZÈA¶>úèàjêhtðÁ¯YSÚé©uöêÕ+d3z¸1`ã*c¯„GèÖ®’ßyç¦äЇPîËf–rŸ?\_;E¡¦$:Ñã,‰Ò ê̬>øÀ9K‹è.Áy}HÌ)MW©œùõ[G¿*òë­ÎÈ|ôÑG6gäÖÜsÏ=Íî»ï>»H¸„Fg0_ =qÍæQú¨£Ž .†¦(XÕ‰›S ¯Ÿð(¾DÚŠK[07_ çÉ[Y´ÒJl!nñ$cWâ~w¡G¸i_¡Âè”­‹3¡§©™¢ Ä9½0év].L1X6 bõÙàH­Æu³SмoOÈ‘Z%wì 7ÝMMµÚp‡ZO»Y­§gÏžÎNFvg®„N@ë¹}Êc_^_銅Y¡Î§Û•8ñØ';×O4ðwõá•~ ?Ì~ó¸ãŽ‹®v¦Ã’Y‰ÆFÖœ§všs(ݾk×lm›üú«¡æZµj¥aBì=ÎMãí"öhjÆZSÈ­èK¿¼1›.§ÛüJœ{î¹vmzз.®ÚpKÓue^G>›_—þld¨¹ÚºªàŒ:tV™ÕY@u¿½Y³žÉ¤·z™PßÒyÛm¼eÜç:ŽŠ×”YQº­µ§²i)OùÃýb÷CDë·Mà ÎufÇ”Üü­_¿¾óse&:ƒsË·¿0t¶H×cçÍx`&³†3ZS—Uu²Ãä6l˜Éïé¯>æ!^Z‰ÎOé³qÉ%—hÈ{¶H]¦°ë´—Ÿð(¾DîeL©\~)t…\_c¥¿úîè­>*Z‰-¤38÷*cWb7±ÛÝ…ýi®;¬°3aç£êâ¹szaÒ± À S–MNX}68R»Ü)EØ·ëbw¶Ey¤ÖvÃûBNwYS­6ä¡ÖënV] íQRbu^ÓK'‘í^÷Át~¹<ý¾Ò‚öî‘®ñØ'; L4 8OÏÆUG#³ Öý™QÔPÝÑm8tóÍ7Û Z {ÁVQ´.z›•;m+R_uµ5³ž}öY{0Ð!ÇÆM5Wqµú ›Y/Ýv€WÏ+›À€f=º…þÍ7ß´ÓU{ àòË/·Óímà ™œ—4Ÿ~úi³•S¨MþpÃÌØBÚC~Èì68_·nnU°ªêäojáµl^s-â @IDATó‡üÅ MÛ¹ƒ¯œÛÇØà\ƒ¢Ûî꟬^Zƒ>Wz8ª=E¢ªÙà\³l+˜ÖMeÕC鍊n²Îó2![S¿Tlf=ýŬÄÓ_ KkÖ sU'N´Ëêî Ûcÿ¼óγÓm±µ”›O¸×/Q2ž¾vPûáWÕl!Á¹W»ɸÜ]h?fðÕÁ ;vh"Ýéàœ^˜t¬°Â”e“S VŸ ŽÔžvJ!÷íú„Ø­ÝYy=ºE±SÒvÃûBNw_Ó‡Z¯»Y]7ûLÝl¨³ùö{dG<Õ€Áê$o¦{ý}¥c¨Y¹mv͉xì“6Á[ÒU€à<=[Öžµ=ÕScb™=o»ví‚´÷šž~úéf®óÀ¦è7`{ó°Ð”ÁMØh,:ç"æ®cÀ{ê¥G.›"Ù°Í.¢¸Ë\Õ ³*Ýk¯Àô¹ÒQÊÿêºlVâþ_268W}„;_º[^',œA¬³g„ײyÍòƒEª‡óé¥m£˜„®W›Yvm;”@ëÖ­ºÕýðæ‰õ×¶²‚13QØct›õ_pÁf®sXõ­©àßäTïhû‹$ ´ÞêÖP;¨CS7íÛÎÇŒcæzú„k¯_"¯2^¿.ƒó(d¼ÖT8zì¼i>ûã;  t6ÐdÐÉ;ç/Ñ€lžÞÆ*ó´Q2§„@¬>©S÷H­j¸c_ðtO»ßàCm»Y»ïß¿ÀwÊ~ê4Hªfyý}¥EìЛγ´[‰Ç>9`¼E ]­Ýü¢K·¿ŠˆL•ì3±=ÕPQ«Éoo+r.®^¯æ­3Œ4StQQ—Í™•>è ƒÌÝ80KoÕ¯O·ÓƒóëÒ·®O*âên¸Á™YéfÍš™{Ëu0ÐqHSž)SB¿é՛ݙ_u7»"=½ÔÍÌ9ËMº(eTžîÿ}½óÎ;z˜³N@˜¢ªvæ±Ïæ­×²yÍÎG¤Ú@/ÓÛ™MÝêÌ,»ªw¢É  íÏ23åÄOÔØÎÅ•þä“OÌu«¶½9l;ú—n®³C&ì7Bý,ÌÝË!³…›¨bëü‚æjì7{²ÉfÖo²cÞ)Ü|Âíª”pù%ò*§/Ead\ÖT&Ë—/7D¶›ŒSLiÅäæÉ‘:r?Ÿ·$ƒ€Ý/q¤NÅ#u¸c_ðôBî~£ØÍÚŸUêc¯N‚ÎOû!Cíëê·îÇëï+­j·;dåaŸì4'€'À1™<-Læ¤У€M¿£(~§®Y³Æ,¥ŸÎÁÁ’ª¬qÂMÅ5’¹âagȤûÆímNÇ^ôÖlv¢MrÈ!6m ›u•R±Í¯³Îf–ÇvöO¶ ê¶X â­·º°¦¿:ð˜Yö ±Í©„zSëåœâ2]Ä2áJ¥˜VC”k8_­ãŸÉæµl⺕Ãl·ÓõKT7Î)›ÚÑ^ u.¥ŽºÁÁ9Å6½"ÿà¸WŸs“Y§«Föâ¶s &msš{LW‹àlᦨۼ™e¯ÕäÔ—BWÔ5ÑœErÎuó wæwù%ò*§/Ead\ÖT—¡ÌKµš³ÛˆMiÝCa©Žvt€€<¼E ©8R›æHË#µó“VÈÝo»YG6È4¦ºNýèžsýf8öØcõcIƒ«;ÇW·‡—¿¯T/œÛaeœ•µiöÉ–‚žÎ=q¥LfŠ(hqShó¼+åÔýÀö0РAƒËj06íÙe©?‰Æ`w^H y]+ò…J7‹Ø€GÏ:vn.¸xŠQ51ò0x)—SŠXF¥2çœÅ¦zûÛ Ñv–ײ©'›Y6ŠV¶õš°í¢ß!—uŽð§ úXêu“S·s‡\ÄLÔGQ "„dö¡uj\ƒÝ^§RÏ Å„Z¹N…È|·¼ö¹ö‡Ž-­›O¸Í¬„›üQÈXü¿ƒð”.³«Q©t-H—¤ÂO?ͧE?mG†p™™Ž@2ØýGê6ÇnwJ±ý ã¦ä…Üýî¶FÁ =7gĈ_ýµŠ§ãÅ—;^Jë´¸îBWwtÛEÑëï+­D¦5µÌÕL7Ù';5H#à^ ì÷« g ØàÇ"Rcèr·^&*0OöV~ç¹Õ€ÅÕWÙL ¸Vܱ9`Áà·nÑà.Á †œ¢ƒ¦ë‰#fnÈ˳!t3±ˆetP^5 ŽÌUx¯eóšßÏnóØûìç'`{—š™®(ZÞä ÷Ö4}¸¹ö¡ n¾f@x})^~ùe-²[.[£€o„–uó wÛMþ(dõ¥(¼Œ¹.¢€û œhJ[y© ˜Å[’SÀî—Üì”8R»lÄÝžpû%7»_—Åpf+äîw·5 ®Žö‡}úôùðÃ;ì0gO±)S¦h` óöY-^_©^ì“K˜ på<æ¤I±Bk­{zU]jÖ€Øö@ÈÂÙÑ;ÕåIj×®m²ÙžKÁKé‘Qš¨=~¸ë®Á‹fŠz[™Åõ,;iÈêL­¦ÛkB,d¶è&&¡Œ­ˆ×²Ù{‹²•m;Úóî¶ü&ÐS@•Ò•RŸ«»{äŸM¶ÑÖiÞjUº@=ôV†¼_Ã.¨êcÇŽ5oÕÓ^ -®Qß”ÇeßDþ®ÙM2…Œõ‰ù—"Þ2¶+»úÅ(ðvþÐt2Ú±"t pæ'@Â8R›&ˆùNɬ6ÜîZs‹ø7L!w¿Ñ€t6S#°ê%‡¡C‡jøtut·­?üðÊÛ5Ĭ=.»ü}%=»O¸›Ý°Û¿ì“- < œ{âJ™ÌŠ(ÔWýrÕ;÷É'ŸÔ@bኮ‹™vðd=9\ÙØÌêI¥5wJWèb®RꀡK‹áÖÃéºzlÖ¦C¸í¾å\¿Ž¦C»é®Ü¸qãï¿ÿ^B^ŽÐÀÝ \s5ì¼Æ?w®'r: el½–Ík~»¡Â$làj;«¬MÆsNÑMêÃo:|j¸/Û Ï™Ç¬Jq»½pêœëLŸtÒI&8×8ç=ô†6pÎu¦ß{ï=óVçzÌFÅ¥¡ø4Q=õkƙ٤Ge¶ŽÁyb8% ™ø})â-cokÔîHßtû6ÀsõêÕf Áy€ o“V€#u†© ¹ûõzÒms­^WÔuë„N ¨»^ú"hø·+¯¼ròäÉJkd8μþ¾Ò‚¶7{äàœ}rÒîy(X’ Э=É(Êâ)lÖIP³°ú5éúyÈéÇî=÷Üc6×ÐbgŸ}¶²iW®—0Ì ~°¬;dœ9&ou`3ëѱ$äÁàä“Oö¿^¿¾N+ç¾ûîkòkDë€>®:hiôl­G/¯?â“PÆòz-›×üvC…I(À6æ:‘?hР€UMš4) 8WÛô_|ñE@~½Õ¶¦Ýu]ðÜ€)zN¬9Ó¤¼îÇ × ^# ~ôÑGfY¾1×ií¹ ·;W®C¶:Eÿ¥p)§/EÈèú†Ž3àF¸4§çÔ^îÇq¶i.À‘Ú4AÚ© ¹ûõº›Õihsd<ãŒ3>ä‡z¨ºµ›‰æÄ·=ÈêG‘›ßWZÖ\a‡¬lì“ðy‹€K‚s—P©—­K—.º¼¦rkè/=¤êµ×^ ¨ƒž9Ô¾}{‡hèo]¥4y®¾új“Ð]I;k…Oo¾ù¦™«À>`qz«ÃIóæÍµrÝédo”²Ûzÿý÷G­·:›kzæëÄ„9³«‹ÿo¼ñ†Í©„"3d—îÜ6=œs#i”3Ùdœ…÷Z6¯ùÛr¦uþůàÀUMcf)ð6‹è#g:EbFn7oõ1Ó¹!;>¿]¿-¤>À¶?ž™«žùöxî¹çÚEl" 5õäòË/7suÖI=Ûí|v=k]MMŸ ôÄO˜Y矾éT¯‡ØÛ@Ì,ýQ¨o´¦Ïª][\^eâô¥(5ŠÁ4|‚aÕGÆ|xô´ÅÈ·¦/Ë(À‘Zø)z¤wì žõî×|2½îf569`é‘éÁýÔ쨥fP¯¿¯T¤cŽ9Æ,ÜYsÙ'"þ"€~YòJWÏ>ûÌy¦Æ9¿öÚkuÒô¹çžÓ³Ê{ØOÌ‘G©«èÖA‘’¹x® êò¤~àóçÏ×ýÀоì­S ƒm~Û1^ë·mž¦Uüo'¶lÙÒl]¯ìD›0OÓl;eذa¶´ê¥»§´ào¿ývã7ÚéŠmþgžyÆN¿óÎ;uE]w«$öÁozššÍlGÊ—ò¨k€Î\h®-¤ên2Œ}`˜ cKè&áµl^óë0oHõ@ZgyôU3]'wœÓ•¶=u›·™¥€ÙŒ  Etjÿ©§žÒé!=»>`œvÝw`W¥G˜õkA­GãÙè²@¯^½´¸™®„ºÏÙüáZStrÇ>P˪x§vš~ë“s÷Ýw+\·qîu×ey»N%œg…tR@ýØuý_Á¼ øµB},í"öÃãòÅ—È«Œ§/…º>ÞÖ­[ëFÿRÕl!õ´5õ*cWâ~w¡æ6…Ñv»Î„Jh2têÔÉ9½0éç^ïÑì˜sô·0+aÙ´ˆígƒ#µùò¦Ö‘ZìpǾÓÝï~Cj½îfíS?õK¯oß¾:Z©³ØðáûvíjÇ”ÕÏ*óõôúûJK™¾êŒ¦[B~Çã±O¹!&"~¾ô«5r ôèÑÃ†ÙæøðWàM7ݤ{¹K)Ý»wï÷“«—©$»H¿¶½†.Ú–½LPóV×Nmy”PtÝ®]»95Q7›ðÛ.¢3ÍÎÌË–-Ó,[Hœkb¼e¢ν–Íkþ¿´’?D4]¯àà\uÕÚ'ã4WGÝn¦¨¿ÃŽøÿßöépæ7iu•Wœl3›DÈÖ4³4ιòàõ8§(Ú·¿ZìšõQ˜êÌæL+˜wž{ÒRöÿàÜ«Œ§/…:š:+رcGUÊ~ÓÁ¹W»÷Á¹ZÍF#Ùq&T<“A+wN/L:¶XaJ²É&óÏGjçÞÆ¦“ùH­Ïd¸c_Èéîw¿!µ^w³ê¦gOZI%œ—jôV6œ_+O¿¯´àõ×_oV®[ºœë±éxì“íÊI Þtkwî»Ò0­Ë_ÂJÞ…|>°bÞÙ½{w{=Ùè´«®•…|™f)rÆ?öz£éHoWb!'ÚEBŽãr]eÕ³dì¥{» §îÇŠ™í%tfAÏÑô€Uiº®‘êBzÀ©]0·Wbízl!+)2çFm‘"'<•M«ò”ß @g§—-ä,Ý®¾pŠîì½ÁºAw^(¬²78£wõÝÐxàv »}rt¹FЪU+;Ñ$B¶¦™U«V-mH'B>h@USĨó#¶Ûž]³¾#º0þàƒ•tþKë|àlf%ì‡Çå'ÜæÙî!'z•QíÜ)N?ýôK/½4 ²! µLÈJ…œ¨V3#ó©ÿ‹Øjë ­ý˜Þª$ft};‹)!À‘:à‹¯U’©õ¹ y€ 7Ýýî×®V‹ØO¯×ݬÆ`×=äö^w­GûI³6ÑÖO#õ³+WÂÓï+å?õÔSÍâf 窔fŸÂ[< øûÍzZ€Ì)*°nÝ:õVP¤›»ôKW·pkH;äf¸Jiè,]Óðìºg¸fÍšê¯WäKñáV«éº³T±“~£ë‚¤*¢[L5œí¦¼Ýr?qâDò¥žFUÑ5ÿpµVNó-ÕêÕ«¼*ç”$”±ÅóZ6¯ùí† ŸÐÈÄnO‹Ü~ûíæšƒº‹+\X¿Z\í¨O£šR]õ†E¸¢¾ÛÖÔ®O7±ë¡—.J4mÚT_ }B죀­Û·ºU^e0c×és¢o„îfßíRvñx$<ɨ_Q+׿:àü¥²q•Ñ ×\s¶ûÊ+¯Ü|óÍÎèÓ¢€¦èóó /8g&ýüöèÕ懲ι³cAÿ¬eÓI ~Ÿ ŽÔi¤v¿û ù•ñ´›ÕíŠ:hjH`=:Ni1õ“éðþÈa¶åþ÷•֦ån"Ó/C#~ƒÅiŸ„‰¤ŸÁyúµ)5B yt‡¹§M£èÜJ@Au |̘1š¨±dŠæ™dàmÒ è†IÄÑ£ÕGçSœåÔ(ƒCçôK1øCåÌé)¿ÌS1Èœ„|6’°Q(R è<©:¯i£ê·¨^xέÇiŸìÜiÒX€níiܸT ¤P÷ï;v¼œ£ã˜R¾úê«&2×El"ó¤k¹DH½^Ÿ|òI•B=€ìƒëôV#÷ë×O ÃÈ<ÑÕeû €@R è¶só¶€þJì““ºÙ(\*œ§B+QFÒE mÛ¶¦*ýÑGÕ€{ïûï¿¿÷Þ{Í9x ZÓ¹sçt©.õˆ¥€îË5cò9.Ö͓۷o×À=ôP,7ƺ@ 脩F,Ò| B4xð`›‘}²¥ @tçѹ±D#pÙe—™dÔKYÏtÑp5ºÚyÊ)§h73þ…®Ÿ_qÅѬšeÒ]@'nÞzë- °g ªû§Ÿ~ªzëÒnŒOwê‡$‘€°¢qCU ‡~Ø‹}r5EIY‚ó”m: Ž@ hؘ/¿üRO«vŽÇ®zhTpÕ÷æ›oêÁ~)X-Š\DúÜÿýmXƒh“z•n5×éž /¼°ˆJÀf@v hÔwϪ1ƒ5ò®¦±OÞ Ãˆ^€ᢷcIˆZ`ýúõEVƒ¯Y³FhÑ¢…"®¨×Æ‚Ä\€A¿bNš6+䳑6MIE@dÈI¶QÈ…âÁÏÏ„ŠSG@@B Э=$ @@@(:‚ó¢³fK € € €„ 8ÉÂD@@@ŠN€à¼è¬Ù € € €!ÎC²0@@@¢ 8/:k¶„ € € €@H‚ó,LD@@@ è΋Κ-!€ € € R€à<$ @@@(:œ¢Û[B@ ùV­YÛö¢rssEËËÛ®·}þõ§}8§çää îõf•JI#€ €…àÊyá Y €@ (ÒnyP³mÛrÿ¶o÷çú뜨´r™§pcSt@’X€à<‰‡¢!€‰À9§ïr;îsº\!Ù@@#@pÎ'@ ÓŽ=òÐ åËíVAy”s·ÙÈ€ €D!@p‹ €¤•@ñâÅO?ñ˜ÝVIy”s·ÙÈ€ €D!@p‹ €¤›ÀÙ.z¶»É“n.Ô@ŠJ€à¼¨¤Ù €@ 4m²w£{F( æ*O„ ÌB@ #@p^=–EH³Û¡2‘çFXY € €€‚s7JäAH3Nn“],ôaQÓ57ý ¨! €$N ô¯Ä•‡-#€ jU*uØ!!·­éšr@@˜œÇ„‘• €¤ƒ@¸Ç˜‡›žu¦ € çÉÑ”@ B>ðœÇ›'AËP@Ò_€à<ýÛ˜"€¸ùÀsoîRl € P‚óÂè±, €@º ?ÌGÅç¿®ôM[ïŸÖ´B±[÷)Y6‡øÜ ‘@â.@pwb6€¤“€®™?=Õ™—(æk_Ûפ<¿ÝÓ©y© ¾iëòû,ñmÝîÏïÙ·$×ÏùL €E&@Ä"£fC €@:¨7»‰Ì¯Ù“È<”:   3núvë웾éú¾Ìå- €@üÎãgËš@tÐpºÏ\µÒ5óZ¥¸fžníK}0úvë;®—¾ïúÖ P4çEãÌV@tÐØìN÷™Ó›=š“: ^@ßq}Óõ}×·>|.æ €ÄR€à<–š¬ Hc=Ï\OMS5/H{óM×·^ßý´¯,D’A€à<Z2 €) 0mÝv=ÏÜ<5-ŠK@ pæùˆúÖë»_¸5±4 €€+‚sWLdBX¶ÅõŒ§¦ñI@ Cô|D}ßõ2ßý ©5ÕD(@pž@|6¤’Àê­þà\WÎy!€@†˜ï»ùîgH•©& @‚óâ³i@ •¶ì¸ï´8ÇTj4ÊŠ@¡Ì÷Ý|÷ µ"Fp!À,HdA@@@ žçñÔeÝ € € €¸ 8wD@@@â)@pO]Ö € € €€ ‚sHdA@@@ žçñÔeÝ € € €¸ 8wD@@@â)@pO]Ö € € €€ ‚sHdA@@@ žçñÔeÝ € € €¸ 8wD@@@â)@pO]Ö € € €€ ‚sHdA@@@ žçñÔeÝ € € €¸ 8wD@@@â)@pO]Ö € € €€ ‚sHdA@@@ žçñÔeÝ € € €¸ 8wD@@@â)@pO]Ö € € €€ ‚sHdA@@@ žçñÔeÝ € € €¸ 8wD@@@â)@pO]Ö € € €€ ‚sHdA@@@ žçñÔeÝ € € €¸ 8wD@@@â)@pO]Ö € € €€ ‚sHdA@@@ žçñÔeÝ € € €¸ 8wD@@@â)@pO]Ö € € €€ ‚sHdA@@@ žçñÔeÝ € € €¸ 8wD@@@â)@pO]Ö € € €€ ‚sHdA@@@ žçñÔeÝ € € €¸ 8wD@@@â)@pO]Ö € € €€ ‚sHdA@@@ ž9ñ\9ëF@ ÍÌ;dà7#~ºtñ¢•+V”(Y¢fí=4Ú§~£}ZÙºÅáG¤yýã_½EóçOŸ2IÛ)[®|«£Zǃl@Äœ'Æ­"€¤ºÀŠeKŸíÚ¥_¯Ï*²xÁ‚?G2Ok×þÞÇŸ¬U§n@Þºøä7Þ{õeåo¼Ó¿q¿ 9@H-ºµ§V{QZ@¤?fTÛVGæ…Ø·Ï)-úæ‹ÞÓy 0|è7^z¡þÝsÇ€Y¼E@ C¸rž! M5@b&  ãל{æ†õëí÷mÖ¼ÙÁ‡ìÀUªU÷wÞŸ|4kÚT³a]£çõ÷n\Žzõëwÿè³+Î:uܨ‘š»`îœ/>þðšN·çdJdýš ‘ó0@4àžó4hDª€ PDê£þÊ“Û=úR÷‘¹ÉP¢dÉßû¨X±‚Cí°ÛƒóçÎùiðÀ¿Çý¡MÏþÄ–GõŸÙAoj×­{̉'ÿü½?,ÿã·ê _¶\9g®±#©Û#“ÿþkÝÚµfzVVÖ^ ÷¾üúŽ—]wƒÒÎÌ›7m:ÿÄ6fÊ»_ö+YªÔ[/<;zøð©ÿ6÷·«û÷-½ëáÇ÷¨WϹàûÝ_éÛóM9á´3n{à¡¡ƒ¾íóéÇý1ÆÔE=ó›xÐiçžwi‡ëK9Ó#~Òóƒ÷&§;êÍtuÑ?½ÝyWt¼©Q“}9i…ÊÝŸ~rÊ„¿túÀN× ë7ßsÿÉgcj§ÿsgÎXõÏ?&òŋÎ<ª•ÒG{Ü}ÝžV¢W÷õí£„j÷øË¯™löï–Í›_|ü៚;k¦=_ ²é9v÷?ñôž Úœ&QxŠ€ò@X œÇJ’õ €¤¿À_Œ¶•¼ýÁ®6!Ñõ¹—®œ=ÓdÈÎζ9I¾ýÒó/=þˆnb·•ÐtÅ™u¾óÛ>_<ùÚ[zdº«KÜÓ&M4oÇõð]·¯\±ÜÎUBçõﯱc>øC-ÇÈj+–-1 jàº.·Þôù‡8—Ò5ç1¿Ð¿õëÖ]û]ÎYJ«x¯<ñØ›/ûí¯çµ­ÆM;oI·W^·tiýŸåËì‚dz‘¹Îb¼óEß?æ.þâÇŸ™4£ûÇ=ËU¨`r>ÿhWõPÝÿ^²òîGº™‰z”šÞꟹ®nלxld~ñ5×[°ì«Ÿ‡÷ún¨/}ðqñâÅÍ"º€¿tÑÂàÅÍ÷áÖÀt@b%@p+IÖƒ æ+–-µW§ëÔ q1Ü}ýŸyèÓK\wGòíwr¨]VÝÑ_ÿ´÷‡úï»Öëã·^W$oÒo¼ëžý¾5—å'+Pì¥î6:·Û´3¡è÷›c.¾ºƒ¹å»JÕjê<¯ÀÛäÑè6³.Æ+6ouUÿ«Ÿ†ÛGµ«Øç_qÕË=>1=ÆÕõ½_¯]×äU;³”6ñü;´9é]¥7SN>óì+þ×ѤÕù|jPt3k·Çõ]ÿ¾&ÛEWwxä…—uùݼÕ%÷ÓÚµîLÀw»ÿž+tOrq&"€ [‚óØz²6@´X´`¾­Û…ÎuOõð¡?šUù•Áªérn·W F>ÓµåQ¿³Ûµ =ªí¦{î7ñ§xøÑÇØôê•+mÚ™¸õ¾.ZÖ9EÂ[~¤™²zeÁÀlzûå'jx63ýñW^S÷sçRJ+Ò>¨eÁIÝ|næêŠýÈ_ ¬^ëŠÌ–ºôºëíeíQà ˜ëòí»¯¼dr/Qâ¶.gœËžzι'y¶™¢›Ï³lÚ=…]„ €ñ 8Ÿ-kFH+Ò¥ËØú”(QÐkÚNqŸÐÓËlæ ¯ºÖ¦ ]©¶CÁÍž1Ã9ˤÛ_v¥ qí\ݸ^µz óöß5«ít›P(Ûî’Ëì[›Ø¯ys“ÖcÏlïÛ1^ä´óJ¾]Ä$4d½IèÙïftºÙ3¦Û<Þ¦m¢zÍZ/¼÷a—§ŸÓ¿£Ž;ÁN÷”˜9uŠÉÊYçèâÈeÛî¼y^—èFÎS~O!×ÏD@b+À€p±õdm €i+P±re[7;l›â>aGSS,m#ðàÅí»ßœ™þ°|ÎÌ]á®ÍV£f-›v&ª×¬iÑO/¯Z½º½Qܹ”JbßÚçì ³®wú ›Á™Ðèköí’E uj`þœÙfŠ¢ßC;ÜÎý?{g`UÑÅqba©¥EºS¥Pé[:DBRII¥»»»¤—Ú`ùþ8p¸ß}}÷½·ï½ý¿oå›;wæÌÌïÖœ™3g´hÔÚCGèá•KU®‚ÅKXÊ®5IÀ‡ [¨ô¡°TãI€H€HÀ‰¨œ;&E‘ ø2ø6—æ]½tIÂÖð.Ú8ômèÆ—ß¸:O•&­•¼I’%SgEÝÕ&NšÜüt±¤ÑY¼«x8Ÿ“–’ñÂÙ³* ´ý±ƒXJ/ñOŸH p‰Rjì÷ï­_¹ü“Ï«Ølä?kר4ð»öÁG~7uj÷ïV²ßºñZËÅ’o+É\t 3üpf®ÂÁë[·À!6 Šýƒ_µ.EÊ×öö–<ÒÙcÇéwS½"AZé0Í'Ã8) M«Ä  °B€Ê¹8nüÕ¨PV%Èôfè‡ëW­0Í÷rƒ{t9aþ.{½¬Ý4™• g¤Ï”Y%Xµd±¥”+/T§°¼,Z ‹óUâ9S&šæš;}ªšôÆ©’å?Ñ'xùRcîøÃÂEUô¡}{öïÚišC'÷ìVñÕëÖ7MÀ  ð4TÎ=튰>$@$@M n“fØ„\U³â~úq@çØóL°A-ÇáMkU_ôë,iÉÀ±¡f«ÃÔéÒÕú±‰ oÿ{cïv­‘ER"0¤g× oæœë4úIæêµiÜ®R½fî|TA‡Y»üm¡páÞº~qWõÍö騕­A³–*åÞÛ{µi){³!rÛßGì«ÎæÌ'eê׫Çýãø«H¬´?}ü˜ [ù·Y§.2Ðâûï Škc° Qõª*صã)Úd “ €Gàšsº¬ €§ÀäùÔß—Vû¸”¸s›=yþ BÛŒ#ƱCÅѺjL³‹–.£mX‹Î]—Λôð!"ç͘zôÀ~$È”-;¶ß·sû¾;TbÈü¡ekmFw†Ñ–Þ#F}ûqiŠAÆû<>L˜(Öïùc©ÚPg?ýªªvëòF­ÛÍÿeúý{wqjþÌéûwï,T¼$vVY‡s½‡–æ|T´¸„Vû*w¾üù nܦ½DêÐêhÑz°ÁˆÇâöÚ•+TøâË÷óåGíݳeÃzY€Ñ$ofõuBxH$@$@E€Ê¹G]V†H€HÀ ¤J›vÁÚMºtØøÆÙ*¥Ô¦öÕ)R¦4~RÉõÆÛ˜ ó˯íl 4Ø#öáO×ò4éÓÿu~Òd6ö3×årî!°÷1:°[gµr~ÝŠ?ñ§+vÇNÐF&H˜pÆ’?[ÔýîÚåˈÇL¸édxçþymšŽ4¹òäM’,¹Ò¨á…1ßXþk%kÃMÚvÀ’õ•K!ð±‚@H²Í[¶éÑ[   O&@³vO¾:¬ €‡ÀòIóNù}‰%7àðRþyµê+vì1ÕÌU“J”+ÿç¶]…K–2ÛBäZúÏö÷>ȧ=‹iaqí'n<í)Óp\M?¿X*AÜx6ra1|¬X¯«,µ6^²ikŽ÷s›Gk-:w›ÿ×Fh㺳˜Ä^ò÷¶ÒŸTÔÅã ÿœÕcú® ]] 2»yûÛÊkZ„\h˨³1. öíÚ²`t€³]‘åýêì[iŽ£ÐÊg˜H€H€œN º¬‘sºh $ ð%s/‡¬¼V,i´ )¢ûR»"Ø|F1?|öÔ‰³'O^>.é;ï@Å\¬ÃrÛ¦pd¿tþÖ¨Ÿ8|èî³dÏ ÛøœyòDiµ±*þÜ©“°K‡çö°ÐPlfŸóe+}fv§4mv8;~èàуÐÒŒY²dÈ’5kŽœÚÚ0&À/ž=sÿþ½€„ ³æÈ[{ÖRžäO=râÈ¡3'Ž#cÎÜyÁ0sö:µÜRvÆ[!°ööËí÷¢UNåW+}l+ÉxŠH€HÀ)¨œ;#… €ï rîûט-$ÿ'@åüÿyðˆH€\K€fí®åKé$@$@$@$@$@$@$`“•s›ˆ˜€H€H€H€H€H€H€\K€Ê¹kùR: Ø$@åÜ&"&       × rîZ¾”N$@$@$@$@$@$@6 P9·‰ˆ H€H€H€H€H€H€HÀµ¨œ»–/¥“ €MTÎm"b      p-*ç®åKé$@$@$@$@$@$@$`“•s›ˆ˜€H€H€H€H€H€H€\K€Ê¹kùR: Ø$@åÜ&"&       × rîZ¾”N$@$@$@$@$@$@6 P9·‰ˆ H€H€H€H€H€H€HÀµ¨œ»–/¥“ €MTÎm"b      p-*ç®åKé$@$@$@$@$@$@$`“€ŸÍîLúÏ?ÿ¬X±âìÙ³·nÝŠ3f¶lÙ²gÏþÞ{ï}ùå—~~žU[w’±^ÖÞ½{=z„4EЉ/žõÄ<ë]ž?¾xñâ“'O⡸|ùò;3)S¦¬Y³V«VíÝwßõ®¶øFm—/_Žw^J­[·žO€½Mc—˜½Mcܼ+×½{÷–.]ºeË–7nܾ};Nœ8)R¤H—.º:åË—?¾w5Çzmµ=ºëׯ÷íÛÊæÐ¡C#·™Ñ_¾|i½Þn;û矶mÛöüùófK|ÿý÷ÇW¶lY³g£xd¡B…öìÙPáräÈÅiøRó-ZÔ±cÇ‹/š6 ¯ËúõëwïÞ=mÚ´¦gã"÷ïßÇ#öï¿ÿŽ;¶eË–ø€U­Z5a„'NœH:µ‹ õ±s/‡¬¼V,i´ )¢{N­X ×X{ûåö{Ñ*§ò«•>¶ëJq§dö6 ÓfoÓ0:¯ÈøäÉ“.]º`Ö£Wf+Œù¿®]»¢_êïïo6wEêztЈóçÏèС: 6,Ûâ)fíÐ107nI3 cÇŽ•+WÉ"V¤½uëV(øµk×.Ò+à ¸š^ ß~û­YÍEcF}Ò¤I®Â§¶&N¼IjÖ¬©î· .h‹ðá°Í&ãÍ€ÝJ›6m| švïÁÃë7oûvÙ: ³ÂC‚WMŸ¼dåz³g½+’½M{®—;öÇ4Æ8÷2AË“'ÏÏ?ÿlI3G%Ÿ>}Ú³gÏ?ü3êÆêìQ¹t=ºèÑ£÷îÝ5=zôáÇ#±ª¡œÃ~ 00PQ€9æÏ—-[ ^ty<ˆ³É’%Sg‘ SU‘È+r‹ÆSqú¿LM´54ü0•¹fÚ*1A»wï–¡¨|ùòÁ²Wƒ|Ò[°`A‰%”|غàúÅ‹Rœ¥›DØÀ3¨î·ûsyuJëMÞ·oF”Ñ@ ãqC@^å .\³fW·ÝJå7lÙU©æO_Ömeî+4xŠ¢{ÿú{cï¡ã{g¥ãîùXØÛ´óYêH°·i'@÷$³t™ ”~çÎJ•*ÉL L2ûõë…ëÌ™3GŽ™3gÖñ©n„cºöíj9­²<$‹iS3.aaa?ýôS$š–G¾r޵åýû÷W— K°æ|äÈ‘˜EG8 ³RèCÁpŽJÓ AÜCri=¤Û·oÇ÷òÙ³g´pö+ñj`‡ê}üñÇxƒÀvþ'Nœ7oÞêÕ«ã1e‘*eÓ¦MxuF¼DJ°I–NáááI“&Å[[ãUž3gNÂÊÝ«»­Ò"m§ ¿ÌoÓcð³gÏ ÈëÛGìZµmd˜HÀ:8)Ó–¯S/FŒËVolкç»÷­§÷̳ìmFüº°·q†ž)Ó¢ÐÃUÝjÕª…^%fÈѽ‡£Ü¹s×®]“É»ví‚5¥JƒPÖ<³-vÖÊl3.0쇄;vÌš5ËNQNOùÊ9Æf?~Œ†Å,Š+fÚHè$X²¯\=|øpÕªU¦iT º’è=[:ëñ°qE=}€Œ+°x¬LX+©º >]"]=Û<*þÀºkÛsÈÄ™¯Uû›Êc¼úbñG$ ¬øÙÄ¡=&ˆèØ©;=yÖë °·©»dìmꀸçÐEØ#RyL˜ÏŸ?_IhÕªÕo¿ý&ÝK­XLa®ÞpUä˜1c ‘ixQØRMøæ›o”»ekG–FÉþÏÏ;7eÊu9[´h‘&MK—6C† X«†1 œ×­[W›¶¾Ó¦MƒÛd`â ïq˜rdžµÉÐ{1bbªT©òé§ŸBáÿ믿0tíÚ5¤,X°`½zõ²dɢ͂±¢S§NA?~üÍ›7gΜ¹sçNÜI’$AúÒ¥Këj"y1ÐùH‰á%X”úïW±bÅØæ¦ž°~xÔ¨QÐÇà +ZÁÓ¤XÔZ£F ¥˜a@ cT¨¿’dJ€ì &NœxõêUœÂÐWòäÉ¥¸Ž „òÍDO)×l<áp—ÃÙ8Vçâ©ÀS5 wïÞŘHâbÁ ¹H@`êÔ©¸ € –UÃÆ|‚‚‚°[LkpÖNÎŽ–.5AUq‹¢E—.]Š+–º4¸è°ÿÁn’ > €LtÃÎü×_E.Ü9hl·nÝ$lf̘ˇ¦ÁF½hÑ¢¸/pWàrK0\%KÍÓ§O¯=%axãÀdúôéˆIüký&QQ(À®^½ò8Ñ"Ôù‡~К]À_%îöãÇ«\}úôÁ›Uýî»ïT þµ³-òÐáaÁœ?>¨3¬åqcc#ÜÆ0 €´+W®àá¨<Ú’1cÆÂ… ãæ)N°ó¢;ôðÚl2®¯ªCãÆµ•A÷†Zaº‚‡´N:º³^zxåúÍVݽp9V,¿^í›~õi¹ÿòv…—¶‹Õ&0F XÁ|ó§ kÑ5ðü¥«õZvëÛ©ù矔6&Êý¹ØÛTÌ£BoSî.›]ôˆÐ·DÏ YŠ/®û|£Ã‰þú*è·—)S¦råÊ"›Âµ‰mbGbô Uδ&8 õÚ0/‡±ž=ý=$¶³’ðp¤† %J¤]#¯ÙÏBïøüóÏqöÁƒ°ñìÑ£‡J9xð`ô“†N I›öÎè„#櫵§¶³’–ºÙ¸jè}A.z}˜/ÑÉÇ*Ñ_~ù‘¨ê¦ÎZéÑ¡«.ñ Aƒ[ó@aÔ tÇ!nÊHüAQQ„†‰‹g½&ðU¿•+WjSN˜0Á¬Û@ðÅM,‰‘Qeì'ø[ÆÅô@oD¨a˜œ„ŽmzI:uê¤M0F _)Õºô%K–4m&´¸Ô¥T‡PNðHC¦Œié’ÁLK*‰SðÖ®­ŒKÉ  <ª>:Ñ–k6^Á;SÁºVàox&× ö«’A=†!±d3I•Ì!ÎŽ–®Š°4ò‚ÊÀÄ*´TX½4ûªaÆR[,Ê4ÐðeÄQ €ÊìÙ³%h€«4Ð¥µ§´a\}”‹n!Ä[¿Iþ-$H -ZÂXH†UÓ"\ÙiËY€"- ìo‹¤”%ï¿ÿ^]·n"mö÷ì¯$´ ™ñ‚F*%Z ÈÎYð$ÉÄâs-©S•Ǹƒö”ý•D.ôu•]7Ë EážV¾ ÃÚQeCc³G·mÛ6•³Â¦Ý£7—UµqۿЄUY}ô‘x}³T:fV1@‚ßgŸ}&i`§Ô¬Y3hàˆ e,ÀY5fƒõŸ‘AÉ‚”g¥@¢Pì ùCu3xPÁ]›aÜ@¸qÃá€~…:”•cHºe ¸–¯l!0‰iI™üĶ˜”Û _¡íb–œ9sfYгO PÕ <@ƒU…ªCÄh'oÕ)ù×=d¤8;>PÃf ÝIfËaƒ gð1•ƒÑJqHŽ!1yâ¬Ä:T:.+tf•UÅã à ñ}€9^Üx¦µÅ}¥Æ>Õ)¹@x­@ˆš‹Æ7w6¥W/D¸[Ã(6":„JŸ1@IDATÜ«W/™H—4à¾Å턟2÷°~“`dº±ZB‚Ûþ‹/¾À‡Î”…6M±ÊÚJ>F‹´Ê*nKâùRgj‹T¦ês9x‚d@ Ã[@G)S¥J%è0*‰¡Y‘€€‹nçÃk½ÉøB*€O‹¶>†Y ÃG"½4ðëÂå?uì÷(èqÞ÷²/˜:ÿziCXm §ˆ/îØ]¬ý $Ϙ»´y—AŸ8½§ do3Jõ6íï* Ã¦TèЊŌyãÆbØ “[úÉ=i¿pd±»·3`½¿!öWÝKèçª\;g‰ÑuTéÅœÕÖ%³¿’ÚŒºn6ì:a× `’O›ah‚üñ‡Š„þ¨6{tÐË0?„ÄëׯW}?•ÑmÿF²r.ʦ^ ´ú!C†¨ŒðÆ„C¸ÄLEÚ·o¯âa­Œ~uò¡æÁ”ú6ÌÚñðÈŽv˜Ÿ‡ „.11a ޏ03Ȩ4"œÒŽ`¡ô%K– ×;]!.-,= ~«!hæ0 ùP¡•ú' 6-8‹&`ôNÚ…· o`4ŽÈßÿ]eÄñ³4¢á2¢yJsTÀR¼$Ãð˜ƒ3h£0cV§°EœéÈ,‹ ÄÂk ¦ÐñQ ­£œ¥hì)O#î(• æÖÊ*ÌñÊ<o­Xm*&¢q«(ëhn6Ø# ¬»ÑKÀ]‡‘øºlÞ¼¹Êˆ»B;jƒyfeœµmÇ(Ôc `U3n*mY¶~“ÀúH @™G½âþĶXoð‚W˜ZSðܹsq]Ī Ipˆ1œ2Щ! d0ä½ð¡°¨Ç)| A÷®/î[0Á‡ÂP,ð%»á‹nÏÃk¥É¨€xb&R+€QŒ xµrÒ-pÌПgà¢ÀŽý—1ÞIöÖhE×d’ DMø6µn\gXïöqücoݵ¿ÖO.\¾æá(ØÛŒ:½M‡º è‡`ó0u÷bÒE…ÑgøñÇUwým­ X‡„C¬Ø}|¬÷÷ª$úáRºôÆ%Æl@Vb¢Ï&Š½Ù”V"ª¤©m7[´nll¤S" ‚A‡BvÌý`®Tɱ٣ƒA+ºÊHŒ¼{öì1-ÝÕ1‘¬œËX¦1åÚ‚Rx¾þúë±cÇ*eÈ€­,Ö¬" ÝÆìä9VG`Ù³A2Lçb6OᆢÚáë„e +Ìþ‰y¶¤GY2(€‘61‰è?6lP5ÄÝ£v @óedJ v”Q¥üã>ƒÒ"ñvÜCº"‚´PmÅ,Å«4xª±H^ÖÆC焉58‹á So0R\Dè?ÊÁQÎÚºÙY:F0(€Œ˜*Ç„¹Vö PÕ€’iÖ–‚c†0²PóÀð®¡o¼øÐ@YVãK€•ØJ¾Z£ÂPÄf¹¥ «*pÃì7JÇ3ùÐðµ³VãD*=ÆŒ1p Âr'[e -"màÀ²R³ñXÕ#§`¤ ô[4O™0—‹ˆ\t{^©‰Ù€ V¦ò¦iÄÒ÷ª ½›&óä˜[ÿޭתûò¿þŽ3Fç– ûwi;ö«§’? 0%P©\‰_ÇN™"ùÅ+סŸoÙ¹Ï4çİ·Ez›º 0D‡MÝ«XdŽîœÈ¨9aôTe> îºN¾•'ËÑJJ/ =C­³[+Eˆr ¸¬¤´tÊÑJêäèºÙ8TóvjÂU›ódêg™8´Ù£CéÔa}¥V {‘¬œC¯Sí4]qjOû1ï§’Ášizq^eº•xô$<0;y6Q€)ÃûÔ©öÊÝ $@$`…@Îl™°ò¥@Þ\Xˆûö™ó_wɬd‰¬SìmF‘Þ¦±®zGÐ psbÎ ªáZݨpú£w«CG…»®“oå9r´’°cUÒ´^­ÈÇ)5f=õ³ŽVR+Í´› íL òµ–ífmÚ!Êfi¤³§ümk+à†ðë…Ón(Élpô¥] tg¡#©\x¢t={U–LDƒ,ôa­R„)M5Ê¢­•83ÕK{¶@ÚC„¡?Àò †%½ØMÁNF&*µ¹0[¨º¤ÐÅàÔju€0‘4âjKbå,°³t<–bø€•HCÅŠ˜ã•[+Y…qk™Ž4I…1*a:ú îî ·n* ,ø6àZ:fãas…ŸÖ¬š9ÜfÂê^VïK^]@«“ã],-ÂrY£ËböÐp[°[¦xjP’å‘”"R¢ŒnÈj)×·KD!`ÏëM¯ £ÊëfõÅïƒ. ±ÆD-éÇí] LxlÌ’•ëûœŒ®[öÌÆvK“*…ÇV•#ð(I'š6ª_àè©‹–¯1qÖ‰3çûujáïÿö+æ!µeoS]Ÿïmë*àó¾ÜÜ€zzŠŒûtÓfŽ —­s±«êYú×ÑJª††½¢,ÉÔÅ£)1Æ Ÿ­¤‡€Ùn6f¹ÔÊ_(çb× Çªó]éÚߣS…ZéðkkåÜpä+çª=Ú+m¥…Êñ`àþUJKj 0Y§¼£Ã¶D¬Ö‘KFD´e‰> ”°=YÔ´9²À´U[œ‘€Zgný¹•ÄŽÜLÆ¡êaR#¦Y°ûŠÔ®~Q10áÖ¥w”³dw´t,VÁz!¨¯~!Ö¦µÅM«¶—@F12+B°“7«×ávÂO™{`d»;`J_=5¸Ãai/ËÅÍJV‘¸ëàŠƒ 2Un%±ÙSi‹))Âl“å¬ ¾èÈnÏë+N{¨Þ!ˆÁè,n!í)m_wu¡ñ*—ûY›ÀÃaa/°Â|ÞÒU¨[…2Å`Ê/n¬'«D$à±bùùõîÐ4gÖŒƒÇN_µ~Ë¥+×Gèswª°vÜžŠ±·i%ìmî*`ž])Y]S6Ž wQ'_êc6àh%1q¢ä`"·½8ë5+\EŠÊ†ÉQYl%½é)G+©•`¶3‰ žÐÔ-ºaXFªìmŦ] T!Çþ*4R”s‹M-×…EO“;ØJYPH0ÝŸêj‹¥¬^6Í ãd©DŒÎ¬Ú4£iŒ=Y°_ºiF³1ê½/S 0k7›ÌX¤›É8TIÌ*›}òánQÉ‘™R«]w­"å,¢ì/Õ€#LÚÃ9™V3Ç#®XÑÐLk‹¥éö˜‹«JªËÝñ:ÀO[´´C€pI€qGyÝØ3|€w±Aëž=Û5©Z¹¼‡4“½Mu!|¾·i¸«€­aDË+¨$pü$ŽÜ=G…;±“¯úoöﻸ1B^¯èÑE²r¿ šÂ,%.6 nÕòZ³Ü1Ý·ûê”ò†/ƒ=°«Ó!.lפî6h˜o7+Ö¹‘²j¯?åûM'ÝwÜâˆTË’±qâÚµkqhv° [²©û £A5Ò‰²rèd¤¶p—…ë¥Ý1R’õ'Ø]P[ 8ÊYäØ_ºÃÀi'îL‘€f³/_¾¬±Æ[öQÊ >Ã̪ÐÊz»š}E•rŽ{Þ’rŽB‘˶շÖúl-ŒÞÕj"hæX¦®[#$–iÖ‚³ÚbS¦ _t;å[I¦5ëÀ#,‡º,òùñ|å|ÍÆ­={’!mê±]3gH«k I€HÀÔ)Sü:~PAc×ý³£÷Ðñ§Ï_êд¾Ÿ_L¢œ›…½Í(ÒÛ4ÖUÀÊd8ßU·Lµ•!zàØÐ[ëöÈQáÆ:ùð=¤»ùÑÁ3ëÇJ—L:ZIÌÁa0¶ FvLù`a­*‹HhX°ÅýÓ³gÏÞ½{Ãyžøhªhõ¯iýá5I›aG+©ËnöF ˜Bƒ>…l_-Ýx12U¹¤ ‡vyl.’ÍÚ¡6cBOñ‚÷iÌŸ›%‚;w†³XÞ€§¬ R‹ˆ04bÖ£•ø¾6«'›-(‚‘¢sb×4å„@'Ó•¸éñÈNÁ>Y%€lr…‰V¸˜†üíë{ -‡­[·jÆ“,–åÊ•Ó5=t”³V‚¥Ë{ÐôÕåV¬b´’­„¥Âò²Ð&Ææjê®o“âµ÷‰ÚÑM›^˜‡Wš9Þ­r/ÉYm@šƒÙfŽd¸Ç´‰­‡m‹uiöŸ•rQ[{.û%ÛL ã8 QÉÔ@¬Ù,jÜ óêVÚ˜ÍèÎH¼XÆL™Ó±ïhæ% ˜7y(5swògY$àó°:kdš5¨‰–þ¶hÅOû>|ôj_ÒÈý±·©øû|oÓXW¡yóæÊÒ÷ ì‹+\è–Ã'œú²+zŽ —Ž™=Ø¥ç`j˜‰e‰ö{ks´’hZŸ>}ÔÌf4[´h¡³BÇšb¸ ø`‚ûm(Ðhd½:b,Õ½åªMåRÿ¨¤6»¥°˜¯CTÖ¯˜R’íŠU.;{t2Ý"æ– uE|$+çhö¯;0! ûaÙÀ@Z‹ÙNì³/V*fÀ€¢]ÀyƒŠÄUºþ:FM0º£ÎB±i. `Ö¦Â(ʪ¤+ ›%«6"±³´²ÌÇÀˆÁÔ%¶°Ö¦‡§&“±ŽBY hÏZÑT2÷ÁdÔ?XÂh«g)^¥ÁVðº©Z\SõZÄ,‹HÀ· ”+Qø·‰CÒ¦NyõÆ­Úͺlز+rÛ‹×;{›¸¾ÝÛt´«Õ·Y³fêÎÄ <# } *¥ŠDçgñâW#Úø9*Ü¡N>Ì­Õ¶²0&ÅœŒêç΋ÞT­_Uõ¯ôX´J£•T¢0t¥&qˆþa‘"E`Ïß¶m[˜µb²½DÝò·ß~+¥J‚ô31]‡Þ,<"A¥G2!©’©UR+Ál@ *¤=U¯^=í¡ ÛìÑ!™êÔA9…€©—Ç€¸'ü ®(5ÛRƒ/¨ ºÚB½±²žƨØDM²ÈªuèÉ)øP¥c"W"e(j¿DJ@MWâ&“d"Ôl[ððkcJ½ Ì&Æ8hÓkmH ?pV*‰'J»š ’}&ðˆJ¹–âE°ä öZ!¢äÀw€6^Âqv´tji˜»di·¾Ä誵Y]Aœ’j¸4º™öŠcžÖòÚôÛãhÏE`` .£Ù›DüXjËEd:vìˆ{Xâñ–WñM’H0" âj‹•‡Nž`ÈV×›À µö”C]ž û^KMÆ÷[¡À茶>×h¯DzNàïí{Š|Z+w©¯ÊWûñø©s†+öÛ¥àZ;Ÿü|úÉéOùG$àyÇSgߨ{ãÁÃG ÛôÄË“f-€«19ÎÊÅÞ¦ö³.a_êmâV±¿«€¹"º1L8å6ÃBZ1ä„Á6Ôc9e¿pdq¨“mVMUÊuQôÐÄ„³_RÌö÷ïP%•@TUÆ)t0{ˆÄ0ƒ—Ê`¦ÚÒ&²ÐoU»à›MÒ;ZI›Ýl%3£R[,RÀuÔ–¨Â6{t²¨ÝHÓìnˆ‰ü™sc˜ñ†6"J”ÀE7<`RfÏÚx„±–¶âf7‡À)(<ÚW4eH¯e6R²˜UÕÌf£o¬ÐÐ 2¡,8ƒY[.F0&‡x(ÄCe‚½±nè#˜bÕJ@X*©âj2(×Ô Ÿª˜¥xœx•Ð^D‚- §*»NˆŽ€¤qˆ³Êeé˜ÐÆu’*;Tèúõë㦂‹8åoñÊ‚4ÙRm1 —âaAZ¶·n݆ëºÑ>$À 9,/0C.‰µ ¡2˜Íã 9kö&™Zxã«àŠÒ ȼ~ó6v2?uö"F‘»·iTí '¬›¢rnàB0 x5g)ç€pðèÉ6=‡Ü½÷ q¢€‘ý:a_t¯&ÃÊ“@”%OLðº©oëîçƒ}ˆÕÎGX°‹K°Ò£Ã$Æf­²z×’Å{ŠY»‹šG±$@$à0oS;ÞôGLž »*(ߤpfé9šùžGk4îÍ.ù<8­í?|üøés¥‹ŒË™ëÛí¬ “‘ €'à̹'\ÖH€&ððQP‡>Ãwî;Œœ?Õ«Þ¬AM7Ì8Ý|Þéðó/£}—&ZŽêç_5f o!p*èå¼kÑbF64oœ”q\î¢håºÍ½‡Ž Éœ!í¸ÀnéÓºÊÈ[ø³ž$@Q“€Ëß¶Q+[M$@.%pæü%xQ‚f7nœQý;7ÿá;7hæhúè•R¾šC[|#ÚÍç/]ÚF 'ˆ,xºñŒã‡çÝ š9 ªüI©Y?b¯µó—®~פãö=#«í,—H€"‘ÍÚ#>‹& #ÖoÞÙ¼ËÀ{÷¦Mõî´‘} æËmDŠÑ<ï%Œq:(}÷#¢¥ˆ-¹?çÏ¢d>ðH˜3Ÿ{-ZHx´÷Æh’%6Ö³¸§š)’'…‰;ìÛ/_»±jýørÿàýî)𥠀‡ Y»‡\VƒH€l€óä‰3àI‹|˜wxŸ‰ØÎæìOÂ^Ž9|ìQ8çH­d²hiâл³)S ¸—^/מGÛr7کǯ †fÞ:›|?7iæÒÖÐÐÐþ#'cWHÄT©X¶w‡¦±cs ºàa€HÀÇ P9÷ñ Ìæ‘ ø 'OŸu0zÓ¶ÝhÑ÷ß~Ѿi½HÜ2äÅË— ®„®¹†õçøa5èçø7KùÌ Ç†D¡á¯öKƒf®v5Ç:sX³×H+¦»æÌMIÏY´bø„_àê2O®lcvy'YRÓ4Œ! ß#@åÜ÷®)[D$àƒ._½Ñ²[ Vcb©wû¦U*•õ„FÂ?ÜÒk¡ûî¿Àþjü‘ x;ìšöa’˜_§‰åžuæÖqíÚ¸]¯a‚¿“, ôó<¹²[Oϳ$@$ਜûÀEdH€|œÀö=:öñèñ¬É3 Kî\Ù<ªÁØÿüTPø­à—÷C^‡ÓKœG]V†lð=IìèïúGÏÃEû™Û®„¹W®ßlÕmÐÙ —1(Ù§C³/*–1—Šq$@$à;¨œûεdKH€|’ÀÌùŒš<;<<¾‘F÷ïìÒÌ} E$ཞb9ÏÀÑ·¾ZÎS¯F•¶MêFârïÅÈš“ x *çÞr¥XO (G 88¤Ï° +Öýƒ–W­\¾GÛÆ±bÑ1R”» Ø`ˆâà©nüŒy“g/‡bó ëÝ!a@ü(΄Í'ðUTÎ}õʲ]$@ÞMàæí;mz >vê\̘1:·løÝןyw{X{ ˆuÿìè8æÙóàôiS ì–9CÚcV ðPTÎ=ô°Z$@Q™À#'Úör÷þÃĉFöëäæÌ£2y¶HÀc œ:w±U·Àë7ÿ/î^íJýÈc«ÊŠ‘ €1TÎqc. p…® 35,,,GÖŒcvM2…«J¢\ ð*÷ܳm@îßi—ƒ“ xl®Ösð¸¿6mCͱåd§?øùÅôºV°Â$@$ P9ç@$@‘CàQГÎýGnݵÅÃç0֙Lj#rªÂRI€HÀ› LýuѸés_¾|Y0î‘};&N”Л[ú“ D]TΣîµgËI€"‘ÀùKW[utéêõ8þ±á•>‡#±2,šH€¼ÀßÛö`¸óé³çiR¦Àú ìY2x{‹X (H€Êy¼èl2 @$@'²Ë€QOž>Kõî;ØÉBàaÐãŽ}†ïØ{íiZ¿þ°9¥´Í ˆ¨œG‹Ì&’ xØ[ö4vÝ?;Pš_}Ú¹eC:.òŒ+ÃZ ø/^Œ˜8ë×…ËѤKÆz¼xq}§yl €O rîÓ——#ð×nÜnÕ-ðôùKØò§g»&U+—÷˜ª±"$@$àkþX³±ïð‰¡¡aÙ2§Çô´©Þõµ²=$@¾H€Ê¹/^U¶‰HÀÃìÞ¤]ïa%KšxtÿÎùrçô° ²:$@$àk?ݺûà;÷î'Jî… äñµ²=$@>G€Ê¹Ï]R6ˆHÀÃü¶xå°ñ3^¼?gÖ1º¼ûN2« «C$@¾Iàö{ÐÏž<3f l^«jeßl'[E$à+¨œûÊ•d;H€<@HHhÿ‘“–­Þˆª}Q±LïöMýýc{^5Y# ðYx÷>aù_£…XOÔ£mãX±bùlkÙ0 /'@åÜË/ «O$à©þ½{¯M!°«Œ#Fû¦õêV¯â©5e½H€HÀÇ ÌœÿǨɳÃÃñªhTÿÎÉ“&öñ³y$@ÞI †wV›µ& H&°kÿa+5€N^£Qü›0 Á¤a½¨™[aÅS$@$àjõk~9qh€ñ=Y³q‡ã§ÏY)qóŽ}VÎò ¸Ž•s×±¥d Ÿ%°eç¾ÆíûnÛ}Àl aÇ^¿U÷ïÞÏš)ýü)Ê~ôÙdŒ$ pbóÏ›4,S†´·þ½[·y·Uë7›-zÁ²Õ-ºn(†E €Ï˜µàÏ5›¶¢9ð3´sß¡*ËÆþϽЃ‡Zv´fã«SÍԄۡرévÈg.;B$à ðZþ´\ ¤î?râÀ‘ÇO+]ì#õ®¾~óv£v½Ÿ={Žvbv=]š”9²dô…6³ $@ÞC€3çÞs­XS  7o•k5öüUïMýÊ/8v`×3ç/·êxíæíxqã êѦ\‰ÂoÎóÿI€H€<ŽÀê [zþ98$$Sú4㻽“<é÷Í»ž>wQ*úN²$+挧õ“a€HÀ ¨œ»2‹ ð]Œ^±î]{>)]të®ýÏžc¦¼,ÓéðH€HÀÓÀ-\«nƒ0Iž ~Üì™3b.]WÃkÓºq]$I€HÀu¨œ»Ž-%“ ø¸ùÅÔŠ¥Vý(ß°>í$°”€ñ$@$@Eàîým{…}»ÙZÅŠå÷Ǭ±éÒ¼u,b6#I€HÀYÞúÀp–DÊ! Ÿ$€ rGOµÔ4¿˜1Ûýô=5sK|O$@H Y’ÄßWûÜRÅBCÆŽÿÅÒYÆ“ €Ó P9w:R $ðM‹W¬?qæ¼¥¶…½xé—‡‚,%`< €§8{árÁã¬Ôêïm{¶ï1¿k¦•\Œ! o$Íü•–¾q+þ}bÚ„A=Ú|þIiÓxÆ €SP9w F !ðA×nÜ®ò}‹ÐPitòÒE?Â<9ura øX¹cý?-}¿ö+"yÒåsÆÃfÊ÷šÌ‘ x*çžpX O$ЦÇà [v¡f¯uò2ÅJ)ÇßßëÊ:‘ ¸€À“§Ï°"}ͦ­Ûv C ?Öù¦u£:.(Š"I€H •sÞ$@$`†À޽‡ZwTªèG•°žœ:¹BŒ" (DÛ7mݹô½‡Ž-š1*]ê”Q¨ñl* €»P9wi–C$àUN½!]jΓ{ÕEceI€HÀå=¹{ÿA¦ôi\^ ˆz¨œG½kΓ xVV‡H€H€H€H€H€H€¢¿(×b¯jðË—/ƒ?ÁfðAîUugeI€¼Œ@Œ1bÅò‹ã; AüèÑ£{YíY] ÷`޼Y xv\qI¨œ»‚ªd‡\¿ùïý‡BBB_„‡¿ -þø# ׈=Fô˜1bÄŽ+I¢„©S¾Ã-Ü]Çš’IÀ{ °‹â½×Ž5'§`·Á©8ÿÆ5çÎgA‰оzýÖÍÛw0aæ3&¶Óô‹íƒY$Ëì$@V „¿|†Ý}Ã^¼ˆûÕzÊÉÓ¦~—³èV±ñ$ D!ì¢D¡‹Í¦’€-ì6Ø"dä<•s#Ô\—çÅ‹g/\¹wÿá³gÁ°,}ç¤ñãÅu]q”L$@¦°¯ï¿ÿÞÚš¸qý“&I”5Sº˜1cš&c @”"À.J”ºÜl, ØO€ÝûYÙLIåÜ&"÷%À€ôés—îÜ{š!]ª„ ÜW6K" ÿ'ð(èñ¥+7üýc%Oš8{– œ?ÿ<<"¨E€]”¨u½ÙZpœ» Ž33“ƒÞÚÍ@‰¬(X³cΚyÖÌé©™GÖU`¹$@ŠÞBxá„÷ÞNÄB$• °‹•¯>ÛNö`·ÁJ6ÓP9·‰ÈM à^ëÌaÍŽ9ó¸qüÝT*‹! Ëð. ï%¼ð޲œgH€|™»(¾|uÙ6pv"Î’ÊyÄ:G|³ÃÖ™sÎÜ9@)…HÀðFÂ{ o'¼£œ!2H€¼»(ÞwÍXcˆ$ì6D<•ótNv,åúo×´0x€sŽDJ! 'À{ ;Gà…7•“DR €×`Åk.+JžA€Ý†ˆ\*ç¡ç´¼ðŠŒý̱k}³;)‘ 8‰ÞKx;á…7•“DR €×`Åk.+JžA€Ý†ˆ\*ç¡ç´¼0}ŽýÌ&‘‚H€HÀyðvÂ; o*牤$ ï À.Šw\'Ö’<‰» †¯•sÃ蜙144ìeøK¿Ø~ÎJY$@$à$x;á…7•“äQ €×`Åk.+JC€ÝׂʹatÎÌ-ÚËÑ£;S(e‘ €“ü÷vzùß›ÊI)†HÀK°‹â%ŠÕ$"Ànƒá‹AåÜ0:f$      ç rB$@$@$@$@$@$@† P97ŒŽI€H€H€H€H€H€HÀ9¨œ;‡#¥ €aTÎ £cF      p*çÎáH)$@$@$@$@$@$@$`˜•sÃ蘑H€H€H€H€H€H€œC€Ê¹s8R &@åÜ0:f$      ç rB$@$@$@$@$@$@† P97ŒŽI€H€H€H€H€H€HÀ9¨œ;‡#¥ €aTÎ £cF      p*çÎáH)$@$@$@$@$@$@$`˜•sÃ蘑H€H€H€H€H€H€œC€Ê¹s8R &@åÜ0:f$      ç rB$@$@$@$@$@$@† P97ŒŽI€H€H€H€H€H€HÀ9¨œ;‡#¥ €aTÎ £cF      p*çÎáH)$@$@$@$@$@$@$`˜•sÃ蘑H€H€H€H€H€H€œC€Ê¹s8R &@åÜ0:f$      ç rB$@$@$@$@$@$@† P97ŒŽI€H€H€H€H€H€HÀ9¨œ;‡#¥ €aTÎ £cF      p*çÎáH)$@$@$@$@$@$@$`˜•sÃ蘑H€H€H€H€H€H€œC€Ê¹s8R &@åÜ0:f$      ç rB$@$@$@$@$@$@† P97ŒŽI€H€H€H€H€H€HÀ9üœ#†R¢ýû÷ݽsÇJ[ãĉ›5[ÖT©R[IÃS!ôhÅŠJ·ßV÷ó3óß½{wÉ’EçÏž»pá<þ¢Çˆ‘!=þ—!kÖlßV¯‘4iÒˆT€yI€H€H€ŒxòäÉŽíÛ^¾|i%{Œ1ÞM™2W®÷bÆŒi%™'ŸºuóæáÇPÃxñâ/QÂѪ²ã(1¦÷%Ñ­¿ |©©žÜ–+×n^ºr= Aê”)<¹žE‹H:ÍãÇÏž9sìø1˜Ò©Òÿý÷ß:µ¾[±j l¤>ÇŽ]½jhïà ™Raï ,[¶£$¨… •¼·¬9 @D`>\ûQ·ný_oêÞ½{õêÖÙ°éŸtéÒK/ XïD°c˜‰õZËŒ$`Œ•scÜ¢z®|xäÈ‘K—.™½d¨-¬90í`¥hÝ)ȹ|ù2ZøºS6ƒƒƒQœ2O°™˜ H€H€HÀÏ*W†ÛvuöÆëf¿q’×Ño(æäñ)‡JŒ)k5?/¢"%àŠnLD¾æ‘…’Ь·KäÈ‘SäÂ:ëÃ?R‡?ùÚKL¿˜¿Î™› A‚Þ½z.˜?_…)R=þ:üßo‚”C‡^¹rEåM˜0áW_WmÜä§ìÙsˆpèֵ˩S'nÕºm¡B…ÇÿìÙ«wÚ´éT2ô°âaÞµK§©S&#fÆÌÙÒRÉø/ (¹sçÁÐ?ÂÐ3Ÿ>}búýrèªdb[\¸Rß¹c‡hûèädËöÊò±Uë6Ñ£Gø˜øæë/ÕøÈQ¦Cÿ˜)W¦”J?0p°•]Ólö "Ò‘ «€ý_s›µÒIæ! ¸€~¼jÀ"|’€VyÓê“'NÇBt4ùÄñã={v7;aޝÅÁƒ êh… 4çÙ³fΛû[ÇÎ]Ú´i§åvèàL’#æ£ 1\<Ÿ©4X­rë–Í&M)S¦¬6#¿Ξա}[]YˆÇ'Úþ°-¥jõslöŽÙ~¤I&Í´iSºu鬓© 4De8 ?𝕠hðÖ¶aýúnÝ{jã%œ1S¦}û^™©Ÿ:uÊóùòÉ)] æwµ*T¬ˆH?¿XPb€f®š#)Õ¡V]¼sçNêß9|XÒHx¡CÉœ¿`‘|˜í‘i€Ï­[7UÝ’&K:jäðAoÇP(á¿Ì˜õxáâ¥íÚ¶^¼h¡TóçÎá1 .6õÁ± ¨³Ú,ƒ*þfÏž9eÊt¨÷r·‡@Û³wO—NàfOÎ"€QüöïÛûçŠUÊÇÞ£ G’E¥ÄeU1ÁÁ¯ þH€H€H@KàÁnbƒPuš¹o(ä0zÔmcL#ümß¶=%Õ7@üóçÏdø¯.—:”ïZPù=\U2›½‚ˆtc´C}ìÿšÛ¬•V2Ã$à4kwç(W –šK›³kfÑ%¯N³š9”äïj|‹/‡hËÉ“'Ç>™’ŸÀýM?-*6ÑÌáy%#ÔËšÕ«at@b€!:\ÊKYiÒ¤-[¶\ÅJŸjgþ±'œÚ®S›Q…·lþÇ’fn¸!­[µÐiæò™„òÙ§·yåüÃ^Û& bU¿þ#–>“þþþÐñ÷Î;ï¨V _}mëpˆ_l‰lÛ¦•hæ˜Æ‡ò• %J–ŒŸ Jƒˆ:µkª~ÄØ”i˜*në–-¢™£ØVªŠ{/Ïû9E3Çt:Œ ´g;wì ‡*€g+U(/š9&ɱŀ¶„û¤Ú7_KëtÙ1ô.š9n9­æcûšÕ¿Uécƈ¡ÀJvŒø¨m å,$@$@Q™¬ÛNž|eˆÖ¬©€úר7ô mf‡IDATeK¥û„ÆÓ?û¬2>èò Ŧb ê×Õ䬰Í^ADº1RIG¿æ6k%’ ·xÛgu[‘,Èç ü¾`>ö9WÍL’$I† L›Œ < ¿q-[µž8i L”UšE ‡– çÌ™kÃÆŽŸ<³k÷¾³ç/Ž=VL‹1µŽ [S±*Úõª5k‘ñ؉ÓcxÙÎ>½þO¹…ûSu *܈‘£:‚iU˜ÜoÙ¶cíº0ØVgׯ׻¦WñÐHU Ò§ŸÁ|æ¬9%K•V1Ʋsç˜( øf 1ê̹‹'NE[`l¦âÍþ[®ìÇòq…Zއ÷rf¯Võ+|†aS ìºÍfDä_ë6\ºr½Wï¾*ôvâoÒä©*æÂ… °Wá"E‹íÚ³oÝúM¿ÌúuÉÒ?;Ù¨ñOêVhïØ±]…mÊ4ÆG —q‡¬\ý×ù —Ï_¼2yÊ48ÑQ§Ôò(Ø‹—ü†œ>{ge¤fåÊåÊ|C%ƪŠ.]:ª(É:v¾péêö»qËá6(\¤¨Jvõê•1£GIѦ’¥Jí;pWêìùK(7A‚•ãA°“G7‰ …\:l„ŠÑ™Jf @T#€Oy“F ÅõI:ÿ§3û†NþoEH¾÷Þûû^ºlùÌÙsðAß»ÿP•7þh°³ú¶­[NÛf¯ "ÝU[_s›µr: $›hÖn˜!ë&íܸJqïîÝ+W¯ü¹l™xõ@|ç.Ý,Í BÍ›ñË,Q™û€þý”´\¹ÞÃK“´ê0aÂDX÷›8IÌRBdž5×Âß4oÑRÕþ‹±€‰''x­åÉ›wÜÏΞ9}ôèQ$è0þ0=®²(­ á/¿úúûºõ´ròåÏß³wŸ–Í›!Ry>Ã"ymÆxäWû¶ºö”á†`{3%ƒð¬.Öé Ô£gïôé3À_[„aquËujÕÄÇIEbà`óæð‡Cèùùòå/T¸pÙ²)ZT”XÉn= FkH6fìÏÊH[eÁ,1Vq¯[»&܈ Q Ìþk˜VvŒÃ¢]¬‘Ãb94ö·9¿ª407Xµzmâį–èãæÁYtq`ëŽC.^¼Å^¥üå—ébÄ1~¤oª½žè†LèÌXO^³Æ·»vî@âE‹~ïÝ·`ªŒÚÛ¶ëÐ¥k7µT·õ#G5iü£J³ß>¬Ô¦g˜H€H ŠÀš)íŠ9Eñ›7oÂYÏ,{òÆ’Ÿ°:ß¿UÎ}Cá°%ªRÐ}WsˆAcôØŸá@G`Qº,RsÛ5Šx7Æ)_s·µ—‘€%œ9·D†ñÖ`aóçŸUÒýÕý¾v÷®]´šyîܹuÞÑD(tªI“§h5sœš;w¼‘©4#GÍ\rÁ”Zü‘È ³œUñÍ\Å@›ÒîGòÏ›™yœ I™2þtڵʘ6ÍkW^8”IruJþmР¡i^c ÁÊ®7(ɉÍ\Ê·ÙÊk¹rÏ[°0þ’^¨<® 6B¯úu•\9²ìßÏŠWyÉ% »(JÔÐz}S  ‘¦JF…ÅÕ™ä50ÆG'ªg¯>2­NiÛÞ®CG¥™K®>x»ÿî»*–#† Uár—Í\raô¡CÇNê.ôÄ‚@ €ñ ¤Qš¹Ä/QRÂ÷î½.Nb  ˆâfLŸÖ¸QCÝ_³¦Múõí=÷·9¢™C‘†!†ì—±ohPP>yJÈDš `ú¡Oßþ?4ü2fÔuÏaDº1Nùš»§™,…¬ rnÏ'P½zÍ?–¯Ä,¢Y˜_MýF£“²¹<]‹ƒw9«eʾöè†Í?d¡¯¤ÁÈ+¼µË¡Ÿ>}zuxñ‰‡õòá£Çñ'sérêÊ•ËXÁ.‡–Í[¶4=e¬!{÷ìQ°ö—°`ƒÐ¨q94 ”.]“É0QÃ,.<“›!ÇÆccÆŒ‚{Uñfo*G›E 6ÿºSøb²úàýºxë‡ÆøèdÂQŸ.&Q¢DK «@@·NÚáóVEb0Hvªûæ›jº,ê$eœhëÖ-¦ijÕ®c:û5²ªZ½i.Æ €MÁÁ!ºécßÐ4iÒʌȴ©“áàæÀþÿûvc6eðaøw›uszÃݧ|ÍÞ $hÖn³Dƒ*’,YrSqãÅÍž=~E‹ÿøãò¦ $“ê–€xä‚aÕðaC$^8tè^¿vMôYØœf®NåÈ™ ›W#ŒÔ"A8…=·ÎŸ?‡Í<ð÷ê¿K—ÄD\’éÐñµÓEâÐXC`k­DaÓ8ÙK'<ëÿ»„ÑU‡˜rÇ_»ö1 ?ö»wïÆ_XC¦]h&Ö¯÷ýâ%Ë´ƒñf¥i#!ððáCÇÃÈ…‚Lö+ù"ÊÉŽ¼ýÉ{‰ùfÍ9b2dÈ(ñVgϼuϳ…K—.šM,cL×®]3Mð÷¡ÕJ‘â]5~„…ºS<$ ˆâ *çÈ™S!,ìEУGø) sœ…"½{÷NøÁ‘E‚†¿¡_~ùõô鯽ÉÀü˜·À«ÅJ”(]ªLÊT©t•‰¬Cݧ|Í#«½,—´¨œki0l/¼y?Xý—yivŠHšôÕ&^ºß¹s¯5%¨4C‡ Ö5=”ùO9•‚š„2X·ö/dãt• ËÎôë+öä"Êž@Òÿ¶"3Mi¬!2¥Ÿ.ÝëI~SÉiÞlšmzÊ4VßXØ?8“ƒfþ÷¦ãÇÿ¬–O#1K—.®Qã;ÓŒ¦1¶‡L œ2 lŒ¶VØÄN{h6ë À4™Ô§ÄÁ»i2‰1½åpJÜéK2]@gñ®;ËC  (H o¿ßV¯a¶ápã:ó—é=ºwSg±cȆõë>©PQÊ—ËÑÎRÿwîÞÏv)ôÕ@ûå¹óæÍE Tâê5jÂóœnɘ$6 ˆ¼é)§ÄØß&(×ð×Ü)u¦ˆ šµG ³;|¼a·3‡Äa€Y—>~ü·[jéNʼnóÚEv̘oo{,Ãþ¸liSÍ®¶á EëE'Íʡᆈ•¾_,‹£f±Ì‚o˜›7nàO$˜V†Ùð¾|Å*­×÷ƒûõ«ÎL3"[ˆ/Z¨w¯¦š9Ö `y|sæfE!Ò0­À¸o®¦6Ò@؊ϳÒLo9$óã¶ÐlDººûb©\Æ“ x#µ5nÒpRyñ_‘o(»M6cþï‹>.ÿ‰©ÝÜ¡ƒá9¨ògI¹ÖOž<¶žÀγïÆ8åkngm™Œ\JÀ¢àÒR)œL ÀrnÀ•C8x}ë7` im f# øPƒ0F€u1rxýúkƒdÙãjïÞ=ôSФa±zÙråŠ+ž1c&x1E 66›óël‘`gÀpCR¥N­Šxôð¡¥²nܸazjô¨‘jçR,78uæ¼õIãnÝ{bôû÷ïC,ùM¥™Æ4oö“€Å:,X(S¶Üû¹sc†_Ù–SõËk×®šf4c˜YiŒL›öíª„é¿ÌJe˨/õ›kÁr™H€H€¬¨TéÓ‘#†©4²¨*âßPø]ÃÌæ_íš¶më–-›¡–KM° ½]»6S¦N—+,vW¬ä2=ñn ¿æ¦T㥨œ{é…óÍjgÉšE)ç±bdž~n ‘'Ž·” ˤÕ)h•*€ýØÕb`èá?Ÿhj]†¹hKÒ¬ÇkHæÌY”X|ƒCCCM}ŒáìÕ+WL‹Îœ%³ŠD®ÍÿüóYåʦi$‹ÖÒgÈ ”sYÒ&gM·nÝRû±áÜ¡/\¼;“é’™2Ð¥Ñ㣕à¬p–,¯™C`Ò$IÝuΪ å €À^°ød«ŽŠv3§|C± æÏñ‡â`·¸dñÂÀ0ƒÃMo6Ž‘š `ÖyÊ™3§µi ‡#Þá×Ü0|fô41<­B¬OT&%KVÕü#‡=2‹³¾… À_åO_/¾Ò&;yê¤Yâ«W¯ìؾ]¥,Y²” ˆ&uV¦š9ÒˆRª-ž°±†ÈÇ ‹ÍV®Xn¶ Å‹™ÆçÌñzËnœZ¿~­im ÀJÃá¼O{Êlxß޽߱SgsšùuÙ'\RZãc]¦±³™ßÜrÈŽ ³B°\¿â'«»n‰9þfs1’H€H€"B“äñã'Pžý§6«°±oè˜Ñ£Ô‡¬uËæºZÁ5¬è‡¡â±«‹šÏˆóힸÅÑæ…/í¡ápÄ»1üš†ÏŒžF€Ê¹§]‘(]Ÿ‚ ©ö?~4}ú4SX5(pÜ­ã—$iRÓØû„™Æ7.,,LÅ—(ùzj|~TŒ©ßoÄ_»vuíäL¥ÙŒ1Ö‚ ãK¬„O2Ùt”áÌéÓkV¯2-:¶L³ÿ±lÙ–Í›MÓHÌüys¡ü«Ãœ&~b¯+÷EøÛ…ý DŽ~™1C–:™ÆøX‘xlx†}û”xÄ}üØÌò¹)“'8°_ÝuY³f‹Hqº¼:,º³<$ ˆâ0¿­<}öLPû†bÉ›úa”ßìªòdÉßî£jÝb¯©€ ìß¿žbu‘vê>ïÆ8åk®«•ma2p.*çÎåIi"PíÛê˜ÄV"F±rå ­8x;û±aqWó»ZÚ³4pÀ† ëå±cFËÞ!™2g~ï½÷ÕÙœ¹^O8c«ÏãÇi³`ýUÅ åoߺ%‘a¡¡¶0ÖÌ™3×­W_ ß³gw³¦M`¦.e?¾Níšr¨ `p¡K×î*ãßVûzÒÄ Ú*Œ ½!³{·®êÆü+~*Éüãø«ðÍ›7Nœ8.ñ¹r¾–‡Ù‚Ä#·4:¶WËÝU¼¶Âˆ±$ÓmÑN ÷¨¤ÁÝn°Gþo¦Êe»û\¹ÞËûÁ/ZvM7k:qù”@$@$༞9‡gVi‘±oh¾üù• Ð>_pˆlÄ&ŽÿYÅdÍ–-I’$ÜlìºháïX7'Y.]ºôCýzº¾œµ°Ô+pJ7Æð×ÜR­,µ‚ñ$àRoíU\Z …“€=°¶jÈÐá•*”Gb,|jPïûÏ>«œ¯@D :urùŸˆ7ò*_~õùç_˜•‰Ïïj|›;OžR¥JÇŽí_'PtUJÿiÓgB)U‡H°l鄱”«BùrprVºté ç/ìܹýرcºÔ~ýúäÉ“·ÉOM%»ÙÒU¤á†tìÔeáï¿Ãpr°ȱ£GK”(™8I(Ì+–ÿiê,]êмEË ÖÁµ b°0¬WÏîØ(Ê$ ’';¦ž>} ïÚEkõü€õl"¡H‘b®Yý[Œ’`6\»Ã;œ±ÃŽgþ¾`Ïî]_Tù2I’¤»víܽk§Z».×­];aüÏ Àþmˆ´$Ó0)È‰Š•>Å¢;ìR™7¬/W¦T…ŠŸbã½;wþݵsçßoReÁ±-8¥ÜÂEŠ* ˆåËÿü²ÊçI“$Áö6ÒrJB$@$àÄÃ+ìÌ¡N+ó:cßPøÐ-\¸¾ÝÀ‚/õî]¯¾æXª}÷Þ½Û·mÞ¼Y}èq»© º/ªT™8a<¡Ò×ú®zÁB…Ò¥M·wß^G—³)–z8ñnŒá¯¹•Z HÀm¨œ» 5 ²‹>ÐÏ¡[bcmdXµj%þt9¡sŽ=F©1Ö z5ÜâO—&pÐÇ6=áA\×þ|òXrü’æ$N3egySíîÎ΃߬N&Û7nþ{Sº©ùðÑîÞÞþW·¶oݸ^¤ " EÀå<¯T‡×Ð'«ø‚’Ÿâ6¨q̈—¡øÈÕÖÖÖ»žl¼”ÇÑâÎ'+“¸7êíooÿÿÛ[Þ5v®}ñ© :÷9Ƽ™«Ã«ù{¯jîYx¸XÀ±a±Ï‚Ÿ ç pÚýÈ+_Oë¹pÞ³šáÌ x•ñÀ§#àˆò鬵gJ ”€cCgI¿ÖÞ™Î@ @€ PF@8/㨠 @€è, œw¦3 @€”ÎË8ªB€ @€: ü÷KH࣠\ÝÜ|s_ñé4q/÷~y.€ @€‹„óÅ>~: ï¾ÿaê*  @€ ðkí)m @€ @ ¡€pÞÛT @€ @ % œ§T´ @€ @€†ÂyClS @€ @€”€pžRÑF€ @€ ç ±ME€ @€RÂyJE @€h( œ7Ä6 @€H ç)m @€ @ ¡€pÞÛT @€ @ % œ§T´ @€ @€†ÂyClS @€ @€”€pžRÑF€ @€ ç ±ME€ @€RÂyJE @€h( œ7Ä6 @€H ç)m @€ @ ¡€pÞÛT @€ @ % œ§T´ @€ @€†ÂyClS @€ @€”€pžRÑF€ @€ ç ±ME€ @€RÂyJE @€h( œ7Ä6 @€H ç)m @€ @ ¡€pÞÛT @€ @ % œ§T´ @€ @€†ÂyClS @€ @€”€pžRÑF€ @€ ç ±ME€ @€RÂyJ¥yÛx 1šž6ŸÙ„x¿ÀÙî4:Û©ÞßY–IÀe™VÓs!ÐFÀ±¡³³pÞ™®äÀÕÕÉh<:>:.YT-ˆÝ)ö¨Ø© ÕS†Á8¢ f©\(s#àØÐy)„óÎt%^\›®ŒÇ/^•,ª Äî{TìT…ê)C€À`Q³T.”À¹plè¼Âygº’7>»<®Ÿœ¼xyP²®Zè-ûRìN±GÅNÕ»˜ LÀe` ær |ldž>+ œ÷Ñ+6v4]½òùt:yüøI±¢  @ „Àîî_±;Å;U‰zj 0$G”!­–k%pú,‚pÞG¯äØíë×â7Çöö_<ßÛ/YW-ôˆiÿÅËØbêQÆP,àˆ2àÅséÚ 86ôôÎ{¾¶6½þåëëk¿ÜÿýàÕa±º  @ «@ìE±#ž»SìQ]ËG€À°Q†½~®ž@+džþÒÂyÃbnnom^½²¶¶z÷Þ}ïŸcUˆN± íüükìH±/ÅîÔ©†A,‰€#Ê’,¤§A š€cCÚÑ©ïÖ.Y¨ÈÉÉÉνûOž>;88Œ[°\»¶yùÒz¡ÚÊ @àƒâV.qÿ‹ø”M¼gÉü›¯o­¬¬|ÐHX^G”å][ÏŒ@/dž^|oÎßö8â¿K<üãÑŽŽŽ'++—Ö/N¦“±[1ƒÕq –X`vz_L_rvoöI|Î<~›=Þ.s¸%^tO@–€#J—Ζ[À±¡Æú ç5T Ô<<SãÝò9 ˜pD™ñÀ§&àØPcÅ…óªj @€ @€ wkÏÀÒ• @€ÔÎk¨ªI€ @€2„ó ,]  @€ @€@ ἆªš @€ @ C@8ÏÀÒ• @€ÔÎk¨ªI€ @€2„ó ,]  @€ @€@ ἆªš @€ @ C@8ÏÀÒ• @€ÔÎk¨ªI€ @€2„ó ,]  @€ @€@ ἆªš @€ @ C@8ÏÀÒ• @€ÔÎk¨ªI€ @€2„ó ,]  @€ @€@ ἆªš @€ @ C@8ÏÀÒ• @€ÔÎk¨ªI€ @€2„ó ,]  @€ @€@ ἆªš @€ @ C@8ÏÀÒ• @€ÔÎk¨ªI€ @€2„ó ,]  @€ @€@ ἆªš @€ @ C@8ÏÀÒ• @€ÔÎk¨ªI€ @€2„ó ,]  @€ @€@ ἆªš @€ @ C@8ÏÀÒ• @€ÔÎk¨ªI€ @€2„ó ,]  @€ @€@ ἆªš @€ @ C@8ÏÀÒ• @€Ôøÿ£ô@èøIEND®B`‚libzdb-3.4.0/doc/api-docs/tab_h.png000644 000765 000024 00000000261 14652557242 017121 0ustar00haukstaff000000 000000 ‰PNG  IHDR$ÇÇ[xIDATxíÝMÁ@†áž~¥ÜÆÎ’Evˆ¿"!•²‘d*×rGq=Š{¼ßSݧçë­ÓÉHÇ uO^õø[À_‡¢ãXvyËþÒ±=·VCffææ{°öŠó´Rçœ%_õçÿŽ¢ö·°Çrug¶(?gh\i>|sIEND®B`‚libzdb-3.4.0/doc/api-docs/SQLException_8h.html000644 000765 000024 00000006044 14652557242 021146 0ustar00haukstaff000000 000000 SQLException.h File Reference ⬅
SQLException.h File Reference

Detailed Description

Signals that an SQL specific exception has occurred.

See also
Exception.h

Variables

Exception_T SQLException
 

Variable Documentation

◆ SQLException

Exception_T SQLException
extern

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/classes.html000644 000765 000024 00000005364 14652557242 017672 0ustar00haukstaff000000 000000 Data Structure Index ⬅
Data Structure Index

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/examples.html000644 000765 000024 00000002612 14652557242 020044 0ustar00haukstaff000000 000000 Examples ⬅
Examples
Here is a list of all examples:

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/oracleoptions.html000644 000765 000024 00000004042 13450477104 021077 0ustar00haukstaff000000 000000 libzdb | Oracle Options

Oracle URL properties

Property Description Type
user The Oracle login ID. This property is required unless the auth-part of the URL was used.

Example: user=root

String
password The password for user. This property is required unless the auth-part of the URL was used.

Example: password=swordfish

String
fetch-size The number of rows that should be fetched from the database when more rows are needed for ResultSet objects. Default is 100 rows. Rows are retrieved in-memory. A larger value will make libzdb use more memory.

Example: fetch-size=10

Number [1..int.max]
sysdba Set to true if connection should be done as sysdba with system privileges. The user specified, typically sys, must belong to the SYSDBA role. Default is false

Example: sysdba=true

Boolean (true/false)
libzdb-3.4.0/doc/api-docs/folderclosedd.svg000644 000765 000024 00000003714 14652557242 020676 0ustar00haukstaff000000 000000 libzdb-3.4.0/doc/api-docs/Exception_8h.html000644 000765 000024 00000062611 14652557242 020570 0ustar00haukstaff000000 000000 Exception.h File Reference ⬅
Exception.h File Reference

Detailed Description

An Exception indicates an error condition from which recovery may be possible.

The Library raises exceptions, which can be handled by recovery code, if recovery is possible. When an exception is raised, it is handled by the handler that was most recently instantiated. If no handlers are defined an exception will cause the library to call its abort handler to abort with an error message.

Handlers are instantiated by the TRY-CATCH and TRY-FINALLY statements, which are implemented as macros in this interface. These statements handle nested exceptions and manage exception-state data. The syntax of the TRY-CATCH statement is,

S
CATCH(e1)
S1
CATCH(e2)
S2
[...]
CATCH(en)
Sn
#define CATCH(e)
Defines a block containing code for handling an exception thrown in the TRY block.
Definition Exception.h:272
#define TRY
Defines a block of code that can potentially throw an exception.
Definition Exception.h:256
#define END_TRY
Ends a TRY-CATCH block.
Definition Exception.h:306

The TRY-CATCH statement establishes handlers for the exceptions named e1, e2,.., en and execute the statements S. If no exceptions are raised by S, the handlers are dismantled and execution continues at the statement after the END_TRY. If S raises an exception e which is one of e1..en the execution of S is interrupted and control transfers immediately to the statements following the relevant CATCH clause. If S raises an exception that is not one of e1..en, the exception will raise up the call-stack and unless a previous installed handler catch the exception, it will cause the application to abort.

Here's a concrete example calling a method in the libzdb API which may throw an exception. If the method Connection_execute() fails it will throw an SQLException. The CATCH statement will catch this exception, if thrown, and log an error message

log("SQL error: %s\n", Connection_getLastError(c));
const char * Connection_getLastError(T C)
Gets the last SQL error message.
void Connection_execute(T C, const char *sql,...)
Executes a SQL statement, with or without parameters.
Exception_T SQLException

The TRY-FINALLY statement is similar to TRY-CATCH but in addition adds a FINALLY clause which is always executed, regardless if an exception was raised or not. The syntax of the TRY-FINALLY statement is,

S
CATCH(e1)
S1
CATCH(e2)
S2
[...]
CATCH(en)
Sn
Sf
#define FINALLY
Defines a block of code that is subsequently executed whether an exception is thrown or not.
Definition Exception.h:295

Note that Sf is executed whether S raises an exception or not. One purpose of the TRY-FINALLY statement is to give clients an opportunity to "clean up" when an exception occurs. For example,

{
}
{
}
void Connection_close(T C)
Returns the connection to the connection pool.

closes the database Connection regardless if an exception was thrown or not by the code in the TRY-block. The above example also demonstrates that FINALLY can be used without an exception handler, if an exception was thrown it will be rethrown after the control reaches the end of the finally block. Meaning that we can cleanup even if an exception was thrown and the exception will automatically propagate up the call stack afterwards.

Finally, the RETURN statement, defined in this interface, must be used instead of C return statements inside a try-block. If any of the statements in a try block must do a return, they must do so with this macro instead of the usual C return statement.

Exception details

Inside an exception handler, details about an exception are available in the variable Exception_frame. The following demonstrates usage of this variable to provide detailed logging of an exception. For SQL errors, Connection_getLastError() can also be used, though Exception_frame is recommended since in addition to SQL errors, it also covers API errors not directly related to SQL.

{
<code that can throw an exception>
}
{
fprintf(stderr, "%s: %s raised in %s at %s:%d\n",
Exception_frame.exception->name,
Exception_frame.message,
Exception_frame.func,
Exception_frame.file,
Exception_frame.line);
}
#define ELSE
Defines a block containing code for handling any exception thrown in the TRY block.
Definition Exception.h:284

Volatile and assignment inside a try-block

A variable declared outside a try-block and assigned a value inside said block should be declared volatile if the variable will be accessed from an exception handler. Otherwise the compiler will/may optimize away the value set in the try-block and the handler will not see the new value. Declaring the variable volatile is only necessary if the variable is to be used inside a CATCH or ELSE block. Example:

volatile int i = 0;
{
i = 1;
TRHOW(SQLException, "SQLException");
}
{
assert(i == 1); // Unless declared volatile i would be 0 here
}
assert(i == 1); // i will be 1 here regardless if it is declared volatile or not

Thread-safe

The Exception stack is stored in a thread-specific variable so Exceptions are made thread-safe. This means that Exceptions are thread local and an Exception thrown in one thread cannot be caught in another thread. This also means that clients must handle Exceptions per thread and cannot use one TRY-ELSE block in the main program to catch all Exceptions. This is only possible if no threads were started.

This implementation is a minor modification of the Except code found in David R. Hanson's excellent book C Interfaces and Implementations.

See also
SQLException.h

Macros

#define T   Exception_T
 
#define THROW(e, cause, ...)
 Throws an exception.
 
#define RETHROW
 Re-throws an exception.
 
#define RETURN
 Clients must use this macro instead of C return statements inside a try-block.
 
#define TRY
 Defines a block of code that can potentially throw an exception.
 
#define CATCH(e)
 Defines a block containing code for handling an exception thrown in the TRY block.
 
#define ELSE
 Defines a block containing code for handling any exception thrown in the TRY block.
 
#define FINALLY
 Defines a block of code that is subsequently executed whether an exception is thrown or not.
 
#define END_TRY
 Ends a TRY-CATCH block.
 

Macro Definition Documentation

◆ T

#define T   Exception_T

◆ THROW

#define THROW ( e,
cause,
... )

Throws an exception.

Parameters
eThe Exception to throw
causeThe cause. A NULL value is permitted, and indicates that the cause is unknown.

◆ RETHROW

#define RETHROW

Re-throws an exception.

In a CATCH or ELSE block clients can use RETHROW to re-throw the Exception

◆ RETURN

#define RETURN

Clients must use this macro instead of C return statements inside a try-block.

◆ TRY

#define TRY

Defines a block of code that can potentially throw an exception.

◆ CATCH

#define CATCH ( e)

Defines a block containing code for handling an exception thrown in the TRY block.

Parameters
eThe Exception to handle

◆ ELSE

#define ELSE

Defines a block containing code for handling any exception thrown in the TRY block.

An ELSE block catches any exception type not already caught in a previous CATCH block.

◆ FINALLY

#define FINALLY

Defines a block of code that is subsequently executed whether an exception is thrown or not.

◆ END_TRY

#define END_TRY

Ends a TRY-CATCH block.

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/docd.svg000644 000765 000024 00000002737 14652557242 017002 0ustar00haukstaff000000 000000 libzdb-3.4.0/doc/api-docs/libzdboptions.css000644 000765 000024 00000001166 13453173135 020730 0ustar00haukstaff000000 000000 body { background-color:#fbfbfb; margin:0 auto; font-family: "HelveticaNeue", Helvetica, "Arial Narrow", Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.7; color:#333; } h1 { color: #333; font-size: 62px; letter-spacing: -0.03em; font-weight: 300; text-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px; } body {margin: 6em;} .example {color:#555;} table {border-collapse: collapse;} table, th, td {border: 1px solid #ccc; padding:0.5em;} th {text-align:left;} td:first-child {white-space:nowrap;color:#8e44ad;font-weight:600;} libzdb-3.4.0/doc/api-docs/zdbpp_8h.html000644 000765 000024 00000047746 14652557242 017765 0ustar00haukstaff000000 000000 zdbpp.h File Reference ⬅
zdbpp.h File Reference

Detailed Description

zdbpp.h - C++ Interface for libzdb

This interface provides a C++ wrapper for libzdb, offering a convenient and type-safe way to interact with various SQL databases from C++ applications.

Features

  • Thread-safe Database Connection Pool
  • Connect to multiple database systems simultaneously
  • Zero runtime configuration, connect using a URL scheme
  • Supports MySQL, PostgreSQL, SQLite, and Oracle
  • Modern C++ features (C++20 or later required)

Core Concepts

The central class in this library is ConnectionPool, which manages database connections. All other main classes (Connection, PreparedStatement, and ResultSet) are obtained through the ConnectionPool or its derivatives.

ConnectionPool and URL

The ConnectionPool is initialized with a URL object, which specifies the database connection details:

zdb::URL url("mysql://localhost:3306/mydb?user=root&password=secret");
pool.start();
Represents a database connection pool.
Definition zdbpp.h:1771
Represents an immutable Uniform Resource Locator.
Definition zdbpp.h:333

A ConnectionPool is designed to be a long-lived object that manages database connections throughout the lifetime of your application. Typically, you would instantiate one or more ConnectionPool objects as part of a resource management class or in the global scope of your application.

Best Practices for Using ConnectionPool

  1. Create ConnectionPool instances at application startup.
  2. Maintain these instances for the entire duration of your application's runtime.
  3. Use a single ConnectionPool for each distinct database you need to connect to.
  4. Consider wrapping ConnectionPool instances in a singleton or dependency injection pattern for easy access across your application.
  5. Ensure proper shutdown of ConnectionPool instances when your application terminates to release all database resources cleanly.

Example of a global ConnectionPool manager:

class DatabaseManager {
public:
static ConnectionPool& getMainPool() {
static ConnectionPool mainPool("mysql://localhost/maindb?user=root&password=pass");
return mainPool;
}
static ConnectionPool& getAnalyticsPool() {
static ConnectionPool analyticsPool("postgresql://analyst:pass@192.168.8.217/datawarehouse");
return analyticsPool;
}
static void initialize() {
static std::once_flag initFlag;
std::call_once(initFlag, []() {
// Configure and start main pool
ConnectionPool& main = getMainPool();
main.setInitialConnections(5); // Example value
main.setMaxConnections(20); // Example value
main.setConnectionTimeout(30); // 30 seconds timeout
main.start();
// Configure and start analytics pool
ConnectionPool& analytics = getAnalyticsPool();
analytics.setInitialConnections(2);
analytics.setMaxConnections(10);
analytics.start();
});
}
static void shutdown() {
getMainPool().stop();
getAnalyticsPool().stop();
}
};

Usage Examples

Basic Query Execution

auto& pool = DatabaseManager::getMainPool();
auto con = pool.getConnection();
ResultSet result = con.executeQuery("SELECT name, age FROM users WHERE id = ?", 1);
if (result.next()) {
std::cout << "Name: " << result.getString("name").value_or("N/A")
<< ", Age: " << result.getInt("age") << std::endl;
}

Using PreparedStatement

auto& pool = DatabaseManager::getAnalyticsPool();
auto con = pool.getConnection();
auto stmt = con.prepareStatement("INSERT INTO logs (message, timestamp) VALUES (?, ?)");
stmt.bindValues("User logged in", std::time(nullptr));
stmt.execute();

Transaction Example

Connection con = pool.getConnection();
// Use default isolation level
con.beginTransaction();
con.execute("UPDATE accounts SET balance = balance - ? WHERE id = ?", 100.0, 1);
con.commit();
// Alternatively, specify the transaction's isolation level
con.beginTransaction(TRANSACTION_SERIALIZABLE));
con.execute("UPDATE accounts SET balance = balance + ? WHERE id = ?", 100.0, 2);
con.commit();
@ TRANSACTION_SERIALIZABLE
Highest isolation level.
Definition Connection.h:181

Exception Handling

All database-related errors are thrown as sql_exception, which derives from std::runtime_error.

Example of Exception Handling

try {
Connection con = pool.getConnection();
con.beginTransaction();
con.execute("UPDATE accounts SET balance = balance - ? WHERE id = ?", 100.0, 1);
con.execute("UPDATE accounts SET balance = balance + ? WHERE id = ?", 100.0, 2);
con.commit();
std::cout << "Transfer successful" << std::endl;
// Connection is automatically returned to pool when it goes out of scope
// If an exception occurred before commit, it will automatically rollback
} catch (const sql_exception& e) {
std::cerr << "Transfer failed: " << e.what() << std::endl;
}

Key points about exception handling in this library:

  1. All database operations that can fail will throw sql_exception.
  2. sql_exception provides informative error messages through its what() method.
  3. You should wrap database operations in try-catch blocks to handle potential errors gracefully.
  4. The library ensures that resources are properly managed even when exceptions are thrown, preventing resource leaks.
Note
For detailed API documentation, refer to the comments for each class in this header file. Visit libzdb's homepage for additional documentation and examples.

Data Structures

class  sql_exception
 Exception class for SQL related errors. More...
 
class  URL
 Represents an immutable Uniform Resource Locator. More...
 
class  ResultSet
 Represents a database result set. More...
 
class  PreparedStatement
 Represents a pre-compiled SQL statement for later execution. More...
 
class  Connection
 Represents a connection to a SQL database system. More...
 
class  ConnectionPool
 Represents a database connection pool. More...
 

Namespaces

namespace  zdb
 
namespace  zdb::version
 

Functions

constexpr bool is_compatible_with (int required_major, int required_minor, int required_revision=0)
 

Variables

constexpr int major = LIBZDB_MAJOR
 
constexpr int minor = LIBZDB_MINOR
 
constexpr int revision = LIBZDB_REVISION
 
constexpr int number = LIBZDB_VERSION_NUMBER
 
constexpr std::string_view string = LIBZDB_VERSION
 

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/resize.js000644 000765 000024 00000012771 14652557242 017206 0ustar00haukstaff000000 000000 /* @licstart The following is the entire license notice for the JavaScript code in this file. The MIT License (MIT) Copyright (C) 1997-2020 by Dimitri van Heesch Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @licend The above is the entire license notice for the JavaScript code in this file */ function initResizable(treeview) { let sidenav,navtree,content,header,footer,barWidth=6; const RESIZE_COOKIE_NAME = ''+'width'; function resizeWidth() { const sidenavWidth = $(sidenav).outerWidth(); content.css({marginLeft:parseInt(sidenavWidth)+"px"}); if (typeof page_layout!=='undefined' && page_layout==1) { footer.css({marginLeft:parseInt(sidenavWidth)+"px"}); } Cookie.writeSetting(RESIZE_COOKIE_NAME,sidenavWidth-barWidth); } function restoreWidth(navWidth) { content.css({marginLeft:parseInt(navWidth)+barWidth+"px"}); if (typeof page_layout!=='undefined' && page_layout==1) { footer.css({marginLeft:parseInt(navWidth)+barWidth+"px"}); } sidenav.css({width:navWidth + "px"}); } function resizeHeight(treeview) { const headerHeight = header.outerHeight(); const windowHeight = $(window).height(); let contentHeight; if (treeview) { const footerHeight = footer.outerHeight(); let navtreeHeight,sideNavHeight; if (typeof page_layout==='undefined' || page_layout==0) { /* DISABLE_INDEX=NO */ contentHeight = windowHeight - headerHeight - footerHeight; navtreeHeight = contentHeight; sideNavHeight = contentHeight; } else if (page_layout==1) { /* DISABLE_INDEX=YES */ contentHeight = windowHeight - footerHeight; navtreeHeight = windowHeight - headerHeight; sideNavHeight = windowHeight; } navtree.css({height:navtreeHeight + "px"}); sidenav.css({height:sideNavHeight + "px"}); } else { contentHeight = windowHeight - headerHeight; } content.css({height:contentHeight + "px"}); if (location.hash.slice(1)) { (document.getElementById(location.hash.slice(1))||document.body).scrollIntoView(); } } function collapseExpand() { let newWidth; if (sidenav.width()>0) { newWidth=0; } else { const width = Cookie.readSetting(RESIZE_COOKIE_NAME,200); newWidth = (width>200 && width<$(window).width()) ? width : 200; } restoreWidth(newWidth); const sidenavWidth = $(sidenav).outerWidth(); Cookie.writeSetting(RESIZE_COOKIE_NAME,sidenavWidth-barWidth); } header = $("#top"); content = $("#doc-content"); footer = $("#nav-path"); sidenav = $("#side-nav"); if (!treeview) { // title = $("#titlearea"); // titleH = $(title).height(); // let animating = false; // content.on("scroll", function() { // slideOpts = { duration: 200, // step: function() { // contentHeight = $(window).height() - header.outerHeight(); // content.css({ height : contentHeight + "px" }); // }, // done: function() { animating=false; } // }; // if (content.scrollTop()>titleH && title.css('display')!='none' && !animating) { // title.slideUp(slideOpts); // animating=true; // } else if (content.scrollTop()<=titleH && title.css('display')=='none' && !animating) { // title.slideDown(slideOpts); // animating=true; // } // }); } else { navtree = $("#nav-tree"); $(".side-nav-resizable").resizable({resize: function(e, ui) { resizeWidth(); } }); $(sidenav).resizable({ minWidth: 0 }); } $(window).resize(function() { resizeHeight(treeview); }); if (treeview) { const device = navigator.userAgent.toLowerCase(); const touch_device = device.match(/(iphone|ipod|ipad|android)/); if (touch_device) { /* wider split bar for touch only devices */ $(sidenav).css({ paddingRight:'20px' }); $('.ui-resizable-e').css({ width:'20px' }); $('#nav-sync').css({ right:'34px' }); barWidth=20; } const width = Cookie.readSetting(RESIZE_COOKIE_NAME,200); if (width) { restoreWidth(width); } else { resizeWidth(); } } resizeHeight(treeview); const url = location.href; const i=url.indexOf("#"); if (i>=0) window.location.hash=url.substr(i); const _preventDefault = function(evt) { evt.preventDefault(); }; if (treeview) { $("#splitbar").bind("dragstart", _preventDefault).bind("selectstart", _preventDefault); $(".ui-resizable-handle").dblclick(collapseExpand); } $(window).on('load',resizeHeight); } /* @license-end */ libzdb-3.4.0/doc/api-docs/open.png000644 000765 000024 00000000173 14652557242 017007 0ustar00haukstaff000000 000000 ‰PNG  IHDR à‘BIDATxíÝÁ €0 Ð׬ՙ\Àº€39—b!©9{|ðI>$#Àß´ý8/¨ÄØzƒ/Ï>2À[ÎgiU,/¬~¼Ï\ Ä9Ù¸IEND®B`‚libzdb-3.4.0/doc/api-docs/globals_defs.html000644 000765 000024 00000006523 14652557242 020657 0ustar00haukstaff000000 000000 Globals ⬅
Here is a list of all macros with links to the files they belong to:

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/functions_type.html000644 000765 000024 00000002563 14652557242 021304 0ustar00haukstaff000000 000000 Data Fields - Typedefs ⬅
Here is a list of all typedefs with links to the structures/unions they belong to:

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/dir_bb61871b4c63e4e6685a8d6c52430594.html000644 000765 000024 00000013331 14652557242 023235 0ustar00haukstaff000000 000000 zdb Directory Reference ⬅
zdb Directory Reference

Files

 Connection.h
 A Connection represents a connection to a SQL database system.
 
 ConnectionPool.h
 A ConnectionPool represents a database connection pool.
 
 Exception.h
 An Exception indicates an error condition from which recovery may be possible.
 
 PreparedStatement.h
 A PreparedStatement represents a single SQL statement pre-compiled into byte code for later execution.
 
 ResultSet.h
 A ResultSet represents a database result set.
 
 SQLException.h
 Signals that an SQL specific exception has occurred.
 
 URL.h
 URL represents an immutable Uniform Resource Locator.
 
 zdb.h
 Include this interface in your C code to import the libzdb API.
 
 zdbpp.h
 zdbpp.h - C++ Interface for libzdb
 

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/dynsections.js000644 000765 000024 00000017544 14652557242 020252 0ustar00haukstaff000000 000000 /* @licstart The following is the entire license notice for the JavaScript code in this file. The MIT License (MIT) Copyright (C) 1997-2020 by Dimitri van Heesch Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @licend The above is the entire license notice for the JavaScript code in this file */ function toggleVisibility(linkObj) { return dynsection.toggleVisibility(linkObj); } let dynsection = { // helper function updateStripes : function() { $('table.directory tr'). removeClass('even').filter(':visible:even').addClass('even'); $('table.directory tr'). removeClass('odd').filter(':visible:odd').addClass('odd'); }, toggleVisibility : function(linkObj) { const base = $(linkObj).attr('id'); const summary = $('#'+base+'-summary'); const content = $('#'+base+'-content'); const trigger = $('#'+base+'-trigger'); const src=$(trigger).attr('src'); if (content.is(':visible')===true) { content.hide(); summary.show(); $(linkObj).addClass('closed').removeClass('opened'); $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png'); } else { content.show(); summary.hide(); $(linkObj).removeClass('closed').addClass('opened'); $(trigger).attr('src',src.substring(0,src.length-10)+'open.png'); } return false; }, toggleLevel : function(level) { $('table.directory tr').each(function() { const l = this.id.split('_').length-1; const i = $('#img'+this.id.substring(3)); const a = $('#arr'+this.id.substring(3)); if (l'); // add vertical lines to other rows $('span[class=lineno]').not(':eq(0)').append(''); // add toggle controls to lines with fold divs $('div[class=foldopen]').each(function() { // extract specific id to use const id = $(this).attr('id').replace('foldopen',''); // extract start and end foldable fragment attributes const start = $(this).attr('data-start'); const end = $(this).attr('data-end'); // replace normal fold span with controls for the first line of a foldable fragment $(this).find('span[class=fold]:first').replaceWith(''); // append div for folded (closed) representation $(this).after(''); // extract the first line from the "open" section to represent closed content const line = $(this).children().first().clone(); // remove any glow that might still be active on the original line $(line).removeClass('glow'); if (start) { // if line already ends with a start marker (e.g. trailing {), remove it $(line).html($(line).html().replace(new RegExp('\\s*'+start+'\\s*$','g'),'')); } // replace minus with plus symbol $(line).find('span[class=fold]').css('background-image',codefold.plusImg[relPath]); // append ellipsis $(line).append(' '+start+''+end); // insert constructed line into closed div $('#foldclosed'+id).html(line); }); }, }; /* @license-end */ libzdb-3.4.0/doc/api-docs/classzdb_1_1PreparedStatement.html000644 000765 000024 00000064032 14652557242 024047 0ustar00haukstaff000000 000000 PreparedStatement ⬅
PreparedStatement

Detailed Description

Represents a pre-compiled SQL statement for later execution.

A PreparedStatement is created by calling Connection::prepareStatement(). The SQL statement may contain in parameters of the form "?". Such parameters represent unspecified literal values (or "wildcards") to be filled in later by the bind methods defined in this class. Each in parameter has an associated index number which is its sequence in the statement. The first in '?' parameter has index 1, the next has index 2 and so on.

Consider this statement:

INSERT INTO employee(name, photo) VALUES(?, ?)

There are two in parameters in this statement, the parameter for setting the name has index 1 and the one for the photo has index 2. To set the values for the in parameters we use bindValues() with two values, one for each in parameter. Or we can use bind() to set the parameter values one by one.

Examples

The following examples demonstrate how to create and use a PreparedStatement.

Example: Binding all values at once

This example shows how to prepare a statement, bind multiple values at once, and execute it:

Connection con = pool.getConnection();
PreparedStatement stmt = con.prepareStatement("INSERT INTO employee(name, photo) VALUES(?, ?)");
stmt.bindValues("Kamiya Kaoru", jpeg);
stmt.execute();
Represents a connection to a SQL database system.
Definition zdbpp.h:1333
PreparedStatement prepareStatement(const std::string &sql)
Prepares a SQL statement for execution.
Definition zdbpp.h:1596
Represents a pre-compiled SQL statement for later execution.
Definition zdbpp.h:1081
void execute()
Executes the prepared SQL statement.
Definition zdbpp.h:1176
void bindValues(Args &&... args)
Binds multiple values to the Prepared Statement at once.
Definition zdbpp.h:1161

Example: Binding values individually

Instead of binding all values at once, we can also bind values one by one by specifying the parameter index we want to set a value for:

PreparedStatement stmt = con.prepareStatement("INSERT INTO employee(name, photo) VALUES(?, ?)");
stmt.bind(1, "Kamiya Kaoru");
stmt.bind(2, jpeg);
stmt.execute();
void bind(int parameterIndex, T &&x)
Binds a value to the prepared statement.
Definition zdbpp.h:1122

Reuse

A PreparedStatement can be reused. That is, the method execute() can be called one or more times to execute the same statement. Clients can also set new in parameter values and re-execute the statement as shown in this example, where we also show use of a transaction and exception handling:

PreparedStatement stmt = con.prepareStatement("INSERT INTO employee(name, photo) VALUES(?, ?)");
try {
for (const auto& emp : employees) {
stmt.bind(1, emp.name);
if (emp.photo) {
stmt.bind(2, *emp.photo);
} else {
stmt.bind(2, nullptr); // Set to SQL NULL if no photo
}
stmt.execute();
}
con.commit();
} catch (const sql_exception& e) {
con.rollback();
std::cerr << "Database error: " << e.what() << std::endl;
}
void rollback()
Rolls back the current transaction.
Definition zdbpp.h:1480
void commit()
Commits the current transaction.
Definition zdbpp.h:1470
void beginTransaction(TRANSACTION_TYPE type=TRANSACTION_DEFAULT)
Begins a new transaction with optional isolation level.
Definition zdbpp.h:1454

Date and Time

bindValues() or bind() can be used to set a Unix timestamp value as a time_t type. To set Date, Time or DateTime values, simply use one of the bind methods to set a time string in a format understood by your database. For instance to set a SQL Date value,

stmt.bind(parameterIndex, "2024-12-28");
// or using bindValues
stmt.bindValues("2019-12-28", ...);

Result Sets

See Connection::executeQuery()

SQL Injection Prevention

Prepared Statement is particularly useful when dealing with user-submitted data, as properly used Prepared Statements provide strong protection against SQL injection attacks. By separating SQL logic from data, PreparedStatements ensure that user input is treated as data only, not as part of the SQL command.

A PreparedStatement is reentrant, but not thread-safe and should only be used by one thread (at a time).

Note
Remember that parameter indices in PreparedStatement are 1-based, not 0-based.
To minimizes memory allocation and avoid unnecessary data copying, string and blob values are set by reference and MUST remain valid until PreparedStatement::execute() has been called.
Warning
PreparedStatement objects are internally managed by the Connection that created them and are not copyable or movable. Always ensure that the originating Connection object remains valid for the entire duration of the PreparedStatement's use. Basically, keep the Connection and PreparedStatement objects in the same scope. Do not attempt to use PreparedStatement objects (including through references or pointers) after their Connection has been closed and returned to the pool.

Represents a pre-compiled SQL statement for later execution. More...

Public Member Functions

Parameters
template<typename T >
void bind (int parameterIndex, T &&x)
 Binds a value to the prepared statement.
 
template<typename... Args>
void bindValues (Args &&... args)
 Binds multiple values to the Prepared Statement at once.
 
Functions
void execute ()
 Executes the prepared SQL statement.
 
long long rowsChanged () noexcept
 Gets the number of rows affected by the most recent SQL statement.
 
Properties
int getParameterCount () noexcept
 Gets the number of parameters in the prepared statement.
 

Member Function Documentation

◆ bind()

template<typename T >
void bind ( int parameterIndex,
T && x )

Binds a value to the prepared statement.

This method can bind different types of values:

  • String-like types (convertible to std::string_view)
  • Numeric types (integral or floating-point, excluding time_t)
  • Blob-like types (contiguous ranges of bytes)
  • time_t for timestamp values
  • nullptr_t for SQL NULL values
Template Parameters
TThe type of the value to bind
Parameters
parameterIndexThe index of the parameter to bind (1-based)
xThe value to bind
Exceptions
sql_exceptionIf a database access error occurs or parameterIndex is invalid
Note
For string-like and blob-like types, the data must remain valid until execute() is called. This method does not copy the data but stores a reference to it.
This method will fail to compile for unsupported types, providing a clear error message.

◆ bindValues()

template<typename... Args>
void bindValues ( Args &&... args)

Binds multiple values to the Prepared Statement at once.

Parameters
argsValues to bind to the Prepared Statement.
Exceptions
sql_exceptionIf a database error occurs or if argument count is incorrect
Note
Reference types must remain valid until execute() is called. This method does not copy any data.

◆ execute()

void execute ( )

Executes the prepared SQL statement.

Exceptions
sql_exceptionIf a database access error occurs

◆ rowsChanged()

long long rowsChanged ( )
nodiscardnoexcept

Gets the number of rows affected by the most recent SQL statement.

If used with a transaction, this method should be called before commit is executed, otherwise 0 is returned.

Returns
The number of rows changed.

◆ getParameterCount()

int getParameterCount ( )
nodiscardnoexcept

Gets the number of parameters in the prepared statement.

Returns
The number of in parameters in this prepared statement

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/ConnectionPool_8h.html000644 000765 000024 00000220505 14652557242 021561 0ustar00haukstaff000000 000000 ConnectionPool.h File Reference ⬅
ConnectionPool.h File Reference

Detailed Description

A ConnectionPool represents a database connection pool.

A connection pool can be used to get a connection to a database and execute statements. This class opens a number of database connections and allows callers to obtain and use a database connection in a reentrant manner. Applications can instantiate as many ConnectionPool objects as needed and against as many different database systems as needed. The following diagram gives an overview of the library's components and their method-associations:

The method ConnectionPool_getConnection() is used to obtain a new connection from the pool. If there are no connections available, a new connection is created and returned. If the pool has already handed out maxConnections Connections, the next call to ConnectionPool_getConnection() will return NULL. Use Connection_close() to return a connection to the pool so it can be reused.

A connection pool is created by default with 5 initial connections and with 20 maximum connections. These values can be changed by the property methods ConnectionPool_setInitialConnections() and ConnectionPool_setMaxConnections().

Supported database systems:

This library may be built with support for many different database systems. To test if a particular system is supported, use the method Connection_isSupported().

Life-cycle methods:

Clients should call ConnectionPool_start() to establish the connection pool against the database server before using the pool. To shutdown connections from the database server, use ConnectionPool_stop(). Set preferred properties before calling ConnectionPool_start(). Some properties can also be changed dynamically after the pool was started, such as changing the maximum number of connections or the number of initial connections. Changing and tuning these properties at runtime is most useful if the pool was started with a reaper-thread (see below) since the reaper dynamically changes the size of the pool.

Connection URL:

The URL given to a Connection Pool at creation time specifies a database connection in the standard URL format. The format of the connection URL is defined as:

database://[user:password@][host][:port]/database[?propertyName1][=propertyValue1][&propertyName2][=propertyValue2]...

The property names user and password are always recognized and specify how to log in to the database. Other properties depend on the database server in question. Username and password can alternatively be specified in the auth-part of the URL. If port number is omitted, the default port number for the database server is used.

MySQL:

Here is an example of how to connect to a MySQL database server:

mysql://localhost:3306/test?user=root&password=swordfish

In this case, the username, root and password, swordfish are specified as properties to the URL. An alternative is to use the auth-part of the URL to specify authentication information:

mysql://root:swordfish@localhost:3306/test

See mysql options for all properties that can be set for a mysql connection URL.

SQLite:

For a SQLite database, the connection URL should simply specify a database file, since a SQLite database is just a file in the filesystem. SQLite uses pragma commands for performance tuning and other special purpose database commands. Pragma syntax in the form name=value can be added as properties to the URL and will be set when the Connection is created. In addition to pragmas, the following properties are supported:

  • heap_limit=value - Make SQLite auto-release unused memory if memory usage goes above the specified value [KB].
  • serialized=true - Make SQLite switch to serialized mode if value is true, otherwise multi-thread mode is used (the default).

A URL for connecting to a SQLite database might look like this (with recommended pragmas):

sqlite:///var/sqlite/test.db?synchronous=normal&foreign_keys=on&journal_mode=wal&temp_store=memory

PostgreSQL:

The URL for connecting to a PostgreSQL database server might look like:

postgresql://localhost:5432/test?user=root&password=swordfish

As with the MySQL URL, the username and password are specified as properties to the URL. Likewise, the auth-part of the URL can be used instead to specify the username and the password:

postgresql://root:swordfish@localhost/test?use-ssl=true

In this example, we have also omitted the port number to the server, in which case the default port number, 5432, for PostgreSQL is used. In addition, we have added an extra parameter to the URL, so connection to the server is done over a secure SSL connection.

See postgresql options for all properties that can be set for a postgresql connection URL.

Oracle:

The URL for connecting to an Oracle database server might look like:

oracle://localhost:1521/servicename?user=scott&password=tiger

Instead of a database name, Oracle uses a service name which you typically specify in a tnsnames.ora configuration file. The auth-part of the URL can be used instead to specify the username and the password as in the example below. Here we also specify that we want to connect to Oracle with the SYSDBA role.

oracle://sys:password@localhost:1521/servicename?sysdba=true

See oracle options for all properties that can be set for an oracle connection URL.

Example:

To obtain a connection pool for a MySQL database, the code below can be used. The exact same code can be used for PostgreSQL, SQLite and Oracle, the only change needed is to modify the Connection URL. Here we connect to the database test on localhost and start the pool with the default 5 initial connections.

URL_T url = URL_new("mysql://localhost/test?user=root&password=swordfish");
ConnectionPool_T pool = ConnectionPool_new(url);
//..
Connection_T con = ConnectionPool_getConnection(pool);
ResultSet_T result = Connection_executeQuery(con, "select id, name, photo from employee where salary>%d", anumber);
while (ResultSet_next(result))
{
int id = ResultSet_getInt(result, 1);
const char *name = ResultSet_getString(result, 2);
int blobSize;
const void *photo = ResultSet_getBlob(result, 3, &blobSize);
// ...
}
//..
URL_free(&url);
void ConnectionPool_free(T *P)
Disconnect and destroy the pool and release allocated resources.
void ConnectionPool_start(T P)
Prepares the pool for active use.
T ConnectionPool_new(URL_T url)
Create a new ConnectionPool.
Connection_T ConnectionPool_getConnection(T P)
Get a connection from the pool.
ResultSet_T Connection_executeQuery(T C, const char *sql,...)
Executes a SQL query and returns a ResultSet.
void Connection_close(T C)
Returns the connection to the connection pool.
bool ResultSet_next(T R)
Moves the cursor to the next row.
int ResultSet_getInt(T R, int columnIndex)
Gets the designated column's value as an int.
const char * ResultSet_getString(T R, int columnIndex)
Gets the designated column's value as a C-string.
const void * ResultSet_getBlob(T R, int columnIndex, int *size)
Gets the designated column's value as a void pointer.
T URL_new(const char *url)
Create a new URL object from the url parameter string.
void URL_free(T *U)
Destroy a URL object.

Optimizing the pool size:

The pool is designed to dynamically manage the number of active connections based on usage patterns. A reaper thread is automatically started when the pool is initialized, performing two functions:

  1. Sweep through the pool at regular intervals (default every 60 seconds) to close connections that have been inactive for a specified time (default 90 seconds).
  2. Perform periodic validation (ping test) on idle connections to ensure they remain valid and responsive.

This dual functionality helps maintain the pool's health by removing stale connections and verifying the validity of idle ones.

Only inactive connections will be closed, and no more than the initial number of connections the pool was started with are closed. The property method, ConnectionPool_setReaper(), can be used to customize the reaper's sweep interval or disable it entirely if needed.

Clients can also call the method ConnectionPool_reapConnections() to prune the pool directly if manual control is desired.

The reaper thread is especially beneficial for pools maintaining TCP/IP Connections.

Realtime inspection:

Three methods can be used to inspect the pool at runtime. The method ConnectionPool_size() returns the number of connections in the pool, that is, both active and inactive connections. The method ConnectionPool_active() returns the number of active connections, i.e., those connections in current use by your application. The method ConnectionPool_isFull() can be used to check if the pool is full and unable to return a connection.

This ConnectionPool is thread-safe.

See also
Connection.h ResultSet.h URL.h PreparedStatement.h SQLException.h

Macros

#define T   ConnectionPool_T
 

Typedefs

typedef struct ConnectionPool_S * T
 

Functions

T ConnectionPool_new (URL_T url)
 Create a new ConnectionPool.
 
void ConnectionPool_free (T *P)
 Disconnect and destroy the pool and release allocated resources.
 
Properties
URL_T ConnectionPool_getURL (T P)
 Returns this Connection Pool's URL.
 
void ConnectionPool_setInitialConnections (T P, int initialConnections)
 Sets the number of initial connections in the pool.
 
int ConnectionPool_getInitialConnections (T P)
 Gets the number of initial connections in the pool.
 
void ConnectionPool_setMaxConnections (T P, int maxConnections)
 Sets the maximum number of connections in the pool.
 
int ConnectionPool_getMaxConnections (T P)
 Gets the maximum number of connections in the pool.
 
void ConnectionPool_setConnectionTimeout (T P, int connectionTimeout)
 Set the Connection inactive timeout value in seconds.
 
int ConnectionPool_getConnectionTimeout (T P)
 Gets the connection timeout value.
 
void ConnectionPool_setAbortHandler (T P, void(*abortHandler)(const char *error))
 Sets the function to call if a fatal error occurs in the library.
 
void ConnectionPool_setReaper (T P, int sweepInterval)
 Customize the reaper thread behavior or disable it.
 
Functions
void ConnectionPool_start (T P)
 Prepares the pool for active use.
 
void ConnectionPool_stop (T P)
 Gracefully terminates the pool.
 
Connection_T ConnectionPool_getConnection (T P)
 Get a connection from the pool.
 
Connection_T ConnectionPool_getConnectionOrException (T P)
 Get a connection from the pool.
 
void ConnectionPool_returnConnection (T P, Connection_T connection)
 Returns a connection to the pool.
 
int ConnectionPool_reapConnections (T P)
 Reaps inactive connections in the pool.
 
int ConnectionPool_size (T P)
 Gets the current number of connections in the pool.
 
int ConnectionPool_active (T P)
 Gets the number of active connections in the pool.
 
bool ConnectionPool_isFull (T P)
 Checks if the pool is full.
 
Class functions
const char * ConnectionPool_version (void)
 Gets the library version information.
 

Variables

int ZBDEBUG
 Library Debug flag.
 

Macro Definition Documentation

◆ T

#define T   ConnectionPool_T

Typedef Documentation

◆ T

typedef struct ConnectionPool_S* T

Function Documentation

◆ ConnectionPool_new()

T ConnectionPool_new ( URL_T url)

Create a new ConnectionPool.

The pool is created with 5 initial connections. Maximum connections is set to 20. Property methods in this interface can be used to change the default values.

Parameters
urlThe database connection URL. It is a checked runtime error for the url parameter to be NULL. The pool does not take ownership of the url object but expects the url to exist as long as the pool does.
Returns
A new ConnectionPool object
See also
URL.h

◆ ConnectionPool_free()

void ConnectionPool_free ( T * P)

Disconnect and destroy the pool and release allocated resources.

Parameters
PA ConnectionPool object reference

◆ ConnectionPool_getURL()

URL_T ConnectionPool_getURL ( T P)

Returns this Connection Pool's URL.

Parameters
PA ConnectionPool object
Returns
This Connection Pool's URL
See also
URL.h

◆ ConnectionPool_setInitialConnections()

void ConnectionPool_setInitialConnections ( T P,
int initialConnections )

Sets the number of initial connections in the pool.

Parameters
PA ConnectionPool object
initialConnectionsThe number of initial pool connections. It is a checked runtime error for initialConnections to be < 0
See also
Connection.h

◆ ConnectionPool_getInitialConnections()

int ConnectionPool_getInitialConnections ( T P)

Gets the number of initial connections in the pool.

Parameters
PA ConnectionPool object
Returns
The number of initial pool connections
See also
Connection.h

◆ ConnectionPool_setMaxConnections()

void ConnectionPool_setMaxConnections ( T P,
int maxConnections )

Sets the maximum number of connections in the pool.

If max connections has been reached, ConnectionPool_getConnection() will return NULL on the next call.

Parameters
PA ConnectionPool object
maxConnectionsThe maximum number of connections this connection pool will create. It is a checked runtime error for maxConnections to be less than initialConnections.
See also
Connection.h

◆ ConnectionPool_getMaxConnections()

int ConnectionPool_getMaxConnections ( T P)

Gets the maximum number of connections in the pool.

Parameters
PA ConnectionPool object
Returns
The maximum number of connections this pool will create.
See also
Connection.h

◆ ConnectionPool_setConnectionTimeout()

void ConnectionPool_setConnectionTimeout ( T P,
int connectionTimeout )

Set the Connection inactive timeout value in seconds.

The method ConnectionPool_reapConnections(), if called, will close inactive Connections in the pool which have not been in use for connectionTimeout seconds. The default connectionTimeout is 90 seconds.

The reaper thread, see ConnectionPool_setReaper(), will use this value when closing inactive Connections.

Parameters
PA ConnectionPool object
connectionTimeoutThe number of seconds a Connection can be inactive (i.e., not in use) before the reaper closes the Connection. (value > 0)

◆ ConnectionPool_getConnectionTimeout()

int ConnectionPool_getConnectionTimeout ( T P)

Gets the connection timeout value.

Parameters
PA ConnectionPool object
Returns
The time an inactive Connection may live before it is closed

◆ ConnectionPool_setAbortHandler()

void ConnectionPool_setAbortHandler ( T P,
void(* abortHandler )(const char *error) )

Sets the function to call if a fatal error occurs in the library.

In practice, this means Out-Of-Memory errors or uncaught exceptions. Clients may optionally provide this function. If not provided, the library will call abort(3) upon encountering a fatal error if ZBDEBUG is set; otherwise, exit(1) is called. This method provides clients with a means to close down execution gracefully. It is an unchecked runtime error to continue using the library after the abortHandler was called.

Parameters
PA ConnectionPool object
abortHandlerThe handler function to call should a fatal error occur during processing. An explanatory error message is passed to the handler function in the string error
See also
Exception.h

◆ ConnectionPool_setReaper()

void ConnectionPool_setReaper ( T P,
int sweepInterval )

Customize the reaper thread behavior or disable it.

By default, a reaper thread is automatically started when the pool is initialized, with a default sweep interval of 60 seconds. This method allows you to change the sweep interval or disable the reaper entirely.

The reaper thread closes inactive Connections in the pool, down to the initial connection count. An inactive Connection is closed if its connectionTimeout has expired or if it fails the ping test. Active Connections (those in current use) are never closed by this thread.

This method can be called before or after ConnectionPool_start(). If called after start, the changes will take effect on the next sweep cycle.

Parameters
PA ConnectionPool object
sweepIntervalNumber of seconds between sweeps of the reaper thread. Set to 0 or a negative value to disable the reaper thread, before calling ConnectionPool_start().

◆ ConnectionPool_start()

void ConnectionPool_start ( T P)

Prepares the pool for active use.

This method must be called before the pool is used. It will connect to the database server, create the initial connections for the pool, and start the reaper thread with default settings, unless previously disabled via ConnectionPool_setReaper().

Parameters
PA ConnectionPool object
Exceptions
SQLExceptionIf a database error occurs.
See also
SQLException.h

◆ ConnectionPool_stop()

void ConnectionPool_stop ( T P)

Gracefully terminates the pool.

This method should be the last one called on a given instance of this component. Calling this method closes down all connections in the pool, disconnects the pool from the database server, and stops the reaper thread if it was started.

Parameters
PA ConnectionPool object

◆ ConnectionPool_getConnection()

Connection_T ConnectionPool_getConnection ( T P)

Get a connection from the pool.

The returned Connection (if any) is guaranteed to be alive and connected to the database. NULL is returned if a database error occurred or if the pool is full and cannot return a new connection.

This example demonstrates how to check if the pool is full before attempting to get a connection, and how to handle potential errors:

// Consider increasing pool size before trying to get a connection
// ConnectionPool_setMaxConnections(p, ...)
}
Connection_T con = ConnectionPool_getConnection(p);
if (!con) {
// Pool is full
fprintf(stderr, "Connection pool is full. Cannot acquire a new connection.\n");
} else {
// A database error occurred. This could be due
// to network issues or database unavailability
fprintf(stderr, "Database error: Unable to acquire a connection.\n");
}
} else {
// Use the connection...
}
bool ConnectionPool_isFull(T P)
Checks if the pool is full.
Parameters
PA ConnectionPool object
Returns
A connection from the pool or NULL if a database error occurred.
See also
Connection.h
ConnectionPool_setMaxRetries(T P, int maxRetries)

◆ ConnectionPool_getConnectionOrException()

Connection_T ConnectionPool_getConnectionOrException ( T P)

Get a connection from the pool.

The returned Connection is guaranteed to be alive and connected to the database. The method ConnectionPool_getConnection() above is identical except it will return NULL if the pool is full or if a database error occured. This method will instead throw an SQLException in both cases with an appropriate error message.

This example demonstrates how to get a connection, and how to handle potential errors:

Connection_T con = NULL;
{
// Use the connection...
}
{
// The error message in Exception_frame.message will specify
// if the pool was full or the database error that occured
fprintf(stderr, "Error: %s\n", Exception_frame.message);
}
{
if (con) Connection_close(con);
}
Connection_T ConnectionPool_getConnectionOrException(T P)
Get a connection from the pool.
#define ELSE
Defines a block containing code for handling any exception thrown in the TRY block.
Definition Exception.h:284
#define FINALLY
Defines a block of code that is subsequently executed whether an exception is thrown or not.
Definition Exception.h:295
#define TRY
Defines a block of code that can potentially throw an exception.
Definition Exception.h:256
#define END_TRY
Ends a TRY-CATCH block.
Definition Exception.h:306
Parameters
PA ConnectionPool object
Returns
A connection from the pool
Exceptions
SQLExceptionIf a database connection cannot be obtained. The error message is available in Exception_frame.message
See also
Connection.h

◆ ConnectionPool_returnConnection()

void ConnectionPool_returnConnection ( T P,
Connection_T connection )

Returns a connection to the pool.

The same as calling Connection_close() on a connection. If the connection is in an uncommitted transaction, rollback is called. It is an unchecked error to attempt to use the Connection after this method is called.

Parameters
PA ConnectionPool object
connectionA Connection object
See also
Connection.h

◆ ConnectionPool_reapConnections()

int ConnectionPool_reapConnections ( T P)

Reaps inactive connections in the pool.

An inactive Connection is closed if and only if its connectionTimeout has expired or if the Connection failed the ping test against the database. Active Connections are not closed by this method.

Parameters
PA ConnectionPool object
Returns
The number of Connections that were closed
See also
ConnectionPool_setConnectionTimeout
ConnectionPool_setInitialConnections
Connection_ping

◆ ConnectionPool_size()

int ConnectionPool_size ( T P)

Gets the current number of connections in the pool.

Parameters
PA ConnectionPool object
Returns
The total number of connections in the pool.

◆ ConnectionPool_active()

int ConnectionPool_active ( T P)

Gets the number of active connections in the pool.

I.e., connections in current use by your application.

Parameters
PA ConnectionPool object
Returns
The number of active connections in the pool

◆ ConnectionPool_isFull()

bool ConnectionPool_isFull ( T P)

Checks if the pool is full.

The pool is full if the number of active connections equals max connections and the pool is unable to return a connection.

Parameters
PA ConnectionPool object
Returns
true if pool is full, false otherwise
Note
A full pool is unlikely to occur in practice if you ensure that connections are returned to the pool after use.

◆ ConnectionPool_version()

const char * ConnectionPool_version ( void )

Gets the library version information.

Returns
The library version information

Variable Documentation

◆ ZBDEBUG

int ZBDEBUG
extern

Library Debug flag.

If set to true, emit debug output

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/globals.html000644 000765 000024 00000044451 14652557242 017660 0ustar00haukstaff000000 000000 Globals ⬅
Here is a list of all functions, variables, defines, enums, and typedefs with links to the files they belong to:

- c -

- e -

- f -

- l -

  • LIBZDB_MAJOR : zdb.h
  • LIBZDB_MINOR : zdb.h
  • LIBZDB_REVISION : zdb.h
  • LIBZDB_VERSION : zdb.h
  • LIBZDB_VERSION_NUMBER : zdb.h

- p -

- r -

- s -

- t -

- u -

  • URL_create() : URL.h
  • URL_escape() : URL.h
  • URL_free() : URL.h
  • URL_getHost() : URL.h
  • URL_getParameter() : URL.h
  • URL_getParameterNames() : URL.h
  • URL_getPassword() : URL.h
  • URL_getPath() : URL.h
  • URL_getPort() : URL.h
  • URL_getProtocol() : URL.h
  • URL_getQueryString() : URL.h
  • URL_getUser() : URL.h
  • URL_new() : URL.h
  • URL_toString() : URL.h
  • URL_unescape() : URL.h

- v -

- z -

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/tab_ad.png000644 000765 000024 00000000207 14652557242 017256 0ustar00haukstaff000000 000000 ‰PNG  IHDR$ÇÇ[NIDATxía €Pƒç´" ÞŸ îÒôéƒ.!L†ßæ€/Ïë¦nEX¢2ÐiÌ^® rËV¯}õ´rÙë>= >ØîbHa5IEND®B`‚libzdb-3.4.0/doc/api-docs/classzdb_1_1ResultSet.html000644 000765 000024 00000176352 14652557242 022363 0ustar00haukstaff000000 000000 ResultSet ⬅
ResultSet

Detailed Description

Represents a database result set.

A ResultSet is created by executing a SQL SELECT statement using Connection::executeQuery().

A ResultSet maintains a cursor pointing to its current row of data. Initially, the cursor is positioned before the first row. ResultSet::next() moves the cursor to the next row, and because it returns false when there are no more rows, it can be used in a while loop to iterate through the result set. A ResultSet is not updatable and has a cursor that moves forward only. Thus, you can iterate through it only once and only from the first row to the last row.

The ResultSet class provides getter methods for retrieving column values from the current row. Values can be retrieved using either the index number of the column or the name of the column. In general, using the column index will be more efficient. Columns are numbered from 1.

Column names used as input to getter methods are case sensitive. When a getter method is called with a column name and several columns have the same name, the value of the first matching column will be returned. The column name option is designed to be used when column names are used in the SQL query that generated the result set. For columns that are NOT explicitly named in the query, it is best to use column indices.

Examples

The following examples demonstrate how to obtain a ResultSet and how to retrieve values from it.

Example: Using column names

In this example, columns are named in the SELECT statement, and we retrieve values using the column names (we could of course also use indices if we want):

Connection con = pool.getConnection();
ResultSet result = con.executeQuery("SELECT ssn, name, photo FROM employees");
while (result.next()) {
int ssn = result.getInt("ssn");
auto name = result.getString("name");
auto photo = result.getBlob("photo");
if (photo) {
// Process photo data
}
// Process other data...
}
Represents a connection to a SQL database system.
Definition zdbpp.h:1333
ResultSet executeQuery(const std::string &sql, Args &&... args)
Executes a SQL query and returns a ResultSet.
Definition zdbpp.h:1563
Represents a database result set.
Definition zdbpp.h:590
int getInt(int columnIndex)
Gets the designated column's value as an int.
Definition zdbpp.h:731
bool next()
Moves the cursor to the next row.
Definition zdbpp.h:677
std::optional< std::string_view > getString(int columnIndex)
Gets the designated column's value as a string.
Definition zdbpp.h:707
std::optional< std::span< const std::byte > > getBlob(int columnIndex)
Gets the designated column's value as a byte span.
Definition zdbpp.h:795

Example: Using column indices

This example demonstrates selecting a generated result and printing it. When the SELECT statement doesn't name the column, we use the column index to retrieve the value:

Connection con = pool.getConnection();
ResultSet r = con.executeQuery("SELECT COUNT(*) FROM employees");
if (r.next()) {
std::cout << "Number of employees: "
<< r.getString(1).value_or("none")
<< std::endl;
} else {
std::cout << "No results returned" << std::endl;
}

Automatic type conversions

A ResultSet stores values internally as bytes and converts values on-the-fly to numeric types when requested, such as when getInt() or one of the other numeric get-methods are called. In the above example, even if count(*) returns a numeric value, we can use getString() to get the number as a string or if we choose, we can use getInt() to get the value as an integer. In the latter case, note that if the column value cannot be converted to a number, an sql_exception is thrown.

Date and Time

ResultSet provides two principal methods for retrieving temporal column values as C types. getTimestamp() converts a SQL timestamp value to a time_t and getDateTime() returns a tm structure representing a Date, Time, DateTime, or Timestamp column type. To get a temporal column value as a string, simply use getString()

A ResultSet is reentrant, but not thread-safe and should only be used by one thread (at a time).

Note
Remember that column indices in ResultSet are 1-based, not 0-based.
Warning
ResultSet objects are internally managed by the Connection that created them and are not copyable or movable. Always ensure that the originating Connection object remains valid for the entire duration of the ResultSet's use. Basically, keep the Connection and ResultSet objects in the same scope. Do not attempt to use ResultSet objects (including through references or pointers) after their Connection has been closed and returned to the pool.

Represents a database result set. More...

Public Member Functions

Properties
int columnCount () const noexcept
 Gets the number of columns in this ResultSet.
 
std::optional< std::string_view > columnName (int columnIndex) const noexcept
 Gets the designated column's name.
 
long columnSize (int columnIndex)
 Gets the size of a column in bytes.
 
void setFetchSize (int rows) noexcept
 Sets the number of rows to fetch from the database.
 
int getFetchSize () const noexcept
 Gets the number of rows to fetch from the database.
 
Functions
bool next ()
 Moves the cursor to the next row.
 
Columns
bool isNull (int columnIndex)
 Checks if the designated column's value is SQL NULL.
 
std::optional< std::string_view > getString (int columnIndex)
 Gets the designated column's value as a string.
 
std::optional< std::string_view > getString (const std::string &columnName)
 Gets the designated column's value as a string.
 
int getInt (int columnIndex)
 Gets the designated column's value as an int.
 
int getInt (const std::string &columnName)
 Gets the designated column's value as an int.
 
long long getLLong (int columnIndex)
 Gets the designated column's value as a long long.
 
long long getLLong (const std::string &columnName)
 Gets the designated column's value as a long long.
 
double getDouble (int columnIndex)
 Gets the designated column's value as a double.
 
double getDouble (const std::string &columnName)
 Gets the designated column's value as a double.
 
std::optional< std::span< const std::byte > > getBlob (int columnIndex)
 Gets the designated column's value as a byte span.
 
std::optional< std::span< const std::byte > > getBlob (const std::string &columnName)
 Gets the designated column's value as a byte span.
 
Date and Time
time_t getTimestamp (int columnIndex)
 Gets the designated column's value as a Unix timestamp.
 
time_t getTimestamp (const std::string &columnName)
 Gets the designated column's value as a Unix timestamp.
 
tm getDateTime (int columnIndex)
 Gets the designated column's value as a Date, Time or DateTime.
 
tm getDateTime (const std::string &columnName)
 Gets the designated column's value as a Date, Time or DateTime.
 

Member Function Documentation

◆ columnCount()

int columnCount ( ) const
nodiscardnoexcept

Gets the number of columns in this ResultSet.

Returns
The number of columns.

◆ columnName()

std::optional< std::string_view > columnName ( int columnIndex) const
nodiscardnoexcept

Gets the designated column's name.

Parameters
columnIndexThe first column is 1, the second is 2, ...
Returns
An optional containing the Column name, or std::nullopt if not found.

◆ columnSize()

long columnSize ( int columnIndex)
nodiscard

Gets the size of a column in bytes.

If the column is a blob then this method returns the number of bytes in that blob. No type conversions occur. If the result is a string (or a number since a number can be converted into a string) then return the number of bytes in the resulting string.

Parameters
columnIndexThe first column is 1, the second is 2, ...
Returns
Column data size.
Exceptions
sql_exceptionIf columnIndex is outside the valid range.

◆ setFetchSize()

void setFetchSize ( int rows)
noexcept

Sets the number of rows to fetch from the database.

ResultSet will prefetch rows in batches of number of rows when next() is called to reduce the network roundtrip to the database. This method is only applicable to MySQL and Oracle.

Parameters
rowsThe number of rows to fetch (1..INT_MAX).

◆ getFetchSize()

int getFetchSize ( ) const
nodiscardnoexcept

Gets the number of rows to fetch from the database.

Unless previously set with setFetchSize(), the returned value is the same as returned by Connection::getFetchSize()

Returns
The number of rows to fetch or 0 if N/A.

◆ next()

bool next ( )

Moves the cursor to the next row.

A ResultSet cursor is initially positioned before the first row; the first call to this method makes the first row the current row; the second call makes the second row the current row, and so on. When there are no more available rows false is returned. An empty ResultSet will return false on the first call to ResultSet::next().

Returns
true if the new current row is valid; false if there are no more rows.
Exceptions
sql_exceptionIf a database access error occurs.

◆ isNull()

bool isNull ( int columnIndex)
nodiscard

Checks if the designated column's value is SQL NULL.

A ResultSet returns an optional for reference types and 0 for value types. Use this method if you need to differentiate between SQL NULL and std::nullopt/0.

Parameters
columnIndexThe first column is 1, the second is 2, ...
Returns
true if column value is SQL NULL, false otherwise.
Exceptions
sql_exceptionIf a database access error occurs or columnIndex is invalid.

◆ getString() [1/2]

std::optional< std::string_view > getString ( int columnIndex)
nodiscard

Gets the designated column's value as a string.

The returned string may only be valid until the next call to next() and if you plan to use the returned value longer, you must make a copy.

Parameters
columnIndexThe first column is 1, the second is 2, ...
Returns
An optional containing the column value, or std::nullopt if NULL.
Exceptions
sql_exceptionIf a database access error occurs or columnIndex is invalid.

◆ getString() [2/2]

std::optional< std::string_view > getString ( const std::string & columnName)
nodiscard

Gets the designated column's value as a string.

The returned string may only be valid until the next call to next() and if you plan to use the returned value longer, you must make a copy.

Parameters
columnNameThe SQL name of the column. case-sensitive.
Returns
An optional containing the column value, or std::nullopt if NULL.
Exceptions
sql_exceptionIf a database access error occurs or columnName does not exist.

◆ getInt() [1/2]

int getInt ( int columnIndex)
nodiscard

Gets the designated column's value as an int.

Parameters
columnIndexThe first column is 1, the second is 2, ...
Returns
The column value; if the value is SQL NULL, the value returned is 0.
Exceptions
sql_exceptionIf a database error occurs, columnIndex is invalid or value is NaN.

◆ getInt() [2/2]

int getInt ( const std::string & columnName)
nodiscard

Gets the designated column's value as an int.

Parameters
columnNameThe SQL name of the column. case-sensitive.
Returns
The column value; if the value is SQL NULL, the value returned is 0.
Exceptions
sql_exceptionIf a database error occurs, columnName is invalid or value is NaN.

◆ getLLong() [1/2]

long long getLLong ( int columnIndex)
nodiscard

Gets the designated column's value as a long long.

Parameters
columnIndexThe first column is 1, the second is 2, ...
Returns
The column value; if the value is SQL NULL, the value returned is 0.
Exceptions
sql_exceptionIf a database error occurs, columnIndex is invalid or value is NaN.

◆ getLLong() [2/2]

long long getLLong ( const std::string & columnName)
nodiscard

Gets the designated column's value as a long long.

Parameters
columnNameThe SQL name of the column. case-sensitive.
Returns
The column value; if the value is SQL NULL, the value returned is 0.
Exceptions
sql_exceptionIf a database error occurs, columnName is invalid or value is NaN.

◆ getDouble() [1/2]

double getDouble ( int columnIndex)
nodiscard

Gets the designated column's value as a double.

Parameters
columnIndexThe first column is 1, the second is 2, ...
Returns
The column value; if the value is SQL NULL, the value returned is 0.0.
Exceptions
sql_exceptionIf a database error occurs, columnIndex is invalid or value is NaN.

◆ getDouble() [2/2]

double getDouble ( const std::string & columnName)
nodiscard

Gets the designated column's value as a double.

Parameters
columnNameThe SQL name of the column. case-sensitive.
Returns
The column value; if the value is SQL NULL, the value returned is 0.0.
Exceptions
sql_exceptionIf a database error occurs, columnName is invalid or value is NaN.

◆ getBlob() [1/2]

std::optional< std::span< const std::byte > > getBlob ( int columnIndex)
nodiscard

Gets the designated column's value as a byte span.

The returned blob may only be valid until the next call to next() and if you plan to use the returned value longer, you must make a copy.

Parameters
columnIndexThe first column is 1, the second is 2, ...
Returns
An optional span of bytes containing the blob data, or std::nullopt if NULL.
Exceptions
sql_exceptionIf a database access error occurs or columnIndex is invalid.

◆ getBlob() [2/2]

std::optional< std::span< const std::byte > > getBlob ( const std::string & columnName)
nodiscard

Gets the designated column's value as a byte span.

The returned blob may only be valid until the next call to next() and if you plan to use the returned value longer, you must make a copy.

Parameters
columnNameThe SQL name of the column. case-sensitive.
Returns
An optional span of bytes containing the blob data, or std::nullopt if NULL.
Exceptions
sql_exceptionIf a database access error occurs or columnName is invalid.

◆ getTimestamp() [1/2]

time_t getTimestamp ( int columnIndex)
nodiscard

Gets the designated column's value as a Unix timestamp.

The returned value is in Coordinated Universal Time (UTC) and represents seconds since the epoch (January 1, 1970, 00:00:00 GMT).

Even though the underlying database might support timestamp ranges before the epoch and after '2038-01-19 03:14:07 UTC' it is safest not to assume or use values outside this range. Especially on a 32-bit system.

SQLite does not have temporal SQL data types per se and using this method with SQLite assumes the column value in the Result Set to be either a numerical value representing a Unix Time in UTC which is returned as-is or an ISO 8601 time string which is converted to a time_t value.

Parameters
columnIndexThe first column is 1, the second is 2, ...
Returns
The column value as seconds since the epoch in the GMT timezone. If the value is SQL NULL, the value returned is 0.
Exceptions
sql_exceptionIf a database access error occurs, columnIndex is outside the valid range or if the column value cannot be converted to a valid timestamp.

◆ getTimestamp() [2/2]

time_t getTimestamp ( const std::string & columnName)
nodiscard

Gets the designated column's value as a Unix timestamp.

The returned value is in Coordinated Universal Time (UTC) and represents seconds since the epoch (January 1, 1970, 00:00:00 GMT).

Even though the underlying database might support timestamp ranges before the epoch and after '2038-01-19 03:14:07 UTC' it is safest not to assume or use values outside this range. Especially on a 32-bit system.

SQLite does not have temporal SQL data types per se and using this method with SQLite assumes the column value in the Result Set to be either a numerical value representing a Unix Time in UTC which is returned as-is or an ISO 8601 time string which is converted to a time_t value.

Parameters
columnNameThe SQL name of the column. case-sensitive.
Returns
The column value as seconds since the epoch in the GMT timezone. If the value is SQL NULL, the value returned is 0.
Exceptions
sql_exceptionIf a database access error occurs, columnName is not found or if the column value cannot be converted to a valid timestamp.

◆ getDateTime() [1/2]

tm getDateTime ( int columnIndex)
nodiscard

Gets the designated column's value as a Date, Time or DateTime.

This method can be used to retrieve the value of columns with the SQL data type, Date, Time, DateTime or Timestamp. The returned tm structure follows the convention for usage with mktime(3) where:

  • tm_hour = hours since midnight [0-23]
  • tm_min = minutes after the hour [0-59]
  • tm_sec = seconds after the minute [0-60]
  • tm_mday = day of the month [1-31]
  • tm_mon = months since January [0-11]

If the column value contains timezone information, tm_gmtoff is set to the offset from UTC in seconds, otherwise tm_gmtoff is set to 0. On systems without tm_gmtoff, (Solaris), the member, tm_wday is set to gmt offset instead as this property is ignored by mktime on input. The exception to the above is tm_year which contains the year literal and not years since 1900 which is the convention. All other fields in the structure are set to zero. If the column type is DateTime or Timestamp all the fields mentioned above are set, if it is a Date or a Time, only the relevant fields are set.

Parameters
columnIndexThe first column is 1, the second is 2, ...
Returns
A tm structure with fields for date and time. If the value is SQL NULL, a zeroed tm structure is returned. Use isNull() if in doubt.
Exceptions
sql_exceptionIf a database access error occurs, columnIndex is outside the valid range or if the column value cannot be converted to a valid SQL Date, Time or DateTime type.

◆ getDateTime() [2/2]

tm getDateTime ( const std::string & columnName)
nodiscard

Gets the designated column's value as a Date, Time or DateTime.

This method can be used to retrieve the value of columns with the SQL data type, Date, Time, DateTime or Timestamp. The returned tm structure follows the convention for usage with mktime(3) where:

  • tm_hour = hours since midnight [0-23]
  • tm_min = minutes after the hour [0-59]
  • tm_sec = seconds after the minute [0-60]
  • tm_mday = day of the month [1-31]
  • tm_mon = months since January [0-11]

If the column value contains timezone information, tm_gmtoff is set to the offset from UTC in seconds, otherwise tm_gmtoff is set to 0. On systems without tm_gmtoff, (Solaris), the member, tm_wday is set to gmt offset instead as this property is ignored by mktime on input. The exception to the above is tm_year which contains the year literal and not years since 1900 which is the convention. All other fields in the structure are set to zero. If the column type is DateTime or Timestamp all the fields mentioned above are set, if it is a Date or a Time, only the relevant fields are set.

Parameters
columnNameThe SQL name of the column. case-sensitive.
Returns
A tm structure with fields for date and time. If the value is SQL NULL, a zeroed tm structure is returned. Use isNull() if in doubt.
Exceptions
sql_exceptionIf a database access error occurs, columnName is not found or if the column value cannot be converted to a valid Date, Time or DateTime type.

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/minus.svg000644 000765 000024 00000001106 14652557242 017211 0ustar00haukstaff000000 000000 libzdb-3.4.0/doc/api-docs/Connection_8h.html000644 000765 000024 00000220500 14652557242 020722 0ustar00haukstaff000000 000000 Connection.h File Reference ⬅
Connection.h File Reference

Detailed Description

A Connection represents a connection to a SQL database system.

Use a Connection to execute SQL statements. There are three ways to execute statements: Connection_execute() is used to execute SQL statements that do not return a result set. Such statements are INSERT, UPDATE or DELETE. Connection_executeQuery() is used to execute a SQL SELECT statement and return a result set. These methods can only handle values which can be expressed as C-strings. If you need to handle binary data, such as inserting a blob value into the database, use a PreparedStatement object to execute the SQL statement. The factory method Connection_prepareStatement() is used to obtain a PreparedStatement object.

The method Connection_executeQuery() will return an empty ResultSet (not null) if the SQL statement did not return any values. A ResultSet is valid until the next call to Connection execute or until the Connection is returned to the Connection Pool. If an error occurs during execution, an SQLException is thrown.

Any SQL statement that changes the database (basically, any SQL command other than SELECT) will automatically start a transaction if one is not already in effect. Automatically started transactions are committed at the conclusion of the command.

Transactions can also be started manually using Connection_beginTransaction(). Such transactions usually persist until the next call to Connection_commit() or Connection_rollback(). A transaction will also rollback if the database is closed or if an error occurs. Nested transactions are not allowed.

Examples

Basic Query Execution

Connection_T con = ConnectionPool_getConnection(pool);
if (con) {
ResultSet_T result = Connection_executeQuery(con, "SELECT name, age FROM users WHERE id = %d", 1);
if (ResultSet_next(result)) {
const char* name = ResultSet_getString(result, 1);
int age = ResultSet_getInt(result, 2);
printf("Name: %s, Age: %d\n", valueOr(name, "N/A"), age);
}
}
Connection_T ConnectionPool_getConnection(T P)
Get a connection from the pool.
ResultSet_T Connection_executeQuery(T C, const char *sql,...)
Executes a SQL query and returns a ResultSet.
void Connection_close(T C)
Returns the connection to the connection pool.
bool ResultSet_next(T R)
Moves the cursor to the next row.
int ResultSet_getInt(T R, int columnIndex)
Gets the designated column's value as an int.
const char * ResultSet_getString(T R, int columnIndex)
Gets the designated column's value as a C-string.
#define valueOr(expr, default_value)
Definition zdb.h:107

Transaction Example

Connection_T con = NULL;
{
Connection_execute(con, "UPDATE accounts SET balance = balance - %f WHERE id = %d", 100.0, 1);
Connection_execute(con, "UPDATE accounts SET balance = balance + %f WHERE id = %d", 100.0, 2);
printf("Transfer successful\n");
}
{
// The error message in Exception_frame.message specify the error that occured
printf("Transfer failed: %s\n", Exception_frame.message);
// Connection_close() will automatically call Connection_rollback() if
// the connection is in an uncommitted transaction
}
{
if (con) Connection_close(con);
}
Connection_T ConnectionPool_getConnectionOrException(T P)
Get a connection from the pool.
void Connection_beginTransaction(T C)
Begins a new (default) transaction.
void Connection_commit(T C)
Commits the current transaction.
void Connection_execute(T C, const char *sql,...)
Executes a SQL statement, with or without parameters.
#define ELSE
Defines a block containing code for handling any exception thrown in the TRY block.
Definition Exception.h:284
#define FINALLY
Defines a block of code that is subsequently executed whether an exception is thrown or not.
Definition Exception.h:295
#define TRY
Defines a block of code that can potentially throw an exception.
Definition Exception.h:256
#define END_TRY
Ends a TRY-CATCH block.
Definition Exception.h:306

Using PreparedStatement

Connection_T con = ConnectionPool_getConnection(pool);
if (con) {
const char *sql = "INSERT INTO logs (message, timestamp) VALUES (?, ?)";
PreparedStatement_T stmt = Connection_prepareStatement(con, sql);
PreparedStatement_setString(stmt, 1, "User logged in");
PreparedStatement_setTimestamp(stmt, 2, time(NULL));
printf("Rows affected: %lld\n", PreparedStatement_rowsChanged(stmt));
}
PreparedStatement_T Connection_prepareStatement(T C, const char *sql,...)
Prepares a SQL statement for execution.
void PreparedStatement_setTimestamp(T P, int parameterIndex, time_t x)
Sets the in parameter at index parameterIndex to the given Unix timestamp value.
void PreparedStatement_setString(T P, int parameterIndex, const char *x)
Sets the in parameter at index parameterIndex to the given string value.
void PreparedStatement_execute(T P)
Executes the prepared SQL statement.
long long PreparedStatement_rowsChanged(T P)
Gets the number of rows affected by the most recent SQL statement.

A Connection is reentrant, but not thread-safe and should only be used by one thread (at a time).

Note
When Connection_close() is called on a Connection object, it is automatically returned to the pool. If the connection is still in a transaction at this point, the transaction will be automatically rolled back. This ensures data integrity even when exceptions occur. It's recommended to always call Connection_close() in a FINALLY block to guarantee proper resource management and transaction handling. See the Transaction Example above for a practical demonstration of this behavior.
See also
ResultSet.h PreparedStatement.h SQLException.h

Macros

#define T   Connection_T
 

Typedefs

typedef struct Connection_S * T
 

Enumerations

enum  TRANSACTION_TYPE {
  TRANSACTION_DEFAULT = 0 , TRANSACTION_READ_UNCOMMITTED , TRANSACTION_READ_COMMITTED , TRANSACTION_REPEATABLE_READ ,
  TRANSACTION_SERIALIZABLE , TRANSACTION_IMMEDIATE , TRANSACTION_EXCLUSIVE
}
 Enum representing different transaction isolation levels and behaviors. More...
 

Functions

Properties
void Connection_setQueryTimeout (T C, int ms)
 Sets the query timeout for this Connection.
 
int Connection_getQueryTimeout (T C)
 Gets the query timeout for this Connection.
 
void Connection_setMaxRows (T C, int max)
 Sets the maximum number of rows for ResultSet objects.
 
int Connection_getMaxRows (T C)
 Gets the maximum number of rows for ResultSet objects.
 
void Connection_setFetchSize (T C, int rows)
 Sets the number of rows to fetch for ResultSet objects.
 
int Connection_getFetchSize (T C)
 Gets the number of rows to fetch for ResultSet objects.
 
URL_T Connection_getURL (T C)
 Gets this Connections URL.
 
Functions
bool Connection_ping (T C)
 Pings the database server to check if the connection is alive.
 
void Connection_clear (T C)
 Clears any ResultSet and PreparedStatements in the Connection.
 
void Connection_close (T C)
 Returns the connection to the connection pool.
 
void Connection_beginTransaction (T C)
 Begins a new (default) transaction.
 
void Connection_beginTransactionType (T C, TRANSACTION_TYPE type)
 Begins a new specific transaction.
 
bool Connection_inTransaction (T C)
 Checks if this Connection is in an uncommitted transaction.
 
void Connection_commit (T C)
 Commits the current transaction.
 
void Connection_rollback (T C)
 Rolls back the current transaction.
 
long long Connection_lastRowId (T C)
 Gets the last inserted row ID for auto-increment columns.
 
long long Connection_rowsChanged (T C)
 Gets the number of rows affected by the last execute() statement.
 
void Connection_execute (T C, const char *sql,...)
 Executes a SQL statement, with or without parameters.
 
ResultSet_T Connection_executeQuery (T C, const char *sql,...)
 Executes a SQL query and returns a ResultSet.
 
PreparedStatement_T Connection_prepareStatement (T C, const char *sql,...)
 Prepares a SQL statement for execution.
 
const char * Connection_getLastError (T C)
 Gets the last SQL error message.
 
Class functions
bool Connection_isSupported (const char *url)
 Checks if the specified database system is supported.
 

Macro Definition Documentation

◆ T

#define T   Connection_T

Typedef Documentation

◆ T

typedef struct Connection_S* T

Enumeration Type Documentation

◆ TRANSACTION_TYPE

Enum representing different transaction isolation levels and behaviors.

Support for specific types varies depending on the database system being used.

Note: All transactions must be explicitly ended with either a commit or a rollback operation, regardless of the isolation level or database system.

Enumerator
TRANSACTION_DEFAULT 

Use the default transaction behavior of the underlying database system.

  • MySQL: REPEATABLE READ
  • PostgreSQL: READ COMMITTED
  • Oracle: READ COMMITTED
  • SQLite: SERIALIZABLE
TRANSACTION_READ_UNCOMMITTED 

Lowest isolation level.

Transactions can read uncommitted data. Supported by: MySQL. Not supported by: PostgreSQL, Oracle, SQLite

TRANSACTION_READ_COMMITTED 

Prevents dirty reads.

A transaction only sees data committed before the transaction began. Supported by: MySQL, PostgreSQL, Oracle. Not applicable to SQLite (always SERIALIZABLE)

TRANSACTION_REPEATABLE_READ 

Prevents non-repeatable reads.

Supported by: MySQL, PostgreSQL. Not supported by: Oracle. Not applicable to SQLite (always SERIALIZABLE)

TRANSACTION_SERIALIZABLE 

Highest isolation level.

Prevents dirty reads, non-repeatable reads, and phantom reads. Supported by: MySQL, PostgreSQL, Oracle. Default and only level for SQLite

TRANSACTION_IMMEDIATE 

SQLite-specific.

Starts a transaction immediately, acquiring a RESERVED lock. Not applicable to other database systems.

TRANSACTION_EXCLUSIVE 

SQLite-specific.

Starts a transaction and acquires an EXCLUSIVE lock immediately. Not applicable to other database systems.

Function Documentation

◆ Connection_setQueryTimeout()

void Connection_setQueryTimeout ( T C,
int ms )

Sets the query timeout for this Connection.

If the limit is exceeded, the statement will return immediately with an error. The timeout is set per connection/session. Not all database systems support query (SELECT) timeout. The default is no query timeout.

Parameters
CA Connection object
msThe query timeout in milliseconds; zero (the default) means there is no timeout limit.

◆ Connection_getQueryTimeout()

int Connection_getQueryTimeout ( T C)

Gets the query timeout for this Connection.

Parameters
CA Connection object
Returns
The query timeout limit in milliseconds; zero means there is no timeout limit

◆ Connection_setMaxRows()

void Connection_setMaxRows ( T C,
int max )

Sets the maximum number of rows for ResultSet objects.

If the limit is exceeded, the excess rows are silently dropped.

Parameters
CA Connection object
maxThe new max rows limit; 0 (the default) means there is no limit

◆ Connection_getMaxRows()

int Connection_getMaxRows ( T C)

Gets the maximum number of rows for ResultSet objects.

Parameters
CA Connection object
Returns
The max rows limit; 0 means there is no limit

◆ Connection_setFetchSize()

void Connection_setFetchSize ( T C,
int rows )

Sets the number of rows to fetch for ResultSet objects.

The default value is 100, meaning that a ResultSet will prefetch rows in batches of 100 rows to reduce the network roundtrip to the database. This value can also be set via the URL parameter fetch-size to apply to all connections. This method and the concept of pre-fetching rows are only applicable to MySQL and Oracle.

Parameters
CA Connection object
rowsThe number of rows to fetch (1..INT_MAX)
Exceptions
AssertExceptionIf `rows` is less than 1

◆ Connection_getFetchSize()

int Connection_getFetchSize ( T C)

Gets the number of rows to fetch for ResultSet objects.

Parameters
CA Connection object
Returns
The number of rows to fetch

◆ Connection_getURL()

URL_T Connection_getURL ( T C)

Gets this Connections URL.

Parameters
CA Connection object
Returns
This Connections URL
See also
URL.h

◆ Connection_ping()

bool Connection_ping ( T C)

Pings the database server to check if the connection is alive.

Parameters
CA Connection object
Returns
true if the connection is alive, false otherwise.

◆ Connection_clear()

void Connection_clear ( T C)

Clears any ResultSet and PreparedStatements in the Connection.

Normally it is not necessary to call this method, but for some implementations (SQLite) it may, in some situations, be necessary to call this method if an execution sequence error occurs.

Parameters
CA Connection object

◆ Connection_close()

void Connection_close ( T C)

Returns the connection to the connection pool.

The same as calling ConnectionPool_returnConnection() on a connection. If the connection is in an uncommitted transaction, rollback is called. It is an unchecked error to attempt to use the Connection after this method is called

Parameters
CA Connection object

◆ Connection_beginTransaction()

void Connection_beginTransaction ( T C)

Begins a new (default) transaction.

Parameters
CA Connection object
Exceptions
SQLExceptionIf a database error occurs
See also
SQLException.h
Note
All transactions must be ended with either Connection_commit() or Connection_rollback(). Nested transactions are not supported.

◆ Connection_beginTransactionType()

void Connection_beginTransactionType ( T C,
TRANSACTION_TYPE type )

Begins a new specific transaction.

This method is similar to Connection_beginTransaction() except it allows you to specify the new transaction's isolation level explicitly. Connection_beginTransaction() uses the default isolation level for the database.

Parameters
CA Connection object
typeThe transaction type to start
See also
TRANSACTION_TYPE enum for available options.
Exceptions
SQLExceptionIf a database error occurs
See also
SQLException.h
Note
All transactions must be ended with either Connection_commit() or Connection_rollback(). Nested transactions are not supported.

◆ Connection_inTransaction()

bool Connection_inTransaction ( T C)

Checks if this Connection is in an uncommitted transaction.

Parameters
CA Connection object
Returns
true if in a transaction, false otherwise.

◆ Connection_commit()

void Connection_commit ( T C)

Commits the current transaction.

Makes all changes made since the previous commit/rollback permanent and releases any database locks currently held by this Connection object.

Parameters
CA Connection object
Exceptions
SQLExceptionIf a database error occurs
See also
SQLException.h

◆ Connection_rollback()

void Connection_rollback ( T C)

Rolls back the current transaction.

Undoes all changes made in the current transaction and releases any database locks currently held by this Connection object. This method will first call Connection_clear() before performing the rollback to clear any statements in progress such as selects.

Parameters
CA Connection object
Exceptions
SQLExceptionIf a database error occurs
See also
SQLException.h

◆ Connection_lastRowId()

long long Connection_lastRowId ( T C)

Gets the last inserted row ID for auto-increment columns.

Parameters
CA Connection object
Returns
The value of the rowid from the last insert statement

◆ Connection_rowsChanged()

long long Connection_rowsChanged ( T C)

Gets the number of rows affected by the last execute() statement.

If used with a transaction, this method should be called before commit is executed, otherwise 0 is returned.

Parameters
CA Connection object
Returns
The number of rows changed by the last (DIM) SQL statement

◆ Connection_execute()

void Connection_execute ( T C,
const char * sql,
... )

Executes a SQL statement, with or without parameters.

Executes the given SQL statement, which may be an INSERT, UPDATE, or DELETE statement or an SQL statement that returns nothing, such as an SQL DDL statement. Several SQL statements can be used in the sql parameter string, each separated with the ; SQL statement separator character. Note, calling this method clears any previous ResultSets associated with the Connection.

Parameters
CA Connection object
sqlA SQL statement
Exceptions
SQLExceptionIf a database error occurs.
See also
SQLException.h

◆ Connection_executeQuery()

ResultSet_T Connection_executeQuery ( T C,
const char * sql,
... )

Executes a SQL query and returns a ResultSet.

You may only use one SQL statement with this method. This is different from the behavior of Connection_execute() which executes all SQL statements in its input string. If the sql parameter string contains more than one SQL statement, only the first statement is executed, the others are silently ignored. A ResultSet a valid until the next call to Connection_executeQuery(), Connection_execute() or until the Connection is returned to the Connection Pool. This means that Result Sets cannot be saved between queries.

Parameters
CA Connection object
sqlA SQL statement
Returns
A ResultSet object that contains the data produced by the given query.
Exceptions
SQLExceptionIf a database error occurs.
See also
ResultSet.h
SQLException.h

◆ Connection_prepareStatement()

PreparedStatement_T Connection_prepareStatement ( T C,
const char * sql,
... )

Prepares a SQL statement for execution.

The sql parameter may contain IN parameter placeholders. An IN placeholder is specified with a '?' character in the sql string. The placeholders are then replaced with actual values by using the PreparedStatement's setXXX methods. Only one SQL statement may be used in the sql parameter, this in difference to Connection_execute() which may take several statements. A PreparedStatement is valid until the Connection is returned to the Connection Pool.

Parameters
CA Connection object
sqlA single SQL statement that may contain one or more '?' IN parameter placeholders
Returns
A new PreparedStatement object containing the pre-compiled SQL statement.
Exceptions
SQLExceptionIf a database error occurs.
See also
PreparedStatement.h
SQLException.h

◆ Connection_getLastError()

const char * Connection_getLastError ( T C)

Gets the last SQL error message.

This method can be used to obtain a string describing the last error that occurred. Inside a CATCH-block you can also find the error message directly in the variable Exception_frame.message. It is recommended to use this variable instead since it contains both SQL errors and API errors such as parameter index out of range etc, while Connection_getLastError() might only show SQL errors

Parameters
CA Connection object
Returns
A string explaining the last error

◆ Connection_isSupported()

bool Connection_isSupported ( const char * url)

Checks if the specified database system is supported.

Clients may pass a full Connection URL, for example using URL_toString(), or for convenience only the protocol part of the URL. E.g. "mysql" or "sqlite".

Parameters
urlA database url string or database name
Returns
true if supported, false otherwise.

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/classzdb_1_1sql__exception.html000644 000765 000024 00000011707 14652557242 023435 0ustar00haukstaff000000 000000 sql_exception ⬅
sql_exception

Detailed Description

Exception class for SQL related errors.

Thrown for SQL errors. Inherits from std::runtime_error.

Example:

try {
con.executeQuery("invalid query");
} catch (const zdb::sql_exception& e) {
std::cout << "SQL error: " << e.what() << std::endl;
}
Exception class for SQL related errors.
Definition zdbpp.h:275

Exception class for SQL related errors. More...

Public Member Functions

 sql_exception (const char *msg="SQLException")
 Constructs a new sql_exception with an optional error message.
 

Constructor & Destructor Documentation

◆ sql_exception()

sql_exception ( const char * msg = "SQLException")
explicit

Constructs a new sql_exception with an optional error message.

Parameters
msgA C-string representing the error message. Defaults to "SQLException".

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/zdb_8h.html000644 000765 000024 00000020135 14652557242 017404 0ustar00haukstaff000000 000000 zdb.h File Reference ⬅
zdb.h File Reference

Detailed Description

Include this interface in your C code to import the libzdb API.

Macros

#define LIBZDB_MAJOR   3
 
#define LIBZDB_MINOR   4
 
#define LIBZDB_REVISION   0
 
#define LIBZDB_VERSION   "3.4.0"
 
#define LIBZDB_VERSION_NUMBER   ((LIBZDB_MAJOR * 1000000) + (LIBZDB_MINOR * 1000) + LIBZDB_REVISION)
 
#define valueOr(expr, default_value)
 

Macro Definition Documentation

◆ LIBZDB_MAJOR

#define LIBZDB_MAJOR   3

◆ LIBZDB_MINOR

#define LIBZDB_MINOR   4

◆ LIBZDB_REVISION

#define LIBZDB_REVISION   0

◆ LIBZDB_VERSION

#define LIBZDB_VERSION   "3.4.0"

◆ LIBZDB_VERSION_NUMBER

#define LIBZDB_VERSION_NUMBER   ((LIBZDB_MAJOR * 1000000) + (LIBZDB_MINOR * 1000) + LIBZDB_REVISION)

◆ valueOr

#define valueOr ( expr,
default_value )
Value:
({ \
__typeof__(expr) _t = (expr); \
(_t < 0 || _t == 0) ? (default_value) : _t; \
})

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/doc/api-docs/bc_sd.png000644 000765 000024 00000001173 14652557242 017121 0ustar00haukstaff000000 000000 ‰PNG  IHDR€_ BIDATxíËkQÆ¿;3É$é4Ó´b+J-X„BPÁ… u#ºq¥ø7 …‚ntåV±¢¸@Ó‚-š® q#ˆ‚çŠ3ó? ç7ç;gwî¹½˜XA~æ*gàöúŠåmÀ,.7'ÎßoN¯<ÑÌâ2œ°£… ë.¹#¯umxü­^ðßXzdiœüs=1úSryÒTðÛYÀ}ŧUKßmÔß¼°¤†¹¿Ä˜pÇHL穨­`è÷nbOÕMÑç×gõÊçVAr𬥠¢kAOª¤oìpGOOÿ¼EŒø>ºPnN,=P­<ºs§ÚÙ¤¶ß/Þ»iåµ=³ÄµüCÝ™ƒÝ*X¬÷›}èP#~8y£±S}É¢™)6»ÆD麑ýB-/±#æ16ó_» Sð*á"3Rcàä‘G ÍŒì+Q ÄÀ‰‡æ0,Jî_LKŒ€ ZöµHj|€ä3ް™ªã{|䃷&‚Ñœ“ÕÞÉÒÇÜô•§+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="
",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=y(e||this.defaultElement||this)[0],this.element=y(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=y(),this.hoverable=y(),this.focusable=y(),this.classesElementLookup={},e!==this&&(y.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=y(e.style?e.ownerDocument:e.document||e),this.window=y(this.document[0].defaultView||this.document[0].parentWindow)),this.options=y.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:y.noop,_create:y.noop,_init:y.noop,destroy:function(){var i=this;this._destroy(),y.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:y.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,o=t;if(0===arguments.length)return y.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(s=o[t]=y.widget.extend({},this.options[t]),n=0;n
"),i=e.children()[0];return y("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),s=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthx(D(s),D(n))?o.important="horizontal":o.important="vertical",p.using.call(this,t,o)}),h.offset(y.extend(l,{using:t}))})},y.ui.position={fit:{left:function(t,e){var i=e.within,s=i.isWindow?i.scrollLeft:i.offset.left,n=i.width,o=t.left-e.collisionPosition.marginLeft,h=s-o,a=o+e.collisionWidth-n-s;e.collisionWidth>n?0n?0=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),y.ui.plugin={add:function(t,e,i){var s,n=y.ui[t].prototype;for(s in i)n.plugins[s]=n.plugins[s]||[],n.plugins[s].push([e,i[s]])},call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;n").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),e.autoHide&&y(this.element).on("mouseenter",function(){e.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){e.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();function t(t){y(t).removeData("resizable").removeData("ui-resizable").off(".resizable")}var e;return this.elementIsWrapper&&(t(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var t,e,i,s,n,o=this.options,h=this;if(this.handles=o.handles||(y(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=y(),this._addedHandles=y(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},e=0;e"),this._addClass(n,"ui-resizable-handle "+s),n.css({zIndex:o.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(n),this._addedHandles=this._addedHandles.add(n));this._renderAxis=function(t){var e,i,s;for(e in t=t||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=y(this.handles[e]),this._on(this.handles[e],{mousedown:h._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=y(this.handles[e],this.element),s=/sw|ne|nw|se|n|s/.test(e)?i.outerHeight():i.outerWidth(),i=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),t.css(i,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){h.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),h.axis=n&&n[1]?n[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var e,i,s=!1;for(e in this.handles)(i=y(this.handles[e])[0])!==t.target&&!y.contains(i,t.target)||(s=!0);return!this.options.disabled&&s},_mouseStart:function(t){var e,i,s=this.options,n=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),s.containment&&(e+=y(s.containment).scrollLeft()||0,i+=y(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:n.width(),height:n.height()},this.originalSize=this._helper?{width:n.outerWidth(),height:n.outerHeight()}:{width:n.width(),height:n.height()},this.sizeDiff={width:n.outerWidth()-n.width(),height:n.outerHeight()-n.height()},this.originalPosition={left:e,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=y(".ui-resizable-"+this.axis).css("cursor"),y("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e=this.originalMousePosition,i=this.axis,s=t.pageX-e.left||0,e=t.pageY-e.top||0,i=this._change[i];return this._updatePrevProperties(),i&&(e=i.apply(this,[t,s,e]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(e=this._updateRatio(e,t)),e=this._respectSize(e,t),this._updateCache(e),this._propagate("resize",t),e=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),y.isEmptyObject(e)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var e,i,s,n=this.options,o=this;return this._helper&&(s=(e=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:o.sizeDiff.height,i=e?0:o.sizeDiff.width,e={width:o.helper.width()-i,height:o.helper.height()-s},i=parseFloat(o.element.css("left"))+(o.position.left-o.originalPosition.left)||null,s=parseFloat(o.element.css("top"))+(o.position.top-o.originalPosition.top)||null,n.animate||this.element.css(y.extend(e,{top:s,left:i})),o.helper.height(o.size.height),o.helper.width(o.size.width),this._helper&&!n.animate&&this._proportionallyResize()),y("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,s=this.options,n={minWidth:this._isNumber(s.minWidth)?s.minWidth:0,maxWidth:this._isNumber(s.maxWidth)?s.maxWidth:1/0,minHeight:this._isNumber(s.minHeight)?s.minHeight:0,maxHeight:this._isNumber(s.maxHeight)?s.maxHeight:1/0};(this._aspectRatio||t)&&(e=n.minHeight*this.aspectRatio,i=n.minWidth/this.aspectRatio,s=n.maxHeight*this.aspectRatio,t=n.maxWidth/this.aspectRatio,e>n.minWidth&&(n.minWidth=e),i>n.minHeight&&(n.minHeight=i),st.width,h=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,r=this.originalPosition.top+this.originalSize.height,l=/sw|nw|w/.test(i),i=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),h&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),o&&l&&(t.left=a-e.minWidth),s&&l&&(t.left=a-e.maxWidth),h&&i&&(t.top=r-e.minHeight),n&&i&&(t.top=r-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(n[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(t,e,i){return y.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},sw:function(t,e,i){return y.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,i]))},ne:function(t,e,i){return y.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},nw:function(t,e,i){return y.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,i]))}},_propagate:function(t,e){y.ui.plugin.call(this,t,[e,this.ui()]),"resize"!==t&&this._trigger(t,e,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),y.ui.plugin.add("resizable","animate",{stop:function(e){var i=y(this).resizable("instance"),t=i.options,s=i._proportionallyResizeElements,n=s.length&&/textarea/i.test(s[0].nodeName),o=n&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,h=n?0:i.sizeDiff.width,n={width:i.size.width-h,height:i.size.height-o},h=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,o=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(y.extend(n,o&&h?{top:o,left:h}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};s&&s.length&&y(s[0]).css({width:t.width,height:t.height}),i._updateCache(t),i._propagate("resize",e)}})}}),y.ui.plugin.add("resizable","containment",{start:function(){var i,s,n=y(this).resizable("instance"),t=n.options,e=n.element,o=t.containment,h=o instanceof y?o.get(0):/parent/.test(o)?e.parent().get(0):o;h&&(n.containerElement=y(h),/document/.test(o)||o===document?(n.containerOffset={left:0,top:0},n.containerPosition={left:0,top:0},n.parentData={element:y(document),left:0,top:0,width:y(document).width(),height:y(document).height()||document.body.parentNode.scrollHeight}):(i=y(h),s=[],y(["Top","Right","Left","Bottom"]).each(function(t,e){s[t]=n._num(i.css("padding"+e))}),n.containerOffset=i.offset(),n.containerPosition=i.position(),n.containerSize={height:i.innerHeight()-s[3],width:i.innerWidth()-s[1]},t=n.containerOffset,e=n.containerSize.height,o=n.containerSize.width,o=n._hasScroll(h,"left")?h.scrollWidth:o,e=n._hasScroll(h)?h.scrollHeight:e,n.parentData={element:h,left:t.left,top:t.top,width:o,height:e}))},resize:function(t){var e=y(this).resizable("instance"),i=e.options,s=e.containerOffset,n=e.position,o=e._aspectRatio||t.shiftKey,h={top:0,left:0},a=e.containerElement,t=!0;a[0]!==document&&/static/.test(a.css("position"))&&(h=s),n.left<(e._helper?s.left:0)&&(e.size.width=e.size.width+(e._helper?e.position.left-s.left:e.position.left-h.left),o&&(e.size.height=e.size.width/e.aspectRatio,t=!1),e.position.left=i.helper?s.left:0),n.top<(e._helper?s.top:0)&&(e.size.height=e.size.height+(e._helper?e.position.top-s.top:e.position.top),o&&(e.size.width=e.size.height*e.aspectRatio,t=!1),e.position.top=e._helper?s.top:0),i=e.containerElement.get(0)===e.element.parent().get(0),n=/relative|absolute/.test(e.containerElement.css("position")),i&&n?(e.offset.left=e.parentData.left+e.position.left,e.offset.top=e.parentData.top+e.position.top):(e.offset.left=e.element.offset().left,e.offset.top=e.element.offset().top),n=Math.abs(e.sizeDiff.width+(e._helper?e.offset.left-h.left:e.offset.left-s.left)),s=Math.abs(e.sizeDiff.height+(e._helper?e.offset.top-h.top:e.offset.top-s.top)),n+e.size.width>=e.parentData.width&&(e.size.width=e.parentData.width-n,o&&(e.size.height=e.size.width/e.aspectRatio,t=!1)),s+e.size.height>=e.parentData.height&&(e.size.height=e.parentData.height-s,o&&(e.size.width=e.size.height*e.aspectRatio,t=!1)),t||(e.position.left=e.prevPosition.left,e.position.top=e.prevPosition.top,e.size.width=e.prevSize.width,e.size.height=e.prevSize.height)},stop:function(){var t=y(this).resizable("instance"),e=t.options,i=t.containerOffset,s=t.containerPosition,n=t.containerElement,o=y(t.helper),h=o.offset(),a=o.outerWidth()-t.sizeDiff.width,o=o.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(n.css("position"))&&y(this).css({left:h.left-s.left-i.left,width:a,height:o}),t._helper&&!e.animate&&/static/.test(n.css("position"))&&y(this).css({left:h.left-s.left-i.left,width:a,height:o})}}),y.ui.plugin.add("resizable","alsoResize",{start:function(){var t=y(this).resizable("instance").options;y(t.alsoResize).each(function(){var t=y(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var e=y(this).resizable("instance"),s=e.options,n=e.originalSize,o=e.originalPosition,h={height:e.size.height-n.height||0,width:e.size.width-n.width||0,top:e.position.top-o.top||0,left:e.position.left-o.left||0};y(s.alsoResize).each(function(){var t=y(this),s=y(this).data("ui-resizable-alsoresize"),n={},e=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];y.each(e,function(t,e){var i=(s[e]||0)+(h[e]||0);i&&0<=i&&(n[e]=i||null)}),t.css(n)})},stop:function(){y(this).removeData("ui-resizable-alsoresize")}}),y.ui.plugin.add("resizable","ghost",{start:function(){var t=y(this).resizable("instance"),e=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==y.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=y(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=y(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),y.ui.plugin.add("resizable","grid",{resize:function(){var t,e=y(this).resizable("instance"),i=e.options,s=e.size,n=e.originalSize,o=e.originalPosition,h=e.axis,a="number"==typeof i.grid?[i.grid,i.grid]:i.grid,r=a[0]||1,l=a[1]||1,u=Math.round((s.width-n.width)/r)*r,p=Math.round((s.height-n.height)/l)*l,d=n.width+u,c=n.height+p,f=i.maxWidth&&i.maxWidthd,s=i.minHeight&&i.minHeight>c;i.grid=a,m&&(d+=r),s&&(c+=l),f&&(d-=r),g&&(c-=l),/^(se|s|e)$/.test(h)?(e.size.width=d,e.size.height=c):/^(ne)$/.test(h)?(e.size.width=d,e.size.height=c,e.position.top=o.top-p):/^(sw)$/.test(h)?(e.size.width=d,e.size.height=c,e.position.left=o.left-u):((c-l<=0||d-r<=0)&&(t=e._getPaddingPlusBorderDimensions(this)),0=f[g]?0:Math.min(f[g],n));!a&&1-1){targetElements.on(evt+EVENT_NAMESPACE,function elementToggle(event){$.powerTip.toggle(this,event)})}else{targetElements.on(evt+EVENT_NAMESPACE,function elementOpen(event){$.powerTip.show(this,event)})}});$.each(options.closeEvents,function(idx,evt){if($.inArray(evt,options.openEvents)<0){targetElements.on(evt+EVENT_NAMESPACE,function elementClose(event){$.powerTip.hide(this,!isMouseEvent(event))})}});targetElements.on("keydown"+EVENT_NAMESPACE,function elementKeyDown(event){if(event.keyCode===27){$.powerTip.hide(this,true)}})}return targetElements};$.fn.powerTip.defaults={fadeInTime:200,fadeOutTime:100,followMouse:false,popupId:"powerTip",popupClass:null,intentSensitivity:7,intentPollInterval:100,closeDelay:100,placement:"n",smartPlacement:false,offset:10,mouseOnToPopup:false,manual:false,openEvents:["mouseenter","focus"],closeEvents:["mouseleave","blur"]};$.fn.powerTip.smartPlacementLists={n:["n","ne","nw","s"],e:["e","ne","se","w","nw","sw","n","s","e"],s:["s","se","sw","n"],w:["w","nw","sw","e","ne","se","n","s","w"],nw:["nw","w","sw","n","s","se","nw"],ne:["ne","e","se","n","s","sw","ne"],sw:["sw","w","nw","s","n","ne","sw"],se:["se","e","ne","s","n","nw","se"],"nw-alt":["nw-alt","n","ne-alt","sw-alt","s","se-alt","w","e"],"ne-alt":["ne-alt","n","nw-alt","se-alt","s","sw-alt","e","w"],"sw-alt":["sw-alt","s","se-alt","nw-alt","n","ne-alt","w","e"],"se-alt":["se-alt","s","sw-alt","ne-alt","n","nw-alt","e","w"]};$.powerTip={show:function apiShowTip(element,event){if(isMouseEvent(event)){trackMouse(event);session.previousX=event.pageX;session.previousY=event.pageY;$(element).data(DATA_DISPLAYCONTROLLER).show()}else{$(element).first().data(DATA_DISPLAYCONTROLLER).show(true,true)}return element},reposition:function apiResetPosition(element){$(element).first().data(DATA_DISPLAYCONTROLLER).resetPosition();return element},hide:function apiCloseTip(element,immediate){var displayController;immediate=element?immediate:true;if(element){displayController=$(element).first().data(DATA_DISPLAYCONTROLLER)}else if(session.activeHover){displayController=session.activeHover.data(DATA_DISPLAYCONTROLLER)}if(displayController){displayController.hide(immediate)}return element},toggle:function apiToggle(element,event){if(session.activeHover&&session.activeHover.is(element)){$.powerTip.hide(element,!isMouseEvent(event))}else{$.powerTip.show(element,event)}return element}};$.powerTip.showTip=$.powerTip.show;$.powerTip.closeTip=$.powerTip.hide;function CSSCoordinates(){var me=this;me.top="auto";me.left="auto";me.right="auto";me.bottom="auto";me.set=function(property,value){if($.isNumeric(value)){me[property]=Math.round(value)}}}function DisplayController(element,options,tipController){var hoverTimer=null,myCloseDelay=null;function openTooltip(immediate,forceOpen){cancelTimer();if(!element.data(DATA_HASACTIVEHOVER)){if(!immediate){session.tipOpenImminent=true;hoverTimer=setTimeout(function intentDelay(){hoverTimer=null;checkForIntent()},options.intentPollInterval)}else{if(forceOpen){element.data(DATA_FORCEDOPEN,true)}closeAnyDelayed();tipController.showTip(element)}}else{cancelClose()}}function closeTooltip(disableDelay){if(myCloseDelay){myCloseDelay=session.closeDelayTimeout=clearTimeout(myCloseDelay);session.delayInProgress=false}cancelTimer();session.tipOpenImminent=false;if(element.data(DATA_HASACTIVEHOVER)){element.data(DATA_FORCEDOPEN,false);if(!disableDelay){session.delayInProgress=true;session.closeDelayTimeout=setTimeout(function closeDelay(){session.closeDelayTimeout=null;tipController.hideTip(element);session.delayInProgress=false;myCloseDelay=null},options.closeDelay);myCloseDelay=session.closeDelayTimeout}else{tipController.hideTip(element)}}}function checkForIntent(){var xDifference=Math.abs(session.previousX-session.currentX),yDifference=Math.abs(session.previousY-session.currentY),totalDifference=xDifference+yDifference;if(totalDifference",{id:options.popupId});if($body.length===0){$body=$("body")}$body.append(tipElement);session.tooltips=session.tooltips?session.tooltips.add(tipElement):tipElement}if(options.followMouse){if(!tipElement.data(DATA_HASMOUSEMOVE)){$document.on("mousemove"+EVENT_NAMESPACE,positionTipOnCursor);$window.on("scroll"+EVENT_NAMESPACE,positionTipOnCursor);tipElement.data(DATA_HASMOUSEMOVE,true)}}function beginShowTip(element){element.data(DATA_HASACTIVEHOVER,true);tipElement.queue(function queueTipInit(next){showTip(element);next()})}function showTip(element){var tipContent;if(!element.data(DATA_HASACTIVEHOVER)){return}if(session.isTipOpen){if(!session.isClosing){hideTip(session.activeHover)}tipElement.delay(100).queue(function queueTipAgain(next){showTip(element);next()});return}element.trigger("powerTipPreRender");tipContent=getTooltipContent(element);if(tipContent){tipElement.empty().append(tipContent)}else{return}element.trigger("powerTipRender");session.activeHover=element;session.isTipOpen=true;tipElement.data(DATA_MOUSEONTOTIP,options.mouseOnToPopup);tipElement.addClass(options.popupClass);if(!options.followMouse||element.data(DATA_FORCEDOPEN)){positionTipOnElement(element);session.isFixedTipOpen=true}else{positionTipOnCursor()}if(!element.data(DATA_FORCEDOPEN)&&!options.followMouse){$document.on("click"+EVENT_NAMESPACE,function documentClick(event){var target=event.target;if(target!==element[0]){if(options.mouseOnToPopup){if(target!==tipElement[0]&&!$.contains(tipElement[0],target)){$.powerTip.hide()}}else{$.powerTip.hide()}}})}if(options.mouseOnToPopup&&!options.manual){tipElement.on("mouseenter"+EVENT_NAMESPACE,function tipMouseEnter(){if(session.activeHover){session.activeHover.data(DATA_DISPLAYCONTROLLER).cancel()}});tipElement.on("mouseleave"+EVENT_NAMESPACE,function tipMouseLeave(){if(session.activeHover){session.activeHover.data(DATA_DISPLAYCONTROLLER).hide()}})}tipElement.fadeIn(options.fadeInTime,function fadeInCallback(){if(!session.desyncTimeout){session.desyncTimeout=setInterval(closeDesyncedTip,500)}element.trigger("powerTipOpen")})}function hideTip(element){session.isClosing=true;session.isTipOpen=false;session.desyncTimeout=clearInterval(session.desyncTimeout);element.data(DATA_HASACTIVEHOVER,false);element.data(DATA_FORCEDOPEN,false);$document.off("click"+EVENT_NAMESPACE);tipElement.off(EVENT_NAMESPACE);tipElement.fadeOut(options.fadeOutTime,function fadeOutCallback(){var coords=new CSSCoordinates;session.activeHover=null;session.isClosing=false;session.isFixedTipOpen=false;tipElement.removeClass();coords.set("top",session.currentY+options.offset);coords.set("left",session.currentX+options.offset);tipElement.css(coords);element.trigger("powerTipClose")})}function positionTipOnCursor(){var tipWidth,tipHeight,coords,collisions,collisionCount;if(!session.isFixedTipOpen&&(session.isTipOpen||session.tipOpenImminent&&tipElement.data(DATA_HASMOUSEMOVE))){tipWidth=tipElement.outerWidth();tipHeight=tipElement.outerHeight();coords=new CSSCoordinates;coords.set("top",session.currentY+options.offset);coords.set("left",session.currentX+options.offset);collisions=getViewportCollisions(coords,tipWidth,tipHeight);if(collisions!==Collision.none){collisionCount=countFlags(collisions);if(collisionCount===1){if(collisions===Collision.right){coords.set("left",session.scrollLeft+session.windowWidth-tipWidth)}else if(collisions===Collision.bottom){coords.set("top",session.scrollTop+session.windowHeight-tipHeight)}}else{coords.set("left",session.currentX-tipWidth-options.offset);coords.set("top",session.currentY-tipHeight-options.offset)}}tipElement.css(coords)}}function positionTipOnElement(element){var priorityList,finalPlacement;if(options.smartPlacement||options.followMouse&&element.data(DATA_FORCEDOPEN)){priorityList=$.fn.powerTip.smartPlacementLists[options.placement];$.each(priorityList,function(idx,pos){var collisions=getViewportCollisions(placeTooltip(element,pos),tipElement.outerWidth(),tipElement.outerHeight());finalPlacement=pos;return collisions!==Collision.none})}else{placeTooltip(element,options.placement);finalPlacement=options.placement}tipElement.removeClass("w nw sw e ne se n s w se-alt sw-alt ne-alt nw-alt");tipElement.addClass(finalPlacement)}function placeTooltip(element,placement){var iterationCount=0,tipWidth,tipHeight,coords=new CSSCoordinates;coords.set("top",0);coords.set("left",0);tipElement.css(coords);do{tipWidth=tipElement.outerWidth();tipHeight=tipElement.outerHeight();coords=placementCalculator.compute(element,placement,tipWidth,tipHeight,options.offset);tipElement.css(coords)}while(++iterationCount<=5&&(tipWidth!==tipElement.outerWidth()||tipHeight!==tipElement.outerHeight()));return coords}function closeDesyncedTip(){var isDesynced=false,hasDesyncableCloseEvent=$.grep(["mouseleave","mouseout","blur","focusout"],function(eventType){return $.inArray(eventType,options.closeEvents)!==-1}).length>0;if(session.isTipOpen&&!session.isClosing&&!session.delayInProgress&&hasDesyncableCloseEvent){if(session.activeHover.data(DATA_HASACTIVEHOVER)===false||session.activeHover.is(":disabled")){isDesynced=true}else if(!isMouseOver(session.activeHover)&&!session.activeHover.is(":focus")&&!session.activeHover.data(DATA_FORCEDOPEN)){if(tipElement.data(DATA_MOUSEONTOTIP)){if(!isMouseOver(tipElement)){isDesynced=true}}else{isDesynced=true}}if(isDesynced){hideTip(session.activeHover)}}}this.showTip=beginShowTip;this.hideTip=hideTip;this.resetPosition=positionTipOnElement}function isSvgElement(element){return Boolean(window.SVGElement&&element[0]instanceof SVGElement)}function isMouseEvent(event){return Boolean(event&&$.inArray(event.type,MOUSE_EVENTS)>-1&&typeof event.pageX==="number")}function initTracking(){if(!session.mouseTrackingActive){session.mouseTrackingActive=true;getViewportDimensions();$(getViewportDimensions);$document.on("mousemove"+EVENT_NAMESPACE,trackMouse);$window.on("resize"+EVENT_NAMESPACE,trackResize);$window.on("scroll"+EVENT_NAMESPACE,trackScroll)}}function getViewportDimensions(){session.scrollLeft=$window.scrollLeft();session.scrollTop=$window.scrollTop();session.windowWidth=$window.width();session.windowHeight=$window.height()}function trackResize(){session.windowWidth=$window.width();session.windowHeight=$window.height()}function trackScroll(){var x=$window.scrollLeft(),y=$window.scrollTop();if(x!==session.scrollLeft){session.currentX+=x-session.scrollLeft;session.scrollLeft=x}if(y!==session.scrollTop){session.currentY+=y-session.scrollTop;session.scrollTop=y}}function trackMouse(event){session.currentX=event.pageX;session.currentY=event.pageY}function isMouseOver(element){var elementPosition=element.offset(),elementBox=element[0].getBoundingClientRect(),elementWidth=elementBox.right-elementBox.left,elementHeight=elementBox.bottom-elementBox.top;return session.currentX>=elementPosition.left&&session.currentX<=elementPosition.left+elementWidth&&session.currentY>=elementPosition.top&&session.currentY<=elementPosition.top+elementHeight}function getTooltipContent(element){var tipText=element.data(DATA_POWERTIP),tipObject=element.data(DATA_POWERTIPJQ),tipTarget=element.data(DATA_POWERTIPTARGET),targetElement,content;if(tipText){if($.isFunction(tipText)){tipText=tipText.call(element[0])}content=tipText}else if(tipObject){if($.isFunction(tipObject)){tipObject=tipObject.call(element[0])}if(tipObject.length>0){content=tipObject.clone(true,true)}}else if(tipTarget){targetElement=$("#"+tipTarget);if(targetElement.length>0){content=targetElement.html()}}return content}function getViewportCollisions(coords,elementWidth,elementHeight){var viewportTop=session.scrollTop,viewportLeft=session.scrollLeft,viewportBottom=viewportTop+session.windowHeight,viewportRight=viewportLeft+session.windowWidth,collisions=Collision.none;if(coords.topviewportBottom||Math.abs(coords.bottom-session.windowHeight)>viewportBottom){collisions|=Collision.bottom}if(coords.leftviewportRight){collisions|=Collision.left}if(coords.left+elementWidth>viewportRight||coords.right1)){a.preventDefault();var c=a.originalEvent.changedTouches[0],d=document.createEvent("MouseEvents");d.initMouseEvent(b,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(d)}}if(a.support.touch="ontouchend"in document,a.support.touch){var e,b=a.ui.mouse.prototype,c=b._mouseInit,d=b._mouseDestroy;b._touchStart=function(a){var b=this;!e&&b._mouseCapture(a.originalEvent.changedTouches[0])&&(e=!0,b._touchMoved=!1,f(a,"mouseover"),f(a,"mousemove"),f(a,"mousedown"))},b._touchMove=function(a){e&&(this._touchMoved=!0,f(a,"mousemove"))},b._touchEnd=function(a){e&&(f(a,"mouseup"),f(a,"mouseout"),this._touchMoved||f(a,"click"),e=!1)},b._mouseInit=function(){var b=this;b.element.bind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),c.call(b)},b._mouseDestroy=function(){var b=this;b.element.unbind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),d.call(b)}}}(jQuery);/*! SmartMenus jQuery Plugin - v1.1.0 - September 17, 2017 * http://www.smartmenus.org/ * Copyright Vasil Dinkov, Vadikom Web Ltd. http://vadikom.com; Licensed MIT */(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(require("jquery")):t(jQuery)})(function($){function initMouseDetection(t){var e=".smartmenus_mouse";if(mouseDetectionEnabled||t)mouseDetectionEnabled&&t&&($(document).off(e),mouseDetectionEnabled=!1);else{var i=!0,s=null,o={mousemove:function(t){var e={x:t.pageX,y:t.pageY,timeStamp:(new Date).getTime()};if(s){var o=Math.abs(s.x-e.x),a=Math.abs(s.y-e.y);if((o>0||a>0)&&2>=o&&2>=a&&300>=e.timeStamp-s.timeStamp&&(mouse=!0,i)){var n=$(t.target).closest("a");n.is("a")&&$.each(menuTrees,function(){return $.contains(this.$root[0],n[0])?(this.itemEnter({currentTarget:n[0]}),!1):void 0}),i=!1}}s=e}};o[touchEvents?"touchstart":"pointerover pointermove pointerout MSPointerOver MSPointerMove MSPointerOut"]=function(t){isTouchEvent(t.originalEvent)&&(mouse=!1)},$(document).on(getEventsNS(o,e)),mouseDetectionEnabled=!0}}function isTouchEvent(t){return!/^(4|mouse)$/.test(t.pointerType)}function getEventsNS(t,e){e||(e="");var i={};for(var s in t)i[s.split(" ").join(e+" ")+e]=t[s];return i}var menuTrees=[],mouse=!1,touchEvents="ontouchstart"in window,mouseDetectionEnabled=!1,requestAnimationFrame=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},cancelAnimationFrame=window.cancelAnimationFrame||function(t){clearTimeout(t)},canAnimate=!!$.fn.animate;return $.SmartMenus=function(t,e){this.$root=$(t),this.opts=e,this.rootId="",this.accessIdPrefix="",this.$subArrow=null,this.activatedItems=[],this.visibleSubMenus=[],this.showTimeout=0,this.hideTimeout=0,this.scrollTimeout=0,this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.idInc=0,this.$firstLink=null,this.$firstSub=null,this.disabled=!1,this.$disableOverlay=null,this.$touchScrollingSub=null,this.cssTransforms3d="perspective"in t.style||"webkitPerspective"in t.style,this.wasCollapsible=!1,this.init()},$.extend($.SmartMenus,{hideAll:function(){$.each(menuTrees,function(){this.menuHideAll()})},destroy:function(){for(;menuTrees.length;)menuTrees[0].destroy();initMouseDetection(!0)},prototype:{init:function(t){var e=this;if(!t){menuTrees.push(this),this.rootId=((new Date).getTime()+Math.random()+"").replace(/\D/g,""),this.accessIdPrefix="sm-"+this.rootId+"-",this.$root.hasClass("sm-rtl")&&(this.opts.rightToLeftSubMenus=!0);var i=".smartmenus";this.$root.data("smartmenus",this).attr("data-smartmenus-id",this.rootId).dataSM("level",1).on(getEventsNS({"mouseover focusin":$.proxy(this.rootOver,this),"mouseout focusout":$.proxy(this.rootOut,this),keydown:$.proxy(this.rootKeyDown,this)},i)).on(getEventsNS({mouseenter:$.proxy(this.itemEnter,this),mouseleave:$.proxy(this.itemLeave,this),mousedown:$.proxy(this.itemDown,this),focus:$.proxy(this.itemFocus,this),blur:$.proxy(this.itemBlur,this),click:$.proxy(this.itemClick,this)},i),"a"),i+=this.rootId,this.opts.hideOnClick&&$(document).on(getEventsNS({touchstart:$.proxy(this.docTouchStart,this),touchmove:$.proxy(this.docTouchMove,this),touchend:$.proxy(this.docTouchEnd,this),click:$.proxy(this.docClick,this)},i)),$(window).on(getEventsNS({"resize orientationchange":$.proxy(this.winResize,this)},i)),this.opts.subIndicators&&(this.$subArrow=$("").addClass("sub-arrow"),this.opts.subIndicatorsText&&this.$subArrow.html(this.opts.subIndicatorsText)),initMouseDetection()}if(this.$firstSub=this.$root.find("ul").each(function(){e.menuInit($(this))}).eq(0),this.$firstLink=this.$root.find("a").eq(0),this.opts.markCurrentItem){var s=/(index|default)\.[^#\?\/]*/i,o=/#.*/,a=window.location.href.replace(s,""),n=a.replace(o,"");this.$root.find("a").each(function(){var t=this.href.replace(s,""),i=$(this);(t==a||t==n)&&(i.addClass("current"),e.opts.markCurrentTree&&i.parentsUntil("[data-smartmenus-id]","ul").each(function(){$(this).dataSM("parent-a").addClass("current")}))})}this.wasCollapsible=this.isCollapsible()},destroy:function(t){if(!t){var e=".smartmenus";this.$root.removeData("smartmenus").removeAttr("data-smartmenus-id").removeDataSM("level").off(e),e+=this.rootId,$(document).off(e),$(window).off(e),this.opts.subIndicators&&(this.$subArrow=null)}this.menuHideAll();var i=this;this.$root.find("ul").each(function(){var t=$(this);t.dataSM("scroll-arrows")&&t.dataSM("scroll-arrows").remove(),t.dataSM("shown-before")&&((i.opts.subMenusMinWidth||i.opts.subMenusMaxWidth)&&t.css({width:"",minWidth:"",maxWidth:""}).removeClass("sm-nowrap"),t.dataSM("scroll-arrows")&&t.dataSM("scroll-arrows").remove(),t.css({zIndex:"",top:"",left:"",marginLeft:"",marginTop:"",display:""})),0==(t.attr("id")||"").indexOf(i.accessIdPrefix)&&t.removeAttr("id")}).removeDataSM("in-mega").removeDataSM("shown-before").removeDataSM("scroll-arrows").removeDataSM("parent-a").removeDataSM("level").removeDataSM("beforefirstshowfired").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeAttr("aria-expanded"),this.$root.find("a.has-submenu").each(function(){var t=$(this);0==t.attr("id").indexOf(i.accessIdPrefix)&&t.removeAttr("id")}).removeClass("has-submenu").removeDataSM("sub").removeAttr("aria-haspopup").removeAttr("aria-controls").removeAttr("aria-expanded").closest("li").removeDataSM("sub"),this.opts.subIndicators&&this.$root.find("span.sub-arrow").remove(),this.opts.markCurrentItem&&this.$root.find("a.current").removeClass("current"),t||(this.$root=null,this.$firstLink=null,this.$firstSub=null,this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),menuTrees.splice($.inArray(this,menuTrees),1))},disable:function(t){if(!this.disabled){if(this.menuHideAll(),!t&&!this.opts.isPopup&&this.$root.is(":visible")){var e=this.$root.offset();this.$disableOverlay=$('
').css({position:"absolute",top:e.top,left:e.left,width:this.$root.outerWidth(),height:this.$root.outerHeight(),zIndex:this.getStartZIndex(!0),opacity:0}).appendTo(document.body)}this.disabled=!0}},docClick:function(t){return this.$touchScrollingSub?(this.$touchScrollingSub=null,void 0):((this.visibleSubMenus.length&&!$.contains(this.$root[0],t.target)||$(t.target).closest("a").length)&&this.menuHideAll(),void 0)},docTouchEnd:function(){if(this.lastTouch){if(!(!this.visibleSubMenus.length||void 0!==this.lastTouch.x2&&this.lastTouch.x1!=this.lastTouch.x2||void 0!==this.lastTouch.y2&&this.lastTouch.y1!=this.lastTouch.y2||this.lastTouch.target&&$.contains(this.$root[0],this.lastTouch.target))){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var t=this;this.hideTimeout=setTimeout(function(){t.menuHideAll()},350)}this.lastTouch=null}},docTouchMove:function(t){if(this.lastTouch){var e=t.originalEvent.touches[0];this.lastTouch.x2=e.pageX,this.lastTouch.y2=e.pageY}},docTouchStart:function(t){var e=t.originalEvent.touches[0];this.lastTouch={x1:e.pageX,y1:e.pageY,target:e.target}},enable:function(){this.disabled&&(this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),this.disabled=!1)},getClosestMenu:function(t){for(var e=$(t).closest("ul");e.dataSM("in-mega");)e=e.parent().closest("ul");return e[0]||null},getHeight:function(t){return this.getOffset(t,!0)},getOffset:function(t,e){var i;"none"==t.css("display")&&(i={position:t[0].style.position,visibility:t[0].style.visibility},t.css({position:"absolute",visibility:"hidden"}).show());var s=t[0].getBoundingClientRect&&t[0].getBoundingClientRect(),o=s&&(e?s.height||s.bottom-s.top:s.width||s.right-s.left);return o||0===o||(o=e?t[0].offsetHeight:t[0].offsetWidth),i&&t.hide().css(i),o},getStartZIndex:function(t){var e=parseInt(this[t?"$root":"$firstSub"].css("z-index"));return!t&&isNaN(e)&&(e=parseInt(this.$root.css("z-index"))),isNaN(e)?1:e},getTouchPoint:function(t){return t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0]||t},getViewport:function(t){var e=t?"Height":"Width",i=document.documentElement["client"+e],s=window["inner"+e];return s&&(i=Math.min(i,s)),i},getViewportHeight:function(){return this.getViewport(!0)},getViewportWidth:function(){return this.getViewport()},getWidth:function(t){return this.getOffset(t)},handleEvents:function(){return!this.disabled&&this.isCSSOn()},handleItemEvents:function(t){return this.handleEvents()&&!this.isLinkInMegaMenu(t)},isCollapsible:function(){return"static"==this.$firstSub.css("position")},isCSSOn:function(){return"inline"!=this.$firstLink.css("display")},isFixed:function(){var t="fixed"==this.$root.css("position");return t||this.$root.parentsUntil("body").each(function(){return"fixed"==$(this).css("position")?(t=!0,!1):void 0}),t},isLinkInMegaMenu:function(t){return $(this.getClosestMenu(t[0])).hasClass("mega-menu")},isTouchMode:function(){return!mouse||this.opts.noMouseOver||this.isCollapsible()},itemActivate:function(t,e){var i=t.closest("ul"),s=i.dataSM("level");if(s>1&&(!this.activatedItems[s-2]||this.activatedItems[s-2][0]!=i.dataSM("parent-a")[0])){var o=this;$(i.parentsUntil("[data-smartmenus-id]","ul").get().reverse()).add(i).each(function(){o.itemActivate($(this).dataSM("parent-a"))})}if((!this.isCollapsible()||e)&&this.menuHideSubMenus(this.activatedItems[s-1]&&this.activatedItems[s-1][0]==t[0]?s:s-1),this.activatedItems[s-1]=t,this.$root.triggerHandler("activate.smapi",t[0])!==!1){var a=t.dataSM("sub");a&&(this.isTouchMode()||!this.opts.showOnClick||this.clickActivated)&&this.menuShow(a)}},itemBlur:function(t){var e=$(t.currentTarget);this.handleItemEvents(e)&&this.$root.triggerHandler("blur.smapi",e[0])},itemClick:function(t){var e=$(t.currentTarget);if(this.handleItemEvents(e)){if(this.$touchScrollingSub&&this.$touchScrollingSub[0]==e.closest("ul")[0])return this.$touchScrollingSub=null,t.stopPropagation(),!1;if(this.$root.triggerHandler("click.smapi",e[0])===!1)return!1;var i=$(t.target).is(".sub-arrow"),s=e.dataSM("sub"),o=s?2==s.dataSM("level"):!1,a=this.isCollapsible(),n=/toggle$/.test(this.opts.collapsibleBehavior),r=/link$/.test(this.opts.collapsibleBehavior),h=/^accordion/.test(this.opts.collapsibleBehavior);if(s&&!s.is(":visible")){if((!r||!a||i)&&(this.opts.showOnClick&&o&&(this.clickActivated=!0),this.itemActivate(e,h),s.is(":visible")))return this.focusActivated=!0,!1}else if(a&&(n||i))return this.itemActivate(e,h),this.menuHide(s),n&&(this.focusActivated=!1),!1;return this.opts.showOnClick&&o||e.hasClass("disabled")||this.$root.triggerHandler("select.smapi",e[0])===!1?!1:void 0}},itemDown:function(t){var e=$(t.currentTarget);this.handleItemEvents(e)&&e.dataSM("mousedown",!0)},itemEnter:function(t){var e=$(t.currentTarget);if(this.handleItemEvents(e)){if(!this.isTouchMode()){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);var i=this;this.showTimeout=setTimeout(function(){i.itemActivate(e)},this.opts.showOnClick&&1==e.closest("ul").dataSM("level")?1:this.opts.showTimeout)}this.$root.triggerHandler("mouseenter.smapi",e[0])}},itemFocus:function(t){var e=$(t.currentTarget);this.handleItemEvents(e)&&(!this.focusActivated||this.isTouchMode()&&e.dataSM("mousedown")||this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0]==e[0]||this.itemActivate(e,!0),this.$root.triggerHandler("focus.smapi",e[0]))},itemLeave:function(t){var e=$(t.currentTarget);this.handleItemEvents(e)&&(this.isTouchMode()||(e[0].blur(),this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0)),e.removeDataSM("mousedown"),this.$root.triggerHandler("mouseleave.smapi",e[0]))},menuHide:function(t){if(this.$root.triggerHandler("beforehide.smapi",t[0])!==!1&&(canAnimate&&t.stop(!0,!0),"none"!=t.css("display"))){var e=function(){t.css("z-index","")};this.isCollapsible()?canAnimate&&this.opts.collapsibleHideFunction?this.opts.collapsibleHideFunction.call(this,t,e):t.hide(this.opts.collapsibleHideDuration,e):canAnimate&&this.opts.hideFunction?this.opts.hideFunction.call(this,t,e):t.hide(this.opts.hideDuration,e),t.dataSM("scroll")&&(this.menuScrollStop(t),t.css({"touch-action":"","-ms-touch-action":"","-webkit-transform":"",transform:""}).off(".smartmenus_scroll").removeDataSM("scroll").dataSM("scroll-arrows").hide()),t.dataSM("parent-a").removeClass("highlighted").attr("aria-expanded","false"),t.attr({"aria-expanded":"false","aria-hidden":"true"});var i=t.dataSM("level");this.activatedItems.splice(i-1,1),this.visibleSubMenus.splice($.inArray(t,this.visibleSubMenus),1),this.$root.triggerHandler("hide.smapi",t[0])}},menuHideAll:function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);for(var t=this.opts.isPopup?1:0,e=this.visibleSubMenus.length-1;e>=t;e--)this.menuHide(this.visibleSubMenus[e]);this.opts.isPopup&&(canAnimate&&this.$root.stop(!0,!0),this.$root.is(":visible")&&(canAnimate&&this.opts.hideFunction?this.opts.hideFunction.call(this,this.$root):this.$root.hide(this.opts.hideDuration))),this.activatedItems=[],this.visibleSubMenus=[],this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.$root.triggerHandler("hideAll.smapi")},menuHideSubMenus:function(t){for(var e=this.activatedItems.length-1;e>=t;e--){var i=this.activatedItems[e].dataSM("sub");i&&this.menuHide(i)}},menuInit:function(t){if(!t.dataSM("in-mega")){t.hasClass("mega-menu")&&t.find("ul").dataSM("in-mega",!0);for(var e=2,i=t[0];(i=i.parentNode.parentNode)!=this.$root[0];)e++;var s=t.prevAll("a").eq(-1);s.length||(s=t.prevAll().find("a").eq(-1)),s.addClass("has-submenu").dataSM("sub",t),t.dataSM("parent-a",s).dataSM("level",e).parent().dataSM("sub",t);var o=s.attr("id")||this.accessIdPrefix+ ++this.idInc,a=t.attr("id")||this.accessIdPrefix+ ++this.idInc;s.attr({id:o,"aria-haspopup":"true","aria-controls":a,"aria-expanded":"false"}),t.attr({id:a,role:"group","aria-hidden":"true","aria-labelledby":o,"aria-expanded":"false"}),this.opts.subIndicators&&s[this.opts.subIndicatorsPos](this.$subArrow.clone())}},menuPosition:function(t){var e,i,s=t.dataSM("parent-a"),o=s.closest("li"),a=o.parent(),n=t.dataSM("level"),r=this.getWidth(t),h=this.getHeight(t),u=s.offset(),l=u.left,c=u.top,d=this.getWidth(s),m=this.getHeight(s),p=$(window),f=p.scrollLeft(),v=p.scrollTop(),b=this.getViewportWidth(),S=this.getViewportHeight(),g=a.parent().is("[data-sm-horizontal-sub]")||2==n&&!a.hasClass("sm-vertical"),M=this.opts.rightToLeftSubMenus&&!o.is("[data-sm-reverse]")||!this.opts.rightToLeftSubMenus&&o.is("[data-sm-reverse]"),w=2==n?this.opts.mainMenuSubOffsetX:this.opts.subMenusSubOffsetX,T=2==n?this.opts.mainMenuSubOffsetY:this.opts.subMenusSubOffsetY;if(g?(e=M?d-r-w:w,i=this.opts.bottomToTopSubMenus?-h-T:m+T):(e=M?w-r:d-w,i=this.opts.bottomToTopSubMenus?m-T-h:T),this.opts.keepInViewport){var y=l+e,I=c+i;if(M&&f>y?e=g?f-y+e:d-w:!M&&y+r>f+b&&(e=g?f+b-r-y+e:w-r),g||(S>h&&I+h>v+S?i+=v+S-h-I:(h>=S||v>I)&&(i+=v-I)),g&&(I+h>v+S+.49||v>I)||!g&&h>S+.49){var x=this;t.dataSM("scroll-arrows")||t.dataSM("scroll-arrows",$([$('')[0],$('')[0]]).on({mouseenter:function(){t.dataSM("scroll").up=$(this).hasClass("scroll-up"),x.menuScroll(t)},mouseleave:function(e){x.menuScrollStop(t),x.menuScrollOut(t,e)},"mousewheel DOMMouseScroll":function(t){t.preventDefault()}}).insertAfter(t));var A=".smartmenus_scroll";if(t.dataSM("scroll",{y:this.cssTransforms3d?0:i-m,step:1,itemH:m,subH:h,arrowDownH:this.getHeight(t.dataSM("scroll-arrows").eq(1))}).on(getEventsNS({mouseover:function(e){x.menuScrollOver(t,e)},mouseout:function(e){x.menuScrollOut(t,e)},"mousewheel DOMMouseScroll":function(e){x.menuScrollMousewheel(t,e)}},A)).dataSM("scroll-arrows").css({top:"auto",left:"0",marginLeft:e+(parseInt(t.css("border-left-width"))||0),width:r-(parseInt(t.css("border-left-width"))||0)-(parseInt(t.css("border-right-width"))||0),zIndex:t.css("z-index")}).eq(g&&this.opts.bottomToTopSubMenus?0:1).show(),this.isFixed()){var C={};C[touchEvents?"touchstart touchmove touchend":"pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp"]=function(e){x.menuScrollTouch(t,e)},t.css({"touch-action":"none","-ms-touch-action":"none"}).on(getEventsNS(C,A))}}}t.css({top:"auto",left:"0",marginLeft:e,marginTop:i-m})},menuScroll:function(t,e,i){var s,o=t.dataSM("scroll"),a=t.dataSM("scroll-arrows"),n=o.up?o.upEnd:o.downEnd;if(!e&&o.momentum){if(o.momentum*=.92,s=o.momentum,.5>s)return this.menuScrollStop(t),void 0}else s=i||(e||!this.opts.scrollAccelerate?this.opts.scrollStep:Math.floor(o.step));var r=t.dataSM("level");if(this.activatedItems[r-1]&&this.activatedItems[r-1].dataSM("sub")&&this.activatedItems[r-1].dataSM("sub").is(":visible")&&this.menuHideSubMenus(r-1),o.y=o.up&&o.y>=n||!o.up&&n>=o.y?o.y:Math.abs(n-o.y)>s?o.y+(o.up?s:-s):n,t.css(this.cssTransforms3d?{"-webkit-transform":"translate3d(0, "+o.y+"px, 0)",transform:"translate3d(0, "+o.y+"px, 0)"}:{marginTop:o.y}),mouse&&(o.up&&o.y>o.downEnd||!o.up&&o.y0;t.dataSM("scroll-arrows").eq(i?0:1).is(":visible")&&(t.dataSM("scroll").up=i,this.menuScroll(t,!0))}e.preventDefault()},menuScrollOut:function(t,e){mouse&&(/^scroll-(up|down)/.test((e.relatedTarget||"").className)||(t[0]==e.relatedTarget||$.contains(t[0],e.relatedTarget))&&this.getClosestMenu(e.relatedTarget)==t[0]||t.dataSM("scroll-arrows").css("visibility","hidden"))},menuScrollOver:function(t,e){if(mouse&&!/^scroll-(up|down)/.test(e.target.className)&&this.getClosestMenu(e.target)==t[0]){this.menuScrollRefreshData(t);var i=t.dataSM("scroll"),s=$(window).scrollTop()-t.dataSM("parent-a").offset().top-i.itemH;t.dataSM("scroll-arrows").eq(0).css("margin-top",s).end().eq(1).css("margin-top",s+this.getViewportHeight()-i.arrowDownH).end().css("visibility","visible")}},menuScrollRefreshData:function(t){var e=t.dataSM("scroll"),i=$(window).scrollTop()-t.dataSM("parent-a").offset().top-e.itemH;this.cssTransforms3d&&(i=-(parseFloat(t.css("margin-top"))-i)),$.extend(e,{upEnd:i,downEnd:i+this.getViewportHeight()-e.subH})},menuScrollStop:function(t){return this.scrollTimeout?(cancelAnimationFrame(this.scrollTimeout),this.scrollTimeout=0,t.dataSM("scroll").step=1,!0):void 0},menuScrollTouch:function(t,e){if(e=e.originalEvent,isTouchEvent(e)){var i=this.getTouchPoint(e);if(this.getClosestMenu(i.target)==t[0]){var s=t.dataSM("scroll");if(/(start|down)$/i.test(e.type))this.menuScrollStop(t)?(e.preventDefault(),this.$touchScrollingSub=t):this.$touchScrollingSub=null,this.menuScrollRefreshData(t),$.extend(s,{touchStartY:i.pageY,touchStartTime:e.timeStamp});else if(/move$/i.test(e.type)){var o=void 0!==s.touchY?s.touchY:s.touchStartY;if(void 0!==o&&o!=i.pageY){this.$touchScrollingSub=t;var a=i.pageY>o;void 0!==s.up&&s.up!=a&&$.extend(s,{touchStartY:i.pageY,touchStartTime:e.timeStamp}),$.extend(s,{up:a,touchY:i.pageY}),this.menuScroll(t,!0,Math.abs(i.pageY-o))}e.preventDefault()}else void 0!==s.touchY&&((s.momentum=15*Math.pow(Math.abs(i.pageY-s.touchStartY)/(e.timeStamp-s.touchStartTime),2))&&(this.menuScrollStop(t),this.menuScroll(t),e.preventDefault()),delete s.touchY)}}},menuShow:function(t){if((t.dataSM("beforefirstshowfired")||(t.dataSM("beforefirstshowfired",!0),this.$root.triggerHandler("beforefirstshow.smapi",t[0])!==!1))&&this.$root.triggerHandler("beforeshow.smapi",t[0])!==!1&&(t.dataSM("shown-before",!0),canAnimate&&t.stop(!0,!0),!t.is(":visible"))){var e=t.dataSM("parent-a"),i=this.isCollapsible();if((this.opts.keepHighlighted||i)&&e.addClass("highlighted"),i)t.removeClass("sm-nowrap").css({zIndex:"",width:"auto",minWidth:"",maxWidth:"",top:"",left:"",marginLeft:"",marginTop:""});else{if(t.css("z-index",this.zIndexInc=(this.zIndexInc||this.getStartZIndex())+1),(this.opts.subMenusMinWidth||this.opts.subMenusMaxWidth)&&(t.css({width:"auto",minWidth:"",maxWidth:""}).addClass("sm-nowrap"),this.opts.subMenusMinWidth&&t.css("min-width",this.opts.subMenusMinWidth),this.opts.subMenusMaxWidth)){var s=this.getWidth(t);t.css("max-width",this.opts.subMenusMaxWidth),s>this.getWidth(t)&&t.removeClass("sm-nowrap").css("width",this.opts.subMenusMaxWidth)}this.menuPosition(t)}var o=function(){t.css("overflow","")};i?canAnimate&&this.opts.collapsibleShowFunction?this.opts.collapsibleShowFunction.call(this,t,o):t.show(this.opts.collapsibleShowDuration,o):canAnimate&&this.opts.showFunction?this.opts.showFunction.call(this,t,o):t.show(this.opts.showDuration,o),e.attr("aria-expanded","true"),t.attr({"aria-expanded":"true","aria-hidden":"false"}),this.visibleSubMenus.push(t),this.$root.triggerHandler("show.smapi",t[0])}},popupHide:function(t){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var e=this;this.hideTimeout=setTimeout(function(){e.menuHideAll()},t?1:this.opts.hideTimeout)},popupShow:function(t,e){if(!this.opts.isPopup)return alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.'),void 0;if(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),this.$root.dataSM("shown-before",!0),canAnimate&&this.$root.stop(!0,!0),!this.$root.is(":visible")){this.$root.css({left:t,top:e});var i=this,s=function(){i.$root.css("overflow","")};canAnimate&&this.opts.showFunction?this.opts.showFunction.call(this,this.$root,s):this.$root.show(this.opts.showDuration,s),this.visibleSubMenus[0]=this.$root}},refresh:function(){this.destroy(!0),this.init(!0)},rootKeyDown:function(t){if(this.handleEvents())switch(t.keyCode){case 27:var e=this.activatedItems[0];if(e){this.menuHideAll(),e[0].focus();var i=e.dataSM("sub");i&&this.menuHide(i)}break;case 32:var s=$(t.target);if(s.is("a")&&this.handleItemEvents(s)){var i=s.dataSM("sub");i&&!i.is(":visible")&&(this.itemClick({currentTarget:t.target}),t.preventDefault())}}},rootOut:function(t){if(this.handleEvents()&&!this.isTouchMode()&&t.target!=this.$root[0]&&(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),!this.opts.showOnClick||!this.opts.hideOnClick)){var e=this;this.hideTimeout=setTimeout(function(){e.menuHideAll()},this.opts.hideTimeout)}},rootOver:function(t){this.handleEvents()&&!this.isTouchMode()&&t.target!=this.$root[0]&&this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0)},winResize:function(t){if(this.handleEvents()){if(!("onorientationchange"in window)||"orientationchange"==t.type){var e=this.isCollapsible();this.wasCollapsible&&e||(this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0].blur(),this.menuHideAll()),this.wasCollapsible=e}}else if(this.$disableOverlay){var i=this.$root.offset();this.$disableOverlay.css({top:i.top,left:i.left,width:this.$root.outerWidth(),height:this.$root.outerHeight()})}}}}),$.fn.dataSM=function(t,e){return e?this.data(t+"_smartmenus",e):this.data(t+"_smartmenus")},$.fn.removeDataSM=function(t){return this.removeData(t+"_smartmenus")},$.fn.smartmenus=function(options){if("string"==typeof options){var args=arguments,method=options;return Array.prototype.shift.call(args),this.each(function(){var t=$(this).data("smartmenus");t&&t[method]&&t[method].apply(t,args)})}return this.each(function(){var dataOpts=$(this).data("sm-options")||null;if(dataOpts)try{dataOpts=eval("("+dataOpts+")")}catch(e){dataOpts=null,alert('ERROR\n\nSmartMenus jQuery init:\nInvalid "data-sm-options" attribute value syntax.')}new $.SmartMenus(this,$.extend({},$.fn.smartmenus.defaults,options,dataOpts))})},$.fn.smartmenus.defaults={isPopup:!1,mainMenuSubOffsetX:0,mainMenuSubOffsetY:0,subMenusSubOffsetX:0,subMenusSubOffsetY:0,subMenusMinWidth:"10em",subMenusMaxWidth:"20em",subIndicators:!0,subIndicatorsPos:"append",subIndicatorsText:"",scrollStep:30,scrollAccelerate:!0,showTimeout:250,hideTimeout:500,showDuration:0,showFunction:null,hideDuration:0,hideFunction:function(t,e){t.fadeOut(200,e)},collapsibleShowDuration:0,collapsibleShowFunction:function(t,e){t.slideDown(200,e)},collapsibleHideDuration:0,collapsibleHideFunction:function(t,e){t.slideUp(200,e)},showOnClick:!1,hideOnClick:!0,noMouseOver:!1,keepInViewport:!0,keepHighlighted:!0,markCurrentItem:!1,markCurrentTree:!0,rightToLeftSubMenus:!1,bottomToTopSubMenus:!1,collapsibleBehavior:"default"},$});libzdb-3.4.0/doc/api-docs/ResultSet_8h.html000644 000765 000024 00000215414 14652557242 020565 0ustar00haukstaff000000 000000 ResultSet.h File Reference ⬅
ResultSet.h File Reference

Detailed Description

A ResultSet represents a database result set.

A ResultSet is created by executing a SQL SELECT statement using either Connection_executeQuery() or PreparedStatement_executeQuery().

A ResultSet maintains a cursor pointing to its current row of data. Initially, the cursor is positioned before the first row. ResultSet_next() moves the cursor to the next row, and because it returns false when there are no more rows, it can be used in a while loop to iterate through the result set. A ResultSet is not updatable and has a cursor that moves forward only. Thus, you can iterate through it only once and only from the first row to the last row.

The ResultSet interface provides getter methods for retrieving column values from the current row. Values can be retrieved using either the index number of the column or the name of the column. In general, using the column index will be more efficient. Columns are numbered from 1.

Column names used as input to getter methods are case sensitive. When a getter method is called with a column name and several columns have the same name, the value of the first matching column will be returned. The column name option is designed to be used when column names are used in the SQL query that generated the result set. For columns that are NOT explicitly named in the query, it is best to use column indices.

Examples

The following examples demonstrate how to obtain a ResultSet and how to retrieve values from it.

Example: Using column names

In this example, columns are named in the SELECT statement, and we retrieve values using the column names (we could of course also use indices if we want):

ResultSet_T r = Connection_executeQuery(con, "SELECT ssn, name, photo FROM employees");
while (ResultSet_next(r))
{
int ssn = ResultSet_getIntByName(r, "ssn");
const char *name = ResultSet_getStringByName(r, "name");
int photoSize;
const void *photo = ResultSet_getBlobByName(r, "photo", &photoSize);
if (photoSize > 0)
{
// Process photo data
}
// Process other data...
}
ResultSet_T Connection_executeQuery(T C, const char *sql,...)
Executes a SQL query and returns a ResultSet.
const void * ResultSet_getBlobByName(T R, const char *columnName, int *size)
Gets the designated column's value as a void pointer.
int ResultSet_getIntByName(T R, const char *columnName)
Gets the designated column's value as an int.
bool ResultSet_next(T R)
Moves the cursor to the next row.
const char * ResultSet_getStringByName(T R, const char *columnName)
Gets the designated column's value as a C-string.

Example: Using column indices

This example demonstrates selecting a generated result and printing it. When the SELECT statement doesn't name the column, we use the column index to retrieve the value:

ResultSet_T r = Connection_executeQuery(con, "SELECT COUNT(*) FROM employees");
{
const char *count = ResultSet_getString(r, 1);
printf("Number of employees: %s\n", valueOr(count, "none"));
}
else
{
printf("No results returned\n");
}
const char * ResultSet_getString(T R, int columnIndex)
Gets the designated column's value as a C-string.
#define valueOr(expr, default_value)
Definition zdb.h:107

Automatic type conversions

A ResultSet stores values internally as bytes and converts values on-the-fly to numeric types when requested, such as when ResultSet_getInt() or one of the other numeric get-methods are called. In the above example, even if count(*) returns a numeric value, we can use ResultSet_getString() to get the number as a string or if we choose, we can use ResultSet_getInt() to get the value as an integer. In the latter case, note that if the column value cannot be converted to a number, an SQLException is thrown.

Date and Time

ResultSet provides two principal methods for retrieving temporal column values as C types. ResultSet_getTimestamp() converts a SQL timestamp value to a time_t and ResultSet_getDateTime() returns a tm structure representing a Date, Time, DateTime, or Timestamp column type. To get a temporal column value as a string, simply use ResultSet_getString()

A ResultSet is reentrant, but not thread-safe and should only be used by one thread (at a time).

Note
Remember that column indices in ResultSet are 1-based, not 0-based.
See also
Connection.h PreparedStatement.h SQLException.h

Macros

#define T   ResultSet_T
 

Typedefs

typedef struct ResultSet_S * T
 

Functions

Properties
int ResultSet_getColumnCount (T R)
 Gets the number of columns in this ResultSet.
 
const char * ResultSet_getColumnName (T R, int columnIndex)
 Gets the designated column's name.
 
long ResultSet_getColumnSize (T R, int columnIndex)
 Gets the size of a column in bytes.
 
void ResultSet_setFetchSize (T R, int rows)
 Sets the number of rows to fetch from the database.
 
int ResultSet_getFetchSize (T R)
 Gets the number of rows to fetch from the database.
 
Functions
bool ResultSet_next (T R)
 Moves the cursor to the next row.
 
Columns
bool ResultSet_isnull (T R, int columnIndex)
 Checks if the designated column's value is SQL NULL.
 
const char * ResultSet_getString (T R, int columnIndex)
 Gets the designated column's value as a C-string.
 
const char * ResultSet_getStringByName (T R, const char *columnName)
 Gets the designated column's value as a C-string.
 
int ResultSet_getInt (T R, int columnIndex)
 Gets the designated column's value as an int.
 
int ResultSet_getIntByName (T R, const char *columnName)
 Gets the designated column's value as an int.
 
long long ResultSet_getLLong (T R, int columnIndex)
 Gets the designated column's value as a long long.
 
long long ResultSet_getLLongByName (T R, const char *columnName)
 Gets the designated column's value as a long long.
 
double ResultSet_getDouble (T R, int columnIndex)
 Gets the designated column's value as a double.
 
double ResultSet_getDoubleByName (T R, const char *columnName)
 Gets the designated column's value as a double.
 
const void * ResultSet_getBlob (T R, int columnIndex, int *size)
 Gets the designated column's value as a void pointer.
 
const void * ResultSet_getBlobByName (T R, const char *columnName, int *size)
 Gets the designated column's value as a void pointer.
 
Date and Time
time_t ResultSet_getTimestamp (T R, int columnIndex)
 Gets the designated column's value as a Unix timestamp.
 
time_t ResultSet_getTimestampByName (T R, const char *columnName)
 Gets the designated column's value as a Unix timestamp.
 
struct tm ResultSet_getDateTime (T R, int columnIndex)
 Gets the designated column's value as a Date, Time or DateTime.
 
struct tm ResultSet_getDateTimeByName (T R, const char *columnName)
 Gets the designated column's value as a Date, Time or DateTime.
 

Macro Definition Documentation

◆ T

#define T   ResultSet_T

Typedef Documentation

◆ T

typedef struct ResultSet_S* T

Function Documentation

◆ ResultSet_getColumnCount()

int ResultSet_getColumnCount ( T R)

Gets the number of columns in this ResultSet.

Parameters
RA ResultSet object
Returns
The number of columns

◆ ResultSet_getColumnName()

const char * ResultSet_getColumnName ( T R,
int columnIndex )

Gets the designated column's name.

Parameters
RA ResultSet object
columnIndexThe first column is 1, the second is 2, ...
Returns
Column name or NULL if the column does not exist. You should use the method ResultSet_getColumnCount() to test for the availability of columns in the result set.

◆ ResultSet_getColumnSize()

long ResultSet_getColumnSize ( T R,
int columnIndex )

Gets the size of a column in bytes.

If the column is a blob then this method returns the number of bytes in that blob. No type conversions occur. If the result is a string (or a number since a number can be converted into a string) then return the number of bytes in the resulting string.

Parameters
RA ResultSet object
columnIndexThe first column is 1, the second is 2, ...
Returns
Column data size
Exceptions
SQLExceptionIf columnIndex is outside the valid range
See also
SQLException.h

◆ ResultSet_setFetchSize()

void ResultSet_setFetchSize ( T R,
int rows )

Sets the number of rows to fetch from the database.

ResultSet will prefetch rows in batches of number of rows when ResultSet_next() is called to reduce the network roundtrip to the database. This method is only applicable to MySQL and Oracle.

Parameters
RA ResultSet object
rowsThe number of rows to fetch (1..INT_MAX)
Exceptions
SQLExceptionIf a database error occurs
AssertExceptionIf `rows` is less than 1
See also
Connection_setFetchSize

◆ ResultSet_getFetchSize()

int ResultSet_getFetchSize ( T R)

Gets the number of rows to fetch from the database.

Unless previously set with ResultSet_setFetchSize(), the returned value is the same as returned by Connection_getFetchSize()

Parameters
RA ResultSet object
Returns
The number of rows to fetch or 0 if N/A
See also
Connection_getFetchSize

◆ ResultSet_next()

bool ResultSet_next ( T R)

Moves the cursor to the next row.

A ResultSet cursor is initially positioned before the first row; the first call to this method makes the first row the current row; the second call makes the second row the current row, and so on. When there are no more available rows false is returned. An empty ResultSet will return false on the first call to ResultSet_next().

Parameters
RA ResultSet object
Returns
true if the new current row is valid; false if there are no more rows
Exceptions
SQLExceptionIf a database access error occurs

◆ ResultSet_isnull()

bool ResultSet_isnull ( T R,
int columnIndex )

Checks if the designated column's value is SQL NULL.

If the column value is SQL NULL, a ResultSet returns the NULL for reference types and 0 for value types. Use this method if you need to differentiate between SQL NULL and the value NULL/0.

Parameters
RA ResultSet object
columnIndexThe first column is 1, the second is 2, ...
Returns
true if column value is SQL NULL, false otherwise
Exceptions
SQLExceptionIf a database access error occurs or columnIndex is outside the valid range
See also
SQLException.h

◆ ResultSet_getString()

const char * ResultSet_getString ( T R,
int columnIndex )

Gets the designated column's value as a C-string.

The returned string may only be valid until the next call to ResultSet_next() and if you plan to use the returned value longer, you must make a copy.

Parameters
RA ResultSet object
columnIndexThe first column is 1, the second is 2, ...
Returns
The column value; if the value is SQL NULL, the value returned is NULL
Exceptions
SQLExceptionIf a database access error occurs or columnIndex is outside the valid range
See also
SQLException.h

◆ ResultSet_getStringByName()

const char * ResultSet_getStringByName ( T R,
const char * columnName )

Gets the designated column's value as a C-string.

The returned string may only be valid until the next call to ResultSet_next() and if you plan to use the returned value longer, you must make a copy.

Parameters
RA ResultSet object
columnNameThe SQL name of the column. case-sensitive
Returns
The column value; if the value is SQL NULL, the value returned is NULL
Exceptions
SQLExceptionIf a database access error occurs or columnName does not exist
See also
SQLException.h

◆ ResultSet_getInt()

int ResultSet_getInt ( T R,
int columnIndex )

Gets the designated column's value as an int.

Parameters
RA ResultSet object
columnIndexThe first column is 1, the second is 2, ...
Returns
The column value; if the value is SQL NULL, the value returned is 0
Exceptions
SQLExceptionIf a database access error occurs, columnIndex is outside the valid range or if the value is NaN
See also
SQLException.h

◆ ResultSet_getIntByName()

int ResultSet_getIntByName ( T R,
const char * columnName )

Gets the designated column's value as an int.

Parameters
RA ResultSet object
columnNameThe SQL name of the column. case-sensitive
Returns
The column value; if the value is SQL NULL, the value returned is 0
Exceptions
SQLExceptionIf a database access error occurs, columnName does not exist or if the value is NaN
See also
SQLException.h

◆ ResultSet_getLLong()

long long ResultSet_getLLong ( T R,
int columnIndex )

Gets the designated column's value as a long long.

Parameters
RA ResultSet object
columnIndexThe first column is 1, the second is 2, ...
Returns
The column value; if the value is SQL NULL, the value returned is 0
Exceptions
SQLExceptionIf a database access error occurs, columnIndex is outside the valid range or if the value is NaN
See also
SQLException.h

◆ ResultSet_getLLongByName()

long long ResultSet_getLLongByName ( T R,
const char * columnName )

Gets the designated column's value as a long long.

Parameters
RA ResultSet object
columnNameThe SQL name of the column. case-sensitive
Returns
The column value; if the value is SQL NULL, the value returned is 0
Exceptions
SQLExceptionIf a database access error occurs, columnName does not exist or if the value is NaN
See also
SQLException.h

◆ ResultSet_getDouble()

double ResultSet_getDouble ( T R,
int columnIndex )

Gets the designated column's value as a double.

Parameters
RA ResultSet object
columnIndexThe first column is 1, the second is 2, ...
Returns
The column value; if the value is SQL NULL, the value returned is 0.0
Exceptions
SQLExceptionIf a database access error occurs, columnIndex is outside the valid range or if the value is NaN
See also
SQLException.h

◆ ResultSet_getDoubleByName()

double ResultSet_getDoubleByName ( T R,
const char * columnName )

Gets the designated column's value as a double.

Parameters
RA ResultSet object
columnNameThe SQL name of the column. case-sensitive
Returns
The column value; if the value is SQL NULL, the value returned is 0.0
Exceptions
SQLExceptionIf a database access error occurs, columnName does not exist or if the value is NaN
See also
SQLException.h

◆ ResultSet_getBlob()

const void * ResultSet_getBlob ( T R,
int columnIndex,
int * size )

Gets the designated column's value as a void pointer.

The returned blob may only be valid until the next call to ResultSet_next() and if you plan to use the returned value longer, you must make a copy.

Parameters
RA ResultSet object
columnIndexThe first column is 1, the second is 2, ...
sizeThe number of bytes in the blob is stored in size
Returns
The column value; if the value is SQL NULL, the value returned is NULL
Exceptions
SQLExceptionIf a database access error occurs or columnIndex is outside the valid range
See also
SQLException.h

◆ ResultSet_getBlobByName()

const void * ResultSet_getBlobByName ( T R,
const char * columnName,
int * size )

Gets the designated column's value as a void pointer.

The returned blob may only be valid until the next call to ResultSet_next() and if you plan to use the returned value longer, you must make a copy.

Parameters
RA ResultSet object
columnNameThe SQL name of the column. case-sensitive
sizeThe number of bytes in the blob is stored in size
Returns
The column value; if the value is SQL NULL, the value returned is NULL
Exceptions
SQLExceptionIf a database access error occurs or columnName does not exist
See also
SQLException.h

◆ ResultSet_getTimestamp()

time_t ResultSet_getTimestamp ( T R,
int columnIndex )

Gets the designated column's value as a Unix timestamp.

The returned value is in Coordinated Universal Time (UTC) and represents seconds since the epoch (January 1, 1970, 00:00:00 GMT).

Even though the underlying database might support timestamp ranges before the epoch and after '2038-01-19 03:14:07 UTC' it is safest not to assume or use values outside this range. Especially on a 32-bit system.

SQLite does not have temporal SQL data types per se and using this method with SQLite assumes the column value in the Result Set to be either a numerical value representing a Unix Time in UTC which is returned as-is or an ISO 8601 time string which is converted to a time_t value.

Parameters
RA ResultSet object
columnIndexThe first column is 1, the second is 2, ...
Returns
The column value as seconds since the epoch in the GMT timezone. If the value is SQL NULL, the value returned is 0.
Exceptions
SQLExceptionIf a database access error occurs, if columnIndex is outside the range [1..ResultSet_getColumnCount()] or if the column value cannot be converted to a valid timestamp
See also
SQLException.h PreparedStatement_setTimestamp

◆ ResultSet_getTimestampByName()

time_t ResultSet_getTimestampByName ( T R,
const char * columnName )

Gets the designated column's value as a Unix timestamp.

The returned value is in Coordinated Universal Time (UTC) and represents seconds since the epoch (January 1, 1970, 00:00:00 GMT).

Even though the underlying database might support timestamp ranges before the epoch and after '2038-01-19 03:14:07 UTC' it is safest not to assume or use values outside this range. Especially on a 32-bit system.

SQLite does not have temporal SQL data types per se and using this method with SQLite assumes the column value in the Result Set to be either a numerical value representing a Unix Time in UTC which is returned as-is or an ISO 8601 time string which is converted to a time_t value.

Parameters
RA ResultSet object
columnNameThe SQL name of the column. case-sensitive
Returns
The column value as seconds since the epoch in the GMT timezone. If the value is SQL NULL, the value returned is 0.
Exceptions
SQLExceptionIf a database access error occurs, if columnName is not found or if the column value cannot be converted to a valid timestamp
See also
SQLException.h PreparedStatement_setTimestamp

◆ ResultSet_getDateTime()

struct tm ResultSet_getDateTime ( T R,
int columnIndex )

Gets the designated column's value as a Date, Time or DateTime.

This method can be used to retrieve the value of columns with the SQL data type, Date, Time, DateTime or Timestamp. The returned tm structure follows the convention for usage with mktime(3) where:

  • tm_hour = hours since midnight [0-23]
  • tm_min = minutes after the hour [0-59]
  • tm_sec = seconds after the minute [0-60]
  • tm_mday = day of the month [1-31]
  • tm_mon = months since January [0-11]

If the column value contains timezone information, tm_gmtoff is set to the offset from UTC in seconds, otherwise tm_gmtoff is set to 0. On systems without tm_gmtoff, (Solaris), the member, tm_wday is set to gmt offset instead as this property is ignored by mktime on input. The exception to the above is tm_year which contains the year literal and not years since 1900 which is the convention. All other fields in the structure are set to zero. If the column type is DateTime or Timestamp all the fields mentioned above are set, if it is a Date or a Time, only the relevant fields are set.

Parameters
RA ResultSet object
columnIndexThe first column is 1, the second is 2, ...
Returns
A tm structure with fields for date and time. If the value is SQL NULL, a zeroed tm structure is returned. Use ResultSet_isnull() if in doubt.
Exceptions
SQLExceptionIf a database access error occurs, if columnIndex is outside the range [1..ResultSet_getColumnCount()] or if the column value cannot be converted to a valid SQL Date, Time or DateTime type
See also
SQLException.h

◆ ResultSet_getDateTimeByName()

struct tm ResultSet_getDateTimeByName ( T R,
const char * columnName )

Gets the designated column's value as a Date, Time or DateTime.

This method can be used to retrieve the value of columns with the SQL data type, Date, Time, DateTime or Timestamp. The returned tm structure follows the convention for usage with mktime(3) where:

  • tm_hour = hours since midnight [0-23]
  • tm_min = minutes after the hour [0-59]
  • tm_sec = seconds after the minute [0-60]
  • tm_mday = day of the month [1-31]
  • tm_mon = months since January [0-11]

If the column value contains timezone information, tm_gmtoff is set to the offset from UTC in seconds, otherwise tm_gmtoff is set to 0. On systems without tm_gmtoff, (Solaris), the member, tm_wday is set to gmt offset instead as this property is ignored by mktime on input. The exception to the above is tm_year which contains the year literal and not years since 1900 which is the convention. All other fields in the structure are set to zero. If the column type is DateTime or Timestamp all the fields mentioned above are set, if it is a Date or a Time, only the relevant fields are set.

Parameters
RA ResultSet object
columnNameThe SQL name of the column. case-sensitive
Returns
A tm structure with fields for date and time. If the value is SQL NULL, a zeroed tm structure is returned. Use ResultSet_isnull() if in doubt.
Exceptions
SQLExceptionIf a database access error occurs, if columnName is not found or if the column value cannot be converted to a valid SQL Date, Time or DateTime type
See also
SQLException.h

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/m4/ltversion.m4000644 000765 000024 00000001312 14612600651 015664 0ustar00haukstaff000000 000000 # ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004, 2011-2019, 2021-2022 Free Software Foundation, # Inc. # Written by Scott James Remnant, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # @configure_input@ # serial 4245 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.4.7]) m4_define([LT_PACKAGE_REVISION], [2.4.7]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.7' macro_revision='2.4.7' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) libzdb-3.4.0/m4/libtool.m4000644 000765 000024 00001130737 14612600651 015322 0ustar00haukstaff000000 000000 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. m4_define([_LT_COPYING], [dnl # Copyright (C) 2014 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . ]) # serial 59 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_PREPARE_CC_BASENAME # ----------------------- m4_defun([_LT_PREPARE_CC_BASENAME], [ # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in @S|@*""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } ])# _LT_PREPARE_CC_BASENAME # _LT_CC_BASENAME(CC) # ------------------- # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, # but that macro is also expanded into generated libtool script, which # arranges for $SED and $ECHO to be set by different means. m4_defun([_LT_CC_BASENAME], [m4_require([_LT_PREPARE_CC_BASENAME])dnl AC_REQUIRE([_LT_DECL_SED])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl func_cc_basename $1 cc_basename=$func_cc_basename_result ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_DECL_FILECMD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_WITH_SYSROOT])dnl m4_require([_LT_CMD_TRUNCATE])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC and # ICC, which need '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld old_CC=$CC old_CFLAGS=$CFLAGS # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PREPARE_SED_QUOTE_VARS # -------------------------- # Define a few sed substitution that help us do robust quoting. m4_defun([_LT_PREPARE_SED_QUOTE_VARS], [# Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ]) # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from 'configure', and 'config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # 'config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain=$ac_aux_dir/ltmain.sh ])# _LT_PROG_LTMAIN ## ------------------------------------- ## ## Accumulate code for creating libtool. ## ## ------------------------------------- ## # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the 'libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) ## ------------------------ ## ## FIXME: Eliminate VARNAME ## ## ------------------------ ## # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to 'config.status' so that its # declaration there will have the same value as in 'configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags='_LT_TAGS'dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into 'config.status', and then the shell code to quote escape them in # for loops in 'config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$[]1 _LTECHO_EOF' } # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done _LT_OUTPUT_LIBTOOL_INIT ]) # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) # ------------------------------------ # Generate a child script FILE with all initialization necessary to # reuse the environment learned by the parent script, and make the # file executable. If COMMENT is supplied, it is inserted after the # '#!' sequence but before initialization text begins. After this # macro, additional text can be appended to FILE to form the body of # the child script. The macro ends with non-zero status if the # file could not be fully written (such as if the disk is full). m4_ifdef([AS_INIT_GENERATED], [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], [m4_defun([_LT_GENERATED_FILE_INIT], [m4_require([AS_PREPARE])]dnl [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl [lt_write_fail=0 cat >$1 <<_ASEOF || lt_write_fail=1 #! $SHELL # Generated by $as_me. $2 SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$1 <<\_ASEOF || lt_write_fail=1 AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 _ASEOF test 0 = "$lt_write_fail" && chmod +x $1[]dnl m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], [# Run this file to recreate a libtool stub with the current configuration.]) cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ '$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2011 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test 0 != $[#] do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try '$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try '$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test yes = "$silent" && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 _LT_COPYING _LT_LIBTOOL_TAGS # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE _LT_PREPARE_MUNGE_PATH_LIST _LT_PREPARE_CC_BASENAME # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? $SED '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Go], [_LT_LANG(GO)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG m4_ifndef([AC_PROG_GO], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_GO. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_GO], [AC_LANG_PUSH(Go)dnl AC_ARG_VAR([GOC], [Go compiler command])dnl AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl _AC_ARG_VAR_LDFLAGS()dnl AC_CHECK_TOOL(GOC, gccgo) if test -z "$GOC"; then if test -n "$ac_tool_prefix"; then AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) fi fi if test -z "$GOC"; then AC_CHECK_PROG(GOC, gccgo, gccgo, false) fi ])#m4_defun ])#m4_ifndef # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([AC_PROG_GO], [LT_LANG(GO)], [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) dnl AC_DEFUN([AC_LIBTOOL_RC], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS=$save_LDFLAGS ]) AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], [lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; darwin*) case $MACOSX_DEPLOYMENT_TARGET,$host in 10.[[012]],*|,*powerpc*-darwin[[5-8]]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; *) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi _lt_dar_needs_single_mod=no case $host_os in rhapsody* | darwin1.*) _lt_dar_needs_single_mod=yes ;; darwin*) # When targeting Mac OS X 10.4 (darwin 8) or later, # -single_module is the default and -multi_module is unsupported. # The toolchain on macOS 10.14 (darwin 18) and later cannot # target any OS version that needs -single_module. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*-darwin[[567]].*|10.[[0-3]],*-darwin[[5-9]].*|10.[[0-3]],*-darwin1[[0-7]].*) _lt_dar_needs_single_mod=yes ;; esac ;; esac if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES([TAG]) # --------------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported if test yes = "$lt_cv_ld_force_load"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) else _LT_TAGVAR(whole_archive_flag_spec, $1)='' fi _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" _LT_TAGVAR(module_expsym_cmds, $1)="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" m4_if([$1], [CXX], [ if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) # ---------------------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. # Store the results from the different compilers for each TAGNAME. # Allow to override them for all tags through lt_cv_aix_libpath. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ lt_aix_libpath_sed='[ /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }]' _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib fi ]) aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [m4_divert_text([M4SH-INIT], [$1 ])])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Find how we can fake an echo command that does not interpret backslash. # In particular, with Autoconf 2.60 or later we add some code to the start # of the generated configure script that will find a shell with a builtin # printf (that we can use as an echo command). m4_defun([_LT_PROG_ECHO_BACKSLASH], [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $[]1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } case $ECHO in printf*) AC_MSG_RESULT([printf]) ;; print*) AC_MSG_RESULT([print -r]) ;; *) AC_MSG_RESULT([cat]) ;; esac m4_ifdef([_AS_DETECT_SUGGESTED], [_AS_DETECT_SUGGESTED([ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test "X`printf %s $ECHO`" = "X$ECHO" \ || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_WITH_SYSROOT # ---------------- AC_DEFUN([_LT_WITH_SYSROOT], [m4_require([_LT_DECL_SED])dnl AC_MSG_CHECKING([for sysroot]) AC_ARG_WITH([sysroot], [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], [Search for dependent libraries within DIR (or the compiler's sysroot if not specified).])], [], [with_sysroot=no]) dnl lt_sysroot will always be passed unquoted. We quote it here dnl in case the user passed a directory name. lt_sysroot= case $with_sysroot in #( yes) if test yes = "$GCC"; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) AC_MSG_RESULT([$with_sysroot]) AC_MSG_ERROR([The sysroot must be an absolute path.]) ;; esac AC_MSG_RESULT([${lt_sysroot:-no}]) _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl [dependent libraries, and where our libraries should be installed.])]) # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `$FILECMD conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; *ELF-64*) HPUX_IA64_MODE=64 ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test yes = "$lt_cv_prog_gnu_ld"; then case `$FILECMD conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `$FILECMD conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then emul=elf case `$FILECMD conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `$FILECMD conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `$FILECMD conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `$FILECMD conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `$FILECMD conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `$FILECMD conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock ])# _LT_ENABLE_LOCK # _LT_PROG_AR # ----------- m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} _LT_DECL([], [AR], [1], [The archiver]) # Use ARFLAGS variable as AR's operation code to sync the variable naming with # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have # higher priority because thats what people were doing historically (setting # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS # variable obsoleted/removed. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} lt_ar_flags=$AR_FLAGS _LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)]) # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override # by AR_FLAGS because that was never working and AR_FLAGS is about to die. _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}], [Flags to create an archive]) AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], [lt_cv_ar_at_file=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([lt_ar_try]) if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a AC_TRY_EVAL([lt_ar_try]) if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a ]) ]) if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi _LT_DECL([], [archiver_list_spec], [1], [How to feed a file listing to the archiver]) ])# _LT_PROG_AR # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [_LT_PROG_AR AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) _LT_DECL([], [lock_old_archive_extraction], [0], [Whether to use a lock for old archive extraction]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test yes = "[$]$2"; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS ]) if test yes = "[$]$2"; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring=ABCD case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n "$lt_cv_sys_max_cmd_len"; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test yes = "$cross_compiling"; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen=shl_load], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen=dlopen], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) ]) ]) ]) ]) ]) ;; esac if test no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links=nottested if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test no = "$hard_links"; then AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", [Define to the sub-directory where libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then # We can hardcode non-existent directories. if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -z "$STRIP"; then AC_MSG_RESULT([no]) else if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then old_striplib="$STRIP --strip-debug" striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else case $host_os in darwin*) # FIXME - insert some real tests, host_os isn't really good enough striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) ;; freebsd*) if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then old_striplib="$STRIP --strip-debug" striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_PREPARE_MUNGE_PATH_LIST # --------------------------- # Make sure func_munge_path_list() is defined correctly. m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], [[# func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x@S|@2 in x) ;; *:) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" ;; x:*) eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" ;; *::*) eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" ;; *) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" ;; esac } ]])# _LT_PREPARE_PATH_LIST # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown AC_ARG_VAR([LT_SYS_LIBRARY_PATH], [User-defined run-time library search path.]) case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[[4-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a[(]lib.so.V[)]' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl* | *,icl*) # Native MSVC or ICC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC and ICC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly* | midnightbsd*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[23]].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[[3-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], [lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [lt_cv_shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir ]) shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [install_override_mode], [1], [Permission mode override for installation of shared libraries]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], [Detected run-time system search path for libraries]) _LT_DECL([], [configure_time_lt_sys_library_path], [2], [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program that can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$1"; then lt_cv_path_MAGIC_CMD=$ac_dir/"$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac]) MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program that can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PROG_ECHO_BACKSLASH])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test no = "$withval" || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], [if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: fi]) rm -f conftest.i conftest2.i conftest.out]) ])# _LT_PATH_DD # _LT_CMD_TRUNCATE # ---------------- # find command to truncate a binary pipe m4_defun([_LT_CMD_TRUNCATE], [m4_require([_LT_PATH_DD]) AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], [printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], [Command to truncate a binary pipe]) ])# _LT_CMD_TRUNCATE # _LT_CHECK_MAGIC_METHOD # ---------------------- # how to check for library dependencies # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_MAGIC_METHOD], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) AC_CACHE_CHECK([how to recognize dependent libraries], lt_cv_deplibs_check_method, [lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # 'unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # that responds to the $file_magic_cmd with a given extended regex. # If you have 'file' or equivalent on your system and you're not sure # whether 'pass_all' will *always* work, you probably want this one. case $host_os in aix[[4-9]]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[[45]]*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='$FILECMD -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly* | midnightbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=$FILECMD lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=$FILECMD case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=$FILECMD lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method = "file_magic"]) _LT_DECL([], [file_magic_glob], [1], [How to find potential files when deplibs_check_method = "file_magic"]) _LT_DECL([], [want_nocaseglob], [1], [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else lt_nm_to_check=${ac_tool_prefix}nm if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. tmp_nm=$ac_dir/$lt_tmp_nm if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then # Check to see if the nm accepts a BSD-compat flag. # Adding the 'sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty case $build_os in mingw*) lt_bad_file=conftest.nm/nofile ;; *) lt_bad_file=/dev/null ;; esac case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in *$lt_bad_file* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break 2 ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} fi]) if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi AC_SUBST([DUMPBIN]) if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # _LT_CHECK_SHAREDLIB_FROM_LINKLIB # -------------------------------- # how to determine the name of the shared library # associated with a specific link library. # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) m4_require([_LT_DECL_DLLTOOL]) AC_CACHE_CHECK([how to associate runtime and link libraries], lt_cv_sharedlib_from_linklib_cmd, [lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh; # decide which one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac ]) sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO _LT_DECL([], [sharedlib_from_linklib_cmd], [1], [Command to associate shared and link libraries]) ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB # _LT_PATH_MANIFEST_TOOL # ---------------------- # locate the manifest tool m4_defun([_LT_PATH_MANIFEST_TOOL], [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], [lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&AS_MESSAGE_LOG_FD if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest*]) if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl ])# _LT_PATH_MANIFEST_TOOL # _LT_DLL_DEF_P([FILE]) # --------------------- # True iff FILE is a Windows DLL '.def' file. # Keep in sync with func_dll_def_p in the libtool script AC_DEFUN([_LT_DLL_DEF_P], [dnl test DEF = "`$SED -n dnl -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl -e q dnl Only consider the first "real" line $1`" dnl ])# _LT_DLL_DEF_P # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM=-lm) ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test yes = "$GCC"; then case $cc_basename in nvcc*) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; *) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; esac _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test ia64 = "$host_cpu"; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++ or ICC, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT@&t@_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT@&t@_DLSYM_CONST #else # define LT@&t@_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT@&t@_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS=conftstm.$ac_objext CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test yes = "$pipe_works"; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then nm_file_list_spec='@' fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], [Transform the output of nm into a list of symbols to manually relocate]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) _LT_DECL([nm_interface], [lt_cv_nm_interface], [1], [The name lister interface]) _LT_DECL([], [nm_file_list_spec], [1], [Specify filename containing input files for $NM]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test yes = "$GXX"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly* | midnightbsd*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' if test ia64 != "$host_cpu"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64, which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL 8.0, 9.0 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test yes = "$GCC"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | $SED 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; *Sun\ F* | *Sun*Fortran*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Intel*\ [[CF]]*Compiler*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; *Portland\ Group*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_CACHE_CHECK([for $compiler option to produce PIC], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl* | icl*) _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] ;; esac ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++ or Intel C++ Compiler. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes ;; esac case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++ or Intel C++ Compiler. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl* | icl*) # Native MSVC or ICC _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC and ICC wrapper _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly* | midnightbsd*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) m4_if($1, [], [ # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) _LT_LINKER_OPTION([if $CC understands -b], _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], [lt_cv_irix_exported_symbol], [save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" AC_LINK_IFELSE( [AC_LANG_SOURCE( [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], [C++], [[int foo (void) { return 0; }]], [Fortran 77], [[ subroutine foo end]], [Fortran], [[ subroutine foo end]])])], [lt_cv_irix_exported_symbol=yes], [lt_cv_irix_exported_symbol=no]) LDFLAGS=$save_LDFLAGS]) if test yes = "$lt_cv_irix_exported_symbol"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(ld_shlibs, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' ;; osf3*) if test yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test yes = "$GCC"; then wlarc='$wl' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test yes,yes = "$GCC,$enable_shared"; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_CACHE_CHECK([whether -lc should be explicitly linked in], [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), [$RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no else lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ]) _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting $shlibpath_var if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [postlink_cmds], [2], [Commands necessary for finishing linking programs]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC=$CC AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report what library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC=$lt_save_CC ])# _LT_LANG_C_CONFIG # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl if test -n "$CXX" && ( test no != "$CXX" && ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || (test g++ != "$CXX"))); then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_caught_CXX_error"; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test yes = "$GXX"; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test yes = "$GXX"; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test yes = "$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='$wl' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no ;; esac if test yes = "$GXX"; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag=$shared_flag' $wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. # The "-G" linker flag allows undefined symbols. _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl* | ,icl* | no,icl*) # Native MSVC or ICC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ func_to_tool_file "$lt_outputfile"~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly* | midnightbsd*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require '-G' NOT '-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ '"$_LT_TAGVAR(old_archive_cmds, $1)" _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ '"$_LT_TAGVAR(reload_cmds, $1)" ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(GCC, $1)=$GXX _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test yes != "$_lt_caught_CXX_error" AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_FUNC_STRIPNAME_CNF # ---------------------- # func_stripname_cnf prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # # This function is identical to the (non-XSI) version of func_stripname, # except this one can be used by m4 code that may be executed by configure, # rather than the libtool script. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl AC_REQUIRE([_LT_DECL_SED]) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) func_stripname_cnf () { case @S|@2 in .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; esac } # func_stripname_cnf ])# _LT_FUNC_STRIPNAME_CNF # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF package foo func foo() { } _LT_EOF ]) _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test x-L = "$p" || test x-R = "$p"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test no = "$pre_test_object_deps_done"; then case $prev in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)=$prev$p else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test no = "$pre_test_object_deps_done"; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)=$p else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)=$p else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_LANG_PUSH(Fortran 77) if test -z "$F77" || test no = "$F77"; then _lt_disable_F77=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_F77"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$G77 _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_F77" AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_LANG_PUSH(Fortran) if test -z "$FC" || test no = "$FC"; then _lt_disable_FC=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_FC"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_FC" AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} CFLAGS=$GCJFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_GO_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Go compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GO_CONFIG], [AC_REQUIRE([LT_PROG_GO])dnl AC_LANG_SAVE # Source file extension for Go test sources. ac_ext=go # Object file extension for compiled Go test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="package main; func main() { }" # Code to be used in simple link tests lt_simple_link_test_code='package main; func main() { }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GOC-"gccgo"} CFLAGS=$GOFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # Go did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GO_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code=$lt_simple_compile_test_code # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC= CC=${RC-"windres"} CFLAGS= compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_GO # ---------- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) ]) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_DLLTOOL # ---------------- # Ensure DLLTOOL variable is set. m4_defun([_LT_DECL_DLLTOOL], [AC_CHECK_TOOL(DLLTOOL, dlltool, false) test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) AC_SUBST([DLLTOOL]) ]) # _LT_DECL_FILECMD # ---------------- # Check for a file(cmd) program that can be used to detect file type and magic m4_defun([_LT_DECL_FILECMD], [AC_CHECK_TOOL([FILECMD], [file], [:]) _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types]) ])# _LD_DECL_FILECMD # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f "$lt_ac_sed" && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test 10 -lt "$lt_ac_count" && break lt_ac_count=`expr $lt_ac_count + 1` if test "$lt_ac_count" -gt "$lt_ac_max"; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PATH_CONVERSION_FUNCTIONS # ----------------------------- # Determine what file name conversion functions should be used by # func_to_host_file (and, implicitly, by func_to_host_path). These are needed # for certain cross-compile configurations and native mingw. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_MSG_CHECKING([how to convert $build file names to $host format]) AC_CACHE_VAL(lt_cv_to_host_file_cmd, [case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac ]) to_host_file_cmd=$lt_cv_to_host_file_cmd AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], [0], [convert $build file names to $host format])dnl AC_MSG_CHECKING([how to convert $build file names to toolchain format]) AC_CACHE_VAL(lt_cv_to_tool_file_cmd, [#assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac ]) to_tool_file_cmd=$lt_cv_to_tool_file_cmd AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], [0], [convert $build files to toolchain format])dnl ])# _LT_PATH_CONVERSION_FUNCTIONS libzdb-3.4.0/m4/ltoptions.m4000644 000765 000024 00000034275 14612600651 015710 0ustar00haukstaff000000 000000 # Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2022 Free # Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 8 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option '$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl 'shared' nor 'disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], [_LT_WITH_AIX_SONAME([aix])]) ]) ])# _LT_SET_OPTIONS ## --------------------------------- ## ## Macros to handle LT_INIT options. ## ## --------------------------------- ## # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [1], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the 'shared' and # 'disable-shared' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS=$lt_save_ifs ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the 'static' and # 'disable-static' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS=$lt_save_ifs ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the 'fast-install' # and 'disable-fast-install' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS=$lt_save_ifs ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_AIX_SONAME([DEFAULT]) # ---------------------------------- # implement the --with-aix-soname flag, and support the `aix-soname=aix' # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. m4_define([_LT_WITH_AIX_SONAME], [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[[5-9]]*,yes) AC_MSG_CHECKING([which variant of shared library versioning to provide]) AC_ARG_WITH([aix-soname], [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], [case $withval in aix|svr4|both) ;; *) AC_MSG_ERROR([Unknown argument to --with-aix-soname]) ;; esac lt_cv_with_aix_soname=$with_aix_soname], [AC_CACHE_VAL([lt_cv_with_aix_soname], [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) with_aix_soname=$lt_cv_with_aix_soname]) AC_MSG_RESULT([$with_aix_soname]) if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, # the AIX toolchain works better with OBJECT_MODE set (default 32). if test 64 = "${OBJECT_MODE-32}"; then shared_archive_member_spec=shr_64 else shared_archive_member_spec=shr fi fi ;; *) with_aix_soname=aix ;; esac _LT_DECL([], [shared_archive_member_spec], [0], [Shared archive member basename, for filename based shared library versioning on AIX])dnl ])# _LT_WITH_AIX_SONAME LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the 'pic-only' and 'no-pic' # LT_INIT options. # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for lt_pkg in $withval; do IFS=$lt_save_ifs if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS=$lt_save_ifs ;; esac], [pic_mode=m4_default([$1], [default])]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) ## ----------------- ## ## LTDL_INIT Options ## ## ----------------- ## m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) libzdb-3.4.0/m4/ltsugar.m4000644 000765 000024 00000010453 14612600651 015326 0ustar00haukstaff000000 000000 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2022 Free Software # Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59, which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) libzdb-3.4.0/m4/lt~obsolete.m4000644 000765 000024 00000014007 14612600651 016216 0ustar00haukstaff000000 000000 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2022 Free # Software Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 5 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) libzdb-3.4.0/config/doxy_head000644 000765 000024 00000000627 13445042537 016227 0ustar00haukstaff000000 000000 $title ⬅ libzdb-3.4.0/config/install-sh000755 000765 000024 00000035776 14652557230 016363 0ustar00haukstaff000000 000000 #!/bin/sh # install - install a program, script, or datafile scriptversion=2020-11-14.01; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. tab=' ' nl=' ' IFS=" $tab$nl" # Set DOITPROG to "echo" to test this script. doit=${DOITPROG-} doit_exec=${doit:-exec} # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_mkdir= # Desired mode of installed file. mode=0755 # Create dirs (including intermediate dirs) using mode 755. # This is like GNU 'install' as of coreutils 8.32 (2020). mkdir_umask=22 backupsuffix= chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false is_target_a_directory=possibly usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -p pass -p to $cpprog. -s $stripprog installed files. -S SUFFIX attempt to back up existing files, with suffix SUFFIX. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG By default, rm is invoked with -f; when overridden with RMPROG, it's up to you to specify -f if you want it. If -S is not specified, no backups are attempted. Email bug reports to bug-automake@gnu.org. Automake home page: https://www.gnu.org/software/automake/ " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -p) cpprog="$cpprog -p";; -s) stripcmd=$stripprog;; -S) backupsuffix="$2" shift;; -t) is_target_a_directory=always dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) is_target_a_directory=never;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done # We allow the use of options -d and -T together, by making -d # take the precedence; this is for compatibility with GNU install. if test -n "$dir_arg"; then if test -n "$dst_arg"; then echo "$0: target directory not allowed when installing a directory." >&2 exit 1 fi fi if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then if test $# -gt 1 || test "$is_target_a_directory" = always; then if test ! -d "$dst_arg"; then echo "$0: $dst_arg: Is not a directory." >&2 exit 1 fi fi fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? # Don't chown directories that already exist. if test $dstdir_status = 0; then chowncmd="" fi else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename. if test -d "$dst"; then if test "$is_target_a_directory" = never; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dstbase=`basename "$src"` case $dst in */) dst=$dst$dstbase;; *) dst=$dst/$dstbase;; esac dstdir_status=0 else dstdir=`dirname "$dst"` test -d "$dstdir" dstdir_status=$? fi fi case $dstdir in */) dstdirslash=$dstdir;; *) dstdirslash=$dstdir/;; esac obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false # The $RANDOM variable is not portable (e.g., dash). Use it # here however when possible just to lower collision chance. tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap ' ret=$? rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null exit $ret ' 0 # Because "mkdir -p" follows existing symlinks and we likely work # directly in world-writeable /tmp, make sure that the '$tmpdir' # directory is successfully created first before we actually test # 'mkdir -p'. if (umask $mkdir_umask && $mkdirprog $mkdir_mode "$tmpdir" && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. test_tmpdir="$tmpdir/a" ls_ld_tmpdir=`ls -ld "$test_tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null fi trap '' 0;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac oIFS=$IFS IFS=/ set -f set fnord $dstdir shift set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=${dstdirslash}_inst.$$_ rmtmp=${dstdirslash}_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && { test -z "$stripcmd" || { # Create $dsttmp read-write so that cp doesn't create it read-only, # which would cause strip to fail. if test -z "$doit"; then : >"$dsttmp" # No need to fork-exec 'touch'. else $doit touch "$dsttmp" fi } } && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # If $backupsuffix is set, and the file being installed # already exists, attempt a backup. Don't worry if it fails, # e.g., if mv doesn't support -f. if test -n "$backupsuffix" && test -f "$dst"; then $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null fi # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: libzdb-3.4.0/config/ax_info.m4000644 000765 000024 00000004131 14604071330 016206 0ustar00haukstaff000000 000000 # # Functions for printing a configure info box. # # Copyright © 2020 Tildeslash Ltd. All rights reserved. AC_DEFUN([AX_INFO_GPL], [ cat <, 1996 # Copyright (C) 1996-2019, 2021-2022 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . PROGRAM=libtool PACKAGE=libtool VERSION=2.4.7 package_revision=2.4.7 ## ------ ## ## Usage. ## ## ------ ## # Run './libtool --help' for help with using this script from the # command line. ## ------------------------------- ## ## User overridable command paths. ## ## ------------------------------- ## # After configure completes, it has a better idea of some of the # shell tools we need than the defaults used by the functions shared # with bootstrap, so set those here where they can still be over- # ridden by the user, but otherwise take precedence. : ${AUTOCONF="autoconf"} : ${AUTOMAKE="automake"} ## -------------------------- ## ## Source external libraries. ## ## -------------------------- ## # Much of our low-level functionality needs to be sourced from external # libraries, which are installed to $pkgauxdir. # Set a version string for this script. scriptversion=2019-02-19.15; # UTC # General shell script boiler plate, and helper functions. # Written by Gary V. Vaughan, 2004 # This is free software. There is NO warranty; not even for # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # Copyright (C) 2004-2019, 2021 Bootstrap Authors # # This file is dual licensed under the terms of the MIT license # , and GPL version 2 or later # . You must apply one of # these licenses when using or redistributing this software or any of # the files within it. See the URLs above, or the file `LICENSE` # included in the Bootstrap distribution for the full license texts. # Please report bugs or propose patches to: # ## ------ ## ## Usage. ## ## ------ ## # Evaluate this file near the top of your script to gain access to # the functions and variables defined here: # # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh # # If you need to override any of the default environment variable # settings, do that before evaluating this file. ## -------------------- ## ## Shell normalisation. ## ## -------------------- ## # Some shells need a little help to be as Bourne compatible as possible. # Before doing anything else, make sure all that help has been provided! DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # NLS nuisances: We save the old values in case they are required later. _G_user_locale= _G_safe_locale= for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test set = \"\${$_G_var+set}\"; then save_$_G_var=\$$_G_var $_G_var=C export $_G_var _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\" _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\" fi" done # These NLS vars are set unconditionally (bootstrap issue #24). Unset those # in case the environment reset is needed later and the $save_* variant is not # defined (see the code above). LC_ALL=C LANGUAGE=C export LANGUAGE LC_ALL # Make sure IFS has a sensible default sp=' ' nl=' ' IFS="$sp $nl" # There are apparently some retarded systems that use ';' as a PATH separator! if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # func_unset VAR # -------------- # Portably unset VAR. # In some shells, an 'unset VAR' statement leaves a non-zero return # status if VAR is already unset, which might be problematic if the # statement is used at the end of a function (thus poisoning its return # value) or when 'set -e' is active (causing even a spurious abort of # the script in this case). func_unset () { { eval $1=; (eval unset $1) >/dev/null 2>&1 && eval unset $1 || : ; } } # Make sure CDPATH doesn't cause `cd` commands to output the target dir. func_unset CDPATH # Make sure ${,E,F}GREP behave sanely. func_unset GREP_OPTIONS ## ------------------------- ## ## Locate command utilities. ## ## ------------------------- ## # func_executable_p FILE # ---------------------- # Check that FILE is an executable regular file. func_executable_p () { test -f "$1" && test -x "$1" } # func_path_progs PROGS_LIST CHECK_FUNC [PATH] # -------------------------------------------- # Search for either a program that responds to --version with output # containing "GNU", or else returned by CHECK_FUNC otherwise, by # trying all the directories in PATH with each of the elements of # PROGS_LIST. # # CHECK_FUNC should accept the path to a candidate program, and # set $func_check_prog_result if it truncates its output less than # $_G_path_prog_max characters. func_path_progs () { _G_progs_list=$1 _G_check_func=$2 _G_PATH=${3-"$PATH"} _G_path_prog_max=0 _G_path_prog_found=false _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:} for _G_dir in $_G_PATH; do IFS=$_G_save_IFS test -z "$_G_dir" && _G_dir=. for _G_prog_name in $_G_progs_list; do for _exeext in '' .EXE; do _G_path_prog=$_G_dir/$_G_prog_name$_exeext func_executable_p "$_G_path_prog" || continue case `"$_G_path_prog" --version 2>&1` in *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;; *) $_G_check_func $_G_path_prog func_path_progs_result=$func_check_prog_result ;; esac $_G_path_prog_found && break 3 done done done IFS=$_G_save_IFS test -z "$func_path_progs_result" && { echo "no acceptable sed could be found in \$PATH" >&2 exit 1 } } # We want to be able to use the functions in this file before configure # has figured out where the best binaries are kept, which means we have # to search for them ourselves - except when the results are already set # where we skip the searches. # Unless the user overrides by setting SED, search the path for either GNU # sed, or the sed that truncates its output the least. test -z "$SED" && { _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for _G_i in 1 2 3 4 5 6 7; do _G_sed_script=$_G_sed_script$nl$_G_sed_script done echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed _G_sed_script= func_check_prog_sed () { _G_path_prog=$1 _G_count=0 printf 0123456789 >conftest.in while : do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo '' >> conftest.nl "$_G_path_prog" -f conftest.sed conftest.out 2>/dev/null || break diff conftest.out conftest.nl >/dev/null 2>&1 || break _G_count=`expr $_G_count + 1` if test "$_G_count" -gt "$_G_path_prog_max"; then # Best one so far, save it but keep looking for a better one func_check_prog_result=$_G_path_prog _G_path_prog_max=$_G_count fi # 10*(2^10) chars as input seems more than enough test 10 -lt "$_G_count" && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out } func_path_progs "sed gsed" func_check_prog_sed "$PATH:/usr/xpg4/bin" rm -f conftest.sed SED=$func_path_progs_result } # Unless the user overrides by setting GREP, search the path for either GNU # grep, or the grep that truncates its output the least. test -z "$GREP" && { func_check_prog_grep () { _G_path_prog=$1 _G_count=0 _G_path_prog_max=0 printf 0123456789 >conftest.in while : do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo 'GREP' >> conftest.nl "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' conftest.out 2>/dev/null || break diff conftest.out conftest.nl >/dev/null 2>&1 || break _G_count=`expr $_G_count + 1` if test "$_G_count" -gt "$_G_path_prog_max"; then # Best one so far, save it but keep looking for a better one func_check_prog_result=$_G_path_prog _G_path_prog_max=$_G_count fi # 10*(2^10) chars as input seems more than enough test 10 -lt "$_G_count" && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out } func_path_progs "grep ggrep" func_check_prog_grep "$PATH:/usr/xpg4/bin" GREP=$func_path_progs_result } ## ------------------------------- ## ## User overridable command paths. ## ## ------------------------------- ## # All uppercase variable names are used for environment variables. These # variables can be overridden by the user before calling a script that # uses them if a suitable command of that name is not already available # in the command search PATH. : ${CP="cp -f"} : ${ECHO="printf %s\n"} : ${EGREP="$GREP -E"} : ${FGREP="$GREP -F"} : ${LN_S="ln -s"} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} ## -------------------- ## ## Useful sed snippets. ## ## -------------------- ## sed_dirname='s|/[^/]*$||' sed_basename='s|^.*/||' # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s|\([`"$\\]\)|\\\1|g' # Same as above, but do not quote variable references. sed_double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution that turns a string into a regex matching for the # string literally. sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g' # Sed substitution that converts a w32 file name or path # that contains forward slashes, into one that contains # (escaped) backslashes. A very naive implementation. sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Re-'\' parameter expansions in output of sed_double_quote_subst that # were '\'-ed in input to the same. If an odd number of '\' preceded a # '$' in input to sed_double_quote_subst, that '$' was protected from # expansion. Since each input '\' is now two '\'s, look for any number # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'. _G_bs='\\' _G_bs2='\\\\' _G_bs4='\\\\\\\\' _G_dollar='\$' sed_double_backslash="\ s/$_G_bs4/&\\ /g s/^$_G_bs2$_G_dollar/$_G_bs&/ s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g s/\n//g" # require_check_ifs_backslash # --------------------------- # Check if we can use backslash as IFS='\' separator, and set # $check_ifs_backshlash_broken to ':' or 'false'. require_check_ifs_backslash=func_require_check_ifs_backslash func_require_check_ifs_backslash () { _G_save_IFS=$IFS IFS='\' _G_check_ifs_backshlash='a\\b' for _G_i in $_G_check_ifs_backshlash do case $_G_i in a) check_ifs_backshlash_broken=false ;; '') break ;; *) check_ifs_backshlash_broken=: break ;; esac done IFS=$_G_save_IFS require_check_ifs_backslash=: } ## ----------------- ## ## Global variables. ## ## ----------------- ## # Except for the global variables explicitly listed below, the following # functions in the '^func_' namespace, and the '^require_' namespace # variables initialised in the 'Resource management' section, sourcing # this file will not pollute your global namespace with anything # else. There's no portable way to scope variables in Bourne shell # though, so actually running these functions will sometimes place # results into a variable named after the function, and often use # temporary variables in the '^_G_' namespace. If you are careful to # avoid using those namespaces casually in your sourcing script, things # should continue to work as you expect. And, of course, you can freely # overwrite any of the functions or variables defined here before # calling anything to customize them. EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. # Allow overriding, eg assuming that you follow the convention of # putting '$debug_cmd' at the start of all your functions, you can get # bash to show function call trace with: # # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name debug_cmd=${debug_cmd-":"} exit_cmd=: # By convention, finish your script with: # # exit $exit_status # # so that you can set exit_status to non-zero if you want to indicate # something went wrong during execution without actually bailing out at # the point of failure. exit_status=$EXIT_SUCCESS # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath=$0 # The name of this program. progname=`$ECHO "$progpath" |$SED "$sed_basename"` # Make sure we have an absolute progpath for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=`$ECHO "$progpath" |$SED "$sed_dirname"` progdir=`cd "$progdir" && pwd` progpath=$progdir/$progname ;; *) _G_IFS=$IFS IFS=${PATH_SEPARATOR-:} for progdir in $PATH; do IFS=$_G_IFS test -x "$progdir/$progname" && break done IFS=$_G_IFS test -n "$progdir" || progdir=`pwd` progpath=$progdir/$progname ;; esac ## ----------------- ## ## Standard options. ## ## ----------------- ## # The following options affect the operation of the functions defined # below, and should be set appropriately depending on run-time para- # meters passed on the command line. opt_dry_run=false opt_quiet=false opt_verbose=false # Categories 'all' and 'none' are always available. Append any others # you will pass as the first argument to func_warning from your own # code. warning_categories= # By default, display warnings according to 'opt_warning_types'. Set # 'warning_func' to ':' to elide all warnings, or func_fatal_error to # treat the next displayed warning as a fatal error. warning_func=func_warn_and_continue # Set to 'all' to display all warnings, 'none' to suppress all # warnings, or a space delimited list of some subset of # 'warning_categories' to display only the listed warnings. opt_warning_types=all ## -------------------- ## ## Resource management. ## ## -------------------- ## # This section contains definitions for functions that each ensure a # particular resource (a file, or a non-empty configuration variable for # example) is available, and if appropriate to extract default values # from pertinent package files. Call them using their associated # 'require_*' variable to ensure that they are executed, at most, once. # # It's entirely deliberate that calling these functions can set # variables that don't obey the namespace limitations obeyed by the rest # of this file, in order that that they be as useful as possible to # callers. # require_term_colors # ------------------- # Allow display of bold text on terminals that support it. require_term_colors=func_require_term_colors func_require_term_colors () { $debug_cmd test -t 1 && { # COLORTERM and USE_ANSI_COLORS environment variables take # precedence, because most terminfo databases neglect to describe # whether color sequences are supported. test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"} if test 1 = "$USE_ANSI_COLORS"; then # Standard ANSI escape sequences tc_reset='' tc_bold=''; tc_standout='' tc_red=''; tc_green='' tc_blue=''; tc_cyan='' else # Otherwise trust the terminfo database after all. test -n "`tput sgr0 2>/dev/null`" && { tc_reset=`tput sgr0` test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold` tc_standout=$tc_bold test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso` test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1` test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2` test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4` test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5` } fi } require_term_colors=: } ## ----------------- ## ## Function library. ## ## ----------------- ## # This section contains a variety of useful functions to call in your # scripts. Take note of the portable wrappers for features provided by # some modern shells, which will fall back to slower equivalents on # less featureful shells. # func_append VAR VALUE # --------------------- # Append VALUE onto the existing contents of VAR. # We should try to minimise forks, especially on Windows where they are # unreasonably slow, so skip the feature probes when bash or zsh are # being used: if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then : ${_G_HAVE_ARITH_OP="yes"} : ${_G_HAVE_XSI_OPS="yes"} # The += operator was introduced in bash 3.1 case $BASH_VERSION in [12].* | 3.0 | 3.0*) ;; *) : ${_G_HAVE_PLUSEQ_OP="yes"} ;; esac fi # _G_HAVE_PLUSEQ_OP # Can be empty, in which case the shell is probed, "yes" if += is # useable or anything else if it does not work. test -z "$_G_HAVE_PLUSEQ_OP" \ && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \ && _G_HAVE_PLUSEQ_OP=yes if test yes = "$_G_HAVE_PLUSEQ_OP" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_append () { $debug_cmd eval "$1+=\$2" }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_append () { $debug_cmd eval "$1=\$$1\$2" } fi # func_append_quoted VAR VALUE # ---------------------------- # Quote VALUE and append to the end of shell variable VAR, separated # by a space. if test yes = "$_G_HAVE_PLUSEQ_OP"; then eval 'func_append_quoted () { $debug_cmd func_quote_arg pretty "$2" eval "$1+=\\ \$func_quote_arg_result" }' else func_append_quoted () { $debug_cmd func_quote_arg pretty "$2" eval "$1=\$$1\\ \$func_quote_arg_result" } fi # func_append_uniq VAR VALUE # -------------------------- # Append unique VALUE onto the existing contents of VAR, assuming # entries are delimited by the first character of VALUE. For example: # # func_append_uniq options " --another-option option-argument" # # will only append to $options if " --another-option option-argument " # is not already present somewhere in $options already (note spaces at # each end implied by leading space in second argument). func_append_uniq () { $debug_cmd eval _G_current_value='`$ECHO $'$1'`' _G_delim=`expr "$2" : '\(.\)'` case $_G_delim$_G_current_value$_G_delim in *"$2$_G_delim"*) ;; *) func_append "$@" ;; esac } # func_arith TERM... # ------------------ # Set func_arith_result to the result of evaluating TERMs. test -z "$_G_HAVE_ARITH_OP" \ && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \ && _G_HAVE_ARITH_OP=yes if test yes = "$_G_HAVE_ARITH_OP"; then eval 'func_arith () { $debug_cmd func_arith_result=$(( $* )) }' else func_arith () { $debug_cmd func_arith_result=`expr "$@"` } fi # func_basename FILE # ------------------ # Set func_basename_result to FILE with everything up to and including # the last / stripped. if test yes = "$_G_HAVE_XSI_OPS"; then # If this shell supports suffix pattern removal, then use it to avoid # forking. Hide the definitions single quotes in case the shell chokes # on unsupported syntax... _b='func_basename_result=${1##*/}' _d='case $1 in */*) func_dirname_result=${1%/*}$2 ;; * ) func_dirname_result=$3 ;; esac' else # ...otherwise fall back to using sed. _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`' _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"` if test "X$func_dirname_result" = "X$1"; then func_dirname_result=$3 else func_append func_dirname_result "$2" fi' fi eval 'func_basename () { $debug_cmd '"$_b"' }' # func_dirname FILE APPEND NONDIR_REPLACEMENT # ------------------------------------------- # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. eval 'func_dirname () { $debug_cmd '"$_d"' }' # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT # -------------------------------------------------------- # Perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # For efficiency, we do not delegate to the functions above but instead # duplicate the functionality here. eval 'func_dirname_and_basename () { $debug_cmd '"$_b"' '"$_d"' }' # func_echo ARG... # ---------------- # Echo program name prefixed message. func_echo () { $debug_cmd _G_message=$* func_echo_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_IFS $ECHO "$progname: $_G_line" done IFS=$func_echo_IFS } # func_echo_all ARG... # -------------------- # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } # func_echo_infix_1 INFIX ARG... # ------------------------------ # Echo program name, followed by INFIX on the first line, with any # additional lines not showing INFIX. func_echo_infix_1 () { $debug_cmd $require_term_colors _G_infix=$1; shift _G_indent=$_G_infix _G_prefix="$progname: $_G_infix: " _G_message=$* # Strip color escape sequences before counting printable length for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan" do test -n "$_G_tc" && { _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"` _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"` } done _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes func_echo_infix_1_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_infix_1_IFS $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2 _G_prefix=$_G_indent done IFS=$func_echo_infix_1_IFS } # func_error ARG... # ----------------- # Echo program name prefixed message to standard error. func_error () { $debug_cmd $require_term_colors func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2 } # func_fatal_error ARG... # ----------------------- # Echo program name prefixed message to standard error, and exit. func_fatal_error () { $debug_cmd func_error "$*" exit $EXIT_FAILURE } # func_grep EXPRESSION FILENAME # ----------------------------- # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $debug_cmd $GREP "$1" "$2" >/dev/null 2>&1 } # func_len STRING # --------------- # Set func_len_result to the length of STRING. STRING may not # start with a hyphen. test -z "$_G_HAVE_XSI_OPS" \ && (eval 'x=a/b/c; test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ && _G_HAVE_XSI_OPS=yes if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_len () { $debug_cmd func_len_result=${#1} }' else func_len () { $debug_cmd func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` } fi # func_mkdir_p DIRECTORY-PATH # --------------------------- # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { $debug_cmd _G_directory_path=$1 _G_dir_list= if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then # Protect directory names starting with '-' case $_G_directory_path in -*) _G_directory_path=./$_G_directory_path ;; esac # While some portion of DIR does not yet exist... while test ! -d "$_G_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. _G_dir_list=$_G_directory_path:$_G_dir_list # If the last portion added has no slash in it, the list is done case $_G_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"` done _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'` func_mkdir_p_IFS=$IFS; IFS=: for _G_dir in $_G_dir_list; do IFS=$func_mkdir_p_IFS # mkdir can fail with a 'File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$_G_dir" 2>/dev/null || : done IFS=$func_mkdir_p_IFS # Bail out if we (or some other process) failed to create a directory. test -d "$_G_directory_path" || \ func_fatal_error "Failed to create '$1'" fi } # func_mktempdir [BASENAME] # ------------------------- # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, BASENAME is the basename for that directory. func_mktempdir () { $debug_cmd _G_template=${TMPDIR-/tmp}/${1-$progname} if test : = "$opt_dry_run"; then # Return a directory name, but don't create it in dry-run mode _G_tmpdir=$_G_template-$$ else # If mktemp works, use that first and foremost _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null` if test ! -d "$_G_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race _G_tmpdir=$_G_template-${RANDOM-0}$$ func_mktempdir_umask=`umask` umask 0077 $MKDIR "$_G_tmpdir" umask $func_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$_G_tmpdir" || \ func_fatal_error "cannot create temporary directory '$_G_tmpdir'" fi $ECHO "$_G_tmpdir" } # func_normal_abspath PATH # ------------------------ # Remove doubled-up and trailing slashes, "." path components, # and cancel out any ".." path components in PATH after making # it an absolute path. func_normal_abspath () { $debug_cmd # These SED scripts presuppose an absolute path with a trailing slash. _G_pathcar='s|^/\([^/]*\).*$|\1|' _G_pathcdr='s|^/[^/]*||' _G_removedotparts=':dotsl s|/\./|/|g t dotsl s|/\.$|/|' _G_collapseslashes='s|/\{1,\}|/|g' _G_finalslash='s|/*$|/|' # Start from root dir and reassemble the path. func_normal_abspath_result= func_normal_abspath_tpath=$1 func_normal_abspath_altnamespace= case $func_normal_abspath_tpath in "") # Empty path, that just means $cwd. func_stripname '' '/' "`pwd`" func_normal_abspath_result=$func_stripname_result return ;; # The next three entries are used to spot a run of precisely # two leading slashes without using negated character classes; # we take advantage of case's first-match behaviour. ///*) # Unusual form of absolute path, do nothing. ;; //*) # Not necessarily an ordinary path; POSIX reserves leading '//' # and for example Cygwin uses it to access remote file shares # over CIFS/SMB, so we conserve a leading double slash if found. func_normal_abspath_altnamespace=/ ;; /*) # Absolute path, do nothing. ;; *) # Relative path, prepend $cwd. func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath ;; esac # Cancel out all the simple stuff to save iterations. We also want # the path to end with a slash for ease of parsing, so make sure # there is one (and only one) here. func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"` while :; do # Processed it all yet? if test / = "$func_normal_abspath_tpath"; then # If we ascended to the root using ".." the result may be empty now. if test -z "$func_normal_abspath_result"; then func_normal_abspath_result=/ fi break fi func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_pathcar"` func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_pathcdr"` # Figure out what to do with it case $func_normal_abspath_tcomponent in "") # Trailing empty path component, ignore it. ;; ..) # Parent dir; strip last assembled component from result. func_dirname "$func_normal_abspath_result" func_normal_abspath_result=$func_dirname_result ;; *) # Actual path component, append it. func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent" ;; esac done # Restore leading double-slash if one was found on entry. func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } # func_notquiet ARG... # -------------------- # Echo program name prefixed message only when not in quiet mode. func_notquiet () { $debug_cmd $opt_quiet || func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_relative_path SRCDIR DSTDIR # -------------------------------- # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR. func_relative_path () { $debug_cmd func_relative_path_result= func_normal_abspath "$1" func_relative_path_tlibdir=$func_normal_abspath_result func_normal_abspath "$2" func_relative_path_tbindir=$func_normal_abspath_result # Ascend the tree starting from libdir while :; do # check if we have found a prefix of bindir case $func_relative_path_tbindir in $func_relative_path_tlibdir) # found an exact match func_relative_path_tcancelled= break ;; $func_relative_path_tlibdir*) # found a matching prefix func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" func_relative_path_tcancelled=$func_stripname_result if test -z "$func_relative_path_result"; then func_relative_path_result=. fi break ;; *) func_dirname $func_relative_path_tlibdir func_relative_path_tlibdir=$func_dirname_result if test -z "$func_relative_path_tlibdir"; then # Have to descend all the way to the root! func_relative_path_result=../$func_relative_path_result func_relative_path_tcancelled=$func_relative_path_tbindir break fi func_relative_path_result=../$func_relative_path_result ;; esac done # Now calculate path; take care to avoid doubling-up slashes. func_stripname '' '/' "$func_relative_path_result" func_relative_path_result=$func_stripname_result func_stripname '/' '/' "$func_relative_path_tcancelled" if test -n "$func_stripname_result"; then func_append func_relative_path_result "/$func_stripname_result" fi # Normalisation. If bindir is libdir, return '.' else relative path. if test -n "$func_relative_path_result"; then func_stripname './' '' "$func_relative_path_result" func_relative_path_result=$func_stripname_result fi test -n "$func_relative_path_result" || func_relative_path_result=. : } # func_quote_portable EVAL ARG # ---------------------------- # Internal function to portably implement func_quote_arg. Note that we still # keep attention to performance here so we as much as possible try to avoid # calling sed binary (so far O(N) complexity as long as func_append is O(1)). func_quote_portable () { $debug_cmd $require_check_ifs_backslash func_quote_portable_result=$2 # one-time-loop (easy break) while true do if $1; then func_quote_portable_result=`$ECHO "$2" | $SED \ -e "$sed_double_quote_subst" -e "$sed_double_backslash"` break fi # Quote for eval. case $func_quote_portable_result in *[\\\`\"\$]*) # Fallback to sed for $func_check_bs_ifs_broken=:, or when the string # contains the shell wildcard characters. case $check_ifs_backshlash_broken$func_quote_portable_result in :*|*[\[\*\?]*) func_quote_portable_result=`$ECHO "$func_quote_portable_result" \ | $SED "$sed_quote_subst"` break ;; esac func_quote_portable_old_IFS=$IFS for _G_char in '\' '`' '"' '$' do # STATE($1) PREV($2) SEPARATOR($3) set start "" "" func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy IFS=$_G_char for _G_part in $func_quote_portable_result do case $1 in quote) func_append func_quote_portable_result "$3$2" set quote "$_G_part" "\\$_G_char" ;; start) set first "" "" func_quote_portable_result= ;; first) set quote "$_G_part" "" ;; esac done done IFS=$func_quote_portable_old_IFS ;; *) ;; esac break done func_quote_portable_unquoted_result=$func_quote_portable_result case $func_quote_portable_result in # double-quote args containing shell metacharacters to delay # word splitting, command substitution and variable expansion # for a subsequent eval. # many bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_portable_result=\"$func_quote_portable_result\" ;; esac } # func_quotefast_eval ARG # ----------------------- # Quote one ARG (internal). This is equivalent to 'func_quote_arg eval ARG', # but optimized for speed. Result is stored in $func_quotefast_eval. if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then printf -v _GL_test_printf_tilde %q '~' if test '\~' = "$_GL_test_printf_tilde"; then func_quotefast_eval () { printf -v func_quotefast_eval_result %q "$1" } else # Broken older Bash implementations. Make those faster too if possible. func_quotefast_eval () { case $1 in '~'*) func_quote_portable false "$1" func_quotefast_eval_result=$func_quote_portable_result ;; *) printf -v func_quotefast_eval_result %q "$1" ;; esac } fi else func_quotefast_eval () { func_quote_portable false "$1" func_quotefast_eval_result=$func_quote_portable_result } fi # func_quote_arg MODEs ARG # ------------------------ # Quote one ARG to be evaled later. MODEs argument may contain zero or more # specifiers listed below separated by ',' character. This function returns two # values: # i) func_quote_arg_result # double-quoted (when needed), suitable for a subsequent eval # ii) func_quote_arg_unquoted_result # has all characters that are still active within double # quotes backslashified. Available only if 'unquoted' is specified. # # Available modes: # ---------------- # 'eval' (default) # - escape shell special characters # 'expand' # - the same as 'eval'; but do not quote variable references # 'pretty' # - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might # be used later in func_quote to get output like: 'echo "a b"' instead # of 'echo a\ b'. This is slower than default on some shells. # 'unquoted' # - produce also $func_quote_arg_unquoted_result which does not contain # wrapping double-quotes. # # Examples for 'func_quote_arg pretty,unquoted string': # # string | *_result | *_unquoted_result # ------------+-----------------------+------------------- # " | \" | \" # a b | "a b" | a b # "a b" | "\"a b\"" | \"a b\" # * | "*" | * # z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\" # # Examples for 'func_quote_arg pretty,unquoted,expand string': # # string | *_result | *_unquoted_result # --------------+---------------------+-------------------- # z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\" func_quote_arg () { _G_quote_expand=false case ,$1, in *,expand,*) _G_quote_expand=: ;; esac case ,$1, in *,pretty,*|*,expand,*|*,unquoted,*) func_quote_portable $_G_quote_expand "$2" func_quote_arg_result=$func_quote_portable_result func_quote_arg_unquoted_result=$func_quote_portable_unquoted_result ;; *) # Faster quote-for-eval for some shells. func_quotefast_eval "$2" func_quote_arg_result=$func_quotefast_eval_result ;; esac } # func_quote MODEs ARGs... # ------------------------ # Quote all ARGs to be evaled later and join them into single command. See # func_quote_arg's description for more info. func_quote () { $debug_cmd _G_func_quote_mode=$1 ; shift func_quote_result= while test 0 -lt $#; do func_quote_arg "$_G_func_quote_mode" "$1" if test -n "$func_quote_result"; then func_append func_quote_result " $func_quote_arg_result" else func_append func_quote_result "$func_quote_arg_result" fi shift done } # func_stripname PREFIX SUFFIX NAME # --------------------------------- # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_stripname () { $debug_cmd # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary variable first. func_stripname_result=$3 func_stripname_result=${func_stripname_result#"$1"} func_stripname_result=${func_stripname_result%"$2"} }' else func_stripname () { $debug_cmd case $2 in .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;; *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;; esac } fi # func_show_eval CMD [FAIL_EXP] # ----------------------------- # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { $debug_cmd _G_cmd=$1 _G_fail_exp=${2-':'} func_quote_arg pretty,expand "$_G_cmd" eval "func_notquiet $func_quote_arg_result" $opt_dry_run || { eval "$_G_cmd" _G_status=$? if test 0 -ne "$_G_status"; then eval "(exit $_G_status); $_G_fail_exp" fi } } # func_show_eval_locale CMD [FAIL_EXP] # ------------------------------------ # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { $debug_cmd _G_cmd=$1 _G_fail_exp=${2-':'} $opt_quiet || { func_quote_arg expand,pretty "$_G_cmd" eval "func_echo $func_quote_arg_result" } $opt_dry_run || { eval "$_G_user_locale $_G_cmd" _G_status=$? eval "$_G_safe_locale" if test 0 -ne "$_G_status"; then eval "(exit $_G_status); $_G_fail_exp" fi } } # func_tr_sh # ---------- # Turn $1 into a string suitable for a shell variable name. # Result is stored in $func_tr_sh_result. All characters # not in the set a-zA-Z0-9_ are replaced with '_'. Further, # if $1 begins with a digit, a '_' is prepended as well. func_tr_sh () { $debug_cmd case $1 in [0-9]* | *[!a-zA-Z0-9_]*) func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'` ;; * ) func_tr_sh_result=$1 ;; esac } # func_verbose ARG... # ------------------- # Echo program name prefixed message in verbose mode only. func_verbose () { $debug_cmd $opt_verbose && func_echo "$*" : } # func_warn_and_continue ARG... # ----------------------------- # Echo program name prefixed warning message to standard error. func_warn_and_continue () { $debug_cmd $require_term_colors func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2 } # func_warning CATEGORY ARG... # ---------------------------- # Echo program name prefixed warning message to standard error. Warning # messages can be filtered according to CATEGORY, where this function # elides messages where CATEGORY is not listed in the global variable # 'opt_warning_types'. func_warning () { $debug_cmd # CATEGORY must be in the warning_categories list! case " $warning_categories " in *" $1 "*) ;; *) func_internal_error "invalid warning category '$1'" ;; esac _G_category=$1 shift case " $opt_warning_types " in *" $_G_category "*) $warning_func ${1+"$@"} ;; esac } # func_sort_ver VER1 VER2 # ----------------------- # 'sort -V' is not generally available. # Note this deviates from the version comparison in automake # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a # but this should suffice as we won't be specifying old # version formats or redundant trailing .0 in bootstrap.conf. # If we did want full compatibility then we should probably # use m4_version_compare from autoconf. func_sort_ver () { $debug_cmd printf '%s\n%s\n' "$1" "$2" \ | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n } # func_lt_ver PREV CURR # --------------------- # Return true if PREV and CURR are in the correct order according to # func_sort_ver, otherwise false. Use it like this: # # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..." func_lt_ver () { $debug_cmd test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q` } # Local variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" # End: #! /bin/sh # A portable, pluggable option parser for Bourne shell. # Written by Gary V. Vaughan, 2010 # This is free software. There is NO warranty; not even for # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # Copyright (C) 2010-2019, 2021 Bootstrap Authors # # This file is dual licensed under the terms of the MIT license # , and GPL version 2 or later # . You must apply one of # these licenses when using or redistributing this software or any of # the files within it. See the URLs above, or the file `LICENSE` # included in the Bootstrap distribution for the full license texts. # Please report bugs or propose patches to: # # Set a version string for this script. scriptversion=2019-02-19.15; # UTC ## ------ ## ## Usage. ## ## ------ ## # This file is a library for parsing options in your shell scripts along # with assorted other useful supporting features that you can make use # of too. # # For the simplest scripts you might need only: # # #!/bin/sh # . relative/path/to/funclib.sh # . relative/path/to/options-parser # scriptversion=1.0 # func_options ${1+"$@"} # eval set dummy "$func_options_result"; shift # ...rest of your script... # # In order for the '--version' option to work, you will need to have a # suitably formatted comment like the one at the top of this file # starting with '# Written by ' and ending with '# Copyright'. # # For '-h' and '--help' to work, you will also need a one line # description of your script's purpose in a comment directly above the # '# Written by ' line, like the one at the top of this file. # # The default options also support '--debug', which will turn on shell # execution tracing (see the comment above debug_cmd below for another # use), and '--verbose' and the func_verbose function to allow your script # to display verbose messages only when your user has specified # '--verbose'. # # After sourcing this file, you can plug in processing for additional # options by amending the variables from the 'Configuration' section # below, and following the instructions in the 'Option parsing' # section further down. ## -------------- ## ## Configuration. ## ## -------------- ## # You should override these variables in your script after sourcing this # file so that they reflect the customisations you have added to the # option parser. # The usage line for option parsing errors and the start of '-h' and # '--help' output messages. You can embed shell variables for delayed # expansion at the time the message is displayed, but you will need to # quote other shell meta-characters carefully to prevent them being # expanded when the contents are evaled. usage='$progpath [OPTION]...' # Short help message in response to '-h' and '--help'. Add to this or # override it after sourcing this library to reflect the full set of # options your script accepts. usage_message="\ --debug enable verbose shell tracing -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] -v, --verbose verbosely report processing --version print version information and exit -h, --help print short or long help message and exit " # Additional text appended to 'usage_message' in response to '--help'. long_help_message=" Warning categories include: 'all' show all warnings 'none' turn off all the warnings 'error' warnings are treated as fatal errors" # Help message printed before fatal option parsing errors. fatal_help="Try '\$progname --help' for more information." ## ------------------------- ## ## Hook function management. ## ## ------------------------- ## # This section contains functions for adding, removing, and running hooks # in the main code. A hook is just a list of function names that can be # run in order later on. # func_hookable FUNC_NAME # ----------------------- # Declare that FUNC_NAME will run hooks added with # 'func_add_hook FUNC_NAME ...'. func_hookable () { $debug_cmd func_append hookable_fns " $1" } # func_add_hook FUNC_NAME HOOK_FUNC # --------------------------------- # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must # first have been declared "hookable" by a call to 'func_hookable'. func_add_hook () { $debug_cmd case " $hookable_fns " in *" $1 "*) ;; *) func_fatal_error "'$1' does not accept hook functions." ;; esac eval func_append ${1}_hooks '" $2"' } # func_remove_hook FUNC_NAME HOOK_FUNC # ------------------------------------ # Remove HOOK_FUNC from the list of hook functions to be called by # FUNC_NAME. func_remove_hook () { $debug_cmd eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`' } # func_propagate_result FUNC_NAME_A FUNC_NAME_B # --------------------------------------------- # If the *_result variable of FUNC_NAME_A _is set_, assign its value to # *_result variable of FUNC_NAME_B. func_propagate_result () { $debug_cmd func_propagate_result_result=: if eval "test \"\${${1}_result+set}\" = set" then eval "${2}_result=\$${1}_result" else func_propagate_result_result=false fi } # func_run_hooks FUNC_NAME [ARG]... # --------------------------------- # Run all hook functions registered to FUNC_NAME. # It's assumed that the list of hook functions contains nothing more # than a whitespace-delimited list of legal shell function names, and # no effort is wasted trying to catch shell meta-characters or preserve # whitespace. func_run_hooks () { $debug_cmd case " $hookable_fns " in *" $1 "*) ;; *) func_fatal_error "'$1' does not support hook functions." ;; esac eval _G_hook_fns=\$$1_hooks; shift for _G_hook in $_G_hook_fns; do func_unset "${_G_hook}_result" eval $_G_hook '${1+"$@"}' func_propagate_result $_G_hook func_run_hooks if $func_propagate_result_result; then eval set dummy "$func_run_hooks_result"; shift fi done } ## --------------- ## ## Option parsing. ## ## --------------- ## # In order to add your own option parsing hooks, you must accept the # full positional parameter list from your hook function. You may remove # or edit any options that you action, and then pass back the remaining # unprocessed options in '_result', escaped # suitably for 'eval'. # # The '_result' variable is automatically unset # before your hook gets called; for best performance, only set the # *_result variable when necessary (i.e. don't call the 'func_quote' # function unnecessarily because it can be an expensive operation on some # machines). # # Like this: # # my_options_prep () # { # $debug_cmd # # # Extend the existing usage message. # usage_message=$usage_message' # -s, --silent don'\''t print informational messages # ' # # No change in '$@' (ignored completely by this hook). Leave # # my_options_prep_result variable intact. # } # func_add_hook func_options_prep my_options_prep # # # my_silent_option () # { # $debug_cmd # # args_changed=false # # # Note that, for efficiency, we parse as many options as we can # # recognise in a loop before passing the remainder back to the # # caller on the first unrecognised argument we encounter. # while test $# -gt 0; do # opt=$1; shift # case $opt in # --silent|-s) opt_silent=: # args_changed=: # ;; # # Separate non-argument short options: # -s*) func_split_short_opt "$_G_opt" # set dummy "$func_split_short_opt_name" \ # "-$func_split_short_opt_arg" ${1+"$@"} # shift # args_changed=: # ;; # *) # Make sure the first unrecognised option "$_G_opt" # # is added back to "$@" in case we need it later, # # if $args_changed was set to 'true'. # set dummy "$_G_opt" ${1+"$@"}; shift; break ;; # esac # done # # # Only call 'func_quote' here if we processed at least one argument. # if $args_changed; then # func_quote eval ${1+"$@"} # my_silent_option_result=$func_quote_result # fi # } # func_add_hook func_parse_options my_silent_option # # # my_option_validation () # { # $debug_cmd # # $opt_silent && $opt_verbose && func_fatal_help "\ # '--silent' and '--verbose' options are mutually exclusive." # } # func_add_hook func_validate_options my_option_validation # # You'll also need to manually amend $usage_message to reflect the extra # options you parse. It's preferable to append if you can, so that # multiple option parsing hooks can be added safely. # func_options_finish [ARG]... # ---------------------------- # Finishing the option parse loop (call 'func_options' hooks ATM). func_options_finish () { $debug_cmd func_run_hooks func_options ${1+"$@"} func_propagate_result func_run_hooks func_options_finish } # func_options [ARG]... # --------------------- # All the functions called inside func_options are hookable. See the # individual implementations for details. func_hookable func_options func_options () { $debug_cmd _G_options_quoted=false for my_func in options_prep parse_options validate_options options_finish do func_unset func_${my_func}_result func_unset func_run_hooks_result eval func_$my_func '${1+"$@"}' func_propagate_result func_$my_func func_options if $func_propagate_result_result; then eval set dummy "$func_options_result"; shift _G_options_quoted=: fi done $_G_options_quoted || { # As we (func_options) are top-level options-parser function and # nobody quoted "$@" for us yet, we need to do it explicitly for # caller. func_quote eval ${1+"$@"} func_options_result=$func_quote_result } } # func_options_prep [ARG]... # -------------------------- # All initialisations required before starting the option parse loop. # Note that when calling hook functions, we pass through the list of # positional parameters. If a hook function modifies that list, and # needs to propagate that back to rest of this script, then the complete # modified list must be put in 'func_run_hooks_result' before returning. func_hookable func_options_prep func_options_prep () { $debug_cmd # Option defaults: opt_verbose=false opt_warning_types= func_run_hooks func_options_prep ${1+"$@"} func_propagate_result func_run_hooks func_options_prep } # func_parse_options [ARG]... # --------------------------- # The main option parsing loop. func_hookable func_parse_options func_parse_options () { $debug_cmd _G_parse_options_requote=false # this just eases exit handling while test $# -gt 0; do # Defer to hook functions for initial option parsing, so they # get priority in the event of reusing an option name. func_run_hooks func_parse_options ${1+"$@"} func_propagate_result func_run_hooks func_parse_options if $func_propagate_result_result; then eval set dummy "$func_parse_options_result"; shift # Even though we may have changed "$@", we passed the "$@" array # down into the hook and it quoted it for us (because we are in # this if-branch). No need to quote it again. _G_parse_options_requote=false fi # Break out of the loop if we already parsed every option. test $# -gt 0 || break # We expect that one of the options parsed in this function matches # and thus we remove _G_opt from "$@" and need to re-quote. _G_match_parse_options=: _G_opt=$1 shift case $_G_opt in --debug|-x) debug_cmd='set -x' func_echo "enabling shell trace mode" >&2 $debug_cmd ;; --no-warnings|--no-warning|--no-warn) set dummy --warnings none ${1+"$@"} shift ;; --warnings|--warning|-W) if test $# = 0 && func_missing_arg $_G_opt; then _G_parse_options_requote=: break fi case " $warning_categories $1" in *" $1 "*) # trailing space prevents matching last $1 above func_append_uniq opt_warning_types " $1" ;; *all) opt_warning_types=$warning_categories ;; *none) opt_warning_types=none warning_func=: ;; *error) opt_warning_types=$warning_categories warning_func=func_fatal_error ;; *) func_fatal_error \ "unsupported warning category: '$1'" ;; esac shift ;; --verbose|-v) opt_verbose=: ;; --version) func_version ;; -\?|-h) func_usage ;; --help) func_help ;; # Separate optargs to long options (plugins may need this): --*=*) func_split_equals "$_G_opt" set dummy "$func_split_equals_lhs" \ "$func_split_equals_rhs" ${1+"$@"} shift ;; # Separate optargs to short options: -W*) func_split_short_opt "$_G_opt" set dummy "$func_split_short_opt_name" \ "$func_split_short_opt_arg" ${1+"$@"} shift ;; # Separate non-argument short options: -\?*|-h*|-v*|-x*) func_split_short_opt "$_G_opt" set dummy "$func_split_short_opt_name" \ "-$func_split_short_opt_arg" ${1+"$@"} shift ;; --) _G_parse_options_requote=: ; break ;; -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; *) set dummy "$_G_opt" ${1+"$@"}; shift _G_match_parse_options=false break ;; esac if $_G_match_parse_options; then _G_parse_options_requote=: fi done if $_G_parse_options_requote; then # save modified positional parameters for caller func_quote eval ${1+"$@"} func_parse_options_result=$func_quote_result fi } # func_validate_options [ARG]... # ------------------------------ # Perform any sanity checks on option settings and/or unconsumed # arguments. func_hookable func_validate_options func_validate_options () { $debug_cmd # Display all warnings if -W was not given. test -n "$opt_warning_types" || opt_warning_types=" $warning_categories" func_run_hooks func_validate_options ${1+"$@"} func_propagate_result func_run_hooks func_validate_options # Bail if the options were screwed! $exit_cmd $EXIT_FAILURE } ## ----------------- ## ## Helper functions. ## ## ----------------- ## # This section contains the helper functions used by the rest of the # hookable option parser framework in ascii-betical order. # func_fatal_help ARG... # ---------------------- # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { $debug_cmd eval \$ECHO \""Usage: $usage"\" eval \$ECHO \""$fatal_help"\" func_error ${1+"$@"} exit $EXIT_FAILURE } # func_help # --------- # Echo long help message to standard output and exit. func_help () { $debug_cmd func_usage_message $ECHO "$long_help_message" exit 0 } # func_missing_arg ARGNAME # ------------------------ # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { $debug_cmd func_error "Missing argument for '$1'." exit_cmd=exit } # func_split_equals STRING # ------------------------ # Set func_split_equals_lhs and func_split_equals_rhs shell variables # after splitting STRING at the '=' sign. test -z "$_G_HAVE_XSI_OPS" \ && (eval 'x=a/b/c; test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ && _G_HAVE_XSI_OPS=yes if test yes = "$_G_HAVE_XSI_OPS" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_split_equals () { $debug_cmd func_split_equals_lhs=${1%%=*} func_split_equals_rhs=${1#*=} if test "x$func_split_equals_lhs" = "x$1"; then func_split_equals_rhs= fi }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_split_equals () { $debug_cmd func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'` func_split_equals_rhs= test "x$func_split_equals_lhs=" = "x$1" \ || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'` } fi #func_split_equals # func_split_short_opt SHORTOPT # ----------------------------- # Set func_split_short_opt_name and func_split_short_opt_arg shell # variables after splitting SHORTOPT after the 2nd character. if test yes = "$_G_HAVE_XSI_OPS" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_split_short_opt () { $debug_cmd func_split_short_opt_arg=${1#??} func_split_short_opt_name=${1%"$func_split_short_opt_arg"} }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_split_short_opt () { $debug_cmd func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'` func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'` } fi #func_split_short_opt # func_usage # ---------- # Echo short help message to standard output and exit. func_usage () { $debug_cmd func_usage_message $ECHO "Run '$progname --help |${PAGER-more}' for full usage" exit 0 } # func_usage_message # ------------------ # Echo short help message to standard output. func_usage_message () { $debug_cmd eval \$ECHO \""Usage: $usage"\" echo $SED -n 's|^# || /^Written by/{ x;p;x } h /^Written by/q' < "$progpath" echo eval \$ECHO \""$usage_message"\" } # func_version # ------------ # Echo version message to standard output and exit. # The version message is extracted from the calling file's header # comments, with leading '# ' stripped: # 1. First display the progname and version # 2. Followed by the header comment line matching /^# Written by / # 3. Then a blank line followed by the first following line matching # /^# Copyright / # 4. Immediately followed by any lines between the previous matches, # except lines preceding the intervening completely blank line. # For example, see the header comments of this file. func_version () { $debug_cmd printf '%s\n' "$progname $scriptversion" $SED -n ' /^# Written by /!b s|^# ||; p; n :fwd2blnk /./ { n b fwd2blnk } p; n :holdwrnt s|^# || s|^# *$|| /^Copyright /!{ /./H n b holdwrnt } s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| G s|\(\n\)\n*|\1|g p; q' < "$progpath" exit $? } # Local variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" # End: # Set a version string. scriptversion='(GNU libtool) 2.4.7' # func_echo ARG... # ---------------- # Libtool also displays the current mode in messages, so override # funclib.sh func_echo with this custom definition. func_echo () { $debug_cmd _G_message=$* func_echo_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_IFS $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line" done IFS=$func_echo_IFS } # func_warning ARG... # ------------------- # Libtool warnings are not categorized, so override funclib.sh # func_warning with this simpler definition. func_warning () { $debug_cmd $warning_func ${1+"$@"} } ## ---------------- ## ## Options parsing. ## ## ---------------- ## # Hook in the functions to make sure our own options are parsed during # the option parsing loop. usage='$progpath [OPTION]... [MODE-ARG]...' # Short help message in response to '-h'. usage_message="Options: --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --mode=MODE use operation mode MODE --no-warnings equivalent to '-Wnone' --preserve-dup-deps don't remove duplicate dependency libraries --quiet, --silent don't print informational messages --tag=TAG use configuration variables from tag TAG -v, --verbose print more informational messages than default --version print version information -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] -h, --help, --help-all print short, long, or detailed help message " # Additional text appended to 'usage_message' in response to '--help'. func_help () { $debug_cmd func_usage_message $ECHO "$long_help_message MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. When passed as first option, '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that. Try '$progname --help --mode=MODE' for a more detailed description of MODE. When reporting a bug, please describe a test case to reproduce it and include the following information: host-triplet: $host shell: $SHELL compiler: $LTCC compiler flags: $LTCFLAGS linker: $LD (gnu? $with_gnu_ld) version: $progname (GNU libtool) 2.4.7 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` Report bugs to . GNU libtool home page: . General help using GNU software: ." exit 0 } # func_lo2o OBJECT-NAME # --------------------- # Transform OBJECT-NAME from a '.lo' suffix to the platform specific # object suffix. lo2o=s/\\.lo\$/.$objext/ o2lo=s/\\.$objext\$/.lo/ if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_lo2o () { case $1 in *.lo) func_lo2o_result=${1%.lo}.$objext ;; * ) func_lo2o_result=$1 ;; esac }' # func_xform LIBOBJ-OR-SOURCE # --------------------------- # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise) # suffix to a '.lo' libtool-object suffix. eval 'func_xform () { func_xform_result=${1%.*}.lo }' else # ...otherwise fall back to using sed. func_lo2o () { func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"` } func_xform () { func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'` } fi # func_fatal_configuration ARG... # ------------------------------- # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. func_fatal_configuration () { func_fatal_error ${1+"$@"} \ "See the $PACKAGE documentation for more information." \ "Fatal configuration error." } # func_config # ----------- # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # ------------- # Display the features supported by this script. func_features () { echo "host: $host" if test yes = "$build_libtool_libs"; then echo "enable shared libraries" else echo "disable shared libraries" fi if test yes = "$build_old_libs"; then echo "enable static libraries" else echo "disable static libraries" fi exit $? } # func_enable_tag TAGNAME # ----------------------- # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname=$1 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf=/$re_begincf/,/$re_endcf/p # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # func_check_version_match # ------------------------ # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } # libtool_options_prep [ARG]... # ----------------------------- # Preparation for options parsed by libtool. libtool_options_prep () { $debug_mode # Option defaults: opt_config=false opt_dlopen= opt_dry_run=false opt_help=false opt_mode= opt_preserve_dup_deps=false opt_quiet=false nonopt= preserve_args= _G_rc_lt_options_prep=: # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; *) _G_rc_lt_options_prep=false ;; esac if $_G_rc_lt_options_prep; then # Pass back the list of options. func_quote eval ${1+"$@"} libtool_options_prep_result=$func_quote_result fi } func_add_hook func_options_prep libtool_options_prep # libtool_parse_options [ARG]... # --------------------------------- # Provide handling for libtool specific options. libtool_parse_options () { $debug_cmd _G_rc_lt_parse_options=false # Perform our own loop to consume as many options as possible in # each iteration. while test $# -gt 0; do _G_match_lt_parse_options=: _G_opt=$1 shift case $_G_opt in --dry-run|--dryrun|-n) opt_dry_run=: ;; --config) func_config ;; --dlopen|-dlopen) opt_dlopen="${opt_dlopen+$opt_dlopen }$1" shift ;; --preserve-dup-deps) opt_preserve_dup_deps=: ;; --features) func_features ;; --finish) set dummy --mode finish ${1+"$@"}; shift ;; --help) opt_help=: ;; --help-all) opt_help=': help-all' ;; --mode) test $# = 0 && func_missing_arg $_G_opt && break opt_mode=$1 case $1 in # Valid mode arguments: clean|compile|execute|finish|install|link|relink|uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $_G_opt" exit_cmd=exit break ;; esac shift ;; --no-silent|--no-quiet) opt_quiet=false func_append preserve_args " $_G_opt" ;; --no-warnings|--no-warning|--no-warn) opt_warning=false func_append preserve_args " $_G_opt" ;; --no-verbose) opt_verbose=false func_append preserve_args " $_G_opt" ;; --silent|--quiet) opt_quiet=: opt_verbose=false func_append preserve_args " $_G_opt" ;; --tag) test $# = 0 && func_missing_arg $_G_opt && break opt_tag=$1 func_append preserve_args " $_G_opt $1" func_enable_tag "$1" shift ;; --verbose|-v) opt_quiet=false opt_verbose=: func_append preserve_args " $_G_opt" ;; # An option not handled by this hook function: *) set dummy "$_G_opt" ${1+"$@"} ; shift _G_match_lt_parse_options=false break ;; esac $_G_match_lt_parse_options && _G_rc_lt_parse_options=: done if $_G_rc_lt_parse_options; then # save modified positional parameters for caller func_quote eval ${1+"$@"} libtool_parse_options_result=$func_quote_result fi } func_add_hook func_parse_options libtool_parse_options # libtool_validate_options [ARG]... # --------------------------------- # Perform any sanity checks on option settings and/or unconsumed # arguments. libtool_validate_options () { # save first non-option argument if test 0 -lt $#; then nonopt=$1 shift fi # preserve --debug test : = "$debug_cmd" || func_append preserve_args " --debug" case $host in # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps ;; esac $opt_help || { # Sanity checks first: func_check_version_match test yes != "$build_libtool_libs" \ && test yes != "$build_old_libs" \ && func_fatal_configuration "not configured to build any kind of library" # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$opt_dlopen" && test execute != "$opt_mode"; then func_error "unrecognized option '-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help=$help help="Try '$progname --help --mode=$opt_mode' for more information." } # Pass back the unparsed argument list func_quote eval ${1+"$@"} libtool_validate_options_result=$func_quote_result } func_add_hook func_validate_options libtool_validate_options # Process options as early as possible so that --help and --version # can return quickly. func_options ${1+"$@"} eval set dummy "$func_options_result"; shift ## ----------- ## ## Main. ## ## ----------- ## magic='%%%MAGIC variable%%%' magic_exe='%%%MAGIC EXE variable%%%' # Global variables. extracted_archives= extracted_serial=0 # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } # func_generated_by_libtool # True iff stdin has been generated by Libtool. This function is only # a basic sanity check; it will hardly flush out determined imposters. func_generated_by_libtool_p () { $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_p file # True iff FILE is a libtool '.la' library or '.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p } # func_lalib_unsafe_p file # True iff FILE is a libtool '.la' library or '.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if 'file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case $lalib_p_line in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test yes = "$lalib_p" } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { test -f "$1" && $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $debug_cmd save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$sp$nl eval cmd=\"$cmd\" IFS=$save_ifs func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # 'FILE.' does not work on cygwin managed mounts. func_source () { $debug_cmd case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_resolve_sysroot PATH # Replace a leading = in PATH with a sysroot. Store the result into # func_resolve_sysroot_result func_resolve_sysroot () { func_resolve_sysroot_result=$1 case $func_resolve_sysroot_result in =*) func_stripname '=' '' "$func_resolve_sysroot_result" func_resolve_sysroot_result=$lt_sysroot$func_stripname_result ;; esac } # func_replace_sysroot PATH # If PATH begins with the sysroot, replace it with = and # store the result into func_replace_sysroot_result. func_replace_sysroot () { case $lt_sysroot:$1 in ?*:"$lt_sysroot"*) func_stripname "$lt_sysroot" '' "$1" func_replace_sysroot_result='='$func_stripname_result ;; *) # Including no sysroot. func_replace_sysroot_result=$1 ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $debug_cmd if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with '--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=$1 if test yes = "$build_libtool_libs"; then write_lobj=\'$2\' else write_lobj=none fi if test yes = "$build_old_libs"; then write_oldobj=\'$3\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T </dev/null` if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | $SED -e "$sed_naive_backslashify"` else func_convert_core_file_wine_to_w32_result= fi fi } # end: func_convert_core_file_wine_to_w32 # func_convert_core_path_wine_to_w32 ARG # Helper function used by path conversion functions when $build is *nix, and # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly # configured wine environment available, with the winepath program in $build's # $PATH. Assumes ARG has no leading or trailing path separator characters. # # ARG is path to be converted from $build format to win32. # Result is available in $func_convert_core_path_wine_to_w32_result. # Unconvertible file (directory) names in ARG are skipped; if no directory names # are convertible, then the result may be empty. func_convert_core_path_wine_to_w32 () { $debug_cmd # unfortunately, winepath doesn't convert paths, only file names func_convert_core_path_wine_to_w32_result= if test -n "$1"; then oldIFS=$IFS IFS=: for func_convert_core_path_wine_to_w32_f in $1; do IFS=$oldIFS func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" if test -n "$func_convert_core_file_wine_to_w32_result"; then if test -z "$func_convert_core_path_wine_to_w32_result"; then func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result else func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" fi fi done IFS=$oldIFS fi } # end: func_convert_core_path_wine_to_w32 # func_cygpath ARGS... # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or # (2), returns the Cygwin file name or path in func_cygpath_result (input # file name or path is assumed to be in w32 format, as previously converted # from $build's *nix or MSYS format). In case (3), returns the w32 file name # or path in func_cygpath_result (input file name or path is assumed to be in # Cygwin format). Returns an empty string on error. # # ARGS are passed to cygpath, with the last one being the file name or path to # be converted. # # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH # environment variable; do not put it in $PATH. func_cygpath () { $debug_cmd if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` if test "$?" -ne 0; then # on failure, ensure result is empty func_cygpath_result= fi else func_cygpath_result= func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'" fi } #end: func_cygpath # func_convert_core_msys_to_w32 ARG # Convert file name or path ARG from MSYS format to w32 format. Return # result in func_convert_core_msys_to_w32_result. func_convert_core_msys_to_w32 () { $debug_cmd # awkward: cmd appends spaces to result func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"` } #end: func_convert_core_msys_to_w32 # func_convert_file_check ARG1 ARG2 # Verify that ARG1 (a file name in $build format) was converted to $host # format in ARG2. Otherwise, emit an error message, but continue (resetting # func_to_host_file_result to ARG1). func_convert_file_check () { $debug_cmd if test -z "$2" && test -n "$1"; then func_error "Could not determine host file name corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_file_result=$1 fi } # end func_convert_file_check # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH # Verify that FROM_PATH (a path in $build format) was converted to $host # format in TO_PATH. Otherwise, emit an error message, but continue, resetting # func_to_host_file_result to a simplistic fallback value (see below). func_convert_path_check () { $debug_cmd if test -z "$4" && test -n "$3"; then func_error "Could not determine the host path corresponding to" func_error " '$3'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This is a deliberately simplistic "conversion" and # should not be "improved". See libtool.info. if test "x$1" != "x$2"; then lt_replace_pathsep_chars="s|$1|$2|g" func_to_host_path_result=`echo "$3" | $SED -e "$lt_replace_pathsep_chars"` else func_to_host_path_result=$3 fi fi } # end func_convert_path_check # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT # and appending REPL if ORIG matches BACKPAT. func_convert_path_front_back_pathsep () { $debug_cmd case $4 in $1 ) func_to_host_path_result=$3$func_to_host_path_result ;; esac case $4 in $2 ) func_append func_to_host_path_result "$3" ;; esac } # end func_convert_path_front_back_pathsep ################################################## # $build to $host FILE NAME CONVERSION FUNCTIONS # ################################################## # invoked via '$to_host_file_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # Result will be available in $func_to_host_file_result. # func_to_host_file ARG # Converts the file name ARG from $build format to $host format. Return result # in func_to_host_file_result. func_to_host_file () { $debug_cmd $to_host_file_cmd "$1" } # end func_to_host_file # func_to_tool_file ARG LAZY # converts the file name ARG from $build format to toolchain format. Return # result in func_to_tool_file_result. If the conversion in use is listed # in (the comma separated) LAZY, no conversion takes place. func_to_tool_file () { $debug_cmd case ,$2, in *,"$to_tool_file_cmd",*) func_to_tool_file_result=$1 ;; *) $to_tool_file_cmd "$1" func_to_tool_file_result=$func_to_host_file_result ;; esac } # end func_to_tool_file # func_convert_file_noop ARG # Copy ARG to func_to_host_file_result. func_convert_file_noop () { func_to_host_file_result=$1 } # end func_convert_file_noop # func_convert_file_msys_to_w32 ARG # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_file_result. func_convert_file_msys_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_to_host_file_result=$func_convert_core_msys_to_w32_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_w32 # func_convert_file_cygwin_to_w32 ARG # Convert file name ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_file_cygwin_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then # because $build is cygwin, we call "the" cygpath in $PATH; no need to use # LT_CYGPATH in this case. func_to_host_file_result=`cygpath -m "$1"` fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_cygwin_to_w32 # func_convert_file_nix_to_w32 ARG # Convert file name ARG from *nix to w32 format. Requires a wine environment # and a working winepath. Returns result in func_to_host_file_result. func_convert_file_nix_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_file_wine_to_w32 "$1" func_to_host_file_result=$func_convert_core_file_wine_to_w32_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_w32 # func_convert_file_msys_to_cygwin ARG # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_file_msys_to_cygwin () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_cygpath -u "$func_convert_core_msys_to_w32_result" func_to_host_file_result=$func_cygpath_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_cygwin # func_convert_file_nix_to_cygwin ARG # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed # in a wine environment, working winepath, and LT_CYGPATH set. Returns result # in func_to_host_file_result. func_convert_file_nix_to_cygwin () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. func_convert_core_file_wine_to_w32 "$1" func_cygpath -u "$func_convert_core_file_wine_to_w32_result" func_to_host_file_result=$func_cygpath_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_cygwin ############################################# # $build to $host PATH CONVERSION FUNCTIONS # ############################################# # invoked via '$to_host_path_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # The result will be available in $func_to_host_path_result. # # Path separators are also converted from $build format to $host format. If # ARG begins or ends with a path separator character, it is preserved (but # converted to $host format) on output. # # All path conversion functions are named using the following convention: # file name conversion function : func_convert_file_X_to_Y () # path conversion function : func_convert_path_X_to_Y () # where, for any given $build/$host combination the 'X_to_Y' value is the # same. If conversion functions are added for new $build/$host combinations, # the two new functions must follow this pattern, or func_init_to_host_path_cmd # will break. # func_init_to_host_path_cmd # Ensures that function "pointer" variable $to_host_path_cmd is set to the # appropriate value, based on the value of $to_host_file_cmd. to_host_path_cmd= func_init_to_host_path_cmd () { $debug_cmd if test -z "$to_host_path_cmd"; then func_stripname 'func_convert_file_' '' "$to_host_file_cmd" to_host_path_cmd=func_convert_path_$func_stripname_result fi } # func_to_host_path ARG # Converts the path ARG from $build format to $host format. Return result # in func_to_host_path_result. func_to_host_path () { $debug_cmd func_init_to_host_path_cmd $to_host_path_cmd "$1" } # end func_to_host_path # func_convert_path_noop ARG # Copy ARG to func_to_host_path_result. func_convert_path_noop () { func_to_host_path_result=$1 } # end func_convert_path_noop # func_convert_path_msys_to_w32 ARG # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_path_result. func_convert_path_msys_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # Remove leading and trailing path separator characters from ARG. MSYS # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; # and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result=$func_convert_core_msys_to_w32_result func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_msys_to_w32 # func_convert_path_cygwin_to_w32 ARG # Convert path ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_path_cygwin_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_cygwin_to_w32 # func_convert_path_nix_to_w32 ARG # Convert path ARG from *nix to w32 format. Requires a wine environment and # a working winepath. Returns result in func_to_host_file_result. func_convert_path_nix_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result=$func_convert_core_path_wine_to_w32_result func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_nix_to_w32 # func_convert_path_msys_to_cygwin ARG # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_path_msys_to_cygwin () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_to_host_path_result=$func_cygpath_result func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_msys_to_cygwin # func_convert_path_nix_to_cygwin ARG # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a # a wine environment, working winepath, and LT_CYGPATH set. Returns result in # func_to_host_file_result. func_convert_path_nix_to_cygwin () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" func_to_host_path_result=$func_cygpath_result func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_nix_to_cygwin # func_dll_def_p FILE # True iff FILE is a Windows DLL '.def' file. # Keep in sync with _LT_DLL_DEF_P in libtool.m4 func_dll_def_p () { $debug_cmd func_dll_def_p_tmp=`$SED -n \ -e 's/^[ ]*//' \ -e '/^\(;.*\)*$/d' \ -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \ -e q \ "$1"` test DEF = "$func_dll_def_p_tmp" } # func_mode_compile arg... func_mode_compile () { $debug_cmd # Get the compilation command and the source file. base_compile= srcfile=$nonopt # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= pie_flag= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg=$arg arg_mode=normal ;; target ) libobj=$arg arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) test -n "$libobj" && \ func_fatal_error "you cannot specify '-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) func_append later " $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs=$IFS; IFS=, for arg in $args; do IFS=$save_ifs func_append_quoted lastarg "$arg" done IFS=$save_ifs func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. func_append base_compile " $lastarg" continue ;; *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg=$srcfile srcfile=$arg ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with '-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj=$func_basename_result } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from '$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test yes = "$build_libtool_libs" \ || func_fatal_configuration "cannot build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_arg pretty "$libobj" test "X$libobj" != "X$func_quote_arg_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name '$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname=$func_basename_result xdir=$func_dirname_result lobj=$xdir$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test yes = "$build_old_libs"; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test no = "$compiler_c_o"; then output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext lockfile=$output_obj.lock else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test yes = "$need_locks"; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test warn = "$need_locks"; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 srcfile=$func_to_tool_file_result func_quote_arg pretty "$srcfile" qsrcfile=$func_quote_arg_result # Only build a PIC object if we are building libtool libraries. if test yes = "$build_libtool_libs"; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test no != "$pic_mode"; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir func_append command " -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test warn = "$need_locks" && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test yes = "$suppress_opt"; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test yes = "$build_old_libs"; then if test yes != "$pic_mode"; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test yes = "$compiler_c_o"; then func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test warn = "$need_locks" && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test no != "$need_locks"; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test compile = "$opt_mode" && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to build PIC objects only -prefer-non-pic try to build non-PIC objects only -shared do not build a '.o' file suitable for static linking -static only build a '.o' file suitable for static linking -Wc,FLAG -Xcompiler FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a 'standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix '.c' with the library object suffix, '.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to '-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the '--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the 'install' or 'cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -bindir BINDIR specify path to binaries directory (for systems where libraries must be found in the PATH setting at runtime) -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE use a list of object files found in FILE to specify objects -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes) -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface -Wc,FLAG -Xcompiler FLAG pass linker-specific FLAG directly to the compiler -Wa,FLAG -Xassembler FLAG pass linker-specific FLAG directly to the assembler -Wl,FLAG -Xlinker FLAG pass linker-specific FLAG directly to the linker -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) All other options (arguments beginning with '-') are ignored. Every other argument is treated as a filename. Files ending in '.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in '.la', then a libtool library is created, only library objects ('.lo' files) may be specified, and '-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created using 'ar' and 'ranlib', or on Windows using 'lib'. If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode '$opt_mode'" ;; esac echo $ECHO "Try '$progname --help' for more information about other modes." } # Now that we've collected a possible --mode arg, show help if necessary if $opt_help; then if test : = "$opt_help"; then func_mode_help else { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do func_mode_help done } | $SED -n '1p; 2,$s/^Usage:/ or: /p' { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do echo func_mode_help done } | $SED '1d /^When reporting/,/^Report/{ H d } $x /information about other modes/d /more detailed .*MODE/d s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' fi exit $? fi # func_mode_execute arg... func_mode_execute () { $debug_cmd # The first argument is the command name. cmd=$nonopt test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "'$file' is not a file" dir= case $file in *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "'$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "'$file' was not linked with '-export-dynamic'" continue fi func_dirname "$file" "" "." dir=$func_dirname_result if test -f "$dir/$objdir/$dlname"; then func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir=$func_dirname_result ;; *) func_warning "'-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir=$absdir # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic=$magic # Check if any of the arguments is a wrapper script. args= for file do case $file in -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file=$progdir/$program elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file=$progdir/$program fi ;; esac # Quote arguments (to preserve shell metacharacters). func_append_quoted args "$file" done if $opt_dry_run; then # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS else if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd=\$cmd$args fi } test execute = "$opt_mode" && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $debug_cmd libs= libdirs= admincmds= for opt in "$nonopt" ${1+"$@"} do if test -d "$opt"; then func_append libdirs " $opt" elif test -f "$opt"; then if func_lalib_unsafe_p "$opt"; then func_append libs " $opt" else func_warning "'$opt' is not a valid libtool archive" fi else func_fatal_error "invalid argument '$opt'" fi done if test -n "$libs"; then if test -n "$lt_sysroot"; then sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" else sysroot_cmd= fi # Remove sysroot references if $opt_dry_run; then for lib in $libs; do echo "removing references to $lt_sysroot and '=' prefixes from $lib" done else tmpdir=`func_mktempdir` for lib in $libs; do $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ > $tmpdir/tmp-la mv -f $tmpdir/tmp-la $lib done ${RM}r "$tmpdir" fi fi if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done fi # Exit here if they wanted silent mode. $opt_quiet && exit $EXIT_SUCCESS if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then echo "----------------------------------------------------------------------" echo "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done echo echo "If you ever happen to want to link against installed libraries" echo "in a given directory, LIBDIR, you must either use libtool, and" echo "specify the full pathname of the library, or use the '-LLIBDIR'" echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then echo " - add LIBDIR to the '$shlibpath_var' environment variable" echo " during execution" fi if test -n "$runpath_var"; then echo " - add LIBDIR to the '$runpath_var' environment variable" echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the '$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'" fi echo echo "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" echo "pages." ;; *) echo "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac echo "----------------------------------------------------------------------" fi exit $EXIT_SUCCESS } test finish = "$opt_mode" && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $debug_cmd # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" || # Allow the use of GNU shtool's install command. case $nonopt in *shtool*) :;; *) false;; esac then # Aesthetically quote it. func_quote_arg pretty "$nonopt" install_prog="$func_quote_arg_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_arg pretty "$arg" func_append install_prog "$func_quote_arg_result" install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; *) install_cp=false ;; esac # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=false stripme= no_mode=: for arg do arg2= if test -n "$dest"; then func_append files " $dest" dest=$arg continue fi case $arg in -d) isdir=: ;; -f) if $install_cp; then :; else prev=$arg fi ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then if test X-m = "X$prev" && test -n "$install_override_mode"; then arg2=$install_override_mode no_mode=false fi prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_arg pretty "$arg" func_append install_prog " $func_quote_arg_result" if test -n "$arg2"; then func_quote_arg pretty "$arg2" fi func_append install_shared_prog " $func_quote_arg_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the '$prev' option requires an argument" if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else func_quote_arg pretty "$install_override_mode" func_append install_shared_prog " -m $func_quote_arg_result" fi fi if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=: if $isdir; then destdir=$dest destname= else func_dirname_and_basename "$dest" "" "." destdir=$func_dirname_result destname=$func_basename_result # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "'$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "'$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic=$magic staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. func_append staticlibs " $file" ;; *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "'$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir=$func_dirname_result func_append dir "$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking '$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname=$1 shift srcname=$realname test -n "$relink_command" && srcname=${realname}T # Install the shared library and build the symlinks. func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme=$stripme case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme= ;; esac ;; os2*) case $realname in *_dll.a) tstripme= ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try 'ln -sf' first, because the 'ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib=$destdir/$realname func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name=$func_basename_result instname=$dir/${name}i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile=$destdir/$destname else func_basename "$file" destfile=$func_basename_result destfile=$destdir/$destfile fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest=$destfile destfile= ;; *) func_fatal_help "cannot copy a libtool object to '$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test yes = "$build_old_libs"; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile=$destdir/$destname else func_basename "$file" destfile=$func_basename_result destfile=$destdir/$destfile fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext= case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=.exe fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script '$wrapper'" finalize=: for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'` if test -n "$libdir" && test ! -f "$libfile"; then func_warning "'$lib' has not been installed in '$libdir'" finalize=false fi done relink_command= func_source "$wrapper" outputname= if test no = "$fast_install" && test -n "$relink_command"; then $opt_dry_run || { if $finalize; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file=$func_basename_result outputname=$tmpdir/$file # Replace the output file specification. relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_quiet || { func_quote_arg expand,pretty "$relink_command" eval "func_echo $func_quote_arg_result" } if eval "$relink_command"; then : else func_error "error: relink '$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file=$outputname else func_warning "cannot relink '$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name=$func_basename_result # Set up the ranlib parameters. oldlib=$destdir/$name func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $tool_oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run '$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test install = "$opt_mode" && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $debug_cmd my_outputname=$1 my_originator=$2 my_pic_p=${3-false} my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms=${my_outputname}S.c else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist=$output_objdir/$my_outputname.nm func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" #endif /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) /* External symbol declarations for the compiler. */\ " if test yes = "$dlself"; then func_verbose "generating symbol list for '$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do func_to_tool_file "$progfile" func_convert_file_msys_to_w32 func_verbose "extracting global C symbols from '$func_to_tool_file_result'" $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols=$output_objdir/$outputname.exp $opt_dry_run || { $RM $export_symbols eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from '$dlprefile'" func_basename "$dlprefile" name=$func_basename_result case $host in *cygwin* | *mingw* | *cegcc* ) # if an import library, we need to obtain dlname if func_win32_import_lib_p "$dlprefile"; then func_tr_sh "$dlprefile" eval "curr_lafile=\$libfile_$func_tr_sh_result" dlprefile_dlbasename= if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # Use subshell, to avoid clobbering current variable values dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` if test -n "$dlprefile_dlname"; then func_basename "$dlprefile_dlname" dlprefile_dlbasename=$func_basename_result else # no lafile. user explicitly requested -dlpreopen . $sharedlib_from_linklib_cmd "$dlprefile" dlprefile_dlbasename=$sharedlib_from_linklib_result fi fi $opt_dry_run || { if test -n "$dlprefile_dlbasename"; then eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' else func_warning "Could not compute DLL name from $name" eval '$ECHO ": $name " >> "$nlist"' fi func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" } else # not an import lib $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } fi ;; *) $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } ;; esac done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi func_show_eval '$RM "${nlist}I"' if test -n "$global_symbol_to_import"; then eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I' fi echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[];\ " if test -s "$nlist"I; then echo >> "$output_objdir/$my_dlsyms" "\ static void lt_syminit(void) { LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols; for (; symbol->name; ++symbol) {" $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms" echo >> "$output_objdir/$my_dlsyms" "\ } }" fi echo >> "$output_objdir/$my_dlsyms" "\ LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = { {\"$my_originator\", (void *) 0}," if test -s "$nlist"I; then echo >> "$output_objdir/$my_dlsyms" "\ {\"@INIT@\", (void *) <_syminit}," fi case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) $my_pic_p && pic_flag_for_symtable=" $pic_flag" ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) func_append symtab_cflags " $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"' # Transform the symbol file into the correct name. symfileobj=$output_objdir/${my_outputname}S.$objext case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for '$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } # func_cygming_gnu_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is a GNU/binutils-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_gnu_implib_p () { $debug_cmd func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` test -n "$func_cygming_gnu_implib_tmp" } # func_cygming_ms_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is an MS-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_ms_implib_p () { $debug_cmd func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` test -n "$func_cygming_ms_implib_tmp" } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. # Despite the name, also deal with 64 bit binaries. func_win32_libid () { $debug_cmd win32_libid_type=unknown win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then case $nm_interface in "MS dumpbin") if func_cygming_ms_implib_p "$1" || func_cygming_gnu_implib_p "$1" then win32_nmres=import else win32_nmres= fi ;; *) func_to_tool_file "$1" func_convert_file_msys_to_w32 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ s|.*|import| p q } }'` ;; esac case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_cygming_dll_for_implib ARG # # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib () { $debug_cmd sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` } # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs # # The is the core of a fallback implementation of a # platform-specific function to extract the name of the # DLL associated with the specified import library LIBNAME. # # SECTION_NAME is either .idata$6 or .idata$7, depending # on the platform and compiler that created the implib. # # Echos the name of the DLL associated with the # specified import library. func_cygming_dll_for_implib_fallback_core () { $debug_cmd match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` $OBJDUMP -s --section "$1" "$2" 2>/dev/null | $SED '/^Contents of section '"$match_literal"':/{ # Place marker at beginning of archive member dllname section s/.*/====MARK====/ p d } # These lines can sometimes be longer than 43 characters, but # are always uninteresting /:[ ]*file format pe[i]\{,1\}-/d /^In archive [^:]*:/d # Ensure marker is printed /^====MARK====/p # Remove all lines with less than 43 characters /^.\{43\}/!d # From remaining lines, remove first 43 characters s/^.\{43\}//' | $SED -n ' # Join marker and all lines until next marker into a single line /^====MARK====/ b para H $ b para b :para x s/\n//g # Remove the marker s/^====MARK====// # Remove trailing dots and whitespace s/[\. \t]*$// # Print /./p' | # we now have a list, one entry per line, of the stringified # contents of the appropriate section of all members of the # archive that possess that section. Heuristic: eliminate # all those that have a first or second character that is # a '.' (that is, objdump's representation of an unprintable # character.) This should work for all archives with less than # 0x302f exports -- but will fail for DLLs whose name actually # begins with a literal '.' or a single character followed by # a '.'. # # Of those that remain, print the first one. $SED -e '/^\./d;/^.\./d;q' } # func_cygming_dll_for_implib_fallback ARG # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # # This fallback implementation is for use when $DLLTOOL # does not support the --identify-strict option. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib_fallback () { $debug_cmd if func_cygming_gnu_implib_p "$1"; then # binutils import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` elif func_cygming_ms_implib_p "$1"; then # ms-generated import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` else # unknown sharedlib_from_linklib_result= fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { $debug_cmd f_ex_an_ar_dir=$1; shift f_ex_an_ar_oldlib=$1 if test yes = "$lock_old_archive_extraction"; then lockfile=$f_ex_an_ar_oldlib.lock until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done fi func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 'stat=$?; rm -f "$lockfile"; exit $stat' if test yes = "$lock_old_archive_extraction"; then $opt_dry_run || rm -f "$lockfile" fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $debug_cmd my_gentop=$1; shift my_oldlibs=${1+"$@"} my_oldobjs= my_xlib= my_xabs= my_xdir= for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib=$func_basename_result my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir=$my_gentop/$my_xlib_u func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` func_basename "$darwin_archive" darwin_base_archive=$func_basename_result darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches; do func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch" $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive" cd "unfat-$$/$darwin_base_archive-$darwin_arch" func_extract_an_archive "`pwd`" "$darwin_base_archive" cd "$darwin_curdir" $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result=$my_oldobjs } # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory where it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then file=\"\$0\"" func_quote_arg pretty "$ECHO" qECHO=$func_quote_arg_result $ECHO "\ # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } ECHO=$qECHO fi # Very basic option parsing. These options are (a) specific to # the libtool wrapper, (b) are identical between the wrapper # /script/ and the wrapper /executable/ that is used only on # windows platforms, and (c) all begin with the string "--lt-" # (application programs are unlikely to have options that match # this pattern). # # There are only two supported options: --lt-debug and # --lt-dump-script. There is, deliberately, no --lt-help. # # The first argument to this parsing function should be the # script's $0 value, followed by "$@". lt_option_debug= func_parse_lt_options () { lt_script_arg0=\$0 shift for lt_opt do case \"\$lt_opt\" in --lt-debug) lt_option_debug=1 ;; --lt-dump-script) lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` cat \"\$lt_dump_D/\$lt_dump_F\" exit 0 ;; --lt-*) \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 exit 1 ;; esac done # Print the debug banner immediately: if test -n \"\$lt_option_debug\"; then echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2 fi } # Used when --lt-debug. Prints its arguments to stdout # (redirection is the responsibility of the caller) func_lt_dump_args () { lt_dump_args_N=1; for lt_arg do \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\" lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` done } # Core function for launching the target application func_exec_program_core () { " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 } # A function to encapsulate launching the target application # Strips options in the --lt-* namespace from \$@ and # launches target application with the remaining arguments. func_exec_program () { case \" \$* \" in *\\ --lt-*) for lt_wr_arg do case \$lt_wr_arg in --lt-*) ;; *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; esac shift done ;; esac func_exec_program_core \${1+\"\$@\"} } # Parse options func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test yes = "$fast_install"; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else \$ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # fixup the dll searchpath if we need to. # # Fix the DLL searchpath if we need to. Do this before prepending # to shlibpath, because on Windows, both are PATH and uninstalled # libraries must come first. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi # Export our shlibpath_var if we have one. if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. func_exec_program \${1+\"\$@\"} fi else # The program doesn't exist. \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include #else # include # include # ifdef __CYGWIN__ # include # endif #endif #include #include #include #include #include #include #include #include #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) /* declarations of non-ANSI functions */ #if defined __MINGW32__ # ifdef __STRICT_ANSI__ int _putenv (const char *); # endif #elif defined __CYGWIN__ # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif /* #elif defined other_platform || defined ... */ #endif /* portability defines, excluding path handling macros */ #if defined _MSC_VER # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv # define S_IXUSR _S_IEXEC #elif defined __MINGW32__ # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv #elif defined __CYGWIN__ # define HAVE_SETENV # define FOPEN_WB "wb" /* #elif defined other platforms ... */ #endif #if defined PATH_MAX # define LT_PATHMAX PATH_MAX #elif defined MAXPATHLEN # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif /* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \ defined __OS2__ # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free (stale); stale = 0; } \ } while (0) #if defined LT_DEBUGWRAPPER static int lt_debug = 1; #else static int lt_debug = 0; #endif const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_debugprintf (const char *file, int line, const char *fmt, ...); void lt_fatal (const char *file, int line, const char *message, ...); static const char *nonnull (const char *s); static const char *nonempty (const char *s); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); char **prepare_spawn (char **argv); void lt_dump_script (FILE *f); EOF cat <= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; size_t tmp_len; char *concat_name; lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", nonempty (wrapper)); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined HAVE_DOS_BASED_FILE_SYSTEM if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined HAVE_DOS_BASED_FILE_SYSTEM } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = (size_t) (q - p); p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { lt_debugprintf (__FILE__, __LINE__, "checking path component for symlinks: %s\n", tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { lt_fatal (__FILE__, __LINE__, "error accessing file \"%s\": %s", tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal (__FILE__, __LINE__, "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (STREQ (str, pat)) *str = '\0'; } return str; } void lt_debugprintf (const char *file, int line, const char *fmt, ...) { va_list args; if (lt_debug) { (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } } static void lt_error_core (int exit_status, const char *file, int line, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } static const char * nonnull (const char *s) { return s ? s : "(null)"; } static const char * nonempty (const char *s) { return (s && !*s) ? "(empty)" : nonnull (s); } void lt_setenv (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_setenv) setting '%s' to '%s'\n", nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else size_t len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { size_t orig_value_len = strlen (orig_value); size_t add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } void lt_update_exe_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ size_t len = strlen (new_value); while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[--len] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF case $host_os in mingw*) cat <<"EOF" /* Prepares an argument vector before calling spawn(). Note that spawn() does not by itself call the command interpreter (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); v.dwPlatformId == VER_PLATFORM_WIN32_NT; }) ? "cmd.exe" : "command.com"). Instead it simply concatenates the arguments, separated by ' ', and calls CreateProcess(). We must quote the arguments since Win32 CreateProcess() interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a special way: - Space and tab are interpreted as delimiters. They are not treated as delimiters if they are surrounded by double quotes: "...". - Unescaped double quotes are removed from the input. Their only effect is that within double quotes, space and tab are treated like normal characters. - Backslashes not followed by double quotes are not special. - But 2*n+1 backslashes followed by a double quote become n backslashes followed by a double quote (n >= 0): \" -> " \\\" -> \" \\\\\" -> \\" */ #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" char ** prepare_spawn (char **argv) { size_t argc; char **new_argv; size_t i; /* Count number of arguments. */ for (argc = 0; argv[argc] != NULL; argc++) ; /* Allocate new argument vector. */ new_argv = XMALLOC (char *, argc + 1); /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++) { const char *string = argv[i]; if (string[0] == '\0') new_argv[i] = xstrdup ("\"\""); else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) { int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); size_t length; unsigned int backslashes; const char *s; char *quoted_string; char *p; length = 0; backslashes = 0; if (quote_around) length++; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') length += backslashes + 1; length++; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) length += backslashes + 1; quoted_string = XMALLOC (char, length + 1); p = quoted_string; backslashes = 0; if (quote_around) *p++ = '"'; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') { unsigned int j; for (j = backslashes + 1; j > 0; j--) *p++ = '\\'; } *p++ = c; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) { unsigned int j; for (j = backslashes; j > 0; j--) *p++ = '\\'; *p++ = '"'; } *p = '\0'; new_argv[i] = quoted_string; } else new_argv[i] = (char *) string; } new_argv[argc] = NULL; return new_argv; } EOF ;; esac cat <<"EOF" void lt_dump_script (FILE* f) { EOF func_emit_wrapper yes | $SED -n -e ' s/^\(.\{79\}\)\(..*\)/\1\ \2/ h s/\([\\"]\)/\\\1/g s/$/\\n/ s/\([^\n]*\).*/ fputs ("\1", f);/p g D' cat <<"EOF" } EOF } # end: func_emit_cwrapperexe_src # func_win32_import_lib_p ARG # True if ARG is an import lib, as indicated by $file_magic_cmd func_win32_import_lib_p () { $debug_cmd case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in *import*) : ;; *) false ;; esac } # func_suncc_cstd_abi # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!! # Several compiler flags select an ABI that is incompatible with the # Cstd library. Avoid specifying it if any are in CXXFLAGS. func_suncc_cstd_abi () { $debug_cmd case " $compile_command " in *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*) suncc_use_cstd_abi=no ;; *) suncc_use_cstd_abi=yes ;; esac } # func_mode_link arg... func_mode_link () { $debug_cmd case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # what system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll that has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no bindir= dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= os2dllname= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=false prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module=$wl-single_module func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test yes != "$build_libtool_libs" \ && func_fatal_configuration "cannot build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg=$1 shift func_quote_arg pretty,unquoted "$arg" qarg=$func_quote_arg_unquoted_result func_append libtool_args " $func_quote_arg_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in bindir) bindir=$arg prev= continue ;; dlfiles|dlprefiles) $preload || { # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=: } case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test no = "$dlself"; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test dlprefiles = "$prev"; then dlself=yes elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test dlfiles = "$prev"; then func_append dlfiles " $arg" else func_append dlprefiles " $arg" fi prev= continue ;; esac ;; expsyms) export_symbols=$arg test -f "$arg" \ || func_fatal_error "symbol file '$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex=$arg prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir=$arg prev= continue ;; mllvm) # Clang does not use LLVM to link, so we can simply discard any # '-mllvm $arg' options when doing the link step. prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # func_append moreargs " $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test none = "$pic_object" && test none = "$non_pic_object"; then func_fatal_error "cannot find name of object for '$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result if test none != "$pic_object"; then # Prepend the subdirectory the object is found in. pic_object=$xdir$pic_object if test dlfiles = "$prev"; then if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test dlprefiles = "$prev"; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg=$pic_object fi # Non-PIC object. if test none != "$non_pic_object"; then # Prepend the subdirectory the object is found in. non_pic_object=$xdir$non_pic_object # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test none = "$pic_object"; then arg=$non_pic_object fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object=$pic_object func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "'$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file '$arg' does not exist" fi arg=$save_arg prev= continue ;; os2dllname) os2dllname=$arg prev= continue ;; precious_regex) precious_files_regex=$arg prev= continue ;; release) release=-$arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test rpath = "$prev"; then case "$rpath " in *" $arg "*) ;; *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) func_append xrpath " $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds=$arg prev= continue ;; weak) func_append weak_libs " $arg" prev= continue ;; xassembler) func_append compiler_flags " -Xassembler $qarg" prev= func_append compile_command " -Xassembler $qarg" func_append finalize_command " -Xassembler $qarg" continue ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) func_append linker_flags " $qarg" func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg=$arg case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "'-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -bindir) prev=bindir continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test X-export-symbols = "X$arg"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname "-L" '' "$arg" if test -z "$func_stripname_result"; then if test "$#" -gt 0; then func_fatal_error "require no space between '-L' and '$1'" else func_fatal_error "need path for '-L' option" fi fi func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of '$dir'" dir=$absdir ;; esac case "$deplibs " in *" -L$dir "* | *" $arg "*) # Will only happen for absolute or sysroot arguments ;; *) # Preserve sysroot, but never include relative directories case $dir in [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; *) func_append deplibs " -L$dir" ;; esac func_append lib_search_path " $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac continue ;; -l*) if test X-lc = "X$arg" || test X-lm = "X$arg"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test X-lc = "X$arg" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*) # Do not include libc due to us having libc/libc_r. test X-lc = "X$arg" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test X-lc = "X$arg" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test X-lc = "X$arg" && continue ;; esac elif test X-lc_r = "X$arg"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi func_append deplibs " $arg" continue ;; -mllvm) prev=mllvm continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot|--sysroot) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; # Solaris ld rejects as of 11.4. Refer to Oracle bug 22985199. -pthread) case $host in *solaris2*) ;; *) case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac ;; esac continue ;; -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; -multi_module) single_module=$wl-multi_module continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "'-no-install' is ignored for $host" func_warning "assuming '-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -os2dllname) prev=os2dllname continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; =*) func_stripname '=' '' "$dir" dir=$lt_sysroot$func_stripname_result ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs func_quote_arg pretty "$flag" func_append arg " $func_quote_arg_result" func_append compiler_flags " $func_quote_arg_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs func_quote_arg pretty "$flag" func_append arg " $wl$func_quote_arg_result" func_append compiler_flags " $wl$func_quote_arg_result" func_append linker_flags " $func_quote_arg_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xassembler) prev=xassembler continue ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_arg pretty "$arg" arg=$func_quote_arg_result ;; # Flags to be passed through unchanged, with rationale: # -64, -mips[0-9] enable 64-bit mode for the SGI compiler # -r[0-9][0-9]* specify processor for the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler # +DA*, +DD* enable 64-bit mode for the HP compiler # -q* compiler args for the IBM compiler # -m*, -t[45]*, -txscale* architecture-specific flags for GCC # -F/path path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* profiling flags for GCC # -fstack-protector* stack protector flags for GCC # @file GCC response files # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization # -specs=* GCC specs files # -stdlib=* select c++ std lib with clang # -fsanitize=* Clang/GCC memory and address sanitizer # -fuse-ld=* Linker select flags for GCC # -Wa,* Pass flags directly to the assembler -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ -specs=*|-fsanitize=*|-fuse-ld=*|-Wa,*) func_quote_arg pretty "$arg" arg=$func_quote_arg_result func_append compile_command " $arg" func_append finalize_command " $arg" func_append compiler_flags " $arg" continue ;; -Z*) if test os2 = "`expr $host : '.*\(os2\)'`"; then # OS/2 uses -Zxxx to specify OS/2-specific options compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case $arg in -Zlinker | -Zstack) prev=xcompiler ;; esac continue else # Otherwise treat like 'Some other compiler flag' below func_quote_arg pretty "$arg" arg=$func_quote_arg_result fi ;; # Some other compiler flag. -* | +*) func_quote_arg pretty "$arg" arg=$func_quote_arg_result ;; *.$objext) # A standard object. func_append objs " $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test none = "$pic_object" && test none = "$non_pic_object"; then func_fatal_error "cannot find name of object for '$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result test none = "$pic_object" || { # Prepend the subdirectory the object is found in. pic_object=$xdir$pic_object if test dlfiles = "$prev"; then if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test dlprefiles = "$prev"; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg=$pic_object } # Non-PIC object. if test none != "$non_pic_object"; then # Prepend the subdirectory the object is found in. non_pic_object=$xdir$non_pic_object # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test none = "$pic_object"; then arg=$non_pic_object fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object=$pic_object func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "'$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. func_append deplibs " $arg" func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. func_resolve_sysroot "$arg" if test dlfiles = "$prev"; then # This library was specified with -dlopen. func_append dlfiles " $func_resolve_sysroot_result" prev= elif test dlprefiles = "$prev"; then # The library was specified with -dlpreopen. func_append dlprefiles " $func_resolve_sysroot_result" prev= else func_append deplibs " $func_resolve_sysroot_result" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_arg pretty "$arg" arg=$func_quote_arg_result ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the '$prevarg' option requires an argument" if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname=$func_basename_result libobjs_save=$libobjs if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" # Definition is injected by LT_CONFIG during libtool generation. func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH" func_dirname "$output" "/" "" output_objdir=$func_dirname_result$objdir func_to_tool_file "$output_objdir/" tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_preserve_dup_deps; then case "$libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append libs " $deplib" done if test lib = "$linkmode"; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can '-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=false newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test lib,link = "$linkmode,$pass"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs=$tmp_deplibs fi if test lib,link = "$linkmode,$pass" || test prog,scan = "$linkmode,$pass"; then libs=$deplibs deplibs= fi if test prog = "$linkmode"; then case $pass in dlopen) libs=$dlfiles ;; dlpreopen) libs=$dlprefiles ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test lib,dlpreopen = "$linkmode,$pass"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= func_resolve_sysroot "$lib" case $lib in *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do func_basename "$deplib" deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; *) func_append deplibs " $deplib" ;; esac done done libs=$dlprefiles fi if test dlopen = "$pass"; then # Collect dlpreopened libraries save_deplibs=$deplibs deplibs= fi for deplib in $libs; do lib= found=false case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append compiler_flags " $deplib" if test lib = "$linkmode"; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -l*) if test lib != "$linkmode" && test prog != "$linkmode"; then func_warning "'-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test lib = "$linkmode"; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib=$searchdir/lib$name$search_ext if test -f "$lib"; then if test .la = "$search_ext"; then found=: else found=false fi break 2 fi done done if $found; then # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll=$l done if test "X$ll" = "X$old_library"; then # only static version available found=false func_dirname "$lib" "" "." ladir=$func_dirname_result lib=$ladir/$old_library if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi else # deplib doesn't seem to be a libtool library if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" fi continue fi ;; # -l *.ltframework) if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test lib = "$linkmode"; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test conv = "$pass" && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test conv = "$pass"; then deplibs="$deplib $deplibs" continue fi if test scan = "$pass"; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "'-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test link = "$pass"; then func_stripname '-R' '' "$deplib" func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; *.$libext) if test conv = "$pass"; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=false case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=: fi ;; pass_all) valid_a_lib=: ;; esac if $valid_a_lib; then echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" else echo $ECHO "*** Warning: Trying to link with static lib archive $deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because the file extensions .$libext of this argument makes me believe" echo "*** that it is just a static archive that I should not use here." fi ;; esac continue ;; prog) if test link != "$pass"; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test conv = "$pass"; then deplibs="$deplib $deplibs" elif test prog = "$linkmode"; then if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then # If there is no dlopen support or we're linking statically, # we need to preload. func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append newdlfiles " $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=: continue ;; esac # case $deplib $found || test -f "$lib" \ || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'" # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "'$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir=$func_dirname_result dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` if test lib,link = "$linkmode,$pass" || test prog,scan = "$linkmode,$pass" || { test prog != "$linkmode" && test lib != "$linkmode"; }; then test -n "$dlopen" && func_append dlfiles " $dlopen" test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test conv = "$pass"; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for '$lib'" fi # It is a libtool convenience library, so add in its objects. func_append convenience " $ladir/$objdir/$old_library" func_append old_convenience " $ladir/$objdir/$old_library" elif test prog != "$linkmode" && test lib != "$linkmode"; then func_fatal_error "'$lib' is not a convenience library" fi tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done continue fi # $pass = conv # Get the name of the library we link against. linklib= if test -n "$old_library" && { test yes = "$prefer_static_libs" || test built,no = "$prefer_static_libs,$installed"; }; then linklib=$old_library else for l in $old_library $library_names; do linklib=$l done fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for '$lib'" fi # This library was specified with -dlopen. if test dlopen = "$pass"; then test -z "$libdir" \ && func_fatal_error "cannot -dlopen a convenience library: '$lib'" if test -z "$dlname" || test yes != "$dlopen_support" || test no = "$build_libtool_libs" then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. func_append dlprefiles " $lib $dependency_libs" else func_append newdlfiles " $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of '$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir=$ladir fi ;; esac func_basename "$lib" laname=$func_basename_result # Find the relevant object directory and library name. if test yes = "$installed"; then if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library '$lib' was moved." dir=$ladir absdir=$abs_ladir libdir=$abs_ladir else dir=$lt_sysroot$libdir absdir=$lt_sysroot$libdir fi test yes = "$hardcode_automatic" && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir=$ladir absdir=$abs_ladir # Remove this search path later func_append notinst_path " $abs_ladir" else dir=$ladir/$objdir absdir=$abs_ladir/$objdir # Remove this search path later func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test dlpreopen = "$pass"; then if test -z "$libdir" && test prog = "$linkmode"; then func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'" fi case $host in # special handling for platforms with PE-DLLs. *cygwin* | *mingw* | *cegcc* ) # Linker will automatically link against shared library if both # static and shared are present. Therefore, ensure we extract # symbols from the import library if a shared library is present # (otherwise, the dlopen module name will be incorrect). We do # this by putting the import library name into $newdlprefiles. # We recover the dlopen module name by 'saving' the la file # name in a special purpose variable, and (later) extracting the # dlname from the la file. if test -n "$dlname"; then func_tr_sh "$dir/$linklib" eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" func_append newdlprefiles " $dir/$linklib" else func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" fi ;; * ) # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then func_append newdlprefiles " $dir/$dlname" else func_append newdlprefiles " $dir/$linklib" fi ;; esac fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test lib = "$linkmode"; then deplibs="$dir/$old_library $deplibs" elif test prog,link = "$linkmode,$pass"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test prog = "$linkmode" && test link != "$pass"; then func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=false if test no != "$link_all_deplibs" || test -z "$library_names" || test no = "$build_libtool_libs"; then linkalldeplibs=: fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? if $linkalldeplibs; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... if test prog,link = "$linkmode,$pass"; then if test -n "$library_names" && { { test no = "$prefer_static_libs" || test built,yes = "$prefer_static_libs,$installed"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then # Make sure the rpath contains only unique directories. case $temp_rpath: in *"$absdir:"*) ;; *) func_append temp_rpath "$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi # $linkmode,$pass = prog,link... if $alldeplibs && { test pass_all = "$deplibs_check_method" || { test yes = "$build_libtool_libs" && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test built = "$use_static_libs" && test yes = "$installed"; then use_static_libs=no fi if test -n "$library_names" && { test no = "$use_static_libs" || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc* | *os2*) # No point in relinking DLLs because paths are not encoded func_append notinst_deplibs " $lib" need_relink=no ;; *) if test no = "$installed"; then func_append notinst_deplibs " $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule= for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule=$dlpremoduletest break fi done if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then echo if test prog = "$linkmode"; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test lib = "$linkmode" && test yes = "$hardcode_into_libs"; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname=$1 shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname=$dlname elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc* | *os2*) func_arith $current - $age major=$func_arith_result versuffix=-$major ;; esac eval soname=\"$soname_spec\" else soname=$realname fi # Make a new name for the extract_expsyms_cmds to use soroot=$soname func_basename "$soroot" soname=$func_basename_result func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from '$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for '$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test prog = "$linkmode" || test relink != "$opt_mode"; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test no = "$hardcode_direct"; then add=$dir/$linklib case $host in *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;; *-*-sysv4*uw2*) add_dir=-L$dir ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir=-L$dir ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we cannot # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library"; then echo echo "*** And there doesn't seem to be a static archive available" echo "*** The link will probably fail, sorry" else add=$dir/$old_library fi elif test -n "$old_library"; then add=$dir/$old_library fi fi esac elif test no = "$hardcode_minus_L"; then case $host in *-*-sunos*) add_shlibpath=$dir ;; esac add_dir=-L$dir add=-l$name elif test no = "$hardcode_shlibpath_var"; then add_shlibpath=$dir add=-l$name else lib_linked=no fi ;; relink) if test yes = "$hardcode_direct" && test no = "$hardcode_direct_absolute"; then add=$dir/$linklib elif test yes = "$hardcode_minus_L"; then add_dir=-L$absdir # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add=-l$name elif test yes = "$hardcode_shlibpath_var"; then add_shlibpath=$dir add=-l$name else lib_linked=no fi ;; *) lib_linked=no ;; esac if test yes != "$lib_linked"; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test prog = "$linkmode"; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test yes != "$hardcode_direct" && test yes != "$hardcode_minus_L" && test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi if test prog = "$linkmode" || test relink = "$opt_mode"; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test yes = "$hardcode_direct" && test no = "$hardcode_direct_absolute"; then add=$libdir/$linklib elif test yes = "$hardcode_minus_L"; then add_dir=-L$libdir add=-l$name elif test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac add=-l$name elif test yes = "$hardcode_automatic"; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib"; then add=$inst_prefix_dir$libdir/$linklib else add=$libdir/$linklib fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir=-L$libdir # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add=-l$name fi if test prog = "$linkmode"; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test prog = "$linkmode"; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test unsupported != "$hardcode_direct"; then test -n "$old_library" && linklib=$old_library compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test yes = "$build_libtool_libs"; then # Not a shared library if test pass_all != "$deplibs_check_method"; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. echo $ECHO "*** Warning: This system cannot link to static lib archive $lib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have." if test yes = "$module"; then echo "*** But as you try to build a module library, libtool will still create " echo "*** a static module, that should work as long as the dlopening application" echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using 'nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** 'nm' from GNU binutils and a full rebuild may help." fi if test no = "$build_old_libs"; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test lib = "$linkmode"; then if test -n "$dependency_libs" && { test yes != "$hardcode_into_libs" || test yes = "$build_old_libs" || test yes = "$link_static"; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) func_append xrpath " $temp_xrpath";; esac;; *) func_append temp_deplibs " $libdir";; esac done dependency_libs=$temp_deplibs fi func_append newlib_search_path " $absdir" # Link against this library test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result";; *) func_resolve_sysroot "$deplib" ;; esac if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $func_resolve_sysroot_result "*) func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi func_append tmp_libs " $func_resolve_sysroot_result" done if test no != "$link_all_deplibs"; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path=$deplib ;; *.la) func_resolve_sysroot "$deplib" deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of '$dir'" absdir=$dir fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names"; then for tmp in $deplibrary_names; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl"; then depdepl=$absdir/$objdir/$depdepl darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl" func_append linker_flags " -dylib_file $darwin_install_name:$depdepl" path= fi fi ;; *) path=-L$absdir/$objdir ;; esac else eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "'$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "'$deplib' seems to be moved" path=-L$absdir fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test link = "$pass"; then if test prog = "$linkmode"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs=$newdependency_libs if test dlpreopen = "$pass"; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test dlopen != "$pass"; then test conv = "$pass" || { # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= } if test prog,link = "$linkmode,$pass"; then vars="compile_deplibs finalize_deplibs" else vars=deplibs fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) func_append tmp_libs " $deplib" ;; esac ;; *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Add Sun CC postdeps if required: test CXX = "$tagname" && { case $host_os in linux*) case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C++ 5.9 func_suncc_cstd_abi if test no != "$suncc_use_cstd_abi"; then func_append postdeps ' -library=Cstd -library=Crun' fi ;; esac ;; solaris*) func_cc_basename "$CC" case $func_cc_basename_result in CC* | sunCC*) func_suncc_cstd_abi if test no != "$suncc_use_cstd_abi"; then func_append postdeps ' -library=Cstd -library=Crun' fi ;; esac ;; esac } # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i= ;; esac if test -n "$i"; then func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs done # for pass if test prog = "$linkmode"; then dlfiles=$newdlfiles fi if test prog = "$linkmode" || test lib = "$linkmode"; then dlprefiles=$newdlprefiles fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then func_warning "'-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "'-l' and '-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "'-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "'-R' is ignored for archives" test -n "$vinfo" && \ func_warning "'-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "'-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "'-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs=$output func_append objs "$old_deplibs" ;; lib) # Make sure we only generate libraries of the form 'libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test no = "$module" \ && func_fatal_help "libtool library '$output' must begin with 'lib'" if test no != "$need_lib_prefix"; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test pass_all != "$deplibs_check_method"; then func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs" else echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" func_append libobjs " $objs" fi fi test no = "$dlself" \ || func_warning "'-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test 1 -lt "$#" \ && func_warning "ignoring multiple '-rpath's for a libtool library" install_libdir=$1 oldlibs= if test -z "$rpath"; then if test yes = "$build_libtool_libs"; then # Building a libtool convenience library. # Some compilers have problems with a '.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "'-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "'-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs=$IFS; IFS=: set dummy $vinfo 0 0 0 shift IFS=$save_ifs test -n "$7" && \ func_fatal_help "too many parameters to '-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major=$1 number_minor=$2 number_revision=$3 # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # that has an extra 1 added just for fun # case $version_type in # correct linux to gnu/linux during the next big refactor darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor revision=$number_revision ;; freebsd-aout|qnx|sunos) current=$number_major revision=$number_minor age=0 ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor revision=$number_minor lt_irix_increment=no ;; esac ;; no) current=$1 revision=$2 age=$3 ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT '$current' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION '$revision' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE '$age' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE '$age' is greater than the current interface number '$current'" func_fatal_error "'$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" # On Darwin other compilers case $CC in nagfor*) verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" ;; *) verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; esac ;; freebsd-aout) major=.$current versuffix=.$current.$revision ;; freebsd-elf | midnightbsd-elf) func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision ;; irix | nonstopux) if test no = "$lt_irix_increment"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring=$verstring_prefix$major.$revision # Add in all the interfaces that we are compatible with. loop=$revision while test 0 -ne "$loop"; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring=$verstring_prefix$major.$iface:$verstring done # Before this point, $major must not contain '.'. major=.$major versuffix=$major.$revision ;; linux) # correct to gnu/linux during the next big refactor func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=.$current.$age.$revision verstring=$current.$age.$revision # Add in all the interfaces that we are compatible with. loop=$age while test 0 -ne "$loop"; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring=$verstring:$iface.0 done # Make executables depend on our current version. func_append verstring ":$current.0" ;; qnx) major=.$current versuffix=.$current ;; sco) major=.$current versuffix=.$current ;; sunos) major=.$current versuffix=.$current.$revision ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 file systems. func_arith $current - $age major=$func_arith_result versuffix=-$major ;; *) func_fatal_configuration "unknown library version type '$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring=0.0 ;; esac if test no = "$need_version"; then versuffix= else versuffix=.0.0 fi fi # Remove version info from name if versioning should be avoided if test yes,no = "$avoid_version,$need_version"; then major= versuffix= verstring= fi # Check to see if the archive will have undefined symbols. if test yes = "$allow_undefined"; then if test unsupported = "$allow_undefined_flag"; then if test yes = "$build_old_libs"; then func_warning "undefined symbols not allowed in $host shared libraries; building static only" build_libtool_libs=no else func_fatal_error "can't build $host shared library unless -no-undefined is specified" fi fi else # Don't allow undefined symbols. allow_undefined_flag=$no_undefined_flag fi fi func_generate_dlsyms "$libname" "$libname" : func_append libobjs " $symfileobj" test " " = "$libobjs" && libobjs= if test relink != "$opt_mode"; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*) if test -n "$precious_files_regex"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi func_append removelist " $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do func_replace_sysroot "$libdir" func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles=$dlfiles dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) func_append dlfiles " $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles=$dlprefiles dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) func_append dlprefiles " $lib" ;; esac done if test yes = "$build_libtool_libs"; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test yes = "$build_libtool_need_lc"; then func_append deplibs " -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release= versuffix= major= newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` $nocaseglob else potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` fi for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib=$potent_lib while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | $SED 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;; *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib= break 2 fi done done fi if test -n "$a_deplib"; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib"; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $a_deplib "*) func_append newdeplibs " $a_deplib" a_deplib= ;; esac fi if test -n "$a_deplib"; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib=$potent_lib # see symlink-check above in file_magic test if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib= break 2 fi done done fi if test -n "$a_deplib"; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib"; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs= tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` if test yes = "$allow_libtool_libs_with_static_runtimes"; then for i in $predeps $postdeps; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"` done fi case $tmp_deplibs in *[!\ \ ]*) echo if test none = "$deplibs_check_method"; then echo "*** Warning: inter-library dependencies are not supported in this platform." else echo "*** Warning: inter-library dependencies are not known to be supported." fi echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes ;; esac ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test yes = "$droppeddeps"; then if test yes = "$module"; then echo echo "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" echo "*** a static module, that should work as long as the dlopening" echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using 'nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** 'nm' from GNU binutils and a full rebuild may help." fi if test no = "$build_old_libs"; then oldlibs=$output_objdir/$libname.$libext build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else echo "*** The inter-library dependencies that have been dropped here will be" echo "*** automatically added whenever a program is linked with this library" echo "*** or is declared to -dlopen it." if test no = "$allow_undefined"; then echo echo "*** Since this library must not contain undefined symbols," echo "*** because either the platform does not support them or" echo "*** it was explicitly requested with -no-undefined," echo "*** libtool will only create a static version of it." if test no = "$build_old_libs"; then oldlibs=$output_objdir/$libname.$libext build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done deplibs=$new_libs # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test yes = "$build_libtool_libs"; then # Remove $wl instances when linking with ld. # FIXME: should test the right _cmds variable. case $archive_cmds in *\$LD\ *) wl= ;; esac if test yes = "$hardcode_into_libs"; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath=$finalize_rpath test relink = "$opt_mode" || rpath=$compile_rpath$rpath for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then func_replace_sysroot "$libdir" libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath=$finalize_shlibpath test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname=$1 shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname=$realname fi if test -z "$dlname"; then dlname=$soname fi lib=$output_objdir/$realname linknames= for link do func_append linknames " $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols=$output_objdir/$libname.uexp func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile func_dll_def_p "$export_symbols" || { # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols=$export_symbols export_symbols= always_export_symbols=yes } fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for '$libname.la'" export_symbols=$output_objdir/$libname.exp $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs=$IFS; IFS='~' for cmd1 in $cmds; do IFS=$save_ifs # Take the normal branch if the nm_file_list_spec branch # doesn't work or if tool conversion is not needed. case $nm_file_list_spec~$to_tool_file_cmd in *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) try_normal_branch=yes eval cmd=\"$cmd1\" func_len " $cmd" len=$func_len_result ;; *) try_normal_branch=no ;; esac if test yes = "$try_normal_branch" \ && { test "$len" -lt "$max_cmd_len" \ || test "$max_cmd_len" -le -1; } then func_show_eval "$cmd" 'exit $?' skipped_export=false elif test -n "$nm_file_list_spec"; then func_basename "$output" output_la=$func_basename_result save_libobjs=$libobjs save_output=$output output=$output_objdir/$output_la.nm func_to_tool_file "$output" libobjs=$nm_file_list_spec$func_to_tool_file_result func_append delfiles " $output" func_verbose "creating $NM input file list: $output" for obj in $save_libobjs; do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > "$output" eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' output=$save_output libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS=$save_ifs if test -n "$export_symbols_regex" && test : != "$skipped_export"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols=$export_symbols test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test : != "$skipped_export" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for '$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands, which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) func_append tmp_deplibs " $test_deplib" ;; esac done deplibs=$tmp_deplibs if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test yes = "$compiler_needs_object" && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $convenience func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking if test relink = "$opt_mode"; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test yes = "$module" && test -n "$module_cmds"; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test : != "$skipped_export" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output func_basename "$output" output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then output=$output_objdir/$output_la.lnkscript func_verbose "creating GNU ld script: $output" echo 'INPUT (' > $output for obj in $save_libobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done echo ')' >> $output func_append delfiles " $output" func_to_tool_file "$output" output=$func_to_tool_file_result elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then output=$output_objdir/$output_la.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test yes = "$compiler_needs_object"; then firstobj="$1 " shift fi for obj do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done func_append delfiles " $output" func_to_tool_file "$output" output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-$k.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test -z "$objlist" || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test 1 -eq "$k"; then # The first file doesn't have a previous command to add. reload_objs=$objlist eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-$k.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-$k.$objext objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi func_append delfiles " $output" else output= fi ${skipped_export-false} && { func_verbose "generating symbol list for '$libname.la'" export_symbols=$output_objdir/$libname.exp $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi } test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs=$IFS; IFS='~' for cmd in $concat_cmds; do IFS=$save_ifs $opt_quiet || { func_quote_arg expand,pretty "$cmd" eval "func_echo $func_quote_arg_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test relink = "$opt_mode"; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS=$save_ifs if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi ${skipped_export-false} && { if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols=$export_symbols test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for '$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands, which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi } libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test yes = "$module" && test -n "$module_cmds"; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs=$IFS; IFS='~' for cmd in $cmds; do IFS=$sp$nl eval cmd=\"$cmd\" IFS=$save_ifs $opt_quiet || { func_quote_arg expand,pretty "$cmd" eval "func_echo $func_quote_arg_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test relink = "$opt_mode"; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS=$save_ifs # Restore the uninstalled library and exit if test relink = "$opt_mode"; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test yes = "$module" || test yes = "$export_dynamic"; then # On all known operating systems, these are identical. dlname=$soname fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then func_warning "'-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "'-l' and '-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "'-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "'-R' is ignored for objects" test -n "$vinfo" && \ func_warning "'-version-info' is ignored for objects" test -n "$release" && \ func_warning "'-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object '$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj=$output ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # if reload_cmds runs $LD directly, get rid of -Wl from # whole_archive_flag_spec and hope we can get by with turning comma # into space. case $reload_cmds in *\$LD[\ \$]*) wl= ;; esac if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags else gentop=$output_objdir/${obj}x func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # If we're not building shared, we need to use non_pic_objs test yes = "$build_libtool_libs" || libobjs=$non_pic_objects # Create the old-style object. reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs output=$obj func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi test yes = "$build_libtool_libs" || { if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS } if test -n "$pic_flag" || test default != "$pic_mode"; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output=$libobj func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "'-version-info' is ignored for programs" test -n "$release" && \ func_warning "'-release' is ignored for programs" $preload \ && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \ && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test CXX = "$tagname"; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) func_append compile_command " $wl-bind_at_load" func_append finalize_command " $wl-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done compile_deplibs=$new_libs func_append compile_command " $compile_deplibs" func_append finalize_command " $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath=$rpath rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) func_append finalize_perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath=$rpath if test -n "$libobjs" && test yes = "$build_old_libs"; then # Transform all the library objects into standard objects. compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" false # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=: case $host in *cegcc* | *mingw32ce*) # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. wrappers_required=false ;; *cygwin* | *mingw* ) test yes = "$build_libtool_libs" || wrappers_required=false ;; *) if test no = "$need_relink" || test yes != "$build_libtool_libs"; then wrappers_required=false fi ;; esac $wrappers_required || { # Replace the output file specification. compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command=$compile_command$compile_rpath # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Delete the generated files. if test -f "$output_objdir/${outputname}S.$objext"; then func_show_eval '$RM "$output_objdir/${outputname}S.$objext"' fi exit $exit_status } if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test yes = "$no_install"; then # We don't need to create a wrapper script. link_command=$compile_var$compile_command$compile_rpath # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi exit $EXIT_SUCCESS fi case $hardcode_action,$fast_install in relink,*) # Fast installation is not supported link_command=$compile_var$compile_command$compile_rpath relink_command=$finalize_var$finalize_command$finalize_rpath func_warning "this platform does not like uninstalled shared libraries" func_warning "'$output' will be relinked during installation" ;; *,yes) link_command=$finalize_var$compile_command$finalize_rpath relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` ;; *,no) link_command=$compile_var$compile_command$compile_rpath relink_command=$finalize_var$finalize_command$finalize_rpath ;; *,needless) link_command=$finalize_var$compile_command$finalize_rpath relink_command= ;; esac # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output_objdir/$outputname" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_arg pretty "$var_value" relink_command="$var=$func_quote_arg_result; export $var; $relink_command" fi done func_quote eval cd "`pwd`" func_quote_arg pretty,unquoted "($func_quote_result; $relink_command)" relink_command=$func_quote_arg_unquoted_result fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource=$output_path/$objdir/lt-$output_name.c cwrapper=$output_path/$output_name.exe $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host"; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do case $build_libtool_libs in convenience) oldobjs="$libobjs_save $symfileobj" addlibs=$convenience build_libtool_libs=no ;; module) oldobjs=$libobjs_save addlibs=$old_convenience build_libtool_libs=no ;; *) oldobjs="$old_deplibs $non_pic_objects" $preload && test -f "$symfileobj" \ && func_append oldobjs " $symfileobj" addlibs=$old_convenience ;; esac if test -n "$addlibs"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $addlibs func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else echo "copying selected object files to avoid basename conflicts..." gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase=$func_basename_result case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" func_append oldobjs " $gentop/$newobj" ;; *) func_append oldobjs " $obj" ;; esac done fi func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds elif test -n "$archiver_list_spec"; then func_verbose "using command file archive linking..." for obj in $oldobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > $output_objdir/$libname.libcmd func_to_tool_file "$output_objdir/$libname.libcmd" oldobjs=" $archiver_list_spec$func_to_tool_file_result" cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj"; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test -z "$oldobjs"; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test yes = "$build_old_libs" && old_library=$libname.$libext func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_arg pretty,unquoted "$var_value" relink_command="$var=$func_quote_arg_unquoted_result; export $var; $relink_command" fi done # Quote the link command for shipping. func_quote eval cd "`pwd`" relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" func_quote_arg pretty,unquoted "$relink_command" relink_command=$func_quote_arg_unquoted_result if test yes = "$hardcode_automatic"; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test yes = "$installed"; then if test -z "$install_libdir"; then break fi output=$output_objdir/${outputname}i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name=$func_basename_result func_resolve_sysroot "$deplib" eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` test -z "$libdir" && \ func_fatal_error "'$deplib' is not a valid libtool archive" func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" ;; -L*) func_stripname -L '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -L$func_replace_sysroot_result" ;; -R*) func_stripname -R '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -R$func_replace_sysroot_result" ;; *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs=$newdependency_libs newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name=$func_basename_result eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "'$lib' is not a valid libtool archive" func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; *) func_append newdlfiles " $lib" ;; esac done dlfiles=$newdlfiles newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name=$func_basename_result eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "'$lib' is not a valid libtool archive" func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done dlprefiles=$newdlprefiles else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlfiles " $abs" done dlfiles=$newdlfiles newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlprefiles " $abs" done dlprefiles=$newdlprefiles fi $RM $output # place dlname in correct position for cygwin # In fact, it would be nice if we could use this code for all target # systems that can't hard-code library paths into their executables # and that have no shared library path variable independent of PATH, # but it turns out we can't easily determine that from inspecting # libtool variables, so we have to hard-code the OSs to which it # applies here; at the moment, that means platforms that use the PE # object format with DLL files. See the long comment at the top of # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) # If a -bindir argument was supplied, place the dll there. if test -n "$bindir"; then func_relative_path "$install_libdir" "$bindir" tdlname=$func_relative_path_result/$dlname else # Otherwise fall back on heuristic. tdlname=../bin/$dlname fi ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that cannot go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test no,yes = "$installed,$need_relink"; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } if test link = "$opt_mode" || test relink = "$opt_mode"; then func_mode_link ${1+"$@"} fi # func_mode_uninstall arg... func_mode_uninstall () { $debug_cmd RM=$nonopt files= rmforce=false exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic=$magic for arg do case $arg in -f) func_append RM " $arg"; rmforce=: ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= for file in $files; do func_dirname "$file" "" "." dir=$func_dirname_result if test . = "$dir"; then odir=$objdir else odir=$dir/$objdir fi func_basename "$file" name=$func_basename_result test uninstall = "$opt_mode" && odir=$dir # Remember odir for removal later, being careful to avoid duplicates if test clean = "$opt_mode"; then case " $rmdirs " in *" $odir "*) ;; *) func_append rmdirs " $odir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif $rmforce; then continue fi rmfiles=$file case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do func_append rmfiles " $odir/$n" done test -n "$old_library" && func_append rmfiles " $odir/$old_library" case $opt_mode in clean) case " $library_names " in *" $dlname "*) ;; *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test none != "$pic_object"; then func_append rmfiles " $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test none != "$non_pic_object"; then func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) if test clean = "$opt_mode"; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles func_append rmfiles " $odir/$name $odir/${name}S.$objext" if test yes = "$fast_install" && test -n "$relink_command"; then func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name"; then func_append rmfiles " $odir/lt-$noexename.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done # Try to remove the $objdir's in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then func_mode_uninstall ${1+"$@"} fi test -z "$opt_mode" && { help=$generic_help func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode '$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # where we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: libzdb-3.4.0/config/config.guess000755 000765 000024 00000140304 14652557230 016657 0ustar00haukstaff000000 000000 #! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2021 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale timestamp='2021-06-03' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess # # Please send patches to . # The "shellcheck disable" line above the timestamp inhibits complaints # about features and limitations of the classic Bourne shell that were # superseded or lifted in POSIX. However, this script identifies a wide # variety of pre-POSIX systems that do not have POSIX shells at all, and # even some reasonably current systems (Solaris 10 as case-in-point) still # have a pre-POSIX /bin/sh. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi # Just in case it came from the environment. GUESS= # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. tmp= # shellcheck disable=SC2172 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 set_cc_for_build() { # prevent multiple calls if $tmp is already set test "$tmp" && return 0 : "${TMPDIR=/tmp}" # shellcheck disable=SC2039,SC3028 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } dummy=$tmp/dummy case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in ,,) echo "int x;" > "$dummy.c" for driver in cc gcc c89 c99 ; do if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD=$driver break fi done if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac } # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if test -f /.attbin/uname ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case $UNAME_SYSTEM in Linux|GNU|GNU/*) LIBC=unknown set_cc_for_build cat <<-EOF > "$dummy.c" #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #elif defined(__GLIBC__) LIBC=gnu #else #include /* First heuristic to detect musl libc. */ #ifdef __DEFINED_va_list LIBC=musl #endif #endif EOF cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` eval "$cc_set_libc" # Second heuristic to detect musl libc. if [ "$LIBC" = unknown ] && command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl; then LIBC=musl fi # If the system lacks a compiler, then just pick glibc. # We could probably try harder. if [ "$LIBC" = unknown ]; then LIBC=gnu fi ;; esac # Note: order is significant - the case branches are not exclusive. case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ echo unknown)` case $UNAME_MACHINE_ARCH in aarch64eb) machine=aarch64_be-unknown ;; armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` machine=${arch}${endian}-unknown ;; *) machine=$UNAME_MACHINE_ARCH-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently (or will in the future) and ABI. case $UNAME_MACHINE_ARCH in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # Determine ABI tags. case $UNAME_MACHINE_ARCH in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case $UNAME_VERSION in Debian*) release='-gnu' ;; *) release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. GUESS=$machine-${os}${release}${abi-} ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE ;; *:SecBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE ;; *:MidnightBSD:*:*) GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE ;; *:ekkoBSD:*:*) GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE ;; *:SolidBSD:*:*) GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE ;; *:OS108:*:*) GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE ;; macppc:MirBSD:*:*) GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE ;; *:MirBSD:*:*) GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE ;; *:Sortix:*:*) GUESS=$UNAME_MACHINE-unknown-sortix ;; *:Twizzler:*:*) GUESS=$UNAME_MACHINE-unknown-twizzler ;; *:Redox:*:*) GUESS=$UNAME_MACHINE-unknown-redox ;; mips:OSF1:*.*) GUESS=mips-dec-osf1 ;; alpha:OSF1:*:*) # Reset EXIT trap before exiting to avoid spurious non-zero exit code. trap '' 0 case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case $ALPHA_CPU_TYPE in "EV4 (21064)") UNAME_MACHINE=alpha ;; "EV4.5 (21064)") UNAME_MACHINE=alpha ;; "LCA4 (21066/21068)") UNAME_MACHINE=alpha ;; "EV5 (21164)") UNAME_MACHINE=alphaev5 ;; "EV5.6 (21164A)") UNAME_MACHINE=alphaev56 ;; "EV5.6 (21164PC)") UNAME_MACHINE=alphapca56 ;; "EV5.7 (21164PC)") UNAME_MACHINE=alphapca57 ;; "EV6 (21264)") UNAME_MACHINE=alphaev6 ;; "EV6.7 (21264A)") UNAME_MACHINE=alphaev67 ;; "EV6.8CB (21264C)") UNAME_MACHINE=alphaev68 ;; "EV6.8AL (21264B)") UNAME_MACHINE=alphaev68 ;; "EV6.8CX (21264D)") UNAME_MACHINE=alphaev68 ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE=alphaev69 ;; "EV7 (21364)") UNAME_MACHINE=alphaev7 ;; "EV7.9 (21364A)") UNAME_MACHINE=alphaev79 ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` GUESS=$UNAME_MACHINE-dec-osf$OSF_REL ;; Amiga*:UNIX_System_V:4.0:*) GUESS=m68k-unknown-sysv4 ;; *:[Aa]miga[Oo][Ss]:*:*) GUESS=$UNAME_MACHINE-unknown-amigaos ;; *:[Mm]orph[Oo][Ss]:*:*) GUESS=$UNAME_MACHINE-unknown-morphos ;; *:OS/390:*:*) GUESS=i370-ibm-openedition ;; *:z/VM:*:*) GUESS=s390-ibm-zvmoe ;; *:OS400:*:*) GUESS=powerpc-ibm-os400 ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) GUESS=arm-acorn-riscix$UNAME_RELEASE ;; arm*:riscos:*:*|arm*:RISCOS:*:*) GUESS=arm-unknown-riscos ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) GUESS=hppa1.1-hitachi-hiuxmpp ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. case `(/bin/universe) 2>/dev/null` in att) GUESS=pyramid-pyramid-sysv3 ;; *) GUESS=pyramid-pyramid-bsd ;; esac ;; NILE*:*:*:dcosx) GUESS=pyramid-pyramid-svr4 ;; DRS?6000:unix:4.0:6*) GUESS=sparc-icl-nx6 ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) GUESS=sparc-icl-nx7 ;; esac ;; s390x:SunOS:*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL ;; sun4H:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-hal-solaris2$SUN_REL ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris2$SUN_REL ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) GUESS=i386-pc-auroraux$UNAME_RELEASE ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) set_cc_for_build SUN_ARCH=i386 # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH=x86_64 fi fi SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$SUN_ARCH-pc-solaris2$SUN_REL ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris3$SUN_REL ;; sun4*:SunOS:*:*) case `/usr/bin/arch -k` in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` GUESS=sparc-sun-sunos$SUN_REL ;; sun3*:SunOS:*:*) GUESS=m68k-sun-sunos$UNAME_RELEASE ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 case `/bin/arch` in sun3) GUESS=m68k-sun-sunos$UNAME_RELEASE ;; sun4) GUESS=sparc-sun-sunos$UNAME_RELEASE ;; esac ;; aushp:SunOS:*:*) GUESS=sparc-auspex-sunos$UNAME_RELEASE ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) GUESS=m68k-milan-mint$UNAME_RELEASE ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) GUESS=m68k-hades-mint$UNAME_RELEASE ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) GUESS=m68k-unknown-mint$UNAME_RELEASE ;; m68k:machten:*:*) GUESS=m68k-apple-machten$UNAME_RELEASE ;; powerpc:machten:*:*) GUESS=powerpc-apple-machten$UNAME_RELEASE ;; RISC*:Mach:*:*) GUESS=mips-dec-mach_bsd4.3 ;; RISC*:ULTRIX:*:*) GUESS=mips-dec-ultrix$UNAME_RELEASE ;; VAX*:ULTRIX*:*:*) GUESS=vax-dec-ultrix$UNAME_RELEASE ;; 2020:CLIX:*:* | 2430:CLIX:*:*) GUESS=clipper-intergraph-clix$UNAME_RELEASE ;; mips:*:*:UMIPS | mips:*:*:RISCos) set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`"$dummy" "$dummyarg"` && { echo "$SYSTEM_NAME"; exit; } GUESS=mips-mips-riscos$UNAME_RELEASE ;; Motorola:PowerMAX_OS:*:*) GUESS=powerpc-motorola-powermax ;; Motorola:*:4.3:PL8-*) GUESS=powerpc-harris-powermax ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) GUESS=powerpc-harris-powermax ;; Night_Hawk:Power_UNIX:*:*) GUESS=powerpc-harris-powerunix ;; m88k:CX/UX:7*:*) GUESS=m88k-harris-cxux7 ;; m88k:*:4*:R4*) GUESS=m88k-motorola-sysv4 ;; m88k:*:3*:R3*) GUESS=m88k-motorola-sysv3 ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 then if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ test "$TARGET_BINARY_INTERFACE"x = x then GUESS=m88k-dg-dgux$UNAME_RELEASE else GUESS=m88k-dg-dguxbcs$UNAME_RELEASE fi else GUESS=i586-dg-dgux$UNAME_RELEASE fi ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) GUESS=m88k-dolphin-sysv3 ;; M88*:*:R3*:*) # Delta 88k system running SVR3 GUESS=m88k-motorola-sysv3 ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) GUESS=m88k-tektronix-sysv3 ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) GUESS=m68k-tektronix-bsd ;; *:IRIX*:*:*) IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` GUESS=mips-sgi-irix$IRIX_REL ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) GUESS=i386-ibm-aix ;; ia64:AIX:*:*) if test -x /usr/bin/oslevel ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` then GUESS=$SYSTEM_NAME else GUESS=rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then GUESS=rs6000-ibm-aix3.2.4 else GUESS=rs6000-ibm-aix3.2 fi ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if test -x /usr/bin/lslpp ; then IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi GUESS=$IBM_ARCH-ibm-aix$IBM_REV ;; *:AIX:*:*) GUESS=rs6000-ibm-aix ;; ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) GUESS=romp-ibm-bsd4.4 ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) GUESS=rs6000-bull-bosx ;; DPX/2?00:B.O.S.:*:*) GUESS=m68k-bull-sysv3 ;; 9000/[34]??:4.3bsd:1.*:*) GUESS=m68k-hp-bsd ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) GUESS=m68k-hp-bsd4.4 ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` case $UNAME_MACHINE in 9000/31?) HP_ARCH=m68000 ;; 9000/[34]??) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if test -x /usr/bin/getconf; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case $sc_cpu_version in 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case $sc_kernel_bits in 32) HP_ARCH=hppa2.0n ;; 64) HP_ARCH=hppa2.0w ;; '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 esac ;; esac fi if test "$HP_ARCH" = ""; then set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if test "$HP_ARCH" = hppa2.0w then set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH=hppa2.0w else HP_ARCH=hppa64 fi fi GUESS=$HP_ARCH-hp-hpux$HPUX_REV ;; ia64:HP-UX:*:*) HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` GUESS=ia64-hp-hpux$HPUX_REV ;; 3050*:HI-UX:*:*) set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } GUESS=unknown-hitachi-hiuxwe2 ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) GUESS=hppa1.1-hp-bsd ;; 9000/8??:4.3bsd:*:*) GUESS=hppa1.0-hp-bsd ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) GUESS=hppa1.0-hp-mpeix ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) GUESS=hppa1.1-hp-osf ;; hp8??:OSF1:*:*) GUESS=hppa1.0-hp-osf ;; i*86:OSF1:*:*) if test -x /usr/sbin/sysversion ; then GUESS=$UNAME_MACHINE-unknown-osf1mk else GUESS=$UNAME_MACHINE-unknown-osf1 fi ;; parisc*:Lites*:*:*) GUESS=hppa1.1-hp-lites ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) GUESS=c1-convex-bsd ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) GUESS=c34-convex-bsd ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) GUESS=c38-convex-bsd ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) GUESS=c4-convex-bsd ;; CRAY*Y-MP:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=ymp-cray-unicos$CRAY_REL ;; CRAY*[A-Z]90:*:*:*) echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=t90-cray-unicos$CRAY_REL ;; CRAY*T3E:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=alphaev5-cray-unicosmk$CRAY_REL ;; CRAY*SV1:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=sv1-cray-unicos$CRAY_REL ;; *:UNICOS/mp:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=craynv-cray-unicosmp$CRAY_REL ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE ;; sparc*:BSD/OS:*:*) GUESS=sparc-unknown-bsdi$UNAME_RELEASE ;; *:BSD/OS:*:*) GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE ;; arm:FreeBSD:*:*) UNAME_PROCESSOR=`uname -p` set_cc_for_build if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi else FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf fi ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case $UNAME_PROCESSOR in amd64) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL ;; i*:CYGWIN*:*) GUESS=$UNAME_MACHINE-pc-cygwin ;; *:MINGW64*:*) GUESS=$UNAME_MACHINE-pc-mingw64 ;; *:MINGW*:*) GUESS=$UNAME_MACHINE-pc-mingw32 ;; *:MSYS*:*) GUESS=$UNAME_MACHINE-pc-msys ;; i*:PW*:*) GUESS=$UNAME_MACHINE-pc-pw32 ;; *:Interix*:*) case $UNAME_MACHINE in x86) GUESS=i586-pc-interix$UNAME_RELEASE ;; authenticamd | genuineintel | EM64T) GUESS=x86_64-unknown-interix$UNAME_RELEASE ;; IA64) GUESS=ia64-unknown-interix$UNAME_RELEASE ;; esac ;; i*:UWIN*:*) GUESS=$UNAME_MACHINE-pc-uwin ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) GUESS=x86_64-pc-cygwin ;; prep*:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=powerpcle-unknown-solaris2$SUN_REL ;; *:GNU:*:*) # the GNU system GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL ;; *:GNU/*:*:*) # other systems with GNU libc and userland GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC ;; *:Minix:*:*) GUESS=$UNAME_MACHINE-unknown-minix ;; aarch64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arm*:Linux:*:*) set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then GUESS=$UNAME_MACHINE-unknown-linux-$LIBC else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi else GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf fi fi ;; avr32*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; cris:Linux:*:*) GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; crisv32:Linux:*:*) GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; e2k:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; frv:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; hexagon:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; i*86:Linux:*:*) GUESS=$UNAME_MACHINE-pc-linux-$LIBC ;; ia64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; k1om:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m32r*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m68*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; mips:Linux:*:* | mips64:Linux:*:*) set_cc_for_build IS_GLIBC=0 test x"${LIBC}" = xgnu && IS_GLIBC=1 sed 's/^ //' << EOF > "$dummy.c" #undef CPU #undef mips #undef mipsel #undef mips64 #undef mips64el #if ${IS_GLIBC} && defined(_ABI64) LIBCABI=gnuabi64 #else #if ${IS_GLIBC} && defined(_ABIN32) LIBCABI=gnuabin32 #else LIBCABI=${LIBC} #endif #endif #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa64r6 #else #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa32r6 #else #if defined(__mips64) CPU=mips64 #else CPU=mips #endif #endif #endif #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) MIPS_ENDIAN=el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) MIPS_ENDIAN= #else MIPS_ENDIAN= #endif #endif EOF cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` eval "$cc_set_vars" test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } ;; mips64el:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; openrisc*:Linux:*:*) GUESS=or1k-unknown-linux-$LIBC ;; or32:Linux:*:* | or1k*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; padre:Linux:*:*) GUESS=sparc-unknown-linux-$LIBC ;; parisc64:Linux:*:* | hppa64:Linux:*:*) GUESS=hppa64-unknown-linux-$LIBC ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; *) GUESS=hppa-unknown-linux-$LIBC ;; esac ;; ppc64:Linux:*:*) GUESS=powerpc64-unknown-linux-$LIBC ;; ppc:Linux:*:*) GUESS=powerpc-unknown-linux-$LIBC ;; ppc64le:Linux:*:*) GUESS=powerpc64le-unknown-linux-$LIBC ;; ppcle:Linux:*:*) GUESS=powerpcle-unknown-linux-$LIBC ;; riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; s390:Linux:*:* | s390x:Linux:*:*) GUESS=$UNAME_MACHINE-ibm-linux-$LIBC ;; sh64*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; sh*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; sparc:Linux:*:* | sparc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; tile*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; vax:Linux:*:*) GUESS=$UNAME_MACHINE-dec-linux-$LIBC ;; x86_64:Linux:*:*) set_cc_for_build LIBCABI=$LIBC if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_X32 >/dev/null then LIBCABI=${LIBC}x32 fi fi GUESS=$UNAME_MACHINE-pc-linux-$LIBCABI ;; xtensa*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. GUESS=i386-sequent-sysv4 ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. GUESS=$UNAME_MACHINE-pc-os2-emx ;; i*86:XTS-300:*:STOP) GUESS=$UNAME_MACHINE-unknown-stop ;; i*86:atheos:*:*) GUESS=$UNAME_MACHINE-unknown-atheos ;; i*86:syllable:*:*) GUESS=$UNAME_MACHINE-pc-syllable ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) GUESS=i386-unknown-lynxos$UNAME_RELEASE ;; i*86:*DOS:*:*) GUESS=$UNAME_MACHINE-pc-msdosdjgpp ;; i*86:*:4.*:*) UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL else GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL fi ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL else GUESS=$UNAME_MACHINE-pc-sysv32 fi ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configure will decide that # this is a cross-build. GUESS=i586-pc-msdosdjgpp ;; Intel:Mach:3*:*) GUESS=i386-pc-mach3 ;; paragon:*:*:*) GUESS=i860-intel-osf1 ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 fi ;; mini*:CTIX:SYS*5:*) # "miniframe" GUESS=m68010-convergent-sysv ;; mc68k:UNIX:SYSTEM5:3.51m) GUESS=m68k-convergent-sysv ;; M680?0:D-NIX:5.3:*) GUESS=m68k-diab-dnix ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) GUESS=m68k-unknown-lynxos$UNAME_RELEASE ;; mc68030:UNIX_System_V:4.*:*) GUESS=m68k-atari-sysv4 ;; TSUNAMI:LynxOS:2.*:*) GUESS=sparc-unknown-lynxos$UNAME_RELEASE ;; rs6000:LynxOS:2.*:*) GUESS=rs6000-unknown-lynxos$UNAME_RELEASE ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) GUESS=powerpc-unknown-lynxos$UNAME_RELEASE ;; SM[BE]S:UNIX_SV:*:*) GUESS=mips-dde-sysv$UNAME_RELEASE ;; RM*:ReliantUNIX-*:*:*) GUESS=mips-sni-sysv4 ;; RM*:SINIX-*:*:*) GUESS=mips-sni-sysv4 ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` GUESS=$UNAME_MACHINE-sni-sysv4 else GUESS=ns32k-sni-sysv fi ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says GUESS=i586-unisys-sysv4 ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm GUESS=hppa1.1-stratus-sysv4 ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. GUESS=i860-stratus-sysv4 ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. GUESS=$UNAME_MACHINE-stratus-vos ;; *:VOS:*:*) # From Paul.Green@stratus.com. GUESS=hppa1.1-stratus-vos ;; mc68*:A/UX:*:*) GUESS=m68k-apple-aux$UNAME_RELEASE ;; news*:NEWS-OS:6*:*) GUESS=mips-sony-newsos6 ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if test -d /usr/nec; then GUESS=mips-nec-sysv$UNAME_RELEASE else GUESS=mips-unknown-sysv$UNAME_RELEASE fi ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. GUESS=powerpc-be-beos ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. GUESS=powerpc-apple-beos ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. GUESS=i586-pc-beos ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. GUESS=i586-pc-haiku ;; x86_64:Haiku:*:*) GUESS=x86_64-unknown-haiku ;; SX-4:SUPER-UX:*:*) GUESS=sx4-nec-superux$UNAME_RELEASE ;; SX-5:SUPER-UX:*:*) GUESS=sx5-nec-superux$UNAME_RELEASE ;; SX-6:SUPER-UX:*:*) GUESS=sx6-nec-superux$UNAME_RELEASE ;; SX-7:SUPER-UX:*:*) GUESS=sx7-nec-superux$UNAME_RELEASE ;; SX-8:SUPER-UX:*:*) GUESS=sx8-nec-superux$UNAME_RELEASE ;; SX-8R:SUPER-UX:*:*) GUESS=sx8r-nec-superux$UNAME_RELEASE ;; SX-ACE:SUPER-UX:*:*) GUESS=sxace-nec-superux$UNAME_RELEASE ;; Power*:Rhapsody:*:*) GUESS=powerpc-apple-rhapsody$UNAME_RELEASE ;; *:Rhapsody:*:*) GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE ;; arm64:Darwin:*:*) GUESS=aarch64-apple-darwin$UNAME_RELEASE ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac if command -v xcode-select > /dev/null 2> /dev/null && \ ! xcode-select --print-path > /dev/null 2> /dev/null ; then # Avoid executing cc if there is no toolchain installed as # cc will be a stub that puts up a graphical alert # prompting the user to install developer tools. CC_FOR_BUILD=no_compiler_found else set_cc_for_build fi if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_PPC >/dev/null then UNAME_PROCESSOR=powerpc fi elif test "$UNAME_PROCESSOR" = i386 ; then # uname -m returns i386 or x86_64 UNAME_PROCESSOR=$UNAME_MACHINE fi GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = x86; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE ;; *:QNX:*:4*) GUESS=i386-pc-qnx ;; NEO-*:NONSTOP_KERNEL:*:*) GUESS=neo-tandem-nsk$UNAME_RELEASE ;; NSE-*:NONSTOP_KERNEL:*:*) GUESS=nse-tandem-nsk$UNAME_RELEASE ;; NSR-*:NONSTOP_KERNEL:*:*) GUESS=nsr-tandem-nsk$UNAME_RELEASE ;; NSV-*:NONSTOP_KERNEL:*:*) GUESS=nsv-tandem-nsk$UNAME_RELEASE ;; NSX-*:NONSTOP_KERNEL:*:*) GUESS=nsx-tandem-nsk$UNAME_RELEASE ;; *:NonStop-UX:*:*) GUESS=mips-compaq-nonstopux ;; BS2000:POSIX*:*:*) GUESS=bs2000-siemens-sysv ;; DS/*:UNIX_System_V:*:*) GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "${cputype-}" = 386; then UNAME_MACHINE=i386 elif test "x${cputype-}" != x; then UNAME_MACHINE=$cputype fi GUESS=$UNAME_MACHINE-unknown-plan9 ;; *:TOPS-10:*:*) GUESS=pdp10-unknown-tops10 ;; *:TENEX:*:*) GUESS=pdp10-unknown-tenex ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) GUESS=pdp10-dec-tops20 ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) GUESS=pdp10-xkl-tops20 ;; *:TOPS-20:*:*) GUESS=pdp10-unknown-tops20 ;; *:ITS:*:*) GUESS=pdp10-unknown-its ;; SEI:*:*:SEIUX) GUESS=mips-sei-seiux$UNAME_RELEASE ;; *:DragonFly:*:*) DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case $UNAME_MACHINE in A*) GUESS=alpha-dec-vms ;; I*) GUESS=ia64-dec-vms ;; V*) GUESS=vax-dec-vms ;; esac ;; *:XENIX:*:SysV) GUESS=i386-pc-xenix ;; i*86:skyos:*:*) SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL ;; i*86:rdos:*:*) GUESS=$UNAME_MACHINE-pc-rdos ;; *:AROS:*:*) GUESS=$UNAME_MACHINE-unknown-aros ;; x86_64:VMkernel:*:*) GUESS=$UNAME_MACHINE-unknown-esx ;; amd64:Isilon\ OneFS:*:*) GUESS=x86_64-unknown-onefs ;; *:Unleashed:*:*) GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE ;; esac # Do we have a guess based on uname results? if test "x$GUESS" != x; then echo "$GUESS" exit fi # No uname command or uname output not recognized. set_cc_for_build cat > "$dummy.c" < #include #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #include #if defined(_SIZE_T_) || defined(SIGLOST) #include #endif #endif #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) #if !defined (ultrix) #include #if defined (BSD) #if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); #else #if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); #else printf ("vax-dec-bsd\n"); exit (0); #endif #endif #else printf ("vax-dec-bsd\n"); exit (0); #endif #else #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname un; uname (&un); printf ("vax-dec-ultrix%s\n", un.release); exit (0); #else printf ("vax-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname *un; uname (&un); printf ("mips-dec-ultrix%s\n", un.release); exit (0); #else printf ("mips-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } echo "$0: unable to guess system type" >&2 case $UNAME_MACHINE:$UNAME_SYSTEM in mips:Linux | mips64:Linux) # If we got here on MIPS GNU/Linux, output extra information. cat >&2 <&2 <&2 </dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = "$UNAME_MACHINE" UNAME_RELEASE = "$UNAME_RELEASE" UNAME_SYSTEM = "$UNAME_SYSTEM" UNAME_VERSION = "$UNAME_VERSION" EOF fi exit 1 # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: libzdb-3.4.0/config/tnsnames.ora000644 000765 000024 00000000434 13632541415 016664 0ustar00haukstaff000000 000000 ORCLCDB=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ORCLCDB.localdomain))) ORCLPDB1=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ORCLPDB1.localdomain))) libzdb-3.4.0/config/missing000755 000765 000024 00000015336 14652557230 015744 0ustar00haukstaff000000 000000 #! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1996-2021 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=https://www.perl.org/ flex_URL=https://github.com/westes/flex gnu_software_URL=https://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'autom4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: libzdb-3.4.0/config/config.sub000755 000765 000024 00000104714 14652557230 016327 0ustar00haukstaff000000 000000 #! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2021 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale timestamp='2021-08-14' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches to . # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. # The "shellcheck disable" line above the timestamp inhibits complaints # about features and limitations of the classic Bourne shell that were # superseded or lifted in POSIX. However, this script identifies a wide # variety of pre-POSIX systems that do not have POSIX shells at all, and # even some reasonably current systems (Solaris 10 as case-in-point) still # have a pre-POSIX /bin/sh. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS Canonicalize a configuration name. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright 1992-2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; *local*) # First pass through any local machine types. echo "$1" exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Split fields of configuration type # shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read field1 field2 field3 field4 <&2 exit 1 ;; *-*-*-*) basic_machine=$field1-$field2 basic_os=$field3-$field4 ;; *-*-*) # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two # parts maybe_os=$field2-$field3 case $maybe_os in nto-qnx* | linux-* | uclinux-uclibc* \ | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ | storm-chaos* | os2-emx* | rtmk-nova*) basic_machine=$field1 basic_os=$maybe_os ;; android-linux) basic_machine=$field1-unknown basic_os=linux-android ;; *) basic_machine=$field1-$field2 basic_os=$field3 ;; esac ;; *-*) # A lone config we happen to match not fitting any pattern case $field1-$field2 in decstation-3100) basic_machine=mips-dec basic_os= ;; *-*) # Second component is usually, but not always the OS case $field2 in # Prevent following clause from handling this valid os sun*os*) basic_machine=$field1 basic_os=$field2 ;; zephyr*) basic_machine=$field1-unknown basic_os=$field2 ;; # Manufacturers dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ | unicom* | ibm* | next | hp | isi* | apollo | altos* \ | convergent* | ncr* | news | 32* | 3600* | 3100* \ | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ | ultra | tti* | harris | dolphin | highlevel | gould \ | cbm | ns | masscomp | apple | axis | knuth | cray \ | microblaze* | sim | cisco \ | oki | wec | wrs | winbond) basic_machine=$field1-$field2 basic_os= ;; *) basic_machine=$field1 basic_os=$field2 ;; esac ;; esac ;; *) # Convert single-component short-hands not valid as part of # multi-component configurations. case $field1 in 386bsd) basic_machine=i386-pc basic_os=bsd ;; a29khif) basic_machine=a29k-amd basic_os=udi ;; adobe68k) basic_machine=m68010-adobe basic_os=scout ;; alliant) basic_machine=fx80-alliant basic_os= ;; altos | altos3068) basic_machine=m68k-altos basic_os= ;; am29k) basic_machine=a29k-none basic_os=bsd ;; amdahl) basic_machine=580-amdahl basic_os=sysv ;; amiga) basic_machine=m68k-unknown basic_os= ;; amigaos | amigados) basic_machine=m68k-unknown basic_os=amigaos ;; amigaunix | amix) basic_machine=m68k-unknown basic_os=sysv4 ;; apollo68) basic_machine=m68k-apollo basic_os=sysv ;; apollo68bsd) basic_machine=m68k-apollo basic_os=bsd ;; aros) basic_machine=i386-pc basic_os=aros ;; aux) basic_machine=m68k-apple basic_os=aux ;; balance) basic_machine=ns32k-sequent basic_os=dynix ;; blackfin) basic_machine=bfin-unknown basic_os=linux ;; cegcc) basic_machine=arm-unknown basic_os=cegcc ;; convex-c1) basic_machine=c1-convex basic_os=bsd ;; convex-c2) basic_machine=c2-convex basic_os=bsd ;; convex-c32) basic_machine=c32-convex basic_os=bsd ;; convex-c34) basic_machine=c34-convex basic_os=bsd ;; convex-c38) basic_machine=c38-convex basic_os=bsd ;; cray) basic_machine=j90-cray basic_os=unicos ;; crds | unos) basic_machine=m68k-crds basic_os= ;; da30) basic_machine=m68k-da30 basic_os= ;; decstation | pmax | pmin | dec3100 | decstatn) basic_machine=mips-dec basic_os= ;; delta88) basic_machine=m88k-motorola basic_os=sysv3 ;; dicos) basic_machine=i686-pc basic_os=dicos ;; djgpp) basic_machine=i586-pc basic_os=msdosdjgpp ;; ebmon29k) basic_machine=a29k-amd basic_os=ebmon ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson basic_os=ose ;; gmicro) basic_machine=tron-gmicro basic_os=sysv ;; go32) basic_machine=i386-pc basic_os=go32 ;; h8300hms) basic_machine=h8300-hitachi basic_os=hms ;; h8300xray) basic_machine=h8300-hitachi basic_os=xray ;; h8500hms) basic_machine=h8500-hitachi basic_os=hms ;; harris) basic_machine=m88k-harris basic_os=sysv3 ;; hp300 | hp300hpux) basic_machine=m68k-hp basic_os=hpux ;; hp300bsd) basic_machine=m68k-hp basic_os=bsd ;; hppaosf) basic_machine=hppa1.1-hp basic_os=osf ;; hppro) basic_machine=hppa1.1-hp basic_os=proelf ;; i386mach) basic_machine=i386-mach basic_os=mach ;; isi68 | isi) basic_machine=m68k-isi basic_os=sysv ;; m68knommu) basic_machine=m68k-unknown basic_os=linux ;; magnum | m3230) basic_machine=mips-mips basic_os=sysv ;; merlin) basic_machine=ns32k-utek basic_os=sysv ;; mingw64) basic_machine=x86_64-pc basic_os=mingw64 ;; mingw32) basic_machine=i686-pc basic_os=mingw32 ;; mingw32ce) basic_machine=arm-unknown basic_os=mingw32ce ;; monitor) basic_machine=m68k-rom68k basic_os=coff ;; morphos) basic_machine=powerpc-unknown basic_os=morphos ;; moxiebox) basic_machine=moxie-unknown basic_os=moxiebox ;; msdos) basic_machine=i386-pc basic_os=msdos ;; msys) basic_machine=i686-pc basic_os=msys ;; mvs) basic_machine=i370-ibm basic_os=mvs ;; nacl) basic_machine=le32-unknown basic_os=nacl ;; ncr3000) basic_machine=i486-ncr basic_os=sysv4 ;; netbsd386) basic_machine=i386-pc basic_os=netbsd ;; netwinder) basic_machine=armv4l-rebel basic_os=linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony basic_os=newsos ;; news1000) basic_machine=m68030-sony basic_os=newsos ;; necv70) basic_machine=v70-nec basic_os=sysv ;; nh3000) basic_machine=m68k-harris basic_os=cxux ;; nh[45]000) basic_machine=m88k-harris basic_os=cxux ;; nindy960) basic_machine=i960-intel basic_os=nindy ;; mon960) basic_machine=i960-intel basic_os=mon960 ;; nonstopux) basic_machine=mips-compaq basic_os=nonstopux ;; os400) basic_machine=powerpc-ibm basic_os=os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson basic_os=ose ;; os68k) basic_machine=m68k-none basic_os=os68k ;; paragon) basic_machine=i860-intel basic_os=osf ;; parisc) basic_machine=hppa-unknown basic_os=linux ;; psp) basic_machine=mipsallegrexel-sony basic_os=psp ;; pw32) basic_machine=i586-unknown basic_os=pw32 ;; rdos | rdos64) basic_machine=x86_64-pc basic_os=rdos ;; rdos32) basic_machine=i386-pc basic_os=rdos ;; rom68k) basic_machine=m68k-rom68k basic_os=coff ;; sa29200) basic_machine=a29k-amd basic_os=udi ;; sei) basic_machine=mips-sei basic_os=seiux ;; sequent) basic_machine=i386-sequent basic_os= ;; sps7) basic_machine=m68k-bull basic_os=sysv2 ;; st2000) basic_machine=m68k-tandem basic_os= ;; stratus) basic_machine=i860-stratus basic_os=sysv4 ;; sun2) basic_machine=m68000-sun basic_os= ;; sun2os3) basic_machine=m68000-sun basic_os=sunos3 ;; sun2os4) basic_machine=m68000-sun basic_os=sunos4 ;; sun3) basic_machine=m68k-sun basic_os= ;; sun3os3) basic_machine=m68k-sun basic_os=sunos3 ;; sun3os4) basic_machine=m68k-sun basic_os=sunos4 ;; sun4) basic_machine=sparc-sun basic_os= ;; sun4os3) basic_machine=sparc-sun basic_os=sunos3 ;; sun4os4) basic_machine=sparc-sun basic_os=sunos4 ;; sun4sol2) basic_machine=sparc-sun basic_os=solaris2 ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun basic_os= ;; sv1) basic_machine=sv1-cray basic_os=unicos ;; symmetry) basic_machine=i386-sequent basic_os=dynix ;; t3e) basic_machine=alphaev5-cray basic_os=unicos ;; t90) basic_machine=t90-cray basic_os=unicos ;; toad1) basic_machine=pdp10-xkl basic_os=tops20 ;; tpf) basic_machine=s390x-ibm basic_os=tpf ;; udi29k) basic_machine=a29k-amd basic_os=udi ;; ultra3) basic_machine=a29k-nyu basic_os=sym1 ;; v810 | necv810) basic_machine=v810-nec basic_os=none ;; vaxv) basic_machine=vax-dec basic_os=sysv ;; vms) basic_machine=vax-dec basic_os=vms ;; vsta) basic_machine=i386-pc basic_os=vsta ;; vxworks960) basic_machine=i960-wrs basic_os=vxworks ;; vxworks68) basic_machine=m68k-wrs basic_os=vxworks ;; vxworks29k) basic_machine=a29k-wrs basic_os=vxworks ;; xbox) basic_machine=i686-pc basic_os=mingw32 ;; ymp) basic_machine=ymp-cray basic_os=unicos ;; *) basic_machine=$1 basic_os= ;; esac ;; esac # Decode 1-component or ad-hoc basic machines case $basic_machine in # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) cpu=hppa1.1 vendor=winbond ;; op50n) cpu=hppa1.1 vendor=oki ;; op60c) cpu=hppa1.1 vendor=oki ;; ibm*) cpu=i370 vendor=ibm ;; orion105) cpu=clipper vendor=highlevel ;; mac | mpw | mac-mpw) cpu=m68k vendor=apple ;; pmac | pmac-mpw) cpu=powerpc vendor=apple ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) cpu=m68000 vendor=att ;; 3b*) cpu=we32k vendor=att ;; bluegene*) cpu=powerpc vendor=ibm basic_os=cnk ;; decsystem10* | dec10*) cpu=pdp10 vendor=dec basic_os=tops10 ;; decsystem20* | dec20*) cpu=pdp10 vendor=dec basic_os=tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) cpu=m68k vendor=motorola ;; dpx2*) cpu=m68k vendor=bull basic_os=sysv3 ;; encore | umax | mmax) cpu=ns32k vendor=encore ;; elxsi) cpu=elxsi vendor=elxsi basic_os=${basic_os:-bsd} ;; fx2800) cpu=i860 vendor=alliant ;; genix) cpu=ns32k vendor=ns ;; h3050r* | hiux*) cpu=hppa1.1 vendor=hitachi basic_os=hiuxwe2 ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) cpu=m68000 vendor=hp ;; hp9k3[2-9][0-9]) cpu=m68k vendor=hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) cpu=hppa1.1 vendor=hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp cpu=hppa1.1 vendor=hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp cpu=hppa1.1 vendor=hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) cpu=hppa1.1 vendor=hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; i*86v32) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv32 ;; i*86v4*) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv4 ;; i*86v) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv ;; i*86sol2) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=solaris2 ;; j90 | j90-cray) cpu=j90 vendor=cray basic_os=${basic_os:-unicos} ;; iris | iris4d) cpu=mips vendor=sgi case $basic_os in irix*) ;; *) basic_os=irix4 ;; esac ;; miniframe) cpu=m68000 vendor=convergent ;; *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) cpu=m68k vendor=atari basic_os=mint ;; news-3600 | risc-news) cpu=mips vendor=sony basic_os=newsos ;; next | m*-next) cpu=m68k vendor=next case $basic_os in openstep*) ;; nextstep*) ;; ns2*) basic_os=nextstep2 ;; *) basic_os=nextstep3 ;; esac ;; np1) cpu=np1 vendor=gould ;; op50n-* | op60c-*) cpu=hppa1.1 vendor=oki basic_os=proelf ;; pa-hitachi) cpu=hppa1.1 vendor=hitachi basic_os=hiuxwe2 ;; pbd) cpu=sparc vendor=tti ;; pbb) cpu=m68k vendor=tti ;; pc532) cpu=ns32k vendor=pc532 ;; pn) cpu=pn vendor=gould ;; power) cpu=power vendor=ibm ;; ps2) cpu=i386 vendor=ibm ;; rm[46]00) cpu=mips vendor=siemens ;; rtpc | rtpc-*) cpu=romp vendor=ibm ;; sde) cpu=mipsisa32 vendor=sde basic_os=${basic_os:-elf} ;; simso-wrs) cpu=sparclite vendor=wrs basic_os=vxworks ;; tower | tower-32) cpu=m68k vendor=ncr ;; vpp*|vx|vx-*) cpu=f301 vendor=fujitsu ;; w65) cpu=w65 vendor=wdc ;; w89k-*) cpu=hppa1.1 vendor=winbond basic_os=proelf ;; none) cpu=none vendor=none ;; leon|leon[3-9]) cpu=sparc vendor=$basic_machine ;; leon-*|leon[3-9]-*) cpu=sparc vendor=`echo "$basic_machine" | sed 's/-.*//'` ;; *-*) # shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read cpu vendor <&2 exit 1 ;; esac ;; esac # Here we canonicalize certain aliases for manufacturers. case $vendor in digital*) vendor=dec ;; commodore*) vendor=cbm ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if test x$basic_os != x then # First recognize some ad-hoc caes, or perhaps split kernel-os, or else just # set os. case $basic_os in gnu/linux*) kernel=linux os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'` ;; os2-emx) kernel=os2 os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'` ;; nto-qnx*) kernel=nto os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'` ;; *-*) # shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read kernel os <&2 exit 1 ;; esac # As a final step for OS-related things, validate the OS-kernel combination # (given a valid OS), if there is a kernel. case $kernel-$os in linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \ | linux-musl* | linux-relibc* | linux-uclibc* ) ;; uclinux-uclibc* ) ;; -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* ) # These are just libc implementations, not actual OSes, and thus # require a kernel. echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2 exit 1 ;; kfreebsd*-gnu* | kopensolaris*-gnu*) ;; vxworks-simlinux | vxworks-simwindows | vxworks-spe) ;; nto-qnx*) ;; os2-emx) ;; *-eabi* | *-gnueabi*) ;; -*) # Blank kernel with real OS is always fine. ;; *-*) echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2 exit 1 ;; esac # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. case $vendor in unknown) case $cpu-$os in *-riscix*) vendor=acorn ;; *-sunos*) vendor=sun ;; *-cnk* | *-aix*) vendor=ibm ;; *-beos*) vendor=be ;; *-hpux*) vendor=hp ;; *-mpeix*) vendor=hp ;; *-hiux*) vendor=hitachi ;; *-unos*) vendor=crds ;; *-dgux*) vendor=dg ;; *-luna*) vendor=omron ;; *-genix*) vendor=ns ;; *-clix*) vendor=intergraph ;; *-mvs* | *-opened*) vendor=ibm ;; *-os400*) vendor=ibm ;; s390-* | s390x-*) vendor=ibm ;; *-ptx*) vendor=sequent ;; *-tpf*) vendor=ibm ;; *-vxsim* | *-vxworks* | *-windiss*) vendor=wrs ;; *-aux*) vendor=apple ;; *-hms*) vendor=hitachi ;; *-mpw* | *-macos*) vendor=apple ;; *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*) vendor=atari ;; *-vos*) vendor=stratus ;; esac ;; esac echo "$cpu-$vendor-${kernel:+$kernel-}$os" exit # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: libzdb-3.4.0/config/compile000755 000765 000024 00000016350 14652557230 015720 0ustar00haukstaff000000 000000 #! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1999-2021 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN* | MSYS*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/* | msys/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi if test -f "$dir/lib$lib.a"; then found=yes lib=$dir/lib$lib.a break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: libzdb-3.4.0/config/DoxygenLayout.xml000644 000765 000024 00000005050 14647562204 017673 0ustar00haukstaff000000 000000 libzdb-3.4.0/config/doxy_bottom000644 000765 000024 00000000277 13450477104 016631 0ustar00haukstaff000000 000000

Copyright © Tildeslash Ltd. All rights reserved.

libzdb-3.4.0/config/Doxyfile000644 000765 000024 00000362762 14652324304 016055 0ustar00haukstaff000000 000000 # Doxyfile 1.9.8 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project. # # All text after a double hash (##) is considered a comment and is placed in # front of the TAG it is preceding. # # All text after a single hash (#) is considered a comment and will be ignored. # The format is: # TAG = value [value, ...] # For lists, items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (\" \"). # # Note: # # Use doxygen to compare the used configuration file with the template # configuration file: # doxygen -x [configFile] # Use doxygen to compare the used configuration file with the template # configuration file without replacing the environment variables or CMake type # replacement variables: # doxygen -x_noenv [configFile] #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- # This tag specifies the encoding used for all characters in the configuration # file that follow. The default is UTF-8 which is also the encoding used for all # text before the first occurrence of this tag. Doxygen uses libiconv (or the # iconv built into libc) for the transcoding. See # https://www.gnu.org/software/libiconv/ for the list of possible encodings. # The default value is: UTF-8. DOXYFILE_ENCODING = UTF-8 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded by # double-quotes, unless you are using Doxywizard) that should identify the # project for which the documentation is generated. This name is used in the # title of most generated pages and in a few other places. # The default value is: My Project. PROJECT_NAME = libzdb # The PROJECT_NUMBER tag can be used to enter a project or revision number. This # could be handy for archiving the generated documentation or if some version # control system is used. PROJECT_NUMBER = # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a # quick idea about the purpose of the project. Keep the description short. PROJECT_BRIEF = # With the PROJECT_LOGO tag one can specify a logo or an icon that is included # in the documentation. The maximum height of the logo should not exceed 55 # pixels and the maximum width should not exceed 200 pixels. Doxygen will copy # the logo to the output directory. PROJECT_LOGO = # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path # into which the generated documentation will be written. If a relative path is # entered, it will be relative to the location where doxygen was started. If # left blank the current directory will be used. OUTPUT_DIRECTORY = # If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096 # sub-directories (in 2 levels) under the output directory of each output format # and will distribute the generated files over these directories. Enabling this # option can be useful when feeding doxygen a huge amount of source files, where # putting all generated files in the same directory would otherwise causes # performance problems for the file system. Adapt CREATE_SUBDIRS_LEVEL to # control the number of sub-directories. # The default value is: NO. CREATE_SUBDIRS = NO # Controls the number of sub-directories that will be created when # CREATE_SUBDIRS tag is set to YES. Level 0 represents 16 directories, and every # level increment doubles the number of directories, resulting in 4096 # directories at level 8 which is the default and also the maximum value. The # sub-directories are organized in 2 levels, the first level always has a fixed # number of 16 directories. # Minimum value: 0, maximum value: 8, default value: 8. # This tag requires that the tag CREATE_SUBDIRS is set to YES. CREATE_SUBDIRS_LEVEL = 8 # If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII # characters to appear in the names of generated files. If set to NO, non-ASCII # characters will be escaped, for example _xE3_x81_x84 will be used for Unicode # U+3044. # The default value is: NO. ALLOW_UNICODE_NAMES = NO # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. # Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Bulgarian, # Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish, Dutch, English # (United States), Esperanto, Farsi (Persian), Finnish, French, German, Greek, # Hindi, Hungarian, Indonesian, Italian, Japanese, Japanese-en (Japanese with # English messages), Korean, Korean-en (Korean with English messages), Latvian, # Lithuanian, Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, # Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, # Swedish, Turkish, Ukrainian and Vietnamese. # The default value is: English. OUTPUT_LANGUAGE = English # If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member # descriptions after the members that are listed in the file and class # documentation (similar to Javadoc). Set to NO to disable this. # The default value is: YES. BRIEF_MEMBER_DESC = YES # If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief # description of a member or function before the detailed description # # Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. # The default value is: YES. REPEAT_BRIEF = YES # This tag implements a quasi-intelligent brief description abbreviator that is # used to form the text in various listings. Each string in this list, if found # as the leading text of the brief description, will be stripped from the text # and the result, after processing the whole list, is used as the annotated # text. Otherwise, the brief description is used as-is. If left blank, the # following values are used ($name is automatically replaced with the name of # the entity):The $name class, The $name widget, The $name file, is, provides, # specifies, contains, represents, a, an and the. ABBREVIATE_BRIEF = # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then # doxygen will generate a detailed section even if there is only a brief # description. # The default value is: NO. ALWAYS_DETAILED_SEC = YES # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all # inherited members of a class in the documentation of that class as if those # members were ordinary class members. Constructors, destructors and assignment # operators of the base classes will not be shown. # The default value is: NO. INLINE_INHERITED_MEMB = NO # If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path # before files name in the file list and in the header files. If set to NO the # shortest path that makes the file name unique will be used # The default value is: YES. FULL_PATH_NAMES = NO # The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path. # Stripping is only done if one of the specified strings matches the left-hand # part of the path. The tag can be used to show relative paths in the file list. # If left blank the directory from which doxygen is run is used as the path to # strip. # # Note that you can specify absolute paths here, but also relative paths, which # will be relative from the directory where doxygen is started. # This tag requires that the tag FULL_PATH_NAMES is set to YES. STRIP_FROM_PATH = # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the # path mentioned in the documentation of a class, which tells the reader which # header file to include in order to use a class. If left blank only the name of # the header file containing the class definition is used. Otherwise one should # specify the list of include paths that are normally passed to the compiler # using the -I flag. STRIP_FROM_INC_PATH = # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but # less readable) file names. This can be useful is your file systems doesn't # support long names like on DOS, Mac, or CD-ROM. # The default value is: NO. SHORT_NAMES = NO # If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the # first line (until the first dot) of a Javadoc-style comment as the brief # description. If set to NO, the Javadoc-style will behave just like regular Qt- # style comments (thus requiring an explicit @brief command for a brief # description.) # The default value is: NO. JAVADOC_AUTOBRIEF = YES # If the JAVADOC_BANNER tag is set to YES then doxygen will interpret a line # such as # /*************** # as being the beginning of a Javadoc-style comment "banner". If set to NO, the # Javadoc-style will behave just like regular comments and it will not be # interpreted by doxygen. # The default value is: NO. JAVADOC_BANNER = NO # If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first # line (until the first dot) of a Qt-style comment as the brief description. If # set to NO, the Qt-style will behave just like regular Qt-style comments (thus # requiring an explicit \brief command for a brief description.) # The default value is: NO. QT_AUTOBRIEF = NO # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a # multi-line C++ special comment block (i.e. a block of //! or /// comments) as # a brief description. This used to be the default behavior. The new default is # to treat a multi-line C++ comment block as a detailed description. Set this # tag to YES if you prefer the old behavior instead. # # Note that setting this tag to YES also means that rational rose comments are # not recognized any more. # The default value is: NO. MULTILINE_CPP_IS_BRIEF = NO # By default Python docstrings are displayed as preformatted text and doxygen's # special commands cannot be used. By setting PYTHON_DOCSTRING to NO the # doxygen's special commands can be used and the contents of the docstring # documentation blocks is shown as doxygen documentation. # The default value is: YES. PYTHON_DOCSTRING = YES # If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the # documentation from any documented member that it re-implements. # The default value is: YES. INHERIT_DOCS = NO # If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new # page for each member. If set to NO, the documentation of a member will be part # of the file/class/namespace that contains it. # The default value is: NO. SEPARATE_MEMBER_PAGES = NO # The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen # uses this value to replace tabs by spaces in code fragments. # Minimum value: 1, maximum value: 16, default value: 4. TAB_SIZE = 4 # This tag can be used to specify a number of aliases that act as commands in # the documentation. An alias has the form: # name=value # For example adding # "sideeffect=@par Side Effects:^^" # will allow you to put the command \sideeffect (or @sideeffect) in the # documentation, which will result in a user-defined paragraph with heading # "Side Effects:". Note that you cannot put \n's in the value part of an alias # to insert newlines (in the resulting output). You can put ^^ in the value part # of an alias to insert a newline as if a physical newline was in the original # file. When you need a literal { or } or , in the value part of an alias you # have to escape them by means of a backslash (\), this can lead to conflicts # with the commands \{ and \} for these it is advised to use the version @{ and # @} or use a double escape (\\{ and \\}) ALIASES = # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources # only. Doxygen will then generate output that is more tailored for C. For # instance, some of the names that are used will be different. The list of all # members will be omitted, etc. # The default value is: NO. OPTIMIZE_OUTPUT_FOR_C = YES # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or # Python sources only. Doxygen will then generate output that is more tailored # for that language. For instance, namespaces will be presented as packages, # qualified scopes will look different, etc. # The default value is: NO. OPTIMIZE_OUTPUT_JAVA = NO # Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran # sources. Doxygen will then generate output that is tailored for Fortran. # The default value is: NO. OPTIMIZE_FOR_FORTRAN = NO # Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL # sources. Doxygen will then generate output that is tailored for VHDL. # The default value is: NO. OPTIMIZE_OUTPUT_VHDL = NO # Set the OPTIMIZE_OUTPUT_SLICE tag to YES if your project consists of Slice # sources only. Doxygen will then generate output that is more tailored for that # language. For instance, namespaces will be presented as modules, types will be # separated into more groups, etc. # The default value is: NO. OPTIMIZE_OUTPUT_SLICE = NO # Doxygen selects the parser to use depending on the extension of the files it # parses. With this tag you can assign which parser to use for a given # extension. Doxygen has a built-in mapping, but you can override or extend it # using this tag. The format is ext=language, where ext is a file extension, and # language is one of the parsers supported by doxygen: IDL, Java, JavaScript, # Csharp (C#), C, C++, Lex, D, PHP, md (Markdown), Objective-C, Python, Slice, # VHDL, Fortran (fixed format Fortran: FortranFixed, free formatted Fortran: # FortranFree, unknown formatted Fortran: Fortran. In the later case the parser # tries to guess whether the code is fixed or free formatted code, this is the # default for Fortran type files). For instance to make doxygen treat .inc files # as Fortran files (default is PHP), and .f files as C (default is Fortran), # use: inc=Fortran f=C. # # Note: For files without extension you can use no_extension as a placeholder. # # Note that for custom extensions you also need to set FILE_PATTERNS otherwise # the files are not read by doxygen. When specifying no_extension you should add # * to the FILE_PATTERNS. # # Note see also the list of default file extension mappings. EXTENSION_MAPPING = # If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments # according to the Markdown format, which allows for more readable # documentation. See https://daringfireball.net/projects/markdown/ for details. # The output of markdown processing is further processed by doxygen, so you can # mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in # case of backward compatibilities issues. # The default value is: YES. MARKDOWN_SUPPORT = YES # When the TOC_INCLUDE_HEADINGS tag is set to a non-zero value, all headings up # to that level are automatically included in the table of contents, even if # they do not have an id attribute. # Note: This feature currently applies only to Markdown headings. # Minimum value: 0, maximum value: 99, default value: 5. # This tag requires that the tag MARKDOWN_SUPPORT is set to YES. TOC_INCLUDE_HEADINGS = 5 # The MARKDOWN_ID_STYLE tag can be used to specify the algorithm used to # generate identifiers for the Markdown headings. Note: Every identifier is # unique. # Possible values are: DOXYGEN use a fixed 'autotoc_md' string followed by a # sequence number starting at 0 and GITHUB use the lower case version of title # with any whitespace replaced by '-' and punctuation characters removed. # The default value is: DOXYGEN. # This tag requires that the tag MARKDOWN_SUPPORT is set to YES. MARKDOWN_ID_STYLE = DOXYGEN # When enabled doxygen tries to link words that correspond to documented # classes, or namespaces to their corresponding documentation. Such a link can # be prevented in individual cases by putting a % sign in front of the word or # globally by setting AUTOLINK_SUPPORT to NO. # The default value is: YES. AUTOLINK_SUPPORT = YES # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want # to include (a tag file for) the STL sources as input, then you should set this # tag to YES in order to let doxygen match functions declarations and # definitions whose arguments contain STL classes (e.g. func(std::string); # versus func(std::string) {}). This also make the inheritance and collaboration # diagrams that involve STL classes more complete and accurate. # The default value is: NO. BUILTIN_STL_SUPPORT = NO # If you use Microsoft's C++/CLI language, you should set this option to YES to # enable parsing support. # The default value is: NO. CPP_CLI_SUPPORT = NO # Set the SIP_SUPPORT tag to YES if your project consists of sip (see: # https://www.riverbankcomputing.com/software/sip/intro) sources only. Doxygen # will parse them like normal C++ but will assume all classes use public instead # of private inheritance when no explicit protection keyword is present. # The default value is: NO. SIP_SUPPORT = NO # For Microsoft's IDL there are propget and propput attributes to indicate # getter and setter methods for a property. Setting this option to YES will make # doxygen to replace the get and set methods by a property in the documentation. # This will only work if the methods are indeed getting or setting a simple # type. If this is not the case, or you want to show the methods anyway, you # should set this option to NO. # The default value is: YES. IDL_PROPERTY_SUPPORT = YES # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC # tag is set to YES then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. # The default value is: NO. DISTRIBUTE_GROUP_DOC = NO # If one adds a struct or class to a group and this option is enabled, then also # any nested class or struct is added to the same group. By default this option # is disabled and one has to add nested compounds explicitly via \ingroup. # The default value is: NO. GROUP_NESTED_COMPOUNDS = NO # Set the SUBGROUPING tag to YES to allow class member groups of the same type # (for instance a group of public functions) to be put as a subgroup of that # type (e.g. under the Public Functions section). Set it to NO to prevent # subgrouping. Alternatively, this can be done per class using the # \nosubgrouping command. # The default value is: YES. SUBGROUPING = YES # When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions # are shown inside the group in which they are included (e.g. using \ingroup) # instead of on a separate page (for HTML and Man pages) or section (for LaTeX # and RTF). # # Note that this feature does not work in combination with # SEPARATE_MEMBER_PAGES. # The default value is: NO. INLINE_GROUPED_CLASSES = NO # When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions # with only public data fields or simple typedef fields will be shown inline in # the documentation of the scope in which they are defined (i.e. file, # namespace, or group documentation), provided this scope is documented. If set # to NO, structs, classes, and unions are shown on a separate page (for HTML and # Man pages) or section (for LaTeX and RTF). # The default value is: NO. INLINE_SIMPLE_STRUCTS = NO # When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or # enum is documented as struct, union, or enum with the name of the typedef. So # typedef struct TypeS {} TypeT, will appear in the documentation as a struct # with name TypeT. When disabled the typedef will appear as a member of a file, # namespace, or class. And the struct will be named TypeS. This can typically be # useful for C code in case the coding convention dictates that all compound # types are typedef'ed and only the typedef is referenced, never the tag name. # The default value is: NO. TYPEDEF_HIDES_STRUCT = NO # The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This # cache is used to resolve symbols given their name and scope. Since this can be # an expensive process and often the same symbol appears multiple times in the # code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small # doxygen will become slower. If the cache is too large, memory is wasted. The # cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range # is 0..9, the default is 0, corresponding to a cache size of 2^16=65536 # symbols. At the end of a run doxygen will report the cache usage and suggest # the optimal cache size from a speed point of view. # Minimum value: 0, maximum value: 9, default value: 0. LOOKUP_CACHE_SIZE = 0 # The NUM_PROC_THREADS specifies the number of threads doxygen is allowed to use # during processing. When set to 0 doxygen will based this on the number of # cores available in the system. You can set it explicitly to a value larger # than 0 to get more control over the balance between CPU load and processing # speed. At this moment only the input processing can be done using multiple # threads. Since this is still an experimental feature the default is set to 1, # which effectively disables parallel processing. Please report any issues you # encounter. Generating dot graphs in parallel is controlled by the # DOT_NUM_THREADS setting. # Minimum value: 0, maximum value: 32, default value: 1. NUM_PROC_THREADS = 1 # If the TIMESTAMP tag is set different from NO then each generated page will # contain the date or date and time when the page was generated. Setting this to # NO can help when comparing the output of multiple runs. # Possible values are: YES, NO, DATETIME and DATE. # The default value is: NO. TIMESTAMP = YES #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- # If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in # documentation are documented, even if no documentation was available. Private # class members and static file members will be hidden unless the # EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES. # Note: This will also disable the warnings about undocumented members that are # normally produced when WARNINGS is set to YES. # The default value is: NO. EXTRACT_ALL = YES # If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will # be included in the documentation. # The default value is: NO. EXTRACT_PRIVATE = NO # If the EXTRACT_PRIV_VIRTUAL tag is set to YES, documented private virtual # methods of a class will be included in the documentation. # The default value is: NO. EXTRACT_PRIV_VIRTUAL = NO # If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal # scope will be included in the documentation. # The default value is: NO. EXTRACT_PACKAGE = YES # If the EXTRACT_STATIC tag is set to YES, all static members of a file will be # included in the documentation. # The default value is: NO. EXTRACT_STATIC = YES # If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined # locally in source files will be included in the documentation. If set to NO, # only classes defined in header files are included. Does not have any effect # for Java sources. # The default value is: YES. EXTRACT_LOCAL_CLASSES = YES # This flag is only useful for Objective-C code. If set to YES, local methods, # which are defined in the implementation section but not in the interface are # included in the documentation. If set to NO, only methods in the interface are # included. # The default value is: NO. EXTRACT_LOCAL_METHODS = NO # If this flag is set to YES, the members of anonymous namespaces will be # extracted and appear in the documentation as a namespace called # 'anonymous_namespace{file}', where file will be replaced with the base name of # the file that contains the anonymous namespace. By default anonymous namespace # are hidden. # The default value is: NO. EXTRACT_ANON_NSPACES = NO # If this flag is set to YES, the name of an unnamed parameter in a declaration # will be determined by the corresponding definition. By default unnamed # parameters remain unnamed in the output. # The default value is: YES. RESOLVE_UNNAMED_PARAMS = YES # If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all # undocumented members inside documented classes or files. If set to NO these # members will be included in the various overviews, but no documentation # section is generated. This option has no effect if EXTRACT_ALL is enabled. # The default value is: NO. HIDE_UNDOC_MEMBERS = NO # If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. If set # to NO, these classes will be included in the various overviews. This option # will also hide undocumented C++ concepts if enabled. This option has no effect # if EXTRACT_ALL is enabled. # The default value is: NO. HIDE_UNDOC_CLASSES = NO # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend # declarations. If set to NO, these declarations will be included in the # documentation. # The default value is: NO. HIDE_FRIEND_COMPOUNDS = YES # If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any # documentation blocks found inside the body of a function. If set to NO, these # blocks will be appended to the function's detailed documentation block. # The default value is: NO. HIDE_IN_BODY_DOCS = NO # The INTERNAL_DOCS tag determines if documentation that is typed after a # \internal command is included. If the tag is set to NO then the documentation # will be excluded. Set it to YES to include the internal documentation. # The default value is: NO. INTERNAL_DOCS = YES # With the correct setting of option CASE_SENSE_NAMES doxygen will better be # able to match the capabilities of the underlying filesystem. In case the # filesystem is case sensitive (i.e. it supports files in the same directory # whose names only differ in casing), the option must be set to YES to properly # deal with such files in case they appear in the input. For filesystems that # are not case sensitive the option should be set to NO to properly deal with # output files written for symbols that only differ in casing, such as for two # classes, one named CLASS and the other named Class, and to also support # references to files without having to specify the exact matching casing. On # Windows (including Cygwin) and MacOS, users should typically set this option # to NO, whereas on Linux or other Unix flavors it should typically be set to # YES. # Possible values are: SYSTEM, NO and YES. # The default value is: SYSTEM. CASE_SENSE_NAMES = YES # If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with # their full class and namespace scopes in the documentation. If set to YES, the # scope will be hidden. # The default value is: NO. HIDE_SCOPE_NAMES = YES # If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will # append additional text to a page's title, such as Class Reference. If set to # YES the compound reference will be hidden. # The default value is: NO. HIDE_COMPOUND_REFERENCE= YES # If the SHOW_HEADERFILE tag is set to YES then the documentation for a class # will show which file needs to be included to use the class. # The default value is: YES. SHOW_HEADERFILE = NO # If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of # the files that are included by a file in the documentation of that file. # The default value is: YES. SHOW_INCLUDE_FILES = NO # If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each # grouped member an include statement to the documentation, telling the reader # which file to include in order to use the member. # The default value is: NO. SHOW_GROUPED_MEMB_INC = NO # If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include # files with double quotes in the documentation rather than with sharp brackets. # The default value is: NO. FORCE_LOCAL_INCLUDES = NO # If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the # documentation for inline members. # The default value is: YES. INLINE_INFO = NO # If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the # (detailed) documentation of file and class members alphabetically by member # name. If set to NO, the members will appear in declaration order. # The default value is: YES. SORT_MEMBER_DOCS = NO # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief # descriptions of file, namespace and class members alphabetically by member # name. If set to NO, the members will appear in declaration order. Note that # this will also influence the order of the classes in the class list. # The default value is: NO. SORT_BRIEF_DOCS = NO # If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the # (brief and detailed) documentation of class members so that constructors and # destructors are listed first. If set to NO the constructors will appear in the # respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS. # Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief # member documentation. # Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting # detailed member documentation. # The default value is: NO. SORT_MEMBERS_CTORS_1ST = NO # If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy # of group names into alphabetical order. If set to NO the group names will # appear in their defined order. # The default value is: NO. SORT_GROUP_NAMES = NO # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by # fully-qualified names, including namespaces. If set to NO, the class list will # be sorted only by class name, not including the namespace part. # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. # Note: This option applies only to the class list, not to the alphabetical # list. # The default value is: NO. SORT_BY_SCOPE_NAME = NO # If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper # type resolution of all parameters of a function it will reject a match between # the prototype and the implementation of a member function even if there is # only one candidate or it is obvious which candidate to choose by doing a # simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still # accept a match between prototype and implementation in such cases. # The default value is: NO. STRICT_PROTO_MATCHING = NO # The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo # list. This list is created by putting \todo commands in the documentation. # The default value is: YES. GENERATE_TODOLIST = YES # The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test # list. This list is created by putting \test commands in the documentation. # The default value is: YES. GENERATE_TESTLIST = NO # The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug # list. This list is created by putting \bug commands in the documentation. # The default value is: YES. GENERATE_BUGLIST = NO # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO) # the deprecated list. This list is created by putting \deprecated commands in # the documentation. # The default value is: YES. GENERATE_DEPRECATEDLIST= YES # The ENABLED_SECTIONS tag can be used to enable conditional documentation # sections, marked by \if ... \endif and \cond # ... \endcond blocks. ENABLED_SECTIONS = # The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the # initial value of a variable or macro / define can have for it to appear in the # documentation. If the initializer consists of more lines than specified here # it will be hidden. Use a value of 0 to hide initializers completely. The # appearance of the value of individual variables and macros / defines can be # controlled using \showinitializer or \hideinitializer command in the # documentation regardless of this setting. # Minimum value: 0, maximum value: 10000, default value: 30. MAX_INITIALIZER_LINES = 30 # Set the SHOW_USED_FILES tag to NO to disable the list of files generated at # the bottom of the documentation of classes and structs. If set to YES, the # list will mention the files that were used to generate the documentation. # The default value is: YES. SHOW_USED_FILES = NO # Set the SHOW_FILES tag to NO to disable the generation of the Files page. This # will remove the Files entry from the Quick Index and from the Folder Tree View # (if specified). # The default value is: YES. SHOW_FILES = YES # Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces # page. This will remove the Namespaces entry from the Quick Index and from the # Folder Tree View (if specified). # The default value is: YES. SHOW_NAMESPACES = YES # The FILE_VERSION_FILTER tag can be used to specify a program or script that # doxygen should invoke to get the current version for each file (typically from # the version control system). Doxygen will invoke the program by executing (via # popen()) the command command input-file, where command is the value of the # FILE_VERSION_FILTER tag, and input-file is the name of an input file provided # by doxygen. Whatever the program writes to standard output is used as the file # version. For an example see the documentation. FILE_VERSION_FILTER = # The LAYOUT_FILE tag can be used to specify a layout file which will be parsed # by doxygen. The layout file controls the global structure of the generated # output files in an output format independent way. To create the layout file # that represents doxygen's defaults, run doxygen with the -l option. You can # optionally specify a file name after the option, if omitted DoxygenLayout.xml # will be used as the name of the layout file. See also section "Changing the # layout of pages" for information. # # Note that if you run doxygen from a directory containing a file called # DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE # tag is left empty. LAYOUT_FILE = config/DoxygenLayout.xml # The CITE_BIB_FILES tag can be used to specify one or more bib files containing # the reference definitions. This must be a list of .bib files. The .bib # extension is automatically appended if omitted. This requires the bibtex tool # to be installed. See also https://en.wikipedia.org/wiki/BibTeX for more info. # For LaTeX the style of the bibliography can be controlled using # LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the # search path. See also \cite for info how to create references. CITE_BIB_FILES = #--------------------------------------------------------------------------- # Configuration options related to warning and progress messages #--------------------------------------------------------------------------- # The QUIET tag can be used to turn on/off the messages that are generated to # standard output by doxygen. If QUIET is set to YES this implies that the # messages are off. # The default value is: NO. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are # generated to standard error (stderr) by doxygen. If WARNINGS is set to YES # this implies that the warnings are on. # # Tip: Turn warnings on while writing the documentation. # The default value is: YES. WARNINGS = YES # If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate # warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag # will automatically be disabled. # The default value is: YES. WARN_IF_UNDOCUMENTED = YES # If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for # potential errors in the documentation, such as documenting some parameters in # a documented function twice, or documenting parameters that don't exist or # using markup commands wrongly. # The default value is: YES. WARN_IF_DOC_ERROR = YES # If WARN_IF_INCOMPLETE_DOC is set to YES, doxygen will warn about incomplete # function parameter documentation. If set to NO, doxygen will accept that some # parameters have no documentation without warning. # The default value is: YES. WARN_IF_INCOMPLETE_DOC = YES # This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that # are documented, but have no documentation for their parameters or return # value. If set to NO, doxygen will only warn about wrong parameter # documentation, but not about the absence of documentation. If EXTRACT_ALL is # set to YES then this flag will automatically be disabled. See also # WARN_IF_INCOMPLETE_DOC # The default value is: NO. WARN_NO_PARAMDOC = NO # If WARN_IF_UNDOC_ENUM_VAL option is set to YES, doxygen will warn about # undocumented enumeration values. If set to NO, doxygen will accept # undocumented enumeration values. If EXTRACT_ALL is set to YES then this flag # will automatically be disabled. # The default value is: NO. WARN_IF_UNDOC_ENUM_VAL = NO # If the WARN_AS_ERROR tag is set to YES then doxygen will immediately stop when # a warning is encountered. If the WARN_AS_ERROR tag is set to FAIL_ON_WARNINGS # then doxygen will continue running as if WARN_AS_ERROR tag is set to NO, but # at the end of the doxygen process doxygen will return with a non-zero status. # If the WARN_AS_ERROR tag is set to FAIL_ON_WARNINGS_PRINT then doxygen behaves # like FAIL_ON_WARNINGS but in case no WARN_LOGFILE is defined doxygen will not # write the warning messages in between other messages but write them at the end # of a run, in case a WARN_LOGFILE is defined the warning messages will be # besides being in the defined file also be shown at the end of a run, unless # the WARN_LOGFILE is defined as - i.e. standard output (stdout) in that case # the behavior will remain as with the setting FAIL_ON_WARNINGS. # Possible values are: NO, YES, FAIL_ON_WARNINGS and FAIL_ON_WARNINGS_PRINT. # The default value is: NO. WARN_AS_ERROR = NO # The WARN_FORMAT tag determines the format of the warning messages that doxygen # can produce. The string should contain the $file, $line, and $text tags, which # will be replaced by the file and line number from which the warning originated # and the warning text. Optionally the format may contain $version, which will # be replaced by the version of the file (if it could be obtained via # FILE_VERSION_FILTER) # See also: WARN_LINE_FORMAT # The default value is: $file:$line: $text. WARN_FORMAT = "$file:$line: $text" # In the $text part of the WARN_FORMAT command it is possible that a reference # to a more specific place is given. To make it easier to jump to this place # (outside of doxygen) the user can define a custom "cut" / "paste" string. # Example: # WARN_LINE_FORMAT = "'vi $file +$line'" # See also: WARN_FORMAT # The default value is: at line $line of file $file. WARN_LINE_FORMAT = "at line $line of file $file" # The WARN_LOGFILE tag can be used to specify a file to which warning and error # messages should be written. If left blank the output is written to standard # error (stderr). In case the file specified cannot be opened for writing the # warning and error messages are written to standard error. When as file - is # specified the warning and error messages are written to standard output # (stdout). WARN_LOGFILE = #--------------------------------------------------------------------------- # Configuration options related to the input files #--------------------------------------------------------------------------- # The INPUT tag is used to specify the files and/or directories that contain # documented source files. You may enter file names like myfile.cpp or # directories like /usr/src/myproject. Separate the files or directories with # spaces. See also FILE_PATTERNS and EXTENSION_MAPPING # Note: If this tag is empty the current directory is searched. INPUT = zdb # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses # libiconv (or the iconv built into libc) for the transcoding. See the libiconv # documentation (see: # https://www.gnu.org/software/libiconv/) for the list of possible encodings. # See also: INPUT_FILE_ENCODING # The default value is: UTF-8. INPUT_ENCODING = UTF-8 # This tag can be used to specify the character encoding of the source files # that doxygen parses The INPUT_FILE_ENCODING tag can be used to specify # character encoding on a per file pattern basis. Doxygen will compare the file # name with each pattern and apply the encoding instead of the default # INPUT_ENCODING) if there is a match. The character encodings are a list of the # form: pattern=encoding (like *.php=ISO-8859-1). See cfg_input_encoding # "INPUT_ENCODING" for further information on supported encodings. INPUT_FILE_ENCODING = # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and # *.h) to filter out the source-files in the directories. # # Note that for custom extensions or not directly supported extensions you also # need to set EXTENSION_MAPPING for the extension otherwise the files are not # read by doxygen. # # Note the list of default checked file patterns might differ from the list of # default file extension mappings. # # If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cxxm, # *.cpp, *.cppm, *.c++, *.c++m, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, # *.ddl, *.odl, *.h, *.hh, *.hxx, *.hpp, *.h++, *.ixx, *.l, *.cs, *.d, *.php, # *.php4, *.php5, *.phtml, *.inc, *.m, *.markdown, *.md, *.mm, *.dox (to be # provided as doxygen C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, # *.f18, *.f, *.for, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice. FILE_PATTERNS = *.h # The RECURSIVE tag can be used to specify whether or not subdirectories should # be searched for input files as well. # The default value is: NO. RECURSIVE = YES # The EXCLUDE tag can be used to specify files and/or directories that should be # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. # # Note that relative paths are relative to the directory from which doxygen is # run. EXCLUDE = # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or # directories that are symbolic links (a Unix file system feature) are excluded # from the input. # The default value is: NO. EXCLUDE_SYMLINKS = YES # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. # # Note that the wildcards are matched against the file with absolute path, so to # exclude all test directories for example use the pattern */test/* EXCLUDE_PATTERNS = # The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names # (namespaces, classes, functions, etc.) that should be excluded from the # output. The symbol name can be a fully qualified name, a word, or if the # wildcard * is used, a substring. Examples: ANamespace, AClass, # ANamespace::AClass, ANamespace::*Test EXCLUDE_SYMBOLS = # The EXAMPLE_PATH tag can be used to specify one or more files or directories # that contain example code fragments that are included (see the \include # command). EXAMPLE_PATH = # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and # *.h) to filter out the source-files in the directories. If left blank all # files are included. EXAMPLE_PATTERNS = # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be # searched for input files to be used with the \include or \dontinclude commands # irrespective of the value of the RECURSIVE tag. # The default value is: NO. EXAMPLE_RECURSIVE = NO # The IMAGE_PATH tag can be used to specify one or more files or directories # that contain images that are to be included in the documentation (see the # \image command). IMAGE_PATH = # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program # by executing (via popen()) the command: # # # # where is the value of the INPUT_FILTER tag, and is the # name of an input file. Doxygen will then use the output that the filter # program writes to standard output. If FILTER_PATTERNS is specified, this tag # will be ignored. # # Note that the filter must not add or remove lines; it is applied before the # code is scanned, but not when the output code is generated. If lines are added # or removed, the anchors will not be placed correctly. # # Note that doxygen will use the data processed and written to standard output # for further processing, therefore nothing else, like debug statements or used # commands (so in case of a Windows batch file always use @echo OFF), should be # written to standard output. # # Note that for custom extensions or not directly supported extensions you also # need to set EXTENSION_MAPPING for the extension otherwise the files are not # properly processed by doxygen. INPUT_FILTER = # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern # basis. Doxygen will compare the file name with each pattern and apply the # filter if there is a match. The filters are a list of the form: pattern=filter # (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how # filters are used. If the FILTER_PATTERNS tag is empty or if none of the # patterns match the file name, INPUT_FILTER is applied. # # Note that for custom extensions or not directly supported extensions you also # need to set EXTENSION_MAPPING for the extension otherwise the files are not # properly processed by doxygen. FILTER_PATTERNS = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using # INPUT_FILTER) will also be used to filter the input files that are used for # producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES). # The default value is: NO. FILTER_SOURCE_FILES = NO # The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file # pattern. A pattern will override the setting for FILTER_PATTERN (if any) and # it is also possible to disable source filtering for a specific pattern using # *.ext= (so without naming a filter). # This tag requires that the tag FILTER_SOURCE_FILES is set to YES. FILTER_SOURCE_PATTERNS = # If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that # is part of the input, its contents will be placed on the main page # (index.html). This can be useful if you have a project on for instance GitHub # and want to reuse the introduction page also for the doxygen output. USE_MDFILE_AS_MAINPAGE = # The Fortran standard specifies that for fixed formatted Fortran code all # characters from position 72 are to be considered as comment. A common # extension is to allow longer lines before the automatic comment starts. The # setting FORTRAN_COMMENT_AFTER will also make it possible that longer lines can # be processed before the automatic comment starts. # Minimum value: 7, maximum value: 10000, default value: 72. FORTRAN_COMMENT_AFTER = 72 #--------------------------------------------------------------------------- # Configuration options related to source browsing #--------------------------------------------------------------------------- # If the SOURCE_BROWSER tag is set to YES then a list of source files will be # generated. Documented entities will be cross-referenced with these sources. # # Note: To get rid of all source code in the generated output, make sure that # also VERBATIM_HEADERS is set to NO. # The default value is: NO. SOURCE_BROWSER = NO # Setting the INLINE_SOURCES tag to YES will include the body of functions, # classes and enums directly into the documentation. # The default value is: NO. INLINE_SOURCES = NO # Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any # special comment blocks from generated source code fragments. Normal C, C++ and # Fortran comments will always remain visible. # The default value is: YES. STRIP_CODE_COMMENTS = NO # If the REFERENCED_BY_RELATION tag is set to YES then for each documented # entity all documented functions referencing it will be listed. # The default value is: NO. REFERENCED_BY_RELATION = NO # If the REFERENCES_RELATION tag is set to YES then for each documented function # all documented entities called/used by that function will be listed. # The default value is: NO. REFERENCES_RELATION = NO # If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set # to YES then the hyperlinks from functions in REFERENCES_RELATION and # REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will # link to the documentation. # The default value is: YES. REFERENCES_LINK_SOURCE = YES # If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the # source code will show a tooltip with additional information such as prototype, # brief description and links to the definition and documentation. Since this # will make the HTML file larger and loading of large files a bit slower, you # can opt to disable this feature. # The default value is: YES. # This tag requires that the tag SOURCE_BROWSER is set to YES. SOURCE_TOOLTIPS = YES # If the USE_HTAGS tag is set to YES then the references to source code will # point to the HTML generated by the htags(1) tool instead of doxygen built-in # source browser. The htags tool is part of GNU's global source tagging system # (see https://www.gnu.org/software/global/global.html). You will need version # 4.8.6 or higher. # # To use it do the following: # - Install the latest version of global # - Enable SOURCE_BROWSER and USE_HTAGS in the configuration file # - Make sure the INPUT points to the root of the source tree # - Run doxygen as normal # # Doxygen will invoke htags (and that will in turn invoke gtags), so these # tools must be available from the command line (i.e. in the search path). # # The result: instead of the source browser generated by doxygen, the links to # source code will now point to the output of htags. # The default value is: NO. # This tag requires that the tag SOURCE_BROWSER is set to YES. USE_HTAGS = NO # If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a # verbatim copy of the header file for each class for which an include is # specified. Set to NO to disable this. # See also: Section \class. # The default value is: YES. VERBATIM_HEADERS = NO #--------------------------------------------------------------------------- # Configuration options related to the alphabetical class index #--------------------------------------------------------------------------- # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all # compounds will be generated. Enable this if the project contains a lot of # classes, structs, unions or interfaces. # The default value is: YES. ALPHABETICAL_INDEX = NO # The IGNORE_PREFIX tag can be used to specify a prefix (or a list of prefixes) # that should be ignored while generating the index headers. The IGNORE_PREFIX # tag works for classes, function and member names. The entity will be placed in # the alphabetical list under the first letter of the entity name that remains # after removing the prefix. # This tag requires that the tag ALPHABETICAL_INDEX is set to YES. IGNORE_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output # The default value is: YES. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a # relative path is entered the value of OUTPUT_DIRECTORY will be put in front of # it. # The default directory is: html. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_OUTPUT = doc/api-docs/ # The HTML_FILE_EXTENSION tag can be used to specify the file extension for each # generated HTML page (for example: .htm, .php, .asp). # The default value is: .html. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_FILE_EXTENSION = .html # The HTML_HEADER tag can be used to specify a user-defined HTML header file for # each generated HTML page. If the tag is left blank doxygen will generate a # standard header. # # To get valid HTML the header file that includes any scripts and style sheets # that doxygen needs, which is dependent on the configuration options used (e.g. # the setting GENERATE_TREEVIEW). It is highly recommended to start with a # default header using # doxygen -w html new_header.html new_footer.html new_stylesheet.css # YourConfigFile # and then modify the file new_header.html. See also section "Doxygen usage" # for information on how to generate the default header that doxygen normally # uses. # Note: The header is subject to change so you typically have to regenerate the # default header when upgrading to a newer version of doxygen. For a description # of the possible markers and block names see the documentation. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_HEADER = config/doxy_head # The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each # generated HTML page. If the tag is left blank doxygen will generate a standard # footer. See HTML_HEADER for more information on how to generate a default # footer and what special commands can be used inside the footer. See also # section "Doxygen usage" for information on how to generate the default footer # that doxygen normally uses. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_FOOTER = config/doxy_bottom # The HTML_STYLESHEET tag can be used to specify a user-defined cascading style # sheet that is used by each HTML page. It can be used to fine-tune the look of # the HTML output. If left blank doxygen will generate a default style sheet. # See also section "Doxygen usage" for information on how to generate the style # sheet that doxygen normally uses. # Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as # it is more robust and this tag (HTML_STYLESHEET) will in the future become # obsolete. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_STYLESHEET = # The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined # cascading style sheets that are included after the standard style sheets # created by doxygen. Using this option one can overrule certain style aspects. # This is preferred over using HTML_STYLESHEET since it does not replace the # standard style sheet and is therefore more robust against future updates. # Doxygen will copy the style sheet files to the output directory. # Note: The order of the extra style sheet files is of importance (e.g. the last # style sheet in the list overrules the setting of the previous ones in the # list). # Note: Since the styling of scrollbars can currently not be overruled in # Webkit/Chromium, the styling will be left out of the default doxygen.css if # one or more extra stylesheets have been specified. So if scrollbar # customization is desired it has to be added explicitly. For an example see the # documentation. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_EXTRA_STYLESHEET = # The HTML_EXTRA_FILES tag can be used to specify one or more extra images or # other source files which should be copied to the HTML output directory. Note # that these files will be copied to the base HTML output directory. Use the # $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these # files. In the HTML_STYLESHEET file, use the file name only. Also note that the # files will be copied as-is; there are no commands or markers available. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_EXTRA_FILES = # The HTML_COLORSTYLE tag can be used to specify if the generated HTML output # should be rendered with a dark or light theme. # Possible values are: LIGHT always generate light mode output, DARK always # generate dark mode output, AUTO_LIGHT automatically set the mode according to # the user preference, use light mode if no preference is set (the default), # AUTO_DARK automatically set the mode according to the user preference, use # dark mode if no preference is set and TOGGLE allow to user to switch between # light and dark mode via a button. # The default value is: AUTO_LIGHT. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE = LIGHT # The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen # will adjust the colors in the style sheet and background images according to # this color. Hue is specified as an angle on a color-wheel, see # https://en.wikipedia.org/wiki/Hue for more information. For instance the value # 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300 # purple, and 360 is red again. # Minimum value: 0, maximum value: 359, default value: 220. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_HUE = 220 # The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors # in the HTML output. For a value of 0 the output will use gray-scales only. A # value of 255 will produce the most vivid colors. # Minimum value: 0, maximum value: 255, default value: 100. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_SAT = 100 # The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the # luminance component of the colors in the HTML output. Values below 100 # gradually make the output lighter, whereas values above 100 make the output # darker. The value divided by 100 is the actual gamma applied, so 80 represents # a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not # change the gamma. # Minimum value: 40, maximum value: 240, default value: 80. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_GAMMA = 80 # If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML # documentation will contain a main index with vertical navigation menus that # are dynamically created via JavaScript. If disabled, the navigation index will # consists of multiple levels of tabs that are statically embedded in every HTML # page. Disable this option to support browsers that do not have JavaScript, # like the Qt help browser. # The default value is: YES. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_DYNAMIC_MENUS = YES # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML # documentation will contain sections that can be hidden and shown after the # page has loaded. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_DYNAMIC_SECTIONS = NO # If the HTML_CODE_FOLDING tag is set to YES then classes and functions can be # dynamically folded and expanded in the generated HTML source code. # The default value is: YES. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_CODE_FOLDING = YES # With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries # shown in the various tree structured indices initially; the user can expand # and collapse entries dynamically later on. Doxygen will expand the tree to # such a level that at most the specified number of entries are visible (unless # a fully collapsed tree already exceeds this amount). So setting the number of # entries 1 will produce a full collapsed tree by default. 0 is a special value # representing an infinite number of entries and will result in a full expanded # tree by default. # Minimum value: 0, maximum value: 9999, default value: 100. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_INDEX_NUM_ENTRIES = 100 # If the GENERATE_DOCSET tag is set to YES, additional index files will be # generated that can be used as input for Apple's Xcode 3 integrated development # environment (see: # https://developer.apple.com/xcode/), introduced with OSX 10.5 (Leopard). To # create a documentation set, doxygen will generate a Makefile in the HTML # output directory. Running make will produce the docset in that directory and # running make install will install the docset in # ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at # startup. See https://developer.apple.com/library/archive/featuredarticles/Doxy # genXcode/_index.html for more information. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_DOCSET = NO # This tag determines the name of the docset feed. A documentation feed provides # an umbrella under which multiple documentation sets from a single provider # (such as a company or product suite) can be grouped. # The default value is: Doxygen generated docs. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_FEEDNAME = "Doxygen generated docs" # This tag determines the URL of the docset feed. A documentation feed provides # an umbrella under which multiple documentation sets from a single provider # (such as a company or product suite) can be grouped. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_FEEDURL = # This tag specifies a string that should uniquely identify the documentation # set bundle. This should be a reverse domain-name style string, e.g. # com.mycompany.MyDocSet. Doxygen will append .docset to the name. # The default value is: org.doxygen.Project. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_BUNDLE_ID = org.doxygen.Project # The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify # the documentation publisher. This should be a reverse domain-name style # string, e.g. com.mycompany.MyDocSet.documentation. # The default value is: org.doxygen.Publisher. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_PUBLISHER_ID = org.doxygen.Publisher # The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher. # The default value is: Publisher. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_PUBLISHER_NAME = Publisher # If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three # additional HTML index files: index.hhp, index.hhc, and index.hhk. The # index.hhp is a project file that can be read by Microsoft's HTML Help Workshop # on Windows. In the beginning of 2021 Microsoft took the original page, with # a.o. the download links, offline the HTML help workshop was already many years # in maintenance mode). You can download the HTML help workshop from the web # archives at Installation executable (see: # http://web.archive.org/web/20160201063255/http://download.microsoft.com/downlo # ad/0/A/9/0A939EF6-E31C-430F-A3DF-DFAE7960D564/htmlhelp.exe). # # The HTML Help Workshop contains a compiler that can convert all HTML output # generated by doxygen into a single compiled HTML file (.chm). Compiled HTML # files are now used as the Windows 98 help format, and will replace the old # Windows help format (.hlp) on all Windows platforms in the future. Compressed # HTML files also contain an index, a table of contents, and you can search for # words in the documentation. The HTML workshop also contains a viewer for # compressed HTML files. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_HTMLHELP = NO # The CHM_FILE tag can be used to specify the file name of the resulting .chm # file. You can add a path in front of the file if the result should not be # written to the html output directory. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. CHM_FILE = # The HHC_LOCATION tag can be used to specify the location (absolute path # including file name) of the HTML help compiler (hhc.exe). If non-empty, # doxygen will try to run the HTML help compiler on the generated index.hhp. # The file has to be specified with full path. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. HHC_LOCATION = # The GENERATE_CHI flag controls if a separate .chi index file is generated # (YES) or that it should be included in the main .chm file (NO). # The default value is: NO. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. GENERATE_CHI = NO # The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc) # and project file content. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. CHM_INDEX_ENCODING = # The BINARY_TOC flag controls whether a binary table of contents is generated # (YES) or a normal table of contents (NO) in the .chm file. Furthermore it # enables the Previous and Next buttons. # The default value is: NO. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. BINARY_TOC = NO # The TOC_EXPAND flag can be set to YES to add extra items for group members to # the table of contents of the HTML help documentation and to the tree view. # The default value is: NO. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. TOC_EXPAND = NO # The SITEMAP_URL tag is used to specify the full URL of the place where the # generated documentation will be placed on the server by the user during the # deployment of the documentation. The generated sitemap is called sitemap.xml # and placed on the directory specified by HTML_OUTPUT. In case no SITEMAP_URL # is specified no sitemap is generated. For information about the sitemap # protocol see https://www.sitemaps.org # This tag requires that the tag GENERATE_HTML is set to YES. SITEMAP_URL = # If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and # QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that # can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help # (.qch) of the generated HTML documentation. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_QHP = NO # If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify # the file name of the resulting .qch file. The path specified is relative to # the HTML output folder. # This tag requires that the tag GENERATE_QHP is set to YES. QCH_FILE = # The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help # Project output. For more information please see Qt Help Project / Namespace # (see: # https://doc.qt.io/archives/qt-4.8/qthelpproject.html#namespace). # The default value is: org.doxygen.Project. # This tag requires that the tag GENERATE_QHP is set to YES. QHP_NAMESPACE = org.doxygen.Project # The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt # Help Project output. For more information please see Qt Help Project / Virtual # Folders (see: # https://doc.qt.io/archives/qt-4.8/qthelpproject.html#virtual-folders). # The default value is: doc. # This tag requires that the tag GENERATE_QHP is set to YES. QHP_VIRTUAL_FOLDER = doc # If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom # filter to add. For more information please see Qt Help Project / Custom # Filters (see: # https://doc.qt.io/archives/qt-4.8/qthelpproject.html#custom-filters). # This tag requires that the tag GENERATE_QHP is set to YES. QHP_CUST_FILTER_NAME = # The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the # custom filter to add. For more information please see Qt Help Project / Custom # Filters (see: # https://doc.qt.io/archives/qt-4.8/qthelpproject.html#custom-filters). # This tag requires that the tag GENERATE_QHP is set to YES. QHP_CUST_FILTER_ATTRS = # The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this # project's filter section matches. Qt Help Project / Filter Attributes (see: # https://doc.qt.io/archives/qt-4.8/qthelpproject.html#filter-attributes). # This tag requires that the tag GENERATE_QHP is set to YES. QHP_SECT_FILTER_ATTRS = # The QHG_LOCATION tag can be used to specify the location (absolute path # including file name) of Qt's qhelpgenerator. If non-empty doxygen will try to # run qhelpgenerator on the generated .qhp file. # This tag requires that the tag GENERATE_QHP is set to YES. QHG_LOCATION = # If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be # generated, together with the HTML files, they form an Eclipse help plugin. To # install this plugin and make it available under the help contents menu in # Eclipse, the contents of the directory containing the HTML and XML files needs # to be copied into the plugins directory of eclipse. The name of the directory # within the plugins directory should be the same as the ECLIPSE_DOC_ID value. # After copying Eclipse needs to be restarted before the help appears. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_ECLIPSEHELP = NO # A unique identifier for the Eclipse help plugin. When installing the plugin # the directory name containing the HTML and XML files should also have this # name. Each documentation set should have its own identifier. # The default value is: org.doxygen.Project. # This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES. ECLIPSE_DOC_ID = org.doxygen.Project # If you want full control over the layout of the generated HTML pages it might # be necessary to disable the index and replace it with your own. The # DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top # of each HTML page. A value of NO enables the index and the value YES disables # it. Since the tabs in the index contain the same information as the navigation # tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. DISABLE_INDEX = YES # The GENERATE_TREEVIEW tag is used to specify whether a tree-like index # structure should be generated to display hierarchical information. If the tag # value is set to YES, a side panel will be generated containing a tree-like # index structure (just like the one that is generated for HTML Help). For this # to work a browser that supports JavaScript, DHTML, CSS and frames is required # (i.e. any modern browser). Windows users are probably better off using the # HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can # further fine tune the look of the index (see "Fine-tuning the output"). As an # example, the default style sheet generated by doxygen has an example that # shows how to put an image at the root of the tree instead of the PROJECT_NAME. # Since the tree basically has the same information as the tab index, you could # consider setting DISABLE_INDEX to YES when enabling this option. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_TREEVIEW = NO # When both GENERATE_TREEVIEW and DISABLE_INDEX are set to YES, then the # FULL_SIDEBAR option determines if the side bar is limited to only the treeview # area (value NO) or if it should extend to the full height of the window (value # YES). Setting this to YES gives a layout similar to # https://docs.readthedocs.io with more room for contents, but less room for the # project logo, title, and description. If either GENERATE_TREEVIEW or # DISABLE_INDEX is set to NO, this option has no effect. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. FULL_SIDEBAR = NO # The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that # doxygen will group on one line in the generated HTML documentation. # # Note that a value of 0 will completely suppress the enum values from appearing # in the overview section. # Minimum value: 0, maximum value: 20, default value: 4. # This tag requires that the tag GENERATE_HTML is set to YES. ENUM_VALUES_PER_LINE = 4 # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used # to set the initial width (in pixels) of the frame in which the tree is shown. # Minimum value: 0, maximum value: 1500, default value: 250. # This tag requires that the tag GENERATE_HTML is set to YES. TREEVIEW_WIDTH = 200 # If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to # external symbols imported via tag files in a separate window. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. EXT_LINKS_IN_WINDOW = NO # If the OBFUSCATE_EMAILS tag is set to YES, doxygen will obfuscate email # addresses. # The default value is: YES. # This tag requires that the tag GENERATE_HTML is set to YES. OBFUSCATE_EMAILS = YES # If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg # tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see # https://inkscape.org) to generate formulas as SVG images instead of PNGs for # the HTML output. These images will generally look nicer at scaled resolutions. # Possible values are: png (the default) and svg (looks nicer but requires the # pdf2svg or inkscape tool). # The default value is: png. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_FORMULA_FORMAT = png # Use this tag to change the font size of LaTeX formulas included as images in # the HTML documentation. When you change the font size after a successful # doxygen run you need to manually remove any form_*.png images from the HTML # output directory to force them to be regenerated. # Minimum value: 8, maximum value: 50, default value: 10. # This tag requires that the tag GENERATE_HTML is set to YES. FORMULA_FONTSIZE = 10 # The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands # to create new LaTeX commands to be used in formulas as building blocks. See # the section "Including formulas" for details. FORMULA_MACROFILE = # Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see # https://www.mathjax.org) which uses client side JavaScript for the rendering # instead of using pre-rendered bitmaps. Use this if you do not have LaTeX # installed or if you want to formulas look prettier in the HTML output. When # enabled you may also need to install MathJax separately and configure the path # to it using the MATHJAX_RELPATH option. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. USE_MATHJAX = NO # With MATHJAX_VERSION it is possible to specify the MathJax version to be used. # Note that the different versions of MathJax have different requirements with # regards to the different settings, so it is possible that also other MathJax # settings have to be changed when switching between the different MathJax # versions. # Possible values are: MathJax_2 and MathJax_3. # The default value is: MathJax_2. # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_VERSION = MathJax_2 # When MathJax is enabled you can set the default output format to be used for # the MathJax output. For more details about the output format see MathJax # version 2 (see: # http://docs.mathjax.org/en/v2.7-latest/output.html) and MathJax version 3 # (see: # http://docs.mathjax.org/en/latest/web/components/output.html). # Possible values are: HTML-CSS (which is slower, but has the best # compatibility. This is the name for Mathjax version 2, for MathJax version 3 # this will be translated into chtml), NativeMML (i.e. MathML. Only supported # for NathJax 2. For MathJax version 3 chtml will be used instead.), chtml (This # is the name for Mathjax version 3, for MathJax version 2 this will be # translated into HTML-CSS) and SVG. # The default value is: HTML-CSS. # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_FORMAT = HTML-CSS # When MathJax is enabled you need to specify the location relative to the HTML # output directory using the MATHJAX_RELPATH option. The destination directory # should contain the MathJax.js script. For instance, if the mathjax directory # is located at the same level as the HTML output directory, then # MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax # Content Delivery Network so you can quickly see the result without installing # MathJax. However, it is strongly recommended to install a local copy of # MathJax from https://www.mathjax.org before deployment. The default value is: # - in case of MathJax version 2: https://cdn.jsdelivr.net/npm/mathjax@2 # - in case of MathJax version 3: https://cdn.jsdelivr.net/npm/mathjax@3 # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest # The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax # extension names that should be enabled during MathJax rendering. For example # for MathJax version 2 (see # https://docs.mathjax.org/en/v2.7-latest/tex.html#tex-and-latex-extensions): # MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols # For example for MathJax version 3 (see # http://docs.mathjax.org/en/latest/input/tex/extensions/index.html): # MATHJAX_EXTENSIONS = ams # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_EXTENSIONS = # The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces # of code that will be used on startup of the MathJax code. See the MathJax site # (see: # http://docs.mathjax.org/en/v2.7-latest/output.html) for more details. For an # example see the documentation. # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_CODEFILE = # When the SEARCHENGINE tag is enabled doxygen will generate a search box for # the HTML output. The underlying search engine uses javascript and DHTML and # should work on any modern browser. Note that when using HTML help # (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) # there is already a search function so this one should typically be disabled. # For large projects the javascript based search engine can be slow, then # enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to # search using the keyboard; to jump to the search box use + S # (what the is depends on the OS and browser, but it is typically # , /